From 0638c7e03a96ed43f7ab5e658e334e16bca0f0ec Mon Sep 17 00:00:00 2001 From: Andrii Selivanov Date: Sun, 2 Sep 2018 08:10:56 +0300 Subject: [PATCH 1/4] [accounts] Fixed 'Forgot password' was not shown on login. --- src/screens/Passcode/EnterPasscodeContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Passcode/EnterPasscodeContainer.js b/src/screens/Passcode/EnterPasscodeContainer.js index 7039a8750..27b41d129 100644 --- a/src/screens/Passcode/EnterPasscodeContainer.js +++ b/src/screens/Passcode/EnterPasscodeContainer.js @@ -107,7 +107,7 @@ class EnterPasscodeContainer extends NavigatorComponent Date: Sun, 2 Sep 2018 08:08:28 -0500 Subject: [PATCH 2/4] [npm] npm install --- package-lock.json | 1292 ++++++++++++++++++++------------------------- 1 file changed, 586 insertions(+), 706 deletions(-) diff --git a/package-lock.json b/package-lock.json index bfd1868a2..8c3df3f7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "dependencies": { "@babel/code-frame": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz", "integrity": "sha512-cuAuTTIQ9RqcFRJ/Y8PvTh+paepNcaGxwQwjIDRWPXmzzyAeCO4KqS9ikMvq0MCbRk6GlYKwfzStrcP3/jSL8g==", "dev": true, "requires": { @@ -15,7 +15,7 @@ }, "@babel/generator": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.44.tgz", "integrity": "sha512-5xVb7hlhjGcdkKpMXgicAVgx8syK5VJz193k0i/0sLP6DzE6lRrU1K3B/rFefgdo9LPGMAOOOAWW4jycj07ShQ==", "dev": true, "requires": { @@ -36,7 +36,7 @@ }, "@babel/helper-function-name": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz", "integrity": "sha512-MHRG2qZMKMFaBavX0LWpfZ2e+hLloT++N7rfM3DYOMUOGCD8cVjqZpwiL8a0bOX3IYcQev1ruciT0gdFFRTxzg==", "dev": true, "requires": { @@ -47,7 +47,7 @@ }, "@babel/helper-get-function-arity": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz", "integrity": "sha512-w0YjWVwrM2HwP6/H3sEgrSQdkCaxppqFeJtAnB23pRiJB5E/O9Yp7JAAeWBl+gGEgmBFinnTyOv2RN7rcSmMiw==", "dev": true, "requires": { @@ -56,7 +56,7 @@ }, "@babel/helper-split-export-declaration": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz", "integrity": "sha512-aQ7QowtkgKKzPGf0j6u77kBMdUFVBKNHw2p/3HX/POt5/oz8ec5cs0GwlgM8Hz7ui5EwJnzyfRmkNF1Nx1N7aA==", "dev": true, "requires": { @@ -65,7 +65,7 @@ }, "@babel/highlight": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.44.tgz", "integrity": "sha512-Il19yJvy7vMFm8AVAh6OZzaFoAd0hbkeMZiX3P5HGD+z7dyI7RzndHB0dg6Urh/VAFfHtpOIzDUSxmY6coyZWQ==", "dev": true, "requires": { @@ -80,7 +80,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -91,7 +91,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "js-tokens": { @@ -101,9 +101,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -111,9 +111,15 @@ } } }, + "@babel/parser": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.51.tgz", + "integrity": "sha1-J87C30Cd9gr1gnDtj2qlVAnqhvY=", + "dev": true + }, "@babel/template": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.44.tgz", "integrity": "sha512-w750Sloq0UNifLx1rUqwfbnC6uSUk0mfwwgGRfdLiaUzfAOiH0tHJE6ILQIUi3KYkjiCDTskoIsnfqZvWLBDng==", "dev": true, "requires": { @@ -125,7 +131,7 @@ "dependencies": { "babylon": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", "integrity": "sha512-5Hlm13BJVAioCHpImtFqNOF2H3ieTOHd0fmFGMxOJ9jgeFqeAwsv3u5P5cR7CSeFrkgHsT19DgFJkHV0/Mcd8g==", "dev": true } @@ -133,7 +139,7 @@ }, "@babel/traverse": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.44.tgz", "integrity": "sha512-UHuDz8ukQkJCDASKHf+oDt3FVUzFd+QYfuBIsiNu/4+/ix6pP/C+uQZJ6K1oEfbCMv/IKWbgDEh7fcsnIE5AtA==", "dev": true, "requires": { @@ -151,7 +157,7 @@ "dependencies": { "babylon": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", "integrity": "sha512-5Hlm13BJVAioCHpImtFqNOF2H3ieTOHd0fmFGMxOJ9jgeFqeAwsv3u5P5cR7CSeFrkgHsT19DgFJkHV0/Mcd8g==", "dev": true }, @@ -174,7 +180,7 @@ }, "@babel/types": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.44.tgz", "integrity": "sha512-5eTV4WRmqbaFM3v9gHAIljEQJU4Ssc6fxL61JN+Oe2ga/BwyjzjamwkCVVAQjHGuAX8i0BWo42dshL8eO5KfLQ==", "dev": true, "requires": { @@ -192,9 +198,9 @@ } }, "@expo/react-native-action-sheet": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@expo/react-native-action-sheet/-/react-native-action-sheet-1.0.2.tgz", - "integrity": "sha512-luscyHGelXeJLYVj3/sm3/Kz6TFfNZc3j/UiIyJB4wUq+S8C1lpk4mkKktGysZ9cbexCYXLs/HR6NvI+Wn0LSw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@expo/react-native-action-sheet/-/react-native-action-sheet-1.1.0.tgz", + "integrity": "sha512-XSzy/4z+rqwJabZqjz0unMgvZCAaVrmo41Sp7/r099RrzNTB1FLjkbEUxfAF+3Uz+SILScHqcEtsVPZGyCKIwQ==", "requires": { "hoist-non-react-statics": "2.5.5", "prop-types": "15.6.2" @@ -277,9 +283,9 @@ "dev": true }, "@types/node": { - "version": "10.7.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.7.1.tgz", - "integrity": "sha512-EGoI4ylB/lPOaqXqtzAyL8HcgOuCtH2hkEaLmkueOYufsTFWBn4VCvlCDC2HW8Q+9iF+QVC3sxjDKQYjHQeZ9w==", + "version": "10.9.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.9.4.tgz", + "integrity": "sha512-fCHV45gS+m3hH17zgkgADUSi2RR1Vht6wOZ0jyHP8rjiQra9f+mIcgwPQHllmDocYOstIEbKlxbFDYlgrTPYqw==", "dev": true }, "@yarnpkg/lockfile": { @@ -336,14 +342,14 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", "integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=", "requires": { - "mime-types": "2.1.19", + "mime-types": "2.1.20", "negotiator": "0.5.3" } }, "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.2.tgz", + "integrity": "sha512-cJrKCNcr2kv8dlDnbw+JPUGjHZzo4myaxOLmpOX8a+rgX94YeTcTMv/LFJUSByRpc+i4GgVnnhLxvMu/2Y+rqw==", "dev": true }, "acorn-dynamic-import": { @@ -369,7 +375,7 @@ "integrity": "sha512-KjZwU26uG3u6eZcfGbTULzFcsoz6pegNKtHPksZPOUsiKo5bUmiBPa38FuHZ/Eun+XYh/JCCkS9AS3Lu4McQOQ==", "dev": true, "requires": { - "acorn": "5.7.1" + "acorn": "5.7.2" } }, "acorn-jsx": { @@ -536,7 +542,7 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", @@ -918,12 +924,6 @@ "es-abstract": "1.12.0" } }, - "array-iterate": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.2.tgz", - "integrity": "sha512-1hWSHTIlG/8wtYD+PPX5AOBtKWngpDFjrsrHgZpe+JdgNGz0udYu6ZIkAa/xuenIUEqFv7DvE2Yr60jxweJSrQ==", - "dev": true - }, "array-map": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", @@ -1073,9 +1073,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "atob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" }, "awilix": { "version": "3.0.9", @@ -1083,7 +1083,7 @@ "integrity": "sha512-3iRR4UkCCMAaPSZoiFSEIdX583FT8/AE/PVnllXV7UfA1s70QVlHWByDTR94Paof/nYsSd4kdi7EdfjzpiIosw==", "requires": { "camel-case": "3.0.0", - "glob": "7.1.2" + "glob": "7.1.3" } }, "aws-sign2": { @@ -1117,7 +1117,7 @@ "dependencies": { "chalk": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "requires": { "ansi-styles": "2.2.1", @@ -1176,7 +1176,7 @@ "dependencies": { "babylon": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", + "resolved": "http://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz", "integrity": "sha512-5Hlm13BJVAioCHpImtFqNOF2H3ieTOHd0fmFGMxOJ9jgeFqeAwsv3u5P5cR7CSeFrkgHsT19DgFJkHV0/Mcd8g==", "dev": true } @@ -1398,7 +1398,7 @@ "babel-plugin-syntax-object-rest-spread": "6.13.0", "find-up": "2.1.0", "istanbul-lib-instrument": "1.10.1", - "test-exclude": "4.2.1" + "test-exclude": "4.2.2" } }, "babel-plugin-jest-hoist": { @@ -1417,72 +1417,72 @@ }, "babel-plugin-syntax-async-functions": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=" }, "babel-plugin-syntax-async-generators": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", "dev": true }, "babel-plugin-syntax-class-constructor-call": { "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", "integrity": "sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY=", "dev": true }, "babel-plugin-syntax-class-properties": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=" }, "babel-plugin-syntax-decorators": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=" }, "babel-plugin-syntax-do-expressions": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", "integrity": "sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0=", "dev": true }, "babel-plugin-syntax-dynamic-import": { "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=" }, "babel-plugin-syntax-exponentiation-operator": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=" }, "babel-plugin-syntax-export-extensions": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", "integrity": "sha1-cKFITw+QiaToStRLrDU8lbmxJyE=", "dev": true }, "babel-plugin-syntax-flow": { "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz", "integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=" }, "babel-plugin-syntax-function-bind": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", "integrity": "sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y=", "dev": true }, "babel-plugin-syntax-jsx": { "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=" }, "babel-plugin-syntax-object-rest-spread": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=" }, "babel-plugin-syntax-trailing-function-commas": { @@ -1512,7 +1512,7 @@ }, "babel-plugin-transform-async-to-generator": { "version": "6.16.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.16.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.16.0.tgz", "integrity": "sha1-Gew2yxSGtZ+fRorfpCzhOQjKKZk=", "requires": { "babel-helper-remap-async-to-generator": "6.24.1", @@ -2018,9 +2018,9 @@ } }, "babel-preset-fbjs": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-2.2.0.tgz", - "integrity": "sha512-jj0KFJDioYZMtPtZf77dQuU+Ad/1BtN0UnAYlHDa8J8f4tGXr3YrPoJImD5MdueaOPeN/jUdrCgu330EfXr0XQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-2.3.0.tgz", + "integrity": "sha512-ZOpAI1/bN0Y3J1ZAK9gRsFkHy9gGgJoDRUjtUCla/129LC7uViq9nIK22YdHfey8szohYoZY3f9L2lGOv0Edqw==", "requires": { "babel-plugin-check-es2015-constants": "6.22.0", "babel-plugin-syntax-class-properties": "6.13.0", @@ -2394,9 +2394,9 @@ } }, "big-integer": { - "version": "1.6.34", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.34.tgz", - "integrity": "sha512-+w6B0Uo0ZvTSzDkXjoBCTNK0oe+aVL+yPi7kwGZm8hd8+Nj1AFPoxoq1Bl/mEu/G/ivOkUc1LRqVR0XeWFUzuA==" + "version": "1.6.35", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.35.tgz", + "integrity": "sha512-jqLsX6dzmPHOhApAUyGwrpzqn3DXpdTqbOM6baPys7A423ys7IsTpcucDVGP0PmzxGsPYbW3xVOJ4SxAzI0vqQ==" }, "big.js": { "version": "3.2.0", @@ -2585,7 +2585,7 @@ "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.1.tgz", "integrity": "sha1-1g1dzCDLptx+HymbNdPh+V2vuuY=", "requires": { - "big-integer": "1.6.34" + "big-integer": "1.6.35" } }, "brace-expansion": { @@ -2604,7 +2604,7 @@ "requires": { "expand-range": "1.8.2", "preserve": "0.2.0", - "repeat-element": "1.1.2" + "repeat-element": "1.1.3" } }, "brorand": { @@ -2713,8 +2713,8 @@ "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000877", - "electron-to-chromium": "1.3.58" + "caniuse-lite": "1.0.30000883", + "electron-to-chromium": "1.3.62" } }, "bser": { @@ -2727,7 +2727,7 @@ }, "buffer": { "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "resolved": "http://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "requires": { "base64-js": "1.3.0", @@ -2878,9 +2878,9 @@ "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" }, "caniuse-lite": { - "version": "1.0.30000877", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000877.tgz", - "integrity": "sha512-h04kV/lcuhItU1CZTJOxUEk/9R+1XeJqgc67E+XC8J9TjPM8kzVgOn27ZtRdDUo8O5F8U4QRCzDWJrVym3w3Cg==", + "version": "1.0.30000883", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000883.tgz", + "integrity": "sha512-ovvb0uya4cKJct8Rj9Olstz0LaWmyJhCp3NawRG5fVigka8pEhIIwipF7zyYd2Q58UZb5YfIt52pVF444uj2kQ==", "dev": true }, "capture-exit": { @@ -2928,7 +2928,7 @@ }, "chalk": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz", "integrity": "sha1-UJr7ZwZudJn36zU1x3RFdyri0Bk=", "requires": { "ansi-styles": "2.2.1", @@ -3044,7 +3044,7 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", @@ -3135,9 +3135,9 @@ } }, "ci-info": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.3.1.tgz", - "integrity": "sha512-l4wK/SFEN8VVTQ9RO1I5yzIL2vw1w6My29qA6Gwaec80QeHxfXbruuUWqn1knyMoJn/X5kav3zVY1TlRHSKeIA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.4.0.tgz", + "integrity": "sha512-Oqmw2pVfCl8sCL+1QgMywPfdxPJPkC51y4usw0iiE2S9qnEOAqXy8bwl1CpMpnoU39g4iKJTz6QZj+28FvOnjQ==", "dev": true }, "cipher-base": { @@ -3354,29 +3354,29 @@ "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", "dev": true, "requires": { - "color-convert": "1.9.2", + "color-convert": "1.9.3", "color-string": "1.5.3" } }, "color-convert": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", - "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "requires": { - "color-name": "1.1.1" + "color-name": "1.1.3" } }, "color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "color-string": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", "requires": { - "color-name": "1.1.1", + "color-name": "1.1.3", "simple-swizzle": "0.2.2" } }, @@ -3424,9 +3424,9 @@ "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==" }, "compare-versions": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.3.0.tgz", - "integrity": "sha512-MAAAIOdi2s4Gl6rZ76PNcUa9IOYB+5ICdT41o5uMRf09aEu/F9RK+qhe8RjXNPwcTjGV7KU7h2P/fljThFVqyQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.4.0.tgz", + "integrity": "sha512-tK69D7oNXXqUW3ZNo/z7NXTEz22TCF0pTE+YF9cxvaAM9XnkLo1fV621xCLrRR6aevJlKxExkss0vWqUCUpqdg==", "dev": true }, "component-bind": { @@ -3449,12 +3449,12 @@ "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.14.tgz", "integrity": "sha1-MmxfUH+7BV9UEWeCuWmoG2einac=", "requires": { - "mime-db": "1.35.0" + "mime-db": "1.36.0" } }, "compression": { "version": "1.5.2", - "resolved": "http://registry.npmjs.org/compression/-/compression-1.5.2.tgz", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.5.2.tgz", "integrity": "sha1-sDuNhub4rSloPLqN+R3cb/x3s5U=", "requires": { "accepts": "1.2.13", @@ -3825,9 +3825,9 @@ "dev": true }, "cssstyle": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.0.0.tgz", - "integrity": "sha512-Bpuh47j2mRMY60X90mXaJAEtJwxvA2roZzbgwAXYhMbmwmakdRr4Cq9L5SkleKJNLOKqHIa2YWyOXDX3VgggSQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.1.1.tgz", + "integrity": "sha512-364AI1l/M5TYcFH83JnOH/pSqgaNnKmYgKrm0didZMGKWjQB60dymwWy1rKUgL3J1ffdq9xVi2yGLHdSjjSNog==", "dev": true, "requires": { "cssom": "0.3.4" @@ -3874,21 +3874,26 @@ } }, "data-urls": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.0.0.tgz", - "integrity": "sha512-ai40PPQR0Fn1lD2PPie79CibnlMN2AYiDhwFX/rZHVsxbs5kNJSjegqXIprhouGXlRdEnfybva7kqRGnB6mypA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.0.1.tgz", + "integrity": "sha512-0HdcMZzK6ubMUnsMmQmG0AcLQPvbvb47R0+7CCZQCYgcd8OUWG91CG7sM6GoXgjz+WLl4ArFzHtBMy/QqSF4eg==", "dev": true, "requires": { - "abab": "1.0.4", + "abab": "2.0.0", "whatwg-mimetype": "2.1.0", - "whatwg-url": "6.5.0" + "whatwg-url": "7.0.0" }, "dependencies": { - "abab": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz", - "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=", - "dev": true + "whatwg-url": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", + "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", + "dev": true, + "requires": { + "lodash.sortby": "4.7.0", + "tr46": "1.0.1", + "webidl-conversions": "4.0.2" + } } } }, @@ -4213,7 +4218,7 @@ "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", "dev": true, "requires": { - "acorn": "5.7.1", + "acorn": "5.7.2", "defined": "1.0.0" } }, @@ -4311,7 +4316,7 @@ "get-port": "3.2.0", "git-url-parse": "8.3.1", "github-slugger": "1.2.0", - "glob": "7.1.2", + "glob": "7.1.3", "globals-docs": "2.4.0", "highlight.js": "9.12.0", "js-yaml": "3.12.0", @@ -4348,7 +4353,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "arr-diff": { @@ -4374,7 +4379,7 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", @@ -4400,7 +4405,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "expand-brackets": { @@ -4716,9 +4721,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -4989,9 +4994,9 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, "electron-to-chromium": { - "version": "1.3.58", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.58.tgz", - "integrity": "sha512-AGJxlBEn2wOohxqWZkISVsOjZueKTQljfEODTDSEiMqSpH0S+xzV+/5oEM9AGaqhu7DzrpKOgU7ocQRjj0nJmg==", + "version": "1.3.62", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.62.tgz", + "integrity": "sha512-x09ndL/Gjnuk3unlAyoGyUg3wbs4w/bXurgL7wL913vXHAOWmMhrLf1VNGRaMLngmadd5Q8gsV9BFuIr6rP+Xg==", "dev": true }, "elliptic": { @@ -5022,7 +5027,7 @@ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", "requires": { - "iconv-lite": "0.4.23" + "iconv-lite": "0.4.24" } }, "end-of-stream": { @@ -5107,7 +5112,7 @@ "integrity": "sha512-hKkh7aKtont6Zuv4RmE4VkOc96TkBj9NXj7Ghsd/qCA9LuJI0Dh+ImwA1N5iORB9Vg+sz5bq9CHJzs51BILNCQ==", "requires": { "clipboardy": "1.2.3", - "glob": "7.1.2", + "glob": "7.1.3", "minimist": "1.2.0", "os-name": "2.0.1", "which": "1.3.1" @@ -5143,7 +5148,7 @@ "integrity": "sha512-kC8pAtU2Jk3OJ0EG8Y2813dg9Ol0TXi7UNxHzHiWs30Jo/hj7alc//G1YpKUsPP1oKl9X+Lkx+WlGJpPYA+nvw==", "dev": true, "requires": { - "enzyme-adapter-utils": "1.5.0", + "enzyme-adapter-utils": "1.6.1", "lodash": "4.17.10", "object.assign": "4.1.0", "object.values": "1.0.4", @@ -5153,9 +5158,9 @@ } }, "enzyme-adapter-utils": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/enzyme-adapter-utils/-/enzyme-adapter-utils-1.5.0.tgz", - "integrity": "sha512-cLUaPYU8GEzAHi/1hiO+ylz4QiQWI8eb9SysAk8Tbul2O918dRf4cfD4s2BjijtwSvhapkOsPW9XRix1EXlJ1Q==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/enzyme-adapter-utils/-/enzyme-adapter-utils-1.6.1.tgz", + "integrity": "sha512-MH8Tbe/e6UlVGBTxO5vb2gHv/wqAU2j/I72nuVGHyb0TxzfZOttJopJea7/5ZgmwBSeqqcaRnd/B87//RDJ9/w==", "dev": true, "requires": { "function.prototype.name": "1.1.0", @@ -5210,7 +5215,7 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "requires": { - "mime-types": "2.1.19", + "mime-types": "2.1.20", "negotiator": "0.6.1" } }, @@ -5368,7 +5373,7 @@ }, "eslint": { "version": "4.19.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", + "resolved": "http://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", "integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==", "dev": true, "requires": { @@ -5386,7 +5391,7 @@ "esutils": "2.0.2", "file-entry-cache": "2.0.0", "functional-red-black-tree": "1.0.1", - "glob": "7.1.2", + "glob": "7.1.3", "globals": "11.7.0", "ignore": "3.3.10", "imurmurhash": "0.1.4", @@ -5424,7 +5429,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -5435,7 +5440,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "debug": { @@ -5463,9 +5468,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -5542,9 +5547,9 @@ } }, "eslint-plugin-jest": { - "version": "21.21.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-21.21.0.tgz", - "integrity": "sha512-qoYGTPYuV8bvFYkWj19y4VTq5f2QiNky1Z97rx8RRcPhyJOYbaOs+vjdA/B2FkwWKB46NgzB1rzreDrvEXFh5Q==", + "version": "21.22.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-21.22.0.tgz", + "integrity": "sha512-0TzGIZ5moLR9orka/J9lg+7Ezv+S0TsnkavrMmI5xPFnbyIDjc2jLlwtBsaBbdZuOSCl+kcofh9ojknTI9L32Q==", "dev": true }, "eslint-plugin-jsx-a11y": { @@ -5633,7 +5638,7 @@ "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", "dev": true, "requires": { - "acorn": "5.7.1", + "acorn": "5.7.2", "acorn-jsx": "3.0.1" } }, @@ -5746,7 +5751,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "ethereumjs-vm": { @@ -5769,9 +5774,9 @@ } }, "ethers": { - "version": "3.0.26", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-3.0.26.tgz", - "integrity": "sha512-5O05fG4HCmjIjcyTXl0qIlpVFxMR77d3zjSlmhtQi9s8xaUhOQDWjgPL+zkb6QTjGzB7inCpq4/pac24qV9T2Q==", + "version": "3.0.27", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-3.0.27.tgz", + "integrity": "sha512-Ymop12NYKLTejQKv3l4a4vwwZNG+V0D2KmBGuSMa0eEguPJYCouNUoJ/8IiDTwqxKsthoSeCRrcXIz5HJDbHqA==", "requires": { "aes-js": "3.0.0", "bn.js": "4.11.8", @@ -5794,7 +5799,7 @@ "abs": "1.3.6", "ethereumjs-testrpc": "4.1.3", "ethereumjs-vm": "2.3.4", - "ethers": "3.0.26", + "ethers": "3.0.27", "git-command": "1.0.11", "mime-types": "2.1.11", "readline-sync": "1.4.9", @@ -5926,7 +5931,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } } } @@ -5985,11 +5990,11 @@ }, "external-editor": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "requires": { "chardet": "0.4.2", - "iconv-lite": "0.4.23", + "iconv-lite": "0.4.24", "tmp": "0.0.33" } }, @@ -6086,7 +6091,7 @@ "requires": { "ansi-colors": "1.1.0", "babel-core": "6.26.3", - "babel-preset-fbjs": "2.2.0", + "babel-preset-fbjs": "2.3.0", "core-js": "2.5.7", "cross-spawn": "5.1.0", "fancy-log": "1.3.2", @@ -6154,7 +6159,7 @@ "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", "dev": true, "requires": { - "glob": "7.1.2", + "glob": "7.1.3", "minimatch": "3.0.4" } }, @@ -6166,7 +6171,7 @@ "is-number": "2.1.0", "isobject": "2.1.0", "randomatic": "3.1.0", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "repeat-string": "1.6.1" } }, @@ -6319,7 +6324,7 @@ "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.19" + "mime-types": "2.1.20" } }, "fragment-cache": { @@ -6420,7 +6425,7 @@ "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", "optional": true, "requires": { - "nan": "2.10.0", + "nan": "2.11.0", "node-pre-gyp": "0.10.0" }, "dependencies": { @@ -7017,9 +7022,9 @@ } }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "requires": { "fs.realpath": "1.0.0", "inflight": "1.0.6", @@ -7053,7 +7058,7 @@ "dev": true, "requires": { "extend": "3.0.2", - "glob": "7.1.2", + "glob": "7.1.3", "glob-parent": "3.1.0", "is-negated-glob": "1.0.0", "ordered-read-streams": "1.0.1", @@ -7149,7 +7154,7 @@ "requires": { "array-union": "1.0.2", "arrify": "1.0.1", - "glob": "7.1.2", + "glob": "7.1.3", "object-assign": "4.1.1", "pify": "2.3.0", "pinkie-promise": "2.0.1" @@ -7674,9 +7679,9 @@ "integrity": "sha1-kP/Z+bxhfzS5oS4DcmD1JERfdoQ=" }, "iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "requires": { "safer-buffer": "2.1.2" } @@ -7784,7 +7789,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -7794,7 +7799,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "strip-ansi": { @@ -7806,9 +7811,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "requires": { "has-flag": "3.0.0" } @@ -7939,7 +7944,7 @@ "integrity": "sha512-plgvKjQtalH2P3Gytb7L61Lmz95g2DlpzFiQyRSFew8WoJKxtKRzrZMeyRN2supblm3Psc8OQGy7Xjb6XG11jw==", "dev": true, "requires": { - "ci-info": "1.3.1" + "ci-info": "1.4.0" } }, "is-data-descriptor": { @@ -8293,25 +8298,148 @@ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, "istanbul-api": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.1.tgz", - "integrity": "sha512-duj6AlLcsWNwUpfyfHt0nWIeRiZpuShnP40YTxOGQgtaN8fd6JYSxsvxUphTDy8V5MfDXo4s/xVCIIvVCO808g==", + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.6.tgz", + "integrity": "sha512-luJDnB1uJ5Qsg/WwusGfNXayQ4598yDgW5S0nUS85T576m1LVJzSqLrCDULkT6sTQXVKHa54093gNuCKumMCjQ==", "dev": true, "requires": { "async": "2.6.1", - "compare-versions": "3.3.0", + "compare-versions": "3.4.0", "fileset": "2.0.3", "istanbul-lib-coverage": "1.2.0", "istanbul-lib-hook": "1.2.1", - "istanbul-lib-instrument": "1.10.1", + "istanbul-lib-instrument": "2.3.2", "istanbul-lib-report": "1.1.4", "istanbul-lib-source-maps": "1.2.5", - "istanbul-reports": "1.3.0", + "istanbul-reports": "1.5.0", "js-yaml": "3.12.0", "mkdirp": "0.5.1", "once": "1.4.0" }, "dependencies": { + "@babel/code-frame": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.51.tgz", + "integrity": "sha1-vXHZsZKvl435FYKdOdQJRFZDmgw=", + "dev": true, + "requires": { + "@babel/highlight": "7.0.0-beta.51" + } + }, + "@babel/generator": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.51.tgz", + "integrity": "sha1-bHV1/952HQdIXgS67cA5LG2eMPY=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.51", + "jsesc": "2.5.1", + "lodash": "4.17.10", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "@babel/helper-function-name": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.51.tgz", + "integrity": "sha1-IbSHSiJ8+Z7K/MMKkDAtpaJkBWE=", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "7.0.0-beta.51", + "@babel/template": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.51.tgz", + "integrity": "sha1-MoGy0EWvlcFyzpGyCCXYXqRnZBE=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.51" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.51.tgz", + "integrity": "sha1-imw/ZsTSZTUvwHdIT59ugKUauXg=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.51" + } + }, + "@babel/highlight": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.51.tgz", + "integrity": "sha1-6IRK4loVlcz9QriWI7Q3bKBtIl0=", + "dev": true, + "requires": { + "chalk": "2.4.1", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "@babel/template": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.51.tgz", + "integrity": "sha1-lgKkCuvPNXrpZ34lMu9fyBD1+/8=", + "dev": true, + "requires": { + "@babel/code-frame": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", + "lodash": "4.17.10" + } + }, + "@babel/traverse": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.51.tgz", + "integrity": "sha1-mB2vLOw0emIx06odnhgDsDqqpKg=", + "dev": true, + "requires": { + "@babel/code-frame": "7.0.0-beta.51", + "@babel/generator": "7.0.0-beta.51", + "@babel/helper-function-name": "7.0.0-beta.51", + "@babel/helper-split-export-declaration": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", + "debug": "3.1.0", + "globals": "11.7.0", + "invariant": "2.2.4", + "lodash": "4.17.10" + } + }, + "@babel/types": { + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz", + "integrity": "sha1-2AK3tUO1g2x3iqaReXq/APPZfqk=", + "dev": true, + "requires": { + "esutils": "2.0.2", + "lodash": "4.17.10", + "to-fast-properties": "2.0.0" + } + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.3" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" + } + }, "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", @@ -8321,18 +8449,61 @@ "ms": "2.0.0" } }, - "istanbul-lib-source-maps": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz", - "integrity": "sha512-8O2T/3VhrQHn0XcJbP1/GN7kXMiRAlPi+fj3uEHrjBD8Oz7Py0prSC25C09NuAZS6bgW1NNKAvCSHZXB0irSGA==", + "globals": { + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", + "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.2.tgz", + "integrity": "sha512-l7TD/VnBsIB2OJvSyxaLW/ab1+92dxZNH9wLH7uHPPioy3JZ8tnx2UXUdKmdkgmP2EFPzg64CToUP6dAS3U32Q==", "dev": true, "requires": { - "debug": "3.1.0", - "istanbul-lib-coverage": "1.2.0", - "mkdirp": "0.5.1", - "rimraf": "2.6.2", - "source-map": "0.5.7" + "@babel/generator": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/template": "7.0.0-beta.51", + "@babel/traverse": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", + "istanbul-lib-coverage": "2.0.1", + "semver": "5.5.1" + }, + "dependencies": { + "istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-nPvSZsVlbG9aLhZYaC3Oi1gT/tpyo3Yt5fNyf6NmcKIayz4VV/txxJFFKAK/gU4dcNn8ehsanBbVHVl0+amOLA==", + "dev": true + } + } + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "jsesc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.1.tgz", + "integrity": "sha1-5CGiqOINawgZ3yiQj3glJrlt0f4=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "3.0.0" } + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true } } }, @@ -8396,9 +8567,9 @@ } }, "istanbul-lib-source-maps": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.3.tgz", - "integrity": "sha512-fDa0hwU/5sDXwAklXgAoCJCOsFsBplVQ6WBldz5UwaqOzmDhUK4nfuR7/G//G2lERlblUNJB8P6e8cXq3a7MlA==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz", + "integrity": "sha512-8O2T/3VhrQHn0XcJbP1/GN7kXMiRAlPi+fj3uEHrjBD8Oz7Py0prSC25C09NuAZS6bgW1NNKAvCSHZXB0irSGA==", "dev": true, "requires": { "debug": "3.1.0", @@ -8420,9 +8591,9 @@ } }, "istanbul-reports": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.3.0.tgz", - "integrity": "sha512-y2Z2IMqE1gefWUaVjrBm0mSKvUkaBy9Vqz8iwr/r40Y9hBbIteH5wqHG/9DLTfJ9xUnUT2j7A3+VVJ6EaYBllA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.5.0.tgz", + "integrity": "sha512-HeZG0WHretI9FXBni5wZ9DOgNziqDCEwetxnme5k1Vv5e81uTqcsy3fMH99gXGDGKr1ea87TyGseDMa2h4HEUA==", "dev": true, "requires": { "handlebars": "4.0.11" @@ -8459,7 +8630,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8470,7 +8641,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "cliui": { @@ -8493,14 +8664,14 @@ "ansi-escapes": "3.1.0", "chalk": "2.4.1", "exit": "0.1.2", - "glob": "7.1.2", + "glob": "7.1.3", "graceful-fs": "4.1.11", "import-local": "1.0.0", "is-ci": "1.2.0", - "istanbul-api": "1.3.1", + "istanbul-api": "1.3.6", "istanbul-lib-coverage": "1.2.0", "istanbul-lib-instrument": "1.10.1", - "istanbul-lib-source-maps": "1.2.3", + "istanbul-lib-source-maps": "1.2.5", "jest-changed-files": "22.4.3", "jest-config": "22.4.4", "jest-environment-jsdom": "22.4.3", @@ -8560,9 +8731,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8615,7 +8786,7 @@ "dev": true, "requires": { "chalk": "2.4.1", - "glob": "7.1.2", + "glob": "7.1.3", "jest-environment-jsdom": "22.4.3", "jest-environment-node": "22.4.3", "jest-get-type": "22.4.3", @@ -8639,7 +8810,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8650,7 +8821,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "pretty-format": { @@ -8664,9 +8835,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8698,7 +8869,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8709,7 +8880,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "diff": { @@ -8729,9 +8900,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8800,7 +8971,7 @@ "jest-message-util": "22.4.3", "jest-snapshot": "22.4.3", "jest-util": "22.4.3", - "source-map-support": "0.5.8" + "source-map-support": "0.5.9" }, "dependencies": { "ansi-styles": { @@ -8809,7 +8980,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8820,7 +8991,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "source-map": { @@ -8830,9 +9001,9 @@ "dev": true }, "source-map-support": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.8.tgz", - "integrity": "sha512-WqAEWPdb78u25RfKzOF0swBpY0dKrNdjc4GvLwm7ScX/o9bj8Eh/YL8mcMhBHYDGl87UkkSXDOFnW4G7GhWhGg==", + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", "dev": true, "requires": { "buffer-from": "1.1.1", @@ -8840,9 +9011,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8871,7 +9042,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "pretty-format": { @@ -8909,7 +9080,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8920,7 +9091,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "pretty-format": { @@ -8934,9 +9105,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8963,7 +9134,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8974,13 +9145,13 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9021,7 +9192,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -9032,13 +9203,13 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9140,7 +9311,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "babel-jest": { @@ -9161,7 +9332,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "cliui": { @@ -9209,9 +9380,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9291,7 +9462,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -9302,7 +9473,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "pretty-format": { @@ -9316,9 +9487,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9347,7 +9518,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "callsites": { @@ -9364,7 +9535,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "source-map": { @@ -9374,9 +9545,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9409,7 +9580,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -9420,7 +9591,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "pretty-format": { @@ -9434,9 +9605,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -9486,17 +9657,17 @@ "dev": true, "requires": { "abab": "2.0.0", - "acorn": "5.7.1", + "acorn": "5.7.2", "acorn-globals": "4.1.0", "array-equal": "1.0.0", "cssom": "0.3.4", - "cssstyle": "1.0.0", - "data-urls": "1.0.0", + "cssstyle": "1.1.1", + "data-urls": "1.0.1", "domexception": "1.0.1", "escodegen": "1.11.0", "html-encoding-sniffer": "1.0.2", "left-pad": "1.3.0", - "nwsapi": "2.0.8", + "nwsapi": "2.0.9", "parse5": "4.0.0", "pn": "1.1.0", "request": "2.88.0", @@ -9646,7 +9817,7 @@ "requires": { "bindings": "1.3.0", "inherits": "2.0.3", - "nan": "2.10.0", + "nan": "2.11.0", "safe-buffer": "5.1.2" }, "dependencies": { @@ -10106,19 +10277,18 @@ } }, "mdast-util-compact": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-1.0.1.tgz", - "integrity": "sha1-zbX4TitqLTEU3zO9BdnLMuPECDo=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-1.0.2.tgz", + "integrity": "sha512-d2WS98JSDVbpSsBfVvD9TaDMlqPRz7ohM/11G0rp5jOBb5q96RJ6YLszQ/09AAixyzh23FeIpCGqfaamEADtWg==", "dev": true, "requires": { - "unist-util-modify-children": "1.1.2", "unist-util-visit": "1.4.0" } }, "mdast-util-definitions": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-1.2.2.tgz", - "integrity": "sha512-9NloPSwaB9f1PKcGqaScfqRf6zKOEjTIXVIbPOmgWI/JKxznlgVXC5C+8qgl3AjYg2vJBRgLYfLICaNiac89iA==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-1.2.3.tgz", + "integrity": "sha512-P6wpRO8YVQ1iv30maMc93NLh7COvufglBE8/ldcOyYmk5EbfF0YeqlLgtqP/FOBU501Kqar1x5wYWwB3Nga74g==", "dev": true, "requires": { "unist-util-visit": "1.4.0" @@ -10130,7 +10300,7 @@ "integrity": "sha1-2wa4tYW+lZotzS+H9HK6m3VvNnU=", "dev": true, "requires": { - "mdast-util-to-string": "1.0.4" + "mdast-util-to-string": "1.0.5" } }, "mdast-util-to-hast": { @@ -10141,7 +10311,7 @@ "requires": { "collapse-white-space": "1.0.4", "detab": "2.0.1", - "mdast-util-definitions": "1.2.2", + "mdast-util-definitions": "1.2.3", "mdurl": "1.0.1", "trim": "0.0.1", "trim-lines": "1.1.1", @@ -10153,9 +10323,9 @@ } }, "mdast-util-to-string": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.0.4.tgz", - "integrity": "sha1-XEVch4yTVfDB5/PotxnPWDaRrPs=", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.0.5.tgz", + "integrity": "sha512-2qLt/DEOo5F6nc2VFScQiHPzQ0XXcabquRJxKMhKte8nt42o08HUxNDPk7tt0YPxnWjAT11I1SYi0X0iPnfI5A==", "dev": true }, "mdast-util-toc": { @@ -10165,7 +10335,7 @@ "dev": true, "requires": { "github-slugger": "1.2.0", - "mdast-util-to-string": "1.0.4", + "mdast-util-to-string": "1.0.5", "unist-util-visit": "1.4.0" } }, @@ -10391,7 +10561,7 @@ "babel-generator": "6.26.1", "babel-plugin-external-helpers": "6.22.0", "babel-preset-es2015-node": "6.1.1", - "babel-preset-fbjs": "2.2.0", + "babel-preset-fbjs": "2.3.0", "babel-preset-react-native": "4.0.0", "babel-register": "6.26.0", "babylon": "6.18.0", @@ -10501,16 +10671,16 @@ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" }, "mime-db": { - "version": "1.35.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", - "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==" + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" }, "mime-types": { - "version": "2.1.19", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", - "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", "requires": { - "mime-db": "1.35.0" + "mime-db": "1.36.0" } }, "mimic-fn": { @@ -10547,7 +10717,7 @@ }, "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "mixin-deep": { @@ -10571,7 +10741,7 @@ }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "requires": { "minimist": "0.0.8" @@ -10579,7 +10749,7 @@ "dependencies": { "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" } } @@ -10623,6 +10793,20 @@ "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", "dev": true }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.1", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, "growl": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", @@ -10754,7 +10938,7 @@ }, "morgan": { "version": "1.6.1", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.6.1.tgz", + "resolved": "http://registry.npmjs.org/morgan/-/morgan-1.6.1.tgz", "integrity": "sha1-X9gYOYxoGcuiinzWZk8pL+HAu/I=", "requires": { "basic-auth": "1.0.4", @@ -10799,9 +10983,9 @@ "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" }, "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz", + "integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==" }, "nanomatch": { "version": "1.2.13", @@ -10856,19 +11040,20 @@ } }, "native-base": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/native-base/-/native-base-2.7.2.tgz", - "integrity": "sha512-iDvXe9OfVsOILV1CDS0wBz+OzXyZRn+MwI6AEZxP2Ak2FmSttj6WGX7kNX0WQaSqvcpNM8SgXYm5CXwaHMUDhw==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/native-base/-/native-base-2.8.0.tgz", + "integrity": "sha512-R7arHMg7B9NRnwrg+QneGKjTJIUUDKJXcKaHQhKUBJTTql4veE04Jm3TGlAIcE0mxzUArGsp3c89UBMy+pxXzg==", "requires": { "blueimp-md5": "2.10.0", "clamp": "1.0.1", "color": "1.0.3", "fs-extra": "2.1.2", "jest-react-native": "18.0.0", - "lodash": "4.17.0", + "lodash": "4.17.10", "native-base-shoutem-theme": "0.2.2", "print-message": "2.1.0", "prop-types": "15.6.2", + "react-native-drawer": "2.5.0", "react-native-easy-grid": "0.2.0", "react-native-keyboard-aware-scroll-view": "0.5.0", "react-native-vector-icons": "4.6.0", @@ -10881,15 +11066,10 @@ "resolved": "https://registry.npmjs.org/color/-/color-1.0.3.tgz", "integrity": "sha1-5I6DLYXxTvaU+0aIEcLVz+cptV0=", "requires": { - "color-convert": "1.9.2", + "color-convert": "1.9.3", "color-string": "1.5.3" } }, - "lodash": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.0.tgz", - "integrity": "sha1-k/RGblq3PlofEhbDTuoRU18KjfU=" - }, "react-native-keyboard-aware-scroll-view": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/react-native-keyboard-aware-scroll-view/-/react-native-keyboard-aware-scroll-view-0.5.0.tgz", @@ -11110,7 +11290,7 @@ "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.19" + "mime-types": "2.1.20" } }, "gauge": { @@ -11196,7 +11376,7 @@ "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.19", + "mime-types": "2.1.20", "oauth-sign": "0.8.2", "performance-now": "0.2.0", "qs": "6.4.0", @@ -11329,9 +11509,9 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "nwsapi": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.0.8.tgz", - "integrity": "sha512-7RZ+qbFGiVc6v14Y8DSZjPN1wZPOaMbiiP4tzf5eNuyOITAeOIA3cMhjuKUypVIqBgCSg1KaSyAv8Ocq/0ZJ1A==", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.0.9.tgz", + "integrity": "sha512-nlWFSCTYQcHk/6A9FFnfhKc14c3aFhfdNBXgo8Qgi9QTBu/qg3Ww+Uiz9wMzXd1T8GFxPc2QIHB6Qtf2XFryFQ==", "dev": true }, "oauth-sign": { @@ -11528,7 +11708,7 @@ "dependencies": { "minimist": { "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=" }, "wordwrap": { @@ -11798,7 +11978,7 @@ "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", "dev": true, "requires": { - "@types/node": "10.7.1" + "@types/node": "10.9.4" } }, "parseqs": { @@ -12129,7 +12309,7 @@ "@protobufjs/pool": "1.1.0", "@protobufjs/utf8": "1.1.0", "@types/long": "4.0.0", - "@types/node": "10.7.1", + "@types/node": "10.9.4", "long": "4.0.0" } }, @@ -12415,9 +12595,9 @@ "integrity": "sha1-K7qMaUBMXkqUQ5hgC8xMlB+GBoI=" }, "react-deep-force-update": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.1.1.tgz", - "integrity": "sha1-vNMUeAJ7ZLMznxCJIatSC0MT3Cw=" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.1.2.tgz", + "integrity": "sha512-WUSQJ4P/wWcusaH+zZmbECOk7H5N2pOIl0vzheeornkIMhu+qrNdGFm0bDZLCb0hSF0jf/kH1SgkNGfBdTc4wA==" }, "react-devtools-core": { "version": "2.5.2", @@ -12489,7 +12669,7 @@ "fbjs": "0.8.17", "fbjs-scripts": "0.8.3", "fs-extra": "1.0.0", - "glob": "7.1.2", + "glob": "7.1.3", "graceful-fs": "4.1.11", "inquirer": "3.3.0", "lodash": "4.17.10", @@ -12611,6 +12791,15 @@ "resolved": "https://registry.npmjs.org/react-native-dismiss-keyboard/-/react-native-dismiss-keyboard-1.0.0.tgz", "integrity": "sha1-MohiQrPyMX4SHzrrmwpYXiuHm0k=" }, + "react-native-drawer": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/react-native-drawer/-/react-native-drawer-2.5.0.tgz", + "integrity": "sha512-I8rGv0EM6PxRWeq8g463OBt4DYoTri7v9rh98Qpg9q/JToZYTIjavjY0BwchDwyV7J5LdAg7IPbfZUYBkZJsZQ==", + "requires": { + "prop-types": "15.6.2", + "tween-functions": "1.2.0" + } + }, "react-native-drawer-layout": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/react-native-drawer-layout/-/react-native-drawer-layout-1.3.2.tgz", @@ -12662,7 +12851,7 @@ "resolved": "https://registry.npmjs.org/react-native-gifted-chat/-/react-native-gifted-chat-0.3.0.tgz", "integrity": "sha1-qzcXI+PdrQc4XQ/x2/yuFWFR2q0=", "requires": { - "@expo/react-native-action-sheet": "1.0.2", + "@expo/react-native-action-sheet": "1.1.0", "md5": "2.2.1", "moment": "2.22.2", "prop-types": "15.5.10", @@ -12791,9 +12980,9 @@ } }, "react-native-navigation": { - "version": "1.1.480", - "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-1.1.480.tgz", - "integrity": "sha512-+7OSjtK9GIQJW8GHU1YGQfifAbEapenbRUi1JwCO21PqUzuEqMdQHE1l2C59VKhrig+DZB1lKsOvxZRqGK6RuQ==", + "version": "1.1.484", + "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-1.1.484.tgz", + "integrity": "sha512-k7KH91xP3bVySpm9/sclRgwghVpPnXp0pyIZsbzX+Xsd8rUCKbEYY/Z84FprsRGaEw1SDgusqemIswT6yQUiHA==", "requires": { "lodash": "4.17.10" } @@ -12842,9 +13031,9 @@ } }, "react-native-safe-area-view": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/react-native-safe-area-view/-/react-native-safe-area-view-0.7.0.tgz", - "integrity": "sha512-SjLdW/Th0WVMhyngH4O6yC21S+O4U4AAG3QxBr7fZ2ftgjXSpKbDHAhEpxBdFwei6HsnsC2h9oYMtPpaW9nfGg==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/react-native-safe-area-view/-/react-native-safe-area-view-0.9.0.tgz", + "integrity": "sha512-y792ScHMzvgwquxL869S9CER4dwiFu/TuCiXdy0xBtygmScMK4eWonnUT65LvOrsSSdr8o6XEK1mbI51h6ozvQ==", "requires": { "hoist-non-react-statics": "2.5.5" } @@ -12905,9 +13094,9 @@ } }, "react-navigation": { - "version": "1.5.12", - "resolved": "https://registry.npmjs.org/react-navigation/-/react-navigation-1.5.12.tgz", - "integrity": "sha512-+i0ymFHokQxjv0/0knBUtxC1zuyvLgbDVPFU7ScKxT25SGVh2exuRjYwXImF234/qtYMskfY7bfhEjGLcXPySQ==", + "version": "1.5.13", + "resolved": "https://registry.npmjs.org/react-navigation/-/react-navigation-1.5.13.tgz", + "integrity": "sha512-P418t+wrHFpx15k/7naomWct0xVpW8RHzDzqXGAjYzYe4NRcJAaDnMzZGKffRyvopMXxnLN6/GZU0NUYrmRxbg==", "requires": { "clamp": "1.0.1", "hoist-non-react-statics": "2.5.5", @@ -12915,7 +13104,7 @@ "prop-types": "15.6.2", "react-lifecycles-compat": "3.0.4", "react-native-drawer-layout-polyfill": "1.3.2", - "react-native-safe-area-view": "0.7.0", + "react-native-safe-area-view": "0.9.0", "react-native-tab-view": "github:react-navigation/react-native-tab-view#36ebd834d78b841fc19778c966465d02fd1213bb" } }, @@ -12925,7 +13114,7 @@ "integrity": "sha1-nb/Z2SdSjDqp9ETkVYw3gwq4wmo=", "requires": { "lodash": "4.17.10", - "react-deep-force-update": "1.1.1" + "react-deep-force-update": "1.1.2" } }, "react-reconciler": { @@ -13357,7 +13546,7 @@ "dev": true, "requires": { "github-slugger": "1.2.0", - "mdast-util-to-string": "1.0.4", + "mdast-util-to-string": "1.0.5", "unist-util-visit": "1.4.0" } }, @@ -13374,7 +13563,7 @@ "longest-streak": "2.0.2", "markdown-escapes": "1.0.2", "markdown-table": "1.1.2", - "mdast-util-compact": "1.0.1", + "mdast-util-compact": "1.0.2", "parse-entities": "1.1.2", "repeat-string": "1.6.1", "state-toggle": "1.0.1", @@ -13429,9 +13618,9 @@ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" }, "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" }, "repeat-string": { "version": "1.6.1", @@ -13469,7 +13658,7 @@ "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.19", + "mime-types": "2.1.20", "oauth-sign": "0.9.0", "performance-now": "2.1.0", "qs": "6.5.2", @@ -13641,7 +13830,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "requires": { - "glob": "7.1.2" + "glob": "7.1.3" } }, "ripemd160": { @@ -13780,11 +13969,11 @@ "resolved": "https://registry.npmjs.org/react/-/react-15.6.2.tgz", "integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=", "requires": { - "create-react-class": "^15.6.0", - "fbjs": "^0.8.9", - "loose-envify": "^1.1.0", - "object-assign": "^4.1.0", - "prop-types": "^15.5.10" + "create-react-class": "15.6.3", + "fbjs": "0.8.17", + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "prop-types": "15.6.2" } }, "react-dom": { @@ -13792,10 +13981,10 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-15.6.2.tgz", "integrity": "sha1-Qc+t9pO3V/rycIRDodH9WgK+9zA=", "requires": { - "fbjs": "^0.8.9", - "loose-envify": "^1.1.0", - "object-assign": "^4.1.0", - "prop-types": "^15.5.10" + "fbjs": "0.8.17", + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "prop-types": "15.6.2" } }, "redux-saga": { @@ -13841,7 +14030,7 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", @@ -14101,9 +14290,9 @@ "integrity": "sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q=" }, "secp256k1": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.0.tgz", - "integrity": "sha512-e5QIJl8W7Y4tT6LHffVcZAxJjvpgE5Owawv6/XCYPQljE9aP2NFFddQ8OYMKhdLshNu88FfL3qCN3/xYkXGRsA==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.2.tgz", + "integrity": "sha512-iin3kojdybY6NArd+UFsoTuapOF7bnJNf2UbcWXaY3z+E1sJDipl60vtzB5hbO/uquBu7z0fd4VC4Irp+xoFVQ==", "dev": true, "requires": { "bindings": "1.3.0", @@ -14112,7 +14301,7 @@ "create-hash": "1.2.0", "drbg.js": "1.0.1", "elliptic": "6.3.3", - "nan": "2.10.0", + "nan": "2.11.0", "safe-buffer": "5.1.2" } }, @@ -14222,7 +14411,7 @@ "debug": "2.2.0", "escape-html": "1.0.3", "http-errors": "1.3.1", - "mime-types": "2.1.19", + "mime-types": "2.1.20", "parseurl": "1.3.2" }, "dependencies": { @@ -14332,7 +14521,7 @@ "integrity": "sha512-pRXeNrCA2Wd9itwhvLp5LZQvPJ0wU6bcjaTMywHHGX5XWhVN2nzSu7WV0q+oUY7mGK3mgSkDDzP3MgjqdyIgbQ==", "dev": true, "requires": { - "glob": "7.1.2", + "glob": "7.1.3", "interpret": "1.1.0", "rechoir": "0.6.2" } @@ -14647,7 +14836,7 @@ }, "os-locale": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { @@ -14786,7 +14975,7 @@ "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "requires": { - "atob": "2.1.1", + "atob": "2.1.2", "decode-uri-component": "0.2.0", "resolve-url": "0.2.1", "source-map-url": "0.4.0", @@ -15273,7 +15462,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -15284,13 +15473,13 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -15412,390 +15601,79 @@ "dependencies": { "rimraf": { "version": "2.2.8", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", + "resolved": "http://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=" } } }, "test-exclude": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.1.tgz", - "integrity": "sha512-qpqlP/8Zl+sosLxBcVKl9vYy26T9NPalxSzzCP/OY6K7j938ui2oKgo+kRZYfxAeIpLqpbVnsHq1tyV70E4lWQ==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.2.tgz", + "integrity": "sha512-2kTGf+3tykCfrWVREgyTR0bmVO0afE6i7zVXi/m+bZZ8ujV89Aulxdcdv32yH+unVFg3Y5o6GA8IzsHnGQuFgQ==", "dev": true, "requires": { "arrify": "1.0.1", - "micromatch": "3.1.10", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", + "minimatch": "3.0.4", + "read-pkg-up": "3.0.0", "require-main-filename": "1.0.1" }, "dependencies": { - "arr-diff": { + "load-json-file": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.2", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" } }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "fill-range": { + "parse-json": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "error-ex": "1.3.2", + "json-parse-better-errors": "1.0.2" } }, - "is-number": { + "path-type": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } + "pify": "3.0.0" } }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.13", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - } - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "2.0.1" - } - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" - } - }, "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", "dev": true, "requires": { - "load-json-file": "1.1.0", + "load-json-file": "4.0.0", "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "path-type": "3.0.0" } }, "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "find-up": "2.1.0", + "read-pkg": "3.0.0" } } } @@ -16193,7 +16071,7 @@ "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.19" + "mime-types": "2.1.20" } }, "typedarray": { @@ -16265,7 +16143,7 @@ "requires": { "source-map": "0.5.7", "uglify-js": "2.8.29", - "webpack-sources": "1.1.0" + "webpack-sources": "1.2.0" }, "dependencies": { "camelcase": { @@ -16360,7 +16238,7 @@ }, "buffer": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-3.6.0.tgz", + "resolved": "http://registry.npmjs.org/buffer/-/buffer-3.6.0.tgz", "integrity": "sha1-pyyTb3e5a/UvX357RnGAYoVR3vs=", "requires": { "base64-js": "0.0.8", @@ -16482,15 +16360,6 @@ "integrity": "sha512-YkXBK/H9raAmG7KXck+UUpnKiNmUdB+aBGrknfQ4EreE1banuzrKABx3jP6Z5Z3fMSPMQQmeXBlKpCbMwBkxVw==", "dev": true }, - "unist-util-modify-children": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/unist-util-modify-children/-/unist-util-modify-children-1.1.2.tgz", - "integrity": "sha512-GRi04yhng1WqBf5RBzPkOtWAadcZS2gvuOgNn/cyJBYNxtTuyYqTKN0eg4rC1YJwGnzrqfRB3dSKm8cNCjNirg==", - "dev": true, - "requires": { - "array-iterate": "1.1.2" - } - }, "unist-util-position": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.0.1.tgz", @@ -16966,7 +16835,7 @@ "integrity": "sha512-Sw7MdIIOv/nkzPzee4o0EdvCuPmxT98+vVpIvwtcwcF1Q4SDSNp92vwcKc4REe7NItH9f1S4ra9FuQ7yuYZ8bQ==", "dev": true, "requires": { - "acorn": "5.7.1", + "acorn": "5.7.2", "acorn-dynamic-import": "2.0.2", "ajv": "6.5.3", "ajv-keywords": "3.2.0", @@ -16986,7 +16855,7 @@ "tapable": "0.2.8", "uglifyjs-webpack-plugin": "0.4.6", "watchpack": "1.6.0", - "webpack-sources": "1.1.0", + "webpack-sources": "1.2.0", "yargs": "8.0.2" }, "dependencies": { @@ -17038,9 +16907,9 @@ } }, "webpack-sources": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", - "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.2.0.tgz", + "integrity": "sha512-9BZwxR85dNsjWz3blyxdOhTgtnQvv3OEs5xofI0wPYTwu5kaWxS08UuD1oI7WLBLpRO+ylf0ofnXLXWmGb2WMw==", "dev": true, "requires": { "source-list-map": "2.0.0", @@ -17062,7 +16931,7 @@ "dev": true, "requires": { "debug": "2.6.9", - "nan": "2.10.0", + "nan": "2.11.0", "typedarray-to-buffer": "3.1.5", "yaeti": "0.0.6" } @@ -17090,6 +16959,17 @@ "dev": true, "requires": { "iconv-lite": "0.4.23" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": "2.1.2" + } + } } }, "whatwg-fetch": { @@ -17164,7 +17044,7 @@ }, "wrap-ansi": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { "string-width": "1.0.2", @@ -17262,7 +17142,7 @@ "dependencies": { "lodash": { "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" } } From e0f25e0c7f283aa1d5752afd51158d426011bcc8 Mon Sep 17 00:00:00 2001 From: Alberto Estarrona Date: Sun, 2 Sep 2018 08:25:12 -0500 Subject: [PATCH 3/4] [config] Setup version number --- android/app/build.gradle | 4 ++-- ios/Pangea/Info.plist | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 3ef9ba956..4c12dcf82 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -103,8 +103,8 @@ android { applicationId 'co.bitnation' minSdkVersion 16 targetSdkVersion 22 - versionCode 14 - versionName "1.1.1" + versionCode 15 + versionName "1.2.0" ndk { abiFilters "armeabi-v7a", "x86" } diff --git a/ios/Pangea/Info.plist b/ios/Pangea/Info.plist index 3600b3fdd..5f6f43dfb 100644 --- a/ios/Pangea/Info.plist +++ b/ios/Pangea/Info.plist @@ -21,11 +21,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.1.0 + 1.2.0 CFBundleSignature ???? CFBundleVersion - 15 + 16 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/package.json b/package.json index e7bde6149..2bf07dd40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Pangea", - "version": "1.1.0", + "version": "1.2.0", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", From c724d184e68d2697e542f480d88fe1b3c4c20cfb Mon Sep 17 00:00:00 2001 From: Alberto Estarrona Date: Sun, 2 Sep 2018 08:38:28 -0500 Subject: [PATCH 4/4] [android] Added assets and updated bundle --- .../app/src/main/assets/index.android.bundle | 1735 +++++++++-------- .../src/main/assets/index.android.bundle.meta | 2 +- .../src_assets_images_bitnationlogo.png | Bin 0 -> 7209 bytes .../src_assets_images_bitnationlogobig.png | Bin 0 -> 35076 bytes .../src_assets_images_chat_indicator.png | Bin 0 -> 173 bytes .../src_assets_images_closeicon.png | Bin 0 -> 413 bytes .../src_assets_images_disclosure.png | Bin 2895 -> 157 bytes .../src_assets_images_ethereumlogo.png | Bin 0 -> 890 bytes .../src_assets_images_moreicon.png | Bin 0 -> 156 bytes .../src_assets_images_xpatlogo.png | Bin 0 -> 1172 bytes .../src_assets_images_chat_indicator.png | Bin 0 -> 173 bytes .../src_assets_images_closeicon.png | Bin 0 -> 660 bytes .../src_assets_images_disclosure.png | Bin 0 -> 202 bytes .../src_assets_images_ethereumlogo.png | Bin 0 -> 2060 bytes .../src_assets_images_moreicon.png | Bin 0 -> 307 bytes .../src_assets_images_xpatlogo.png | Bin 0 -> 2341 bytes .../src_assets_images_chat_indicator.png | Bin 0 -> 213 bytes .../src_assets_images_closeicon.png | Bin 0 -> 900 bytes .../src_assets_images_disclosure.png | Bin 0 -> 236 bytes .../src_assets_images_ethereumlogo.png | Bin 0 -> 3043 bytes .../src_assets_images_moreicon.png | Bin 0 -> 453 bytes .../src_assets_images_xpatlogo.png | Bin 0 -> 3500 bytes 22 files changed, 890 insertions(+), 847 deletions(-) create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_bitnationlogo.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_bitnationlogobig.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_chat_indicator.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_closeicon.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_ethereumlogo.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_moreicon.png create mode 100644 android/app/src/main/res/drawable-mdpi/src_assets_images_xpatlogo.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_chat_indicator.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_closeicon.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_disclosure.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_ethereumlogo.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_moreicon.png create mode 100644 android/app/src/main/res/drawable-xhdpi/src_assets_images_xpatlogo.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_chat_indicator.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_closeicon.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_disclosure.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_ethereumlogo.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_moreicon.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/src_assets_images_xpatlogo.png diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 86b60f6e3..1eafa7bee 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -294,7 +294,7 @@ __d(function(e,t,n,r){'use strict';var i=t(20).TimePickerAndroid,s=(function(){f __d(function(r,t,e,a){'use strict';var n=t(20).Vibration;t(28);var i={vibrate:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if('number'==typeof r)n.vibrate(r);else{if(!Array.isArray(r))throw new Error('Vibration pattern should be a number or array');n.vibrateByPattern(r,t?0:-1)}},cancel:function(){n.cancel()}};e.exports=i},293); __d(function(t,i,o,n){'use strict';var r=i(32),s={vibrate:function(){r('VibrationIOS is not supported on this platform!')}};o.exports=s},294); __d(function(_,t,E,s){'use strict';var O=t(44).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.exports=O.takeSnapshot},295); -__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0});var l=r(297),u=r(333),i=babelHelpers.interopRequireDefault(u),n=r(334),o=babelHelpers.interopRequireDefault(n),f=r(774),b=babelHelpers.interopRequireDefault(f),d=r(681);babelHelpers.asyncToGenerator=i.default;var p=(0,o.default)();(0,b.default)(p,l.Provider),p.dispatch((0,d.startNavigation)());t.default=function(){return null}},296); +__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0});var l=r(297),u=r(333),i=babelHelpers.interopRequireDefault(u),n=r(334),o=babelHelpers.interopRequireDefault(n),f=r(778),b=babelHelpers.interopRequireDefault(f),d=r(683);babelHelpers.asyncToGenerator=i.default;var p=(0,o.default)();(0,b.default)(p,l.Provider),p.dispatch((0,d.startNavigation)());t.default=function(){return null}},296); __d(function(e,d,r,c){'use strict';c.__esModule=!0,c.connect=c.connectAdvanced=c.createProvider=c.Provider=void 0;var t=d(298),n=u(t),o=u(d(301)),a=u(d(305));function u(e){return e&&e.__esModule?e:{default:e}}c.Provider=n.default,c.createProvider=t.createProvider,c.connectAdvanced=o.default,c.connect=a.default},297); __d(function(e,t,r,n){'use strict';n.__esModule=!0,n.createProvider=c;var o=t(51),i=s(t(105)),u=t(299);s(t(300));function s(e){return e&&e.__esModule?e:{default:e}}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'store',r=arguments[1]||t+'Subscription',n=(function(e){function n(r,o){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n);var i=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this,r,o));return i[t]=r.store,i}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(n,e),n.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},n.prototype.render=function(){return o.Children.only(this.props.children)},n})(o.Component);return n.propTypes={store:u.storeShape.isRequired,children:i.default.element.isRequired},n.childContextTypes=((e={})[t]=u.storeShape.isRequired,e[r]=u.subscriptionShape,e),n}n.default=c()},298); __d(function(e,u,s,i){'use strict';i.__esModule=!0,i.storeShape=i.subscriptionShape=void 0;var t,d=u(105),a=(t=d)&&t.__esModule?t:{default:t};i.subscriptionShape=a.default.shape({trySubscribe:a.default.func.isRequired,tryUnsubscribe:a.default.func.isRequired,notifyNestedSubs:a.default.func.isRequired,isSubscribed:a.default.func.isRequired}),i.storeShape=a.default.shape({subscribe:a.default.func.isRequired,dispatch:a.default.func.isRequired,getState:a.default.func.isRequired})},299); @@ -332,7 +332,7 @@ __d(function(r,e,n,t){'use strict';t.__esModule=!0;var o=Object.assign||function __d(function(r,n,t,e){'use strict';e.__esModule=!0,e.impureFinalPropsSelectorFactory=a,e.pureFinalPropsSelectorFactory=p,e.default=function(r,n){var t=n.initMapStateToProps,e=n.initMapDispatchToProps,o=n.initMergeProps,i=(function(r,n){var t={};for(var e in r)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t})(n,['initMapStateToProps','initMapDispatchToProps','initMergeProps']),u=t(r,i),s=e(r,i),c=o(r,i);return(i.pure?p:a)(u,s,c,r,i)};var o,i=n(332);(o=i)&&o.__esModule;function a(r,n,t,e){return function(o,i){return t(r(o,i),n(e,i),i)}}function p(r,n,t,e,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,p=o.areStatePropsEqual,u=!1,s=void 0,c=void 0,d=void 0,P=void 0,l=void 0;function f(o,u){var f,v,O=!a(u,c),M=!i(o,s);return s=o,c=u,O&&M?(d=r(s,c),n.dependsOnOwnProps&&(P=n(e,c)),l=t(d,P,c)):O?(r.dependsOnOwnProps&&(d=r(s,c)),n.dependsOnOwnProps&&(P=n(e,c)),l=t(d,P,c)):M?(f=r(s,c),v=!p(f,d),d=f,v&&(l=t(d,P,c)),l):l}return function(o,i){return u?f(o,i):(d=r(s=o,c=i),P=n(e,c),l=t(d,P,c),u=!0,l)}}},331); __d(function(e,o,r,t){'use strict';t.__esModule=!0,t.default=function(e,o,r,t){a(e,'mapStateToProps',t),a(o,'mapDispatchToProps',t),a(r,'mergeProps',t)};var p,s=o(300),n=(p=s)&&p.__esModule?p:{default:p};function a(e,o,r){if(!e)throw new Error('Unexpected value for '+o+' in '+r+'.');'mapStateToProps'!==o&&'mapDispatchToProps'!==o||e.hasOwnProperty('dependsOnOwnProps')||(0,n.default)('The selector for '+o+' of '+r+' did not specify a value for dependsOnOwnProps.')}},332); __d(function(n,t,e,o){'use strict';o.__esModule=!0,o.default=function(n){return function(){var t=n.apply(this,arguments);return new Promise(function(n,e){function o(o,i){try{var c=t[o](i),f=c.value}catch(n){return void e(n)}c.done?n(f):Promise.resolve(f).then(r,u)}function r(n){o('next',n)}function u(n){o('throw',n)}o('next')})}}},333); -__d(function(e,l,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var e=(0,n.default)({level:'log',actionDispatch:!0}),l=(0,o.default)({sagaMonitor:e}),a=(0,t.compose)((0,t.applyMiddleware)(l),(0,t.applyMiddleware)(i.default)),r=(0,t.createStore)(b.default,a);return l.run(c.default),r};var t=l(308),u=l(335),i=babelHelpers.interopRequireDefault(u),p=l(336),o=babelHelpers.interopRequireDefault(p),f=l(352),n=babelHelpers.interopRequireDefault(f),d=l(364),b=babelHelpers.interopRequireDefault(d),s=l(540),c=babelHelpers.interopRequireDefault(s)},334); +__d(function(e,l,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var e=(0,n.default)({level:'log',actionDispatch:!0}),l=(0,o.default)({sagaMonitor:e}),a=(0,t.compose)((0,t.applyMiddleware)(l),(0,t.applyMiddleware)(i.default)),r=(0,t.createStore)(b.default,a);return l.run(c.default),r};var t=l(308),u=l(335),i=babelHelpers.interopRequireDefault(u),p=l(336),o=babelHelpers.interopRequireDefault(p),f=l(352),n=babelHelpers.interopRequireDefault(f),d=l(364),b=babelHelpers.interopRequireDefault(d),s=l(546),c=babelHelpers.interopRequireDefault(s)},334); __d(function(e,t,r,n){var o,i;o=this,i=function(t){"use strict";function r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,r){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function c(e,t,r){c.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function l(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function u(e){var t=void 0===e?"undefined":S(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function f(e,t,r,n,s,d,p){s=s||[],p=p||[];var h=s.slice(0);if(void 0!==d){if(n){if("function"==typeof n&&n(h,d))return;if("object"===(void 0===n?"undefined":S(n))){if(n.prefilter&&n.prefilter(h,d))return;if(n.normalize){var g=n.normalize(h,d,e,t);g&&(e=g[0],t=g[1])}}}h.push(d)}"regexp"===u(e)&&"regexp"===u(t)&&(e=e.toString(),t=t.toString());var v=void 0===e?"undefined":S(e),y=void 0===t?"undefined":S(t),b="undefined"!==v||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),m="undefined"!==y||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!b&&m)r(new i(h,t));else if(!m&&b)r(new a(h,e));else if(u(e)!==u(t))r(new o(h,e,t));else if("date"===u(e)&&e-t!=0)r(new o(h,e,t));else if("object"===v&&null!==e&&null!==t)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&r(new o(h,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w=t.length?r(new c(h,w,new a(void 0,e[w]))):f(e[w],t[w],r,n,h,w,p);for(;w=0?(f(e[o],t[o],r,n,h,o,p),j=l(j,a)):f(e[o],void 0,r,n,h,o,p)}),j.forEach(function(e){f(void 0,t[e],r,n,h,e,p)})}p.length=p.length-1}else e!==t&&("number"===v&&isNaN(e)&&isNaN(t)||r(new o(h,e,t)))}function s(e,t,r,n){return n=n||[],f(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,o=-1,i=r.path?r.path.length-1:0;++o0&&void 0!==arguments[0]?arguments[0]:{},t=babelHelpers.extends({},A,e),r=t.logger,n=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,c=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var l=[];return function(e){var r=e.getState;return function(e){return function(u){if("function"==typeof i&&!i(r,u))return e(u);var f={};l.push(f),f.started=x.now(),f.startedTime=new Date,f.prevState=n(r()),f.action=u;var s=void 0;if(a)try{s=e(u)}catch(e){f.error=o(e)}else s=e(u);f.took=x.now()-f.started,f.nextState=n(r());var d=t.diff&&"function"==typeof c?c(r,u):t.diff;if(g(l,babelHelpers.extends({},t,{diff:d})),l.length=0,f.error)throw f.error;return s}}}}var y,b,m=function(e,t){return(function(e,t){return new Array(t+1).join(e)})("0",t-e.toString().length)+e},w=function(e){return m(e.getHours(),2)+":"+m(e.getMinutes(),2)+":"+m(e.getSeconds(),2)+"."+m(e.getMilliseconds(),3)},x="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,S="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},j=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?v()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=A,t.createLogger=v,t.logger=D,t.default=D,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==r?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(o.reduxLogger=o.reduxLogger||{})},335); __d(function(e,t,r,n){'use strict';n.__esModule=!0,n.utils=n.effects=n.detach=n.CANCEL=n.delay=n.throttle=n.takeLatest=n.takeEvery=n.buffers=n.channel=n.eventChannel=n.END=n.runSaga=void 0;var u=t(337);Object.defineProperty(n,'runSaga',{enumerable:!0,get:function(){return u.runSaga}});var a=t(345);Object.defineProperty(n,'END',{enumerable:!0,get:function(){return a.END}}),Object.defineProperty(n,'eventChannel',{enumerable:!0,get:function(){return a.eventChannel}}),Object.defineProperty(n,'channel',{enumerable:!0,get:function(){return a.channel}});var f=t(346);Object.defineProperty(n,'buffers',{enumerable:!0,get:function(){return f.buffers}});var c=t(342);Object.defineProperty(n,'takeEvery',{enumerable:!0,get:function(){return c.takeEvery}}),Object.defineProperty(n,'takeLatest',{enumerable:!0,get:function(){return c.takeLatest}}),Object.defineProperty(n,'throttle',{enumerable:!0,get:function(){return c.throttle}});var l=t(338);Object.defineProperty(n,'delay',{enumerable:!0,get:function(){return l.delay}}),Object.defineProperty(n,'CANCEL',{enumerable:!0,get:function(){return l.CANCEL}});var o=t(341);Object.defineProperty(n,'detach',{enumerable:!0,get:function(){return o.detach}});var i=(function(e){return e&&e.__esModule?e:{default:e}})(t(349)),b=y(t(350)),d=y(t(351));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}n.default=i.default,n.effects=b,n.utils=d},336); __d(function(e,t,r,a){'use strict';a.__esModule=!0,a.runSaga=function(e,t){for(var r=arguments.length,a=Array(r>2?r-2:0),n=2;n=o)return e;switch(e){case'%s':return String(r[n++]);case'%d':return Number(r[n++]);case'%j':try{return JSON.stringify(r[n++])}catch(e){return'[Circular]'}default:return e}}),s=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(t)?n.showHidden=t:t&&r._extend(n,t),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),a(n,e,n.depth)}function s(e,t){var n=c.styles[t];return n?"\x1b["+c.colors[n][0]+'m'+e+"\x1b["+c.colors[n][1]+'m':e}function l(e,t){return e}function a(e,t,n){if(e.customInspect&&t&&z(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=a(e,i,n)),i}var o=(function(e,t){if(m(t))return e.stylize('undefined','undefined');if(b(t)){var n='\''+JSON.stringify(t).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return e.stylize(n,'string')}if(h(t))return e.stylize(''+t,'number');if(y(t))return e.stylize(''+t,'boolean');if(d(t))return e.stylize('null','null')})(e,t);if(o)return o;var u=Object.keys(t),c=(function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t})(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(t)),j(t)&&(u.indexOf('message')>=0||u.indexOf('description')>=0))return f(t);if(0===u.length){if(z(t)){var s=t.name?': '+t.name:'';return e.stylize('[Function'+s+']','special')}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),'regexp');if(S(t))return e.stylize(Date.prototype.toString.call(t),'date');if(j(t))return f(t)}var l,O='',w=!1,x=['{','}'];(g(t)&&(w=!0,x=['[',']']),z(t))&&(O=' [Function'+(t.name?': '+t.name:'')+']');return v(t)&&(O=' '+RegExp.prototype.toString.call(t)),S(t)&&(O=' '+Date.prototype.toUTCString.call(t)),j(t)&&(O=' '+f(t)),0!==u.length||w&&0!=t.length?n<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),'regexp'):e.stylize('[Object]','special'):(e.seen.push(t),l=w?(function(e,t,n,r,i){for(var o=[],u=0,c=t.length;u=0&&0,e+t.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60)return n[0]+(''===t?'':t+'\n ')+' '+e.join(',\n ')+' '+n[1];return n[0]+t+' '+e.join(', ')+' '+n[1]})(l,O,x)):x[0]+O+x[1]}function f(e){return'['+Error.prototype.toString.call(e)+']'}function p(e,t,n,r,i,o){var u,c,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?c=s.set?e.stylize('[Getter/Setter]','special'):e.stylize('[Getter]','special'):s.set&&(c=e.stylize('[Setter]','special')),D(r,i)||(u='['+i+']'),c||(e.seen.indexOf(s.value)<0?(c=d(n)?a(e,s.value,null):a(e,s.value,n-1)).indexOf('\n')>-1&&(c=o?c.split('\n').map(function(e){return' '+e}).join('\n').substr(2):'\n'+c.split('\n').map(function(e){return' '+e}).join('\n')):c=e.stylize('[Circular]','special')),m(u)){if(o&&i.match(/^\d+$/))return c;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,'string'))}return u+': '+c}function g(e){return Array.isArray(e)}function y(e){return'boolean'==typeof e}function d(e){return null===e}function h(e){return'number'==typeof e}function b(e){return'string'==typeof e}function m(e){return void 0===e}function v(e){return O(e)&&'[object RegExp]'===w(e)}function O(e){return'object'==typeof e&&null!==e}function S(e){return O(e)&&'[object Date]'===w(e)}function j(e){return O(e)&&('[object Error]'===w(e)||e instanceof Error)}function z(e){return'function'==typeof e}function w(e){return Object.prototype.toString.call(e)}function x(e){return e<10?'0'+e.toString(10):e.toString(10)}r.debuglog=function(e){if(m(o)&&(o=process.env.NODE_DEBUG||''),e=e.toUpperCase(),!u[e])if(new RegExp('\\b'+e+'\\b','i').test(o)){var t=process.pid;u[e]=function(){var n=r.format.apply(r,arguments);console.error('%s %d: %s',e,t,n)}}else u[e]=function(){};return u[e]},r.inspect=c,c.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]},c.styles={special:'cyan',number:'yellow',boolean:'yellow',undefined:'grey',null:'bold',string:'green',date:'magenta',regexp:'red'},r.isArray=g,r.isBoolean=y,r.isNull=d,r.isNullOrUndefined=function(e){return null==e},r.isNumber=h,r.isString=b,r.isSymbol=function(e){return'symbol'==typeof e},r.isUndefined=m,r.isRegExp=v,r.isObject=O,r.isDate=S,r.isError=j,r.isFunction=z,r.isPrimitive=function(e){return null===e||'boolean'==typeof e||'number'==typeof e||'string'==typeof e||'symbol'==typeof e||void 0===e},r.isBuffer=t(362);var E=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log('%s - %s',(e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(':'),[e.getDate(),E[e.getMonth()],t].join(' ')),r.format.apply(r,arguments))},r.inherits=t(363),r._extend=function(e,t){if(!t||!O(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},361); __d(function(t,n,o,f){o.exports=function(t){return t&&'object'==typeof t&&'function'==typeof t.copy&&'function'==typeof t.fill&&'function'==typeof t.readUInt8}},362); __d(function(t,o,e,r){'function'==typeof Object.create?e.exports=function(t,o){t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,o){t.super_=o;var e=function(){};e.prototype=o.prototype,t.prototype=new e,t.prototype.constructor=t}},363); -__d(function(e,l,t,u){Object.defineProperty(u,"__esModule",{value:!0}),u.subReducers=void 0;var a=l(308),r=l(365),i=babelHelpers.interopRequireDefault(r),b=l(512),f=babelHelpers.interopRequireDefault(b),p=l(518),s=babelHelpers.interopRequireDefault(p),d=l(521),n=babelHelpers.interopRequireDefault(d),o=l(524),R=babelHelpers.interopRequireDefault(o),c=l(527),q=babelHelpers.interopRequireDefault(c),D=l(530),H=babelHelpers.interopRequireDefault(D),v=l(533),y=babelHelpers.interopRequireDefault(v),_=l(535),g=babelHelpers.interopRequireDefault(_),m=l(537),M=babelHelpers.interopRequireDefault(m),h=u.subReducers={accounts:i.default,nations:f.default,modifyNation:s.default,wallet:n.default,key:R.default,activity:q.default,testingMode:H.default,chat:y.default,settings:g.default,dApps:M.default};u.default=(0,a.combineReducers)(h)},364); +__d(function(e,l,t,u){Object.defineProperty(u,"__esModule",{value:!0}),u.subReducers=void 0;var a=l(308),r=l(365),i=babelHelpers.interopRequireDefault(r),b=l(512),f=babelHelpers.interopRequireDefault(b),p=l(518),s=babelHelpers.interopRequireDefault(p),d=l(521),n=babelHelpers.interopRequireDefault(d),o=l(524),R=babelHelpers.interopRequireDefault(o),c=l(527),q=babelHelpers.interopRequireDefault(c),D=l(530),H=babelHelpers.interopRequireDefault(D),v=l(533),y=babelHelpers.interopRequireDefault(v),_=l(536),m=babelHelpers.interopRequireDefault(_),g=l(538),M=babelHelpers.interopRequireDefault(g),h=l(541),j=babelHelpers.interopRequireDefault(h),k=u.subReducers={accounts:i.default,nations:f.default,modifyNation:s.default,wallet:n.default,key:R.default,activity:q.default,testingMode:H.default,chat:y.default,settings:m.default,dApps:M.default,documents:j.default};u.default=(0,a.combineReducers)(k)},364); __d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isCreatingAccount=r.getCurrentAccount=r.initialState=r.buildEmptyAccount=void 0;var c=n(366),u=babelHelpers.interopRequireDefault(c),l=n(367),a=babelHelpers.interopRequireDefault(l),i=n(508),o=n(510),s=babelHelpers.interopRequireDefault(o),A=n(511),d=r.buildEmptyAccount=function(){return{id:(0,a.default)(),name:null,location:null,avatar:null,accountStore:null,networkType:'main'}},C=r.initialState={editingAccount:null,creatingAccount:null,currentAccountId:null,login:s.default.empty(),logout:s.default.empty(),accounts:[],currentCreation:null,publicKey:''};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,n=arguments[1];switch(n.type){case i.ACCOUNTS_LIST_UPDATED:return babelHelpers.extends({},e,{accounts:n.accounts});case i.CURRENT_ACCOUNT_ID_CHANGED:return babelHelpers.extends({},e,{currentAccountId:n.currentAccountId});case i.LOGIN_TASK_UPDATED:return babelHelpers.extends({},e,{login:n.loginTask});case A.START_ACCOUNT_EDITING:return babelHelpers.extends({},e,{editingAccount:b(e)});case A.CHANGE_EDITING_ACCOUNT:return babelHelpers.extends({},e,{editingAccount:n.account});case A.CANCEL_ACCOUNT_EDITING:case A.DONE_ACCOUNT_EDITING:return babelHelpers.extends({},e,{editingAccount:null});case i.START_ACCOUNT_CREATION:var t=d();return babelHelpers.extends({},e,{currentCreation:{type:'create'},creatingAccount:t,editingAccount:t});case i.CHANGE_CREATING_ACCOUNT_FIELD:return babelHelpers.extends({},e,{creatingAccount:babelHelpers.extends({},e.creatingAccount,babelHelpers.defineProperty({},n.field,n.value))});case i.START_RESTORE_ACCOUNT_USING_MNEMONIC:var r=d();return babelHelpers.extends({},e,{currentCreation:{type:'restore',mnemonic:n.mnemonic},creatingAccount:r,editingAccount:r});case i.SAVE_CREATING_ACCOUNT:return babelHelpers.extends({},e,{currentCreation:null});case A.SET_PUBLIC_KEY:return babelHelpers.extends({},e,{publicKey:n.publicKey});default:return e}};var b=r.getCurrentAccount=function(e){return u.default.find(e.accounts,function(n){return n.id===e.currentAccountId})||null};r.isCreatingAccount=function(e){return null===e.currentAccountId&&null!==e.creatingAccount}},365); __d(function(n,t,r,e){(function(){var t,u=200,i='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',o='Expected a function',f='__lodash_hash_undefined__',a=500,c='__lodash_placeholder__',l=1,s=2,h=4,p=1,v=2,_=1,g=2,y=4,d=8,b=16,w=32,m=64,x=128,j=256,A=512,k=30,O='...',I=800,R=16,E=1,z=2,S=1/0,L=9007199254740991,W=1.7976931348623157e308,C=NaN,T=4294967295,U=T-1,B=T>>>1,$=[['ary',x],['bind',_],['bindKey',g],['curry',d],['curryRight',b],['flip',A],['partial',w],['partialRight',m],['rearg',j]],D='[object Arguments]',M='[object Array]',F='[object AsyncFunction]',N='[object Boolean]',P='[object Date]',q='[object DOMException]',Z='[object Error]',K='[object Function]',V='[object GeneratorFunction]',G='[object Map]',H='[object Number]',J='[object Null]',Y='[object Object]',Q='[object Proxy]',X='[object RegExp]',nn='[object Set]',tn='[object String]',rn='[object Symbol]',en='[object Undefined]',un='[object WeakMap]',on='[object WeakSet]',fn='[object ArrayBuffer]',an='[object DataView]',cn='[object Float32Array]',ln='[object Float64Array]',sn='[object Int8Array]',hn='[object Int16Array]',pn='[object Int32Array]',vn='[object Uint8Array]',_n='[object Uint8ClampedArray]',gn='[object Uint16Array]',yn='[object Uint32Array]',dn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,jn=RegExp(mn.source),An=RegExp(xn.source),kn=/<%-([\s\S]+?)%>/g,On=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,zn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sn=/[\\^$.*+?()[\]{}|]/g,Ln=RegExp(Sn.source),Wn=/^\s+|\s+$/g,Cn=/^\s+/,Tn=/\s+$/,Un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bn=/\{\n\/\* \[wrapped with (.+)\] \*/,$n=/,? & /,Dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mn=/\\(\\)?/g,Fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nn=/\w*$/,Pn=/^[-+]0x[0-9a-f]+$/i,qn=/^0b[01]+$/i,Zn=/^\[object .+?Constructor\]$/,Kn=/^0o[0-7]+$/i,Vn=/^(?:0|[1-9]\d*)$/,Gn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hn=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,Yn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xn="[\\ud800-\\udfff]",nt='['+Qn+']',tt='['+Yn+']',rt='\\d+',et="[\\u2700-\\u27bf]",ut="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Qn+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",at="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",st='(?:'+ut+'|'+it+')',ht='(?:'+lt+'|'+it+')',pt='(?:'+tt+'|'+ot+')'+'?',vt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,at,ct].join('|')+")[\\ufe0e\\ufe0f]?"+pt+')*'),_t='(?:'+[et,at,ct].join('|')+')'+vt,gt='(?:'+[ft+tt+'?',tt,at,ct,Xn].join('|')+')',yt=RegExp("['\u2019]",'g'),dt=RegExp(tt,'g'),bt=RegExp(ot+'(?='+ot+')|'+gt+vt,'g'),wt=RegExp([lt+'?'+ut+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[nt,lt,'$'].join('|')+')',ht+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[nt,lt+st,'$'].join('|')+')',lt+'?'+st+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",'\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])','\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',rt,_t].join('|'),'g'),mt=RegExp("[\\u200d\\ud800-\\udfff"+Yn+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'],At=-1,kt={};kt[cn]=kt[ln]=kt[sn]=kt[hn]=kt[pn]=kt[vn]=kt[_n]=kt[gn]=kt[yn]=!0,kt[D]=kt[M]=kt[fn]=kt[N]=kt[an]=kt[P]=kt[Z]=kt[K]=kt[G]=kt[H]=kt[Y]=kt[X]=kt[nn]=kt[tn]=kt[un]=!1;var Ot={};Ot[D]=Ot[M]=Ot[fn]=Ot[an]=Ot[N]=Ot[P]=Ot[cn]=Ot[ln]=Ot[sn]=Ot[hn]=Ot[pn]=Ot[G]=Ot[H]=Ot[Y]=Ot[X]=Ot[nn]=Ot[tn]=Ot[rn]=Ot[vn]=Ot[_n]=Ot[gn]=Ot[yn]=!0,Ot[Z]=Ot[K]=Ot[un]=!1;var It={'\\':'\\',"'":"'",'\n':'n','\r':'r',"\u2028":'u2028',"\u2029":'u2029'},Rt=parseFloat,Et=parseInt,zt='object'==typeof n&&n&&n.Object===Object&&n,St='object'==typeof self&&self&&self.Object===Object&&self,Lt=zt||St||Function('return this')(),Wt='object'==typeof e&&e&&!e.nodeType&&e,Ct=Wt&&'object'==typeof r&&r&&!r.nodeType&&r,Tt=Ct&&Ct.exports===Wt,Ut=Tt&&zt.process,Bt=(function(){try{var n=Ct&&Ct.require&&Ct.require('util').types;return n||Ut&&Ut.binding&&Ut.binding('util')}catch(n){}})(),$t=Bt&&Bt.isArrayBuffer,Dt=Bt&&Bt.isDate,Mt=Bt&&Bt.isMap,Ft=Bt&&Bt.isRegExp,Nt=Bt&&Bt.isSet,Pt=Bt&&Bt.isTypedArray;function qt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Zt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Yt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function br(n,t){for(var r=n.length;r--&&or(t,n[r],0)>-1;);return r}var wr=sr({'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',"\u0100":'A',"\u0102":'A',"\u0104":'A',"\u0101":'a',"\u0103":'a',"\u0105":'a',"\u0106":'C',"\u0108":'C',"\u010a":'C',"\u010c":'C',"\u0107":'c',"\u0109":'c',"\u010b":'c',"\u010d":'c',"\u010e":'D',"\u0110":'D',"\u010f":'d',"\u0111":'d',"\u0112":'E',"\u0114":'E',"\u0116":'E',"\u0118":'E',"\u011a":'E',"\u0113":'e',"\u0115":'e',"\u0117":'e',"\u0119":'e',"\u011b":'e',"\u011c":'G',"\u011e":'G',"\u0120":'G',"\u0122":'G',"\u011d":'g',"\u011f":'g',"\u0121":'g',"\u0123":'g',"\u0124":'H',"\u0126":'H',"\u0125":'h',"\u0127":'h',"\u0128":'I',"\u012a":'I',"\u012c":'I',"\u012e":'I',"\u0130":'I',"\u0129":'i',"\u012b":'i',"\u012d":'i',"\u012f":'i',"\u0131":'i',"\u0134":'J',"\u0135":'j',"\u0136":'K',"\u0137":'k',"\u0138":'k',"\u0139":'L',"\u013b":'L',"\u013d":'L',"\u013f":'L',"\u0141":'L',"\u013a":'l',"\u013c":'l',"\u013e":'l',"\u0140":'l',"\u0142":'l',"\u0143":'N',"\u0145":'N',"\u0147":'N',"\u014a":'N',"\u0144":'n',"\u0146":'n',"\u0148":'n',"\u014b":'n',"\u014c":'O',"\u014e":'O',"\u0150":'O',"\u014d":'o',"\u014f":'o',"\u0151":'o',"\u0154":'R',"\u0156":'R',"\u0158":'R',"\u0155":'r',"\u0157":'r',"\u0159":'r',"\u015a":'S',"\u015c":'S',"\u015e":'S',"\u0160":'S',"\u015b":'s',"\u015d":'s',"\u015f":'s',"\u0161":'s',"\u0162":'T',"\u0164":'T',"\u0166":'T',"\u0163":'t',"\u0165":'t',"\u0167":'t',"\u0168":'U',"\u016a":'U',"\u016c":'U',"\u016e":'U',"\u0170":'U',"\u0172":'U',"\u0169":'u',"\u016b":'u',"\u016d":'u',"\u016f":'u',"\u0171":'u',"\u0173":'u',"\u0174":'W',"\u0175":'w',"\u0176":'Y',"\u0177":'y',"\u0178":'Y',"\u0179":'Z',"\u017b":'Z',"\u017d":'Z',"\u017a":'z',"\u017c":'z',"\u017e":'z',"\u0132":'IJ',"\u0133":'ij',"\u0152":'Oe',"\u0153":'oe',"\u0149":"'n","\u017f":'s'}),mr=sr({'&':'&','<':'<','>':'>','"':'"',"'":'''});function xr(n){return'\\'+It[n]}function jr(n){return mt.test(n)}function Ar(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function kr(n,t){return function(r){return n(t(r))}}function Or(n,t){for(var r=-1,e=n.length,u=0,i=[];++r','"':'"',''':"'"});var Wr=(function n(r){var e,Yn=(r=null==r?Lt:Wr.defaults(Lt.Object(),r,Wr.pick(Lt,jt))).Array,Qn=r.Date,Xn=r.Error,nt=r.Function,tt=r.Math,rt=r.Object,et=r.RegExp,ut=r.String,it=r.TypeError,ot=Yn.prototype,ft=nt.prototype,at=rt.prototype,ct=r['__core-js_shared__'],lt=ft.toString,st=at.hasOwnProperty,ht=0,pt=(e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||''))?'Symbol(src)_1.'+e:'',vt=at.toString,_t=lt.call(rt),gt=Lt._,bt=et('^'+lt.call(st).replace(Sn,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),mt=Tt?r.Buffer:t,It=r.Symbol,zt=r.Uint8Array,St=mt?mt.allocUnsafe:t,Wt=kr(rt.getPrototypeOf,rt),Ct=rt.create,Ut=at.propertyIsEnumerable,Bt=ot.splice,er=It?"function"==typeof It?It.isConcatSpreadable:"@@isConcatSpreadable":t,sr=It?"function"==typeof It?It.iterator:"@@iterator":t,Cr=It?"function"==typeof It?It.toStringTag:"@@toStringTag":t,Tr=(function(){try{var n=Di(rt,'defineProperty');return n({},'',{}),n}catch(n){}})(),Ur=r.clearTimeout!==Lt.clearTimeout&&r.clearTimeout,Br=Qn&&Qn.now!==Lt.Date.now&&Qn.now,$r=r.setTimeout!==Lt.setTimeout&&r.setTimeout,Dr=tt.ceil,Mr=tt.floor,Fr=rt.getOwnPropertySymbols,Nr=mt?mt.isBuffer:t,Pr=r.isFinite,qr=ot.join,Zr=kr(rt.keys,rt),Kr=tt.max,Vr=tt.min,Gr=Qn.now,Hr=r.parseInt,Jr=tt.random,Yr=ot.reverse,Qr=Di(r,'DataView'),Xr=Di(r,'Map'),ne=Di(r,'Promise'),te=Di(r,'Set'),re=Di(r,'WeakMap'),ee=Di(rt,'create'),ue=re&&new re,ie={},oe=lo(Qr),fe=lo(Xr),ae=lo(ne),ce=lo(te),le=lo(re),se=It?"function"==typeof It?It.prototype:"@@prototype":t,he=se?se.valueOf:t,pe=se?se.toString:t;function ve(n){if(Ef(n)&&!df(n)&&!(n instanceof de)){if(n instanceof ye)return n;if(st.call(n,'__wrapped__'))return so(n)}return new ye(n)}var _e=(function(){function n(){}return function(r){if(!Rf(r))return{};if(Ct)return Ct(r);n.prototype=r;var e=new n;return n.prototype=t,e}})();function ge(){}function ye(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function de(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function be(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=r?n:r)),n}function Ue(n,r,e,u,i,o){var f,a=r&l,c=r&s,p=r&h;if(e&&(f=i?e(n,u,i,o):e(n)),f!==t)return f;if(!Rf(n))return n;var v=df(n);if(v){if(f=(function(n){var t=n.length,r=new n.constructor(t);return t&&'string'==typeof n[0]&&st.call(n,'index')&&(r.index=n.index,r.input=n.input),r})(n),!a)return ei(n,f)}else{var _=Ni(n),g=_==K||_==V;if(xf(n))return Yu(n,a);if(_==Y||_==D||g&&!i){if(f=c||g?{}:qi(n),!a)return c?(function(n,t){return ui(n,Fi(n),t)})(n,(function(n,t){return n&&ui(t,oa(t),n)})(f,n)):(function(n,t){return ui(n,Mi(n),t)})(n,Le(f,n))}else{if(!Ot[_])return i?n:{};f=(function(n,t,r){var e,u,i,o=n.constructor;switch(t){case fn:return Qu(n);case N:case P:return new o(+n);case an:return(function(n,t){var r=t?Qu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)})(n,r);case cn:case ln:case sn:case hn:case pn:case vn:case _n:case gn:case yn:return Xu(n,r);case G:return new o;case H:case tn:return new o(n);case X:return(i=new(u=n).constructor(u.source,Nn.exec(u))).lastIndex=u.lastIndex,i;case nn:return new o;case rn:return e=n,he?rt(he.call(e)):{}}})(n,_,a)}}o||(o=new je);var y=o.get(n);if(y)return y;if(o.set(n,f),Cf(n))return n.forEach(function(t){f.add(Ue(t,r,e,t,n,o))}),f;if(zf(n))return n.forEach(function(t,u){f.set(u,Ue(t,r,e,u,n,o))}),f;var d=v?t:(p?c?Li:Si:c?oa:ia)(n);return Kt(d||n,function(t,u){d&&(t=n[u=t]),Ee(f,u,Ue(t,r,e,u,n,o))}),f}function Be(n,r,e){var u=e.length;if(null==n)return!u;for(n=rt(n);u--;){var i=e[u],o=r[i],f=n[i];if(f===t&&!(i in n)||!o(f))return!1}return!0}function $e(n,r,e){if('function'!=typeof n)throw new it(o);return eo(function(){n.apply(t,e)},r)}function De(n,t,r,e){var i=-1,o=Jt,f=!0,a=n.length,c=[],l=t.length;if(!a)return c;r&&(t=Qt(t,_r(r))),e?(o=Yt,f=!1):t.length>=u&&(o=yr,f=!1,t=new xe(t));n:for(;++i-1},we.prototype.set=function(n,t){var r=this.__data__,e=ze(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(Xr||we),string:new be}},me.prototype.delete=function(n){var t=Bi(this,n).delete(n);return this.size-=t?1:0,t},me.prototype.get=function(n){return Bi(this,n).get(n)},me.prototype.has=function(n){return Bi(this,n).has(n)},me.prototype.set=function(n,t){var r=Bi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},xe.prototype.add=xe.prototype.push=function(n){return this.__data__.set(n,f),this},xe.prototype.has=function(n){return this.__data__.has(n)},je.prototype.clear=function(){this.__data__=new we,this.size=0},je.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},je.prototype.get=function(n){return this.__data__.get(n)},je.prototype.has=function(n){return this.__data__.has(n)},je.prototype.set=function(n,t){var r=this.__data__;if(r instanceof we){var e=r.__data__;if(!Xr||e.length0&&r(f)?t>1?Ze(f,t-1,r,e,u):Xt(u,f):e||(u[u.length]=f)}return u}var Ke=ai(),Ve=ai(!0);function Ge(n,t){return n&&Ke(n,t,ia)}function He(n,t){return n&&Ve(n,t,ia)}function Je(n,t){return Ht(t,function(t){return kf(n[t])})}function Ye(n,r){for(var e=0,u=(r=Vu(r,n)).length;null!=n&&et}function tu(n,t){return null!=n&&st.call(n,t)}function ru(n,t){return null!=n&&t in rt(n)}function eu(n,r,e){for(var u=e?Yt:Jt,i=n[0].length,o=n.length,f=o,a=Yn(o),c=1/0,l=[];f--;){var s=n[f];f&&r&&(s=Qt(s,_r(r))),c=Vr(s.length,c),a[f]=!e&&(r||i>=120&&s.length>=120)?new xe(f&&s):t}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;var c=r[e];return a*('desc'==c?-1:1)}}return n.index-t.index})(n,t,r)})}function bu(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Bt.call(f,a,1),Bt.call(n,a,1);return n}function mu(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Ki(u)?Bt.call(n,u,1):Du(n,u)}}return n}function xu(n,t){return n+Mr(Jr()*(t-n+1))}function ju(n,t){var r='';if(!n||t<1||t>L)return r;do{t%2&&(r+=n),(t=Mr(t/2))&&(n+=n)}while(t);return r}function Au(n,t){return uo(no(n,t,Sa),n+'')}function ku(n){return ke(va(n))}function Ou(n,t){var r=va(n);return fo(r,Te(t,0,r.length))}function Iu(n,r,e,u){if(!Rf(n))return n;for(var i=-1,o=(r=Vu(r,n)).length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=Yn(u);++e>>1,o=n[i];null!==o&&!Uf(o)&&(r?o<=t:o=u){var l=t?null:ji(n);if(l)return Rr(l);f=!1,i=yr,c=new xe}else c=t?[]:a;n:for(;++e=u?n:Su(n,r,e)}var Ju=Ur||function(n){return Lt.clearTimeout(n)};function Yu(n,t){if(t)return n.slice();var r=n.length,e=St?St(r):new n.constructor(r);return n.copy(e),e}function Qu(n){var t=new n.constructor(n.byteLength);return new zt(t).set(new zt(n)),t}function Xu(n,t){var r=t?Qu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ni(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=Uf(n),f=r!==t,a=null===r,c=r==r,l=Uf(r);if(!a&&!l&&!o&&n>r||o&&f&&c&&!a&&!l||u&&f&&c||!e&&c||!i)return 1;if(!u&&!o&&!l&&n1?e[i-1]:t,f=i>2?e[2]:t;for(o=n.length>3&&'function'==typeof o?(i--,o):t,f&&Vi(e[0],e[1],f)&&(o=i<3?t:o,i=1),r=rt(r);++u-1?i[o?r[f]:f]:t}}function pi(n){return zi(function(r){var e=r.length,u=e,i=ye.prototype.thru;for(n&&r.reverse();u--;){var f=r[u];if('function'!=typeof f)throw new it(o);if(i&&!a&&'wrapper'==Ci(f))var a=new ye([],!0)}for(u=a?u:e;++u1&&d.reverse(),s&&ca))return!1;var l=o.get(n);if(l&&o.get(r))return l==r;var s=-1,h=!0,_=e&v?new xe:t;for(o.set(n,r),o.set(r,n);++s-1&&n%1==0&&n1?'& ':'')+t[e],t=t.join(r>2?', ':' '),n.replace(Un,'{\n/* [wrapped with '+t+'] */\n')})(e,(function(n,t){return Kt($,function(r){var e='_.'+r[0];t&r[1]&&!Jt(n,e)&&n.push(e)}),n.sort()})((function(n){var t=n.match(Bn);return t?t[1].split($n):[]})(e),r)))}function oo(n){var r=0,e=0;return function(){var u=Gr(),i=R-(u-e);if(e=u,i>0){if(++r>=I)return arguments[0]}else r=0;return n.apply(t,arguments)}}function fo(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e1?n[r-1]:t;return Lo(n,e='function'==typeof e?(n.pop(),e):t)});function Do(n){var t=ve(n);return t.__chain__=!0,t}function Mo(n,t){return t(n)}var Fo=zi(function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(t){return Ce(t,n)};return!(r>1||this.__actions__.length)&&u instanceof de&&Ki(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:Mo,args:[i],thisArg:t}),new ye(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(t),n})):this.thru(i)});var No=ii(function(n,t,r){st.call(n,r)?++n[r]:We(n,r,1)});var Po=hi(_o),qo=hi(go);function Zo(n,t){return(df(n)?Kt:Me)(n,Ui(t,3))}function Ko(n,t){return(df(n)?Vt:Fe)(n,Ui(t,3))}var Vo=ii(function(n,t,r){st.call(n,r)?n[r].push(t):We(n,r,[t])});var Go=Au(function(n,t,r){var e=-1,u='function'==typeof t,i=wf(n)?Yn(n.length):[];return Me(n,function(n){i[++e]=u?qt(t,n,r):uu(n,t,r)}),i}),Ho=ii(function(n,t,r){We(n,r,t)});function Jo(n,t){return(df(n)?Qt:pu)(n,Ui(t,3))}var Yo=ii(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]});var Qo=Au(function(n,t){if(null==n)return[];var r=t.length;return r>1&&Vi(n,t[0],t[1])?t=[]:r>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),du(n,Ze(t,1),[])}),Xo=Br||function(){return Lt.Date.now()};function nf(n,r,e){return r=e?t:r,r=n&&null==r?n.length:r,ki(n,x,t,t,t,t,r)}function tf(n,r){var e;if('function'!=typeof r)throw new it(o);return n=Nf(n),function(){return--n>0&&(e=r.apply(this,arguments)),n<=1&&(r=t),e}}var rf=Au(function(n,t,r){var e=_;if(r.length){var u=Or(r,Ti(rf));e|=w}return ki(n,e,t,r,u)}),ef=Au(function(n,t,r){var e=_|g;if(r.length){var u=Or(r,Ti(ef));e|=w}return ki(t,e,n,r,u)});function uf(n,r,e){var u,i,f,a,c,l,s=0,h=!1,p=!1,v=!0;if('function'!=typeof n)throw new it(o);function _(r){var e=u,o=i;return u=i=t,s=r,a=n.apply(o,e)}function g(n){var e=n-l;return l===t||e>=r||e<0||p&&n-s>=f}function y(){var n=Xo();if(g(n))return d(n);c=eo(y,(function(n){var t=r-(n-l);return p?Vr(t,f-(n-s)):t})(n))}function d(n){return c=t,v&&u?_(n):(u=i=t,a)}function b(){var n=Xo(),e=g(n);if(u=arguments,i=this,l=n,e){if(c===t)return(function(n){return s=n,c=eo(y,r),h?_(n):a})(l);if(p)return c=eo(y,r),_(l)}return c===t&&(c=eo(y,r)),a}return r=qf(r)||0,Rf(e)&&(h=!!e.leading,f=(p='maxWait'in e)?Kr(qf(e.maxWait)||0,r):f,v='trailing'in e?!!e.trailing:v),b.cancel=function(){c!==t&&Ju(c),s=0,u=l=i=c=t},b.flush=function(){return c===t?a:d(Xo())},b}var of=Au(function(n,t){return $e(n,1,t)}),ff=Au(function(n,t,r){return $e(n,qf(t)||0,r)});function af(n,t){if('function'!=typeof n||null!=t&&'function'!=typeof t)throw new it(o);var r=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(af.Cache||me),r}function cf(n){if('function'!=typeof n)throw new it(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}af.Cache=me;var lf=Gu(function(n,t){var r=(t=1==t.length&&df(t[0])?Qt(t[0],_r(Ui())):Qt(Ze(t,1),_r(Ui()))).length;return Au(function(e){for(var u=-1,i=Vr(e.length,r);++u=t}),yf=iu((function(){return arguments})())?iu:function(n){return Ef(n)&&st.call(n,'callee')&&!Ut.call(n,'callee')},df=Yn.isArray,bf=$t?_r($t):function(n){return Ef(n)&&Xe(n)==fn};function wf(n){return null!=n&&If(n.length)&&!kf(n)}function mf(n){return Ef(n)&&wf(n)}var xf=Nr||qa,jf=Dt?_r(Dt):function(n){return Ef(n)&&Xe(n)==P};function Af(n){if(!Ef(n))return!1;var t=Xe(n);return t==Z||t==q||'string'==typeof n.message&&'string'==typeof n.name&&!Lf(n)}function kf(n){if(!Rf(n))return!1;var t=Xe(n);return t==K||t==V||t==F||t==Q}function Of(n){return'number'==typeof n&&n==Nf(n)}function If(n){return'number'==typeof n&&n>-1&&n%1==0&&n<=L}function Rf(n){var t=typeof n;return null!=n&&('object'==t||'function'==t)}function Ef(n){return null!=n&&'object'==typeof n}var zf=Mt?_r(Mt):function(n){return Ef(n)&&Ni(n)==G};function Sf(n){return'number'==typeof n||Ef(n)&&Xe(n)==H}function Lf(n){if(!Ef(n)||Xe(n)!=Y)return!1;var t=Wt(n);if(null===t)return!0;var r=st.call(t,'constructor')&&t.constructor;return'function'==typeof r&&r instanceof r&<.call(r)==_t}var Wf=Ft?_r(Ft):function(n){return Ef(n)&&Xe(n)==X};var Cf=Nt?_r(Nt):function(n){return Ef(n)&&Ni(n)==nn};function Tf(n){return'string'==typeof n||!df(n)&&Ef(n)&&Xe(n)==tn}function Uf(n){return'symbol'==typeof n||Ef(n)&&Xe(n)==rn}var Bf=Pt?_r(Pt):function(n){return Ef(n)&&If(n.length)&&!!kt[Xe(n)]};var $f=wi(hu),Df=wi(function(n,t){return n<=t});function Mf(n){if(!n)return[];if(wf(n))return Tf(n)?Sr(n):ei(n);if(sr&&n[sr])return(function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r})(n[sr]());var t=Ni(n);return(t==G?Ar:t==nn?Rr:va)(n)}function Ff(n){return n?(n=qf(n))===S||n===-S?(n<0?-1:1)*W:n==n?n:0:0===n?n:0}function Nf(n){var t=Ff(n),r=t%1;return t==t?r?t-r:t:0}function Pf(n){return n?Te(Nf(n),0,T):0}function qf(n){if('number'==typeof n)return n;if(Uf(n))return C;if(Rf(n)){var t='function'==typeof n.valueOf?n.valueOf():n;n=Rf(t)?t+'':t}if('string'!=typeof n)return 0===n?n:+n;n=n.replace(Wn,'');var r=qn.test(n);return r||Kn.test(n)?Et(n.slice(2),r?2:8):Pn.test(n)?C:+n}function Zf(n){return ui(n,oa(n))}function Kf(n){return null==n?'':Bu(n)}var Vf=oi(function(n,t){if(Yi(t)||wf(t))ui(t,ia(t),n);else for(var r in t)st.call(t,r)&&Ee(n,r,t[r])}),Gf=oi(function(n,t){ui(t,oa(t),n)}),Hf=oi(function(n,t,r,e){ui(t,oa(t),n,e)}),Jf=oi(function(n,t,r,e){ui(t,ia(t),n,e)}),Yf=zi(Ce);var Qf=Au(function(n,r){n=rt(n);var e=-1,u=r.length,i=u>2?r[2]:t;for(i&&Vi(r[0],r[1],i)&&(u=1);++e1),t}),ui(n,Li(n),r),e&&(r=Ue(r,l|s|h,Ri));for(var u=t.length;u--;)Du(r,t[u]);return r});var la=zi(function(n,t){return null==n?{}:(function(n,t){return bu(n,t,function(t,r){return ta(n,r)})})(n,t)});function sa(n,t){if(null==n)return{};var r=Qt(Li(n),function(n){return[n]});return t=Ui(t),bu(n,r,function(n,r){return t(n,r[0])})}var ha=Ai(ia),pa=Ai(oa);function va(n){return null==n?[]:gr(n,ia(n))}var _a=li(function(n,t,r){return t=t.toLowerCase(),n+(r?ga(t):t)});function ga(n){return Aa(Kf(n).toLowerCase())}function ya(n){return(n=Kf(n))&&n.replace(Gn,wr).replace(dt,'')}var da=li(function(n,t,r){return n+(r?'-':'')+t.toLowerCase()}),ba=li(function(n,t,r){return n+(r?' ':'')+t.toLowerCase()}),wa=ci('toLowerCase');var ma=li(function(n,t,r){return n+(r?'_':'')+t.toLowerCase()});var xa=li(function(n,t,r){return n+(r?' ':'')+Aa(t)});var ja=li(function(n,t,r){return n+(r?' ':'')+t.toUpperCase()}),Aa=ci('toUpperCase');function ka(n,r,e){return n=Kf(n),(r=e?t:r)===t?(function(n){return xt.test(n)})(n)?(function(n){return n.match(wt)||[]})(n):(function(n){return n.match(Dn)||[]})(n):n.match(r)||[]}var Oa=Au(function(n,r){try{return qt(n,t,r)}catch(n){return Af(n)?n:new Xn(n)}}),Ia=zi(function(n,t){return Kt(t,function(t){t=co(t),We(n,t,rf(n[t],n))}),n});function Ra(n){return function(){return n}}var Ea=pi(),za=pi(!0);function Sa(n){return n}function La(n){return cu('function'==typeof n?n:Ue(n,l))}var Wa=Au(function(n,t){return function(r){return uu(r,n,t)}}),Ca=Au(function(n,t){return function(r){return uu(n,r,t)}});function Ta(n,t,r){var e=ia(t),u=Je(t,e);null!=r||Rf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Je(t,ia(t)));var i=!(Rf(r)&&'chain'in r&&!r.chain),o=kf(n);return Kt(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=ei(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Xt([this.value()],arguments))})}),n}function Ua(){}var Ba=yi(Qt),$a=yi(Gt),Da=yi(rr);function Ma(n){return Gi(n)?lr(co(n)):(function(n){return function(t){return Ye(t,n)}})(n)}var Fa=bi(),Na=bi(!0);function Pa(){return[]}function qa(){return!1}var Za=gi(function(n,t){return n+t},0),Ka=xi('ceil'),Va=gi(function(n,t){return n/t},1),Ga=xi('floor');var Ha,Ja=gi(function(n,t){return n*t},1),Ya=xi('round'),Qa=gi(function(n,t){return n-t},0);return ve.after=function(n,t){if('function'!=typeof t)throw new it(o);return n=Nf(n),function(){if(--n<1)return t.apply(this,arguments)}},ve.ary=nf,ve.assign=Vf,ve.assignIn=Gf,ve.assignInWith=Hf,ve.assignWith=Jf,ve.at=Yf,ve.before=tf,ve.bind=rf,ve.bindAll=Ia,ve.bindKey=ef,ve.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return df(n)?n:[n]},ve.chain=Do,ve.chunk=function(n,r,e){r=(e?Vi(n,r,e):r===t)?1:Kr(Nf(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,f=Yn(Dr(u/r));ii?0:i+e),(u=u===t||u>i?i:Nf(u))<0&&(u+=i),u=e>u?0:Pf(u);e>>0)?(n=Kf(n))&&('string'==typeof r||null!=r&&!Wf(r))&&!(r=Bu(r))&&jr(n)?Hu(Sr(n),0,e):n.split(r,e):[]},ve.spread=function(n,t){if('function'!=typeof n)throw new it(o);return t=null==t?0:Kr(Nf(t),0),Au(function(r){var e=r[t],u=Hu(r,0,t);return e&&Xt(u,e),qt(n,this,u)})},ve.tail=function(n){var t=null==n?0:n.length;return t?Su(n,1,t):[]},ve.take=function(n,r,e){return n&&n.length?Su(n,0,(r=e||r===t?1:Nf(r))<0?0:r):[]},ve.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?Su(n,(r=u-(r=e||r===t?1:Nf(r)))<0?0:r,u):[]},ve.takeRightWhile=function(n,t){return n&&n.length?Fu(n,Ui(t,3),!1,!0):[]},ve.takeWhile=function(n,t){return n&&n.length?Fu(n,Ui(t,3)):[]},ve.tap=function(n,t){return t(n),n},ve.throttle=function(n,t,r){var e=!0,u=!0;if('function'!=typeof n)throw new it(o);return Rf(r)&&(e='leading'in r?!!r.leading:e,u='trailing'in r?!!r.trailing:u),uf(n,t,{leading:e,maxWait:t,trailing:u})},ve.thru=Mo,ve.toArray=Mf,ve.toPairs=ha,ve.toPairsIn=pa,ve.toPath=function(n){return df(n)?Qt(n,co):Uf(n)?[n]:ei(ao(Kf(n)))},ve.toPlainObject=Zf,ve.transform=function(n,t,r){var e=df(n),u=e||xf(n)||Bf(n);if(t=Ui(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:Rf(n)&&kf(i)?_e(Wt(n)):{}}return(u?Kt:Ge)(n,function(n,e,u){return t(r,n,e,u)}),r},ve.unary=function(n){return nf(n,1)},ve.union=Ro,ve.unionBy=Eo,ve.unionWith=zo,ve.uniq=function(n){return n&&n.length?$u(n):[]},ve.uniqBy=function(n,t){return n&&n.length?$u(n,Ui(t,2)):[]},ve.uniqWith=function(n,r){return r='function'==typeof r?r:t,n&&n.length?$u(n,t,r):[]},ve.unset=function(n,t){return null==n||Du(n,t)},ve.unzip=So,ve.unzipWith=Lo,ve.update=function(n,t,r){return null==n?n:Mu(n,t,Ku(r))},ve.updateWith=function(n,r,e,u){return u='function'==typeof u?u:t,null==n?n:Mu(n,r,Ku(e),u)},ve.values=va,ve.valuesIn=function(n){return null==n?[]:gr(n,oa(n))},ve.without=Wo,ve.words=ka,ve.wrap=function(n,t){return sf(Ku(t),n)},ve.xor=Co,ve.xorBy=To,ve.xorWith=Uo,ve.zip=Bo,ve.zipObject=function(n,t){return qu(n||[],t||[],Ee)},ve.zipObjectDeep=function(n,t){return qu(n||[],t||[],Iu)},ve.zipWith=$o,ve.entries=ha,ve.entriesIn=pa,ve.extend=Gf,ve.extendWith=Hf,Ta(ve,ve),ve.add=Za,ve.attempt=Oa,ve.camelCase=_a,ve.capitalize=ga,ve.ceil=Ka,ve.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=qf(e))==e?e:0),r!==t&&(r=(r=qf(r))==r?r:0),Te(qf(n),r,e)},ve.clone=function(n){return Ue(n,h)},ve.cloneDeep=function(n){return Ue(n,l|h)},ve.cloneDeepWith=function(n,r){return Ue(n,l|h,r='function'==typeof r?r:t)},ve.cloneWith=function(n,r){return Ue(n,h,r='function'==typeof r?r:t)},ve.conformsTo=function(n,t){return null==t||Be(n,t,ia(t))},ve.deburr=ya,ve.defaultTo=function(n,t){return null==n||n!=n?t:n},ve.divide=Va,ve.endsWith=function(n,r,e){n=Kf(n),r=Bu(r);var u=n.length,i=e=e===t?u:Te(Nf(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},ve.eq=vf,ve.escape=function(n){return(n=Kf(n))&&An.test(n)?n.replace(xn,mr):n},ve.escapeRegExp=function(n){return(n=Kf(n))&&Ln.test(n)?n.replace(Sn,'\\$&'):n},ve.every=function(n,r,e){var u=df(n)?Gt:Ne;return e&&Vi(n,r,e)&&(r=t),u(n,Ui(r,3))},ve.find=Po,ve.findIndex=_o,ve.findKey=function(n,t){return ur(n,Ui(t,3),Ge)},ve.findLast=qo,ve.findLastIndex=go,ve.findLastKey=function(n,t){return ur(n,Ui(t,3),He)},ve.floor=Ga,ve.forEach=Zo,ve.forEachRight=Ko,ve.forIn=function(n,t){return null==n?n:Ke(n,Ui(t,3),oa)},ve.forInRight=function(n,t){return null==n?n:Ve(n,Ui(t,3),oa)},ve.forOwn=function(n,t){return n&&Ge(n,Ui(t,3))},ve.forOwnRight=function(n,t){return n&&He(n,Ui(t,3))},ve.get=na,ve.gt=_f,ve.gte=gf,ve.has=function(n,t){return null!=n&&Pi(n,t,tu)},ve.hasIn=ta,ve.head=bo,ve.identity=Sa,ve.includes=function(n,t,r,e){n=wf(n)?n:va(n),r=r&&!e?Nf(r):0;var u=n.length;return r<0&&(r=Kr(u+r,0)),Tf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&or(n,t,r)>-1},ve.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:Nf(r);return u<0&&(u=Kr(e+u,0)),or(n,t,u)},ve.inRange=function(n,r,e){return r=Ff(r),e===t?(e=r,r=0):e=Ff(e),(function(n,t,r){return n>=Vr(t,r)&&n=-L&&n<=L},ve.isSet=Cf,ve.isString=Tf,ve.isSymbol=Uf,ve.isTypedArray=Bf,ve.isUndefined=function(n){return n===t},ve.isWeakMap=function(n){return Ef(n)&&Ni(n)==un},ve.isWeakSet=function(n){return Ef(n)&&Xe(n)==on},ve.join=function(n,t){return null==n?'':qr.call(n,t)},ve.kebabCase=da,ve.last=jo,ve.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=Nf(e))<0?Kr(u+i,0):Vr(i,u-1)),r==r?(function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e})(n,r,i):ir(n,ar,i,!0)},ve.lowerCase=ba,ve.lowerFirst=wa,ve.lt=$f,ve.lte=Df,ve.max=function(n){return n&&n.length?Pe(n,Sa,nu):t},ve.maxBy=function(n,r){return n&&n.length?Pe(n,Ui(r,2),nu):t},ve.mean=function(n){return cr(n,Sa)},ve.meanBy=function(n,t){return cr(n,Ui(t,2))},ve.min=function(n){return n&&n.length?Pe(n,Sa,hu):t},ve.minBy=function(n,r){return n&&n.length?Pe(n,Ui(r,2),hu):t},ve.stubArray=Pa,ve.stubFalse=qa,ve.stubObject=function(){return{}},ve.stubString=function(){return''},ve.stubTrue=function(){return!0},ve.multiply=Ja,ve.nth=function(n,r){return n&&n.length?yu(n,Nf(r)):t},ve.noConflict=function(){return Lt._===this&&(Lt._=gt),this},ve.noop=Ua,ve.now=Xo,ve.pad=function(n,t,r){n=Kf(n);var e=(t=Nf(t))?zr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return di(Mr(u),r)+n+di(Dr(u),r)},ve.padEnd=function(n,t,r){n=Kf(n);var e=(t=Nf(t))?zr(n):0;return t&&er){var u=n;n=r,r=u}if(e||n%1||r%1){var i=Jr();return Vr(n+i*(r-n+Rt('1e-'+((i+'').length-1))),r)}return xu(n,r)},ve.reduce=function(n,t,r){var e=df(n)?nr:hr,u=arguments.length<3;return e(n,Ui(t,4),r,u,Me)},ve.reduceRight=function(n,t,r){var e=df(n)?tr:hr,u=arguments.length<3;return e(n,Ui(t,4),r,u,Fe)},ve.repeat=function(n,r,e){return r=(e?Vi(n,r,e):r===t)?1:Nf(r),ju(Kf(n),r)},ve.replace=function(){var n=arguments,t=Kf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},ve.result=function(n,r,e){var u=-1,i=(r=Vu(r,n)).length;for(i||(i=1,n=t);++uL)return[];var r=T,e=Vr(n,T);t=Ui(t),n-=T;for(var u=vr(e,t);++r=o)return n;var a=e-zr(u);if(a<1)return u;var c=f?Hu(f,0,a).join(''):n.slice(0,a);if(i===t)return c+u;if(f&&(a+=c.length-a),Wf(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=et(i.source,Kf(Nn.exec(i))+'g')),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===t?a:h)}}else if(n.indexOf(Bu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+u},ve.unescape=function(n){return(n=Kf(n))&&jn.test(n)?n.replace(mn,Lr):n},ve.uniqueId=function(n){var t=++ht;return Kf(n)+t},ve.upperCase=ja,ve.upperFirst=Aa,ve.each=Zo,ve.eachRight=Ko,ve.first=bo,Ta(ve,(Ha={},Ge(ve,function(n,t){st.call(ve.prototype,t)||(Ha[t]=n)}),Ha),{chain:!1}),ve.VERSION="4.17.10",Kt(['bind','bindKey','curry','curryRight','partial','partialRight'],function(n){ve[n].placeholder=ve}),Kt(['drop','take'],function(n,r){de.prototype[n]=function(e){e=e===t?1:Kr(Nf(e),0);var u=this.__filtered__&&!r?new de(this):this.clone();return u.__filtered__?u.__takeCount__=Vr(e,u.__takeCount__):u.__views__.push({size:Vr(e,T),type:n+(u.__dir__<0?'Right':'')}),u},de.prototype[n+'Right']=function(t){return this.reverse()[n](t).reverse()}}),Kt(['filter','map','takeWhile'],function(n,t){var r=t+1,e=r==E||3==r;de.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Ui(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),Kt(['head','last'],function(n,t){var r='take'+(t?'Right':'');de.prototype[n]=function(){return this[r](1).value()[0]}}),Kt(['initial','tail'],function(n,t){var r='drop'+(t?'':'Right');de.prototype[n]=function(){return this.__filtered__?new de(this):this[r](1)}}),de.prototype.compact=function(){return this.filter(Sa)},de.prototype.find=function(n){return this.filter(n).head()},de.prototype.findLast=function(n){return this.reverse().find(n)},de.prototype.invokeMap=Au(function(n,t){return'function'==typeof n?new de(this):this.map(function(r){return uu(r,n,t)})}),de.prototype.reject=function(n){return this.filter(cf(Ui(n)))},de.prototype.slice=function(n,r){n=Nf(n);var e=this;return e.__filtered__&&(n>0||r<0)?new de(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=Nf(r))<0?e.dropRight(-r):e.take(r-n)),e)},de.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},de.prototype.toArray=function(){return this.take(T)},Ge(de.prototype,function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=ve[u?'take'+('last'==r?'Right':''):r],o=u||/^find/.test(r);i&&(ve.prototype[r]=function(){var r=this.__wrapped__,f=u?[1]:arguments,a=r instanceof de,c=f[0],l=a||df(r),s=function(n){var t=i.apply(ve,Xt([n],f));return u&&h?t[0]:t};l&&e&&'function'==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){r=_?r:new de(this);var g=n.apply(r,f);return g.__actions__.push({func:Mo,args:[s],thisArg:t}),new ye(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?u?g.value()[0]:g.value():g)})}),Kt(['pop','push','shift','sort','splice','unshift'],function(n){var t=ot[n],r=/^(?:push|sort|unshift)$/.test(n)?'tap':'thru',e=/^(?:pop|shift)$/.test(n);ve.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(df(u)?u:[],n)}return this[r](function(r){return t.apply(df(r)?r:[],n)})}}),Ge(de.prototype,function(n,t){var r=ve[t];if(r){var e=r.name+'';(ie[e]||(ie[e]=[])).push({name:t,func:r})}}),ie[vi(t,g).name]=[{name:'wrapper',func:t}],de.prototype.clone=function(){var n=new de(this.__wrapped__);return n.__actions__=ei(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=ei(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=ei(this.__views__),n},de.prototype.reverse=function(){if(this.__filtered__){var n=new de(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},de.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=df(n),e=t<0,u=r?n.length:0,i=(function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},ve.prototype.plant=function(n){for(var r,e=this;e instanceof ge;){var u=so(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},ve.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof de){var r=n;return this.__actions__.length&&(r=new de(this)),(r=r.reverse()).__actions__.push({func:Mo,args:[Io],thisArg:t}),new ye(r,this.__chain__)}return this.thru(Io)},ve.prototype.toJSON=ve.prototype.valueOf=ve.prototype.value=function(){return Nu(this.__wrapped__,this.__actions__)},ve.prototype.first=ve.prototype.head,sr&&(ve.prototype[sr]=function(){return this}),ve})();'function'==typeof define&&'object'==typeof define.amd&&define.amd?(Lt._=Wr,define(function(){return Wr})):Ct?((Ct.exports=Wr)._=Wr,Wt._=Wr):Lt._=Wr}).call(this)},366); __d(function(n,t,i,o){'use strict';var r=t(368);function c(){var n=r.randomBytes(16);return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(n=n.toString('hex').match(/(.{8})(.{4})(.{4})(.{4})(.{12})/)).shift(),n.join('-')}function u(n){r.randomBytes(16,function(t,i){i[6]=15&i[6]|64,i[8]=63&i[8]|128,(i=i.toString('hex').match(/(.{8})(.{4})(.{4})(.{4})(.{12})/)).shift(),n(null,i.join('-'))})}function e(n){return'function'!=typeof n?c():u(n)}(o=i.exports=e).async=u,o.sync=c,o.valid=e},367); @@ -506,15 +506,15 @@ __d(function(e,n,r,t){var f=n(371);function u(e){var n=new Buffer(4);return n.wr __d(function(n,r,t,o){t.exports=function(n,r){for(var t=n.length,o=-1;++ow||new u(e).cmp(g.modulus)>=0)throw new Error('decryption error');a=n?c(new u(e),g):l(e,g);var d=new Buffer(w-a.length);if(d.fill(0),a=Buffer.concat([d,a],w),4===t)return(function(r,e){r.modulus;var n=r.modulus.byteLength(),t=(e.length,h('sha1').update(new Buffer('')).digest()),o=t.length;if(0!==e[0])throw new Error('decryption error');var u=e.slice(1,o+1),l=e.slice(o+1),c=f(u,i(l,o)),a=f(l,i(c,n-o-1));if((function(r,e){r=new Buffer(r),e=new Buffer(e);var n=0,t=r.length;r.length!==e.length&&(n++,t=Math.min(r.length,e.length));var o=-1;for(;++o=e.length){i++;break}var f=e.slice(2,o-1);e.slice(o-1,o);('0002'!==t.toString('hex')&&!n||'0001'!==t.toString('hex')&&n)&&i++;f.length<8&&i++;if(i)throw new Error('decryption error');return e.slice(o)})(0,a,n);if(3===t)return a;throw new Error('unknown padding')}},507); -__d(function(C,n,_,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MNEMONIC_CONFIRMED=t.START_RESTORE_ACCOUNT_USING_MNEMONIC=t.PERFORM_DEFERRED_LOGIN=t.SAVE_CREATING_ACCOUNT=t.CHANGE_CREATING_ACCOUNT_FIELD=t.SAVE_PASSWORD=t.SAVE_PIN_CODE=t.CHECK_PASSWORD=t.CHECK_PIN_CODE=t.START_ACCOUNT_CREATION=t.LOGOUT=t.LOGIN_TASK_UPDATED=t.LOGIN=t.CURRENT_ACCOUNT_ID_CHANGED=t.ACCOUNTS_LIST_UPDATED=void 0,t.accountListUpdated=function(C){return{type:E,accounts:C}},t.currentAccountIdChanged=function(C){return{type:e,currentAccountId:C}},t.login=function(C,n){var _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:A,accountId:C,password:n,deferred:_}},t.performDeferredLogin=function(){return{type:D}},t.loginTaskUpdated=function(C){return{type:N,loginTask:C}},t.logout=function(){return{type:c}},t.startAccountCreation=function(){return{type:O}},t.checkPinCode=function(C,n,_){return{type:T,accountId:n,pinCode:C,callback:_}},t.checkPassword=function(C,n,_){return{type:r,accountId:n,password:C,callback:_}},t.savePinCode=function(C,n,_){return{type:o,accountId:n,pinCode:C,callback:_}},t.savePassword=function(C,n,_){return{type:I,accountId:n,password:C,callback:_}},t.changeCreatingAccountField=function(C,n){return{type:u,field:C,value:n}},t.saveCreatingAccount=function(C){return{type:R,callback:C}},t.startRestoreAccountUsingMnemonic=function(C){return{type:a,mnemonic:C}},t.mnemonicConfirmed=function(C){return{type:S,callback:C}},n(509);var E=t.ACCOUNTS_LIST_UPDATED='ACCOUNTS_LIST_UPDATED',e=t.CURRENT_ACCOUNT_ID_CHANGED='CURRENT_ACCOUNT_ID_CHANGED',A=t.LOGIN='LOGIN',N=t.LOGIN_TASK_UPDATED='LOGIN_TASK_UPDATED',c=t.LOGOUT='LOGOUT',O=t.START_ACCOUNT_CREATION='START_ACCOUNT_CREATION',T=t.CHECK_PIN_CODE='CHECK_PIN_CODE',r=t.CHECK_PASSWORD='CHECK_PASSWORD',o=t.SAVE_PIN_CODE='SAVE_PIN_CODE',I=t.SAVE_PASSWORD='SAVE_PASSWORD',u=t.CHANGE_CREATING_ACCOUNT_FIELD='CHANGE_CREATING_ACCOUNT_FIELD',R=t.SAVE_CREATING_ACCOUNT='SAVE_CREATING_ACCOUNT',D=t.PERFORM_DEFERRED_LOGIN='PERFORM_DEFERRED_LOGIN',a=t.START_RESTORE_ACCOUNT_USING_MNEMONIC='START_RESTORE_ACCOUNT_USING_MNEMONIC',S=t.MNEMONIC_CONFIRMED='MNEMONIC_CONFIRMED'},508); +__d(function(C,_,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MNEMONIC_CONFIRMED=t.START_RESTORE_ACCOUNT_USING_MNEMONIC=t.PERFORM_DEFERRED_LOGIN=t.SAVE_CREATING_ACCOUNT=t.CHANGE_CREATING_ACCOUNT_FIELD=t.SAVE_PASSWORD=t.SAVE_PIN_CODE=t.CHECK_PASSWORD=t.CHECK_PIN_CODE=t.START_ACCOUNT_CREATION=t.LOGOUT=t.LOGIN_TASK_UPDATED=t.VALIDATE_MNEMONIC_WITH_ACCOUNT=t.LOGIN=t.CURRENT_ACCOUNT_ID_CHANGED=t.ACCOUNTS_LIST_UPDATED=void 0,t.accountListUpdated=function(C){return{type:E,accounts:C}},t.currentAccountIdChanged=function(C){return{type:A,currentAccountId:C}},t.login=function(C,_){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:N,accountId:C,password:_,deferred:n}},t.validateMnemonicWithAccount=function(C,_){return{type:e,accountId:C,callback:_}},t.performDeferredLogin=function(){return{type:D}},t.loginTaskUpdated=function(C){return{type:c,loginTask:C}},t.logout=function(){return{type:T}},t.startAccountCreation=function(){return{type:O}},t.checkPinCode=function(C,_,n){return{type:I,accountId:_,pinCode:C,callback:n}},t.checkPassword=function(C,_,n){return{type:o,accountId:_,password:C,callback:n}},t.savePinCode=function(C,_,n){return{type:r,accountId:_,pinCode:C,callback:n}},t.savePassword=function(C,_,n){return{type:u,accountId:_,password:C,callback:n}},t.changeCreatingAccountField=function(C,_){return{type:R,field:C,value:_}},t.saveCreatingAccount=function(C){return{type:a,callback:C}},t.startRestoreAccountUsingMnemonic=function(C){return{type:i,mnemonic:C}},t.mnemonicConfirmed=function(C){return{type:S,callback:C}},_(509);var E=t.ACCOUNTS_LIST_UPDATED='ACCOUNTS_LIST_UPDATED',A=t.CURRENT_ACCOUNT_ID_CHANGED='CURRENT_ACCOUNT_ID_CHANGED',N=t.LOGIN='LOGIN',e=t.VALIDATE_MNEMONIC_WITH_ACCOUNT='VALIDATE_MNEMONIC_WITH_ACCOUNT',c=t.LOGIN_TASK_UPDATED='LOGIN_TASK_UPDATED',T=t.LOGOUT='LOGOUT',O=t.START_ACCOUNT_CREATION='START_ACCOUNT_CREATION',I=t.CHECK_PIN_CODE='CHECK_PIN_CODE',o=t.CHECK_PASSWORD='CHECK_PASSWORD',r=t.SAVE_PIN_CODE='SAVE_PIN_CODE',u=t.SAVE_PASSWORD='SAVE_PASSWORD',R=t.CHANGE_CREATING_ACCOUNT_FIELD='CHANGE_CREATING_ACCOUNT_FIELD',a=t.SAVE_CREATING_ACCOUNT='SAVE_CREATING_ACCOUNT',D=t.PERFORM_DEFERRED_LOGIN='PERFORM_DEFERRED_LOGIN',i=t.START_RESTORE_ACCOUNT_USING_MNEMONIC='START_RESTORE_ACCOUNT_USING_MNEMONIC',S=t.MNEMONIC_CONFIRMED='MNEMONIC_CONFIRMED'},508); __d(function(n,_,c,d){},509); __d(function(e,r,l,n){Object.defineProperty(n,"__esModule",{value:!0});var u=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"success",value:function(e){return{inProgress:!1,result:e,error:null}}},{key:"failure",value:function(e){return{inProgress:!1,result:null,error:e}}},{key:"pending",value:function(){return{inProgress:!0,result:null,error:null}}},{key:"empty",value:function(){return{inProgress:!1,result:null,error:null}}}]),e})();n.default=u},510); __d(function(n,t,c,C){Object.defineProperty(C,"__esModule",{value:!0}),C.startAccountEditing=function(n){return{type:_,account:n}},C.changeEditingAccount=function(n){return{type:E,account:n}},C.cancelAccountEditing=function(){return{type:N}},C.doneAccountEditing=function(){return{type:e}},C.saveEditingAccount=function(n){return{type:T,account:n}},C.setPublicKey=function(n){return{type:u,publicKey:n}};var _=C.START_ACCOUNT_EDITING='START_ACCOUNT_EDITING',E=C.CHANGE_EDITING_ACCOUNT='CHANGE_EDITING_ACCOUNT',e=C.DONE_ACCOUNT_EDITING='DONE_ACCOUNT_EDITING',N=C.CANCEL_ACCOUNT_EDITING='CANCEL_ACCOUNT_EDITING',T=C.SAVE_EDITING_ACCOUNT='SAVE_EDITING_ACCOUNT',u=C.SET_PUBLIC_KEY='SET_PUBLIC_KEY'},511); __d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.openedNation=r.initialState=void 0;var a=n(366),s=babelHelpers.interopRequireDefault(a),i=n(513),l=n(514),o=n(517),d=r.initialState={nations:[],myNationIds:[],searchString:null,selectedTab:'ALL_NATIONS',openedNationId:null,creatingNation:null,inProgress:!1};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,n=arguments[1];switch(n.type){case o.SERVICES_DESTROYED:return d;case i.SWITCH_NATIONS_TAB:return babelHelpers.extends({},e,{selectedTab:n.tab});case i.OPEN_NATION:return babelHelpers.extends({},e,{openedNationId:n.nationId});case i.NATIONS_FETCH_STARTED:return babelHelpers.extends({},e,{inProgress:!0});case i.NATIONS_UPDATED:var t=(0,s.default)(n.nations).filter(function(e){return e.joined}).map(function(e){return e.id}).value();return babelHelpers.extends({},e,{nations:n.nations,myNationIds:t});case i.DONE_FETCH_NATIONS:return babelHelpers.extends({},e,{inProgress:!1});case i.REQUEST_JOIN_NATION:case i.REQUEST_LEAVE_NATION:return babelHelpers.extends({},e,{inProgress:!0});case i.CANCEL_LOADING:return babelHelpers.extends({},e,{inProgress:!1});default:return e}};r.openedNation=function(e){return null!==e.openedNationId?(0,l.resolveNation)(e.nations,e.openedNationId):null}},512); __d(function(n,N,t,T){Object.defineProperty(T,"__esModule",{value:!0}),T.switchNationTab=function(n){return{type:e,tab:n}},T.openNation=function(n){return{type:_,nationId:n}},T.fetchNationsStarted=function(){return{type:A}},T.joinNation=function(){return{type:O}},T.leaveNation=function(){return{type:i}},T.doneFetchNations=function(){return{type:E}},T.cancelLoading=function(){return{type:o}},T.nationsUpdated=function(n){return{type:I,nations:n}};var e=T.SWITCH_NATIONS_TAB='SWITCH_NATIONS_TAB',_=T.OPEN_NATION='OPEN_NATION',A=T.NATIONS_FETCH_STARTED='NATIONS_FETCH_STARTED',E=T.DONE_FETCH_NATIONS='DONE_FETCH_NATIONS',o=T.CANCEL_LOADING='CANCEL_LOADING',O=T.REQUEST_JOIN_NATION='REQUEST_JOIN_NATION',i=T.REQUEST_LEAVE_NATION='REQUEST_LEAVE_NATION',I=T.NATIONS_UPDATED='NATIONS_UPDATED'},513); __d(function(t,e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.resolveNation=function(t,e){var n=a.default.find(t,function(t){return t.id===e});if(void 0===n)return null;return n},i.resolveStatus=function(t){if(-1===t.idInSmartContract&&null===t.tx)return{key:'draft',type:'NONE',code:0};if(null===t.tx)return null;return{key:t.tx.type+"."+t.tx.status,type:t.tx.type,code:t.tx.status}},i.nationIsDraft=function(t){return-1===t.idInSmartContract&&null===t.tx},i.convertDraftToDatabase=l,i.convertNationToBlockchain=function(t){return{nationName:t.nationName,nationDescription:t.nationDescription,exists:t.exists,virtualNation:t.virtualNation,nationCode:t.nationCode,lawEnforcementMechanism:t.lawEnforcementMechanism,profit:t.profit,nonCitizenUse:t.nonCitizenUse,diplomaticRecognition:t.diplomaticRecognition,decisionMakingProcess:t.decisionMakingProcess,governanceService:t.governanceService}},i.convertToEditingNation=d,i.convertToDatabase=function(t){return babelHelpers.extends({},l(d(t),t.id,t.accountId),{idInSmartContract:t.idInSmartContract,created:t.created,citizens:t.citizens,joined:t.joined,tx:t.tx})},i.convertFromDatabase=function(t){return{id:t.id,accountId:t.accountId,idInSmartContract:t.idInSmartContract,created:t.created,nationName:t.nationName,nationDescription:t.nationDescription,exists:t.exists,virtualNation:t.virtualNation,nationCode:t.nationCode,lawEnforcementMechanism:t.lawEnforcementMechanism,profit:t.profit,nonCitizenUse:t.nonCitizenUse,diplomaticRecognition:t.diplomaticRecognition,decisionMakingProcess:t.decisionMakingProcess,governanceService:t.governanceService.split(', ').filter(function(t){return!a.default.isEmpty(t)}),citizens:t.citizens,joined:t.joined,tx:null===t.tx?null:babelHelpers.extends({},t.tx),ethAddress:''}},i.nationIsValid=function(t){return!(a.default.isEmpty(t.nationName)||a.default.isEmpty(t.nationDescription)||null===t.virtualNation||void 0===t.virtualNation||a.default.isEmpty(t.nationCode)||a.default.isEmpty(t.lawEnforcementMechanism)||a.default.isEmpty(t.decisionMakingProcess)||a.default.isEmpty(t.governanceService))},i.statusColor=function(t){switch(t){case s.TX_JOB_STATUS.SUCCESS:return c.default.listItemTextState.accepted;case s.TX_JOB_STATUS.FAILED:return c.default.listItemTextState.rejected;case s.TX_JOB_STATUS.PENDING:return c.default.listItemTextState.pending;default:return c.default.listItemTextState.default}};var o=e(366),a=babelHelpers.interopRequireDefault(o),r=e(515),c=babelHelpers.interopRequireDefault(r),s=e(516);function l(t,e,n){return{id:e,accountId:n,created:!1,nationName:t.nationName,nationDescription:t.nationDescription,exists:t.exists,virtualNation:null==t.virtualNation||t.virtualNation,nationCode:t.nationCode,lawEnforcementMechanism:t.lawEnforcementMechanism,profit:t.profit,nonCitizenUse:t.nonCitizenUse,diplomaticRecognition:t.diplomaticRecognition,decisionMakingProcess:t.decisionMakingProcess,governanceService:t.governanceService.join(', ')}}function d(t){return babelHelpers.extends({},t)}},514); -__d(function(t,o,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.convertHex=void 0;var e=o(17),n=a.convertHex=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.replace('#','');return"rgba("+parseInt(r.substring(0,2),16)+","+parseInt(r.substring(2,4),16)+","+parseInt(r.substring(4,6),16)+","+o+")"},i=function(t,o){return n(t,o)};a.default={shadeOf:i,shadeOfBitnationColor:function(t){return n("#4A90E2",t)},shadeOfBitnationLightColor:function(t){return n("#C0C0C0",t)},BitnationColor:"#4A90E2",BitnationDarkColor:'#1B395C',BitnationLightColor:"#C0C0C0",BitnationVeryLightColor:'#FFFFFF',BitnationBackgroundColor:"#3e9eff",BitnationHighlightColor:"#F5A623",BitnationDarkGrayColor:"#58595B",BitnationLightGrayColor:'#BBBDBF',BitnationHighlightYellowColor:'#FFCE00',BitnationGrayColor:"#929497",BitnationLinkOrangeColor:"#FF8B00",BitnationActionColor:'#FB8C25',BitnationBlackAlphaColor:'rgba(0, 0, 0, 0.87)',titleColor:"#F5A623",panelViewTitleColor:"#58595B",currency:'#FFDD15',placeholderTextColor:"#929497",tabBarBackgroundColor:"#58595B",tabBarSelectedLabelColor:"rgba(255,255,255,0.45)",tabBarSelectedButtonColor:"rgba(255,255,255,0.45)",tabBarLabelColor:'white',tabBarButtonColor:'white',toolBarBackgroundColor:"#3e9eff",activeTabStyle:"#FF8B00",tabTextStyle:"#FF8B00",panelView:'rgba(255,255,255,0.2)',panelViewAlert:'rgba(245, 166, 35, 0.2)',BlueGrey:'#607D8B',BlueMed:'#72A4DE',BlueGrayMed:'#6D6D72',buttonColor:'#1C497E',disabledButtonTitleColor:'#5F6D7D',disabledButtonColor:'#F1F2F6',borderColor:i("#C0C0C0",.4),textColor:'#444A64',textPrimary:'#4A4A4A',textSecondary:'#9094A3',textLight:'#DADCE5',buttonPrimary:'#80E5CF',primary_red:'#FF5469',sectionListSeparator:'rgba(255,255,255,0.2)',sectionListHeaderText:'white',sectionListHeaderContainer:'#3a3a3a',sectionListItemContainerBackground:'transparent',listItemTextState:{default:'gray',accepted:'#4CAF50',pending:'#DADCE5',rejected:'#FFC107',citizensCount:'#DADCE5'},panelBoxColor:'#1b395c',instructionTextColor:'#72a4de',navButtonTextColor:'#007aff',disabledBoxColor:'#bcdcff',disabledTextColor:'#275284',actionButtonColor:'#1c497e',privateKeyTextInputLabelColor:'#F1F1F1',navBarTextColor:"#58595B",navBarButtonColor:"#FF8B00",navBarBackgroundColor:'transparent',navigationButtonColor:'ios'===e.Platform.OS?"#FF8B00":'#FFFFFF',statusBarColorOther:'black',statusBarColorIOS:'black',androidNavigationButtons:'white',white:'white',Transparent:'transparent',thumbTintColor:'rgb(252, 228, 149)',maximumTrackTintColor:'#BBBDBF',minimumTrackTintColor:'#FF8B00'}},515); -__d(function(_,E,N,T){Object.defineProperty(T,"__esModule",{value:!0});var I=T.KEY_PAGE_ROW_COUNT=4,O=T.KEY_PAGE_COUNT=2,A=T.KEY_COLUMN_COUNT=3,S=(T.KEY_PAGE_LENGTH=I*A,T.KEY_ROW_COUNT=I*O);T.KEY_LENGTH=A*S,T.MINIMAL_PASSWORD_LENGTH=8,T.MINIMAL_PIN_CODE_LENGTH=6,T.MAXIMAL_PIN_CODE_LENGTH=8,T.BALANCE_EXPIRATION_INTERVAL=1e4,T.ACTIVITY_MESSAGES_LIMIT=100,T.NATION_INDEX_RECOVER_PERIOD=1e4,T.TRANSACTIONS_WORKER_RECOVER_DELAY=3e4,T.FOUR_INCHES=568,T.FOUR_DOT_SEVEN_INCHES=667,T.FIVE_DOT_FIVE_INCHES=736,T.FIVE_DOT_EIGHT_INCHES=812,T.PAT_DEV_ADDRESS='0xc3830a6206fb9d089d1ce824598978532d14d8aa',T.PAT_PROD_ADDRESS='0xBB1fA4FdEB3459733bF67EbC6f893003fA976a82',T.TX_JOB_STATUS={UNKNOWN:0,PENDING:200,SUCCESS:300,FAILED:400},T.TX_JOB_TYPE={NATION_CREATE:'NATION_CREATE',NATION_JOIN:'NATION_JOIN',NATION_LEAVE:'NATION_LEAVE',ETH_SEND:'ETH_SEND'},T.NATIONS_DEV_ENDPOINT='https://nation-cache.herokuapp.com/nations/development',T.NATIONS_PROD_ENDPOINT='https://nation-cache.herokuapp.com/nations/production'},516); +__d(function(t,o,r,a){Object.defineProperty(a,"__esModule",{value:!0});var e=a.convertHex=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.replace('#','');return"rgba("+parseInt(r.substring(0,2),16)+","+parseInt(r.substring(2,4),16)+","+parseInt(r.substring(4,6),16)+","+o+")"},n=function(t,o){return e(t,o)};a.default={shadeOf:n,shadeOfBitnationColor:function(t){return e("#4A90E2",t)},shadeOfBitnationLightColor:function(t){return e("#C0C0C0",t)},BitnationColor:"#4A90E2",BitnationDarkColor:'#1B395C',BitnationLightColor:"#C0C0C0",BitnationVeryLightColor:'#FFFFFF',BitnationBackgroundColor:"#3e9eff",BitnationHighlightColor:"#F5A623",BitnationDarkGrayColor:"#58595B",BitnationLightGrayColor:'#BBBDBF',BitnationHighlightYellowColor:'#FFCE00',BitnationGrayColor:"#929497",BitnationLinkOrangeColor:"#FF8B00",BitnationActionColor:'#FB8C25',BitnationBlackAlphaColor:'rgba(0, 0, 0, 0.87)',titleColor:"#F5A623",panelViewTitleColor:"#58595B",currency:'#FFDD15',placeholderTextColor:"#929497",tabBarBackgroundColor:"#58595B",tabBarSelectedLabelColor:"rgba(255,255,255,0.45)",tabBarSelectedButtonColor:"rgba(255,255,255,0.45)",tabBarLabelColor:'white',tabBarButtonColor:'white',toolBarBackgroundColor:"#3e9eff",activeTabStyle:"#FF8B00",tabTextStyle:"#FF8B00",panelView:'rgba(255,255,255,0.2)',panelViewAlert:'rgba(245, 166, 35, 0.2)',BlueGrey:'#607D8B',BlueMed:'#72A4DE',BlueGrayMed:'#6D6D72',buttonColor:'#1C497E',disabledButtonTitleColor:'#5F6D7D',disabledButtonColor:'#F1F2F6',borderColor:n("#C0C0C0",.4),textColor:'#444A64',textPrimary:'#4A4A4A',textSecondary:'#9094A3',textLight:'#DADCE5',buttonPrimary:'#80E5CF',primary_red:'#FF5469',sectionListSeparator:'rgba(255,255,255,0.2)',sectionListHeaderText:'white',sectionListHeaderContainer:'#3a3a3a',sectionListItemContainerBackground:'transparent',listItemTextState:{default:'gray',accepted:'#4CAF50',pending:'#DADCE5',rejected:'#FFC107',citizensCount:'#DADCE5'},panelBoxColor:'#1b395c',instructionTextColor:'#72a4de',navButtonTextColor:'#007aff',disabledBoxColor:'#bcdcff',disabledTextColor:'#275284',actionButtonColor:'#1c497e',privateKeyTextInputLabelColor:'#F1F1F1',navBarTextColor:"#58595B",navBarButtonColor:"#FF8B00",navBarBackgroundColor:'transparent',navigationButtonColor:"#FF8B00",statusBarColorOther:'black',statusBarColorIOS:'black',androidNavigationButtons:"#FF8B00",white:'white',Transparent:'transparent',thumbTintColor:'rgb(252, 228, 149)',maximumTrackTintColor:'#BBBDBF',minimumTrackTintColor:'#FF8B00',lightFade:'rgba(50, 50, 50, 0.5)'}},515); +__d(function(E,_,N,T){Object.defineProperty(T,"__esModule",{value:!0});var A=T.KEY_PAGE_ROW_COUNT=4,I=T.KEY_PAGE_COUNT=2,O=T.KEY_COLUMN_COUNT=3,S=(T.KEY_PAGE_LENGTH=A*O,T.KEY_ROW_COUNT=A*I);T.KEY_LENGTH=O*S,T.MINIMAL_PASSWORD_LENGTH=8,T.MINIMAL_PIN_CODE_LENGTH=6,T.MAXIMAL_PIN_CODE_LENGTH=8,T.BALANCE_EXPIRATION_INTERVAL=1e4,T.ACTIVITY_MESSAGES_LIMIT=100,T.NATION_INDEX_RECOVER_PERIOD=1e4,T.TRANSACTIONS_WORKER_RECOVER_DELAY=3e4,T.FOUR_INCHES=568,T.FOUR_DOT_SEVEN_INCHES=667,T.FIVE_DOT_FIVE_INCHES=736,T.FIVE_DOT_EIGHT_INCHES=812,T.PAT_DEV_ADDRESS='0xc3830a6206fb9d089d1ce824598978532d14d8aa',T.PAT_PROD_ADDRESS='0xBB1fA4FdEB3459733bF67EbC6f893003fA976a82',T.TX_JOB_STATUS={UNKNOWN:0,PENDING:200,SUCCESS:300,FAILED:400},T.TX_JOB_TYPE={NATION_CREATE:'NATION_CREATE',NATION_JOIN:'NATION_JOIN',NATION_LEAVE:'NATION_LEAVE',ETH_SEND:'ETH_SEND'},T.NATIONS_DEV_ENDPOINT='https://nation-cache.herokuapp.com/nations/development',T.NATIONS_PROD_ENDPOINT='https://nation-cache.herokuapp.com/nations/production',T.CHAT_MESSAGES_PAGE=20},516); __d(function(e,E,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.servicesCreated=function(){return{type:S}},t.servicesDestroyed=function(){return{type:n}};var S=t.SERVICES_CREATED='SERVICES_CREATED',n=t.SERVICES_DESTROYED='SERVICES_DESTROYED'},517); __d(function(e,i,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=t.emptyNation=void 0,t.nationIsModified=function(e){return!r.default.isEqual(e.initialNation,e.editingNation)};var a=i(366),r=babelHelpers.interopRequireDefault(a),o=i(519),l=i(514),N=i(517),s=t.emptyNation={nationName:'',nationDescription:'',exists:!1,virtualNation:null,nationCode:'',nationCodeLink:'',lawEnforcementMechanism:'',profit:!1,decisionMakingProcess:'',diplomaticRecognition:!1,governanceService:[],nonCitizenUse:!1},d=t.initialState={editingNation:null,initialNation:null,inProgress:!1,latestError:null};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,i=arguments[1];switch(i.type){case N.SERVICES_DESTROYED:return d;case o.START_NATION_CREATION:return babelHelpers.extends({},e,{initialNation:s,editingNation:s});case o.START_NATION_EDITING:return babelHelpers.extends({},e,{initialNation:(0,l.convertToEditingNation)(i.nation),editingNation:(0,l.convertToEditingNation)(i.nation)});case o.RESET_NATION_CREATION:return babelHelpers.extends({},e,{editingNation:e.initialNation});case o.EDITING_NATION_FIELD_CHANGE:return babelHelpers.extends({},e,{editingNation:babelHelpers.extends({},e.editingNation,babelHelpers.defineProperty({},i.field,i.payload))});case o.CANCEL_NATION_CREATE:return babelHelpers.extends({},e,{editingNation:null,initialNation:null});case o.SAVE_NATION_DRAFT:case o.DELETE_NATION_DRAFT:case o.SUBMIT_NATION:return babelHelpers.extends({},e,{inProgress:!0});case o.NATION_SUBMIT_FINISHED:case o.NATION_DRAFT_SAVE_FINISHED:case o.NATION_DRAFT_DELETE_FINISHED:return babelHelpers.extends({},e,{inProgress:!1,latestError:i.error});default:return e}}},518); __d(function(N,T,I,_){Object.defineProperty(_,"__esModule",{value:!0}),_.NATION_SUBMIT_FINISHED=_.NATION_DRAFT_DELETE_FINISHED=_.NATION_DRAFT_SAVE_FINISHED=_.SUBMIT_NATION=_.DELETE_NATION_DRAFT=_.SAVE_NATION_DRAFT=_.EDITING_NATION_FIELD_CHANGE=_.RESET_NATION_CREATION=_.CANCEL_NATION_CREATE=_.START_NATION_EDITING=_.START_NATION_CREATION=void 0,_.startNationCreation=function(){return{type:t}},_.startNationEditing=function(N){return{type:A,nation:N}},_.resetNationCreation=function(){return{type:E}},_.editingNationFieldChange=function(N,T){return{type:e,payload:T,field:N}},_.cancelNationCreation=function(){return{type:n}},_.saveNationDraft=function(N,T){return{type:r,nation:N,callback:T}},_.deleteNationDraft=function(N,T){return{type:i,nationId:N,callback:T}},_.submitNation=function(N,T){return{type:a,nation:N,callback:T}},_.nationDraftSaveResult=function(N,T){return{type:D,nationId:N,error:T}},_.nationDraftDeleteResult=function(N,T){return{type:o,nationId:N,error:T}},_.nationSubmitResult=function(N,T){return{type:O,nationId:N,error:T}},T(520);var t=_.START_NATION_CREATION='START_NATION_CREATION',A=_.START_NATION_EDITING='START_NATION_EDITING',n=_.CANCEL_NATION_CREATE='CANCEL_NATION_CREATE',E=_.RESET_NATION_CREATION='RESET_NATION_CREATION',e=_.EDITING_NATION_FIELD_CHANGE='EDITING_NATION_FIELD_CHANGE',r=_.SAVE_NATION_DRAFT='SAVE_NATION_DRAFT',i=_.DELETE_NATION_DRAFT='DELETE_NATION_DRAFT',a=_.SUBMIT_NATION='SUBMIT_NATION',D=_.NATION_DRAFT_SAVE_FINISHED='NATION_DRAFT_SAVE_FINISHED',o=_.NATION_DRAFT_DELETE_FINISHED='NATION_DRAFT_DELETE_FINISHED',O=_.NATION_SUBMIT_FINISHED='NATION_SUBMIT_FINISHED'},519); @@ -531,845 +531,888 @@ __d(function(n,_,c,d){},529); __d(function(e,t,s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.initialState=l.stepsCountToToggle=void 0;var o=t(531),r=babelHelpers.interopRequireDefault(o),a=t(532),T=t(517),i=l.stepsCountToToggle=5,n=l.initialState={isActive:!1,stepsLeftToToggle:i,walletEmpty:!1};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments[1];if('true'===r.default.PRODUCTION)return e;switch(t.type){case T.SERVICES_DESTROYED:return n;case a.MAKE_STEP:return 1===e.stepsLeftToToggle?babelHelpers.extends({},e,{stepsLeftToToggle:i,isActive:!e.isActive}):babelHelpers.extends({},e,{stepsLeftToToggle:e.stepsLeftToToggle-1});case a.RESET_STEPS:return babelHelpers.extends({},e,{stepsLeftToToggle:i});case a.EMPTY_WALLET:return babelHelpers.extends({},e,{walletEmpty:!e.walletEmpty});default:return e}}},530); __d(function(e,t,a,i){'use strict';Object.defineProperty(i,"__esModule",{value:!0});var u=t(17);i.default=u.NativeModules.ReactNativeConfig||{}},531); __d(function(e,t,E,n){Object.defineProperty(n,"__esModule",{value:!0}),n.makeStep=function(){return{type:r}},n.resetSteps=function(){return{type:S}},n.emptyWallet=function(){return{type:T}};var r=n.MAKE_STEP='MAKE_STEP',S=n.RESET_STEPS='RESET_STEPS',T=n.EMPTY_WALLET='EMPTY_WALLET'},532); -__d(function(e,s,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.initialState=void 0;var r=s(534),n=s(517),c=a.initialState={isFetching:!1,chats:[],chatProfile:{}};a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,s=arguments[1];switch(s.type){case n.SERVICES_DESTROYED:return c;case r.SHOW_CHAT_SPINNER:return babelHelpers.extends({},e,{isFetching:!0});case r.HIDE_CHAT_SPINNER:return babelHelpers.extends({},e,{isFetching:!1});case r.CHATS_UPDATED:return babelHelpers.extends({},e,{chats:s.chats.slice()});case r.ADD_CREATED_CHAT_SESSION:return babelHelpers.extends({},e,{chats:[].concat(babelHelpers.toConsumableArray(e.chats),[s.chat])});case r.SELECT_PROFILE:return babelHelpers.extends({},e,{chatProfile:s.profile});case r.CHAT_MESSAGES_LOADED:var t=s.recipientPublicKey,a=s.messages,l=e.chats.map(function(e){return e.publicKey===t?babelHelpers.extends({},e,{messages:a}):e});return babelHelpers.extends({},e,{chats:l});case r.ADD_CHAT_MESSAGE:var i=s.publicKey,b=s.message,u=e.chats.map(function(e){return e.publicKey===i?-1!==e.messages.findIndex(function(e){return e._id===b._id})?e:babelHelpers.extends({},e,{messages:[].concat(babelHelpers.toConsumableArray(e.messages),[b])}):e});return babelHelpers.extends({},e,{chats:u});default:return e}}},533); -__d(function(e,t,S,n){Object.defineProperty(n,"__esModule",{value:!0}),n.showSpinner=function(){return{type:E}},n.hideSpinner=function(){return{type:_}},n.findUserByPublicKey=function(e){return{type:A,key:e}},n.getProfile=function(e,t){return{type:r,identityKey:e,callback:t}},n.newChatSession=function(e,t){return{type:i,profile:e,callback:t}},n.addCreatedChatSession=function(e){return{type:c,chat:e}},n.chatsUpdated=function(e){return{type:a,chats:e}},n.openChat=function(e,t){return{type:u,publicKey:e,callback:t}},n.selectProfile=function(e){return{type:s,profile:e}},n.fetchAllChats=function(){return{type:T}},n.sendMessage=function(e,t){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:C,recipientPublicKey:e,message:t,callback:S}},n.loadChatMessages=function(e){return{type:o,recipientPublicKey:e}},n.chatMessagesLoaded=function(e,t){return{type:p,recipientPublicKey:e,messages:t}},n.panthalassaMessagePersisted=function(e){return{type:D,payload:e}},n.addChatMessage=function(e,t){return{type:H,publicKey:e,message:t}};var E=n.SHOW_CHAT_SPINNER='SHOW_CHAT_SPINNER',_=n.HIDE_CHAT_SPINNER='HIDE_CHAT_SPINNER',A=n.FIND_USER_BY_KEY='FIND_USER_BY_KEY',r=n.GET_PROFILE='GET_PROFILE',i=n.NEW_CHAT_SESSION='NEW_CHAT_SESSION',a=n.CHATS_UPDATED='CHATS_UPDATED',c=n.ADD_CREATED_CHAT_SESSION='ADD_CREATED_CHAT_SESSION',u=n.OPEN_CHAT_SESSION='OPEN_CHAT_SESSION',s=n.SELECT_PROFILE='SELECT_PROFILE',T=n.FETCH_ALL_CHATS='FETCH_ALL_CHATS',C=n.SEND_MESSAGE='SEND_MESSAGE',o=n.LOAD_CHAT_MESSAGES='LOAD_CHAT_MESSAGES',p=n.CHAT_MESSAGES_LOADED='CHAT_MESSAGES_LOADED',D=n.PANTHALASSA_MESSAGE_PERSISTED='PANTHALASSA_MESSAGE_PERSISTED',H=n.ADD_CHAT_MESSAGE='ADD_CHAT_MESSAGE'},534); -__d(function(e,s,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.initialState=a.PasscodeTypeValues=void 0;var p=s(536),d=s(517),n=a.PasscodeTypeValues={password:{type:'password'},pinCode:{type:'pinCode',length:6}},r=a.initialState={passcodeType:n.password};a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,s=arguments[1];switch(s.type){case d.SERVICES_DESTROYED:return r;case p.CHANGE_USE_NUMERIC_PASSCODE:var t=s.useNumericPasscode?n.pinCode:n.password;return e.passcodeType.type===t.type?e:babelHelpers.extends({},e,{passcodeType:t});case p.CHANGE_PASSCODE_LENGTH:return'pinCode'!==e.passcodeType.type?e:babelHelpers.extends({},e,{passcodeType:{type:'pinCode',length:s.passcodeLength}});case p.SETTINGS_UPDATED:return babelHelpers.extends({},e,s.settings);case p.RESET_SETTINGS:return r;default:return e}}},535); -__d(function(e,t,S,n){Object.defineProperty(n,"__esModule",{value:!0}),n.changeUseNumericPasscode=function(e){return{type:E,useNumericPasscode:e}},n.changePasscodeLength=function(e){return{type:c,passcodeLength:e}},n.resetSettings=function(){return{type:T}},n.saveSettings=function(e,t){return{type:s,accountId:e,callback:t}},n.loadSettings=function(e,t){return{type:_,accountId:e,callback:t}},n.settingsUpdated=function(e){return{type:u,settings:e}};var E=n.CHANGE_USE_NUMERIC_PASSCODE='CHANGE_USE_NUMERIC_PASSCODE',c=n.CHANGE_PASSCODE_LENGTH='CHANGE_PASSCODE_LENGTH',T=n.RESET_SETTINGS='RESET_SETTINGS',_=n.LOAD_SETTINGS='LOAD_SETTINGS',s=n.SAVE_SETTINGS='SAVE_SETTINGS',u=n.SETTINGS_UPDATED='SETTINGS_UPDATED'},536); -__d(function(e,a,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getDAppLaunchState=l.getDApp=l.initialState=void 0;var n=a(538),p=a(517);a(539);var r=l.initialState={availableDApps:[],context:null,dAppsLaunchState:{},modals:{}},s=(l.getDApp=function(e,a){return e.availableDApps.find(function(e){return e.publicKey===a})},l.getDAppLaunchState=function(e,a){return e.dAppsLaunchState[a]});l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,a=arguments[1];switch(a.type){case p.SERVICES_DESTROYED:return r;case n.DAPPS_LIST_UPDATED:var t={};return a.availableDApps.forEach(function(a){var l=s(e,a.publicKey);t[a.publicKey]=l||'off'}),babelHelpers.extends({},e,{availableDApps:a.availableDApps,dAppsLaunchState:t});case n.SET_DAPP_CONTEXT:return babelHelpers.extends({},e,{context:babelHelpers.extends({},a.context)});case n.STORE_DAPP_MODAL:return babelHelpers.extends({},e,{modals:babelHelpers.extends({},e.modals,babelHelpers.defineProperty({},a.modal.modalID,a.modal))});case n.CLEAN_DAPP_MODAL:var l=babelHelpers.extends({},e.modals);return delete l[a.modalID],babelHelpers.extends({},e,{modals:l});case n.DAPP_LAUNCH_STATE_CHANGED:var d=a.dAppPublicKey,u=a.launchState;return babelHelpers.extends({},e,{dAppsLaunchState:babelHelpers.extends({},e.dAppsLaunchState,babelHelpers.defineProperty({},d,u))});default:return e}}},537); -__d(function(A,P,D,_){Object.defineProperty(_,"__esModule",{value:!0}),_.RENDER_DAPP_MESSAGE=_.PERFORM_DAPP_CALLBACK=_.CLEAN_DAPP_MODAL=_.STORE_DAPP_MODAL=_.OPEN_DAPP=_.DAPP_LAUNCH_STATE_CHANGED=_.SET_DAPP_CONTEXT=_.STOP_DAPP=_.START_DAPP=_.DAPPS_LIST_UPDATED=void 0,_.dAppsListUpdated=function(A){return{type:e,availableDApps:A}},_.dAppLaunchStateChanged=function(A,P){return{type:E,dAppPublicKey:A,launchState:P}},_.startDApp=function(A){return{type:t,dAppPublicKey:A}},_.stopDApp=function(A){return{type:p,dAppPublicKey:A}},_.setDAppContext=function(A){return{type:n,context:A}},_.openDApp=function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:T,dAppPublicKey:A,callback:P}},_.storeDAppModal=function(A){return{type:r,modal:A}},_.cleanDAppModal=function(A){return{type:u,modalID:A}},_.performDAppCallback=function(A,P,D){return{type:a,dAppPublicKey:A,callbackID:P,args:D}},_.renderDAppMessage=function(A,P){return{type:c,message:A,callback:P}},P(539);var e=_.DAPPS_LIST_UPDATED='DAPPS_LIST_UPDATED',t=_.START_DAPP='START_DAPP',p=_.STOP_DAPP='STOP_DAPP',n=_.SET_DAPP_CONTEXT='SET_DAPP_CONTEXT',E=_.DAPP_LAUNCH_STATE_CHANGED='DAPP_LAUNCH_STATE_CHANGED',T=_.OPEN_DAPP='OPEN_DAPP',r=_.STORE_DAPP_MODAL='STORE_DAPP_MODAL',u=_.CLEAN_DAPP_MODAL='CLEAN_DAPP_MODAL',a=_.PERFORM_DAPP_CALLBACK='PERFORM_DAPP_CALLBACK',c=_.RENDER_DAPP_MESSAGE='RENDER_DAPP_MESSAGE'},538); -__d(function(n,_,c,d){},539); -__d(function(e,l,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=B;var t=l(350),u=l(541),i=babelHelpers.interopRequireDefault(u),f=l(606),p=babelHelpers.interopRequireDefault(f),n=l(609),b=babelHelpers.interopRequireDefault(n),c=l(611),o=babelHelpers.interopRequireDefault(c),s=l(682),d=babelHelpers.interopRequireDefault(s),R=l(684),q=babelHelpers.interopRequireDefault(R),D=l(687),H=babelHelpers.interopRequireDefault(D),_=l(755),m=babelHelpers.interopRequireDefault(_),v=l(757),g=babelHelpers.interopRequireDefault(v),h=l(759),w=babelHelpers.interopRequireDefault(h),x=l(762),j=babelHelpers.interopRequireDefault(x),k=l(765),y=babelHelpers.interopRequireDefault(k),M=l(770),O=babelHelpers.interopRequireDefault(M),P=l(772),z=babelHelpers.interopRequireDefault(P),A=regeneratorRuntime.mark(B);function B(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,t.all)([(0,t.call)(i.default),(0,t.call)(p.default),(0,t.call)(b.default),(0,t.call)(o.default),(0,t.call)(d.default),(0,t.call)(q.default),(0,t.call)(H.default),(0,t.call)(m.default),(0,t.call)(g.default),(0,t.call)(w.default),(0,t.call)(j.default),(0,t.call)(O.default),(0,t.call)(y.default),(0,t.call)(O.default),(0,t.call)(z.default)]);case 2:case"end":return e.stop()}},A,this)}},540); -__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var n=a(350),E=a(542),o=a(508),C=a(511),c=regeneratorRuntime.mark(i);function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.call)(E.listenForDatabaseUpdates),(0,n.takeEvery)(o.START_ACCOUNT_CREATION,E.startAccountCreation),(0,n.takeEvery)(o.START_RESTORE_ACCOUNT_USING_MNEMONIC,E.startRestoreAccountUsingMnemonic),(0,n.takeEvery)(o.LOGIN,E.loginActionHandler),(0,n.takeEvery)(o.LOGOUT,E.logout),(0,n.takeEvery)(C.SAVE_EDITING_ACCOUNT,E.saveEditingAccount),(0,n.takeEvery)(o.ACCOUNTS_LIST_UPDATED,E.updateSignedProfile),(0,n.takeEvery)(o.CHECK_PIN_CODE,E.checkPinCodeSaga),(0,n.takeEvery)(o.CHECK_PASSWORD,E.checkPasswordSaga),(0,n.takeEvery)(o.SAVE_PIN_CODE,E.savePinCodeSaga),(0,n.takeEvery)(o.SAVE_PASSWORD,E.savePasswordSaga),(0,n.takeEvery)(o.SAVE_CREATING_ACCOUNT,E.saveCreatingAccount),(0,n.takeEvery)(o.MNEMONIC_CONFIRMED,E.saveMnemonicConfirmed)]);case 2:case"end":return e.stop()}},c,this)}},541); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAccounts=void 0,n.currentAccountBasedUpdate=G,n.startAccountUpdateListening=K,n.getCurrentAccountId=B,n.accountsPresent=V,n.getAccount=z,n.getCurrentAccount=J,n.listenForDatabaseUpdates=Q,n.updateSignedProfile=W,n.startAccountCreation=X,n.startRestoreAccountUsingMnemonic=Y,n.loginActionHandler=Z,n.login=$,n.logout=ee,n.saveEditingAccount=te,n.checkPinCodeSaga=re,n.checkPasswordSaga=ne,n.savePinCodeSaga=ae,n.savePasswordSaga=ce,n.saveCreatingAccount=ue,n.saveMnemonicConfirmed=se;var a=t(350),c=t(543),u=babelHelpers.interopRequireDefault(c),s=t(578),o=t(508),i=t(534),l=t(579),p=t(510),f=babelHelpers.interopRequireDefault(p),x=t(580),d=babelHelpers.interopRequireDefault(x),g=t(582),m=t(511),b=t(536),k=t(583),v=babelHelpers.interopRequireDefault(k),h=t(605),w=regeneratorRuntime.mark(G),R=regeneratorRuntime.mark(K),A=regeneratorRuntime.mark(B),C=regeneratorRuntime.mark(V),P=regeneratorRuntime.mark(z),D=regeneratorRuntime.mark(J),S=regeneratorRuntime.mark(Q),I=regeneratorRuntime.mark(W),F=regeneratorRuntime.mark(X),U=regeneratorRuntime.mark(Y),E=regeneratorRuntime.mark(Z),T=regeneratorRuntime.mark($),_=regeneratorRuntime.mark(ee),H=regeneratorRuntime.mark(te),y=regeneratorRuntime.mark(re),L=regeneratorRuntime.mark(ne),O=regeneratorRuntime.mark(ae),M=regeneratorRuntime.mark(ce),N=regeneratorRuntime.mark(ue),j=regeneratorRuntime.mark(se),q=n.getAccounts=function(e){return e.accounts};function G(e,t){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,(0,a.race)({task:(0,a.call)(K,e,t),cancel:(0,a.take)(o.CURRENT_ACCOUNT_ID_CHANGED)});case 3:r.next=0;break;case 5:case"end":return r.stop()}},w,this)}function K(e,t){var r,n,c,o,i,l,p;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,a.call)(B);case 2:return r=f.sent,f.next=5,u.default;case 5:return n=f.sent,f.next=8,(0,a.call)(e,n,r);case 8:if(null!==(c=f.sent)){f.next=13;break}return f.next=12,(0,a.take)('HANG_FOREVER');case 12:return f.abrupt("return");case 13:return f.next=15,(0,a.call)(s.createDatabaseUpdateChannel,c);case 15:o=f.sent;case 16:return f.next=19,(0,a.take)(o);case 19:return i=f.sent,l=i.collection,p=i.changes,f.next=24,(0,a.call)(t,l,p);case 24:f.next=16;break;case 26:case"end":return f.stop()}},R,this)}function B(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.select)();case 2:return e=r.sent,t=e.accounts,r.abrupt("return",t.currentAccountId);case 5:case"end":return r.stop()}},A,this)}function V(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,u.default;case 2:return e=r.sent,t=e.objects('Account'),r.next=6,t.length>0;case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}},C,this)}function z(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u.default;case 2:return t=n.sent,r=t.objects('Account').filtered("id == '"+e+"'"),n.next=6,r[0]||null;case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},P,this)}function J(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(B);case 2:if(null!==(e=t.sent)){t.next=7;break}return t.next=6,null;case 6:return t.abrupt("return",t.sent);case 7:return t.next=9,(0,a.call)(z,e);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}},D,this)}function Q(){var e,t,r,n,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,u.default;case 2:return e=i.sent,i.next=5,(0,a.call)([e,'objects'],'Account');case 5:return t=i.sent,i.next=8,(0,a.call)(s.createDatabaseUpdateChannel,t);case 8:r=i.sent;case 9:return i.next=12,(0,a.take)(r);case 12:return n=i.sent,c=n.collection,i.next=16,(0,a.put)((0,o.accountListUpdated)(c.map(l.convertFromDatabase)));case 16:i.next=9;break;case 18:case"end":return i.stop()}},S,this)}function W(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.call)(J);case 2:if(null==(e=r.sent)){r.next=7;break}return t=(0,l.convertFromDatabase)(e),r.next=7,(0,a.call)(d.default.signProfile,(0,l.retrieveProfileFromAccount)(t));case 7:case"end":return r.stop()}},I,this)}function X(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.put)((0,b.resetSettings)());case 2:case"end":return e.stop()}},F,this)}function Y(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.put)((0,b.resetSettings)());case 2:case"end":return e.stop()}},U,this)}function Z(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)($,{accountId:e.accountId},e.password,e.deferred);case 2:case"end":return t.stop()}},E,this)}function $(e,t){var r,n,c,u,s,p,x,b,k=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!0!==k){h.next=3;break}return h.next=3,(0,a.take)(o.PERFORM_DEFERRED_LOGIN);case 3:return h.next=5,(0,a.put)((0,o.loginTaskUpdated)(f.default.pending()));case 5:if(r=e.accountId,n=void 0,c=void 0,null!=e.accountStore){h.next=16;break}return h.next=11,(0,a.call)(z,r);case 11:u=h.sent,n=u.accountStore,c=(0,l.retrieveProfileFromAccount)((0,l.convertFromDatabase)(u)),h.next=27;break;case 16:return n=e.accountStore,h.next=19,(0,a.select)(q);case 19:if(s=h.sent,p=s.creatingAccount,null!=(x=(0,l.retrieveProfileFromPartialAccount)(p))){h.next=26;break}return h.next=25,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new g.LoginFailedError)));case 25:return h.abrupt("return");case 26:c=x;case 27:return h.prev=27,h.next=30,(0,a.call)(d.default.login,n,c,t);case 30:if(!0===h.sent){h.next=35;break}return h.next=34,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new g.InvalidPasswordError)));case 34:return h.abrupt("return");case 35:h.next=48;break;case 37:if(h.prev=37,h.t0=h.catch(27),console.log('--\x3e ERROR Login: ',h.t0),void 0===h.t0.transKey){h.next=45;break}return h.next=43,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(h.t0)));case 43:h.next=47;break;case 45:return h.next=47,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new g.LoginFailedError)));case 47:return h.abrupt("return");case 48:return h.next=50,(0,a.call)(v.default.getPublicKey);case 50:return b=h.sent,h.next=53,(0,a.put)((0,m.setPublicKey)(b));case 53:return h.next=55,(0,a.put)((0,o.currentAccountIdChanged)(r));case 55:return h.next=57,(0,a.put)((0,o.loginTaskUpdated)(f.default.success()));case 57:return h.next=59,(0,a.put)((0,i.fetchAllChats)());case 59:case"end":return h.stop()}},T,this,[[27,37]])}function ee(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(d.default.logout);case 2:return e.next=4,(0,a.put)((0,o.currentAccountIdChanged)(null));case 4:case"end":return e.stop()}},_,this)}function te(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,a.call)(J);case 2:if(null!==(t=n.sent)){n.next=5;break}return n.abrupt("return");case 5:return r=e.account,n.next=8,u.default;case 8:n.sent.write(function(){t.location=r.location?r.location.trim():'',t.name=r.name.trim(),t.profileImage=r.avatar||''});case 10:case"end":return n.stop()}},H,this)}function re(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(ne,(0,o.checkPassword)(e.pinCode,e.accountId,e.callback));case 2:case"end":return t.stop()}},y,this)}function ne(e){var t,r,n,c;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,(0,a.call)(z,e.accountId);case 3:return t=u.sent,r=t.accountStore,n=(0,l.retrieveProfileFromAccount)((0,l.convertFromDatabase)(t)),u.next=8,(0,a.call)(d.default.checkPasscode,r,n,e.password);case 8:return c=u.sent,u.next=11,(0,a.call)(e.callback,c);case 11:u.next=17;break;case 13:return u.prev=13,u.t0=u.catch(0),u.next=17,(0,a.call)(e.callback,!1);case 17:case"end":return u.stop()}},L,this,[[0,13]])}function ae(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(ce,(0,o.savePassword)(e.pinCode,e.accountId,e.callback));case 2:case"end":return t.stop()}},O,this)}function ce(e){var t,r,n,c,s,i,l,p,f;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t=e.accountId,r=e.password,x.next=3,(0,a.select)();case 3:if(n=x.sent,c=n.accounts,s=c.currentCreation,x.prev=6,null!==s){x.next=21;break}return x.next=10,(0,a.call)(d.default.exportAccountStore,e.password);case 10:return i=x.sent,x.next=13,u.default;case 13:return l=x.sent,x.next=16,(0,a.call)(z,t);case 16:return p=x.sent,l.write(function(){p.accountStore=i}),x.next=20,(0,a.call)(e.callback,!0);case 20:return x.abrupt("return");case 21:if(f=void 0,'create'!==s.type){x.next=28;break}return x.next=25,(0,a.call)(d.default.createAccountStore,r);case 25:f=x.sent,x.next=37;break;case 28:if('restore'!==s.type){x.next=34;break}return x.next=31,(0,a.call)(d.default.restoreAccountStore,s.mnemonic,r);case 31:f=x.sent,x.next=37;break;case 34:return x.next=36,(0,a.call)(e.callback,!1);case 36:return x.abrupt("return");case 37:return x.next=39,(0,a.put)((0,o.changeCreatingAccountField)('accountStore',f));case 39:return x.next=41,(0,a.call)(e.callback,!0);case 41:return x.next=43,(0,a.call)($,{accountId:t,accountStore:f},r,!0);case 43:x.next=49;break;case 45:return x.prev=45,x.t0=x.catch(6),x.next=49,(0,a.call)(e.callback,!1);case 49:case"end":return x.stop()}},M,this,[[6,45]])}function ue(e){var t,r,n,c,s;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,a.select)();case 2:if(t=o.sent,r=t.accounts,n=r.creatingAccount,c=void 0,null!==n){o.next=10;break}return o.next=9,(0,a.call)(e.callback,!1);case 9:return o.abrupt("return");case 10:if(null!==(c=null!==h.version&&void 0!==h.version?(0,l.convertToDatabase)(n,h.version):(0,l.convertToDatabase)(n,'0.0.0'))){o.next=15;break}return o.next=14,(0,a.call)(e.callback,!1);case 14:return o.abrupt("return");case 15:return o.next=17,u.default;case 17:return(s=o.sent).write(function(){s.create('Account',c)}),o.next=21,(0,a.call)(e.callback,!0);case 21:return o.next=23,(0,a.put)((0,m.cancelAccountEditing)());case 23:case"end":return o.stop()}},N,this)}function se(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.call)(J);case 2:if(null!=(t=r.sent)){r.next=7;break}return r.next=6,(0,a.call)(e.callback,!1);case 6:return r.abrupt("return");case 7:return r.next=9,u.default;case 9:return r.sent.write(function(){t.confirmedMnemonic=!0}),r.next=13,(0,a.call)(e.callback,!0);case 13:case"end":return r.stop()}},j,this)}},542); -__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buildRandomPathDatabase=void 0,r.factory=f;var n=a(544),s=babelHelpers.interopRequireDefault(n),i=a(567),u=babelHelpers.interopRequireDefault(i),o=a(568),l=babelHelpers.interopRequireDefault(o),c=regeneratorRuntime.mark(f),d='pangea_0_4_5';function f(e){var a,t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=d,''!==e&&'string'==typeof e&&(a=e),t=Math.max(i-1,s.default.schemaVersion(a));case 3:if(!(t1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a=0?n:o.push(t)-1)};var t,n;if(!r||'object'!=typeof r)return{value:r};var a=r[i];if(a)return{id:a};if(r instanceof Date)return{type:s.objectTypes.DATE,value:r.getTime()};if(Array.isArray(r))return{value:r.map(function(r){return _(e,r)})};if(r instanceof ArrayBuffer||ArrayBuffer.isView(r))return{type:s.objectTypes.DATA,value:u.encode(r)};var l=Object.keys(r),c=l.map(function(t){return _(e,r[t])});return{type:s.objectTypes.DICT,keys:l,values:c}}function m(e,r){var t=r.type,n=t&&l[t];if(n)return n(e,r);var a=r.value;return a&&Array.isArray(a)?a.map(function(r){return m(e,r)}):a}y(s.objectTypes.DATA,function(e,r){var t=r.value;return u.decode(t)}),y(s.objectTypes.DATE,function(e,r){var t=r.value;return new Date(t)}),y(s.objectTypes.DICT,function(e,r){for(var t=r.keys,n=r.values,a={},u=0,s=t.length;u2&&void 0!==arguments[2]?arguments[2]:p;clearTimeout(b);try{if(!n)throw new Error('Must first create RPC session with a valid host');var a=(function(r,t){var n=void 0,a=void 0;if(e.__debug__){var u=e.__debug__.require('sync-request')('POST',r,{body:JSON.stringify(t),headers:{"Content-Type":"text/plain;charset=UTF-8"}});n=u.statusCode,a=u.body.toString('utf-8')}else{var s=JSON.stringify(t),i=new f;i.open('POST',r,!1),i.send(s),n=i.status,a=i.responseText}if(200!=n)throw new Error(a);return JSON.parse(a)})('http://'+n+'/'+r,t=babelHelpers.extends({},t,v?{sessionId:v}:null));if(!a||a.error){var u=a&&a.error;if(u&&u.replace)u=u.replace(/^[a-z]+: /i,'');else if(u.type&&'dict'===u.type){var s=(function e(r){for(var t={},n=0;n>4),t[i++]=((15&c)<<4)+((60&s)>>2),t[i++]=((3&s)<<6)+y}return f},f.encode=function(r){var e,n=0;if(r instanceof ArrayBuffer)e=r;else{if(!ArrayBuffer.isView(r))throw new TypeError('Can only base64 encode ArrayBuffer and ArrayBufferView objects');e=r.buffer,n=r.byteOffset}for(var f=r.byteLength,a=new Uint8Array(e,n,f),u='',i=0;i>2],u+=t[((3&a[i])<<4)+((240&a[i+1])>>4)],u+=t[((15&a[i+1])<<2)+((192&a[i+2])>>6)],u+=t[63&a[i+2]];switch(f%3){case 1:return u.slice(0,-2)+'==';case 2:return u.slice(0,-1)+'=';default:return u}};var t='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',a={};Array.from(t,function(r,e){return a[r]=e})},550); -__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createList=function(e,t){return(0,o.createCollection)(p.prototype,e,t,!0)};var o=t(547),i=babelHelpers.interopRequireDefault(o),l=t(546),n=t(548),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t})(i.default);s.default=p,(0,n.createMethods)(p.prototype,l.objectTypes.LIST,['filtered','sorted','snapshot','isValid','indexOf','min','max','sum','avg','addListener','removeListener','removeAllListeners']),(0,n.createMethods)(p.prototype,l.objectTypes.LIST,['pop','shift','push','unshift','splice'],!0)},551); -__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createResults=function(e,t){return(0,o.createCollection)(a.prototype,e,t)};var o=t(547),l=babelHelpers.interopRequireDefault(o),i=t(546),n=t(548),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t})(l.default);s.default=a,(0,n.createMethods)(a.prototype,i.objectTypes.RESULTS,['filtered','sorted','snapshot','subscribe','isValid','indexOf','min','max','sum','avg','addListener','removeListener','removeAllListeners']),(0,n.createMethods)(a.prototype,i.objectTypes.RESULTS,['update'],!0)},552); -__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0}),o.clearRegisteredConstructors=function(){s={},i={}},o.createObject=function(e,t){var r=t.schema,o=i[e],u=(s[o]||{})[r.name],l=Object.create(u?u.prototype:a.prototype);if(l[n.keys.realm]=e,l[n.keys.id]=t.id,l[n.keys.type]=t.type,r.properties.forEach(function(e){Object.defineProperty(l,e,{enumerable:!0,get:(0,c.getterForProperty)(e),set:(0,c.setterForProperty)(e)})}),u){var p=u.call(l);if(null!=p&&p!=l)throw new Error('Realm object constructor must not return another value')}return l},o.registerConstructors=function(e,t,r){i[e]=t,r&&(s[t]=r)},o.typeForConstructor=function(e,t){var r=i[e],o=s[r];for(var n in o)if(o[n]==t)return n;throw new Error("Constructor was not registered in the schema for this Realm")};var n=t(546),c=t(548),s={},i={},a=function e(){babelHelpers.classCallCheck(this,e)};o.default=a,(0,c.createMethods)(a.prototype,n.objectTypes.OBJECT,['isValid','objectSchema','linkingObjects','linkingObjectsCount','_objectId','_isSameObject'])},553); -__d(function(e,r,t,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createUser=function(e,r){var t=Object.create(l.prototype);return t[a.keys.realm]="(User object)",t[a.keys.id]=r.id,t[a.keys.type]=a.objectTypes.USER,babelHelpers.extends(t,r.data),t};var n=r(549),a=r(546),o=r(548),l=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"createUser",value:function(e,r,t,s,a){return(0,n.createUser)(Array.from(arguments))}},{key:"_adminUser",value:function(e,r){return(0,n._adminUser)(Array.from(arguments))}},{key:"_getExistingUser",value:function(e,r){return(0,n._getExistingUser)(Array.from(arguments))}},{key:"all",get:function(){return(0,n.getAllUsers)()}}]),e})();s.default=l,(0,o.createMethods)(l.prototype,a.objectTypes.USER,['_logout','_sessionForOnDiskPath'])},554); -__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0}),o.createSession=function(e,t){var r=Object.create(c.prototype);return r[s.keys.realm]="(Session object)",r[s.keys.id]=t.id,r[s.keys.type]=s.objectTypes.SESSION,r.user=(0,a.deserialize)(e,t.data.user),r.config=(0,a.deserialize)(e,t.data.config),r};var s=t(546),i=t(548),a=t(549),c=function e(){babelHelpers.classCallCheck(this,e)};o.default=c,Object.defineProperties(c.prototype,{url:{get:(0,i.getterForProperty)('url')},state:{get:(0,i.getterForProperty)('state')}}),(0,i.createMethods)(c.prototype,s.objectTypes.SESSION,['_refreshAccessToken','_simulateError','addProgressNotification','removeProgressNotification'])},555); -__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var s=t(546),a=t(548),c=function e(){babelHelpers.classCallCheck(this,e)};o.default=c,Object.defineProperties(c.prototype,{error:{get:(0,a.getterForProperty)('error')},state:{get:(0,a.getterForProperty)('state')}}),(0,a.createMethods)(c.prototype,s.objectTypes.SUBSCRIPTION,['unsubscribe','addListener','removeListener'])},556); -__d(function(e,t,n,r){'use strict';var o=t(558).AuthError,s=t(559),i=t(564),a=t,c=t(560);function u(e,t){e=Array.prototype.slice.call(e);for(var n=0;nn&&typeof e[n]!==t[n])throw new TypeError('param '+n+' must be of type '+t[n])}var f,h,d,l=(f='undefined'==typeof fetch?a('node-fetch'):fetch,h=[],d=0,function(e,t){return new Promise(function(n,r){h.push([e,t,n,r]),(function e(){if(!(d>=5)){var t=h.shift();if(t){var n=babelHelpers.slicedToArray(t,4),r=n[0],o=n[1],s=n[2],i=n[3];++d,f(r,o).then(function(t){--d,e(),s(t)}).catch(function(t){--d,e(),i(t)})}}})()})}),p=t(560),v={'content-type':'application/json;charset=utf-8',accept:'application/json'};function g(e,t){return e+('/'!=e.charAt(e.length-1)?'/':'')+t}function m(){(console.error||console.log).apply(console,arguments)}function w(e,t,n,r){var s=e._sessionForOnDiskPath(t);if(s){var i=s.config.error;if(200==n.status){if('invalid'!==s.state)return s}else{var a=new o(r);i?i(s,a):m("Unhandled session token refresh error for user "+e.identity+" at path "+t,a)}}else m("Unhandled session token refresh error: could not look up session for user "+e.identity+" at path "+t)}function y(e,t,n){if(!e.server)throw new Error("Server for user must be specified");var r=p(n);if(e.isAdminToken)return(function(e,t,n){var r=e.token,o=e.server,s=p(n),i=g(e.server,'realms/files/'+encodeURIComponent(s.pathname));l(i,{method:'GET',timeout:1e4,headers:{Authorization:e.token}}).then(function(e){return 404===e.status||503===e.status?{response:{status:200},json:{path:s.pathname,syncLabel:'_direct'}}:e.json().then(function(t){return{response:e,json:t}})}).then(function(n){var i=n.response,a=n.json,c=w(e.constructor.adminUser(r,o),t,i,a);c&&(s.set('pathname',a.path),c._refreshAccessToken(e.token,s.href,a.syncLabel))}).catch(function(r){m(r),setTimeout(function(){return y(e,t,n)},1e4)})})(e,t,n);var o=g(e.server,'auth'),s={method:'POST',body:JSON.stringify({data:e.token,path:r.pathname,provider:'realm',app_id:''}),headers:v,timeout:1e4};l(o,s).then(function(e){return e.json().then(function(t){return{response:e,json:t}})}).then(function(o){var s=o.response,i=o.json,a=e.constructor._getExistingUser(e.server,e.identity);if(a){var c=w(a,t,s,i);if(c){var u=i.access_token.token_data;r.set('pathname',u.path),c._refreshAccessToken(i.access_token.token,r.href,u.sync_label);var f=c.config.error;f&&f._notifyOnAccessTokenRefreshed&&f(c,f._notifyOnAccessTokenRefreshed);var h=new Date(1e3*u.expires);!(function(e,t,n,r){var o=r-Date.now()-1e4;setTimeout(function(){return y(e,t,n)},o)})(a,t,n,h)}}}).catch(function(r){m(r),setTimeout(function(){return y(e,t,n)},1e4)})}function k(e,t,n,r){n.app_id='';var s=g(t,'auth'),i={method:'POST',body:JSON.stringify(n),headers:v,open_timeout:5e3},a=l(s,i).then(function(n){return-1===n.headers.get('Content-Type').indexOf('application/json')?n.text().then(function(e){throw new o({title:"Could not authenticate: Realm Object Server didn't respond with valid JSON",body:e})}):n.ok?n.json().then(function(n){var r=n.refresh_token.token,o=n.refresh_token.token_data.identity,s=n.refresh_token.token_data.is_admin;return e.createUser(t,o,r,!1,s)}):n.json().then(function(e){return Promise.reject(new o(e))})});if(!r)return a;a.then(function(e){r(null,e)}).catch(function(e){r(e)})}function _(e,t,n){var r=g(t,'auth/password/updateAccount'),s={method:'POST',body:JSON.stringify(n),headers:v,open_timeout:5e3};return l(r,s).then(function(e){return-1===e.headers.get('Content-Type').indexOf('application/json')?e.text().then(function(e){throw new o({title:"Could not update user account: Realm Object Server didn't respond with valid JSON",body:e})}):e.ok?void 0:e.json().then(function(e){return Promise.reject(new o(e))})})}var b={get current(){var e=this.all,t=Object.keys(e);if(0!==t.length){if(t.length>1)throw new Error("Multiple users are logged in");return e[t[0]]}},adminUser:function(e,t){return u(arguments,['string','string']),this._adminUser(t,e)},register:function(e,t,n,r){u(arguments,['string','string','string','function']);var o={provider:'password',user_info:{password:n,register:!0},data:t};if(r){(console.warn||console.log).call(console,"register(..., callback) is now deprecated in favor of register(): Promise. This function argument will be removed in future versions.")}return k(this,e,o,r)},login:function(e,t,n,r){u(arguments,['string','string','string','function']);var o={provider:'password',user_info:{password:n,register:!1},data:t};if(r){(console.warn||console.log).call(console,"login(..., callback) is now deprecated in favor of login(): Promise. This function argument will be removed in future versions.")}return k(this,e,o,r)},registerWithProvider:function(e,t,n){4===arguments.length?(u(arguments,['string','string','string','function']),t={provider:arguments[1],providerToken:arguments[2]},n=arguments[3]):u(arguments,['string','object','function']);var r={provider:t.provider,data:t.providerToken};if(t.userInfo&&(r.user_info=t.userInfo),n){(console.warn||console.log).call(console,"registerWithProvider(..., callback) is now deprecated in favor of registerWithProvider(): Promise. This function argument will be removed in future versions.")}return k(this,e,r,n)},authenticate:function(e,t,n){u(arguments,['string','string','object']);var r={};switch(t.toLowerCase()){case'jwt':r.provider='jwt',r.token=n.token;break;case'password':r.provider='password',r.user_info={password:n.password},r.data=n.username;break;default:babelHelpers.extends(r,n),r.provider=t}return k(this,e,r)},requestPasswordReset:function(e,t){return u(arguments,['string','string']),_(0,e,{provider_id:t,data:{action:'reset_password'}})},completePasswordReset:function(e,t,n){return u(arguments,['string','string']),_(0,e,{data:{action:'complete_reset',token:t,new_password:n}})},requestEmailConfirmation:function(e,t){return u(arguments,['string','string']),_(0,e,{provider_id:t,data:{action:'request_email_confirmation'}})},confirmEmail:function(e,t){return u(arguments,['string','string']),_(0,e,{data:{action:'confirm_email',token:t}})},_refreshAccessToken:y},j={logout:function(){this._logout();var e=p(this.server);e.set('pathname','/auth/revoke');var t={method:'POST',headers:{Authorization:this.token},body:JSON.stringify({token:this.token}),open_timeout:5e3};l(e.href,t).then(function(){return console.log('User is logged out')}).catch(function(e){return m(e)})},openManagementRealm:function(){var e=p(this.server);if('http:'===e.protocol)e.set('protocol','realm:');else{if('https:'!==e.protocol)throw new Error("Unexpected user auth url: "+this.server);e.set('protocol','realms:')}return e.set('pathname','/~/__management'),new this.constructor._realmConstructor({schema:t(563),sync:{user:this,url:e.href}})},retrieveAccount:function(e,t){u(arguments,['string','string']);var n=p(this.server);n.set('pathname',"/auth/users/"+e+"/"+t);var r={method:'GET',headers:{Authorization:this.token},open_timeout:5e3};return l(n.href,r).then(function(e){return 200!==e.status?e.json().then(function(e){throw new o(e)}):e.json()})},createConfiguration:function(e){if(e&&e.sync&&(void 0!==console.warn&&console.warn("'user' property will be overridden by "+this.identity),void 0!==e.sync.partial&&void 0!==e.sync.fullSynchronization))throw new Error("'partial' and 'fullSynchronization' were both set. 'partial' has been deprecated, use only 'fullSynchronization'");var t=new c(this.server),n='https:'===t.protocol?'s':'',r=void 0===t.port?'9080':t.port,o={sync:{user:this,url:"realm"+n+"://"+t.hostname+":"+r+"/default"}};e&&e.sync&&e.sync.partial||(o.sync.fullSynchronization=!1);var s=void 0===e?o:i(o,e);return s.sync.user=this,s}};babelHelpers.extends(j,s),n.exports={static:b,instance:j}},557); -__d(function(r,t,o,s){'use strict';function e(r){var t=Error.call(this,r.title);this.name='AuthError',this.message=t.message,this.stack=t.stack,babelHelpers.extends(this,r)}e.__proto__=Error,e.prototype.__proto__=Error.prototype,s.AuthError=e},558); -__d(function(e,r,t,n){'use strict';var i=r(560),a=r(563);function o(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(e){var r=16*Math.random()|0;return('x'==e?r:3&r|8).toString(16)})}var s=[{name:'Permission',properties:{userId:{type:'string'},path:{type:'string'},mayRead:{type:'bool',optional:!1},mayWrite:{type:'bool',optional:!1},mayManage:{type:'bool',optional:!1},updatedAt:{type:'date',optional:!1}}}],u='_specialPurposeRealms';function m(e,r,t){if(e.hasOwnProperty(u)||(e[u]={}),e[u].hasOwnProperty(r))return Promise.resolve(e[u][r]);var n=i(e.server);if('http:'===n.protocol)n.set('protocol','realm:');else{if('https:'!==n.protocol)throw new Error("Unexpected user auth url: "+e.server);n.set('protocol','realms:')}n.set('pathname',"/~/"+r);var a={schema:t,sync:{user:e,url:n.href,fullSynchronization:!0}};return e.constructor._realmConstructor.open(a).then(function(t){return e[u][r]=t,t})}function c(e,r,t){return m(e,'__management',a).then(function(e){return new Promise(function(n,i){try{var a=void 0;e.addListener('change',function r(){if(a){var t=a.statusCode;if('number'==typeof t)if(e.removeListener('change',r),0===t)setTimeout(function(){return n(a)},1);else{var o=new Error(a.statusMessage);o.statusCode=t,o.managementObject=a,setTimeout(function(){return i(o)},1)}}}),e.write(function(){a=e.create(r,t)})}catch(e){i(e)}})})}var d=['none','read','write','admin'],f=['read','write','admin'];t.exports={getGrantedPermissions:function(e){var r=this;return e&&-1===['currentUser','otherUser','any'].indexOf(e)?Promise.reject(new Error("'"+e+"' is not a valid recipient type. Must be 'any', 'currentUser' or 'otherUser'.")):m(this,'__permission',s).then(function(t){var n=t.objects('Permission').filtered('NOT path ENDSWITH "__permission" AND NOT path ENDSWITH "__management"');return'currentUser'===e?n=n.filtered('userId = $0',r.identity):'otherUser'===e&&(n=n.filtered('userId != $0',r.identity)),n})},applyPermissions:function(e,r,t){if(!r)return Promise.reject(new Error('realmUrl must be specified'));if(-1===d.indexOf(t))return Promise.reject(new Error("'"+t+"' is not a valid access level. Must be "+d.join(', ')+"."));var n='read'===t||'write'===t||'admin'===t,i='write'===t||'admin'===t,a='admin'===t,s={id:o(),createdAt:new Date,updatedAt:new Date,realmUrl:r,mayRead:n,mayWrite:i,mayManage:a};return e.hasOwnProperty('userId')?s.userId=e.userId:(s.userId='',s.metadataKey=e.metadataKey,s.metadataValue=e.metadataValue),c(this,'PermissionChange',s)},offerPermissions:function(e,r,t){if(!e)return Promise.reject(new Error('realmUrl must be specified'));if(-1===f.indexOf(r))return Promise.reject(new Error("'"+r+"' is not a valid access level. Must be "+f.join(', ')+"."));var n='write'===r||'admin'===r,i='admin'===r;return c(this,'PermissionOffer',{id:o(),createdAt:new Date,updatedAt:new Date,expiresAt:t,realmUrl:e,mayRead:!0,mayWrite:n,mayManage:i}).then(function(e){return e.token})},acceptPermissionOffer:function(e){return e?c(this,'PermissionOfferResponse',{id:o(),createdAt:new Date,updatedAt:new Date,token:e}).then(function(e){return e.realmUrl}):Promise.reject(new Error('Offer token must be specified'))},invalidatePermissionOffer:function(e){return m(this,'__management',a).then(function(r){var t=void 0;if('string'==typeof e){var n=r.objects('PermissionOffer').filtered('token = $0',e);if(0===n.length)throw new Error("No permission offers with the given token were found");t=n[0]}else t=e;r.write(function(){t.expiresAt=new Date})})}}},559); -__d(function(t,e,o,s){'use strict';var r=e(561),a=e(562),n=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,h=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=[['#','hash'],['?','query'],function(t){return t.replace('\\','/')},['/','pathname'],['@','auth',1],[NaN,'host',void 0,1,1],[/:(\d+)$/,'port',void 0,1],[NaN,'hostname',void 0,1,1]],p={hash:1,query:1};function c(e){var o,s=t&&t.location||{},r={},a=typeof(e=e||s);if('blob:'===e.protocol)r=new u(unescape(e.pathname),{});else if('string'===a)for(o in r=new u(e,{}),p)delete r[o];else if('object'===a){for(o in e)o in p||(r[o]=e[o]);void 0===r.slashes&&(r.slashes=h.test(e.href))}return r}function l(t){var e=n.exec(t);return{protocol:e[1]?e[1].toLowerCase():'',slashes:!!e[2],rest:e[3]}}function u(t,e,o){if(!(this instanceof u))return new u(t,e,o);var s,n,h,p,f,m,y=i.slice(),d=typeof e,g=this,v=0;for('object'!==d&&'string'!==d&&(o=e,e=null),o&&'function'!=typeof o&&(o=a.parse),e=c(e),s=!(n=l(t||'')).protocol&&!n.slashes,g.slashes=n.slashes||s&&e.slashes,g.protocol=n.protocol||e.protocol||'',t=n.rest,n.slashes||(y[3]=[/(.*)/,'pathname']);v=t.length)return t=null,{done:!0,value:void 0};var n;switch(e){case'entries':n=[r,t[r]];break;case'keys':n=r;break;default:n=t[r]}return r++,{done:!1,value:n}}}})},configurable:!0,writable:!0}}),n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=n.values},566); -__d(function(n,t,r,o){var e=Array.prototype.slice;function u(n){var t=this,r=e.call(arguments,1);return new Promise(function(o,e){if('function'==typeof n&&(n=n.apply(t,r)),!n||'function'!=typeof n.next)return o(n);function u(t){var r;try{r=n.next(t)}catch(n){return e(n)}f(r)}function a(t){var r;try{r=n.throw(t)}catch(n){return e(n)}f(r)}function f(n){if(n.done)return o(n.value);var r=c.call(t,n.value);return r&&i(r)?r.then(u,a):a(new TypeError("You may only yield a function, promise, generator, array, or object, but the following object was passed: \""+String(n.value)+'"'))}u()})}function c(n){return n?i(n)?n:(function(n){var t=n.constructor;return!!t&&('GeneratorFunction'===t.name||'GeneratorFunction'===t.displayName||a(t.prototype))})(n)||a(n)?u.call(this,n):'function'==typeof n?function(n){var t=this;return new Promise(function(r,o){n.call(t,function(n,t){if(n)return o(n);arguments.length>2&&(t=e.call(arguments,1)),r(t)})})}.call(this,n):Array.isArray(n)?function(n){return Promise.all(n.map(c,this))}.call(this,n):Object==n.constructor?function(n){for(var t=new n.constructor,r=Object.keys(n),o=[],e=0;e GetProfile'),t=s.default.CHAT_ENDPOINT+"/profile",console.log('[TEST] URL -> ',t),r.abrupt("return",fetch(t,{headers:{'content-type':'application/json',bearer:s.default.CHAT_TOKEN,'Cache-Control':'no-cache, no-store, must-revalidate',Pragma:'no-cache',Expires:0,Identity:e},method:'GET'}).then(function(e){return e.text()}).then(function(e){return l.decode(o.Buffer.from(e,'base64'))}).then(function(e){return l.toObject(e,{bytes:String})}));case 4:case"end":return r.stop()}},null,this)}},{key:"getPublicKey",value:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.panthalassaGetIdentityPublicKey)());case 1:case"end":return e.stop()}},null,this)}},{key:"fetchAllChats",value:function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap((0,c.panthalassaAllChats)());case 2:return e=t.sent,e=JSON.parse(e),t.abrupt("return",e);case 5:case"end":return t.stop()}},null,this)}},{key:"loadMessages",value:function(e,t,r,n){var a;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return a=[],s.prev=1,s.next=4,regeneratorRuntime.awrap((0,c.panthalassaMessages)(t.identityKey,r,n));case 4:a=s.sent,a=JSON.parse(a),a=(0,u.createGiftedChatMessageObjects)(e,t,a),s.next=12;break;case 9:s.prev=9,s.t0=s.catch(1),console.log("[TEST] Error loading messages: "+s.t0.message);case 12:return s.abrupt("return",a);case 13:case"end":return s.stop()}},null,this,[[1,9]])}},{key:"sendMessage",value:function(e,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,regeneratorRuntime.awrap((0,c.panthalassaSendMessage)(e,t));case 3:r.next=8;break;case 5:r.prev=5,r.t0=r.catch(0),console.log("[TEST] Error sending messsage: "+r.t0.message);case 8:case"end":return r.stop()}},null,this,[[0,5]])}}]),e})();n.default=i},583); -__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getSelectedSession=void 0,n.default=function(e){var t=[];return e.forEach(function(e){t.push({_id:e._id,text:e.msg,createdAt:e.createdAt,user:{_id:e.userId,name:e.from}})}),t},n.createGiftedChatMessageObjects=function(e,t,a){var n=[];return a.forEach(function(a){var r=new Date(0);r.setUTCMilliseconds(a.created_at/1e6);var d=a.received?{_id:t.identityKey,name:t.name}:{_id:e.id,name:e.name},i=null;if(''!==a.dapp)try{var s=JSON.parse(a.dapp);i={dAppPublicKey:Buffer.from(s.dapp_public_key,'base64').toString('hex'),params:s.params,shouldSend:s.should_send,type:s.type}}catch(e){console.log("[CHAT] Unable to parse DApp message: "+a.dapp)}n.push({_id:a.db_id,text:a.content,createdAt:r,user:d,dAppMessage:i})}),n};var r=t(366),d=babelHelpers.interopRequireDefault(r);n.getSelectedSession=function(e,t){return d.default.find(e,function(e){return e.publicKey===t})||null}},584); -__d(function(n,e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.panthalassaStop=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaStop());case 1:case"end":return n.stop()}},null,this)},r.panthalassaStart=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaStart({config:n,password:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaStartFromMnemonic=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaStartFromMnemonic({config:n,mnemonic:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaIsValidMnemonic=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaIsValidMnemonic(n));case 1:case"end":return e.stop()}},null,this)},r.panthalassaNewAccountKeys=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaNewAccountKeys({pw:n,pwConfirm:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaNewAccountKeysFromMnemonic=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaNewAccountKeysFromMnemonic({mne:e,pw:n,pwConfirm:n}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaExportAccountStore=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaExportAccountStore({pw:n,pwConfirm:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaEthPrivateKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaEthPrivateKey());case 1:case"end":return n.stop()}},null,this)},r.panthalassaEthPubToAddress=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaEthPubToAddress({pub:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaEthAddress=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaEthAddress());case 1:case"end":return n.stop()}},null,this)},r.panthalassaGetIdentityPublicKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaGetIdentityPublicKey());case 1:case"end":return n.stop()}},null,this)},r.panthalassaSignProfileStandAlone=function(n,e,t,r,s){return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",a.PanthalassaSignProfileStandAlone({name:n,location:e,image:t,keyManagerStore:r,password:s}));case 1:case"end":return u.stop()}},null,this)},r.panthalassaSignProfile=function(n,e,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a.PanthalassaSignProfile({name:n,location:e,image:t}));case 1:case"end":return r.stop()}},null,this)},r.panthalassaGetMnemonic=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaGetMnemonic());case 1:case"end":return n.stop()}},null,this)},r.panthalassaStartDApp=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaStartDApp({dAppSingingKeyStr:n,timeout:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaOpenDApp=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaOpenDApp({id:n,context:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaCallDAppFunction=function(n,e,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a.PanthalassaCallDAppFunction({signingKey:n,id:e,args:t}));case 1:case"end":return r.stop()}},null,this)},r.panthalassaConnectToDAppDevHost=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaConnectToDAppDevHost({address:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaRenderMessage=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaRenderMessage({signingKey:n,payload:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaSendResponse=function(n,e,t,r){return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",a.PanthalassaSendResponse({id:n,data:e,responseError:t,timeout:r}));case 1:case"end":return s.stop()}},null,this)},r.panthalassaAllChats=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaAllChats());case 1:case"end":return n.stop()}},null,this)},r.panthalassaConnectLogger=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaConnectLogger({address:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaDApps=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaDApps());case 1:case"end":return n.stop()}},null,this)},r.panthalassaIdentityPublicKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.PanthalassaIdentityPublicKey());case 1:case"end":return n.stop()}},null,this)},r.panthalassaMessages=function(n,e,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a.PanthalassaMessages({partner:n,startStr:e,amount:t}));case 1:case"end":return r.stop()}},null,this)},r.panthalassaSendMessage=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.PanthalassaSendMessage({partner:n,message:e}));case 1:case"end":return t.stop()}},null,this)},r.panthalassaSetLogger=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaSetLogger({level:n}));case 1:case"end":return e.stop()}},null,this)},r.panthalassaStopDApp=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.PanthalassaStopDApp({dAppSingingKeyStr:n}));case 1:case"end":return e.stop()}},null,this)};var a=e(17).NativeModules.Panthalassa},585); -__d(function(e,t,n,i){"use strict";var r,y=t(587),u=y.Reader,a=y.Writer,o=y.util,s=y.roots.default||(y.roots.default={});s.api_proto=((r={}).Profile=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.name=e.string();break;case 2:i.location=e.string();break;case 3:i.image=e.string();break;case 4:i.identityPubKey=e.bytes();break;case 5:i.ethereumPubKey=e.bytes();break;case 6:i.chatIdentityPubKey=e.bytes();break;case 7:i.timestamp=e.int64();break;case 8:i.version=e.uint32();break;case 9:i.identityKeySignature=e.bytes();break;case 10:i.ethereumKeySignature=e.bytes();break;default:e.skipType(7&y)}}return i},e.decodeDelimited=function(e){return e instanceof u||(e=new u(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!o.isString(e.name)?"name: string expected":null!=e.location&&e.hasOwnProperty("location")&&!o.isString(e.location)?"location: string expected":null!=e.image&&e.hasOwnProperty("image")&&!o.isString(e.image)?"image: string expected":null!=e.identityPubKey&&e.hasOwnProperty("identityPubKey")&&!(e.identityPubKey&&"number"==typeof e.identityPubKey.length||o.isString(e.identityPubKey))?"identityPubKey: buffer expected":null!=e.ethereumPubKey&&e.hasOwnProperty("ethereumPubKey")&&!(e.ethereumPubKey&&"number"==typeof e.ethereumPubKey.length||o.isString(e.ethereumPubKey))?"ethereumPubKey: buffer expected":null!=e.chatIdentityPubKey&&e.hasOwnProperty("chatIdentityPubKey")&&!(e.chatIdentityPubKey&&"number"==typeof e.chatIdentityPubKey.length||o.isString(e.chatIdentityPubKey))?"chatIdentityPubKey: buffer expected":null!=e.timestamp&&e.hasOwnProperty("timestamp")&&!(o.isInteger(e.timestamp)||e.timestamp&&o.isInteger(e.timestamp.low)&&o.isInteger(e.timestamp.high))?"timestamp: integer|Long expected":null!=e.version&&e.hasOwnProperty("version")&&!o.isInteger(e.version)?"version: integer expected":null!=e.identityKeySignature&&e.hasOwnProperty("identityKeySignature")&&!(e.identityKeySignature&&"number"==typeof e.identityKeySignature.length||o.isString(e.identityKeySignature))?"identityKeySignature: buffer expected":null!=e.ethereumKeySignature&&e.hasOwnProperty("ethereumKeySignature")&&!(e.ethereumKeySignature&&"number"==typeof e.ethereumKeySignature.length||o.isString(e.ethereumKeySignature))?"ethereumKeySignature: buffer expected":null},e.fromObject=function(e){if(e instanceof r.Profile)return e;var t=new r.Profile;return null!=e.name&&(t.name=String(e.name)),null!=e.location&&(t.location=String(e.location)),null!=e.image&&(t.image=String(e.image)),null!=e.identityPubKey&&("string"==typeof e.identityPubKey?o.base64.decode(e.identityPubKey,t.identityPubKey=o.newBuffer(o.base64.length(e.identityPubKey)),0):e.identityPubKey.length&&(t.identityPubKey=e.identityPubKey)),null!=e.ethereumPubKey&&("string"==typeof e.ethereumPubKey?o.base64.decode(e.ethereumPubKey,t.ethereumPubKey=o.newBuffer(o.base64.length(e.ethereumPubKey)),0):e.ethereumPubKey.length&&(t.ethereumPubKey=e.ethereumPubKey)),null!=e.chatIdentityPubKey&&("string"==typeof e.chatIdentityPubKey?o.base64.decode(e.chatIdentityPubKey,t.chatIdentityPubKey=o.newBuffer(o.base64.length(e.chatIdentityPubKey)),0):e.chatIdentityPubKey.length&&(t.chatIdentityPubKey=e.chatIdentityPubKey)),null!=e.timestamp&&(o.Long?(t.timestamp=o.Long.fromValue(e.timestamp)).unsigned=!1:"string"==typeof e.timestamp?t.timestamp=parseInt(e.timestamp,10):"number"==typeof e.timestamp?t.timestamp=e.timestamp:"object"==typeof e.timestamp&&(t.timestamp=new o.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber())),null!=e.version&&(t.version=e.version>>>0),null!=e.identityKeySignature&&("string"==typeof e.identityKeySignature?o.base64.decode(e.identityKeySignature,t.identityKeySignature=o.newBuffer(o.base64.length(e.identityKeySignature)),0):e.identityKeySignature.length&&(t.identityKeySignature=e.identityKeySignature)),null!=e.ethereumKeySignature&&("string"==typeof e.ethereumKeySignature?o.base64.decode(e.ethereumKeySignature,t.ethereumKeySignature=o.newBuffer(o.base64.length(e.ethereumKeySignature)),0):e.ethereumKeySignature.length&&(t.ethereumKeySignature=e.ethereumKeySignature)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.name="",n.location="",n.image="",t.bytes===String?n.identityPubKey="":(n.identityPubKey=[],t.bytes!==Array&&(n.identityPubKey=o.newBuffer(n.identityPubKey))),t.bytes===String?n.ethereumPubKey="":(n.ethereumPubKey=[],t.bytes!==Array&&(n.ethereumPubKey=o.newBuffer(n.ethereumPubKey))),t.bytes===String?n.chatIdentityPubKey="":(n.chatIdentityPubKey=[],t.bytes!==Array&&(n.chatIdentityPubKey=o.newBuffer(n.chatIdentityPubKey))),o.Long){var i=new o.Long(0,0,!1);n.timestamp=t.longs===String?i.toString():t.longs===Number?i.toNumber():i}else n.timestamp=t.longs===String?"0":0;n.version=0,t.bytes===String?n.identityKeySignature="":(n.identityKeySignature=[],t.bytes!==Array&&(n.identityKeySignature=o.newBuffer(n.identityKeySignature))),t.bytes===String?n.ethereumKeySignature="":(n.ethereumKeySignature=[],t.bytes!==Array&&(n.ethereumKeySignature=o.newBuffer(n.ethereumKeySignature)))}return null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.location&&e.hasOwnProperty("location")&&(n.location=e.location),null!=e.image&&e.hasOwnProperty("image")&&(n.image=e.image),null!=e.identityPubKey&&e.hasOwnProperty("identityPubKey")&&(n.identityPubKey=t.bytes===String?o.base64.encode(e.identityPubKey,0,e.identityPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.identityPubKey):e.identityPubKey),null!=e.ethereumPubKey&&e.hasOwnProperty("ethereumPubKey")&&(n.ethereumPubKey=t.bytes===String?o.base64.encode(e.ethereumPubKey,0,e.ethereumPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.ethereumPubKey):e.ethereumPubKey),null!=e.chatIdentityPubKey&&e.hasOwnProperty("chatIdentityPubKey")&&(n.chatIdentityPubKey=t.bytes===String?o.base64.encode(e.chatIdentityPubKey,0,e.chatIdentityPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.chatIdentityPubKey):e.chatIdentityPubKey),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?n.timestamp=t.longs===String?String(e.timestamp):e.timestamp:n.timestamp=t.longs===String?o.Long.prototype.toString.call(e.timestamp):t.longs===Number?new o.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),null!=e.identityKeySignature&&e.hasOwnProperty("identityKeySignature")&&(n.identityKeySignature=t.bytes===String?o.base64.encode(e.identityKeySignature,0,e.identityKeySignature.length):t.bytes===Array?Array.prototype.slice.call(e.identityKeySignature):e.identityKeySignature),null!=e.ethereumKeySignature&&e.hasOwnProperty("ethereumKeySignature")&&(n.ethereumKeySignature=t.bytes===String?o.base64.encode(e.ethereumKeySignature,0,e.ethereumKeySignature.length):t.bytes===Array?Array.prototype.slice.call(e.ethereumKeySignature):e.ethereumKeySignature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,y.util.toJSONOptions)},e})(),r),n.exports=s},586); -__d(function(t,s,c,e){"use strict";c.exports=s(588)},587); -__d(function(r,e,i,f){"use strict";var u=f;function t(){u.Reader._configure(u.BufferReader),u.util._configure()}u.build="minimal",u.Writer=e(589),u.BufferWriter=e(599),u.Reader=e(600),u.BufferReader=e(601),u.util=e(590),u.rpc=e(602),u.roots=e(604),u.configure=t,u.Writer._configure(u.BufferWriter),t()},588); -__d(function(t,i,n,e){"use strict";n.exports=a;var o,r=i(590),s=r.LongBits,h=r.base64,u=r.utf8;function p(t,i,n){this.fn=t,this.len=i,this.next=void 0,this.val=n}function l(){}function a(){this.len=0,this.head=new p(l,0,0),this.tail=this.head,this.states=null}function f(t,i,n){i[n]=255&t}function c(t,i){this.len=t,this.next=void 0,this.val=i}function y(t,i,n){for(;t.hi;)i[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)i[n++]=127&t.lo|128,t.lo=t.lo>>>7;i[n++]=t.lo}function d(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}a.create=r.Buffer?function(){return(a.create=function(){return new o})()}:function(){return new a},a.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(a.alloc=r.pool(a.alloc,r.Array.prototype.subarray)),a.prototype._push=function(t,i,n){return this.tail=this.tail.next=new p(t,i,n),this.len+=i,this},c.prototype=Object.create(p.prototype),c.prototype.fn=function(t,i,n){for(;t>127;)i[n++]=127&t|128,t>>>=7;i[n]=t},a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new c((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(y,10,s.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var i=s.from(t);return this._push(y,i.length(),i)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var i=s.from(t).zzEncode();return this._push(y,i.length(),i)},a.prototype.bool=function(t){return this._push(f,1,t?1:0)},a.prototype.fixed32=function(t){return this._push(d,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var i=s.from(t);return this._push(d,4,i.lo)._push(d,4,i.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(r.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(r.float.writeDoubleLE,8,t)};var x=r.Array.prototype.set?function(t,i,n){i.set(t,n)}:function(t,i,n){for(var e=0;e>>0;if(!i)return this._push(f,1,0);if(r.isString(t)){var n=a.alloc(i=h.length(t));h.decode(t,n,0),t=n}return this.uint32(i)._push(x,i,t)},a.prototype.string=function(t){var i=u.length(t);return i?this.uint32(i)._push(u.write,i,t):this._push(f,1,0)},a.prototype.fork=function(){return this.states=new(function(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states})(this),this.head=this.tail=new p(l,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new p(l,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,i=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=i,this.len+=n),this},a.prototype.finish=function(){for(var t=this.head.next,i=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,i,n),n+=t.len,t=t.next;return i},a._configure=function(t){o=t}},589); -__d(function(e,r,t,n){"use strict";var o=n;function f(e,r,t){for(var n=Object.keys(r),o=0;o0)},o.Buffer=(function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}})(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,r){var t=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(t.lo,t.hi,r):t.toNumber(Boolean(r))},o.merge=f,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var r={},t=0;t-1;--t)if(1===r[e[t]]&&void 0!==this[e[t]]&&null!==this[e[t]])return e[t]}},o.oneOfSetter=function(e){return function(r){for(var t=0;t1&&"="===r.charAt(e);)++a;return Math.ceil(3*r.length)/4-a};for(var i=new Array(64),o=new Array(123),c=0;c<64;)o[i[c]=c<26?c+65:c<52?c+71:c<62?c-4:c-59|43]=c++;t.encode=function(r,e,a){for(var n,t=null,o=[],c=0,s=0;e>2],n=(3&f)<<4,s=1;break;case 1:o[c++]=i[n|f>>4],n=(15&f)<<2,s=2;break;case 2:o[c++]=i[n|f>>6],o[c++]=i[63&f],s=0}c>8191&&((t||(t=[])).push(String.fromCharCode.apply(String,o)),c=0)}return s&&(o[c++]=i[n],o[c++]=61,1===s&&(o[c++]=61)),t?(c&&t.push(String.fromCharCode.apply(String,o.slice(0,c))),t.join("")):String.fromCharCode.apply(String,o.slice(0,c))};t.decode=function(r,e,a){for(var n,t=a,i=0,c=0;c1)break;if(void 0===(s=o[s]))throw Error("invalid encoding");switch(i){case 0:n=s,i=1;break;case 1:e[a++]=n<<2|(48&s)>>4,n=s,i=2;break;case 2:e[a++]=(15&n)<<4|(60&s)>>2,n=s,i=3;break;case 3:e[a++]=(3&n)<<6|s,i=0}}if(1===i)throw Error("invalid encoding");return a-t},t.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}},592); -__d(function(t,s,e,i){"use strict";function n(){this._listeners={}}e.exports=n,n.prototype.on=function(t,s,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:s,ctx:e||this}),this},n.prototype.off=function(t,s){if(void 0===t)this._listeners={};else if(void 0===s)this._listeners[t]=[];else for(var e=this._listeners[t],i=0;i0?0:2147483648,t,r);else if(isNaN(e))n(2143289344,t,r);else if(e>3.4028234663852886e38)n((o<<31|2139095040)>>>0,t,r);else if(e<1.1754943508222875e-38)n((o<<31|Math.round(e/1.401298464324817e-45))>>>0,t,r);else{var u=Math.floor(Math.log(e)/Math.LN2);n((o<<31|u+127<<23|8388607&Math.round(e*Math.pow(2,-u)*8388608))>>>0,t,r)}}function t(n,e,t){var r=n(e,t),o=2*(r>>31)+1,u=r>>>23&255,i=8388607&r;return 255===u?i?NaN:o*(1/0):0===u?1.401298464324817e-45*o*i:o*Math.pow(2,u-150)*(i+8388608)}n.writeFloatLE=e.bind(null,u),n.writeFloatBE=e.bind(null,i),n.readFloatLE=t.bind(null,a),n.readFloatBE=t.bind(null,l)})(),"undefined"!=typeof Float64Array?(function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),r=128===t[7];function o(n,r,o){e[0]=n,r[o]=t[0],r[o+1]=t[1],r[o+2]=t[2],r[o+3]=t[3],r[o+4]=t[4],r[o+5]=t[5],r[o+6]=t[6],r[o+7]=t[7]}function u(n,r,o){e[0]=n,r[o]=t[7],r[o+1]=t[6],r[o+2]=t[5],r[o+3]=t[4],r[o+4]=t[3],r[o+5]=t[2],r[o+6]=t[1],r[o+7]=t[0]}function i(n,r){return t[0]=n[r],t[1]=n[r+1],t[2]=n[r+2],t[3]=n[r+3],t[4]=n[r+4],t[5]=n[r+5],t[6]=n[r+6],t[7]=n[r+7],e[0]}function a(n,r){return t[7]=n[r],t[6]=n[r+1],t[5]=n[r+2],t[4]=n[r+3],t[3]=n[r+4],t[2]=n[r+5],t[1]=n[r+6],t[0]=n[r+7],e[0]}n.writeDoubleLE=r?o:u,n.writeDoubleBE=r?u:o,n.readDoubleLE=r?i:a,n.readDoubleBE=r?a:i})():(function(){function e(n,e,t,r,o,u){var i=r<0?1:0;if(i&&(r=-r),0===r)n(0,o,u+e),n(1/r>0?0:2147483648,o,u+t);else if(isNaN(r))n(0,o,u+e),n(2146959360,o,u+t);else if(r>1.7976931348623157e308)n(0,o,u+e),n((i<<31|2146435072)>>>0,o,u+t);else{var a;if(r<2.2250738585072014e-308)n((a=r/5e-324)>>>0,o,u+e),n((i<<31|a/4294967296)>>>0,o,u+t);else{var l=Math.floor(Math.log(r)/Math.LN2);1024===l&&(l=1023),n(4503599627370496*(a=r*Math.pow(2,-l))>>>0,o,u+e),n((i<<31|l+1023<<20|1048576*a&1048575)>>>0,o,u+t)}}}function t(n,e,t,r,o){var u=n(r,o+e),i=n(r,o+t),a=2*(i>>31)+1,l=i>>>20&2047,f=4294967296*(1048575&i)+u;return 2047===l?f?NaN:a*(1/0):0===l?5e-324*a*f:a*Math.pow(2,l-1075)*(f+4503599627370496)}n.writeDoubleLE=e.bind(null,u,0,4),n.writeDoubleBE=e.bind(null,i,4,0),n.readDoubleLE=t.bind(null,a,0,4),n.readDoubleBE=t.bind(null,l,4,0)})(),n}function u(n,e,t){e[t]=255&n,e[t+1]=n>>>8&255,e[t+2]=n>>>16&255,e[t+3]=n>>>24}function i(n,e,t){e[t]=n>>>24,e[t+1]=n>>>16&255,e[t+2]=n>>>8&255,e[t+3]=255&n}function a(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0}function l(n,e){return(n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3])>>>0}t.exports=o(o)},594); -__d(function(global,require,module,exports){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},595); -__d(function(r,t,n,e){"use strict";var o=e;o.length=function(r){for(var t=0,n=0,e=0;e191&&e<224?i[a++]=(31&e)<<6|63&r[t++]:e>239&&e<365?(e=((7&e)<<18|(63&r[t++])<<12|(63&r[t++])<<6|63&r[t++])-65536,i[a++]=55296+(e>>10),i[a++]=56320+(1023&e)):i[a++]=(15&e)<<12|(63&r[t++])<<6|63&r[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},o.write=function(r,t,n){for(var e,o,i=n,a=0;a>6|192,t[n++]=63&e|128):55296==(64512&e)&&56320==(64512&(o=r.charCodeAt(a+1)))?(e=65536+((1023&e)<<10)+(1023&o),++a,t[n++]=e>>18|240,t[n++]=e>>12&63|128,t[n++]=e>>6&63|128,t[n++]=63&e|128):(t[n++]=e>>12|224,t[n++]=e>>6&63|128,t[n++]=63&e|128);return n-i}},596); -__d(function(n,r,t,u){"use strict";t.exports=function(n,r,t){var u=t||8192,c=u>>>1,e=null,i=u;return function(t){if(t<1||t>c)return n(t);i+t>u&&(e=n(u),i=0);var f=r.call(e,i,i+=t);return 7&i&&(i=1+(7|i)),f}}},597); -__d(function(t,i,o,r){"use strict";o.exports=n;var h=i(590);function n(t,i){this.lo=t>>>0,this.hi=i>>>0}var e=n.zero=new n(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(t){if(0===t)return e;var i=t<0;i&&(t=-t);var o=t>>>0,r=(t-o)/4294967296>>>0;return i&&(r=~r>>>0,o=~o>>>0,++o>4294967295&&(o=0,++r>4294967295&&(r=0))),new n(o,r)},n.from=function(t){if("number"==typeof t)return n.fromNumber(t);if(h.isString(t)){if(!h.Long)return n.fromNumber(parseInt(t,10));t=h.Long.fromString(t)}return t.low||t.high?new n(t.low>>>0,t.high>>>0):e},n.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var i=1+~this.lo>>>0,o=~this.hi>>>0;return i||(o=o+1>>>0),-(i+4294967296*o)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(t){return h.Long?new h.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var l=String.prototype.charCodeAt;n.fromHash=function(t){return t===s?e:new n((l.call(t,0)|l.call(t,1)<<8|l.call(t,2)<<16|l.call(t,3)<<24)>>>0,(l.call(t,4)|l.call(t,5)<<8|l.call(t,6)<<16|l.call(t,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},n.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},n.prototype.length=function(){var t=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return 0===o?0===i?t<16384?t<128?1:2:t<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:o<128?9:10}},598); -__d(function(t,e,n,r){"use strict";n.exports=u;var o=e(589);(u.prototype=Object.create(o.prototype)).constructor=u;var i=e(590),s=i.Buffer;function u(){o.call(this)}u.alloc=function(t){return(u.alloc=i._Buffer_allocUnsafe)(t)};var f=s&&s.prototype instanceof Uint8Array&&"set"===s.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(f,e,t),this},u.prototype.string=function(t){var e=s.byteLength(t);return this.uint32(e),e&&this._push(c,e,t),this}},599); -__d(function(t,i,s,r){"use strict";s.exports=f;var o,h=i(590),n=h.LongBits,e=h.utf8;function u(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var p,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")};function a(){var t=new n(0,0),i=0;if(!(this.len-this.pos>4)){for(;i<3;++i){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*i)>>>0,t}for(;i<4;++i)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(i=0,this.len-this.pos>4){for(;i<5;++i)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}else for(;i<5;++i){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw u(this,8);return new n(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=h.Buffer?function(t){return(f.create=function(t){return h.Buffer.isBuffer(t)?new o(t):l(t)})(t)}:l,f.prototype._slice=h.Array.prototype.subarray||h.Array.prototype.slice,f.prototype.uint32=(p=4294967295,function(){if(p=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return p;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return p}),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=h.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=h.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),i=this.pos,s=this.pos+t;if(s>this.len)throw u(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(i,s):i===s?new this.buf.constructor(0):this._slice.call(this.buf,i,s)},f.prototype.string=function(){var t=this.bytes();return e.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw u(this)}while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){o=t;var i=h.Long?"toLong":"toNumber";h.merge(f.prototype,{int64:function(){return a.call(this)[i](!1)},uint64:function(){return a.call(this)[i](!0)},sint64:function(){return a.call(this).zzDecode()[i](!1)},fixed64:function(){return b.call(this)[i](!0)},sfixed64:function(){return b.call(this)[i](!1)}})}},600); -__d(function(t,o,r,e){"use strict";r.exports=p;var i=o(600);(p.prototype=Object.create(i.prototype)).constructor=p;var s=o(590);function p(t){i.call(this,t)}s.Buffer&&(p.prototype._slice=s.Buffer.prototype.slice),p.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},601); -__d(function(c,e,i,t){"use strict";t.Service=e(603)},602); -__d(function(e,t,r,i){"use strict";r.exports=o;var n=t(590);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,i,o,c){if(!o)throw TypeError("request must be specified");var l=this;if(!c)return n.asPromise(e,l,t,r,i,o);if(l.rpcImpl)try{return l.rpcImpl(t,r[l.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return l.emit("error",e,t),c(e);if(null!==r){if(!(r instanceof i))try{r=i[l.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return l.emit("error",e,t),c(e)}return l.emit("data",r,t),c(null,r)}l.end(!0)})}catch(e){return l.emit("error",e,t),void setTimeout(function(){c(e)},0)}else setTimeout(function(){c(Error("already ended"))},0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},603); -__d(function(t,s,c,e){"use strict";c.exports={}},604); -__d(function(e,t,r,a){r.exports={name:"Pangea",version:"1.1.0",private:!0,scripts:{start:"node node_modules/react-native/local-cli/cli.js start",lint:"eslint src __tests__ __mocks__","lint:fix":"eslint --fix src __tests__ __mocks__",test:"flow && jest","test:update":"jest -u","test:coverage":"flow && jest --coverage --forceExit","test:coveralls":"yarn test:coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",ios:"flow && node_modules/.bin/react-native run-ios",android:"flow && node_modules/.bin/react-native run-android",postinstall:"./node_modules/.bin/rn-nodeify --install 'stream,buffer,vm,crypto,string_decoder,events,assert' --hack",docs:"node_modules/.bin/documentation build src/services/container.js -f md > docs/main.md","build:ios":"react-native bundle --entry-file='index.js' --bundle-output='./ios/Pangea/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'","build:protofile":"pbjs -t static-module -w commonjs -o src/services/upstream/compiled.js src/services/upstream/request.proto src/services/upstream/response.proto","build:profile_protofile":"pbjs -t static-module -w commonjs -o src/services/chat/compiled.js src/services/chat/profile.proto"},dependencies:{assert:"^1.4.1","async-to-generator":"^1.1.0",awilix:"^3.0.1","base64-arraybuffer":"^0.1.5","bignumber.js":"^5.0.0","bn.js":"^4.11.8",buffer:"^4.9.1",co:"^4.6.0",ethers:"^3.0.25",eventemitter3:"^3.1.0",events:"^1.1.1","fetch-everywhere":"^1.0.5","flow-bin":"^0.57.0","hoist-non-react-statics":"^2.3.1",i18next:"^10.3.0",lodash:"^4.17.4","native-base":"^2.3.5","prop-types":"^15.6.0",react:"16.0.0","react-native":"0.51.0","react-native-actionsheet":"^2.4.2","react-native-camera":"1.1.4","react-native-config":"^0.11.2","react-native-crypto":"^2.1.2","react-native-dropdownalert":"^3.1.2","react-native-eth-daemon":"git+https://github.com/Bit-Nation/react-native-eth-daemon.git#development","react-native-gifted-chat":"^0.3.0","react-native-image-crop-picker":"^0.19.1","react-native-keyboard-aware-scroll-view":"^0.4.3","react-native-modal":"^4.1.1","react-native-modal-dropdown":"^0.6.0","react-native-navigation":"^1.1.319","react-native-qrcode":"^0.2.6","react-native-qrcode-scanner":"0.0.29","react-native-randombytes":"^3.0.0","react-native-responsive":"^1.0.2","react-native-segmented-control-tab":"3.3.1","react-native-sensitive-info":"^5.1.0","react-native-shake":"^3.2.2","react-native-simple-dialogs":"^0.3.1","react-native-swiper":"^1.5.13","react-native-vector-icons":"^4.4.2","react-navigation":"^1.0.0-beta.22","react-redux":"^5.0.6","readable-stream":"^1.0.33",realm:"2.8.0",recompose:"^0.27.1","reconnecting-websocket":"^4.0.0-rc5",redux:"^3.7.2","redux-logger":"^3.0.6","redux-persist":"^5.4.0","redux-saga":"^0.16.0","redux-thunk":"^2.2.0","rn-nodeify":"^8.3.0","saga-monitor":"git+https://github.com/clarketm/saga-monitor.git","socket.io-client":"^2.0.4","stream-browserify":"^1.0.0",string_decoder:"^0.10.31","unique-string":"^1.0.0",uuid4:"^1.0.0","vm-browserify":"0.0.4"},devDependencies:{"babel-eslint":"^8.2.2","babel-jest":"22.0.3","babel-preset-es2015":"^6.24.1","babel-preset-react-native":"4.0.0",color:"^3.0.0",coveralls:"^3.0.0",documentation:"^5.3.5",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"^4.18.0","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.12.2","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","eslint-plugin-react-native":"^3.2.1","eslint-plugin-require-jsdoc":"^1.0.4","ethers-cli":"^4.0.0","flow-bin":"^0.57.0",jest:"22.0.3",protobufjs:"^6.8.6","react-dom":"^16.2.0","react-native-mock":"^0.3.1","react-test-renderer":"16.0.0","redux-mock-store":"^1.5.1",websocket:"^1.0.26"},jest:{preset:"react-native",setupTestFrameworkScriptFile:"./enzymeInit.js",transformIgnorePatterns:["/node_modules","node_modules/(realm)/"],moduleNameMapper:{"^image![a-zA-Z0-9$_-]+$":"GlobalImageStub","^[@./a-zA-Z0-9$_-]+\\.(png|gif)$":"RelativeImageStub"},collectCoverageFrom:["!**/styles.js","**/**/**/**/*.{js,jsx}","!**/node_modules/**","!**/coverage/**","!**/vendor/**","!src/services/upstream/compiled.js"],globals:{WebSocket:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}}},"react-native":{crypto:"react-native-crypto",_stream_transform:"readable-stream/transform",_stream_readable:"readable-stream/readable",_stream_writable:"readable-stream/writable",_stream_duplex:"readable-stream/duplex",_stream_passthrough:"readable-stream/passthrough",stream:"stream-browserify",vm:"vm-browserify"},browser:{crypto:"react-native-crypto",_stream_transform:"readable-stream/transform",_stream_readable:"readable-stream/readable",_stream_writable:"readable-stream/writable",_stream_duplex:"readable-stream/duplex",_stream_passthrough:"readable-stream/passthrough",stream:"stream-browserify",vm:"vm-browserify"},rnpm:{assets:["assets/fonts/Roboto"]}}},605); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=c;var n=t(350),s=t(528),u=t(607),i=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.call)(u.startDatabaseListening),(0,n.takeEvery)(s.ADD_NEW_MESSAGE,u.addNewMessageSaga)]);case 2:case"end":return e.stop()}},i,this)}},606); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.buildMessageObject=void 0,n.buildMessagesResults=b,n.onCurrentAccountChange=p,n.startDatabaseListening=f,n.addNewMessageSaga=x;var a=t(350),s=t(528),c=t(543),u=babelHelpers.interopRequireDefault(c),o=t(608),i=t(542),l=regeneratorRuntime.mark(p),d=regeneratorRuntime.mark(f),g=regeneratorRuntime.mark(x);function b(e,t){return null===t?null:e.objects('MessageJob').filtered("accountId == '"+t+"'")}function p(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.put)((0,s.messagesUpdated)(e.map(o.convertFromDatabase)));case 2:case"end":return t.stop()}},l,this)}function f(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(i.currentAccountBasedUpdate,b,p);case 2:case"end":return e.stop()}},d,this)}var m=n.buildMessageObject=function(e,t,r,n,a){return{id:e,accountId:t,msg:r,params:JSON.stringify(n),interpret:a,createdAt:new Date}};function x(e){var t,r,n,s,c,l,d;return regeneratorRuntime.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,u.default;case 2:return t=g.sent,r=e.params||{},n=!1!==e.interpret,s=t.objects('MessageJob').sorted('id',!0),c=1,s.length>0&&(c=s[0].id+1),g.next=10,(0,a.call)(i.getCurrentAccountId);case 10:if(l=g.sent,null!==(d=(0,o.convertToDatabase)(m(c,l,e.message,r,n)))){g.next=17;break}return g.next=15,(0,a.call)(e.callback,!1);case 15:g.next=20;break;case 17:return t.write(function(){t.create('MessageJob',d)}),g.next=20,(0,a.call)(e.callback,!0);case 20:case"end":return g.stop()}},g,this)}},607); -__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.convertFromDatabase=function(e){return{id:e.id,accountId:e.accountId,msg:e.msg,params:e.params,interpret:e.interpret,createdAt:e.createdAt}},a.convertToDatabase=function(e){return{id:e.id,accountId:e.accountId,heading:'',msg:e.msg,params:e.params||'',version:1,display:!0,interpret:e.interpret||!0,createdAt:e.createdAt}},t(568)},608); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=_;var n=t(350),s=t(534),E=t(610),S=regeneratorRuntime.mark(_);function _(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)(s.FETCH_ALL_CHATS,E.fetchAllChats),(0,n.takeEvery)(s.GET_PROFILE,E.getProfileActionHandler),(0,n.takeEvery)(s.NEW_CHAT_SESSION,E.createChatSession),(0,n.takeEvery)(s.OPEN_CHAT_SESSION,E.openChatSession),(0,n.takeEvery)(s.SEND_MESSAGE,E.sendMessage),(0,n.takeEvery)(s.LOAD_CHAT_MESSAGES,E.loadMessages),(0,n.takeEvery)(s.PANTHALASSA_MESSAGE_PERSISTED,E.handlePanthalassaMessagePersisted)]);case 2:case"end":return e.stop()}},S,this)}},609); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProfile=P,n.getProfileActionHandler=w,n.createChatSession=R,n.openChatSession=S,n.fetchAllChats=C,n.loadMessages=A,n.sendMessage=M,n.handlePanthalassaMessagePersisted=I;var a=t(350),s=t(13),c=t(534),u=t(543),i=babelHelpers.interopRequireDefault(u),l=t(583),o=babelHelpers.interopRequireDefault(l),f=t(542),p=t(584),x=t(585),d=regeneratorRuntime.mark(P),b=regeneratorRuntime.mark(w),g=regeneratorRuntime.mark(R),h=regeneratorRuntime.mark(S),m=regeneratorRuntime.mark(C),y=regeneratorRuntime.mark(A),k=regeneratorRuntime.mark(M),v=regeneratorRuntime.mark(I);function K(e){var t,r,n,a,c,u;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,regeneratorRuntime.awrap(i.default);case 2:if(t=l.sent,0!==(r=t.objects('Profile').filtered("identityKey == '"+e.ethereumPubKey+"'")).length){l.next=13;break}return n=s.Buffer.from(e.ethereumPubKey,'base64').toString('hex'),l.next=8,regeneratorRuntime.awrap((0,x.panthalassaEthPubToAddress)(n));case 8:return a=l.sent,c={name:e.name,location:e.location||'',image:e.image||'',identityKey:s.Buffer.from(e.identityPubKey,'base64').toString('hex'),ethereumPublicKey:n,ethereumAddress:a,chatIdKey:s.Buffer.from(e.chatIdentityPubKey,'base64').toString('hex'),timestamp:new Date(1e3*e.timestamp),version:e.version,identityKeySignature:s.Buffer.from(e.identityKeySignature,'base64').toString('hex'),ethereumKeySignature:s.Buffer.from(e.ethereumKeySignature,'base64').toString('hex')},u=null,t.write(function(){u=t.create('Profile',c,!0)}),l.abrupt("return",u);case 13:return l.abrupt("return",r[0]);case 14:case"end":return l.stop()}},null,this)}function P(e){var t,r,n,s,c;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,i.default;case 2:return t=u.sent,u.next=5,(0,a.call)([t,'objects'],'Profile');case 5:return r=u.sent,u.next=8,(0,a.call)([r,'filtered'],"identityKey == '"+e+"'");case 8:return r=u.sent,u.next=11,r[0]||null;case 11:if(null==(n=u.sent)){u.next=16;break}return u.next=15,n;case 15:return u.abrupt("return",u.sent);case 16:return u.next=18,(0,a.call)(o.default.getProfile,e);case 18:return s=u.sent,u.next=21,(0,a.call)(K,s);case 21:return c=u.sent,u.abrupt("return",c);case 23:case"end":return u.stop()}},d,this)}function w(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,a.call)(P,e.identityKey);case 3:return t=r.sent,r.next=6,(0,a.call)(e.callback,t,null);case 6:return r.abrupt("return",r.sent);case 9:return r.prev=9,r.t0=r.catch(0),r.next=13,(0,a.call)(e.callback,null,r.t0);case 13:return r.abrupt("return",r.sent);case 14:case"end":return r.stop()}},b,this,[[0,9]])}function R(e){var t,r,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,a.call)(f.getCurrentAccountId);case 2:return t=s.sent,r={publicKey:e.profile.identityKey,username:e.profile.name,accountId:t,messages:[]},s.next=6,(0,a.put)((0,c.addCreatedChatSession)(r));case 6:return s.next=8,(0,a.put)((0,c.selectProfile)(e.profile));case 8:return s.next=10,(0,a.call)(o.default.getPublicKey);case 10:return n=s.sent,s.next=13,(0,a.call)(e.callback,{status:'success',userPublicKey:n});case 13:case"end":return s.stop()}},g,this)}function S(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,a.call)(P,e.publicKey,!1);case 3:if(null!=(t=n.sent)){n.next=8;break}return n.next=7,(0,a.call)(e.callback,{status:'fail'});case 7:return n.abrupt("return");case 8:return n.next=10,(0,a.put)((0,c.loadChatMessages)(e.publicKey));case 10:return n.next=12,(0,a.put)((0,c.selectProfile)(t));case 12:return n.next=14,(0,a.call)(o.default.getPublicKey);case 14:return r=n.sent,n.next=17,(0,a.call)(e.callback,{status:'success',userPublicKey:r});case 17:n.next=23;break;case 19:return n.prev=19,n.t0=n.catch(0),n.next=23,(0,a.call)(e.callback,{status:'fail'});case 23:case"end":return n.stop()}},h,this,[[0,19]])}function C(){var e,t,r,n,s,u,i,l,p;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,a.call)(f.getCurrentAccountId);case 2:return e=x.sent,x.next=5,(0,a.call)(o.default.fetchAllChats);case 5:t=x.sent,r=[],n=t,s=Array.isArray(n),u=0,n=s?n:n["function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator"]();case 8:if(!s){x.next=14;break}if(!(u>=n.length)){x.next=11;break}return x.abrupt("break",31);case 11:i=n[u++],x.next=18;break;case 14:if(!(u=n.next()).done){x.next=17;break}return x.abrupt("break",31);case 17:i=u.value;case 18:return l=i,x.prev=19,x.next=22,(0,a.call)(P,l);case 22:null!=(p=x.sent)&&r.push({publicKey:l,username:p.name,accountId:e,messages:[]}),x.next=29;break;case 26:x.prev=26,x.t0=x.catch(19),console.log("[TEST] Fail to get profile with error: "+x.t0.message);case 29:x.next=8;break;case 31:return x.next=33,(0,a.put)((0,c.chatsUpdated)(r));case 33:case"end":return x.stop()}},m,this,[[19,26]])}function A(e){var t,r,n,s,u;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,i.default;case 2:return t=l.sent,l.next=5,(0,a.call)([t,'objects'],'Profile');case 5:return r=l.sent,l.next=8,(0,a.call)([r,'filtered'],"identityKey == '"+e.recipientPublicKey+"'");case 8:return r=l.sent,l.next=11,r[0]||null;case 11:return n=l.sent,l.next=14,(0,a.call)(f.getCurrentAccount);case 14:if(s=l.sent,!n){l.next=21;break}return l.next=18,(0,a.call)(o.default.loadMessages,s,n,'0',50);case 18:return u=l.sent,l.next=21,(0,a.put)((0,c.chatMessagesLoaded)(e.recipientPublicKey,u));case 21:case"end":return l.stop()}},y,this)}function M(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(o.default.sendMessage,e.recipientPublicKey,e.message);case 2:case"end":return t.stop()}},k,this)}function I(e){var t,r,n,s,u;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload.chat,i.prev=1,i.next=4,(0,a.call)(P,t);case 4:return r=i.sent,i.next=7,(0,a.call)(f.getCurrentAccount);case 7:return n=i.sent,i.next=10,(0,a.select)();case 10:if(s=i.sent,-1!==s.chat.chats.findIndex(function(e){return e.publicKey===t})){i.next=15;break}return i.next=15,(0,a.call)(R,(0,c.newChatSession)(r,function(){}));case 15:if(!r){i.next=19;break}return u=(0,p.createGiftedChatMessageObjects)(n,r,[e.payload]),i.next=19,(0,a.put)((0,c.addChatMessage)(t,u[0]));case 19:i.next=24;break;case 21:i.prev=21,i.t0=i.catch(1),console.log("[TEST] Handle message persisted failed: "+i.t0.message);case 24:case"end":return i.stop()}},v,this,[[1,21]])}},610); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var a=r(350),u=r(612),o=r(508),c=r(681),i=regeneratorRuntime.mark(_);function _(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)([o.CURRENT_ACCOUNT_ID_CHANGED,c.START_NAVIGATION],u.launchCorrectFlow);case 2:case"end":return e.stop()}},i,this)}},611); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.launchCorrectFlow=S,r.launchLoggedInFlow=C,r.launchLoggedOutFlow=E;var a=t(350),s=t(613),c=t(623),l=t(542),u=t(680),o=t(508),p=regeneratorRuntime.mark(S),i=regeneratorRuntime.mark(C);function S(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=void 0,e.type!==o.CURRENT_ACCOUNT_ID_CHANGED){r.next=5;break}t=e.currentAccountId,r.next=8;break;case 5:return r.next=7,(0,a.call)(l.getCurrentAccountId);case 7:t=r.sent;case 8:if(null!==t){r.next=16;break}return r.next=11,(0,a.call)(l.accountsPresent);case 11:return n=r.sent,r.next=14,(0,a.call)(E,n);case 14:r.next=18;break;case 16:return r.next=18,(0,a.call)(C);case 18:case"end":return r.stop()}},p,this)}function C(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(u.isMigration);case 2:e.sent?s.Navigation.startSingleScreenApp({screen:(0,c.screen)('MIGRATION_SCREEN'),appStyle:babelHelpers.extends({},c.appStyle)}):s.Navigation.startTabBasedApp({tabs:[(0,c.screen)('DASHBOARD_SCREEN'),(0,c.screen)('CHAT_LIST_SCREEN'),(0,c.screen)('NATIONS_SCREEN'),(0,c.screen)('WALLET_SCREEN'),(0,c.screen)('SETTINGS_SCREEN')],tabsStyle:babelHelpers.extends({},c.tabsStyle),appStyle:babelHelpers.extends({},c.appStyle)});case 4:case"end":return e.stop()}},i,this)}function E(e){s.Navigation.startSingleScreenApp({screen:!0===e?(0,c.screen)('ACCOUNTS_ACCESS_SCREEN'):(0,c.screen)('ACCOUNTS_SCREEN'),appStyle:babelHelpers.extends({},c.appStyle)})}},612); -__d(function(n,o,t,_){t.exports=o(614)},613); -__d(function(e,t,a,i){var r=t(615),l=babelHelpers.interopRequireDefault(r),n=t(620),u=babelHelpers.interopRequireDefault(n),o=t(621),b=babelHelpers.interopRequireDefault(o),f=t(622),p=babelHelpers.interopRequireDefault(f),s=t(619);a.exports={Navigation:l.default,SharedElementTransition:u.default,NativeEventsReceiver:b.default,ScreenVisibilityListener:p.default,Navigator:s.Navigator}},614); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),s=babelHelpers.interopRequireDefault(a),i=t(17),o=t(616),u=babelHelpers.interopRequireDefault(o),l=t(619),c=t(617),p=babelHelpers.interopRequireDefault(c),d={},f={};function h(e,t){d[e]=t,i.AppRegistry.registerComponent(e,t)}n.default={getRegisteredScreen:function(e){var t=d[e];if(t)return t();console.error("Navigation.getRegisteredScreen: "+e+" used but not yet registered")},getCurrentlyVisibleScreenId:function(){return u.default.getCurrentlyVisibleScreenId()},registerComponent:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r&&n?(function(e,t,r,n,a){var i=function(){var i,o,u=t();return o=i=(function(t){function i(e){babelHelpers.classCallCheck(this,i);var t=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t.state={internalProps:babelHelpers.extends({},e,p.default.load(e.screenInstanceID||e.passPropsKey))},t}return babelHelpers.inherits(i,t),babelHelpers.createClass(i,[{key:"componentWillReceiveProps",value:function(e){this.setState({internalProps:babelHelpers.extends({},p.default.load(this.props.screenInstanceID||this.props.passPropsKey),e)})}},{key:"render",value:function(){return s.default.createElement(n,babelHelpers.extends({store:r},a),s.default.createElement(u,babelHelpers.extends({testID:e,navigator:this.navigator},this.state.internalProps)))}}]),i})(l.Screen),i.navigatorStyle=u.navigatorStyle||{},i.navigatorButtons=u.navigatorButtons||{},o};return h(e,i),i})(e,t,r,n,a):(function(e,t){var r=function(){var r,n,a=t();return a||console.error("Navigation: "+e+" registration result is 'undefined'"),n=r=(function(t){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={internalProps:babelHelpers.extends({},e,p.default.load(e.screenInstanceID||e.passPropsKey))},t}return babelHelpers.inherits(r,t),babelHelpers.createClass(r,[{key:"componentWillReceiveProps",value:function(e){this.setState({internalProps:babelHelpers.extends({},p.default.load(this.props.screenInstanceID||this.props.passPropsKey),e)})}},{key:"render",value:function(){return s.default.createElement(a,babelHelpers.extends({testID:e,navigator:this.navigator},this.state.internalProps))}}]),r})(l.Screen),r.navigatorStyle=a.navigatorStyle||{},r.navigatorButtons=a.navigatorButtons||{},n};return h(e,r),r})(e,t)},showModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showModal(e)},dismissModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissModal(e)},dismissAllModals:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissAllModals(e)},showSnackbar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showSnackbar(e)},showLightBox:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showLightBox(e)},dismissLightBox:function(){return u.default.dismissLightBox()},showInAppNotification:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showInAppNotification(e)},dismissInAppNotification:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissInAppNotification(e)},startTabBasedApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.default.startTabBasedApp(e));case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while starting app: "+t.t0);case 9:case"end":return t.stop()}},null,this,[[0,6]])},startSingleScreenApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.default.startSingleScreenApp(e));case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while starting app: "+t.t0);case 9:case"end":return t.stop()}},null,this,[[0,6]])},setEventHandler:function(e,t){f[e]=t},clearEventHandler:function(e){delete f[e]},handleDeepLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.link,r=e.payload;if(t){var n=babelHelpers.extends({type:'DeepLink',link:t},r?{payload:r}:{});for(var a in f)f[a](n)}},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},615); -__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=o(51),a=(babelHelpers.interopRequireDefault(r),o(17)),s=(babelHelpers.interopRequireDefault(a),o(366)),i=babelHelpers.interopRequireDefault(s),l=o(617),c=babelHelpers.interopRequireDefault(l),u=o(615),p=babelHelpers.interopRequireDefault(u),d=o(618),B=babelHelpers.interopRequireWildcard(d),g=o(138);function b(e){var o=e;return w(o),y(o,e.drawer),H(o),o.passProps=e.passProps,v(o,o.navigatorID),o.screenId=o.screen,o=I(o=T(o))}function f(e){return e.portraitOnlyMode||'portrait'===i.default.get(e,'appStyle.orientation')?'portrait':e.landscaptOnlyMode||'landscape'===i.default.get(e,'appStyle.orientation')?'landscape':'auto'}function v(e,o){e.topTabs=i.default.cloneDeep(e.topTabs),i.default.forEach(i.default.get(e,'topTabs'),function(e){w(e),o&&(e.navigatorID=o),e.screen=e.screenId,e.icon&&S(e),y(e),I(e),H(e),e=T(e)})}function T(e){var o=e.navigatorStyle;return o?(e.styleParams=C(o),i.default.omit(e,['navigatorStyle'])):e}function C(e){if(!e)return null;var o={orientation:e.orientation,screenAnimationType:e.screenAnimationType,statusBarColor:(0,a.processColor)(e.statusBarColor),statusBarHidden:e.statusBarHidden,statusBarTextColorScheme:e.statusBarTextColorScheme,drawUnderStatusBar:e.drawUnderStatusBar,topBarReactView:e.navBarCustomView,topBarReactViewAlignment:e.navBarComponentAlignment,topBarReactViewInitialProps:e.navBarCustomViewInitialProps,topBarColor:(0,a.processColor)(e.navBarBackgroundColor),topBarTransparent:e.navBarTransparent,topBarTranslucent:e.navBarTranslucent,topBarElevationShadowEnabled:e.topBarElevationShadowEnabled,topBarCollapseOnScroll:e.topBarCollapseOnScroll,topBarBorderColor:(0,a.processColor)(e.topBarBorderColor),topBarBorderWidth:e.topBarBorderWidth&&""+e.topBarBorderWidth,collapsingToolBarImage:e.collapsingToolBarImage,collapsingToolBarComponent:e.collapsingToolBarComponent,collapsingToolBarComponentHeight:e.collapsingToolBarComponentHeight,collapsingToolBarCollapsedColor:(0,a.processColor)(e.collapsingToolBarCollapsedColor),collapsingToolBarExpendedColor:(0,a.processColor)(e.collapsingToolBarExpendedColor),showTitleWhenExpended:e.showTitleWhenExpended,expendCollapsingToolBarOnTopTabChange:e.expendCollapsingToolBarOnTopTabChange,titleBarHidden:e.navBarHidden,titleBarHideOnScroll:e.navBarHideOnScroll,titleBarTitleColor:(0,a.processColor)(e.navBarTextColor),titleBarSubtitleColor:(0,a.processColor)(e.navBarSubtitleColor),titleBarSubtitleFontSize:e.navBarSubtitleFontSize,titleBarSubtitleFontFamily:e.navBarSubtitleFontFamily,titleBarButtonColor:(0,a.processColor)(e.navBarButtonColor),titleBarButtonFontFamily:e.navBarButtonFontFamily,titleBarDisabledButtonColor:(0,a.processColor)(e.titleBarDisabledButtonColor),titleBarTitleFontFamily:e.navBarTextFontFamily,titleBarTitleFontSize:e.navBarTextFontSize,titleBarTitleFontBold:e.navBarTextFontBold,titleBarTitleTextCentered:e.navBarTitleTextCentered,titleBarSubTitleTextCentered:e.navBarSubTitleTextCentered,titleBarHeight:e.navBarHeight,titleBarTopPadding:e.navBarTopPadding,backButtonHidden:e.backButtonHidden,topTabsHidden:e.topTabsHidden,contextualMenuStatusBarColor:(0,a.processColor)(e.contextualMenuStatusBarColor),contextualMenuBackgroundColor:(0,a.processColor)(e.contextualMenuBackgroundColor),contextualMenuButtonsColor:(0,a.processColor)(e.contextualMenuButtonsColor),drawBelowTopBar:!e.drawUnderNavBar,topTabTextColor:(0,a.processColor)(e.topTabTextColor),topTabTextFontFamily:e.topTabTextFontFamily,topTabIconColor:(0,a.processColor)(e.topTabIconColor),selectedTopTabIconColor:(0,a.processColor)(e.selectedTopTabIconColor),selectedTopTabTextColor:(0,a.processColor)(e.selectedTopTabTextColor),selectedTopTabIndicatorHeight:e.selectedTopTabIndicatorHeight,selectedTopTabIndicatorColor:(0,a.processColor)(e.selectedTopTabIndicatorColor),topTabsScrollable:e.topTabsScrollable,topTabsHeight:e.topTabsHeight,screenBackgroundColor:(0,a.processColor)(e.screenBackgroundColor),rootBackgroundImageName:e.rootBackgroundImageName,drawScreenAboveBottomTabs:!e.drawUnderTabBar,initialTabIndex:e.initialTabIndex,bottomTabsColor:(0,a.processColor)(e.tabBarBackgroundColor),bottomTabsButtonColor:(0,a.processColor)(e.tabBarButtonColor),bottomTabsSelectedButtonColor:(0,a.processColor)(e.tabBarSelectedButtonColor),bottomTabsHidden:e.tabBarHidden,bottomTabsHiddenOnScroll:e.bottomTabsHiddenOnScroll,bottomTabsHideShadow:e.tabBarHideShadow,forceTitlesDisplay:e.forceTitlesDisplay,bottomTabBadgeTextColor:(0,a.processColor)(e.bottomTabBadgeTextColor),bottomTabBadgeBackgroundColor:(0,a.processColor)(e.bottomTabBadgeBackgroundColor),bottomTabFontFamily:e.tabFontFamily,bottomTabFontSize:e.tabFontSize,bottomTabSelectedFontSize:e.selectedTabFontSize,navigationBarColor:(0,a.processColor)(e.navigationBarColor)};if(e.disabledButtonColor&&(o.titleBarDisabledButtonColor=(0,a.processColor)(e.disabledButtonColor)),e.collapsingToolBarImage){i.default.isString(e.collapsingToolBarImage)&&(o.collapsingToolBarImage=e.collapsingToolBarImage);var t=g(e.collapsingToolBarImage);t&&(o.collapsingToolBarImage=t.uri)}if(i.default.isUndefined(o.expendCollapsingToolBarOnTopTabChange)&&(o.expendCollapsingToolBarOnTopTabChange=!0),o.topBarReactViewInitialProps){var n=i.default.uniqueId('customNavBarComponent');c.default.save(n,o.topBarReactViewInitialProps),o.topBarReactViewInitialProps={passPropsKey:n}}return o}function m(e){var o=babelHelpers.extends({},e),t={left:{},right:{}};return Object.keys(t).forEach(function(e){if(o[e]&&o[e].screen){if(t[e].screenId=o[e].screen,w(t[e]),t[e]=I(t[e]),t[e].passProps=o[e].passProps,o.disableOpenGesture)t[e].disableOpenGesture=parseInt(o.disableOpenGesture);else{var n=o[e].disableOpenGesture;t[e].disableOpenGesture=n?parseInt(n):null}o.fixedWidth?t[e].fixedWidth=o.fixedWidth:t[e].fixedWidth=o[e].fixedWidth}else t[e]=null}),t}function I(e){return e.navigationParams={screenInstanceID:e.screenInstanceID,navigatorID:e.navigatorID,navigatorEventID:e.navigatorEventID},e}function h(e,o,t){w(e,null,o),y(e,t.drawer),H(e),S(e),e.passProps||(e.passProps=t.passProps),v(e,e.navigatorID),e.screenId=e.screen;var n=T(e);return(n=I(e)).overrideBackPress=e.overrideBackPress,n.timestamp=Date.now(),n}function S(e){if(e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(!e.icon)throw new Error("No icon defined for tab "+e.screen)}function x(e){return'none'!==e}function w(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';e.navigatorID=o?o.navigatorID:i.default.uniqueId('navigatorID')+'_nav'+t,e.screenInstanceID=i.default.uniqueId('screenInstanceID'),e.navigatorEventID=e.screenInstanceID+'_events'}function y(e,o){var t=p.default.getRegisteredScreen(e.screen);null==e.navigatorButtons&&(e.navigatorButtons=i.default.cloneDeep(t.navigatorButtons));var n=(function(e){if(e.navigatorButtons&&e.navigatorButtons.rightButtons)return e.navigatorButtons.rightButtons;if(e.rightButtons)return e.rightButtons;var o=p.default.getRegisteredScreen(e.screen);if(o.navigatorButtons&&!i.default.isEmpty(o.navigatorButtons.rightButtons))return i.default.cloneDeep(o.navigatorButtons.rightButtons);return null})(e);n&&n.forEach(function(e){if(e.enabled=!e.disabled,e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(e.buttonColor&&(e.color=(0,a.processColor)(e.buttonColor)),e.component){var t=i.default.uniqueId('customButtonComponent');c.default.save(t,e.passProps),e.passProps={passPropsKey:t}}});var r=k(e);if(r){if(r.icon){var s=g(r.icon);s&&(r.icon=s.uri)}r.buttonColor&&(r.color=(0,a.processColor)(r.buttonColor))}var l=D(e);l&&(e.fab=l),n&&(e.rightButtons=n),r&&(e.leftButton=r)}function D(e){var o=e.fab;if(e.navigatorButtons&&e.navigatorButtons.fab&&(o=e.navigatorButtons.fab),null!==o&&void 0!==o){if(0===Object.keys(o).length)return{};var t=g(o.collapsedIcon);if(t){if(o.collapsedIcon=t.uri,o.expendedIcon){var n=g(o.expendedIcon);n&&(o.expendedIcon=n.uri)}return o.backgroundColor&&(o.backgroundColor=(0,a.processColor)(o.backgroundColor)),o.collapsedIconColor&&(o.collapsedIconColor=(0,a.processColor)(o.collapsedIconColor)),o.expendedIconColor&&(o.expendedIconColor=(0,a.processColor)(o.expendedIconColor)),o.actions&&i.default.forEach(o.actions,function(e){return e.icon=g(e.icon).uri,e.backgroundColor&&(e.backgroundColor=(0,a.processColor)(e.backgroundColor)),e.iconColor&&(e.iconColor=(0,a.processColor)(e.iconColor)),e}),o}}}function P(e){k(e)||(e.leftButton={id:'back'})}function k(e){var o=(function(e){if(e.navigatorButtons&&e.navigatorButtons.leftButton)return e.navigatorButtons.leftButton;return e.leftButton})(e);return o||(e.navigatorButtons&&e.navigatorButtons.leftButtons?e.navigatorButtons.leftButtons[0]:e.leftButtons?i.default.isArray(e.leftButtons)?e.leftButtons[0]:e.leftButtons:null)}function H(e){var o=p.default.getRegisteredScreen(e.screen);e.navigatorStyle=babelHelpers.extends({},o.navigatorStyle,e.navigatorStyle)}n.default={startTabBasedApp:function(e){var o;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.tabs){t.next=3;break}return console.error('startTabBasedApp(params): params.tabs is required'),t.abrupt("return");case 3:return o=[],e.tabs=i.default.cloneDeep(e.tabs),e.tabs.forEach(function(t,n){if(t.components){var r=t.components,a=h(t,n,e),s=a,l=s.label,c=s.icon;a.screens=r.map(function(o){return h(babelHelpers.extends({},o,{icon:c,label:l}),n,e)}),a.screens.map(function(e,o){return P(e)}),a.screens.map(function(e,o){return e.navigationParams.navigatorID=a.navigationParams.navigatorID}),a=i.default.omit(a,['components']),o.push(a)}else o.push(h(t,n,e))}),e.tabs=o,e.appStyle=C(e.appStyle),e.appStyle&&(e.appStyle.orientation=f(e)),e.sideMenu=m(e.drawer),e.animateShow=x(e.animationType),t.next=13,regeneratorRuntime.awrap(B.startApp(e));case 13:return t.abrupt("return",t.sent);case 14:case"end":return t.stop()}},null,this)},startSingleScreenApp:function(e){var o;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.components,e.screen||o){t.next=4;break}return console.error('startSingleScreenApp(params): screen must include a screen property'),t.abrupt("return");case 4:return o?(e.screen=b(o[0]),o.shift(),e.screen.screens=o.map(b)||[],e.screen.screens.map(function(e,o){return 0===o?e:P(e)})):e.screen=b(babelHelpers.extends({},e.screen,{passProps:e.passProps})),e.sideMenu=m(e.drawer),e.overrideBackPress=e.screen.overrideBackPress,e.animateShow=x(e.animationType),e.appStyle=C(e.appStyle),e.appStyle&&(e.appStyle.orientation=f(e)),t.next=12,regeneratorRuntime.awrap(B.startApp(e));case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}},null,this)},navigatorPush:function(e,o){w(o,e),y(o),P(o),H(o),v(o,o.navigatorID),o.screenId=o.screen;var t=T(o);return(t=I(t)).overrideBackPress=o.overrideBackPress,t.timestamp=Date.now(),t.passProps||(t.passProps={}),t.passProps.commandType||(t.passProps.commandType='Push'),B.push(t)},navigatorPop:function(e,o){w(o,e),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.pop(t)},navigatorPopToRoot:function(e,o){w(o,e),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.popToRoot(t)},navigatorResetTo:function(e,o){w(o,e),y(o),H(o),v(o,o.navigatorID),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.newStack(t)},showModal:function(e){w(e),y(e),P(e),H(e),v(e,e.navigatorID),e.screenId=e.screen;var o=T(e);(o=I(o)).overrideBackPress=e.overrideBackPress,o.timestamp=Date.now(),o.passProps||(o.passProps={}),o.passProps.commandType||(o.passProps.commandType='ShowModal'),B.showModal(o)},dismissModal:function(e){B.dismissTopModal(babelHelpers.extends({},e,{navigationParams:{}}))},dismissAllModals:function(e){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.dismissAllModals());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},showInAppNotification:function(e){e.navigationParams={},w(e.navigationParams),e.autoDismissTimerSec=e.autoDismissTimerSec||5,!1===e.autoDismiss&&delete e.autoDismissTimerSec,B.showInAppNotification(e)},showLightBox:function(e){e.navigationParams={},w(e.navigationParams),e.screenId=e.screen;var o=i.default.get(e,'style.backgroundBlur'),t=i.default.get(e,'style.backgroundColor');e.backgroundColor=t?(0,a.processColor)(t):'dark'===o?(0,a.processColor)('rgba(0, 0, 0, 0.5)'):(0,a.processColor)('transparent'),e.tapBackgroundToDismiss=i.default.get(e,'style.tapBackgroundToDismiss')||!1,B.showLightBox(e)},dismissLightBox:function(){B.dismissLightBox()},dismissInAppNotification:function(e){B.dismissInAppNotification(e)},navigatorSetButtons:function(e,o,t){var n=i.default.cloneDeep(t);n.rightButtons&&n.rightButtons.forEach(function(e){if(e.enabled=!e.disabled,e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(e.buttonColor&&(e.color=(0,a.processColor)(e.buttonColor)),e.component){var t=i.default.uniqueId('customButtonComponent');c.default.save(t,e.passProps),e.passProps={passPropsKey:t}}});var r=k(n);if(r){if(r.icon){var s=g(r.icon);s&&(r.icon=s.uri)}r.buttonColor&&(r.color=(0,a.processColor)(r.buttonColor))}else(function(e){return e.leftButtons&&0===e.leftButtons.length})(n)&&(r={});var l=D(n);B.setScreenButtons(e.screenInstanceID,o,n.rightButtons,r,l)},navigatorSetTabBadge:function(e,o){var t=o.badge?o.badge.toString():'';o.tabIndex>=0?B.setBottomTabBadgeByIndex(o.tabIndex,t):B.setBottomTabBadgeByNavigatorId(e.navigatorID,t)},navigatorSetTabButton:function(e,o){if(o.icon){var t=g(o.icon);t&&(o.icon=t.uri)}o.navigationParams={},o.tabIndex>=0?B.setBottomTabButtonByIndex(o.tabIndex,o):B.setBottomTabButtonByNavigatorId(e.navigatorID,o)},navigatorSetTitle:function(e,o){B.setScreenTitleBarTitle(e.screenInstanceID,o.title)},navigatorSetSubtitle:function(e,o){B.setScreenTitleBarSubtitle(e.screenInstanceID,o.subtitle)},navigatorSetStyle:function(e,o){var t=C(o);B.setScreenStyle(e.screenInstanceID,t)},navigatorSwitchToTab:function(e,o){o.tabIndex>=0?B.selectBottomTabByTabIndex(o.tabIndex):B.selectBottomTabByNavigatorId(e.navigatorID)},navigatorSwitchToTopTab:function(e,o){o.tabIndex>=0?B.selectTopTabByTabIndex(e.screenInstanceID,o.tabIndex):B.selectTopTabByScreen(e.screenInstanceID)},navigatorToggleDrawer:function(e,o){var t=!(!1===o.animated);if(o.to){var n='open'===o.to;B.setSideMenuVisible(t,n,o.side)}else B.toggleSideMenuVisible(t,o.side)},navigatorSetDrawerEnabled:function(e,o){B.setSideMenuEnabled(o.enabled,o.side)},navigatorToggleTabs:function(e,o){var t='hidden'===o.to,n=!(!1===o.animated);B.toggleBottomTabsVisible(t,n)},navigatorToggleNavBar:function(e,o){var t=e.screenInstanceID,n='shown'===o.to||'show'===o.to,r=!(!1===o.animated);B.toggleTopBarVisible(t,n,r)},showSnackbar:function(e){var o=i.default.cloneDeep(e);return o.backgroundColor&&(o.backgroundColor=(0,a.processColor)(o.backgroundColor)),o.actionColor&&(o.actionColor=(0,a.processColor)(o.actionColor)),o.textColor&&(o.textColor=(0,a.processColor)(o.textColor)),B.showSnackbar(o)},dismissSnackbar:function(){return B.dismissSnackbar()},showContextualMenu:function(e,o){var t={buttons:[],backButton:{id:'back'},navigationParams:{navigatorEventID:e.navigatorEventID}};o.rightButtons.forEach(function(e,o){var n={icon:g(e.icon),showAsAction:e.showAsAction,color:(0,a.processColor)(e.color),label:e.title,index:o};n.icon&&(n.icon=n.icon.uri),t.buttons.push(n)}),B.showContextualMenu(e.screenInstanceID,t,o.onButtonPressed)},dismissContextualMenu:function(){B.dismissContextualMenu()},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getCurrentlyVisibleScreenId:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.getCurrentlyVisibleScreenId());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},616); -__d(function(e,t,r,n){var i=(function(){function e(){babelHelpers.classCallCheck(this,e),this.registry={}}return babelHelpers.createClass(e,[{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.registry[e]=t}},{key:"load",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return this.registry[e]||{}}}]),e})();r.exports=new i},617); -__d(function(e,t,n,s){var r=t(51),a=(babelHelpers.interopRequireDefault(r),t(17)),o=t(366),i=babelHelpers.interopRequireDefault(o),u=t(617),c=babelHelpers.interopRequireDefault(u),l=a.NativeModules.NavigationReactModule;function p(e){e.navigationParams&&e.passProps&&c.default.save(e.navigationParams.screenInstanceID,e.passProps),e.screen&&e.screen.passProps&&c.default.save(e.screen.navigationParams.screenInstanceID,e.screen.passProps),i.default.get(e,'screen.screens')&&i.default.forEach(e.screen.screens,p),i.default.get(e,'screen.topTabs')&&i.default.forEach(e.screen.topTabs,function(e){return p(e)}),e.topTabs&&i.default.forEach(e.topTabs,function(e){return p(e)}),e.tabs&&i.default.forEach(e.tabs,function(t){t.passProps||(t.passProps=e.passProps),p(t),t.screens&&i.default.forEach(t.screens,p)}),e.sideMenu&&e.sideMenu.left&&c.default.save(e.sideMenu.left.navigationParams.screenInstanceID,e.sideMenu.left.passProps),e.sideMenu&&e.sideMenu.right&&c.default.save(e.sideMenu.right.navigationParams.screenInstanceID,e.sideMenu.right.passProps)}n.exports={startApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return p(e),t.next=3,regeneratorRuntime.awrap(l.startApp(e));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},null,this)},push:function(e){return p(e),l.push(e)},pop:function(e){l.pop(e)},popToRoot:function(e){l.popToRoot(e)},newStack:function(e){p(e),l.newStack(e)},toggleTopBarVisible:function(e,t,n){l.setTopBarVisible(e,t,n)},toggleBottomTabsVisible:function(e,t){l.setBottomTabsVisible(e,t)},setScreenTitleBarTitle:function(e,t){l.setScreenTitleBarTitle(e,t)},setScreenTitleBarSubtitle:function(e,t){l.setScreenTitleBarSubtitle(e,t)},setScreenButtons:function(e,t,n,s,r){l.setScreenButtons(e,t,n,s,r)},showModal:function(e){p(e),l.showModal(e)},dismissTopModal:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(l.dismissTopModal(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this)},dismissAllModals:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.dismissAllModals());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},showLightBox:function(e){p(e),l.showLightBox(e)},dismissLightBox:function(){l.dismissLightBox()},selectTopTabByScreen:function(e){l.selectTopTabByScreen(e)},selectTopTabByTabIndex:function(e,t){l.selectTopTabByTabIndex(e,t)},showInAppNotification:function(e){p(e),l.showSlidingOverlay(e)},dismissInAppNotification:function(e){l.hideSlidingOverlay(e)},toggleSideMenuVisible:function(e,t){l.toggleSideMenuVisible(e,t)},setSideMenuVisible:function(e,t,n){l.setSideMenuVisible(e,t,n)},setSideMenuEnabled:function(e,t){l.setSideMenuEnabled(e,t)},selectBottomTabByNavigatorId:function(e){l.selectBottomTabByNavigatorId(e)},selectBottomTabByTabIndex:function(e){l.selectBottomTabByTabIndex(e)},setBottomTabBadgeByNavigatorId:function(e,t){l.setBottomTabBadgeByNavigatorId(e,t)},setBottomTabBadgeByIndex:function(e,t){l.setBottomTabBadgeByIndex(e,t)},setBottomTabButtonByNavigatorId:function(e,t){l.setBottomTabButtonByNavigatorId(e,t)},setBottomTabButtonByIndex:function(e,t){l.setBottomTabButtonByIndex(e,t)},showSnackbar:function(e){l.showSnackbar(e)},dismissSnackbar:function(){l.dismissSnackbar()},showContextualMenu:function(e,t,n){l.showContextualMenu(e,t,n)},dismissContextualMenu:function(e){l.dismissContextualMenu(e)},setScreenStyle:function(e,t){l.setScreenStyle(e,t)},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getCurrentlyVisibleScreenId:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.getCurrentlyVisibleScreenId());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},618); -__d(function(t,e,n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Navigator=a.Screen=void 0;var r=e(51),i=(babelHelpers.interopRequireDefault(r),e(17)),o=e(616),v=babelHelpers.interopRequireDefault(o),u=e(615),l=babelHelpers.interopRequireDefault(u),s={push:v.default.navigatorPush,pop:v.default.navigatorPop,popToRoot:v.default.navigatorPopToRoot,resetTo:v.default.navigatorResetTo},d=(function(){function t(e,n,a){babelHelpers.classCallCheck(this,t),this.navigatorID=e,this.screenInstanceID=a,this.navigatorEventID=n,this.navigatorEventHandler=null,this.navigatorEventHandlers=[],this.navigatorEventSubscription=null}return babelHelpers.createClass(t,[{key:"push",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.push(this,t)}},{key:"pop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.pop(this,t)}},{key:"popToRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.popToRoot(this,t)}},{key:"resetTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.resetTo(this,t)}},{key:"showModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showModal(t)}},{key:"showLightBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showLightBox(t)}},{key:"dismissModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissModal(t)}},{key:"dismissAllModals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissAllModals(t)}},{key:"showLightBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showLightBox(t)}},{key:"dismissLightBox",value:function(){return l.default.dismissLightBox()}},{key:"showInAppNotification",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showInAppNotification(t)}},{key:"dismissInAppNotification",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissInAppNotification(t)}},{key:"setButtons",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetButtons(this,this.navigatorEventID,t)}},{key:"setTitle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTitle(this,t)}},{key:"setSubTitle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetSubtitle(this,t)}},{key:"setTitleImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTitleImage(this,t)}},{key:"setStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetStyle(this,t)}},{key:"toggleDrawer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleDrawer(this,t)}},{key:"setDrawerEnabled",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetDrawerEnabled(this,t)}},{key:"toggleTabs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleTabs(this,t)}},{key:"toggleNavBar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleNavBar(this,t)}},{key:"setTabBadge",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTabBadge(this,t)}},{key:"setTabButton",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTabButton(this,t)}},{key:"switchToTab",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSwitchToTab(this,t)}},{key:"switchToTopTab",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSwitchToTopTab(this,t)}},{key:"showSnackbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.showSnackbar(t)}},{key:"dismissSnackbar",value:function(){return v.default.dismissSnackbar()}},{key:"showContextualMenu",value:function(t,e){return v.default.showContextualMenu(this,t,e)}},{key:"dismissContextualMenu",value:function(){return v.default.dismissContextualMenu()}},{key:"setOnNavigatorEvent",value:function(t){if(this.navigatorEventHandlers.length>0)throw new Error('setOnNavigatorEvent can not be used after addOnNavigatorEvent has been called');this.navigatorEventHandler=t,this._registerNavigatorEvent()}},{key:"addOnNavigatorEvent",value:function(t){var e=this;if(this.navigatorEventHandler)throw new Error('addOnNavigatorEvent can not be used after setOnNavigatorEvent has been called');return-1===this.navigatorEventHandlers.indexOf(t)&&this.navigatorEventHandlers.push(t),this._registerNavigatorEvent(),function(){return e._removeOnNavigatorEvent(t)}}},{key:"_registerNavigatorEvent",value:function(){var t=this;if(!this.navigatorEventSubscription){var e='android'===i.Platform.OS?i.DeviceEventEmitter:i.NativeAppEventEmitter;this.navigatorEventSubscription=e.addListener(this.navigatorEventID,function(e){return t.onNavigatorEvent(e)}),l.default.setEventHandler(this.navigatorEventID,function(e){return t.onNavigatorEvent(e)})}}},{key:"_removeOnNavigatorEvent",value:function(t){var e=this.navigatorEventHandlers.indexOf(t);-1!==e&&this.navigatorEventHandlers.splice(e,1)}},{key:"onNavigatorEvent",value:function(t){this.navigatorEventHandler&&this.navigatorEventHandler(t),this.navigatorEventHandlers.forEach(function(e){return e(t)})}},{key:"handleDeepLink",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.default.handleDeepLink(t)}},{key:"cleanup",value:function(){this.navigatorEventSubscription&&(this.navigatorEventSubscription.remove(),this.navigatorEventHandlers=[],l.default.clearEventHandler(this.navigatorEventID))}},{key:"screenIsCurrentlyVisible",value:function(){var t;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.default.getCurrentlyVisibleScreenId());case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",t.screenId===this.screenInstanceID);case 6:case"end":return e.stop()}},null,this)}}]),t})(),g=(function(t){function e(t){babelHelpers.classCallCheck(this,e);var n=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return t.navigatorID&&(n.navigator=new d(t.navigatorID,t.navigatorEventID,t.screenInstanceID)),n}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"componentWillUnmount",value:function(){this.navigator&&(this.navigator.cleanup(),this.navigator=void 0)}}]),e})(r.Component);g.navigatorStyle={},g.navigatorButtons={},a.Screen=g,a.Navigator=d},619); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),a=babelHelpers.interopRequireDefault(n),o=(0,t(17).requireNativeComponent)('SharedElementTransition',null),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return a.default.createElement(o,this.props)}}]),t})(n.Component);l.default=s},620); -__d(function(e,t,a,i){Object.defineProperty(i,"__esModule",{value:!0});var n=t(17),r=(function(){function e(){babelHelpers.classCallCheck(this,e),this.emitter='android'===n.Platform.OS?n.DeviceEventEmitter:n.NativeAppEventEmitter}return babelHelpers.createClass(e,[{key:"appLaunched",value:function(e){this.emitter.addListener('RNN.appLaunched',e)}}]),e})();i.default=r},621); -__d(function(i,e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var s=e(17),p=(function(){function i(e){babelHelpers.classCallCheck(this,i),this.emitter='android'===s.Platform.OS?s.DeviceEventEmitter:s.NativeAppEventEmitter,this.listeners=e}return babelHelpers.createClass(i,[{key:"register",value:function(){var i=this.listeners,e=i.willAppear,t=i.didAppear,r=i.willDisappear,s=i.didDisappear;this.willAppearSubscription=e&&this.emitter.addListener('willAppear',e),this.didAppearSubscription=t&&this.emitter.addListener('didAppear',t),this.willDisappearSubscription=r&&this.emitter.addListener('willDisappear',r),this.didDisappearSubscription=s&&this.emitter.addListener('didDisappear',s)}},{key:"unregister",value:function(){this.willAppearSubscription&&this.willAppearSubscription.remove(),this.didAppearSubscription&&this.didAppearSubscription.remove(),this.willDisappearSubscription&&this.willDisappearSubscription.remove(),this.didDisappearSubscription&&this.didDisappearSubscription.remove()}}]),i})();r.default=p},622); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.navigatorStyleModal=r.hiddenNavigatorStyle=r.navigatorStyle=r.androidNavigationButtons=r.appStyle=r.tabsStyle=void 0,r.screen=function(e){return babelHelpers.extends({},u[e])};var n=t(17),l=t(624),o=babelHelpers.interopRequireDefault(l),i=t(515),s=babelHelpers.interopRequireDefault(i),c=t(663),S=babelHelpers.interopRequireDefault(c),E=r.tabsStyle={tabBarButtonColor:s.default.tabBarButtonColor,tabBarLabelColor:s.default.tabBarLabelColor,tabBarSelectedLabelColor:s.default.tabBarSelectedLabelColor,tabBarSelectedButtonColor:s.default.tabBarSelectedButtonColor,tabBarBackgroundColor:s.default.tabBarBackgroundColor},C=(r.appStyle=babelHelpers.extends({},E),r.androidNavigationButtons='android'===n.Platform.OS?{leftButtons:[{id:'back',buttonColor:s.default.androidNavigationButtons}]}:{},r.navigatorStyle={tabBarHidden:!1,statusBarTextColorScheme:'light',statusBarColor:'ios'===n.Platform.OS?s.default.statusBarColorIOS:s.default.statusBarColorOther,navBarBackgroundColor:s.default.navBarBackgroundColor,navBarTransparent:!0,navBarBlur:!1,navBarTranslucent:!0,navBarNoBorder:!0,drawUnderNavBar:!0,drawUnderStatusBar:!1,navBarTextColor:s.default.navBarTextColor,navBarButtonColor:s.default.navBarButtonColor,screenBackgroundColor:'transparent',rootBackgroundImageName:'background-gray.jpg',topBarElevationShadowEnabled:!1}),g=r.hiddenNavigatorStyle={statusBarTextColorScheme:'light',statusBarColor:'ios'===n.Platform.OS?s.default.statusBarColorIOS:s.default.statusBarColorOther,navBarHidden:!0,drawUnderStatusBar:!1,screenBackgroundColor:'transparent',rootBackgroundImageName:'background-gray.jpg'},d=r.navigatorStyleModal=babelHelpers.extends({},C,{tabBarHidden:!0}),u={ACCOUNTS_SCREEN:{screen:'Pangea.AccountsScreen',title:S.default.t('screens.accounts.title'),navigatorStyle:g},ACCOUNT_CREATE_DEVELOPER_SETTINGS:{screen:'Pangea.AccountCreateDeveloperSettingsScreen',title:S.default.t('screens.accounts.create.developerTitle'),navigatorStyle:C},ACCOUNT_CREATE_READY:{screen:'Pangea.AccountCreateReadyScreen',navigatorStyle:g},ACCOUNT_RESTORE_SOURCE:{screen:'Pangea.AccountRestoreSourceScreen',navigatorStyle:C},ACCOUNT_RESTORE_EMPTY_WALLET:{screen:'Pangea.AccountRestoreEmptyWalletScreen',navigatorStyle:g},ACCOUNTS_ACCESS_SCREEN:{screen:'Pangea.AccountsAccess',title:'',navigatorStyle:d},DASHBOARD_SCREEN:{screen:'Pangea.DashboardScreen',label:S.default.t('screens.dashboard.tabTitle'),icon:o.default.TabIcons.dashboard,navigatorStyle:g},CHAT_SCREEN:{screen:'Pangea.ChatScreen',title:S.default.t('screens.chat.title'),navigatorStyle:C},CHAT_NATIONS_SCREEN:{screen:'Pangea.ChatNationsScreen',label:S.default.t('screens.chat.tabTitle'),title:'',navigatorStyle:C},MIGRATION_SCREEN:{screen:'Pangea.MigrationScreen',label:S.default.t('screens.migration.title'),navigatorStyle:C},NEW_CHAT_SCREEN:{screen:'Pangea.NewChatScreen',label:S.default.t('screens.chat.newConversation'),title:'',navigatorStyle:C},NATIONS_SCREEN:{screen:'Pangea.NationsScreen',label:S.default.t('screens.nations.tabTitle'),icon:o.default.TabIcons.nations,title:'',navigatorStyle:C},NATION_DETAILS_SCREEN:{screen:'Pangea.NationDetailsScreen',title:'',navigatorStyle:d},NATION_CREATE_SCREEN:{screen:'Pangea.NationCreateScreen',title:'',navigatorStyle:C},WALLET_SCREEN:{screen:'Pangea.WalletScreen',label:S.default.t('screens.wallet.tabTitle'),icon:o.default.TabIcons.wallet,title:'',navigatorStyle:C},PROFILE_SCREEN:{screen:'Pangea.ProfileScreen',label:S.default.t('screens.profile.tabTitle'),title:'',navigatorStyle:C},CONFIRM_KEY_INSTRUCTION_SCREEN:{screen:'Pangea.ConfirmKeyInstructionScreen',title:S.default.t('screens.confirmKey.title'),navigatorStyle:C,backButtonTitle:''},CONFIRM_KEY_PROCESS_SCREEN:{screen:'Pangea.ConfirmKeyProcessScreen',title:S.default.t('screens.confirmKey.title'),navigatorStyle:C,backButtonTitle:''},VERIFY_KEY_INSTRUCTION_SCREEN:{screen:'Pangea.VerifyKeyInstructionScreen',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:''},VERIFY_KEY_PROCESS_SCREEN:{screen:'Pangea.VerifyKeyProcessScreen',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:'',passProps:{isVerification:!0}},RESTORE_KEY_SCREEN:{screen:'Pangea.RestoreKeyProcessScreen',title:S.default.t('screens.restoreKey.title'),navigatorStyle:C},VIEW_PRIVATE_KEY_SCREEN:{screen:'Pangea.ViewPrivateKeyScreen',title:S.default.t('screens.viewPrivateKey.title'),navigatorStyle:C},INTRO_SCREEN:{screen:'Pangea.Intro',navigatorStyle:g},RECEIVE_MONEY_SCREEN:{screen:'Pangea.ReceiveMoneyScreen',title:'',navigatorStyle:C},VERIFY_KEY_SUCCESS_SCREEN:{screen:'Pangea.VerifyKeySuccess',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:''},SEND_MONEY_SCREEN:{screen:'Pangea.SendMoneyScreen',title:'',navigatorStyle:C},QR_CODE_SCANNER_SCREEN:{screen:'Pangea.QRCodeScannerScreen',title:S.default.t('screens.scanQRCode.title'),navigatorStyle:C},QR_CODE_DAPP_SCREEN:{screen:'Pangea.QRCodeAppScreen',title:'',navigatorStyle:C},SETTINGS_SCREEN:{screen:'Pangea.Settings',title:'',icon:o.default.TabIcons.profile,label:S.default.t('screens.settings.tabTitle'),navigatorStyle:C},SECURITY_SETTINGS_SCREEN:{screen:'Pangea.Settings.Security',title:'',navigatorStyle:C},ENTER_PASSCODE_SCREEN:{screen:'Pangea.EnterPasscode',title:'',navigatorStyle:d},CREATE_PASSCODE_SCREEN:{screen:'Pangea.CreatePasscode',title:'',navigatorStyle:d},CONFIRMATION_SCREEN:{screen:'Pangea.ConfirmationContainer',title:'',navigatorStyle:C},CHAT_LIST_SCREEN:{screen:'Pangea.ChatListScreen',label:S.default.t('screens.chat.tabTitle'),icon:o.default.TabIcons.chat,navigatorStyle:C},PRIVATE_CHAT_SCREEN:{screen:'Pangea.PrivateChatScreen',title:S.default.t('screens.chat.title'),navigatorStyle:C},DAPP_MODAL_SCREEN:{screen:'Pangea.DAppModalScreen',navigatorStyle:C}}},623); -__d(function(o,e,a,t){Object.defineProperty(t,"__esModule",{value:!0});var n=e(625),i=e(626),r=e(627),l=e(628),s=e(629),c=e(627),d=e(630),g=e(631),u=e(632),b=e(633),h=e(634),m=e(635),v=e(636),I=e(637),f=e(638),p=e(639),L=e(640),_=e(641),w=e(642),C=e(643),j=e(644),y=e(629),A=e(645),P=e(646),R=e(647),k=e(648),q=e(649),z=e(650),B=e(651),D=e(652),K=e(653),M={background:n,rightArrow:i,ethereumLogo:r,patLogo:l,demo:s,eth:c,qrColor:d,bitLogo:g,build:b,monroe:h,fern:m,moon:v,avatarIcon:I,bitLogoBig:u,QR:j,privateKeyDemo:f,userCitizenIcon:e(654),disclosureRowIcon:e(655),TabIcons:{dashboard:p,chat:L,nations:_,wallet:w,profile:C},Placeholder:{demo:y,avatar:A},Actions:{chat:P,map:R,join:k,leave:q,reset:z,save:B,delete:D,submit:K},ChatUI:{signal0:e(656),signal1:e(657),signal2:e(658),signal3:e(659),signal4:e(660),signal5:e(661),botIcon:e(662)}};t.default=M},624); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:320,height:568,scales:[1,2,3],hash:"ec4a4ecc058a82440c1252c9f053a517",name:"background",type:"png"})},625); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:9,height:14,scales:[1],hash:"53d07125952d705252eba65fd825beaa",name:"right_arrow",type:"png"})},626); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:39,scales:[1,2,3],hash:"b6f7faeb7b693b9c604257a1ec60a449",name:"ethereum_logo",type:"png"})},627); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:34,height:34,scales:[1,2,3],hash:"b2b0c709f8b24538a9468dd2f9461ad1",name:"pat_logo",type:"png"})},628); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:82,height:82,scales:[1,2,3],hash:"a58913b11b2fb168754ae77a28123caf",name:"demoImage",type:"png"})},629); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:100,height:100,scales:[1],hash:"903d33ffc41379ec0271c4efd9b55994",name:"QR_icon",type:"png"})},630); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:81,height:74,scales:[1],hash:"ca705d8ab598b53cbc6a1b55e0c02ddd",name:"bitnation_logo",type:"png"})},631); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:218,height:199,scales:[1],hash:"c67ab85f6554a5abd30598a179de76be",name:"bitnation_logo_big",type:"png"})},632); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"06b8056329288c3cd9e2834c883e5f04",name:"Chrysler_Building",type:"png"})},633); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"1d30a7a4dae4681d6708e62f174f217d",name:"monroe",type:"png"})},634); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"60ae281a0298373bf1a9de2a335688f5",name:"fern",type:"png"})},635); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"e61b39c0c30a76986f1c6ccac2bc0f9d",name:"moon",type:"png"})},636); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:125,height:125,scales:[1,2,3],hash:"2ce0c26c619ce7c9f60fdece1f13ebd9",name:"avatarIcon",type:"png"})},637); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:500,height:386,scales:[1],hash:"fe86cd9750bc2ff1511c5f272a3cec0f",name:"privateKeyDemo",type:"png"})},638); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"7a3664ed34e7592f2f9fefc378860f60",name:"tabIconDashboard",type:"png"})},639); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"1c2e295d2014d26971924142ab4a6bff",name:"tabIconChat",type:"png"})},640); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"cca40fddd22969edddb8718e839490dc",name:"tabIconNations",type:"png"})},641); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"241ad1736d0fde604a8519abfa87b690",name:"tabIconWallet",type:"png"})},642); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"7ac4175265966a5e172e1d2b24a5f80e",name:"tabIconProfile",type:"png"})},643); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:165,height:165,scales:[1],hash:"3d5e3304bf1878d6bc6b1d4d6ead7c5f",name:"QR",type:"png"})},644); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:100,height:100,scales:[1,2,3],hash:"9337dc678b4a22cc218c5177c9bc0d7f",name:"avatarPlaceholder",type:"png"})},645); -__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"1c2e295d2014d26971924142ab4a6bff",name:"toolbarIconChat",type:"png"})},646); -__d(function(s,a,e,t){e.exports=a(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"395ab15100999fa1f1bf717a13e541da",name:"toolbarIconMap",type:"png"})},647); -__d(function(s,a,e,t){e.exports=a(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"a27fba197aa1bc47b8f9248843b0bb90",name:"toolbarIconJoin",type:"png"})},648); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"684ca465fcb2d9b4d5d59d711d0dbf7c",name:"toolbarIconLeave",type:"png"})},649); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"36954187d417be239e977f86eecc04c4",name:"toolbarIconReset",type:"png"})},650); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"3df32919a8a1e6b5f751dd4cad91a4e3",name:"toolbarIconSave",type:"png"})},651); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"0d85a482e0fb877306ef204aaa2226a6",name:"toolbarIconDelete",type:"png"})},652); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"30b1ae39022149432e028f668558eff3",name:"toolbarIconSubmit",type:"png"})},653); -__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:72,height:72,scales:[1],hash:"24ccf2076c90a29bbedbcf5d9c7a4040",name:"avatarCitizen",type:"png"})},654); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:43,height:70,scales:[1],hash:"d7ac4593a2d03121aae2aa67fea6280b",name:"disclosure",type:"png"})},655); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:19,scales:[1,2,3],hash:"247ca8c4abf7cb3208e82b4940c3b7e5",name:"signal_icon_0",type:"png"})},656); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"f2203ef8feefe9837d2f20f1d28d0e20",name:"signal_icon_1",type:"png"})},657); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"6faa4b6a73590ffef9ad9ab5365be206",name:"signal_icon_2",type:"png"})},658); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"9a0a5172556a3ac8e2dd1d9e68f5c20c",name:"signal_icon_3",type:"png"})},659); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"9b27ac4a4ee73a72c68129ab8645289a",name:"signal_icon_4",type:"png"})},660); -__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"8f8abb1692a7e06d0a9c26267b4a8166",name:"signal_icon_5",type:"png"})},661); -__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:25,scales:[1,2,3],hash:"0f58b1335e6f95bcf8a152c429279ec1",name:"icon_chatbot",type:"png"})},662); -__d(function(e,t,a,u){Object.defineProperty(u,"__esModule",{value:!0});var i=t(664),l=babelHelpers.interopRequireDefault(i),n=t(679);l.default.init({fallbackLng:'en',initImmediate:!1,returnObjects:!0,interpolation:{escapeValue:!1},resources:{en:{translation:n}}}),l.default.ifExists=function(e){return l.default.exists(e)?l.default.t(e):''},l.default.tf=function(e,t){return l.default.exists(e)?l.default.t(e):l.default.ifExists(t)},u.default=l.default},663); -__d(function(t,d,e,f){e.exports=d(665).default},664); -__d(function(e,a,d,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.use=t.t=t.setDefaultNamespace=t.on=t.off=t.loadResources=t.loadNamespaces=t.loadLanguages=t.init=t.getFixedT=t.exists=t.dir=t.createInstance=t.cloneInstance=t.changeLanguage=void 0;var u,l=a(666),n=(u=l)&&u.__esModule?u:{default:u};t.default=n.default;t.changeLanguage=n.default.changeLanguage.bind(n.default),t.cloneInstance=n.default.cloneInstance.bind(n.default),t.createInstance=n.default.createInstance.bind(n.default),t.dir=n.default.dir.bind(n.default),t.exists=n.default.exists.bind(n.default),t.getFixedT=n.default.getFixedT.bind(n.default),t.init=n.default.init.bind(n.default),t.loadLanguages=n.default.loadLanguages.bind(n.default),t.loadNamespaces=n.default.loadNamespaces.bind(n.default),t.loadResources=n.default.loadResources.bind(n.default),t.off=n.default.off.bind(n.default),t.on=n.default.on.bind(n.default),t.setDefaultNamespace=n.default.setDefaultNamespace.bind(n.default),t.t=n.default.t.bind(n.default),t.use=n.default.use.bind(n.default)},665); -__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=m(this,t.call(this));if(r.options=(0,d.transformOptions)(o),r.services={},r.logger=s.default,r.modules={external:[]},n&&!r.isInitialized&&!o.isClone){var i;if(!r.options.initImmediate)return i=r.init(o,n),m(r,i);setTimeout(function(){r.init(o,n)},0)}return r}return b(e,t),e.prototype.init=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1];function n(t){return t?'function'==typeof t?new t:t:null}if('function'==typeof e&&(o=e,e={}),this.options=i({},(0,d.get)(),this.options,(0,d.transformOptions)(e)),this.format=this.options.interpolation.format,o||(o=w),!this.options.isClone){this.modules.logger?s.default.init(n(this.modules.logger),this.options):s.default.init(null,this.options);var r=new u.default(this.options);this.store=new c.default(this.options.resources,this.options);var a=this.services;a.logger=s.default,a.resourceStore=this.store,a.resourceStore.on('added removed',function(t,e){a.cacheConnector.save()}),a.languageUtils=r,a.pluralResolver=new p.default(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new f.default(this.options),a.backendConnector=new g.default(n(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on('*',function(e){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r1?o-1:0),r=1;r1?o-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:w;if(this.options.resources)e(null);else{if(this.language&&'cimode'===this.language.toLowerCase())return e();var o=[],n=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(t){o.indexOf(t)<0&&o.push(t)})};if(this.language)n(this.language);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return n(t)});this.options.preload&&this.options.preload.forEach(function(t){return n(t)}),this.services.cacheConnector.load(o,this.options.ns,function(){t.services.backendConnector.load(o,t.options.ns,e)})}},e.prototype.reloadResources=function(t,e){t||(t=this.languages),e||(e=this.options.ns),this.services.backendConnector.reload(t,e)},e.prototype.use=function(t){return'backend'===t.type&&(this.modules.backend=t),'cache'===t.type&&(this.modules.cache=t),('logger'===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),'languageDetector'===t.type&&(this.modules.languageDetector=t),'postProcessor'===t.type&&y.default.addPostProcessor(t),'3rdParty'===t.type&&this.modules.external.push(t),this},e.prototype.changeLanguage=function(t,e){var o=this,n=function(t){t&&(o.language=t,o.languages=o.services.languageUtils.toResolveHierarchy(t),o.translator.language||o.translator.changeLanguage(t),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(t)),o.loadResources(function(n){!(function(t,n){o.translator.changeLanguage(n),n&&(o.emit('languageChanged',n),o.logger.log('languageChanged',n)),e&&e(t,function(){return o.t.apply(o,arguments)})})(n,t)})};t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(t):n(this.services.languageDetector.detect())},e.prototype.getFixedT=function(t,e){var o=this,n=function t(e,n){for(var s=arguments.length,a=Array(s>2?s-2:0),c=2;c0?this.languages[0]:this.language),!t)return'rtl';return['ar','shu','sqr','ssh','xaa','yhd','yud','aao','abh','abv','acm','acq','acw','acx','acy','adf','ads','aeb','aec','afb','ajp','apc','apd','arb','arq','ars','ary','arz','auz','avl','ayh','ayl','ayn','ayp','bbz','pga','he','iw','ps','pbt','pbu','pst','prp','prd','ur','ydd','yds','yih','ji','yi','hbo','men','xmn','fa','jpr','peo','pes','prs','dv','sam'].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?'rtl':'ltr'},e.prototype.createInstance=function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},e.prototype.cloneInstance=function(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,r=i({},this.options,o,{isClone:!0}),s=new e(r);return['store','services','language'].forEach(function(e){s[e]=t[e]}),s.translator=new l.default(s.services,s.options),s.translator.on('*',function(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{};!(function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),this.init(t,o)}return r.prototype.init=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||'i18next:',this.logger=r||i,this.options=t,this.debug=t.debug},r.prototype.setDebug=function(r){this.debug=r},r.prototype.log=function(){for(var r=arguments.length,t=Array(r),o=0;o-1&&o.observers[e].splice(s,1)}else delete o.observers[e]})},e.prototype.emit=function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:{ns:['translation'],defaultNS:'translation'};!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=(function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e})(this,t.call(this));return r.data=o||{},r.options=n,r}return c(e,t),e.prototype.addNamespaces=function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)},e.prototype.removeNamespaces=function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)},e.prototype.getResource=function(t,e,o){var n=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keySeparator||this.options.keySeparator;void 0===n&&(n='.');var r=[t,e];return o&&'string'!=typeof o&&(r=r.concat(o)),o&&'string'==typeof o&&(r=r.concat(n?o.split(n):o)),t.indexOf('.')>-1&&(r=t.split('.')),p.getPath(this.data,r)},e.prototype.addResource=function(t,e,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i='.');var s=[t,e];o&&(s=s.concat(i?o.split(i):o)),t.indexOf('.')>-1&&(n=e,e=(s=t.split('.'))[1]),this.addNamespaces(e),p.setPath(this.data,s,n),r.silent||this.emit('added',t,e,o,n)},e.prototype.addResources=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)'string'==typeof o[r]&&this.addResource(t,e,r,o[r],{silent:!0});n.silent||this.emit('added',t,e,o)},e.prototype.addResourceBundle=function(t,e,o,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf('.')>-1&&(n=o,o=e,e=(a=t.split('.'))[1]),this.addNamespaces(e);var c=p.getPath(this.data,a)||{};n?p.deepExtend(c,o,r):c=i({},c,o),p.setPath(this.data,a,c),s.silent||this.emit('added',t,e,o)},e.prototype.removeResourceBundle=function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit('removed',t,e)},e.prototype.hasResourceBundle=function(t,e){return void 0!==this.getResource(t,e)},e.prototype.getResourceBundle=function(t,e){return e||(e=this.options.defaultNS),'v1'===this.options.compatibilityAPI?i({},this.getResource(t,e)):this.getResource(t,e)},e.prototype.toJSON=function(){return this.data},e})(a.default);n.default=u},669); -__d(function(n,t,e,r){'use strict';function i(n,t,e){function r(n){return n&&n.indexOf('###')>-1?n.replace(/###/g,'.'):n}function i(){return!n||'string'==typeof n}for(var o='string'!=typeof t?[].concat(t):t.split('.');o.length>1;){if(i())return{};var u=r(o.shift());!n[u]&&e&&(n[u]=new e),n=n[u]}return i()?{}:{obj:n,k:r(o.shift())}}Object.defineProperty(r,"__esModule",{value:!0}),r.makeString=function(n){return null==n?'':''+n},r.copy=function(n,t,e){n.forEach(function(n){t[n]&&(e[n]=t[n])})},r.setPath=function(n,t,e){var r=i(n,t,Object),o=r.obj,u=r.k;o[u]=e},r.pushPath=function(n,t,e,r){var o=i(n,t,Object),u=o.obj,c=o.k;u[c]=u[c]||[],r&&(u[c]=u[c].concat(e));r||u[c].push(e)},r.getPath=function(n,t){var e=i(n,t),r=e.obj,o=e.k;return r?r[o]:void 0},r.deepExtend=function n(t,e,r){for(var i in e)i in t?'string'==typeof t[i]||t[i]instanceof String||'string'==typeof e[i]||e[i]instanceof String?r&&(t[i]=e[i]):n(t[i],e[i],r):t[i]=e[i];return t},r.regexEscape=function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')},r.escape=function(n){if('string'==typeof n)return n.replace(/[&<>"'\/]/g,function(n){return o[n]});return n};var o={"&":"&","<":"<",">":">",'"':'"',"'":''',"/":'/'}},670); -__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=(function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e})(this,t.call(this));return p.copy(['resourceStore','languageUtils','pluralResolver','interpolator','backendConnector'],o,r),r.options=n,r.logger=a.default.create('translator'),r}return c(e,t),e.prototype.changeLanguage=function(t){t&&(this.language=t)},e.prototype.exists=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=this.resolve(t,e);return o&&void 0!==o.res},e.prototype.extractFromKey=function(t,e){var o=e.nsSeparator||this.options.nsSeparator;void 0===o&&(o=':');var n=e.keySeparator||this.options.keySeparator||'.',r=e.ns||this.options.defaultNS;if(o&&t.indexOf(o)>-1){var i=t.split(o);(o!==n||o===n&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),t=i.join(n)}return'string'==typeof r&&(r=[r]),{key:t,namespaces:r}},e.prototype.translate=function(t,e){var o=this;if('object'!==(void 0===e?'undefined':i(e))&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),void 0===t||null===t||''===t)return'';'number'==typeof t&&(t=String(t)),'string'==typeof t&&(t=[t]);var n=e.keySeparator||this.options.keySeparator||'.',a=this.extractFromKey(t[t.length-1],e),s=a.key,l=a.namespaces,p=l[l.length-1],u=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&'cimode'===u.toLowerCase()){if(c){var f=e.nsSeparator||this.options.nsSeparator;return p+f+s}return s}var y=this.resolve(t,e),h=y&&y.res,g=y&&y.usedKey||s,d=Object.prototype.toString.apply(h),v=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays;if(h&&('string'!=typeof h&&'boolean'!=typeof h&&'number'!=typeof h)&&['[object Number]','[object Function]','[object RegExp]'].indexOf(d)<0&&(!v||'[object Array]'!==d)){if(!e.returnObjects&&!this.options.returnObjects)return this.logger.warn('accessing an object - but returnObjects options is not enabled!'),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,e):'key \''+s+' ('+this.language+')\' returned an object instead of string.';if(e.keySeparator||this.options.keySeparator){var b='[object Array]'===d?[]:{};for(var j in h)if(Object.prototype.hasOwnProperty.call(h,j)){var m=''+g+n+j;b[j]=this.translate(m,r({},e,{joinArrays:!1,ns:l})),b[j]===m&&(b[j]=h[j])}h=b}}else if(v&&'[object Array]'===d)(h=h.join(v))&&(h=this.extendTranslation(h,t,e));else{var O=!1,S=!1;this.isValidLookup(h)||void 0===e.defaultValue||(O=!0,h=e.defaultValue),this.isValidLookup(h)||(S=!0,h=s);var k=e.defaultValue&&e.defaultValue!==h&&this.options.updateMissing;if(S||O||k){this.logger.log(k?'updateKey':'missingKey',u,p,s,k?e.defaultValue:h);var x=[],V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if('fallback'===this.options.saveMissingTo&&V&&V[0])for(var M=0;M1&&void 0!==arguments[1]?arguments[1]:{},n=void 0,r=void 0;return'string'==typeof t&&(t=[t]),t.forEach(function(t){if(!e.isValidLookup(n)){var i=e.extractFromKey(t,o),a=i.key;r=a;var s=i.namespaces;e.options.fallbackNS&&(s=s.concat(e.options.fallbackNS));var l=void 0!==o.count&&'string'!=typeof o.count,p=void 0!==o.context&&'string'==typeof o.context&&''!==o.context,u=o.lngs?o.lngs:e.languageUtils.toResolveHierarchy(o.lng||e.language);s.forEach(function(t){e.isValidLookup(n)||u.forEach(function(r){if(!e.isValidLookup(n)){var i=a,s=[i],u=void 0;l&&(u=e.pluralResolver.getSuffix(r,o.count)),l&&p&&s.push(i+u),p&&s.push(i+=''+e.options.contextSeparator+o.context),l&&s.push(i+=u);for(var c=void 0;c=s.pop();)e.isValidLookup(n)||(n=e.getResource(r,t,c,o))}})})}}),{res:n,usedKey:r}},e.prototype.isValidLookup=function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&''===t)},e.prototype.getResource=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(t,e,o,n)},e})(s.default);n.default=f},671); -__d(function(s,o,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={processors:{},addPostProcessor:function(s){this.processors[s.name]=s},handle:function(s,o,e,r,c){var t=this;return s.forEach(function(s){t.processors[s]&&(o=t.processors[s].process(o,e,r,c))}),o}}},672); -__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var i,r=e(667),a=(i=r)&&i.__esModule?i:{default:i};function s(t){return t.charAt(0).toUpperCase()+t.slice(1)}var l=(function(){function t(e){!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=a.default.create('languageUtils')}return t.prototype.getScriptPartFromCode=function(t){if(!t||t.indexOf('-')<0)return null;var e=t.split('-');return 2===e.length?null:(e.pop(),this.formatLanguageCode(e.join('-')))},t.prototype.getLanguagePartFromCode=function(t){if(!t||t.indexOf('-')<0)return t;var e=t.split('-');return this.formatLanguageCode(e[0])},t.prototype.formatLanguageCode=function(t){if('string'==typeof t&&t.indexOf('-')>-1){var e=['hans','hant','latn','cyrl','cans','mong','arab'],o=t.split('-');return this.options.lowerCaseLng?o=o.map(function(t){return t.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=s(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),'sgn'!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=s(o[1].toLowerCase())),e.indexOf(o[2].toLowerCase())>-1&&(o[2]=s(o[2].toLowerCase()))),o.join('-')}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t},t.prototype.isWhitelisted=function(t){return('languageOnly'===this.options.load||this.options.nonExplicitWhitelist)&&(t=this.getLanguagePartFromCode(t)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(t)>-1},t.prototype.getFallbackCodes=function(t,e){if(!t)return[];if('string'==typeof t&&(t=[t]),'[object Array]'===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var o=t[e];return o||(o=t[this.getScriptPartFromCode(e)]),o||(o=t[this.formatLanguageCode(e)]),o||(o=t.default),o||[]},t.prototype.toResolveHierarchy=function(t,e){var o=this,n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=function(t){t&&(o.isWhitelisted(t)?i.push(t):o.logger.warn('rejecting non-whitelisted language code: '+t))};return'string'==typeof t&&t.indexOf('-')>-1?('languageOnly'!==this.options.load&&r(this.formatLanguageCode(t)),'languageOnly'!==this.options.load&&'currentOnly'!==this.options.load&&r(this.getScriptPartFromCode(t)),'currentOnly'!==this.options.load&&r(this.getLanguagePartFromCode(t))):'string'==typeof t&&r(this.formatLanguageCode(t)),n.forEach(function(t){i.indexOf(t)<0&&r(o.formatLanguageCode(t))}),i},t})();n.default=l},673); -__d(function(n,r,t,u){'use strict';Object.defineProperty(u,"__esModule",{value:!0});var e,o=r(667),s=(e=o)&&e.__esModule?e:{default:e};var i=[{lngs:['ach','ak','am','arn','br','fil','gun','ln','mfe','mg','mi','oc','pt','pt-BR','tg','ti','tr','uz','wa'],nr:[1,2],fc:1},{lngs:['af','an','ast','az','bg','bn','ca','da','de','dev','el','en','eo','es','et','eu','fi','fo','fur','fy','gl','gu','ha','he','hi','hu','hy','ia','it','kn','ku','lb','mai','ml','mn','mr','nah','nap','nb','ne','nl','nn','no','nso','pa','pap','pms','ps','pt-PT','rm','sco','se','si','so','son','sq','sv','sw','ta','te','tk','ur','yo'],nr:[1,2],fc:2},{lngs:['ay','bo','cgg','fa','id','ja','jbo','ka','kk','km','ko','ky','lo','ms','sah','su','th','tt','ug','vi','wo','zh'],nr:[1],fc:3},{lngs:['be','bs','dz','hr','ru','sr','uk'],nr:[1,2,5],fc:4},{lngs:['ar'],nr:[0,1,2,3,11,100],fc:5},{lngs:['cs','sk'],nr:[1,2,5],fc:6},{lngs:['csb','pl'],nr:[1,2,5],fc:7},{lngs:['cy'],nr:[1,2,3,8],fc:8},{lngs:['fr'],nr:[1,2],fc:9},{lngs:['ga'],nr:[1,2,3,7,11],fc:10},{lngs:['gd'],nr:[1,2,3,20],fc:11},{lngs:['is'],nr:[1,2],fc:12},{lngs:['jv'],nr:[0,1],fc:13},{lngs:['kw'],nr:[1,2,3,4],fc:14},{lngs:['lt'],nr:[1,2,10],fc:15},{lngs:['lv'],nr:[1,2,0],fc:16},{lngs:['mk'],nr:[1,2],fc:17},{lngs:['mnk'],nr:[0,1,2],fc:18},{lngs:['mt'],nr:[1,2,11,20],fc:19},{lngs:['or'],nr:[2,1],fc:2},{lngs:['ro'],nr:[1,2,20],fc:20},{lngs:['sl'],nr:[5,1,2,3],fc:21}],l={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(n){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},5:function(n){return Number(0===n?0:1==n?1:2==n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&n<=4?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:n<7?2:n<11?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&n<20?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0===n||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3)},20:function(n){return Number(1==n?0:0===n||n%100>0&&n%100<20?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)}};var f=(function(){function n(r){var t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(function(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")})(this,n),this.languageUtils=r,this.options=u,this.logger=s.default.create('pluralResolver'),this.rules=(t={},i.forEach(function(n){n.lngs.forEach(function(r){t[r]={numbers:n.nr,plurals:l[n.fc]}})}),t)}return n.prototype.addRule=function(n,r){this.rules[n]=r},n.prototype.getRule=function(n){return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},n.prototype.needsPlural=function(n){var r=this.getRule(n);return r&&r.numbers.length>1},n.prototype.getPluralFormsOfKey=function(n,r){var t=this,u=[],e=this.getRule(n);return e?(e.numbers.forEach(function(e){var o=t.getSuffix(n,e);u.push(''+r+o)}),u):u},n.prototype.getSuffix=function(n,r){var t=this,u=this.getRule(n);if(u){var e=u.noAbs?u.plurals(r):u.plurals(Math.abs(r)),o=u.numbers[e];this.options.simplifyPluralSuffix&&2===u.numbers.length&&1===u.numbers[0]&&(2===o?o='plural':1===o&&(o=''));var s=function(){return t.options.prepend&&o.toString()?t.options.prepend+o.toString():o.toString()};return'v1'===this.options.compatibilityJSON?1===o?'':'number'==typeof o?'_plural_'+o.toString():s():'v2'===this.options.compatibilityJSON||2===u.numbers.length&&1===u.numbers[0]?s():2===u.numbers.length&&1===u.numbers[0]?s():this.options.prepend&&e.toString()?this.options.prepend+e.toString():e.toString()}return this.logger.warn('no plural rule found for: '+n),''},n})();u.default=f},674); -__d(function(e,t,i,r){'use strict';Object.defineProperty(r,"__esModule",{value:!0});var n,s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.logger=p.default.create('interpolator'),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||a.escape),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?a.regexEscape(t.prefix):t.prefixEscaped||'{{',this.suffix=t.suffix?a.regexEscape(t.suffix):t.suffixEscaped||'}}',this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||',',this.unescapePrefix=t.unescapeSuffix?'':t.unescapePrefix||'-',this.unescapeSuffix=this.unescapePrefix?'':t.unescapeSuffix||'',this.nestingPrefix=t.nestingPrefix?a.regexEscape(t.nestingPrefix):t.nestingPrefixEscaped||a.regexEscape('$t('),this.nestingSuffix=t.nestingSuffix?a.regexEscape(t.nestingSuffix):t.nestingSuffixEscaped||a.regexEscape(')'),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+'(.+?)'+this.suffix;this.regexp=new RegExp(e,'g');var t=''+this.prefix+this.unescapePrefix+'(.+?)'+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,'g');var i=this.nestingPrefix+'(.+?)'+this.nestingSuffix;this.nestingRegexp=new RegExp(i,'g')},e.prototype.interpolate=function(e,t,i){var r=this,n=void 0,s=void 0,o=void 0;function p(e){return e.replace(/\$/g,'$$$$')}var f=function(e){if(e.indexOf(r.formatSeparator)<0)return a.getPath(t,e);var n=e.split(r.formatSeparator),s=n.shift().trim(),o=n.join(r.formatSeparator).trim();return r.format(a.getPath(t,s),o,i)};for(this.resetRegExp(),o=0;(n=this.regexpUnescape.exec(e))&&(s=f(n[1].trim()),e=e.replace(n[0],s),this.regexpUnescape.lastIndex=0,!(++o>=this.maxReplaces)););for(o=0;n=this.regexp.exec(e);){if('string'!=typeof(s=f(n[1].trim()))&&(s=a.makeString(s)),!s)if('function'==typeof this.options.missingInterpolationHandler){var c=this.options.missingInterpolationHandler(e,n);s='string'==typeof c?c:''}else this.logger.warn('missed to pass in variable '+n[1]+' for interpolating '+e),s='';if(s=this.escapeValue?p(this.escape(s)):p(s),e=e.replace(n[0],s),this.regexp.lastIndex=0,++o>=this.maxReplaces)break}return e},e.prototype.nest=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,n=void 0,o=s({},i);function p(e,t){if(e.indexOf(',')<0)return e;var i=e.split(',');e=i.shift();var r=i.join(',');r=(r=this.interpolate(r,o)).replace(/'/g,'"');try{o=JSON.parse(r),t&&(o=s({},t,o))}catch(t){this.logger.error('failed parsing options string in nesting for key '+e,t)}return e}for(o.applyPostProcessor=!1;r=this.nestingRegexp.exec(e);){if((n=t(p.call(this,r[1].trim(),o),o))&&r[0]===e&&'string'!=typeof n)return n;'string'!=typeof n&&(n=a.makeString(n)),n||(this.logger.warn('missed to resolve '+r[1]+' for nesting '+e),n=''),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e},e})();r.default=f},675); -__d(function(e,t,n,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var i=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this));return i.backend=n,i.store=o,i.languageUtils=a.languageUtils,i.options=r,i.logger=l.default.create('backendConnector'),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(a,r.backend,r),i}return u(t,e),t.prototype.queueLoad=function(e,t,n){var o=this,a=[],r=[],i=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var i=e+'|'+t;o.store.hasResourceBundle(e,t)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?r.indexOf(i)<0&&r.push(i):(o.state[i]=1,n=!1,r.indexOf(i)<0&&r.push(i),a.indexOf(i)<0&&a.push(i),l.indexOf(t)<0&&l.push(t)))}),n||i.push(e)}),(a.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:n}),{toLoad:a,pending:r,toLoadLanguages:i,toLoadNamespaces:l}},t.prototype.loaded=function(e,t,n){var o=this,a=e.split('|'),l=r(a,2),s=l[0],u=l[1];t&&this.emit('failedLoading',s,u,t),n&&this.store.addResourceBundle(s,u,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){i.pushPath(n.loaded,[s],u),(function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)})(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(o.emit('loaded',n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=arguments[5];return e.length?this.backend[n](e,t,function(l,s){l&&s&&o<5?setTimeout(function(){a.read.call(a,e,t,n,o+1,2*r,i)},r):i(l,s)}):i(null,{})},t.prototype.load=function(e,t,n){var o=this;if(!this.backend)return this.logger.warn('No backend was added via i18next.use. Will not load resources.'),n&&n();var l=a({},this.backend.options,this.options.backend);'string'==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),'string'==typeof t&&(t=[t]);var s=this.queueLoad(e,t,n);if(!s.toLoad.length)return s.pending.length||n(),null;l.allowMultiLoading&&this.backend.readMulti?this.read(s.toLoadLanguages,s.toLoadNamespaces,'readMulti',null,null,function(e,t){e&&o.logger.warn('loading namespaces '+s.toLoadNamespaces.join(', ')+' for languages '+s.toLoadLanguages.join(', ')+' via multiloading failed',e),!e&&t&&o.logger.log('successfully loaded namespaces '+s.toLoadNamespaces.join(', ')+' for languages '+s.toLoadLanguages.join(', ')+' via multiloading',t),s.toLoad.forEach(function(n){var a=n.split('|'),l=r(a,2),s=l[0],u=l[1],d=i.getPath(t,[s,u]);if(d)o.loaded(n,e,d);else{var c='loading namespace '+u+' for language '+s+' via multiloading failed';o.loaded(n,c),o.logger.error(c)}})}):s.toLoad.forEach(function(e){o.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn('No backend was added via i18next.use. Will not load resources.');var o=a({},this.backend.options,this.options.backend);'string'==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),'string'==typeof t&&(t=[t]),o.allowMultiLoading&&this.backend.readMulti?this.read(e,t,'readMulti',null,null,function(o,a){o&&n.logger.warn('reloading namespaces '+t.join(', ')+' for languages '+e.join(', ')+' via multiloading failed',o),!o&&a&&n.logger.log('successfully reloaded namespaces '+t.join(', ')+' for languages '+e.join(', ')+' via multiloading',a),e.forEach(function(e){t.forEach(function(t){var r=i.getPath(a,[e,t]);if(r)n.loaded(e+'|'+t,o,r);else{var l='reloading namespace '+t+' for language '+e+' via multiloading failed';n.loaded(e+'|'+t,l),n.logger.error(l)}})})}):e.forEach(function(e){t.forEach(function(t){n.loadOne(e+'|'+t,'re')})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',o=e.split('|'),a=r(o,2),i=a[0],l=a[1];this.read(i,l,'read',null,null,function(o,a){o&&t.logger.warn(n+'loading namespace '+l+' for language '+i+' failed',o),!o&&a&&t.logger.log(n+'loaded namespace '+l+' for language '+i,a),t.loaded(e,o,a)})},t.prototype.saveMissing=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,a({},i,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o)},t})(s(t(668)).default);o.default=d},676); -__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var i=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this));return i.cache=r,i.store=o,i.services=n,i.options=a,i.logger=c.default.create('cacheConnector'),i.cache&&i.cache.init&&i.cache.init(n,a.cache,a),i}return i(t,e),t.prototype.load=function(e,t,r){var o=this;if(!this.cache)return r&&r();var c=n({},this.cache.options,this.options.cache),a='string'==typeof e?this.services.languageUtils.toResolveHierarchy(e):e;c.enabled?this.cache.load(a,function(e,t){if(e&&o.logger.error('loading languages '+a.join(', ')+' from cache failed',e),t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))for(var c in t[n])if(Object.prototype.hasOwnProperty.call(t[n],c)&&'i18nStamp'!==c){var i=t[n][c];i&&o.store.addResourceBundle(n,c,i)}r&&r()}):r&&r()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t})(a(t(668)).default);o.default=s},677); -__d(function(e,a,n,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.transformOptions=function(e){'string'==typeof e.ns&&(e.ns=[e.ns]);'string'==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]);'string'==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]);e.whitelist&&e.whitelist.indexOf('cimode')<0&&(e.whitelist=e.whitelist.concat(['cimode']));return e},t.get=function(){return{debug:!1,initImmediate:!0,ns:['translation'],defaultNS:['translation'],fallbackLng:['dev'],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:'all',preload:!1,simplifyPluralSuffix:!0,keySeparator:'.',nsSeparator:':',pluralSeparator:'_',contextSeparator:'_',saveMissing:!1,updateMissing:!1,saveMissingTo:'fallback',saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var a={};return e[1]&&(a.defaultValue=e[1]),e[2]&&(a.tDescription=e[2]),a},interpolation:{escapeValue:!0,format:function(e,a,n){return e},prefix:'{{',suffix:'}}',formatSeparator:',',unescapePrefix:'-',nestingPrefix:'$t(',nestingSuffix:')',maxReplaces:1e3}}}},678); -__d(function(e,t,o,n){o.exports={tabbar:{nations:"NATIONS",chat:"CHAT",dashboard:"DASHBOARD",wallet:"WALLET",profile:"PROFILE"},activityLog:{nation:{join:{succeed:"Joined nation: {{nationName}}",failed:"Failed to join: {{nationName}}"},create:{succeed:"Created Nation {{nationName}}",failed:"Failed to create: {{nationName}}"},leave:{succeed:"Left nation: {{nationName}}",failed:"Failed to leave: {{nationName}}"}}},common:{send:"Send",receive:"Receive",ok:"OK",previous:"Previous",next:"Next",cancel:"Cancel",begin:"Begin",done:"Done",edit:"Edit",from:"From",to:"To",address:"Address",amount:"Amount",wallet:"Wallet",map:"Map",join:"Join",leave:"Leave",new:"New",optional:"Optional",available:"available",options:"Options",fees:"Fees",chat:"Chat",nations:"Nations",governmentalStructure:"Governmental Structure",updating:"Updating",updateFailed:"Update failed",ethereum:"Ethereum",bitnationPat:"XPAT",continue:"Continue",location:"Location",accounts:"Accounts",balance:"Balance"},enums:{nation:{locationType:{virtual:"Virtual nation",geographical:"Geographical nation"},usageAllowance:{may:"may",mayNot:"may not"},profit:{for:"for-profit",non:"non-profit"},legalCode:{no:"No legal code",transSupra:"Transnational/Supranational Law",multiple:"Multiple Legal Codes",unidroit:"UNIDROIT Principles",computer:"Computer Code",common:"Common Law",civil:"Civil Law"},services:{legal:"Legal Services",insurance:"Insurance Services",social:"Social Services",diplomatic:"Diplomatic Services",physical:"Physical Services"},governmentType:{other:"Other Type of Government",holocracy:"Holocracy",democracy:"Democracy",autocracy:"Autocracy",theocracy:"Theocracy",meritocracy:"Meritocracy"},lawEnforcementMechanism:{no:"No Law Enforcement",idReputation:"ID & Reputation Law Enforcement",privateOrCooperativeSecurity:"Private or Cooperative Security",nationState:"Nation State Law Enforcement",international:"International Law Enforcement"},status:{draft:"Draft",NATION_JOIN:{200:"Joining",300:"",400:"Banned"},NATION_CREATE:{200:"Pending",300:"",400:"Rejected"},NATION_LEAVE:{200:"Leaving",300:"",400:"Leaving\xa0rejected"}}},onOff:{on:"on",off:"off"}},alerts:{abortKeyCreateProcess:{title:"Delete Private Key",subtitle:"Are you sure that you want to stop creating this private key?",confirm:"Delete Key",cancel:"$t(common.cancel)"},privateKeyGroupCompleted:{title:"Group {{number}} finished!",subtitle:"Good work! Now, write down next group of {{KEY_PAGE_LENGTH}} words.",confirm:"$t(common.ok)"},incorrectKeyEntered:{title:"Incorrect: Check all the words.",subtitle:"",confirm:"$t(common.ok)"},walletRequired:{title:"No wallet",subtitle:"You need to setup a wallet first",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},resetForm:{title:"Reset",subtitle:"Reset this form to default values?",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},deleteForm:{title:"Delete Draft",subtitle:"Delete this draft nation?",delete:"Delete",cancel:"$t(common.cancel)"},saveForm:{title:"Save Draft",subtitle:"This draft nation has been saved to your device.",continue:"$t(common.continue)",close:"Close"},submitForm:{title:"Submit Nation",subtitle:"Submit this nation to the blockchain?",confirm:"$t(common.continue)",cancel:"$t(common.cancel)"},saveFormOnCancel:{title:"Save Draft",subtitle:"Do you want to save this nations as a draft on your device?",save:"Save",cancel:"$t(common.cancel)"},error:{title:"Error",confirm:"$t(common.ok)"},nationsDisabled:{title:"This function is disabled in this release. It will be re-enabled on March 3.",confirm:"$t(common.ok)"},passcodeVerificationFailed:{title:"Passcode mismatch",subtitle:"Please enter passcode carefully again.",tryAgain:"Try again",startOver:"Start over"},changingPasscodeType:{title:"Change passcode?",subtitle:"Changing the passcode type requires you to change your passcode",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},successTransaction:{title:"Success",subtitle:"Your transaction has been successfully sent",confirm:"$t(common.ok)"}},screens:{intro:{freeSpeech:{title:"Free Speech",text:"She uses Bitnation to speak privately with clients. He uses Bitnation to speak privately with victims."},refugeeEmergencyResponse:{title:"Refugee Emergency Response",text:"He can show his documents from home. She can get a fair wage for her work."},education:{title:"Bitnation Education Network",text:"She can get her high school diploma. He can study the languages he needs."},nations:{title:"Borderless Decentralized Nations",text:"They can form a nation to get a fair deal, enforce contracts, and share working knowledge."}},accounts:{title:"Accounts",introduction:"Create a new account or restore an account you have backed up.",newAccount:"New Account",restoreAccount:"Restore Account",warningTitle:"Where's My Money?",warningText:"This release is not compatible with prior releases of the Pangea app. Tap this button to learn how to recover the Ethereum in your wallet.",checkRelease:"Open Instructions Website",create:{prev:"Previous",next:"Next",title:"Create Account",securityTitle:"Security Settings",numericCode:"Numeric Passcode (less secure)",codeLength:"Passcode Length",lockAccount:"Lock Account when app closes",requireCode:"Require Passcode for",payment:"Payments & Editing",editAccount:"Edit Account",developerTitle:"Developer Settings",testingAccount:"Testing Account",useMainNetwork:"Using main Ethereum network",useRinkebyNetwork:"Using Rinkeby testing network",detailLogging:"Detailed Logging",debuggingTools:"Debugging Tools",identityTitle:"Create Identity",name:"Name",location:"Location",readyUse:"Your account is ready to use.",walletEmpty:"Your account is ready, but your wallet is empty. Please add ETH to your wallet so you can do stuff.",openDashboard:"Open Dashboard",openWallet:"Open ETH Wallet"},restore:{title:"Restore Account",source:"Restore your account from:",clipboard:"Restore from Clipboard",file:"Restore from File",cloud:"Restore from Cloud",emptyWalletStatement:"Your wallet is empty or low. Please add ETH to your wallet so you can do stuff.",sendETH:"Send ETH to address"}},dashboard:{tabTitle:"$t(tabbar.dashboard)",activityPanel:{title:"Activity"},walletPanel:{title:"$t(common.wallet)",empty:"Create a wallet to use Pangea."},nationsPanel:{title:"$t(common.nations)",nationsCount:{prefix:"",main:"{{count}}",suffix:" in Pangea"},newNations:"Newest Nations"},warningPanel:{title:"Notice",body:"Smart contracts will be upgraded in the near future.",button:"More"},confirmKeyPanel:{title:"Important",body:"Write down your private key to not lose your account.",button:"Start"}},chat:{title:"$t(common.chat)",tabTitle:"$t(tabbar.chat)",allChats:"All Chats",myChats:"My Chats",keyFromClipboard:"Use Identity Key on clipboard",keyFromLibrary:"Get Identity Key from library",keyFromCamera:"Scan Identity Key with camera",dappChat:"New Chat with DApp",cancel:"$t(common.cancel)",sendInvite:"Send Invite",startChat:"Begin Chat",newChat:"New Chat",invalidKey:"Invalid or Missing Key",inviteSent:"Invite Sent",menu:{filterChatList:"Filter Chat List",markAllRead:"Mark all as read",shareIdentityKey:"Share my Identity Key",managerChatSections:"Manager Chat Sections",restoreChat:"Restore Chat",settings:"Settings"}},migration:{title:"Migration",migrateData:"Please wait, we are migrating your data"},nations:{toolbar:{chat:"CHAT",map:"MAP",join:"JOIN",submit:"SUBMIT",delete:"DELETE",reset:"RESET",save:"SAVE",leave:"LEAVE"},title:"$t(common.nations)",tabTitle:"$t(tabbar.nations)",allNations:"All Nations",myNations:"My Nations"},nationDetails:{title:"Nation",aboutInfo:"About {{name}}",description:"Description",locationInfo:"{{name}} is a {{locationType}}",legalSystemInfo:"{{name}} uses {{code}} as its legal system.",lawEnforcementInfo:"The laws are enforced with {{lawEnforcementMechanism}}.",governmentInfo:"The government is a {{decisionMakingProcess}}.",funFacts:"Fun Facts",diplomaticRecognitionInfo:"{{name}} is seeking diplomatic recognition from Earth governments as a sovereign entity.",serviceUsageInfo:"Non-citizens {{allowance}} use national services.",profitInfo:"The nation is managed as a {{profit}} entity.",ethereumAddress:"Ethereum Address:",status:"Status:",citizen:"You are citizen of",statusDescription:{NATION_CREATE:{200:"Submission in progress...",300:"Submitted to blockchain.",400:"Submission failed."},NATION_JOIN:{200:"Join nation in progress...",300:"Join nation succeed.",400:"Join nation failed"},NATION_LEAVE:{200:"Leave nation in progress...",300:"Leave nation succeed.",400:"Leave nation failed"}}},createNation:{title:"Create A Nation",introduction:"Reclaim your sovereignty by creating your own decentralized borderless voluntary nation (DBVN).",prompt:{name:"Nation name",description:"Short description",location:"Nation location type...",represents:"Nation represents an existing Earth country",legalCode:"Legal Code...",lawEnforcementMechanism:"Law Enforcement Mechanism...",typeOfGovernment:"Type of Government...",servicesOffered:"Services Offered...",diplomaticRecognition:"Seeking diplomatic recognition as a sovereign entity.",servicesUsage:"Non-citizens may use governance services.",profit:"For-profit nation."},locationTypeHint:"Virtual nations exist only in Pangea. Geographic nations are on Earth.",cancelButton:"$t(common.cancel)",doneButton:"$t(common.done)"},wallet:{title:"$t(common.wallet)",tabTitle:"$t(tabbar.wallet)",empty:{createWallet:"Create Wallet",restoreWallet:"Restore Wallet",createWalletPanel:{title:"$t(screens.wallet.empty.createWallet)",text:"You need an Ethereum wallet to make payments, to create nations, and to use other useful services.",button:"$t(screens.wallet.empty.createWallet)"},restoreWalletPanel:{title:"$t(screens.wallet.empty.restoreWallet)",text:"You can restore your wallet if you lose or change your phone. You will need your private key to restore your wallet.",button:"$t(screens.wallet.empty.restoreWallet)"}}},profile:{title:"Profile",tabTitle:"$t(tabbar.profile)",shareKey:"Share Identity Key",empty:{createProfilePanel:{title:"Become a World Citizen",text:"Bitnation is a decentralized, open-source movement powered by blockchain technology. Bitnation offers a peer-to-peer voluntary governance system to compete with the prevailing top-down, one-size-fits-all, geographical apartheid Nation State model wherein your quality of life is arbitrarily defined by where you were born.",button:"Create a User Profile"}},editButton:"$t(common.edit)",edit:{cancelButton:"$t(common.cancel)",doneButton:"$t(common.done)",personalInformation:"Personal Information",name:"Name",location:"Location ($t(common.optional))",editPhoto:"$t(common.edit)",editPhotoActionSheet:{title:"Edit your profile picture.",photoLibrary:"Photo Library",takePhoto:"Take Photo",cancel:"$t(common.cancel)"}}},confirmKey:{title:"Confirm Private Key",instructions:{beforeGrid:["We will show you a group of {{KEY_LENGTH}} words that is the private key of your account."],afterGrid:["Write the words on paper, in order. Store the paper in very safe place. If your device is lost, stolen, broken, or upgraded, you must have this key to restore your account."]},process:{instructions:["Write each row of words on the piece of paper. Press \u201cNext\u201d when you have written the row."],nextButton:"$t(common.next)",previousButton:"$t(common.previous)"},startButton:"$t(common.begin)"},verifyKey:{title:"Verify Private Key",instructions:["Now that you have written down your private key, we will ask you to verify it.","You will type the {{KEY_LENGTH}} words of your private key into the app, and we will check that your written private key is correct.","Your private key protects everything in Bitnation, so be sure to put your paper with your private key in a safe place."],success:{instructions:["Congratulations! You correctly entered your private key.","Now, put your paper with your private key in a safe place."],doneButton:"$t(common.done)"},startButton:"$t(common.begin)"},enterPrivateKey:{instructions:["Enter in the correct order the {{KEY_LENGTH}} words that you wrote down as your paper key. Tap a box to begin."],nextButton:"$t(common.next)",previousButton:"$t(common.previous)",doneButton:"$t(common.done)"},viewPrivateKey:{title:"Private key",instructions:[],nextButton:"$t(common.next)",previousButton:"$t(common.previous)"},restoreKey:{title:"Restore account"},sendMoney:{title:"Send money",enterAddress:"Enter ETH address",available:"available"},receiveMoney:{title:"Receive Money",shareAddressPanel:{title:"Copy Address",text:"You can copy your wallet address and send any way you choose, e.g. SMS or email. Do not try to type your address by hand!",button:"Share Wallet Address"}},dAppQRCodeScanner:{devHost:{title:"Connect to DApp host",instruction:"Scan QR code to connect to PC"},logger:{title:"Connect to debug logger",instruction:"Scan QR code to connect to PC"}},settings:{title:"Settings",tabTitle:"SETTINGS",identity:"Identity",security:"Security",viewPrivateKey:"Private Key",confirmPrivateKey:"Private Key (confirmation required)",switchAccounts:"Switch accounts",connectToDAppHost:"Connect to DApp host",connectToDAppLogger:"Connect debug logger"},securitySettings:{title:"Security settings",useNumericPasscode:"Numeric Passcode (less secure)",passcodeLength:"Passcode Length",changePasscode:"Change Passcode"},pinCode:{enterInstruction:"Enter PIN code:",createInstruction:"Enter new PIN code:",verifyInstruction:"Enter PIN code again:"},password:{enterInstruction:"Enter password:",createInstruction:"Enter new password:",verifyInstruction:"Enter password again:"},confirmTransaction:{title:"Confirm Transaction",gasPrice:"What gas price would you like to set?",gasLimit:"Gas Limit",gasEstimate:"Est. Transaction fee",confirmButton:"Confirm",gasPriceTitle:"Gas Price: {{gasPrice}}",slow:"Slow",quick:"Quick",fast:"Fast",fastest:"Fastest",to:"To Address:",from:"From Address:",amount:"Amount:",total:"Total:",processor:"Processor",gwei:"Gwei",eth:"ETH"}},testingMode:{changeActiveAlert:{title:"You have turned {{onOff}} testing mode"},removeWallets:"Remove wallets"},error:{noConnection:"Please check your internet connection.",insufficientFunds:"Insufficient funds. Please check your wallet.",noCamera:"Camera Error",invalidPinCode:"PIN code is invalid. Please try again.",invalidPassword:"Password is invalid. Please try again.",loginFailed:"Unable to login. Please report this issue.",passcodeCreationFailed:"Unable to create passcode. Please report this issue.",accountCreationFailed:"Unable to create account. Please report this issue.",generalError:"Unable to finish operation. Please report this issue."},bots:{freudbot:{initial1:"Hi, I am Dr. FreudBot, your resident therapist. What is bothering you?",initial2:"Herr Professor Doktor FreudBot here, your therapy bot. What has been troubling you?",initial3:"I am the Pangea therapy bot, Dr. FreudBot, ready to help. I am not a real therapist, I just play one in this app.",initial4:"I'm here, Dr. FreudBot. Talk to me.",initial5:"Talk to me! I am Dr. FreudBot. Tell me about your mother.",initial6:"Hallo, Dr. FreudBot here. I am not a real Freudian. I am not real. Are you? Are you sure?"}},dApps:{unknownDAppMessage:"This message was sent from DApp that is not installed on your device. It can not be rendered.",failedDAppMessageRender:"{{dAppName}} DApp failed to render this message. It may be due to an issue in the DApp or using of an old version.",failedDAppModalRender:"{{dAppName}} DApp failed to render the modal. It may be due to an issue in the DApp or using of an old version."}}},679); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.startMigration=f,n.isMigration=g;var a=r(350),u=r(543),i=babelHelpers.interopRequireDefault(u),s=r(542),c=r(612),o=regeneratorRuntime.mark(f),l=regeneratorRuntime.mark(g);function f(){var e,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default;case 2:return e=t.sent,t.next=5,(0,s.getCurrentAccount)();case 5:return r=t.sent,e.write(function(){e.create('Account',babelHelpers.extends({},r,{lastMigrationVersion:'1.1.0'}),!0)}),t.next=9,(0,a.call)(c.launchLoggedInFlow);case 9:case"end":return t.stop()}},o,this)}function g(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getCurrentAccount)();case 2:if('1.1.0'===e.sent.lastMigrationVersion){e.next=5;break}return e.abrupt("return",!0);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},l,this)}},680); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startNavigation=function(){return{type:A}};var A=r.START_NAVIGATION='START_NAVIGATION'},681); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=r(350),u=r(683),i=r(525),o=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)(i.VALIDATE_ENTERED_MNEMONIC,u.validateEnteredMnemonic);case 2:case"end":return e.stop()}},o,this)}},682); -__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateEnteredMnemonic=d;var a=n(350),c=n(366),u=babelHelpers.interopRequireDefault(c),i=n(580),l=babelHelpers.interopRequireDefault(i),s=n(525),o=regeneratorRuntime.mark(d);function d(){var e,n,t,r,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=void 0,i.prev=1,i.next=4,(0,a.call)(l.default.getMnemonic);case 4:e=i.sent,i.next=10;break;case 7:i.prev=7,i.t0=i.catch(1),e=null;case 10:return i.next=12,(0,a.select)();case 12:if(n=i.sent,t=n.key.enteredMnemonic,null!==e){i.next=22;break}return i.next=17,(0,a.call)(l.default.validateMnemonic,t);case 17:return r=i.sent,i.next=20,(0,a.put)((0,s.changeMnemonicValid)(!0===r));case 20:i.next=25;break;case 22:return c=u.default.isEqual(e,t),i.next=25,(0,a.put)((0,s.changeMnemonicValid)(!0===c));case 25:case"end":return i.stop()}},o,this,[[1,7]])}},683); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var a=t(350),s=t(685),i=t(536),u=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.call)(s.startDatabaseListening),(0,a.takeEvery)(i.LOAD_SETTINGS,s.loadSettings),(0,a.takeEvery)(i.SAVE_SETTINGS,s.saveSettings)]);case 2:case"end":return e.stop()}},u,this)}},684); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.onCurrentAccountChange=g,r.buildAccountSettingsResults=b,r.startDatabaseListening=x,r.loadSettings=m,r.saveSettings=v;var a=t(350),c=t(543),u=babelHelpers.interopRequireDefault(c),s=t(542),i=t(536),o=t(686),l=regeneratorRuntime.mark(g),d=regeneratorRuntime.mark(x),p=regeneratorRuntime.mark(m),f=regeneratorRuntime.mark(v);function g(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==e.length){r.next=2;break}return r.abrupt("return");case 2:return t=e[0],r.next=5,(0,a.call)(o.convertFromDatabase,t);case 5:return n=r.sent,r.next=8,(0,a.put)((0,i.settingsUpdated)(n));case 8:case"end":return r.stop()}},l,this)}function b(e,t){return null===t?null:e.objects('AccountSettings').filtered("id == '"+t+"'")}function x(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(s.currentAccountBasedUpdate,b,g);case 2:case"end":return e.stop()}},d,this)}function m(e){var t,n,r;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,u.default;case 2:if(t=c.sent,0!==(n=t.objects('AccountSettings').filtered("id == '"+e.accountId+"'")).length){c.next=8;break}return c.next=7,(0,a.call)(e.callback,!1);case 7:return c.abrupt("return");case 8:return r=n[0],c.next=11,(0,a.put)((0,i.settingsUpdated)((0,o.convertFromDatabase)(r)));case 11:return c.next=13,(0,a.call)(e.callback,!0);case 13:case"end":return c.stop()}},p,this)}function v(e){var t,n,r,c;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,a.select)();case 2:return t=s.sent,n=t.settings,s.next=6,u.default;case 6:if(r=s.sent,c=null,r.write(function(){c=r.create('AccountSettings',(0,o.convertToDatabase)(n,e.accountId),!0)}),null!=c){s.next=13;break}return s.next=12,(0,a.call)(e.callback,!1);case 12:return s.abrupt("return");case 13:return s.next=15,(0,a.put)((0,i.settingsUpdated)((0,o.convertFromDatabase)(c)));case 15:return s.next=17,(0,a.call)(e.callback,!0);case 17:case"end":return s.stop()}},f,this)}},685); -__d(function(e,p,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.convertFromDatabase=function(e){return{passcodeType:'pinCode'===e.passcodeType?{type:'pinCode',length:e.pinCodeLength||t.MINIMAL_PIN_CODE_LENGTH}:{type:'password'}}},o.convertToDatabase=function(e,p){return{id:p,passcodeType:e.passcodeType.type,pinCodeLength:'pinCode'===e.passcodeType.type?e.passcodeType.length:null}},p(568);var t=p(516)},686); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=o;var n=t(350),E=t(522),u=t(688),_=t(517),l=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)([E.UPDATE_WALLET_LIST,_.SERVICES_CREATED,_.SERVICES_DESTROYED],u.updateWalletList),(0,n.takeEvery)(E.UPDATE_WALLET_BALANCE,u.updateWalletBalance),(0,n.takeEvery)(E.SEND_MONEY,u.sendMoneySaga)]);case 2:case"end":return e.stop()}},l,this)}},687); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.updateWalletToDb=W,n.sendMoneySaga=y,n.getDbWallets=A,n.saveWalletsToDb=R,n.updateWalletsToDb=S,n.updateWalletList=T,n.updateWalletBalance=D;var a=t(350),c=t(689),s=t(522),u=t(542),l=t(690),o=babelHelpers.interopRequireDefault(l),i=t(753),d=t(543),p=babelHelpers.interopRequireDefault(d),x=t(754),f=t(523),b=regeneratorRuntime.mark(W),v=regeneratorRuntime.mark(y),w=regeneratorRuntime.mark(A),g=regeneratorRuntime.mark(R),m=regeneratorRuntime.mark(S),h=regeneratorRuntime.mark(T),k=regeneratorRuntime.mark(D);function W(e,t,r){var n,s,l,o,i,d;return regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,p.default;case 2:if(n=b.sent,null!==(s=(0,f.resolveWallet)(e,r))){b.next=6;break}return b.abrupt("return");case 6:return b.next=8,(0,a.call)(u.getCurrentAccountId);case 8:l=b.sent,o=(0,x.convertToDatabase)(s,l),c.BigNumber.config({DECIMAL_PLACES:18}),i=new c.BigNumber(o.balance),d=new c.BigNumber(t),n.write(function(){n.create('Wallet',{name:o.name,balance:i.minus(d).toString()},!0)});case 14:case"end":return b.stop()}},b,this)}function y(e){var t,r,n,c,l,d,p;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,a.select)();case 2:return t=x.sent,r=t.wallet.selectedWalletAddress,n=e.toEthAddress,c=e.amount,x.next=8,(0,a.call)(u.getCurrentAccountId);case 8:return l=x.sent,x.next=11,(0,u.getAccount)(l);case 11:if(d=x.sent,null!==(p=o.default.instance.walletService)){x.next=17;break}return x.next=16,(0,a.put)((0,s.sendMoneyFailed)(new i.NoWalletServiceError));case 16:return x.abrupt("return");case 17:if('ETH'!==t.wallet.selectedWalletCurrency){x.next=31;break}return x.prev=18,x.next=21,(0,a.call)([p,'sendMoney'],r,n,c);case 21:return x.next=23,(0,a.put)((0,s.sendMoneySuccess)());case 23:x.next=29;break;case 25:return x.prev=25,x.t0=x.catch(18),x.next=29,(0,a.put)((0,s.sendMoneyFailed)(x.t0));case 29:x.next=42;break;case 31:return x.prev=31,x.next=34,(0,a.call)([p,'sendToken'],r,n,c,d.networkType);case 34:return x.next=36,(0,a.put)((0,s.sendMoneySuccess)());case 36:x.next=42;break;case 38:return x.prev=38,x.t1=x.catch(31),x.next=42,(0,a.put)((0,s.sendMoneyFailed)(x.t1));case 42:case"end":return x.stop()}},v,this,[[18,25],[31,38]])}function A(){var e,t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,p.default;case 2:return e=n.sent,n.next=5,(0,a.call)(u.getCurrentAccountId);case 5:return t=n.sent,r=e.objects('Wallet').filtered("accountId == '"+t+"'"),n.next=9,r;case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}},w,this)}function R(e){var t,r,n,c;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,p.default;case 2:return t=s.sent,s.next=5,(0,a.call)(u.getCurrentAccountId);case 5:r=s.sent,n=(0,x.convertToDatabase)(e[0],r),c=(0,x.convertToDatabase)(e[1],r),t.write(function(){t.create('Wallet',n,!0),t.create('Wallet',c,!0)});case 9:case"end":return s.stop()}},g,this)}function S(e){var t,r,n,c,s,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.default;case 2:if(t=o.sent,r=(0,f.resolveWallet)(e,'ETH'),n=(0,f.resolveWallet)(e,'XPAT'),null!==r&&null!==n){o.next=7;break}return o.abrupt("return");case 7:return o.next=9,(0,a.call)(u.getCurrentAccountId);case 9:c=o.sent,s=(0,x.convertToDatabase)(r,c),l=(0,x.convertToDatabase)(n,c),t.write(function(){t.create('Wallet',s,!0),t.create('Wallet',l,!0)});case 13:case"end":return o.stop()}},m,this)}function T(){var e,t,r,n,c,l;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,a.call)(u.getCurrentAccountId);case 2:return e=i.sent,i.next=5,(0,u.getAccount)(e);case 5:if(t=i.sent,null!==(r=o.default.instance.walletService)){i.next=11;break}return i.next=10,(0,a.put)((0,s.walletsListUpdated)([],!0));case 10:return i.abrupt("return");case 11:return n=void 0,i.next=14,(0,a.call)(A);case 14:if(0!==(c=i.sent).length){i.next=23;break}return i.next=18,(0,a.call)([r,'getWallets']);case 18:return n=i.sent,i.next=21,(0,a.call)(R,n);case 21:i.next=24;break;case 23:n=c.map(x.convertFromDatabase);case 24:return i.next=26,(0,a.put)((0,s.walletsListUpdated)(n,!1));case 26:return i.prev=26,i.next=29,(0,a.call)([r,'resolveBalance'],n,t.networkType);case 29:return l=i.sent,i.next=32,(0,a.call)(S,l);case 32:return i.next=34,(0,a.put)((0,s.walletsListUpdated)(l,!0));case 34:i.next=43;break;case 36:return i.prev=36,i.t0=i.catch(26),i.next=40,(0,a.put)((0,s.walletSyncFailed)(n[0].ethAddress,n[0].currency,i.t0));case 40:return i.next=42,(0,a.put)((0,s.walletSyncFailed)(n[1].ethAddress,n[1].currency,i.t0));case 42:console.log("Wallet list update failed with error: "+i.t0.toString());case 43:case"end":return i.stop()}},h,this,[[26,36]])}function D(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=o.default.instance.walletService)){r.next=5;break}return r.next=4,(0,a.put)((0,s.walletSyncFailed)(e.ethAddress,e.currency,new i.NoWalletServiceError));case 4:return r.abrupt("return");case 5:return r.prev=5,r.next=8,(0,a.call)([t,'syncWallet'],e);case 8:return r.next=10,T();case 10:r.next=17;break;case 12:return r.prev=12,r.t0=r.catch(5),r.next=16,(0,a.put)((0,s.walletSyncFailed)(e.ethAddress,e.currency,r.t0));case 16:console.log("Wallet balance update failed with error: "+r.t0.toString());case 17:case"end":return r.stop()}},k,this,[[5,12]])}},688); -__d(function(e,n,t,r){!(function(e){'use strict';var n,r=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,u=' not a boolean or binary digit',s='rounding mode',l='number type has more than 15 significant digits',c='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_',f=1e14,a=14,h=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e7,d=1e9;function m(e){var n=0|e;return e>0||e===n?n:n-1}function w(e){for(var n,t,r=1,i=e.length,o=e[0]+'';rc^t?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,u=0;uo[u]^t?1:-1;return l==c?0:l>c^t?1:-1}function N(e,n,t){return(e=S(e))>=n&&e<=t}function b(e){return'[object Array]'==Object.prototype.toString.call(e)}function y(e,n,t){for(var r,i,o=[0],u=0,s=e.length;ut-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function O(e,n){return(e.length>1?e.charAt(0)+'.'+e.slice(1):e)+(n<0?'e':'e+')+n}function R(e,n){var t,r;if(n<0){for(r='0.';++n;r+='0');e=r+e}else if(++n>(t=e.length)){for(r='0',n-=t;--n;r+='0');e+=r}else n15&&Q(L,l,e),s=!1):p.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1,g=J(g,10,n,p.s)}else{if(e instanceof W)return p.s=e.s,p.e=e.e,p.c=(e=e.c)?e.slice():e,void(L=0);if((s='number'==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,u=e;u>=10;u/=10,i++);return p.e=i,p.c=[e],void(L=0)}g=e+''}else{if(!r.test(g=e+''))return A(p,g,s);p.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1}}for((i=g.indexOf('.'))>-1&&(g=g.replace('.','')),(u=g.search(/e/i))>0?(i<0&&(i=u),i+=+g.slice(u+1),g=g.substring(0,u)):i<0&&(i=g.length),u=0;48===g.charCodeAt(u);u++);for(f=g.length;48===g.charCodeAt(--f););if(g=g.slice(u,f+1))if(f=g.length,s&&$&&f>15&&(e>h||e!==o(e))&&Q(L,l,p.s*e),(i=i-u-1)>k)p.c=p.e=null;else if(i=0&&(s=j,j=0,e=e.replace('.',''),f=(h=new W(r)).pow(e.length-g),j=s,h.c=y(R(w(f.c),f.e),10,n),h.e=h.c.length),u=s=(a=y(e,r,n)).length;0==a[--s];a.pop());if(!a[0])return'0';if(g<0?--u:(f.c=a,f.e=u,f.s=i,a=(f=t(f,h,p,d,n)).c,l=f.r,u=f.e),g=a[o=u+p+1],s=n/2,l=l||o<0||null!=a[o+1],l=d<4?(null!=g||l)&&(0==d||d==(f.s<0?3:2)):g>s||g==s&&(4==d||l||6==d&&1&a[o-1]||d==(f.s<0?8:7)),o<1||!a[0])e=l?R('1',-p):'0';else{if(a.length=o,l)for(--n;++a[--o]>n;)a[o]=0,o||(++u,a=[1].concat(a));for(s=a.length;!a[--s];);for(g=0,e='';g<=s;e+=c.charAt(a[g++]));e=R(e,u)}return e}function X(e,n,t,r){var i,o,u,l,c;if(t=null!=t&&G(t,0,8,r,s)?0|t:T,!e.c)return e.toString();if(i=e.c[0],u=e.e,null==n)c=w(e.c),c=19==r||24==r&&u<=B?O(c,u):R(c,u);else if(o=(e=ee(new W(e),n,t)).e,l=(c=w(e.c)).length,19==r||24==r&&(n<=o||o<=B)){for(;ll){if(--n>0)for(c+='.';n--;c+='0');}else if((n+=o-l)>0)for(o+1==l&&(c+='.');n--;c+='0');return e.s<0&&i?'-'+c:c}function Y(e,n){var t,r,i=0;for(b(e[0])&&(e=e[0]),t=new W(e[0]);++it||e!=S(e))&&Q(r,(i||'decimal places')+(et?' out of range':' not an integer'),e),!0}function K(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*a-1)>k?e.c=e.e=null:t=10;c/=10,u++);if((s=n-u)<0)s+=a,l=n,d=(h=m[p=0])/w[u-l-1]%10|0;else if((p=i((s+1)/a))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));h=d=0,u=1,l=(s%=a)-a+1}else{for(h=c=m[p],u=1;c>=10;c/=10,u++);d=(l=(s%=a)-a+u)<0?0:h/w[u-l-1]%10|0}if(r=r||n<0||null!=m[p+1]||(l<0?h:h%w[u-l-1]),r=t<4?(d||r)&&(0==t||t==(e.s<0?3:2)):d>5||5==d&&(4==t||r||6==t&&(s>0?l>0?h/w[u-l]:0:m[p-1])%10&1||t==(e.s<0?8:7)),n<1||!m[0])return m.length=0,r?(n-=e.e+1,m[0]=w[(a-n%a)%a],e.e=-n||0):m[0]=e.e=0,e;if(0==s?(m.length=p,c=1,p--):(m.length=p+1,c=w[a-s],m[p]=l>0?o(h/w[u-l]%w[l])*c:0),r)for(;;){if(0==p){for(s=1,l=m[0];l>=10;l/=10,s++);for(l=m[0]+=c,c=1;l>=10;l/=10,c++);s!=c&&(e.e++,m[0]==f&&(m[0]=1));break}if(m[p]+=c,m[p]!=f)break;m[p--]=0,c=1}for(s=m.length;0===m[--s];m.pop());}e.e>k?e.c=e.e=null:e.et)return null!=(e=i[t++])};return s(n='DECIMAL_PLACES')&&G(e,0,d,2,n)&&(M=0|e),r[n]=M,s(n='ROUNDING_MODE')&&G(e,0,8,2,n)&&(T=0|e),r[n]=T,s(n='EXPONENTIAL_AT')&&(b(e)?G(e[0],-d,0,2,n)&&G(e[1],0,d,2,n)&&(B=0|e[0],P=0|e[1]):G(e,-d,d,2,n)&&(B=-(P=0|(e<0?-e:e)))),r[n]=[B,P],s(n='RANGE')&&(b(e)?G(e[0],-d,-1,2,n)&&G(e[1],1,d,2,n)&&(q=0|e[0],k=0|e[1]):G(e,-d,d,2,n)&&(0|e?q=-(k=0|(e<0?-e:e)):$&&Q(2,n+' cannot be zero',e))),r[n]=[q,k],s(n='ERRORS')&&(e===!!e||1===e||0===e?(L=0,G=($=!!e)?Z:N):$&&Q(2,n+u,e)),r[n]=$,s(n='CRYPTO')&&(!0===e||!1===e||1===e||0===e?e?!(e='undefined'==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:$?Q(2,'crypto unavailable',e?void 0:crypto):z=!1:z=!1:$&&Q(2,n+u,e)),r[n]=z,s(n='MODULO_MODE')&&G(e,0,9,2,n)&&(V=0|e),r[n]=V,s(n='POW_PRECISION')&&G(e,0,d,2,n)&&(j=0|e),r[n]=j,s(n='FORMAT')&&('object'==typeof e?H=e:$&&Q(2,n+' not an object',e)),r[n]=H,r},W.max=function(){return Y(arguments,U.lt)},W.min=function(){return Y(arguments,U.gt)},W.random=(E=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var n,t,r,u,s,l=0,c=[],f=new W(C);if(e=null!=e&&G(e,0,d,14)?0|e:M,u=i(e/a),z)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(u*=2));l>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),n[l]=t[0],n[l+1]=t[1]):(c.push(s%1e14),l+=2);l=u/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(u*=7);l=9e15?crypto.randomBytes(7).copy(n,l):(c.push(s%1e14),l+=7);l=u/7}else z=!1,$&&Q(14,'crypto unavailable',crypto);if(!z)for(;l=10;s/=10,l++);lr?1:-1;else for(i=o=0;in[i]?1:-1;break}return o}function t(e,n,t,r){for(var i=0;t--;)e[t]-=i,i=e[t]1;e.splice(0,1));}return function(r,i,u,s,l){var c,h,g,p,d,w,v,N,b,y,O,R,S,A,E,_,D,F=r.s==i.s?1:-1,x=r.c,I=i.c;if(!(x&&x[0]&&I&&I[0]))return new W(r.s&&i.s&&(x?!I||x[0]!=I[0]:I)?x&&0==x[0]||!I?0*F:F/0:NaN);for(b=(N=new W(F)).c=[],F=u+(h=r.e-i.e)+1,l||(l=f,h=m(r.e/a)-m(i.e/a),F=F/a|0),g=0;I[g]==(x[g]||0);g++);if(I[g]>(x[g]||0)&&h--,F<0)b.push(1),p=!0;else{for(A=x.length,_=I.length,g=0,F+=2,(d=o(l/(I[0]+1)))>1&&(I=e(I,d,l),x=e(x,d,l),_=I.length,A=x.length),S=_,O=(y=x.slice(0,_)).length;O<_;y[O++]=0);D=I.slice(),D=[0].concat(D),E=I[0],I[1]>=l/2&&E++;do{if(d=0,(c=n(I,y,_,O))<0){if(R=y[0],_!=O&&(R=R*l+(y[1]||0)),(d=o(R/E))>1)for(d>=l&&(d=l-1),v=(w=e(I,d,l)).length,O=y.length;1==n(w,y,v,O);)d--,t(w,_=10;F/=10,g++);ee(N,u+(N.e=g+h*a-1)+1,s,p)}else N.e=h,N.r=+p;return N}})(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,D=/^([^.]+)\.$/,F=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,n,t,r){var i,o=t?n:n.replace(I,'');if(x.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!t&&(o=o.replace(_,function(e,n,t){return i='x'==(t=t.toLowerCase())?16:'b'==t?2:8,r&&r!=i?e:n}),r&&(i=r,o=o.replace(D,'$1').replace(F,'0.$1')),n!=o))return new W(o,i);$&&Q(L,'not a'+(r?' base '+r:'')+' number',n),e.s=null}e.c=e.e=null,L=0},U.absoluteValue=U.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},U.ceil=function(){return ee(new W(this),this.e+1,2)},U.comparedTo=U.cmp=function(e,n){return L=1,v(this,new W(e,n))},U.decimalPlaces=U.dp=function(){var e,n,t=this.c;if(!t)return null;if(e=((n=t.length-1)-m(this.e/a))*a,n=t[n])for(;n%10==0;n/=10,e--);return e<0&&(e=0),e},U.dividedBy=U.div=function(e,n){return L=3,t(this,new W(e,n),M,T)},U.dividedToIntegerBy=U.divToInt=function(e,n){return L=4,t(this,new W(e,n),0,1)},U.equals=U.eq=function(e,n){return L=5,0===v(this,new W(e,n))},U.floor=function(){return ee(new W(this),this.e+1,3)},U.greaterThan=U.gt=function(e,n){return L=6,v(this,new W(e,n))>0},U.greaterThanOrEqualTo=U.gte=function(e,n){return L=7,1===(n=v(this,new W(e,n)))||0===n},U.isFinite=function(){return!!this.c},U.isInteger=U.isInt=function(){return!!this.c&&m(this.e/a)>this.c.length-2},U.isNaN=function(){return!this.s},U.isNegative=U.isNeg=function(){return this.s<0},U.isZero=function(){return!!this.c&&0==this.c[0]},U.lessThan=U.lt=function(e,n){return L=8,v(this,new W(e,n))<0},U.lessThanOrEqualTo=U.lte=function(e,n){return L=9,-1===(n=v(this,new W(e,n)))||0===n},U.minus=U.sub=function(e,n){var t,r,i,o,u=this,s=u.s;if(L=10,n=(e=new W(e,n)).s,!s||!n)return new W(NaN);if(s!=n)return e.s=-n,u.plus(e);var l=u.e/a,c=e.e/a,h=u.c,g=e.c;if(!l||!c){if(!h||!g)return h?(e.s=-n,e):new W(g?u:NaN);if(!h[0]||!g[0])return g[0]?(e.s=-n,e):new W(h[0]?u:3==T?-0:0)}if(l=m(l),c=m(c),h=h.slice(),s=l-c){for((o=s<0)?(s=-s,i=h):(c=l,i=g),i.reverse(),n=s;n--;i.push(0));i.reverse()}else for(r=(o=(s=h.length)<(n=g.length))?s:n,s=n=0;n0)for(;n--;h[t++]=0);for(n=f-1;r>s;){if(h[--r]0?(u=o,t=l):(i=-i,t=s),t.reverse();i--;t.push(0));t.reverse()}for((i=s.length)-(n=l.length)<0&&(t=l,l=s,s=t,n=i),i=0;n;)i=(s[--n]=s[n]+l[n]+i)/f|0,s[n]=f===s[n]?0:s[n]%f;return i&&(s=[i].concat(s),++u),K(e,s,u)},U.precision=U.sd=function(e){var n,t,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&($&&Q(13,'argument'+u,e),e!=!!e&&(e=null)),!i)return null;if(n=(t=i.length-1)*a+1,t=i[t]){for(;t%10==0;t/=10,n--);for(t=i[0];t>=10;t/=10,n++);}return e&&r.e+1>n&&(n=r.e+1),n},U.round=function(e,n){var t=new W(this);return(null==e||G(e,0,d,15))&&ee(t,~~e+this.e+1,null!=n&&G(n,0,8,15,s)?0|n:T),t},U.shift=function(e){var n=this;return G(e,-h,h,16,'argument')?n.times('1e'+S(e)):new W(n.c&&n.c[0]&&(e<-h||e>h)?n.s*(e<0?0:1/0):n)},U.squareRoot=U.sqrt=function(){var e,n,r,i,o,u=this,s=u.c,l=u.s,c=u.e,f=M+4,a=new W('0.5');if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?u:1/0);if(0==(l=Math.sqrt(+u))||l==1/0?(((n=w(s)).length+c)%2==0&&(n+='0'),l=Math.sqrt(n),c=m((c+1)/2)-(c<0||c%2),r=new W(n=l==1/0?'1e'+c:(n=l.toExponential()).slice(0,n.indexOf('e')+1)+c)):r=new W(l+''),r.c[0])for((l=(c=r.e)+f)<3&&(l=0);;)if(o=r,r=a.times(o.plus(t(u,o,f,1))),w(o.c).slice(0,l)===(n=w(r.c)).slice(0,l)){if(r.e=0;){for(t=0,d=R[i]%b,w=R[i]/b|0,o=i+(u=l);o>i;)t=((c=d*(c=O[--u]%b)+(s=w*c+(h=O[u]/b|0)*d)%b*b+v[o]+t)/N|0)+(s/b|0)+w*h,v[o--]=c%N;v[o]=t}return t?++r:v.splice(0,1),K(e,v,r)},U.toDigits=function(e,n){var t=new W(this);return e=null!=e&&G(e,1,d,18,'precision')?0|e:null,n=null!=n&&G(n,0,8,18,s)?0|n:T,e?ee(t,e,n):t},U.toExponential=function(e,n){return X(this,null!=e&&G(e,0,d,19)?1+~~e:null,n,19)},U.toFixed=function(e,n){return X(this,null!=e&&G(e,0,d,20)?~~e+this.e+1:null,n,20)},U.toFormat=function(e,n){var t=X(this,null!=e&&G(e,0,d,21)?~~e+this.e+1:null,n,21);if(this.c){var r,i=t.split('.'),o=+H.groupSize,u=+H.secondaryGroupSize,s=H.groupSeparator,l=i[0],c=i[1],f=this.s<0,a=f?l.slice(1):l,h=a.length;if(u&&(r=o,o=u,u=r,h-=r),o>0&&h>0){for(r=h%o||o,l=a.substr(0,r);r0&&(l+=s+a.slice(r)),f&&(l='-'+l)}t=c?l+H.decimalSeparator+((u=+H.fractionGroupSize)?c.replace(new RegExp('\\d{'+u+'}\\B','g'),'$&'+H.fractionGroupSeparator):c):l}return t},U.toFraction=function(e){var n,r,i,o,u,s,l,c,f,h=$,p=this,d=p.c,m=new W(C),v=r=new W(C),N=l=new W(C);if(null!=e&&($=!1,s=new W(e),$=h,(h=s.isInt())&&!s.lt(C)||($&&Q(22,'max denominator '+(h?'out of range':'not an integer'),e),e=!h&&s.c&&ee(s,s.e+1,1).gte(C)?s:null)),!d)return p.toString();for(f=w(d),o=m.e=f.length-p.e-1,m.c[0]=g[(u=o%a)<0?a+u:u],e=!e||s.cmp(m)>0?o>0?m:v:s,u=k,k=1/0,s=new W(f),l.c[0]=0;c=t(s,m,0,1),1!=(i=r.plus(c.times(N))).cmp(e);)r=N,N=i,v=l.plus(c.times(i=v)),l=i,m=s.minus(c.times(i=m)),s=i;return i=t(e.minus(r),N,0,1),l=l.plus(i.times(v)),r=r.plus(i.times(N)),l.s=v.s=p.s,n=t(v,N,o*=2,T).minus(p).abs().cmp(t(l,r,o,T).minus(p).abs())<1?[v.toString(),N.toString()]:[l.toString(),r.toString()],k=u,n},U.toNumber=function(){return+this},U.toPower=U.pow=function(e,n){var t,r,u,s=o(e<0?-e:+e),l=this;if(null!=n&&(L=23,n=new W(n)),!G(e,-h,h,23,'exponent')&&(!isFinite(e)||s>h&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return t=Math.pow(+l,e),new W(n?t%n:t);for(n?e>1&&l.gt(C)&&l.isInt()&&n.gt(C)&&n.isInt()?l=l.mod(n):(u=n,n=null):j&&(t=i(j/a+2)),r=new W(C);;){if(s%2){if(!(r=r.times(l)).c)break;t?r.c.length>t&&(r.c.length=t):n&&(r=r.mod(n))}if(!(s=o(s/2)))break;l=l.times(l),t?l.c&&l.c.length>t&&(l.c.length=t):n&&(l=l.mod(n))}return n?r:(e<0&&(r=C.div(r)),u?r.mod(u):t?ee(r,j,T):r)},U.toPrecision=function(e,n){return X(this,null!=e&&G(e,1,d,24,'precision')?0|e:null,n,24)},U.toString=function(e){var n,t=this,r=t.s,i=t.e;return null===i?r?(n='Infinity',r<0&&(n='-'+n)):n='NaN':(n=w(t.c),n=null!=e&&G(e,2,64,25,'base')?J(R(n,i),0|e,10,r):i<=B||i>=P?O(n,i):R(n,i),r<0&&t.c[0]&&(n='-'+n)),n},U.truncated=U.trunc=function(){return ee(new W(this),this.e+1,1)},U.valueOf=U.toJSON=function(){var e,n=this,t=n.e;return null===t?n.toString():(e=w(n.c),e=t<=B||t>=P?O(e,t):R(e,t),n.s<0?'-'+e:e)},U.isBigNumber=!0,null!=n&&W.config(n),W})()).default=n.BigNumber=n,'function'==typeof define&&define.amd?define(function(){return n}):void 0!==t&&t.exports?t.exports=n:(e||(e='undefined'!=typeof self?self:Function('return this')()),e.BigNumber=n)})(this)},689); -__d(function(e,t,i,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(581),a=t(543),n=babelHelpers.interopRequireDefault(a),u=t(691),s=babelHelpers.interopRequireDefault(u),c=t(692),p=(babelHelpers.interopRequireDefault(c),t(746)),v=babelHelpers.interopRequireDefault(p),h=t(747),o=babelHelpers.interopRequireDefault(h),S=t(751),f=babelHelpers.interopRequireDefault(S),b=(function(){function e(){babelHelpers.classCallCheck(this,e),this.ethereumService=null,this.walletService=null,this.nationsService=null,this.upstreamService=null}return babelHelpers.createClass(e,[{key:"initServices",value:function(e,t){var i=(0,s.default)({privateKey:(0,r.normalizeEthPrivateKey)(t),networkType:e.networkType,app:'Default Application'}).service;this.ethereumService=i,this.walletService=new v.default(this.ethereumService),this.nationsService=new o.default(this.ethereumService,n.default,e.id),this.upstreamService=new f.default(this.ethereumService)}},{key:"destroyServices",value:function(){this.ethereumService=null,this.walletService=null,null!==this.nationsService&&this.nationsService.cleanUp(),this.nationsService=null,null!==this.upstreamService&&this.upstreamService.cleanUp(),this.upstreamService=null}}]),e})();b.instance=new b,l.default=b},690); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var r=e.privateKey,t=e.networkType,n=function(e){var n=new l.default(r,'dev'===t?'rinkeby':'homestead',e);return new a.default(n,t)},i=e.app;null==i&&(i='Bitnation Application');return{service:n(i),serviceBuilder:n}};var i=r(692),a=babelHelpers.interopRequireDefault(i),u=r(741),l=babelHelpers.interopRequireDefault(u)},691); -__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(693),u=babelHelpers.interopRequireDefault(n),s=t(17),l=t(739),i=babelHelpers.interopRequireDefault(l),c=t(740),o=babelHelpers.interopRequireDefault(c),f=(function(){function e(t,r){babelHelpers.classCallCheck(this,e),p.call(this),this.wallet=t,this.network=r;var a=o.default;this.nations=new u.default.Contract('dev'===r?'0x559f57f7dbe737319f8d28f8a94f1dcee9f468ad':'0xa014847cff475826804f2e0a178096b10eeed7a7',a,this.wallet)}return babelHelpers.createClass(e,[{key:"getBalance",value:function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(this.wallet.getBalance('latest'));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}},null,this)}},{key:"getOtherBalance",value:function(e){var t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.wallet.provider.getBalance(e));case 2:return t=r.sent,r.abrupt("return",t);case 4:case"end":return r.stop()}},null,this)}},{key:"getTokenBalance",value:function(e){var t,r,a;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=i.default,r=new u.default.Contract(e,t,this.wallet.provider),n.next=4,regeneratorRuntime.awrap(r.balanceOf(this.wallet.address));case 4:return a=n.sent,n.abrupt("return",a);case 6:case"end":return n.stop()}},null,this)}},{key:"getOtherTokenBalance",value:function(e,t){var r,a,n;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=i.default,a=new u.default.Contract(e,r,this.wallet.provider),s.next=4,regeneratorRuntime.awrap(a.balanceOf(t));case 4:return n=s.sent,s.abrupt("return",n);case 6:case"end":return s.stop()}},null,this)}},{key:"sendTokens",value:function(e,t,r){var a,n,s,l,c;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return a=i.default,n=new u.default.Contract(e,a,this.wallet),s=u.default.utils.parseUnits(r,18),l={gasLimit:1e6},o.next=6,regeneratorRuntime.awrap(n.transfer(t,s,l));case 6:return c=o.sent,o.abrupt("return",c);case 8:case"end":return o.stop()}},null,this)}},{key:"estimateGas",value:function(e,t){var r,a;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return r={gasPrice:u.default.utils.bigNumberify(e),to:'0xF0D346A86A68086846363185d24D5893F4353A78',data:t,value:u.default.utils.parseEther('0.1')},n.next=3,regeneratorRuntime.awrap(this.wallet.estimateGas(r));case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}},null,this)}},{key:"sendMoney",value:function(e,t){var r={gasLimit:21e3,to:e,data:'0x',value:u.default.utils.parseEther(t)};return this.wallet.sendTransaction(r)}},{key:"trackTransaction",value:function(e){return this.wallet.provider.waitForTransaction(e)}},{key:"getTransactionReceipt",value:function(e){return this.wallet.provider.getTransactionReceipt(e)}},{key:"ethereumAddressFromPublicKey",value:function(e){return s.NativeModules.Panthalassa.PanthalassaEthPubToAddress({pub:e})}},{key:"deployContract",value:function(e,t,r){for(var a,n,s=arguments.length,l=Array(s>3?s-3:0),i=3;i0&&s.throwError('call exception',s.CALL_EXCEPTION,{address:e,method:p.signature,value:l}),t}return 1===n.outputs.types.length&&(t=t[0]),t});case'transaction':if(!t)return Promise.reject(new Error('missing signer'));if(null!=c.from)throw new Error('transaction cannot override from');if(i)return t&&t.estimateGas?t.estimateGas(c):u.estimateGas(c);if(t.sendTransaction)return t.sendTransaction(c);if(!t.sign)return Promise.reject(new Error('custom signer does not support signing'));null==c.gasLimit&&(c.gasLimit=t.defaultGasLimit||2e6);var g=null;if(c.nonce)g=Promise.resolve(c.nonce);else if(t.getTransactionCount)(g=t.getTransactionCount())instanceof Promise||(g=Promise.resolve(g));else{var h=t.getAddress();h instanceof Promise||(h=Promise.resolve(h)),g=h.then(function(e){return u.getTransactionCount(e,'pending')})}var v=null;return v=c.gasPrice?Promise.resolve(c.gasPrice):u.getGasPrice(),Promise.all([g,v]).then(function(e){return c.nonce=e[0],c.gasPrice=e[1],t.sign(c)}).then(function(e){return u.sendTransaction(e)})}}}var p={};o.defineProperty(this,'estimate',p);var d={};o.defineProperty(this,'functions',d);var g={};o.defineProperty(this,'events',g),Object.keys(r.functions).forEach(function(e){var n=r.functions[e],t=f(n,!1);null==this[e]?o.defineProperty(this,e,t):console.log('WARNING: Multiple definitions for '+n),null==d[n]&&(o.defineProperty(d,e,t),o.defineProperty(p,e,f(n,!0)))},this),Object.keys(r.events).forEach(function(e){var n=r.events[e],t=null;function i(r){l.then(function(o){if(o==r.address){try{var s=n.parse(r.topics,r.data);r.args=s,r.event=e,r.parse=n.parse,r.removeListener=function(){u.removeListener(n.topics,i)},r.getBlock=function(){return u.getBlock(r.blockHash)},r.getTransaction=function(){return u.getTransaction(r.transactionHash)},r.getTransactionReceipt=function(){return u.getTransactionReceipt(r.transactionHash)},r.eventSignature=n.signature,t.apply(r,Array.prototype.slice.call(s))}catch(e){console.log(e)}return null}}).catch(function(e){})}var o={enumerable:!0,get:function(){return t},set:function(e){e||(e=null),!e&&t?u.removeListener(n.topics,i):e&&!t&&u.on(n.topics,i),t=e}},s='on'+e.toLowerCase();null==this[s]&&Object.defineProperty(this,s,o),Object.defineProperty(g,e,o)},this)}o.defineProperty(c.prototype,'connect',function(e){return new c(this.address,this.interface,e)}),o.defineProperty(c,'getDeployTransaction',function(e,r){r instanceof i||(r=new i(r));var n=Array.prototype.slice.call(arguments);return n.splice(1,1),{data:r.deployFunction.apply(r,n).bytecode}}),n.exports=c},696); -__d(function(e,n,t,r){'use strict';var a,o,s,i,u=(a=n(698),o=n(699),s=n(700),i=n(702),{defineFrozen:s.defineFrozen,defineProperty:s.defineProperty,coder:a.defaultCoder,parseSignature:a.parseSignature,arrayify:o.arrayify,concat:o.concat,isHexString:o.isHexString,toUtf8Bytes:i.toUtf8Bytes,keccak256:n(706)}),p=n(701);function c(e){var n=[],t=[];return e.forEach(function(e){if(null!=e.components){if('tuple'!==e.type.substring(0,5))throw new Error('internal error; report on GitHub');var r='',a=e.type.indexOf('[');a>=0&&(r=e.type.substring(a));var o=c(e.components);n.push({name:e.name||null,names:o.names}),t.push('tuple('+o.types.join(',')+')'+r)}else n.push(e.name||null),t.push(e.type)}),{names:n,types:t}}function l(e,n){for(var t in n)u.defineProperty(e,t,n[t]);return e}function y(e){u.defineProperty(this,'indexed',!0),u.defineProperty(this,'hash',e)}function f(e){if(!(this instanceof f))throw new Error('missing new');if('string'==typeof e)try{e=JSON.parse(e)}catch(n){p.throwError('could not parse ABI JSON',p.INVALID_ARGUMENT,{arg:'abi',errorMessage:n.message,value:e})}var n=[];e.forEach(function(e){'string'==typeof e&&(e=u.parseSignature(e)),n.push(e)}),u.defineFrozen(this,'abi',n);var t={},r={},a=null;function o(e){switch(e.type){case'constructor':var n=(function(){var n=c(e.inputs),t=function(t){u.isHexString(t)||p.throwError('invalid contract bytecode',p.INVALID_ARGUMENT,{arg:'bytecode',type:typeof t,value:t});var r=Array.prototype.slice.call(arguments,1);r.lengthn.types.length&&p.throwError('too many constructor arguments',p.UNEXPECTED_ARGUMENT,{count:r.length,expectedCount:n.types.length});try{var a=u.coder.encode(e.inputs,r)}catch(e){p.throwError('invalid constructor argument',p.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}var o={bytecode:t+a.substring(2),type:'deploy'};return l(new(function(){}),o)};return u.defineFrozen(t,'inputs',n),u.defineProperty(t,'payable',null==e.payable||!!e.payable),t})();a||(a=n);break;case'function':n=(function(){var n=c(e.inputs),t=c(e.outputs),r='('+n.types.join(',')+')';r=r.replace(/tuple/g,''),r=e.name+r;var a=function(n){try{return u.coder.decode(e.outputs,u.arrayify(n))}catch(e){p.throwError('invalid data for function output',p.INVALID_ARGUMENT,{arg:'data',errorArg:e.arg,errorValue:e.value,value:n,reason:e.reason})}},o=u.keccak256(u.toUtf8Bytes(r)).substring(0,10),s=function(){var t={name:e.name,signature:r,sighash:o,type:e.constant?'call':'transaction'},s=Array.prototype.slice.call(arguments,0);s.lengthn.types.length&&p.throwError('too many input arguments',p.UNEXPECTED_ARGUMENT,{count:s.length,expectedCount:n.types.length});try{var i=u.coder.encode(e.inputs,s)}catch(e){p.throwError('invalid input argument',p.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}return t.data=o+i.substring(2),t.parse=a,l(new(function(){}),t)};return u.defineFrozen(s,'inputs',n),u.defineFrozen(s,'outputs',t),u.defineProperty(s,'payable',null==e.payable||!!e.payable),u.defineProperty(s,'parseResult',a),u.defineProperty(s,'signature',r),u.defineProperty(s,'sighash',o),s})();e.name&&null==t[e.name]&&u.defineProperty(t,e.name,n),null==t[n.signature]&&u.defineProperty(t,n.signature,n);break;case'event':n=(function(){var n=c(e.inputs),t='('+n.types.join(',')+')';t=t.replace(/tuple/g,''),t=e.name+t;var r={anonymous:!!e.anonymous,name:e.name,signature:t,type:'event',parse:function(n,t){null==t&&(t=n,n=null),null==n||e.anonymous||(n=n.slice(1));var r=[],a=[],o=[];if(e.inputs.forEach(function(e,n){e.indexed?'string'===e.type||'bytes'===e.type||e.type.indexOf('[')>=0||'tuple'===e.type.substring(0,5)?(r.push({type:'bytes32',name:e.name||''}),o.push(!0)):(r.push(e),o.push(!1)):(a.push(e),o.push(!1))}),null!=n)var s=u.coder.decode(r,u.concat(n));var i=u.coder.decode(a,u.arrayify(t)),p=new(function(){}),c=0,l=0;return e.inputs.forEach(function(e,t){e.indexed?null==n?p[t]=new y(null):o[t]?p[t]=new y(s[l++]):p[t]=s[l++]:p[t]=i[c++],e.name&&(p[e.name]=p[t])}),p.length=e.inputs.length,p}},a=l(new(function(){}),r);return u.defineFrozen(a,'topics',[u.keccak256(u.toUtf8Bytes(t))]),u.defineFrozen(a,'inputs',n),a})();e.name&&null==r[e.name]&&u.defineProperty(r,e.name,n),null==t[n.signature]&&u.defineProperty(t,n.signature,n);break;case'fallback':break;default:console.log('WARNING: unsupported ABI type - '+e.type)}}u.defineProperty(this,'functions',t),u.defineProperty(this,'events',r),n.forEach(o,this),a||o({type:'constructor',inputs:[]}),u.defineProperty(this,'deployFunction',a)}u.defineProperty(f.prototype,'parseTransaction',function(e){var n=e.data.substring(0,10).toLowerCase();for(var t in this.functions)if(-1!==t.indexOf('(')){var r=this.functions[t];if(r.sighash===n)return{args:u.coder.decode(r.inputs.types,'0x'+e.data.substring(10)),signature:r.signature,sighash:r.sighash,parse:r.parseResult,value:e.value}}return null}),t.exports=f},697); -__d(function(e,t,r,n){'use strict';var a,o,i=(a=t(699),o=t(702),{defineProperty:t(700).defineProperty,arrayify:a.arrayify,padZeros:a.padZeros,bigNumberify:t(703).bigNumberify,getAddress:t(705).getAddress,concat:a.concat,toUtf8Bytes:o.toUtf8Bytes,toUtf8String:o.toUtf8String,hexlify:a.hexlify}),c=t(701),u=new RegExp(/^bytes([0-9]*)$/),l=new RegExp(/^(u?int)([0-9]*)$/),s=new RegExp(/^(.*)\[([0-9]*)\]$/),y=function(e,t){var r=e.match(l);return r&&parseInt(r[2])<=48?t.toNumber():t};var d=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),f=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function p(e){return e.match(/^uint($|[^1-9])/)?e='uint256'+e.substring(4):e.match(/^int($|[^1-9])/)&&(e='int256'+e.substring(3)),e}function h(e,t){function r(t){throw new Error('unexpected character "'+e[t]+'" at position '+t+' in "'+e+'"')}for(var n={type:'',name:'',state:{allowType:!0}},a=n,o=0;ot.length)throw new Error('invalid null');return{consumed:0,value:e('null',void 0)}},dynamic:!1}},v=function(e,t,r,n){var a=(r?'int':'uint')+8*t;return{localName:n,name:a,type:a,encode:function(e){try{e=i.bigNumberify(e)}catch(t){c.throwError('invalid number value',c.INVALID_ARGUMENT,{arg:n,type:typeof e,value:e})}return e=e.toTwos(8*t).maskn(8*t),r&&(e=e.fromTwos(8*t).toTwos(256)),i.padZeros(i.arrayify(e),32)},decode:function(o,u){o.length32)throw new Error('too many bytes for field')}catch(t){c.throwError('invalid '+n+' value',c.INVALID_ARGUMENT,{arg:r,type:typeof e,value:t.value})}if(32===e.length)return e;var t=new Uint8Array(32);return t.set(e),t},decode:function(a,o){return a.length256||a%8!=0)&&c.throwError('invalid '+r[1]+' bit length',c.INVALID_ARGUMENT,{arg:'param',value:t}),v(e,a/8,'int'===r[1],t.name);if(r=t.type.match(u))return(0===(a=parseInt(r[1]))||a>32)&&c.throwError('invalid bytes length',c.INVALID_ARGUMENT,{arg:'param',value:t}),w(e,a,t.name);if(r=t.type.match(s)){t=(function(e){var t={};for(var r in e)t[r]=e[r];return t})(t);var a=parseInt(r[2]||-1);return t.type=r[1],(function(e,t,r,n){var a=t.type+'['+(r>=0?r:'')+']';return{coder:t,localName:n,length:r,name:'array',type:a,encode:function(e){Array.isArray(e)||c.throwError('expected array value',c.INVALID_ARGUMENT,{arg:n,coderType:'array',type:typeof e,value:e});var a=r,o=new Uint8Array(0);-1===a&&(a=e.length,o=g.encode(a)),a!==e.length&&error.throwError('array value length mismatch',c.INVALID_ARGUMENT,{arg:n,coderType:'array',count:e.length,expectedCount:a,value:e});var u=[];return e.forEach(function(e){u.push(t)}),i.concat([o,b(u,e)])},decode:function(o,i){var u=0,l=r;if(-1===l){try{var s=g.decode(o,i)}catch(e){c.throwError('insufficient data for dynamic array length',c.INVALID_ARGUMENT,{arg:n,coderType:'array',value:e.value})}try{l=s.value.toNumber()}catch(e){c.throwError('array count too large',c.INVALID_ARGUMENT,{arg:n,coderType:'array',value:s.value.toString()})}u+=s.consumed,i+=s.consumed}for(var y={name:t.name,type:t.type,encode:t.encode,decode:t.decode,dynamic:t.dynamic},d=[],f=0;f1){var a=r[1].match(d);if(''!=a[1].trim()||''!=a[3].trim())throw new Error('unexpected tokens');U(a[2]).forEach(function(e){t.outputs.push(h(e))})}return t})(e.trim()));throw new Error('unknown fragment')}),r.exports=_},698); -__d(function(r,t,n,e){t(700).defineProperty;var a=t(701);function i(r){return r.slice?r:(r.slice=function(){var t=Array.prototype.slice.call(arguments);return new Uint8Array(Array.prototype.slice.apply(r,t))},r)}function o(r){if(!r||parseInt(r.length)!=r.length||'string'==typeof r)return!1;for(var t=0;t=256||parseInt(n)!=n)return!1}return!0}function u(r){if(null==r&&a.throwError('cannot convert null value to array',a.INVALID_ARGUMENT,{arg:'value',value:r}),r&&r.toHexString&&(r=r.toHexString()),l(r)){(r=r.substring(2)).length%2&&(r='0'+r);for(var t=[],n=0;n>4]+f[15&i])}return'0x'+n.join('')}a.throwError('invalid hexlify value',{arg:'value',value:r})}n.exports={arrayify:u,isArrayish:o,concat:function(r){for(var t=[],n=0,e=0;e3&&'0x0'===r.substring(0,3);)r='0x'+r.substring(3);return r},hexZeroPad:function(r,t){for(;r.length<2*t+2;)r='0x0'+r.substring(2);return r}}},699); -__d(function(e,n,r,t){'use strict';r.exports={defineFrozen:function(e,n,r){var t=JSON.stringify(r);Object.defineProperty(e,n,{enumerable:!0,get:function(){return JSON.parse(t)}})},defineProperty:function(e,n,r){Object.defineProperty(e,n,{enumerable:!0,value:r,writable:!1})}}},700); -__d(function(r,n,N,t){'use strict';var E=n(700).defineProperty,o={};['UNKNOWN_ERROR','NOT_IMPLEMENTED','MISSING_NEW','CALL_EXCEPTION','INVALID_ARGUMENT','MISSING_ARGUMENT','UNEXPECTED_ARGUMENT','UNSUPPORTED_OPERATION'].forEach(function(r){E(o,r,r)}),E(o,'throwError',function(r,n,N){n||(n=o.UNKNOWN_ERROR),N||(N={});var t=[];Object.keys(N).forEach(function(r){try{t.push(r+'='+JSON.stringify(N[r]))}catch(n){t.push(r+'='+JSON.stringify(N[r].toString()))}});var E=r;t.length&&(r+=' ('+t.join(', ')+')');var e=new Error(r);throw e.reason=E,e.code=n,Object.keys(N).forEach(function(r){e[r]=N[r]}),e}),E(o,'checkNew',function(r,n){r instanceof n||o.throwError('missing new',o.MISSING_NEW,{name:n.name})}),N.exports=o},701); -__d(function(r,e,t,f){var n=e(699);t.exports={toUtf8Bytes:function(r){for(var e=[],t=0,f=0;f>6|192,e[t++]=63&i|128):55296==(64512&i)&&f+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=63&i|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=63&i|128)}return n.arrayify(e)},toUtf8String:function(r){r=n.arrayify(r);for(var e='',t=0;t>7!=0){if(f>>6!=2){var i=null;if(f>>5==6)i=1;else if(f>>4==14)i=2;else if(f>>3==30)i=3;else if(f>>2==62)i=4;else{if(f>>1!=126)continue;i=5}if(t+i>r.length){for(;t>6==2;t++);if(t!=r.length)continue;return e}var o,a=f&(1<<8-i-1)-1;for(o=0;o>6!=2)break;a=a<<6|63&l}o==i?a<=65535?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296+(a>>10&1023),56320+(1023&a))):t--}}else e+=String.fromCharCode(f)}return e}}},702); -__d(function(n,t,e,r){var o=t(440),i=t(700).defineProperty,u=t(699),s=t(704);function b(n){if(!(this instanceof b))throw new Error('missing new');u.isHexString(n)?('0x'==n&&(n='0x0'),n=new o(n.substring(2),16)):'string'==typeof n&&'-'===n[0]&&u.isHexString(n.substring(1))?n=new o(n.substring(3),16).mul(b.constantNegativeOne._bn):'string'==typeof n&&n.match(/^-?[0-9]*$/)?(''==n&&(n='0'),n=new o(n)):'number'==typeof n&&parseInt(n)==n?n=new o(n):o.isBN(n)||(p(n)?n=n._bn:u.isArrayish(n)?n=new o(u.hexlify(n).substring(2),16):s('invalid BigNumber value',{input:n})),i(this,'_bn',n)}function p(n){return n._bn&&n._bn.mod}function _(n){return p(n)?n:new b(n)}i(b,'constantNegativeOne',_(-1)),i(b,'constantZero',_(0)),i(b,'constantOne',_(1)),i(b,'constantTwo',_(2)),i(b,'constantWeiPerEther',_(new o('1000000000000000000'))),i(b.prototype,'fromTwos',function(n){return new b(this._bn.fromTwos(n))}),i(b.prototype,'toTwos',function(n){return new b(this._bn.toTwos(n))}),i(b.prototype,'add',function(n){return new b(this._bn.add(_(n)._bn))}),i(b.prototype,'sub',function(n){return new b(this._bn.sub(_(n)._bn))}),i(b.prototype,'div',function(n){return new b(this._bn.div(_(n)._bn))}),i(b.prototype,'mul',function(n){return new b(this._bn.mul(_(n)._bn))}),i(b.prototype,'mod',function(n){return new b(this._bn.mod(_(n)._bn))}),i(b.prototype,'pow',function(n){return new b(this._bn.pow(_(n)._bn))}),i(b.prototype,'maskn',function(n){return new b(this._bn.maskn(n))}),i(b.prototype,'eq',function(n){return this._bn.eq(_(n)._bn)}),i(b.prototype,'lt',function(n){return this._bn.lt(_(n)._bn)}),i(b.prototype,'lte',function(n){return this._bn.lte(_(n)._bn)}),i(b.prototype,'gt',function(n){return this._bn.gt(_(n)._bn)}),i(b.prototype,'gte',function(n){return this._bn.gte(_(n)._bn)}),i(b.prototype,'isZero',function(){return this._bn.isZero()}),i(b.prototype,'toNumber',function(n){return this._bn.toNumber()}),i(b.prototype,'toString',function(){return this._bn.toString(10)}),i(b.prototype,'toHexString',function(){var n=this._bn.toString(16);return n.length%2&&(n='0'+n),'0x'+n}),e.exports={isBigNumber:p,bigNumberify:_,BigNumber:b}},703); -__d(function(r,n,o,t){'use strict';o.exports=function(r,n){var o=new Error(r);for(var t in n)o[t]=n[t];throw o}},704); -__d(function(r,t,n,i){var s=t(440),e=t(699),a=t(704),o=t(706);function g(r){'string'==typeof r&&r.match(/^0x[0-9A-Fa-f]{40}$/)||a('invalid address',{input:r});for(var t=(r=r.toLowerCase()).substring(2).split(''),n=0;n>1]>>4>=8&&(r[n]=r[n].toUpperCase()),(15&t[n>>1])>=8&&(r[n+1]=r[n+1].toUpperCase());return'0x'+r.join('')}var u=(function(){for(var r={},t=0;t<10;t++)r[String(t)]=String(t);for(t=0;t<26;t++)r[String.fromCharCode(65+t)]=String(10+t);var n,i=Math.floor((n=9007199254740991,Math.log10?Math.log10(n):Math.log(n)/Math.LN10));return function(t){for(var n=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+'00').split(''),s=0;s=i;){var e=n.substring(0,i);n=parseInt(e,10)%97+n.substring(e.length)}for(var a=String(98-parseInt(n,10)%97);a.length<2;)a='0'+a;return a}})();n.exports={getAddress:function(r,t){var n=null;if('string'!=typeof r&&a('invalid address',{input:r}),r.match(/^(0x)?[0-9a-fA-F]{40}$/))'0x'!==r.substring(0,2)&&(r='0x'+r),n=g(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==r&&a('invalid address checksum',{input:r,expected:n});else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==u(r)&&a('invalid address icap checksum',{input:r}),n=new s(r.substring(4),36).toString(16);n.length<40;)n='0'+n;n=g('0x'+n)}else a('invalid address',{input:r});if(t){for(var i=new s(n.substring(2),16).toString(36).toUpperCase();i.length<30;)i='0'+i;return'XE'+u('XE00'+i)+i}return n}}},705); -__d(function(r,t,c,n){'use strict';var a=t(707),e=t(699);c.exports=function(r){return r=e.arrayify(r),'0x'+a.keccak_256(r)}},706); -__d(function(t,r,e,o){!(function(){'use strict';var r='object'==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&'object'==typeof process&&process.versions&&process.versions.node&&(r=t);for(var o=!r.JS_SHA3_NO_COMMON_JS&&'object'==typeof e&&e.exports,s='0123456789abcdef'.split(''),i=[0,8,16,24],n=[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],a=[224,256,384,512],u=['hex','buffer','arrayBuffer','array'],h=function(t,r,e){return function(o){return new g(t,r,t).update(o)[e]()}},f=function(t,r,e){return function(o,s){return new g(t,r,s).update(o)[e]()}},c=function(t,r){var e=h(t,r,'hex');e.create=function(){return new g(t,r,t)},e.update=function(t){return e.create().update(t)};for(var o=0;o>5,this.byteCount=this.blockCount<<2,this.outputBlocks=e>>5,this.extraBytes=(31&e)>>3;for(var o=0;o<50;++o)this.s[o]=0}g.prototype.update=function(t){var r='string'!=typeof t;r&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var e,o,s=t.length,n=this.blocks,a=this.byteCount,u=this.blockCount,h=0,f=this.s;h>2]|=t[h]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(n[e>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=a){for(this.start=e-a,this.block=n[u],e=0;e>2]|=this.padding[3&r],this.lastByteIndex===this.byteCount)for(t[0]=t[e],r=1;r>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%r==0&&(x(e),n=0)}return i&&(t=e[n],i>0&&(u+=s[t>>4&15]+s[15&t]),i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},g.prototype.arrayBuffer=function(){this.finalize();var t,r=this.blockCount,e=this.s,o=this.outputBlocks,s=this.extraBytes,i=0,n=0,a=this.outputBits>>3;t=s?new ArrayBuffer(o+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);n>8&255,u[t+2]=r>>16&255,u[t+3]=r>>24&255;a%e==0&&x(o)}return i&&(t=a<<2,r=o[n],i>0&&(u[t]=255&r),i>1&&(u[t+1]=r>>8&255),i>2&&(u[t+2]=r>>16&255)),u};var x=function(t){var r,e,o,s,i,a,u,h,f,c,p,l,d,y,b,v,k,B,g,x,C,w,_,A,S,M,O,m,z,J,N,j,I,H,U,D,E,q,F,G,K,L,P,Q,R,T,V,W,X,Y,Z,$,tt,rt,et,ot,st,it,nt,at,ut,ht,ft;for(o=0;o<48;o+=2)s=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],p=t[7]^t[17]^t[27]^t[37]^t[47],r=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|u>>>31),e=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|a>>>31),t[0]^=r,t[1]^=e,t[10]^=r,t[11]^=e,t[20]^=r,t[21]^=e,t[30]^=r,t[31]^=e,t[40]^=r,t[41]^=e,r=s^(h<<1|f>>>31),e=i^(f<<1|h>>>31),t[2]^=r,t[3]^=e,t[12]^=r,t[13]^=e,t[22]^=r,t[23]^=e,t[32]^=r,t[33]^=e,t[42]^=r,t[43]^=e,r=a^(c<<1|p>>>31),e=u^(p<<1|c>>>31),t[4]^=r,t[5]^=e,t[14]^=r,t[15]^=e,t[24]^=r,t[25]^=e,t[34]^=r,t[35]^=e,t[44]^=r,t[45]^=e,r=h^(l<<1|d>>>31),e=f^(d<<1|l>>>31),t[6]^=r,t[7]^=e,t[16]^=r,t[17]^=e,t[26]^=r,t[27]^=e,t[36]^=r,t[37]^=e,t[46]^=r,t[47]^=e,r=c^(s<<1|i>>>31),e=p^(i<<1|s>>>31),t[8]^=r,t[9]^=e,t[18]^=r,t[19]^=e,t[28]^=r,t[29]^=e,t[38]^=r,t[39]^=e,t[48]^=r,t[49]^=e,y=t[0],b=t[1],T=t[11]<<4|t[10]>>>28,V=t[10]<<4|t[11]>>>28,m=t[20]<<3|t[21]>>>29,z=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,L=t[40]<<18|t[41]>>>14,P=t[41]<<18|t[40]>>>14,H=t[2]<<1|t[3]>>>31,U=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,k=t[12]<<12|t[13]>>>20,W=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,J=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,rt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,E=t[15]<<6|t[14]>>>26,B=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,j=t[45]<<29|t[44]>>>3,I=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,ot=t[17]<<23|t[16]>>>9,st=t[16]<<23|t[17]>>>9,q=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,x=t[36]<<21|t[37]>>>11,C=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,Q=t[8]<<27|t[9]>>>5,R=t[9]<<27|t[8]>>>5,M=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,nt=t[28]<<7|t[29]>>>25,G=t[38]<<8|t[39]>>>24,K=t[39]<<8|t[38]>>>24,w=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=y^~v&B,t[1]=b^~k&g,t[10]=A^~M&m,t[11]=S^~O&z,t[20]=H^~D&q,t[21]=U^~E&F,t[30]=Q^~T&W,t[31]=R^~V&X,t[40]=rt^~ot&it,t[41]=et^~st&nt,t[2]=v^~B&x,t[3]=k^~g&C,t[12]=M^~m&J,t[13]=O^~z&N,t[22]=D^~q&G,t[23]=E^~F&K,t[32]=T^~W&Y,t[33]=V^~X&Z,t[42]=ot^~it&at,t[43]=st^~nt&ut,t[4]=B^~x&w,t[5]=g^~C&_,t[14]=m^~J&j,t[15]=z^~N&I,t[24]=q^~G&L,t[25]=F^~K&P,t[34]=W^~Y&$,t[35]=X^~Z&tt,t[44]=it^~at&ht,t[45]=nt^~ut&ft,t[6]=x^~w&y,t[7]=C^~_&b,t[16]=J^~j&A,t[17]=N^~I&S,t[26]=G^~L&H,t[27]=K^~P&U,t[36]=Y^~$&Q,t[37]=Z^~tt&R,t[46]=at^~ht&rt,t[47]=ut^~ft&et,t[8]=w^~y&v,t[9]=_^~b&k,t[18]=j^~A&M,t[19]=I^~S&O,t[28]=L^~H&D,t[29]=P^~U&E,t[38]=$^~Q&T,t[39]=tt^~R&V,t[48]=ht^~rt&ot,t[49]=ft^~et&st,t[0]^=n[o],t[1]^=n[o+1]};if(o)e.exports=l;else for(y=0;yt+12&&delete n._emitted[e]})),n.emit('block',t);var s={};return Object.keys(r).forEach(function(t){var r=(function(e){if('tx:'===e.substring(0,3))return{type:'transaction',hash:e.substring(3)};if('block'===e)return{type:'block'};if('pending'===e)return{type:'pending'};if('address:'===e.substring(0,8))return{type:'address',address:e.substring(8)};if('topic:'===e.substring(0,6))try{var t=c.RLP.decode(e.substring(6));return{type:'topic',topic:t=H(t,function(e){return'0x'===e&&(e=null),e})}}catch(e){console.log(e)}throw new Error('invalid event string')})(t);'transaction'===r.type?n.getTransaction(r.hash).then(function(e){return e&&null!=e.blockNumber?(n._emitted['t:'+e.hash.toLowerCase()]=e.blockNumber,n.emit(r.hash,e),null):null}).catch(function(e){}):'address'===r.type?(i[r.address]&&(s[r.address]=i[r.address]),n.getBalance(r.address,'latest').then(function(e){var t=i[r.address];return t&&e.eq(t)?null:(i[r.address]=e,n.emit(r.address,e),null)}).catch(function(e){})):'topic'===r.type&&n.getLogs({fromBlock:o+1,toBlock:e,topics:r.topic}).then(function(e){return 0===e.length?null:(e.forEach(function(e){n._emitted['b:'+e.blockHash.toLowerCase()]=e.blockNumber,n._emitted['t:'+e.transactionHash.toLowerCase()]=e.blockNumber,n.emit(r.topic,e)}),null)}).catch(function(e){})}),o=e,i=s,null}}).catch(function(){}),n.doPoll()}c.defineProperty(this,'resetEventsBlock',function(e){o=e,n.doPoll()});var u=4e3,a=null;Object.defineProperty(this,'polling',{get:function(){return null!=a},set:function(e){setTimeout(function(){e&&!a?a=setInterval(s,u):!e&&a&&(clearInterval(a),a=null)},0)}}),Object.defineProperty(this,'pollingInterval',{get:function(){return u},set:function(e){if('number'!=typeof e||e<=0||parseInt(e)!=e)throw new Error('invalid polling interval');u=e,a&&(clearInterval(a),a=setInterval(s,u))}})}function L(e,t){return new Promise(function(r,n){var o=0;!(function i(){t().then(function(t){if(t||e())r(t);else{o++;var n=500+250*parseInt(Math.random()*(1<1e4&&(n=1e4),setTimeout(i,n)}return null},function(e){n(e)}).catch(function(e){n(e)})})()})}function H(e,t){if(Array.isArray(e)){var r=[];return e.forEach(function(e){r.push(H(e,t))}),r}return t(e)}function S(e){try{return'address:'+c.getAddress(e)}catch(e){}if('block'===e)return'block';if('pending'===e)return'pending';if(c.isHexString(e)){if(66===e.length)return'tx:'+e}else if(Array.isArray(e)){e=H(e,function(e){return null==e&&(e='0x'),e});try{return'topic:'+c.RLP.encode(e)}catch(e){console.log(e)}}throw new Error('invalid event - '+e)}c.defineProperty(I,'inherits',(function e(t){return function(r){s(r,t),c.defineProperty(r,'inherits',e(r))}})(I)),c.defineProperty(I,'getNetwork',function(e){if('string'==typeof e){if(!(e=a[e]))throw new Error('unknown network')}else null==e&&(e=a.homestead);if('number'!=typeof e.chainId)throw new Error('invalid chainId');return e}),c.defineProperty(I,'networks',a),c.defineProperty(I,'fetchJSON',function(e,t,r){var n=[];if('object'==typeof e&&null!=e.url&&null!=e.user&&null!=e.password){'https:'!==e.url.substring(0,6)&&!0!==e.forceInsecure&&l.throwError('basic authentication requires a secure https url',l.INVALID_ARGUMENT,{arg:'url',url:e.url,user:e.user,password:'[REDACTED]'});var o=e.user+':'+e.password;n.push({key:'Authorization',value:'Basic '+c.base64.encode(c.toUtf8Bytes(o))}),e=e.url}return new Promise(function(o,i){var s=new u;t?(s.open('POST',e,!0),n.push({key:'Content-Type',value:'application/json'})):s.open('GET',e,!0),n.forEach(function(e){s.setRequestHeader(e.key,e.value)}),s.onreadystatechange=function(){if(4===s.readyState){try{var n=JSON.parse(s.responseText)}catch(a){var u=new Error('invalid json response');return u.orginialError=a,u.responseText=s.responseText,u.url=e,void i(u)}if(r)try{n=r(n)}catch(a){return a.url=e,a.body=t,a.responseText=s.responseText,void i(a)}if(200!=s.status){var a=new Error('invalid response - '+s.status);return a.statusCode=s.statusCode,void i(a)}o(n)}},s.onerror=function(e){i(e)};try{t?s.send(t):s.send()}catch(e){var a=new Error('connection error');a.error=e,i(a)}})}),c.defineProperty(I.prototype,'waitForTransaction',function(e,t){var r=this;return new Promise(function(n,o){var i=null;function s(e){i&&clearTimeout(i),n(e)}r.once(e,s),'number'==typeof t&&t>0&&(i=setTimeout(function(){r.removeListener(e,s),o(new Error('timeout'))},t))})}),c.defineProperty(I.prototype,'getBlockNumber',function(){try{return this.perform('getBlockNumber').then(function(e){var t=parseInt(e);if(t!=e)throw new Error('invalid response - getBlockNumber');return t})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getGasPrice',function(){try{return this.perform('getGasPrice').then(function(e){return c.bigNumberify(e)})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getBalance',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getBalance',n).then(function(e){return c.bigNumberify(e)})})}),c.defineProperty(I.prototype,'getTransactionCount',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getTransactionCount',n).then(function(e){var t=parseInt(e);if(t!=e)throw new Error('invalid response - getTransactionCount');return t})})}),c.defineProperty(I.prototype,'getCode',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getCode',n).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'getStorageAt',function(e,t,r){var n=this;return this.resolveName(e).then(function(e){var o={address:e,blockTag:v(r),position:c.hexStripZeros(c.hexlify(t))};return n.perform('getStorageAt',o).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'sendTransaction',function(e){try{var t={signedTransaction:c.hexlify(e)};return this.perform('sendTransaction',t).then(function(e){if(66!==(e=c.hexlify(e)).length)throw new Error('invalid response - sendTransaction');return e})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'call',function(e){var t=this;return this._resolveNames(e,['to','from']).then(function(e){var r={transaction:k(e)};return t.perform('call',r).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'estimateGas',function(e){var t=this;return this._resolveNames(e,['to','from']).then(function(e){var r={transaction:k(e)};return t.perform('estimateGas',r).then(function(e){return c.bigNumberify(e)})})}),c.defineProperty(I.prototype,'getBlock',function(e){var t=this;try{var r=c.hexlify(e);if(66===r.length)return L(function(){return null==t._emitted['b:'+r.toLowerCase()]},function(){return t.perform('getBlock',{blockHash:r}).then(function(e){return null==e?null:b(e)})})}catch(e){}try{var n=v(e);return L(function(){return!c.isHexString(n)||parseInt(n.substring(2),16)>t._emitted.block},function(){return t.perform('getBlock',{blockTag:n}).then(function(e){return null==e?null:b(e)})})}catch(e){}return Promise.reject(new Error('invalid block hash or block tag'))}),c.defineProperty(I.prototype,'getTransaction',function(e){var t=this;try{var r={transactionHash:p(e)};return L(function(){return null==t._emitted['t:'+e.toLowerCase()]},function(){return t.perform('getTransaction',r).then(function(e){return null!=e&&(e=x(e)),e})})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getTransactionReceipt',function(e){var t=this;try{var r={transactionHash:p(e)};return L(function(){return null==t._emitted['t:'+e.toLowerCase()]},function(){return t.perform('getTransactionReceipt',r).then(function(e){return null!=e&&(e=(function(e){e.status,e.root;var t=f(A,e);return t.logs.forEach(function(e,t){null==e.transactionLogIndex&&(e.transactionLogIndex=t)}),null!=e.status&&(t.byzantium=!0),t})(e)),e})})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getLogs',function(e){var t=this;return this._resolveNames(e,['address']).then(function(e){var r={filter:(function(e){return f(E,e)})(e)};return t.perform('getLogs',r).then(function(e){return d(T)(e)})})}),c.defineProperty(I.prototype,'getEtherPrice',function(){try{return this.perform('getEtherPrice',{}).then(function(e){return e})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'_resolveNames',function(e,t){var r=[],n=(function(e){var t={};for(var r in e)t[r]=e[r];return t})(e);return t.forEach(function(e){void 0!==n[e]&&r.push(this.resolveName(n[e]).then(function(t){return n[e]=t,null}))},this),Promise.all(r).then(function(){return n})}),c.defineProperty(I.prototype,'_getResolver',function(e){var t='0x0178b8bf'+c.namehash(e).substring(2),r={to:this.ensAddress,data:t};return this.call(r).then(function(e){return 66!=e.length?null:c.getAddress('0x'+e.substring(26))})}),c.defineProperty(I.prototype,'resolveName',function(e){try{return Promise.resolve(c.getAddress(e))}catch(e){}if(!this.ensAddress)throw new Error('network does not have ENS deployed');var t=this,r=c.namehash(e);return this._getResolver(e).then(function(e){var n={to:e,data:'0x3b3b57de'+r.substring(2)};return t.call(n)}).then(function(e){if(66!=e.length)return null;var t=c.getAddress('0x'+e.substring(26));return'0x0000000000000000000000000000000000000000'===t?null:t})}),c.defineProperty(I.prototype,'lookupAddress',function(e){if(!this.ensAddress)throw new Error('network does not have ENS deployed');var t=(e=c.getAddress(e)).substring(2)+'.addr.reverse',r=c.namehash(t),n=this;return this._getResolver(t).then(function(e){if(!e)return null;var t={to:e,data:'0x691f3431'+r.substring(2)};return n.call(t)}).then(function(t){if((t=t.substring(2)).length<64)return null;if((t=t.substring(64)).length<64)return null;var r=c.bigNumberify('0x'+t.substring(0,64)).toNumber();if(2*r>(t=t.substring(64)).length)return null;var o=c.toUtf8String('0x'+t.substring(0,2*r));return n.resolveName(o).then(function(t){return t!=e?null:o})})}),c.defineProperty(I.prototype,'doPoll',function(){}),c.defineProperty(I.prototype,'perform',function(e,t){return Promise.reject(new Error('not implemented - '+e))}),c.defineProperty(I.prototype,'_startPending',function(){console.log('WARNING: this provider does not support pending events')}),c.defineProperty(I.prototype,'_stopPending',function(){}),c.defineProperty(I.prototype,'on',function(e,t){var r=S(e);this._events[r]||(this._events[r]=[]),this._events[r].push({eventName:e,listener:t,type:'on'}),'pending'===r&&this._startPending(),this.polling=!0}),c.defineProperty(I.prototype,'once',function(e,t){var r=S(e);this._events[r]||(this._events[r]=[]),this._events[r].push({eventName:e,listener:t,type:'once'}),'pending'===r&&this._startPending(),this.polling=!0}),c.defineProperty(I.prototype,'emit',function(e){var t=S(e),r=Array.prototype.slice.call(arguments,1),n=this._events[t];if(n){for(var o=0;o>=8;return n}function l(r,n,t){for(var e=0,i=0;in+1+e)throw new Error('invalid rlp')}return{consumed:1+e,result:i}}function f(r,n){if(0===r.length)throw new Error('invalid rlp data');if(r[n]>=248){if(n+1+(t=r[n]-247)>r.length)throw new Error('too short');if(n+1+t+(e=l(r,n+1,t))>r.length)throw new Error('to short');return a(r,n,n+1+t,t+e)}if(r[n]>=192){if(n+1+(e=r[n]-192)>r.length)throw new Error('invalid rlp data');return a(r,n,n+1,e)}if(r[n]>=184){var t;if(n+1+(t=r[n]-183)>r.length)throw new Error('invalid rlp data');if(n+1+t+(e=l(r,n+1,t))>r.length)throw new Error('invalid rlp data');return{consumed:1+t+e,result:i.hexlify(r.slice(n+1+t,n+1+t+e))}}if(r[n]>=128){var e;if(n+1+(e=r[n]-128)>r.offset)throw new Error('invlaid rlp data');return{consumed:1+e,result:i.hexlify(r.slice(n+1,n+1+e))}}return{consumed:1,result:i.hexlify(r[n])}}t.exports={encode:function(r){return i.hexlify((function r(n){if(Array.isArray(n)){var t=[];return n.forEach(function(n){t=t.concat(r(n))}),t.length<=55?(t.unshift(192+t.length),t):((e=o(t.length)).unshift(247+e.length),e.concat(t))}return 1===(n=[].slice.call(i.arrayify(n))).length&&n[0]<=127?n:n.length<=55?(n.unshift(128+n.length),n):((e=o(n.length)).unshift(183+e.length),e.concat(n));var e})(r))},decode:function(r){var n=f(r=i.arrayify(r),0);if(n.consumed!==r.length)throw new Error('invalid rlp data');return n.result}}},713); -__d(function(r,t,o,e){'use strict';var n=t(699);o.exports={decode:function(r){r=atob(r);for(var t=[],o=0;o0){if(t.filter.topics.length>1)throw new Error('unsupported topic format');var s=t.filter.topics[0];if('string'!=typeof s||66!==s.length)throw new Error('unsupported topic0 format');r+='&topic0='+s}}catch(e){return Promise.reject(e)}r+=n;var c=this;return a.fetchJSON(r,null,l).then(function(e){var t={},r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return null!=e.blockHash?null:(e.blockHash=t[e.transactionHash],null==e.blockHash?c.getTransaction(e.transactionHash).then(function(r){return t[e.transactionHash]=r.blockHash,e.blockHash=r.blockHash,e}):null)})}),r.then(function(){return e})});case'getEtherPrice':return'homestead'!==this.name?Promise.resolve(0):(r+='/api?module=stats&action=ethprice',r+=n,a.fetchJSON(r,null,l).then(function(e){return parseFloat(e.ethusd)}))}return Promise.reject(new Error('not implemented - '+e))}),s.defineProperty(c.prototype,'getHistory',function(e,t,r){var n=this.baseUrl;return this.apiKey&&'&apikey='+this.apiKey,null==t&&(t=0),null==r&&(r=99999999),this.resolveName(e).then(function(e){return n+='/api?module=account&action=txlist&address='+e,n+='&startblock='+t,n+='&endblock='+r,n+='&sort=asc',a.fetchJSON(n,null,l).then(function(e){var t=[];return e.forEach(function(e){['contractAddress','to'].forEach(function(t){''==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var r=a._formatters.checkTransactionResponse(e);e.timeStamp&&(r.timestamp=parseInt(e.timeStamp)),t.push(r)}),t})})}),r.exports=c},716); -__d(function(r,n,e,t){'use strict';var i=n(363),o=n(709),f={defineProperty:n(700).defineProperty};function s(r){if(0===r.length)throw new Error('no providers');var n={};if(['chainId','ensAddress','name','testnet'].forEach(function(e){for(var t=1;t256)throw new Error('invalid number type - '+e);return n&&(u=256),t=a(t).toTwos(u),i.padZeros(t,u/8)}if(s=e.match(c)){var u;if((u=s[1])!=parseInt(u)||0===u||u>32)throw new Error('invalid number type - '+e);if(u=parseInt(u),i.arrayify(t).byteLength!==u)throw new Error('invalid value for '+e);return n?(t+p).substring(0,66):t}if(s=e.match(h)){var w=s[1];if(parseInt(s[2]||t.length)!=t.length)throw new Error('invalid value for '+e);var y=[];return t.forEach(function(e){e=r(w,e,!0),y.push(e)}),i.concat(y)}throw new Error('unknown type - '+e)})(r,e[n]))}),i.hexlify(i.concat(t))}t.exports={pack:w,keccak256:function(r,e){return s(w(r,e))},sha256:function(r,e){return u(w(r,e))}}},725); -__d(function(r,n,e,t){'use strict';var a=n(699),o=n(700).defineProperty,s=r.crypto||r.msCrypto;function i(r){if(r<=0||r>1024||parseInt(r)!=r)throw new Error('invalid length');var n=new Uint8Array(r);return s.getRandomValues(n),a.arrayify(n)}s&&s.getRandomValues||(console.log('WARNING: Missing strong random number source; using weak randomBytes'),s={getRandomValues:function(r){for(var n=0;n<20;n++)for(var e=0;e=0&&e<=256){for(var i='1',o=0;o2&&a('too many decimal points',{input:n});var l=o[0],s=o[1];for(l||(l='0'),s||(s='0'),s.length>e.decimals&&a('too many decimal places',{input:n,decimals:s.length});s.length0)throw(t=new Error('invalid '+r.name)).reason='wrong length',t.value=i,t;if(r.maxLength&&(i=a.stripZeros(i)).length>r.maxLength)throw(t=new Error('invalid '+r.name)).reason='too long',t.value=i,t;n.push(a.hexlify(i))}),r&&(n.push(a.hexlify(r)),n.push('0x'),n.push('0x'));var i=a.keccak256(a.RLP.encode(n)),o=t.signDigest(i),s=27+o.recoveryParam;return r&&(n.pop(),n.pop(),n.pop(),s+=2*r+8),n.push(a.hexlify(s)),n.push(a.stripZeros(a.arrayify(o.r))),n.push(a.stripZeros(a.arrayify(o.s))),a.RLP.encode(n)})}a.defineProperty(p,'parseTransaction',function(e){e=a.hexlify(e,'rawTransaction');var r=a.RLP.decode(e);if(9!==r.length)throw new Error('invalid transaction');var t=[],n={};d.forEach(function(e,i){n[e.name]=r[i],t.push(r[i])}),n.to&&('0x'==n.to?delete n.to:n.to=a.getAddress(n.to)),['gasPrice','gasLimit','nonce','value'].forEach(function(e){n[e]&&(0===n[e].length?n[e]=a.bigNumberify(0):n[e]=a.bigNumberify(n[e]))}),n.nonce?n.nonce=n.nonce.toNumber():n.nonce=0;var i=a.arrayify(r[6]),o=a.arrayify(r[7]),s=a.arrayify(r[8]);if(i.length>=1&&o.length>=1&&o.length<=32&&s.length>=1&&s.length<=32){n.v=a.bigNumberify(i).toNumber(),n.r=r[7],n.s=r[8];var f=(n.v-35)/2;f<0&&(f=0),f=parseInt(f),n.chainId=f;var c=n.v-27;f&&(t.push(a.hexlify(f)),t.push('0x'),t.push('0x'),c-=2*f+8);var p=a.keccak256(a.RLP.encode(t));try{n.from=h.recover(p,o,s,c)}catch(e){console.log(e)}}return n}),a.defineProperty(p.prototype,'getAddress',function(){return this.address}),a.defineProperty(p.prototype,'getBalance',function(e){if(!this.provider)throw new Error('missing provider');return this.provider.getBalance(this.address,e)}),a.defineProperty(p.prototype,'getTransactionCount',function(e){if(!this.provider)throw new Error('missing provider');return this.provider.getTransactionCount(this.address,e)}),a.defineProperty(p.prototype,'estimateGas',function(e){if(!this.provider)throw new Error('missing provider');var r={};return['from','to','data','value'].forEach(function(t){null!=e[t]&&(r[t]=e[t])}),null==e.from&&(r.from=this.address),this.provider.estimateGas(r)}),a.defineProperty(p.prototype,'sendTransaction',function(e){if(!this.provider)throw new Error('missing provider');if(!e||'object'!=typeof e)throw new Error('invalid transaction object');var r=e.gasLimit;null==r&&(r=this.defaultGasLimit);var t=this,n=null;n=e.gasPrice?Promise.resolve(e.gasPrice):this.provider.getGasPrice();var i=null;i=e.nonce?Promise.resolve(e.nonce):this.provider.getTransactionCount(t.address,'pending');var o=this.provider.chainId,s=null;s=e.to?this.provider.resolveName(e.to):Promise.resolve(void 0);var f=a.hexlify(e.data||'0x'),c=a.hexlify(e.value||0);return Promise.all([n,i,s]).then(function(e){var n=t.sign({to:e[2],data:f,gasLimit:r,gasPrice:e[0],nonce:e[1],value:c,chainId:o});return t.provider.sendTransaction(n).then(function(e){var r=p.parseTransaction(n);return r.hash=e,r.wait=function(){return t.provider.waitForTransaction(e)},r})})}),a.defineProperty(p.prototype,'send',function(e,r,t){return t||(t={}),this.sendTransaction({to:e,gasLimit:t.gasLimit,gasPrice:t.gasPrice,nonce:t.nonce,value:r})}),a.defineProperty(p,'hashMessage',function(e){var r=a.concat([a.toUtf8Bytes('\x19Ethereum Signed Message:\n'),a.toUtf8Bytes(String(e.length)),'string'==typeof e?a.toUtf8Bytes(e):e]);return a.keccak256(r)}),a.defineProperty(p.prototype,'signMessage',function(e){var r=new h(this.privateKey).signDigest(p.hashMessage(e));return a.hexZeroPad(r.r,32)+a.hexZeroPad(r.s,32).substring(2)+(r.recoveryParam?'1c':'1b')}),a.defineProperty(p,'verifyMessage',function(e,r){if(132!=(r=a.hexlify(r)).length)throw new Error('invalid signature');var t=p.hashMessage(e),n=parseInt(r.substring(130),16);if(n>=27&&(n-=27),n<0)throw new Error('invalid signature');return h.recover(t,r.substring(0,66),'0x'+r.substring(66,130),n)}),a.defineProperty(p.prototype,'encrypt',function(e,r,t){if('function'!=typeof r||t||(t=r,r={}),t&&'function'!=typeof t)throw new Error('invalid callback');if(r||(r={}),this.mnemonic){var n={};for(var i in r)n[i]=r[i];(r=n).mnemonic=this.mnemonic,r.path=this.path}return c.encrypt(this.privateKey,e,r,t)}),a.defineProperty(p,'isEncryptedWallet',function(e){return c.isValidWallet(e)||c.isCrowdsaleWallet(e)}),a.defineProperty(p,'createRandom',function(e){var r=a.randomBytes(16);e||(e={}),e.extraEntropy&&(r=a.keccak256(a.concat([r,e.extraEntropy])).substring(0,34));var t=f.entropyToMnemonic(r);return p.fromMnemonic(t,e.path)}),a.defineProperty(p,'fromEncryptedWallet',function(e,r,t){if(t&&'function'!=typeof t)throw new Error('invalid callback');return new Promise(function(n,i){if(c.isCrowdsaleWallet(e))try{var o=c.decryptCrowdsale(e,r);n(new p(o))}catch(e){i(e)}else c.isValidWallet(e)?c.decrypt(e,r,t).then(function(e){var r=new p(e);return e.mnemonic&&e.path&&(a.defineProperty(r,'mnemonic',e.mnemonic),a.defineProperty(r,'path',e.path)),n(r),null},function(e){i(e)}).catch(function(e){i(e)}):i('invalid wallet JSON')})}),a.defineProperty(p,'fromMnemonic',function(e,r){r||(r="m/44'/60'/0'/0/0");var t=new p(f.fromMnemonic(e).derivePath(r).privateKey);return a.defineProperty(t,'mnemonic',e),a.defineProperty(t,'path',r),t}),a.defineProperty(p,'fromBrainWallet',function(e,r,t){if(t&&'function'!=typeof t)throw new Error('invalid callback');return e='string'==typeof e?a.toUtf8Bytes(e,'NFKC'):a.arrayify(e,'password'),r='string'==typeof r?a.toUtf8Bytes(r,'NFKC'):a.arrayify(r,'password'),new Promise(function(n,i){o(r,e,262144,8,1,32,function(e,r,o){if(e)i(e);else if(o)n(new p(a.hexlify(o)));else if(t)return t(r)})})}),t.exports=p},729); -__d(function(r,n,e,t){"use strict";!(function(r){var n=2147483647;function o(r){var n=[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],e=1779033703,t=3144134277,o=1013904242,f=2773480762,a=1359893119,i=2600822924,u=528734635,s=1541459225,c=new Array(64);function h(r){for(var h=0,l=r.length;l>=64;){var p,w,v,g,y,d=e,b=t,m=o,A=f,E=a,k=i,I=u,U=s;for(w=0;w<16;w++)v=h+4*w,c[w]=(255&r[v])<<24|(255&r[v+1])<<16|(255&r[v+2])<<8|255&r[v+3];for(w=16;w<64;w++)g=((p=c[w-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,y=((p=c[w-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,c[w]=(g+c[w-7]|0)+(y+c[w-16]|0)|0;for(w=0;w<64;w++)g=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&k^~E&I)|0)+(U+(n[w]+c[w]|0)|0)|0,y=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&b^d&m^b&m)|0,U=I,I=k,k=E,E=A+g|0,A=m,m=b,b=d,d=g+y|0;e=e+d|0,t=t+b|0,o=o+m|0,f=f+A|0,a=a+E|0,i=i+k|0,u=u+I|0,s=s+U|0,h+=64,l-=64}}h(r);var l,p=r.length%64,w=r.length/536870912|0,v=r.length<<3,g=p<56?56:120,y=r.slice(r.length-p,r.length);for(y.push(128),l=p+1;l>>24&255),y.push(w>>>16&255),y.push(w>>>8&255),y.push(w>>>0&255),y.push(v>>>24&255),y.push(v>>>16&255),y.push(v>>>8&255),y.push(v>>>0&255),h(y),[e>>>24&255,e>>>16&255,e>>>8&255,e>>>0&255,t>>>24&255,t>>>16&255,t>>>8&255,t>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255]}function f(r,n,e){var t;r=r.length<=64?r:o(r);var f=64+n.length+4,a=new Array(f),i=new Array(64),u=[];for(t=0;t<64;t++)a[t]=54;for(t=0;t=f-4;r--){if(a[r]++,a[r]<=255)return;a[r]=0}}for(;e>=32;)s(),u=u.concat(o(i.concat(o(a)))),e-=32;return e>0&&(s(),u=u.concat(o(i.concat(o(a))).slice(0,e))),u}function a(r,n,e,t,o){var f;for(c(r,16*(2*e-1),o,0,16),f=0;f<2*e;f++)s(r,16*f,o,16),u(o,t),c(o,0,r,n+16*f,16);for(f=0;f>>32-n}function u(r,n){c(r,0,n,0,16);for(var e=8;e>0;e-=2)n[4]^=i(n[0]+n[12],7),n[8]^=i(n[4]+n[0],9),n[12]^=i(n[8]+n[4],13),n[0]^=i(n[12]+n[8],18),n[9]^=i(n[5]+n[1],7),n[13]^=i(n[9]+n[5],9),n[1]^=i(n[13]+n[9],13),n[5]^=i(n[1]+n[13],18),n[14]^=i(n[10]+n[6],7),n[2]^=i(n[14]+n[10],9),n[6]^=i(n[2]+n[14],13),n[10]^=i(n[6]+n[2],18),n[3]^=i(n[15]+n[11],7),n[7]^=i(n[3]+n[15],9),n[11]^=i(n[7]+n[3],13),n[15]^=i(n[11]+n[7],18),n[1]^=i(n[0]+n[3],7),n[2]^=i(n[1]+n[0],9),n[3]^=i(n[2]+n[1],13),n[0]^=i(n[3]+n[2],18),n[6]^=i(n[5]+n[4],7),n[7]^=i(n[6]+n[5],9),n[4]^=i(n[7]+n[6],13),n[5]^=i(n[4]+n[7],18),n[11]^=i(n[10]+n[9],7),n[8]^=i(n[11]+n[10],9),n[9]^=i(n[8]+n[11],13),n[10]^=i(n[9]+n[8],18),n[12]^=i(n[15]+n[14],7),n[13]^=i(n[12]+n[15],9),n[14]^=i(n[13]+n[12],13),n[15]^=i(n[14]+n[13],18);for(e=0;e<16;++e)r[e]+=n[e]}function s(r,n,e,t){for(var o=0;o=256)return!1}return!0}function l(r,n){var e=parseInt(r);if(r!=e)throw new Error('invalid '+n);return e}function p(r,e,t,o,i,u,p){if(!p)throw new Error('missing callback');if(t=l(t,'N'),o=l(o,'r'),i=l(i,'p'),u=l(u,'dkLen'),0===t||0!=(t&t-1))throw new Error('N must be power of 2');if(t>n/128/o)throw new Error('N too large');if(o>n/128/i)throw new Error('r too large');if(!h(r))throw new Error('password must be an array or buffer');if(!h(e))throw new Error('salt must be an array or buffer');for(var w=f(r,e,128*i*o),v=new Uint32Array(32*i*o),g=0;gj&&(h=j);for(var e=0;ej&&(h=j),e=0;e>0&255),w.push(v[e]>>8&255),w.push(v[e]>>16&255),w.push(v[e]>>24&255);var y=f(r,w,u);return p(null,1,y)}q(n)})()}void 0!==t?e.exports=p:'function'==typeof define&&define.amd?define(p):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=p)})(this)},730); -__d(function(e,r,t,i){var n,o,a,h=new(r(448).ec)('secp256k1'),f=r(732).replace(/([A-Z])/g,' $1').toLowerCase().substring(1).split(' '),s=(n=r(699),o=r(724),a=r(733),{defineProperty:r(700).defineProperty,arrayify:n.arrayify,bigNumberify:r(703).bigNumberify,hexlify:n.hexlify,toUtf8Bytes:r(702).toUtf8Bytes,sha256:o.sha256,createSha512Hmac:a.createSha512Hmac,pbkdf2:r(734)}),y=s.toUtf8Bytes('Bitcoin seed');function l(e){return(1<127)throw new Error('passwords with non-ASCII characters not supported in this environment')}else r='';e=s.toUtf8Bytes(e,'NFKD');var n=s.toUtf8Bytes('mnemonic'+r,'NFKD');return s.hexlify(s.pbkdf2(e,n,2048,64,s.createSha512Hmac))}function p(e){var r=e.toLowerCase().split(' ');if(r.length%3!=0)throw new Error('invalid mnemonic');for(var t=s.arrayify(new Uint8Array(Math.ceil(11*r.length/8))),i=0,n=0;n>3]|=1<<7-i%8),i++}var h=32*r.length/3,y=l(r.length/3),c=s.arrayify(s.sha256(t.slice(0,h/8)))[0];if((c&=y)!==(t[t.length-1]&y))throw new Error('invalid checksum');return s.hexlify(t.slice(0,h/8))}s.defineProperty(c.prototype,'_derive',function(e){if(!this.privateKey){if(e>=2147483648)throw new Error('cannot derive child of neutered node');throw new Error('not implemented')}var r=new Uint8Array(37);2147483648&e?r.set(s.arrayify(this.privateKey),1):r.set(this._keyPair.getPublic().encode(null,!0));for(var t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;var i=s.arrayify(s.createSha512Hmac(this.chainCode).update(r).digest()),n=s.bigNumberify(i.slice(0,32)),o=(i.slice(32),n.add('0x'+this._keyPair.getPrivate('hex')).mod('0x'+h.curve.n.toString(16)));return new c(h.keyFromPrivate(s.arrayify(o)),i.slice(32),e,this.depth+1)}),s.defineProperty(c.prototype,'derivePath',function(e){var r=e.split('/');if(0===r.length||'m'===r[0]&&0!==this.depth)throw new Error('invalid path');'m'===r[0]&&r.shift();for(var t=this,i=0;i=2147483648)throw new Error('invalid path index - '+n);t=t._derive(2147483648+o)}else{if(!n.match(/^[0-9]+$/))throw new Error('invlaid path component - '+n);var o;if((o=parseInt(n))>=2147483648)throw new Error('invalid path index - '+n);t=t._derive(o)}}return t}),s.defineProperty(c,'fromMnemonic',function(e){return p(e),c.fromSeed(d(e))}),s.defineProperty(c,'fromSeed',function(e){if((e=s.arrayify(e)).length<16||e.length>64)throw new Error('invalid seed');var r=s.arrayify(s.createSha512Hmac(y).update(e).digest());return new c(h.keyFromPrivate(r.slice(0,32)),r.slice(32),0,0,0)}),t.exports={fromMnemonic:c.fromMnemonic,fromSeed:c.fromSeed,mnemonicToEntropy:p,entropyToMnemonic:function(e){if((e=s.arrayify(e)).length%4!=0||e.length<16||e.length>32)throw new Error('invalid entropy');for(var r=[0],t=11,i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],t-=8):(r[r.length-1]<<=t,r[r.length-1]|=e[i]>>8-t,r.push(e[i]&(1<<8-t)-1),t+=3);var n=s.arrayify(s.sha256(e))[0],o=e.length/4;for(n&=l(o),r[r.length-1]<<=o,r[r.length-1]|=n>>8-o,i=0;i>24&255,v[t.length+1]=y>>16&255,v[t.length+2]=y>>8&255,v[t.length+3]=255&y;var o=i(r).update(v).digest();s||(s=o.length,l=new Uint8Array(s),g=a-((f=Math.ceil(a/s))-1)*s),l.set(o);for(var u=1;u255)return!1;return!0}function s(t,r){if(t.buffer&&ArrayBuffer.isView(t)&&'Uint8Array'===t.name)return r&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!n(t))throw new Error('Array contains invalid value: '+t);return new Uint8Array(t)}if(e(t.length)&&n(t))return new Uint8Array(t);throw new Error('unsupported array-like object')}function o(t){return new Uint8Array(t)}function h(t,e,r,i,n){null==i&&null==n||(t=t.slice?t.slice(i,n):Array.prototype.slice.call(t,i,n)),e.set(t,r)}var a=(function(){return{toBytes:function(t){var e=[],r=0;for(t=encodeURI(t);r191&&i<224?(e.push(String.fromCharCode((31&i)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&i)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join('')}}})(),f=(function(){var t='0123456789abcdef';return{toBytes:function(t){for(var e=[],r=0;r>4]+t[15&n])}return r.join('')}}})(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],y=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],d=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],_=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],z=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(t){for(var e=[],r=0;r>2,this._Ke[r][e%4]=s[e],this._Kd[t-r][e%4]=s[e];for(var o,h=0,a=n;a>16&255]<<24^l[o>>8&255]<<16^l[255&o]<<8^l[o>>24&255]^u[h]<<24,h+=1,8!=n)for(e=1;e>8&255]<<8^l[o>>16&255]<<16^l[o>>24&255]<<24;for(e=n/2+1;e>2,p=a%4,this._Ke[f][p]=s[e],this._Kd[t-f][p]=s[e++],a++}for(var f=1;f>24&255]^C[o>>16&255]^z[o>>8&255]^S[255&o]},K.prototype.encrypt=function(t){if(16!=t.length)throw new Error('invalid plaintext size (must be 16 bytes)');for(var e=this._Ke.length-1,r=[0,0,0,0],i=A(t),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^g[i[(n+1)%4]>>16&255]^d[i[(n+2)%4]>>8&255]^_[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}var h,a=o(16);for(n=0;n<4;n++)h=this._Ke[e][n],a[4*n]=255&(l[i[n]>>24&255]^h>>24),a[4*n+1]=255&(l[i[(n+1)%4]>>16&255]^h>>16),a[4*n+2]=255&(l[i[(n+2)%4]>>8&255]^h>>8),a[4*n+3]=255&(l[255&i[(n+3)%4]]^h);return a},K.prototype.decrypt=function(t){if(16!=t.length)throw new Error('invalid ciphertext size (must be 16 bytes)');for(var e=this._Kd.length-1,r=[0,0,0,0],i=A(t),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^w[i[(n+3)%4]>>16&255]^m[i[(n+2)%4]>>8&255]^b[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}var h,a=o(16);for(n=0;n<4;n++)h=this._Kd[e][n],a[4*n]=255&(p[i[n]>>24&255]^h>>24),a[4*n+1]=255&(p[i[(n+3)%4]>>16&255]^h>>16),a[4*n+2]=255&(p[i[(n+2)%4]>>8&255]^h>>8),a[4*n+3]=255&(p[255&i[(n+1)%4]]^h);return a};var k=function t(e){if(!(this instanceof t))throw Error('AES must be instanitated with `new`');this.description="Electronic Code Block",this.name="ecb",this._aes=new K(e)};k.prototype.encrypt=function(t){if((t=s(t)).length%16!=0)throw new Error('invalid plaintext size (must be multiple of 16 bytes)');for(var e=o(t.length),r=o(16),i=0;i=0;--e)this._counter[e]=t%256,t>>=8},R.prototype.setBytes=function(t){if(16!=(t=s(t,!0)).length)throw new Error('invalid counter bytes size (must be 16 bytes)');this._counter=t},R.prototype.increment=function(){for(var t=15;t>=0;t--){if(255!==this._counter[t]){this._counter[t]++;break}this._counter[t]=0}};var B=function t(e,r){if(!(this instanceof t))throw Error('AES must be instanitated with `new`');this.description="Counter",this.name="ctr",r instanceof R||(r=new R(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new K(e)};B.prototype.encrypt=function(t){for(var e=s(t,!0),r=0;r16)throw new Error('PKCS#7 padding byte out of range');for(var r=t.length-e,i=0;i0&&void 0!==arguments[0]?arguments[0]:1e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',i=arguments[2];babelHelpers.classCallCheck(this,t);var s=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,'close',i));return s.wasClean=!0,s.code=e,s.reason=n,s}return babelHelpers.inherits(t,e),t})(s),c=function(){if('undefined'!=typeof WebSocket)return WebSocket},a={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,debug:!1},u=(function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};babelHelpers.classCallCheck(this,e),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType='blob',this.eventToHandler=new Map([['open',this._handleOpen.bind(this)],['close',this._handleClose.bind(this)],['error',this._handleError.bind(this)],['message',this._handleMessage.bind(this)]]),this.onclose=void 0,this.onerror=void 0,this.onmessage=void 0,this.onopen=void 0,this._url=t,this._protocols=n,this._options=i,this._connect()}return babelHelpers.createClass(e,[{key:"close",value:function(e,t){this._shouldReconnect=!1,this._ws&&this._ws.readyState!==this.CLOSED&&this._ws.close(e,t)}},{key:"reconnect",value:function(e,t){this._shouldReconnect=!0,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED||this._connect(),this._disconnect(e,t),this._connect()}},{key:"send",value:function(e){this._ws&&this._ws.send(e)}},{key:"addEventListener",value:function(e,t){this._listeners[e]&&this._listeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(e){return e!==t}))}},{key:"_debug",value:function(){if(this._options.debug){for(var e,t=arguments.length,n=Array(t),i=0;i'].concat(n))}}},{key:"_getNextDelay",value:function(){var e=0;if(this._retryCount>0){var t=this._options,n=t.reconnectionDelayGrowFactor,i=void 0===n?a.reconnectionDelayGrowFactor:n,s=t.minReconnectionDelay,o=void 0===s?a.minReconnectionDelay:s,r=t.maxReconnectionDelay,c=void 0===r?a.maxReconnectionDelay:r;(e=o+Math.pow(this._retryCount-1,i))>c&&(e=c)}return this._debug('next delay',e),e}},{key:"_wait",value:function(){var e=this;return new Promise(function(t){setTimeout(t,e._getNextDelay())})}},{key:"_getNextUrl",value:function(e){if('string'==typeof e)return Promise.resolve(e);if('function'==typeof e){var t=e();if('string'==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error('Invalid URL')}},{key:"_connect",value:function(){var e=this;if(!this._connectLock){this._connectLock=!0;var t=this._options,n=t.maxRetries,i=void 0===n?a.maxRetries:n,s=t.connectionTimeout,o=void 0===s?a.connectionTimeout:s,r=t.WebSocket,u=void 0===r?c():r;if(this._retryCount>=i)this._debug('max retries reached',this._retryCount,'>=',i);else{if(this._retryCount++,this._debug('connect',this._retryCount),this._removeListeners(),'function'!=typeof(h=u)||2!==h.CLOSING)throw Error('No valid WebSocket class provided');var h;this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(t){e._debug('connect',{url:t,protocols:e._protocols}),e._ws=new u(t,e._protocols),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},o)})}}}},{key:"_handleTimeout",value:function(){this._debug('timeout event'),this._handleError(new o(Error('TIMEOUT'),this))}},{key:"_disconnect",value:function(e,t){if(clearTimeout(this._connectTimeout),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new r(e,t,this))}catch(e){}}}},{key:"_acceptOpen",value:function(){this._retryCount=0}},{key:"_handleOpen",value:function(e){var t=this;this._debug('open event');var n=this._options.minUptime,i=void 0===n?a.minUptime:n;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(function(){return t._acceptOpen()},i),this._debug('assign binary type'),this._ws.binaryType=this._binaryType,this.onopen&&this.onopen(e),this._listeners.open.forEach(function(t){return t(e)})}},{key:"_handleMessage",value:function(e){this._debug('message event'),this.onmessage&&this.onmessage(e),this._listeners.message.forEach(function(t){return t(e)})}},{key:"_handleError",value:function(e){this._debug('error event',e.message),this._disconnect(void 0,'TIMEOUT'===e.message?'timeout':void 0),this.onerror&&this.onerror(e),this._debug('exec error listeners'),this._listeners.error.forEach(function(t){return t(e)}),this._connect()}},{key:"_handleClose",value:function(e){this._debug('close event'),this.onclose&&this.onclose(e),this._listeners.close.forEach(function(t){return t(e)})}},{key:"_removeListeners",value:function(){if(this._ws){this._debug('removeListeners');var e=this.eventToHandler,t=Array.isArray(e),n=0;for(e=t?e:e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var s=i,o=babelHelpers.slicedToArray(s,2),r=o[0],c=o[1];this._ws.removeEventListener(r,c)}}}},{key:"_addListeners",value:function(){this._debug('addListeners');var e=this.eventToHandler,t=Array.isArray(e),n=0;for(e=t?e:e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var s=i,o=babelHelpers.slicedToArray(s,2),r=o[0],c=o[1];this._ws.addEventListener(r,c)}}},{key:"CONNECTING",get:function(){return e.CONNECTING}},{key:"OPEN",get:function(){return e.OPEN}},{key:"CLOSING",get:function(){return e.CLOSING}},{key:"CLOSED",get:function(){return e.CLOSED}},{key:"binaryType",get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}},{key:"retryCount",get:function(){return Math.max(this._retryCount,0)}},{key:"bufferedAmount",get:function(){return this._ws?this._ws.bufferedAmount:0}},{key:"extensions",get:function(){return this._ws?this._ws.extensions:''}},{key:"protocol",get:function(){return this._ws?this._ws.protocol:''}},{key:"readyState",get:function(){return this._ws?this._ws.readyState:e.CONNECTING}},{key:"url",get:function(){return this._ws?this._ws.url:''}}],[{key:"CONNECTING",get:function(){return 0}},{key:"OPEN",get:function(){return 1}},{key:"CLOSING",get:function(){return 2}},{key:"CLOSED",get:function(){return 3}}]),e})();n.exports=u},744); -__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});l.GeneralError=(function(e){function r(){var e,t,l,s;babelHelpers.classCallCheck(this,r);for(var o=arguments.length,a=Array(o),n=0;n=0)){i.next=8;break}throw new u.NationAlreadySubmitted;case 8:return i.prev=8,r=void 0,n.write(function(){r=n.create('Nation',(0,c.convertDraftToDatabase)(t,e,a.currentAccountId),!0)}),i.abrupt("return",r);case 14:throw i.prev=14,i.t0=i.catch(8),new l.DatabaseWriteFailed;case 17:case"end":return i.stop()}},null,this,[[8,14]])}},{key:"saveDraft",value:function(e){var t,n,r,a=this;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.prev=3,n=void 0,i.next=7,regeneratorRuntime.awrap(this.newNationId());case 7:return r=i.sent,t.write(function(){n=t.create('Nation',(0,c.convertDraftToDatabase)(e,r,a.currentAccountId))}),i.abrupt("return",n);case 12:throw i.prev=12,i.t0=i.catch(3),new l.DatabaseWriteFailed(i.t0);case 15:case"end":return i.stop()}},null,this,[[3,12]])}},{key:"submitDraft",value:function(e){var t,n,r,a,i;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=o.sent,o.next=5,regeneratorRuntime.awrap(this.nationById(e));case 5:if(!((n=o.sent).idInSmartContract>=0)){o.next=8;break}throw new u.NationAlreadySubmitted;case 8:if(!1!==this.canMutateNationState(n)){o.next=10;break}throw new u.StateMutateNotPossible;case 10:return r=(0,c.convertNationToBlockchain)(n),o.next=13,regeneratorRuntime.awrap(this.ethereumService.nations.createNation(JSON.stringify(r)));case 13:return a=o.sent,o.next=16,regeneratorRuntime.awrap((0,h.jobFactory)(a.hash,d.TX_JOB_TYPE.NATION_CREATE,this.currentAccountId));case 16:return i=o.sent,o.prev=17,t.write(function(){n.tx=i}),o.abrupt("return",n);case 22:throw o.prev=22,o.t0=o.catch(17),new l.DatabaseWriteFailed(o.t0);case 25:case"end":return o.stop()}},null,this,[[17,22]])}},{key:"saveAndSubmit",value:function(e){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(this.saveDraft(e));case 2:return t=n.sent,n.abrupt("return",this.submitDraft(t.id));case 4:case"end":return n.stop()}},null,this)}},{key:"deleteDraft",value:function(e){var t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=r.sent,r.next=5,regeneratorRuntime.awrap(this.nationById(e));case 5:if(!((n=r.sent).idInSmartContract>=0)){r.next=8;break}throw new u.NationAlreadySubmitted;case 8:r.prev=8,t.write(function(){t.delete(n)}),r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(8),new l.DatabaseWriteFailed(r.t0);case 15:case"end":return r.stop()}},null,this,[[8,12]])}},{key:"joinNation",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.next=5,regeneratorRuntime.awrap(this.nationById(e.id));case 5:if(n=i.sent,!1!==this.canMutateNationState(n)){i.next=8;break}throw new u.StateMutateNotPossible;case 8:return i.next=10,regeneratorRuntime.awrap(this.ethereumService.nations.joinNation(n.idInSmartContract));case 10:return r=i.sent,i.next=13,regeneratorRuntime.awrap((0,h.jobFactory)(r.hash,d.TX_JOB_TYPE.NATION_JOIN,this.currentAccountId));case 13:a=i.sent,i.prev=14,t.write(function(){n.tx=a}),i.next=21;break;case 18:throw i.prev=18,i.t0=i.catch(14),new l.DatabaseWriteFailed;case 21:case"end":return i.stop()}},null,this,[[14,18]])}},{key:"leaveNation",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.next=5,regeneratorRuntime.awrap(this.nationById(e.id));case 5:if(n=i.sent,!1!==this.canMutateNationState(n)){i.next=8;break}throw new u.StateMutateNotPossible;case 8:return i.next=10,regeneratorRuntime.awrap(this.ethereumService.nations.leaveNation(n.idInSmartContract));case 10:return r=i.sent,i.next=13,regeneratorRuntime.awrap((0,h.jobFactory)(r.hash,d.TX_JOB_TYPE.NATION_LEAVE,this.currentAccountId));case 13:a=i.sent,i.prev=14,t.write(function(){n.tx=a}),i.next=21;break;case 18:throw i.prev=18,i.t0=i.catch(14),new l.DatabaseWriteFailed;case 21:case"end":return i.stop()}},null,this,[[14,18]])}},{key:"requestNationLogsHistory",value:function(){var e,t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e='dev'===this.ethereumService.network?d.NATIONS_DEV_ENDPOINT:d.NATIONS_PROD_ENDPOINT,n.next=3,regeneratorRuntime.awrap(fetch(e,{headers:{'content-type':'application/json'},method:'GET'}));case 3:if(!0===(t=n.sent).ok){n.next=6;break}throw new Error('[TEST] Nation logs fetch failed');case 6:return n.abrupt("return",Promise.resolve(t.json()));case 7:case"end":return n.stop()}},null,this)}},{key:"registerNationIndexing",value:function(){var e,t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return t=function(){console.log("[TEST] Coming log "+JSON.stringify(this)),e.updateNationsFromLogs([{idInSmartContract:this.args.nationId.toNumber(),txHash:this.transactionHash}]).catch(function(e){console.log("[PANGEA] Nation update fails with error "+e.message)})},e=this,this.ethereumService.nations.onnationcreated=t,this.ethereumService.nations.oncitizenjoined=t,this.ethereumService.nations.oncitizenleft=t,r.next=7,regeneratorRuntime.awrap(this.requestNationLogsHistory());case 7:return r.t0=function(e){return{idInSmartContract:e.id,txHash:e.tx_hash}},n=r.sent.map(r.t0),console.log("[TEST] Nation logs "+JSON.stringify(n)),r.abrupt("return",this.updateNationsFromLogs(n));case 11:case"end":return r.stop()}},null,this)}},{key:"updateNationsFromLogs",value:function(e){var t,n,r,a,i,o=this;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=s.sent,s.next=5,regeneratorRuntime.awrap(this.ethereumService.nations.getJoinedNations({from:this.ethereumService.wallet.address}));case 5:return n=s.sent,r=!0===Array.isArray(n)?n.map(function(e){return e.toNumber()}):[],a=e.map(function(e){var n,a,i,s,c,u,l;return regeneratorRuntime.async(function(h){for(;;)switch(h.prev=h.next){case 0:return console.log("[TEST] Start processing log for id "+e.idInSmartContract),n=e.txHash,a=e.idInSmartContract,h.next=4,regeneratorRuntime.awrap(o.ethereumService.nations.getNumCitizens(a));case 4:if(i=h.sent.toNumber(),s=r.includes(a),null==(c=t.objects('Nation').filtered("tx.txHash = '"+(n||'')+"' AND tx.type = '"+d.TX_JOB_TYPE.NATION_CREATE+"'")[0])){h.next=10;break}return console.log('[TEST] Updating draft'),h.abrupt("return",function(){c.idInSmartContract=a,c.joined=s,c.citizens=i});case 10:if(null==(u=t.objects('Nation').filtered("accountId = '"+o.currentAccountId+"' && idInSmartContract = "+a)[0])){h.next=14;break}return console.log('[TEST] Updating nation'),h.abrupt("return",function(){u.joined=s,u.citizens=i});case 14:return h.t0=JSON,h.next=17,regeneratorRuntime.awrap(o.ethereumService.nations.getNationMetaData(a));case 17:return h.t1=h.sent,l=h.t0.parse.call(h.t0,h.t1),console.log("[TEST] Creating nation "+a),h.abrupt("return",function(){t.create('Nation',{id:o.newNationId(),accountId:o.currentAccountId,idInSmartContract:a,nationName:l.nationName,nationDescription:l.nationDescription,created:!0,exists:l.exists,virtualNation:l.virtualNation,nationCode:l.nationCode,lawEnforcementMechanism:l.lawEnforcementMechanism,profit:l.profit,nonCitizenUse:l.nonCitizenUse,diplomaticRecognition:l.diplomaticRecognition,decisionMakingProcess:l.decisionMakingProcess,governanceService:l.governanceService,joined:s,citizens:i})});case 21:case"end":return h.stop()}},null,o)}),s.next=10,regeneratorRuntime.awrap(Promise.all(a));case 10:i=s.sent,console.log('[TEST] Created writes'),t.write(function(){i.forEach(function(e){return e()})}),console.log('[TEST] Done');case 14:case"end":return s.stop()}},null,this)}},{key:"newNationId",value:function(){return(0,o.default)()}},{key:"nationById",value:function(e){var t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:if(t=r.sent,0!==(n=t.objects('Nation').filtered("id = '"+e+"'")).length){r.next=6;break}throw new Error('system_error.nation.does_not_exist');case 6:return r.abrupt("return",n[0]);case 7:case"end":return r.stop()}},null,this)}},{key:"cleanUp",value:function(){this.ethereumService.nations.onnationcreated=null}}]),e})();r.default=m},747); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});l.NationAlreadySubmitted=(function(e){function t(){var e,r,l,o;babelHelpers.classCallCheck(this,t);for(var s=arguments.length,a=Array(s),n=0;n>>3){case 1:r.requestID=e.string();break;case 8:r.showModal=l.api_proto.Request.RenderModal.decode(e,e.uint32());break;case 9:r.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestID&&e.hasOwnProperty("requestID")&&!u.isString(e.requestID)?"requestID: string expected":null!=e.showModal&&e.hasOwnProperty("showModal")&&(t=l.api_proto.Request.RenderModal.verify(e.showModal))?"showModal."+t:null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(t=l.api_proto.Request.SendEthereumTransaction.verify(e.sendEthereumTransaction))?"sendEthereumTransaction."+t:null;var t},e.fromObject=function(e){if(e instanceof l.api_proto.Request)return e;var t=new l.api_proto.Request;if(null!=e.requestID&&(t.requestID=String(e.requestID)),null!=e.showModal){if("object"!=typeof e.showModal)throw TypeError(".api_proto.Request.showModal: object expected");t.showModal=l.api_proto.Request.RenderModal.fromObject(e.showModal)}if(null!=e.sendEthereumTransaction){if("object"!=typeof e.sendEthereumTransaction)throw TypeError(".api_proto.Request.sendEthereumTransaction: object expected");t.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.fromObject(e.sendEthereumTransaction)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.requestID="",n.showModal=null,n.sendEthereumTransaction=null),null!=e.requestID&&e.hasOwnProperty("requestID")&&(n.requestID=e.requestID),null!=e.showModal&&e.hasOwnProperty("showModal")&&(n.showModal=l.api_proto.Request.RenderModal.toObject(e.showModal,t)),null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(n.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.toObject(e.sendEthereumTransaction,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.RenderModal=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.dAppPublicKey=e.bytes();break;case 2:r.uiID=e.string();break;case 3:r.layout=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.dAppPublicKey&&e.hasOwnProperty("dAppPublicKey")&&!(e.dAppPublicKey&&"number"==typeof e.dAppPublicKey.length||u.isString(e.dAppPublicKey))?"dAppPublicKey: buffer expected":null!=e.uiID&&e.hasOwnProperty("uiID")&&!u.isString(e.uiID)?"uiID: string expected":null!=e.layout&&e.hasOwnProperty("layout")&&!u.isString(e.layout)?"layout: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Request.RenderModal)return e;var t=new l.api_proto.Request.RenderModal;return null!=e.dAppPublicKey&&("string"==typeof e.dAppPublicKey?u.base64.decode(e.dAppPublicKey,t.dAppPublicKey=u.newBuffer(u.base64.length(e.dAppPublicKey)),0):e.dAppPublicKey.length&&(t.dAppPublicKey=e.dAppPublicKey)),null!=e.uiID&&(t.uiID=String(e.uiID)),null!=e.layout&&(t.layout=String(e.layout)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.dAppPublicKey="":(n.dAppPublicKey=[],t.bytes!==Array&&(n.dAppPublicKey=u.newBuffer(n.dAppPublicKey))),n.uiID="",n.layout=""),null!=e.dAppPublicKey&&e.hasOwnProperty("dAppPublicKey")&&(n.dAppPublicKey=t.bytes===String?u.base64.encode(e.dAppPublicKey,0,e.dAppPublicKey.length):t.bytes===Array?Array.prototype.slice.call(e.dAppPublicKey):e.dAppPublicKey),null!=e.uiID&&e.hasOwnProperty("uiID")&&(n.uiID=e.uiID),null!=e.layout&&e.hasOwnProperty("layout")&&(n.layout=e.layout),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e.SendEthereumTransaction=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.value=e.string();break;case 2:r.to=e.string();break;case 3:r.data=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!u.isString(e.value)?"value: string expected":null!=e.to&&e.hasOwnProperty("to")&&!u.isString(e.to)?"to: string expected":null!=e.data&&e.hasOwnProperty("data")&&!u.isString(e.data)?"data: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Request.SendEthereumTransaction)return e;var t=new l.api_proto.Request.SendEthereumTransaction;return null!=e.value&&(t.value=String(e.value)),null!=e.to&&(t.to=String(e.to)),null!=e.data&&(t.data=String(e.data)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value="",n.to="",n.data=""),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.to&&e.hasOwnProperty("to")&&(n.to=e.to),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e})(),o.Response=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 6:r.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")){var t=l.api_proto.Response.SendEthereumTransaction.verify(e.sendEthereumTransaction);if(t)return"sendEthereumTransaction."+t}return null},e.fromObject=function(e){if(e instanceof l.api_proto.Response)return e;var t=new l.api_proto.Response;if(null!=e.sendEthereumTransaction){if("object"!=typeof e.sendEthereumTransaction)throw TypeError(".api_proto.Response.sendEthereumTransaction: object expected");t.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.fromObject(e.sendEthereumTransaction)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.sendEthereumTransaction=null),null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(n.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.toObject(e.sendEthereumTransaction,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.SendEthereumTransaction=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.nonce=e.uint32();break;case 2:r.gasPrice=e.string();break;case 3:r.gasLimit=e.string();break;case 4:r.to=e.string();break;case 5:r.value=e.string();break;case 6:r.data=e.string();break;case 7:r.v=e.string();break;case 8:r.r=e.string();break;case 9:r.s=e.string();break;case 10:r.chainID=e.uint32();break;case 11:r.from=e.string();break;case 12:r.hash=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.nonce&&e.hasOwnProperty("nonce")&&!u.isInteger(e.nonce)?"nonce: integer expected":null!=e.gasPrice&&e.hasOwnProperty("gasPrice")&&!u.isString(e.gasPrice)?"gasPrice: string expected":null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&!u.isString(e.gasLimit)?"gasLimit: string expected":null!=e.to&&e.hasOwnProperty("to")&&!u.isString(e.to)?"to: string expected":null!=e.value&&e.hasOwnProperty("value")&&!u.isString(e.value)?"value: string expected":null!=e.data&&e.hasOwnProperty("data")&&!u.isString(e.data)?"data: string expected":null!=e.v&&e.hasOwnProperty("v")&&!u.isString(e.v)?"v: string expected":null!=e.r&&e.hasOwnProperty("r")&&!u.isString(e.r)?"r: string expected":null!=e.s&&e.hasOwnProperty("s")&&!u.isString(e.s)?"s: string expected":null!=e.chainID&&e.hasOwnProperty("chainID")&&!u.isInteger(e.chainID)?"chainID: integer expected":null!=e.from&&e.hasOwnProperty("from")&&!u.isString(e.from)?"from: string expected":null!=e.hash&&e.hasOwnProperty("hash")&&!u.isString(e.hash)?"hash: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Response.SendEthereumTransaction)return e;var t=new l.api_proto.Response.SendEthereumTransaction;return null!=e.nonce&&(t.nonce=e.nonce>>>0),null!=e.gasPrice&&(t.gasPrice=String(e.gasPrice)),null!=e.gasLimit&&(t.gasLimit=String(e.gasLimit)),null!=e.to&&(t.to=String(e.to)),null!=e.value&&(t.value=String(e.value)),null!=e.data&&(t.data=String(e.data)),null!=e.v&&(t.v=String(e.v)),null!=e.r&&(t.r=String(e.r)),null!=e.s&&(t.s=String(e.s)),null!=e.chainID&&(t.chainID=e.chainID>>>0),null!=e.from&&(t.from=String(e.from)),null!=e.hash&&(t.hash=String(e.hash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.nonce=0,n.gasPrice="",n.gasLimit="",n.to="",n.value="",n.data="",n.v="",n.r="",n.s="",n.chainID=0,n.from="",n.hash=""),null!=e.nonce&&e.hasOwnProperty("nonce")&&(n.nonce=e.nonce),null!=e.gasPrice&&e.hasOwnProperty("gasPrice")&&(n.gasPrice=e.gasPrice),null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&(n.gasLimit=e.gasLimit),null!=e.to&&e.hasOwnProperty("to")&&(n.to=e.to),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),null!=e.v&&e.hasOwnProperty("v")&&(n.v=e.v),null!=e.r&&e.hasOwnProperty("r")&&(n.r=e.r),null!=e.s&&e.hasOwnProperty("s")&&(n.s=e.s),null!=e.chainID&&e.hasOwnProperty("chainID")&&(n.chainID=e.chainID),null!=e.from&&e.hasOwnProperty("from")&&(n.from=e.from),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=e.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e})(),o),n.exports=l},752); -__d(function(e,r,t,o){Object.defineProperty(o,"__esModule",{value:!0});o.NoWalletServiceError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error),o.NoNationsServiceError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error),o.NoTxProcessorError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error)},753); -__d(function(e,a,n,c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertFromDatabase=function(e){return{currency:'PAT'===e.symbol?'XPAT':e.symbol,ethAddress:e.address,balance:''===e.balance?null:e.balance,name:e.name}},c.convertToDatabase=function(e,a){var n='XPAT'===e.currency?'PAT':e.currency;return{name:e.name,chain:'ethereum',symbol:n,decimals:18,balance:null===e.balance?'':e.balance,address:e.ethAddress,accountId:a,compoundId:a+"|"+e.ethAddress+"|"+n}}},754); -__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(350),u=r(756),o=r(508),c=regeneratorRuntime.mark(i);function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.takeEvery)(o.CURRENT_ACCOUNT_ID_CHANGED,u.onCurrentAccountChange)]);case 2:case"end":return e.stop()}},c,this)}},755); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.onCurrentAccountChange=d;var a=t(350),c=t(690),u=babelHelpers.interopRequireDefault(c),s=t(365),i=t(580),l=babelHelpers.interopRequireDefault(i),o=t(517),f=regeneratorRuntime.mark(d);function d(){var e,t,r,n;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,a.select)();case 2:if(e=c.sent,t=e.accounts,null!=(r=(0,s.getCurrentAccount)(t))){c.next=12;break}return c.next=8,(0,a.call)([u.default.instance,'destroyServices']);case 8:return c.next=10,(0,a.put)((0,o.servicesDestroyed)());case 10:c.next=19;break;case 12:return c.next=14,(0,a.call)(l.default.getEthPrivateKey);case 14:return n=c.sent,c.next=17,(0,a.call)([u.default.instance,'initServices'],r,n);case 17:return c.next=19,(0,a.put)((0,o.servicesCreated)());case 19:case"end":return c.stop()}},f,this)}},756); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=s;var n=t(350),u=t(519),i=t(758),o=regeneratorRuntime.mark(s);function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)(u.SAVE_NATION_DRAFT,i.saveDraftSaga),(0,n.takeEvery)(u.DELETE_NATION_DRAFT,i.deleteDraftSaga),(0,n.takeEvery)(u.SUBMIT_NATION,i.submitNationSaga)]);case 2:case"end":return e.stop()}},o,this)}},757); -__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.saveDraftSaga=d,n.deleteDraftSaga=p,n.submitNationSaga=b;var r=t(350),i=t(519),c=t(518),s=t(690),u=babelHelpers.interopRequireDefault(s),o=t(753),l=t(514),f=regeneratorRuntime.mark(d),x=regeneratorRuntime.mark(p),v=regeneratorRuntime.mark(b);function d(e){var t,a,n;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.nation,a=u.default.instance.nationsService,c.prev=2,null!=a){c.next=5;break}throw new o.NoNationsServiceError;case 5:if(n=void 0,void 0!==t.id){c.next=12;break}return c.next=9,(0,r.call)([a,'saveDraft'],t);case 9:n=c.sent,c.next=15;break;case 12:return c.next=14,(0,r.call)([a,'updateDraft'],t.id,t);case 14:n=c.sent;case 15:return c.next=17,(0,r.put)((0,i.nationDraftSaveResult)(n.id));case 17:return c.next=19,(0,r.put)((0,i.startNationEditing)((0,l.convertFromDatabase)(n)));case 19:c.next=25;break;case 21:return c.prev=21,c.t0=c.catch(2),c.next=25,(0,r.put)((0,i.nationDraftSaveResult)(t.id,c.t0));case 25:if(c.prev=25,!e.callback){c.next=29;break}return c.next=29,(0,r.call)(e.callback);case 29:return c.finish(25);case 30:case"end":return c.stop()}},f,this,[[2,21,25,30]])}function p(e){var t,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.nationId,a=u.default.instance.nationsService,n.prev=2,null!=a){n.next=5;break}throw new o.NoNationsServiceError;case 5:return n.next=7,(0,r.call)([a,'deleteDraft'],t);case 7:return n.next=9,(0,r.put)((0,i.nationDraftDeleteResult)(t));case 9:n.next=15;break;case 11:return n.prev=11,n.t0=n.catch(2),n.next=15,(0,r.put)((0,i.nationDraftDeleteResult)(t,n.t0));case 15:if(n.prev=15,!e.callback){n.next=19;break}return n.next=19,(0,r.call)(e.callback);case 19:return n.finish(15);case 20:case"end":return n.stop()}},x,this,[[2,11,15,20]])}function b(e){var t,a,n,s;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e.nation,a=u.default.instance.nationsService,l.prev=2,null!=a){l.next=5;break}throw new o.NoNationsServiceError;case 5:if(n=void 0,void 0!==t.id){l.next=12;break}return l.next=9,(0,r.call)([a,'saveAndSubmit'],t);case 9:n=l.sent,l.next=22;break;case 12:return l.next=14,(0,r.select)();case 14:if(s=l.sent,!(0,c.nationIsModified)(s.modifyNation)){l.next=19;break}return l.next=19,(0,r.call)([a,'updateDraft'],t.id,t);case 19:return l.next=21,(0,r.call)([a,'submitDraft'],t.id);case 21:n=l.sent;case 22:return l.next=24,(0,r.put)((0,i.nationSubmitResult)(n.id));case 24:l.next=30;break;case 26:return l.prev=26,l.t0=l.catch(2),l.next=30,(0,r.put)((0,i.nationSubmitResult)(t.id,l.t0));case 30:if(l.prev=30,!e.callback){l.next=34;break}return l.next=34,(0,r.call)(e.callback);case 34:return l.finish(30);case 35:case"end":return l.stop()}},v,this,[[2,26,30,35]])}},758); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=c;var a=t(350),s=t(513),i=t(760),u=t(517),o=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(s.REQUEST_JOIN_NATION,i.joinNation);case 3:return e.t1=e.sent,e.next=6,(0,a.takeEvery)(s.REQUEST_LEAVE_NATION,i.leaveNation);case 6:return e.t2=e.sent,e.next=9,(0,a.takeEvery)(u.SERVICES_CREATED,i.startNationIndexingWorker);case 9:return e.t3=e.sent,e.next=12,(0,a.call)(i.startDatabaseListening);case 12:return e.t4=e.sent,e.t5=[e.t1,e.t2,e.t3,e.t4],e.next=16,(0,e.t0)(e.t5);case 16:case"end":return e.stop()}},o,this)}},759); -__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNations=void 0,r.onCurrentAccountChange=R,r.buildAccountNationsResults=k,r.startDatabaseListening=A,r.startNationIndexingWorker=E,r.joinNation=S,r.leaveNation=_;var a=n(350),i=n(336),c=(n(544),n(513)),o=n(512),s=n(514),u=n(761),l=n(690),f=babelHelpers.interopRequireDefault(l),p=n(753),d=n(542),v=n(516),x=regeneratorRuntime.mark(R),N=regeneratorRuntime.mark(A),g=regeneratorRuntime.mark(E),h=regeneratorRuntime.mark(S),m=regeneratorRuntime.mark(_),b=function(e){return void 0!==e.transKey?e:-1!==e.toString().indexOf('insufficient')?{transKey:'insufficientFunds'}:e},w=r.getNations=function(e){return e.nations};function R(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.map(function(e){return(0,s.convertFromDatabase)(e)}),t.next=3,(0,a.put)((0,c.nationsUpdated)(n));case 3:case"end":return t.stop()}},x,this)}function k(e,n){return null===n?null:e.objects('Nation').filtered("accountId == '"+n+"'")}function A(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(d.currentAccountBasedUpdate,k,R);case 2:case"end":return e.stop()}},N,this)}function E(){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,null!=(e=f.default.instance.nationsService)){n.next=4;break}throw new p.NoNationsServiceError;case 4:return n.next=6,(0,a.put)((0,c.fetchNationsStarted)());case 6:return n.next=8,(0,a.call)([e,'registerNationIndexing']);case 8:return n.next=10,(0,a.put)((0,c.doneFetchNations)());case 10:n.next=20;break;case 12:return n.prev=12,n.t0=n.catch(0),console.log("[PANGEA] Nation indexing failed with error: "+n.t0.message),n.next=17,(0,i.delay)(v.NATION_INDEX_RECOVER_PERIOD);case 17:return console.log('[PANGEA] Recover nation indexing'),n.next=20,(0,a.call)(E);case 20:case"end":return n.stop()}},g,this,[[0,12]])}function S(){var e,n,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,null!=(e=f.default.instance.nationsService)){r.next=4;break}throw new p.NoNationsServiceError;case 4:return r.next=6,(0,a.select)(w);case 6:return n=r.sent,t=(0,o.openedNation)(n),r.next=10,(0,a.call)([e,'joinNation'],t);case 10:r.next=17;break;case 12:if(r.prev=12,r.t0=r.catch(0),!0!==r.t0.isCancelled){r.next=16;break}return r.abrupt("return");case 16:(0,u.errorAlert)(b(r.t0));case 17:return r.prev=17,r.next=20,(0,a.put)((0,c.cancelLoading)());case 20:return r.finish(17);case 21:case"end":return r.stop()}},h,this,[[0,12,17,21]])}function _(){var e,n,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,null!=(e=f.default.instance.nationsService)){r.next=4;break}throw new p.NoNationsServiceError;case 4:return r.next=6,(0,a.select)(w);case 6:return n=r.sent,t=(0,o.openedNation)(n),r.next=10,(0,a.call)([e,'leaveNation'],t);case 10:r.next=17;break;case 12:if(r.prev=12,r.t0=r.catch(0),!0!==r.t0.isCancelled){r.next=16;break}return r.abrupt("return");case 16:(0,u.errorAlert)(b(r.t0));case 17:return r.prev=17,r.next=20,(0,a.put)((0,c.cancelLoading)());case 20:return r.finish(17);case 21:case"end":return r.stop()}},m,this,[[0,12,17,21]])}},760); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.errorAlert=function(e){if(!0===e.isCancelled)return;a.Alert.alert(s.default.t('alerts.error.title'),'string'==typeof e.transKey?s.default.t("error."+e.transKey):e.toString(),[{text:s.default.t('alerts.error.confirm')}],{cancelable:!1})},l.alert=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a.Alert.alert(s.default.tf("alerts."+e+".title",e+".title"),s.default.tf("alerts."+e+".subtitle",e+".subtitle"),t.map(function(t){return{text:s.default.tf("alerts."+e+"."+t.name,e+"."+t.name),style:t.style,onPress:t.onPress}}),{cancelable:r})};var a=t(17),n=t(663),s=babelHelpers.interopRequireDefault(n)},761); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=r(350),o=r(763),u=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.call)(o.registerProcessor)]);case 2:case"end":return e.stop()}},u,this)}},762); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buildTransactionsResults=N,r.createNationProcessor=h,r.joinNationProcessor=k,r.leaveNationProcessor=w,r.processTransaction=O,r.onCurrentAccountChange=R,r.registerProcessor=g;var a=t(350),o=t(366),s=babelHelpers.interopRequireDefault(o),i=t(542),u=t(690),c=babelHelpers.interopRequireDefault(u),l=t(517),f=t(516),b=t(543),p=babelHelpers.interopRequireDefault(b),T=t(764),d=t(528),x=regeneratorRuntime.mark(h),E=regeneratorRuntime.mark(k),_=regeneratorRuntime.mark(w),m=regeneratorRuntime.mark(O),S=regeneratorRuntime.mark(R),A=regeneratorRuntime.mark(g);function N(e,t){return null===t?null:e.objects('TransactionJob').filtered("accountId == '"+t+"'")}function h(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_CREATE_SUCCEED:T.NATION_CREATE_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},x,this)}function k(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED,e&&(t.nation[0].joined=!0)}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_JOIN_SUCCEED:T.NATION_JOIN_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},E,this)}function w(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED,e&&(t.nation[0].joined=!1)}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_LEAVE_SUCCEED:T.NATION_LEAVE_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},_,this)}function O(e){var t,n,r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(e.status===f.TX_JOB_STATUS.PENDING){o.next=2;break}return o.abrupt("return");case 2:if(null!==(t=(function(){switch(e.type){case f.TX_JOB_TYPE.NATION_CREATE:return h;case f.TX_JOB_TYPE.NATION_JOIN:return k;case f.TX_JOB_TYPE.NATION_LEAVE:return w;default:return null}})())){o.next=5;break}throw new Error("Couldn't find a processor for type: "+e.type);case 5:return o.next=7,(0,a.call)([c.default.instance.ethereumService,'trackTransaction'],e.txHash);case 7:return o.next=9,(0,a.call)([c.default.instance.ethereumService,'getTransactionReceipt'],e.txHash);case 9:return n=o.sent,o.next=12,(0,a.call)(t,1===n.status,e);case 12:if(null==(r=o.sent)){o.next=16;break}return o.next=16,(0,a.put)(r);case 16:case"end":return o.stop()}},m,this)}function R(e,t){var n,r,o,i,u,f,b,p,T,d,x;return regeneratorRuntime.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(null!=c.default.instance.ethereumService){E.next=4;break}return E.next=4,(0,a.take)(l.SERVICES_CREATED);case 4:if(!(null==t||s.default.isEmpty(t.deletions)&&s.default.isEmpty(t.modifications)&&s.default.isEmpty(t.insertions))){E.next=13;break}n=0;case 6:if(!(n=r.length)){E.next=17;break}return E.abrupt("break",29);case 17:u=r[i++],E.next=24;break;case 20:if(!(i=r.next()).done){E.next=23;break}return E.abrupt("break",29);case 23:u=i.value;case 24:return f=u,E.next=27,(0,a.call)(O,e[f],'added');case 27:E.next=14;break;case 29:b=t.modifications,p=Array.isArray(b),T=0,b=p?b:b["function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator"]();case 30:if(!p){E.next=36;break}if(!(T>=b.length)){E.next=33;break}return E.abrupt("break",45);case 33:d=b[T++],E.next=40;break;case 36:if(!(T=b.next()).done){E.next=39;break}return E.abrupt("break",45);case 39:d=T.value;case 40:return x=d,E.next=43,(0,a.call)(O,e[x],'modified');case 43:E.next=30;break;case 45:case"end":return E.stop()}},S,this)}function g(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(i.currentAccountBasedUpdate,N,R);case 2:case"end":return e.stop()}},A,this)}},763); -__d(function(e,n,a,A){Object.defineProperty(A,"__esModule",{value:!0});A.NATION_JOIN_SUCCEED='nation.join.succeed',A.NATION_JOIN_FAILED='nation.join.failed',A.NATION_LEAVE_SUCCEED='nation.leave.succeed',A.NATION_LEAVE_FAILED='nation.leave.failed',A.NATION_ALERT_HEADING='nation.heading',A.NATION_CREATE_SUCCEED='nation.create.succeed',A.NATION_CREATE_FAILED='nation.create.failed',A.TRANSACTION_FAILED='transaction.failed',A.TRANSACTION_SUCCEED='transaction.succeed',A.TRANSACTION_HEADING='transaction.heading'},764); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=t(350),s=t(766),E=t(538),p=t(517),u=t(769),A=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(p.SERVICES_CREATED,s.fetchDApps);case 3:return e.t1=e.sent,e.next=6,(0,a.takeEvery)(p.SERVICES_CREATED,u.subscribeToModalRender);case 6:return e.t2=e.sent,e.next=9,(0,a.takeEvery)(E.DAPPS_LIST_UPDATED,s.onDAppsListUpdated);case 9:return e.t3=e.sent,e.next=12,(0,a.takeEvery)(E.START_DAPP,s.startDAppSaga);case 12:return e.t4=e.sent,e.next=15,(0,a.takeEvery)(E.STOP_DAPP,s.stopDAppSaga);case 15:return e.t5=e.sent,e.next=18,(0,a.takeEvery)(E.OPEN_DAPP,s.openDApp);case 18:return e.t6=e.sent,e.next=21,(0,a.takeEvery)(E.PERFORM_DAPP_CALLBACK,s.performDAppCallback);case 21:return e.t7=e.sent,e.next=24,(0,a.takeEvery)(E.RENDER_DAPP_MESSAGE,s.renderDAppMessage);case 24:return e.t8=e.sent,e.t9=[e.t1,e.t2,e.t3,e.t4,e.t5,e.t6,e.t7,e.t8],e.next=28,(0,e.t0)(e.t9);case 28:case"end":return e.stop()}},A,this)}},765); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fetchDApps=b,n.onDAppsListUpdated=m,n.getDAppSaga=k,n.getDAppLaunchStateSaga=v,n.startDAppSaga=D,n.stopDAppSaga=w,n.openDApp=y,n.performDAppCallback=S,n.renderDAppMessage=R;var a=t(350),c=t(538),p=t(767),s=babelHelpers.interopRequireDefault(p),u=t(537),i=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(m),o=regeneratorRuntime.mark(k),d=regeneratorRuntime.mark(v),f=regeneratorRuntime.mark(D),x=regeneratorRuntime.mark(w),h=regeneratorRuntime.mark(y),g=regeneratorRuntime.mark(S),A=regeneratorRuntime.mark(R);function b(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(s.default.getDApps);case 2:return e=t.sent,t.next=5,(0,a.put)((0,c.dAppsListUpdated)(e));case 5:case"end":return t.stop()}},i,this)}function m(e){var t,r,n,p,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.availableDApps,i.next=3,(0,a.select)();case 3:r=i.sent,n=r.dApps,p=0;case 6:if(!(p0&&(i=babelHelpers.slicedToArray(u.children,1),u=i[0]),void 0===u.type&&(u.type='view',u.props={},u.children=[]),l.next=14,(0,a.call)(r,u);case 14:l.next=27;break;case 16:if(l.prev=16,l.t0=l.catch(5),'Error: it seems like that this app hasn\'t been started yet'!==l.t0){l.next=24;break}return l.next=21,(0,a.call)(D);case 21:return l.next=23,(0,a.call)(R,e);case 23:return l.abrupt("return");case 24:return console.log("[DAPP] Fail to render message: "+JSON.stringify(t)+" with error: "+l.t0),l.next=27,(0,a.call)(r,null);case 27:case"end":return l.stop()}},A,this,[[5,16]])}},766); -__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0});var a=n(768),s=n(585),u=babelHelpers.interopRequireWildcard(s),c=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"startDApp",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaStartDApp(e,30));case 1:case"end":return n.stop()}},null,this)}},{key:"stopDApp",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaStopDApp(e));case 1:case"end":return n.stop()}},null,this)}},{key:"openDApp",value:function(e,n){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.panthalassaOpenDApp(e,JSON.stringify({context:n})));case 1:case"end":return t.stop()}},null,this)}},{key:"getDApps",value:function(){var e,n;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.panthalassaDApps());case 3:return e=t.sent,n=JSON.parse(e),t.abrupt("return",n.map(a.convertFromPanthalassa));case 8:return t.prev=8,t.t0=t.catch(0),console.log("[PANGEA] Failed to get DApps "+t.t0.message),t.abrupt("return",[]);case 12:case"end":return t.stop()}},null,this,[[0,8]])}},{key:"connectToDAppHost",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaConnectToDAppDevHost(e));case 1:case"end":return n.stop()}},null,this)}},{key:"connectToLogger",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(u.panthalassaConnectLogger(e));case 2:return n.abrupt("return",u.panthalassaSetLogger('DEBUG'));case 3:case"end":return n.stop()}},null,this)}},{key:"performDAppCallback",value:function(e,n,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",u.panthalassaCallDAppFunction(e,n,JSON.stringify(t)));case 1:case"end":return r.stop()}},null,this)}},{key:"renderDAppMessage",value:function(e,n){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.panthalassaRenderMessage(e.dAppPublicKey,JSON.stringify({message:e,context:n})));case 1:case"end":return t.stop()}},null,this)}}]),e})();r.default=c},767); -__d(function(e,n,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertFromPanthalassa=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-us',a=t.Buffer.from(e.used_signing_key,'base64').toString('hex');return{name:e.name[n]||e.name['en-us'],publicKey:a}};var t=n(13)},768); -__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.handleRequest=f,t.createModalRenderChannel=R,t.subscribeToModalRender=m;var a=r(336),s=r(350),u=r(613),o=r(690),c=babelHelpers.interopRequireDefault(o),l=r(751),i=(babelHelpers.interopRequireDefault(l),r(538)),d=r(623),p=regeneratorRuntime.mark(f),b=regeneratorRuntime.mark(m);function f(e){var r,n,t,a;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=e.modalID,o.next=3,(0,s.select)();case 3:return n=o.sent,t=n.dApps.modals,a=null!=t[r],o.next=8,(0,s.put)((0,i.storeDAppModal)(e));case 8:!1===a&&u.Navigation.showModal(babelHelpers.extends({},(0,d.screen)('DAPP_MODAL_SCREEN'),{passProps:{modalID:r}}));case 9:case"end":return o.stop()}},p,this)}function R(e){return(0,a.eventChannel)(function(r){return e.subscribeToModalRender(function(e){r({request:e})}),e.unsubscribeFromModalRender})}function m(){var e,r,n,t;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(null!=(e=c.default.instance.upstreamService)){a.next=3;break}return a.abrupt("return");case 3:return a.next=5,(0,s.call)(R,e);case 5:r=a.sent;case 6:return a.next=9,(0,s.take)(r);case 9:return n=a.sent,t=n.request,a.next=13,(0,s.fork)(f,t);case 13:a.next=6;break;case 15:case"end":return a.stop()}},b,this)}},769); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var a=r(350),i=r(680),u=r(771),o=regeneratorRuntime.mark(s);function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)(u.START_MIGRATION,i.startMigration);case 2:return e.next=4,(0,a.takeEvery)(u.IS_MIGRATION,i.isMigration);case 4:case"end":return e.stop()}},o,this)}},770); -__d(function(t,e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startMigration=function(){return{type:I}},r.isMigration=function(){return{type:i}};var I=r.START_MIGRATION='START_MIGRATION',i=r.IS_MIGRATION='IS_MIGRATION'},771); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var a=t(350),u=t(517),s=t(773),c=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(u.SERVICES_CREATED,s.subscribeToUIAPI);case 3:return e.t1=e.sent,e.t2=[e.t1],e.next=7,(0,e.t0)(e.t2);case 7:case"end":return e.stop()}},c,this)}},772); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.handleRequest=E,n.createUIAPIChannel=x,n.subscribeToUIAPI=I;var a=r(350),s=r(336),u=r(690),c=babelHelpers.interopRequireDefault(u),i=r(751),p=(babelHelpers.interopRequireDefault(i),r(538)),o=r(766),b=r(534),l=regeneratorRuntime.mark(E),f=regeneratorRuntime.mark(I);function E(e){var r,t,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(r=e.name,t=e.payload,'string'==typeof r&&'object'==typeof t){s.next=3;break}return s.abrupt("return");case 3:s.t0=r,s.next='DAPP:PERSISTED'===s.t0?6:'MESSAGE:RECEIVED'===s.t0?12:'MESSAGE:DELIVERED'===s.t0?13:'MESSAGE:PERSISTED'===s.t0?14:17;break;case 6:return n=t.dapp_signing_key,s.next=9,(0,a.call)(o.stopDAppSaga,(0,p.stopDApp)(n));case 9:return s.next=11,(0,a.call)(o.fetchDApps);case 11:case 12:case 13:return s.abrupt("break",18);case 14:return s.next=16,(0,a.put)((0,b.panthalassaMessagePersisted)(t));case 16:case 17:return s.abrupt("break",18);case 18:case"end":return s.stop()}},l,this)}function x(e){return(0,s.eventChannel)(function(r){return e.subscribeToUIAPI(function(e){r({request:e})}),e.unsubscribeFromUIAPI})}function I(){var e,r,t,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(null!=(e=c.default.instance.upstreamService)){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,(0,a.call)(x,e);case 5:r=s.sent;case 6:return s.next=9,(0,a.take)(r);case 9:return t=s.sent,n=t.request,s.next=13,(0,a.fork)(E,n);case 13:s.next=6;break;case 15:case"end":return s.stop()}},f,this)}},773); -__d(function(e,n,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,n){i.Navigation.registerComponent((0,ce.screen)('ACCOUNTS_SCREEN').screen,function(){return u.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ACCOUNT_CREATE_DEVELOPER_SETTINGS').screen,function(){return l.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ACCOUNT_CREATE_READY').screen,function(){return E.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ACCOUNT_RESTORE_SOURCE').screen,function(){return f.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ACCOUNT_RESTORE_EMPTY_WALLET').screen,function(){return p.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CONFIRM_KEY_INSTRUCTION_SCREEN').screen,function(){return T.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CONFIRM_KEY_PROCESS_SCREEN').screen,function(){return d.default},e,n),i.Navigation.registerComponent((0,ce.screen)('VERIFY_KEY_INSTRUCTION_SCREEN').screen,function(){return m.default},e,n),i.Navigation.registerComponent((0,ce.screen)('VERIFY_KEY_PROCESS_SCREEN').screen,function(){return q.default},e,n),i.Navigation.registerComponent((0,ce.screen)('VERIFY_KEY_SUCCESS_SCREEN').screen,function(){return P.default},e,n),i.Navigation.registerComponent((0,ce.screen)('RESTORE_KEY_SCREEN').screen,function(){return q.default},e,n),i.Navigation.registerComponent((0,ce.screen)('VIEW_PRIVATE_KEY_SCREEN').screen,function(){return I.default},e,n),i.Navigation.registerComponent((0,ce.screen)('INTRO_SCREEN').screen,function(){return L.default},e,n),i.Navigation.registerComponent((0,ce.screen)('DASHBOARD_SCREEN').screen,function(){return R.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CHAT_SCREEN').screen,function(){return B.default},e,n),i.Navigation.registerComponent((0,ce.screen)('MIGRATION_SCREEN').screen,function(){return S.default},e,n),i.Navigation.registerComponent((0,ce.screen)('NATIONS_SCREEN').screen,function(){return k.default},e,n),i.Navigation.registerComponent((0,ce.screen)('NATION_DETAILS_SCREEN').screen,function(){return J.default},e,n),i.Navigation.registerComponent((0,ce.screen)('WALLET_SCREEN').screen,function(){return g.default},e,n),i.Navigation.registerComponent((0,ce.screen)('PROFILE_SCREEN').screen,function(){return x.default},e,n),i.Navigation.registerComponent((0,ce.screen)('RECEIVE_MONEY_SCREEN').screen,function(){return K.default},e,n),i.Navigation.registerComponent((0,ce.screen)('SEND_MONEY_SCREEN').screen,function(){return V.default},e,n),i.Navigation.registerComponent((0,ce.screen)('QR_CODE_SCANNER_SCREEN').screen,function(){return W.default},e,n),i.Navigation.registerComponent((0,ce.screen)('QR_CODE_DAPP_SCREEN').screen,function(){return j.default},e,n),i.Navigation.registerComponent((0,ce.screen)('NATION_CREATE_SCREEN').screen,function(){return Z.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CHAT_NATIONS_SCREEN').screen,function(){return ee.default},e,n),i.Navigation.registerComponent((0,ce.screen)('NEW_CHAT_SCREEN').screen,function(){return re.default},e,n),i.Navigation.registerComponent((0,ce.screen)('SETTINGS_SCREEN').screen,function(){return ie.default},e,n),i.Navigation.registerComponent((0,ce.screen)('SECURITY_SETTINGS_SCREEN').screen,function(){return ue.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ACCOUNTS_ACCESS_SCREEN').screen,function(){return le.default},e,n),i.Navigation.registerComponent((0,ce.screen)('ENTER_PASSCODE_SCREEN').screen,function(){return Ce.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CREATE_PASSCODE_SCREEN').screen,function(){return Ne.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CONFIRMATION_SCREEN').screen,function(){return Ee.default},e,n),i.Navigation.registerComponent((0,ce.screen)('CHAT_LIST_SCREEN').screen,function(){return _e.default},e,n),i.Navigation.registerComponent((0,ce.screen)('PRIVATE_CHAT_SCREEN').screen,function(){return be.default},e,n),i.Navigation.registerComponent((0,ce.screen)('DAPP_MODAL_SCREEN').screen,function(){return De.default},e,n)};var i=n(613),o=n(775),u=babelHelpers.interopRequireDefault(o),a=n(801),l=babelHelpers.interopRequireDefault(a),s=n(804),E=babelHelpers.interopRequireDefault(s),c=n(806),f=babelHelpers.interopRequireDefault(c),C=n(807),p=babelHelpers.interopRequireDefault(C),N=n(808),R=babelHelpers.interopRequireDefault(N),_=n(818),g=babelHelpers.interopRequireDefault(_),b=n(981),S=babelHelpers.interopRequireDefault(b),D=n(983),T=babelHelpers.interopRequireDefault(D),H=n(987),d=babelHelpers.interopRequireDefault(H),v=n(993),m=babelHelpers.interopRequireDefault(v),A=n(995),q=babelHelpers.interopRequireDefault(A),O=n(1004),I=babelHelpers.interopRequireDefault(O),Y=n(1006),P=babelHelpers.interopRequireDefault(Y),U=n(1008),L=babelHelpers.interopRequireDefault(U),M=n(1011),V=babelHelpers.interopRequireDefault(M),F=n(1013),K=babelHelpers.interopRequireDefault(F),G=n(1015),W=babelHelpers.interopRequireDefault(G),Q=n(1016),j=babelHelpers.interopRequireDefault(Q),y=n(1024),B=babelHelpers.interopRequireDefault(y),h=n(1114),k=babelHelpers.interopRequireDefault(h),w=n(1118),x=babelHelpers.interopRequireDefault(w),z=n(1288),J=babelHelpers.interopRequireDefault(z),X=n(1294),Z=babelHelpers.interopRequireDefault(X),$=n(1325),ee=babelHelpers.interopRequireDefault($),ne=n(1329),re=babelHelpers.interopRequireDefault(ne),te=n(1331),ie=babelHelpers.interopRequireDefault(te),oe=n(1334),ue=babelHelpers.interopRequireDefault(oe),ae=n(1336),le=babelHelpers.interopRequireDefault(ae),se=n(1339),Ee=babelHelpers.interopRequireDefault(se),ce=n(623),fe=n(1342),Ce=babelHelpers.interopRequireDefault(fe),pe=n(1347),Ne=babelHelpers.interopRequireDefault(pe),Re=n(1348),_e=babelHelpers.interopRequireDefault(Re),ge=n(1360),be=babelHelpers.interopRequireDefault(ge),Se=n(1372),De=babelHelpers.interopRequireDefault(Se)},774); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireDefault(a),o=t(297),u=t(17),s=t(624),c=babelHelpers.interopRequireDefault(s),i=t(663),f=babelHelpers.interopRequireDefault(i),p=t(623),d=t(776),b=babelHelpers.interopRequireDefault(d),R=t(793),y=babelHelpers.interopRequireDefault(R),g=t(797),h=babelHelpers.interopRequireDefault(g),m=t(798),E=babelHelpers.interopRequireDefault(m),C=t(799),S=babelHelpers.interopRequireDefault(C),H=t(508);t(365);var T=t(800),A=babelHelpers.interopRequireDefault(T),v=(function(e){function t(){var e,n,r,a;babelHelpers.classCallCheck(this,t);for(var l=arguments.length,o=Array(l),s=0;s=n&&e<=r;if(n||0===n)return e>=n;if(r||0===r)return e<=r}return!1}},{key:"isInIntervalOrEqual",value:function(n,r,l,t){return r||0===r?n===r:e.isInInterval(n,l,t)}},{key:"debounce",value:function(e,n){var r=void 0;return function(){console.log(r),clearTimeout(r),console.log(r),r=setTimeout(e,n)}}}]),e})();l.default=t},787); -__d(function(e,n,l,r){Object.defineProperty(r,"__esModule",{value:!0});var t=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"childrenValidator",value:function(e,n,l){return"object"!=typeof e[n]?new Error("Invalid prop '"+n+"' supplied to '"+l+"': A valid JSX element must be provided."):e[n]instanceof Array?new Error("Invalid prop '"+n+"' supplied to '"+l+"': Adjacent JSX elements must be wrapped in an enclosing tag."):null}}]),e})();r.default=t},788); -__d(function(e,i,r,t){Object.defineProperty(t,"__esModule",{value:!0});var a=i(17),n=i(784),o=i(780),u=(function(e){function i(){return babelHelpers.classCallCheck(this,i),babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,null,[{key:"create",value:function(e,r){if(r)for(var t in r)/@media/.test(t)&&i.isValidRule(t)&&i.merge(e,r[t]);return a.StyleSheet.create(e)}},{key:"isValidRule",value:function(e){if(e){for(var r=[],t=/\(([^()]+)\)/g,a=!0;(r=t.exec(e))&&a;)a=i.isValidFeature(r[1]);return a}return!1}},{key:"isValidFeature",value:function(e){return!!e&&i.isValidSizeFeature(e)}},{key:"isValidSizeFeature",value:function(e){var r=i.parseSizeFeature(e);return!!r&&i.featuresCheckers[r.key](r.value)}},{key:"debug",value:function(){console.log("\ud83d\udcf1 DEVICE LOGS for MediaQueryStyleSheet:\n"),o.Device.information.map(function(e){console.log("\t"+e)})}}]),i})(n.StyleSheetUtil);u.featuresCheckers={"device-width":function(e){return o.Device.isValidWidthFromOperator("equal",e)},"min-device-width":function(e){return o.Device.isValidWidthFromOperator("min",e)},"max-device-width":function(e){return o.Device.isValidWidthFromOperator("max",e)},"device-height":function(e){return o.Device.isValidHeightFromOperator("equal",e)},"min-device-height":function(e){return o.Device.isValidHeightFromOperator("min",e)},"max-device-height":function(e){return o.Device.isValidHeightFromOperator("max",e)},"device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("equal",e)},"min-device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("min",e)},"max-device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("max",e)}},t.default=u},789); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var s=t(51),a=babelHelpers.interopRequireDefault(s),n=t(17),o=t(780),i=(function(e){function t(e){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.styleText,r=babelHelpers.objectWithoutProperties(e,["styleText"]);return a.default.createElement(n.View,r,o.Device.information.map(function(e,r){return a.default.createElement(n.Text,{key:r,style:t}," ",e," ")}))}}]),t})(s.Component);i.displayName="MediaQueryDebug",i.propTypes=babelHelpers.extends({},n.ViewPropType),l.default=i},790); -__d(function(e,r,t,u){Object.defineProperty(u,"__esModule",{value:!0});var n=r(792);Object.defineProperty(u,"MediaQueryDecorator",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}})},791); -__d(function(e,t,r,i){Object.defineProperty(i,"__esModule",{value:!0});var l=t(51),n=babelHelpers.interopRequireDefault(l),a=t(780);i.default=function(e,t){return function(r){var i,l;return l=i=(function(i){function l(t){babelHelpers.classCallCheck(this,l);var r=babelHelpers.possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,t));return r.device=new a.Device(e),r.state={isVisible:r.device.isValid()},r}return babelHelpers.inherits(l,i),babelHelpers.createClass(l,[{key:"componentDidMount",value:function(){t&&this.device.debug(l.displayName)}},{key:"render",value:function(){return this.state.isVisible?n.default.createElement(r,this.props):null}}]),l})(n.default.Component),i.displayName="MediaQueryDecorator",l}}},792); -__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0});var l=a(51),n=babelHelpers.interopRequireDefault(l),u=a(17),i=a(777),d=a(794),f=babelHelpers.interopRequireDefault(d),s=function(e){var a=e.navBarHidden,t=i.MediaQueryStyleSheet.create({fakeNavigationBar:babelHelpers.extends({},f.default.navigationBar),fakeStatusBar:babelHelpers.extends({},f.default.statusBar)});return n.default.createElement(u.View,{style:a?t.fakeStatusBar:t.fakeNavigationBar})};s.defaultProps={navBarHidden:!1},r.default=s},793); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var i=t(17),r=t(515),a=babelHelpers.interopRequireDefault(r),l=t(795),d=t(796),g=babelHelpers.interopRequireDefault(d),f=babelHelpers.extends({},g.default,{noflex:{flex:0},flexEnd:{flex:1,justifyContent:'flex-end'},screenContainer:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch'},bodyContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',marginLeft:8,marginRight:8},bodyAccountContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',marginLeft:16,marginRight:16},gridContainer:{flexDirection:'column',justifyContent:'flex-start',alignItems:'stretch',alignContent:'flex-start',flex:1,marginLeft:8,marginRight:8},scrollView:{flex:1},scrollViewWallet:{flex:0,marginBottom:56},bodyTopSpacer:{height:(0,l.fontSizeNormalizer)(18)},titleContainer:{marginHorizontal:20},bodyParagraph:{paddingBottom:16},bodyParagraphConfirmationRow:{paddingBottom:20,borderBottomColor:a.default.BitnationGrayColor,borderBottomWidth:.4,paddingLeft:4,paddingRight:4,paddingTop:8,flexDirection:'row',alignItems:'stretch',justifyContent:'space-between',flex:1},bodyParagraphConfirmationColumn:{paddingBottom:16,borderBottomColor:a.default.BitnationGrayColor,borderBottomWidth:.4,paddingLeft:4,paddingRight:4,paddingTop:8},statusBar:{height:'android'===i.Platform.OS?0:(0,l.isiPhoneXStatusBar)(20),backgroundColor:'transparent'},statusBariPhoneX:{height:44,backgroundColor:'transparent'},navigationBar:{marginTop:'android'===i.Platform.OS?0:(0,l.isiPhoneXStatusBar)(20),marginLeft:8,marginRight:8,height:44,backgroundColor:'transparent'},tabBar:{height:49,marginTop:10,marginBottom:10,backgroundColor:a.default.shadeOfBitnationLightColor(.1),flexDirection:'row',alignItems:'stretch',justifyContent:'space-around'},homeIndicator:{height:34},titleBarLarge:{height:(0,l.fontSizeNormalizer)(52),alignItems:'flex-start'},titleBarLargeNationDetail:{height:(0,l.fontSizeNormalizer)(92),alignItems:'flex-start'},titleBarLargeMargins:{height:52,marginLeft:16,marginRight:16,textAlign:'left'},profilesScreenContainer:{flex:1,justifyContent:'flex-start',flexDirection:'column',alignItems:'stretch'},nationsScreenContainer:{flex:1,justifyContent:'flex-start',flexDirection:'column',alignItems:'stretch'},nationsScreenImageContainer:{flex:1,justifyContent:'center',flexDirection:'row',alignItems:'stretch',marginTop:30,marginBottom:20},gridPanelView:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch',margin:4,borderRadius:8,backgroundColor:a.default.white,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},gridPanelViewWarning:{flexDirection:'column',justifyContent:'space-between',alignItems:'stretch',margin:4,borderRadius:8,backgroundColor:a.default.white,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},removeGridPanelMarginsLR:{marginLeft:(0,l.fontSizeNormalizer)(-16),marginRight:(0,l.fontSizeNormalizer)(-16)},panelView:{flexDirection:'column',justifyContent:'space-between',borderRadius:8,backgroundColor:a.default.white,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},panelViewTransparent:{flexDirection:'column',justifyContent:'space-between',borderRadius:8,backgroundColor:'transparent',marginTop:8,marginBottom:8,marginLeft:0,marginRight:0,paddingLeft:8,paddingRight:8,paddingTop:4,paddingBottom:4},panelTitleRowContainer:{flexDirection:'row',backgroundColor:'transparent',paddingBottom:4},panelTitleContainer:{backgroundColor:'transparent'},panelTitleIcon:{flex:1,backgroundColor:'transparent',alignItems:'flex-end'},panelViewTitle:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',color:a.default.panelViewTitleColor,textAlign:'left'}),alertPanelViewTitle:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',color:a.default.primary_red,textAlign:'left'}),panelSubTitle:babelHelpers.extends({},g.default.title3,{textAlign:'left'}),panelIcon:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',textAlign:'right'}),panelChildrenContainer:{flex:1,marginBottom:4},panelBodyContainer:{marginBottom:8,flexShrink:1,overflow:'hidden'},panelBody:babelHelpers.extends({},g.default.body),messageAdditionalInfoContainer:{},messageBottomContainer:{},panelButton:{marginTop:13},panelFlatlistHeader:{justifyContent:'center',paddingLeft:16,height:30},panelViewAlert:{flexDirection:'row',borderRadius:8,backgroundColor:a.default.panelViewAlert,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',paddingLeft:10,padding:(0,l.fontSizeNormalizer)(5)},panelAlertBold:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor,fontSize:13,fontWeight:'bold'}),panelAlertStatus:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor,fontSize:13}),panelViewCitizen:{justifyContent:'space-between',flexDirection:'row',borderRadius:8,backgroundColor:a.default.panelView,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',paddingLeft:10,padding:(0,l.fontSizeNormalizer)(7)},panelViewCitizenIcon:{width:25,height:25},formRow:{flexDirection:'row',alignItems:'center'},fieldsContainer:{alignItems:'stretch',flex:1},formLabelText:babelHelpers.extends({},g.default.body,{color:'white'}),formSwitchLabelText:babelHelpers.extends({},g.default.body,{color:a.default.BitnationDarkGrayColor,marginRight:60,fontSize:16}),textInput:babelHelpers.extends({},g.default.body,{borderColor:a.default.borderColor,borderBottomWidth:1,flex:1,marginTop:4,marginBottom:14,marginRight:0,marginLeft:0,fontSize:16,paddingLeft:4,paddingTop:6,paddingBottom:12}),textInputConfirmation:babelHelpers.extends({},g.default.body,{borderColor:a.default.borderColor,flex:1,alignItems:'stretch',textAlign:'right',fontSize:16,paddingLeft:4}),placeHolderText:babelHelpers.extends({},g.default.body,{color:a.default.placeholderTextColor}),editItemLabel:babelHelpers.extends({},g.default.body,{backgroundColor:'transparent',color:a.default.titleColor,fontWeight:'bold',margin:5}),labelText:babelHelpers.extends({},g.default.body,{backgroundColor:'transparent',color:a.default.titleColor}),dropDown:{backgroundColor:a.default.shadeOfBitnationLightColor(.2),borderColor:a.default.borderColor,borderWidth:1,flex:1,marginTop:4,marginBottom:4,marginRight:0,marginLeft:0,paddingLeft:4,paddingTop:6,paddingBottom:6},dropDownTextDefault:babelHelpers.extends({},g.default.body),dropDownTextList:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor}),switchContainer:{flex:1,flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginTop:5,marginBottom:10,borderWidth:0},switchObject:{marginRight:10},listContainer:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch'},sectionList:{flex:1},listItemText:babelHelpers.extends({},g.default.body,{color:'#58595B',flex:1}),listItemTextVeryBold:babelHelpers.extends({},g.default.bodyBlack,{color:a.default.BitnationDarkGrayColor,flex:1}),listItemTextState:babelHelpers.extends({},g.default.body,{color:a.default.listItemTextState.default,textAlign:'right',marginRight:16}),sectionListTouchable:{flex:1,flexDirection:'row',justifyContent:'center',alignItems:'center'},sectionListItemContainer:{flex:1,flexDirection:'row',height:46,justifyContent:'center',alignItems:'center',backgroundColor:a.default.sectionListItemContainerBackground,marginLeft:20},sectionListHeaderContainer:{flexDirection:'row',height:30,justifyContent:'center',alignItems:'center',marginLeft:16,backgroundColor:a.default.sectionListHeaderContainer},sectionListHeaderText:babelHelpers.extends({},g.default.body,{flex:1,marginLeft:16,color:a.default.sectionListHeaderText}),sectionListSeparator:{flex:1,marginLeft:10,height:1,backgroundColor:a.default.sectionListSeparator},sectionListDisclosure:{marginRight:16,width:8,height:15},sectionListSignal:{marginRight:14,width:20,height:15},segmentedControlContainer:{height:44,marginLeft:(0,l.normalWidthMargin)(),marginRight:(0,l.normalWidthMargin)(),flexDirection:'row',alignItems:'center'},segmentedControlContainerBackground:{backgroundColor:'transparent'},tabsContainerStyle:{backgroundColor:'transparent'},tabStyle:{backgroundColor:'transparent',borderColor:a.default.activeTabStyle},tabTextStyle:{backgroundColor:'transparent',color:a.default.tabTextStyle},activeTabStyle:{backgroundColor:a.default.activeTabStyle},tabBarButton:{borderRadius:15,backgroundColor:'transparent',height:48,width:48,justifyContent:'center'},tabBarContainer:{justifyContent:'center',alignItems:'center'},tabBarTitle:{marginTop:4,color:a.default.white,backgroundColor:'transparent',fontSize:10},fakeBottomBar:{paddingTop:5,height:(0,l.isiPhoneXTabBar)(55),backgroundColor:a.default.BitnationDarkGrayColor,flexDirection:'row',alignItems:'stretch',justifyContent:'space-around'},currencyLarge:babelHelpers.extends({},g.default.largeTitle,{fontFamily:'Roboto',fontSize:30,color:a.default.currency}),currencyMedium:babelHelpers.extends({},g.default.largeTitle,{fontFamily:'Roboto',fontSize:15,color:a.default.currency,fontWeight:'bold'}),buttonTitle:{fontSize:14,color:a.default.BitnationLinkOrangeColor,letterSpacing:-.02,lineHeight:19,textAlign:'center',fontWeight:'bold'},actionButtonTitle:babelHelpers.extends({},g.default.headline,{color:a.default.white,textAlign:'center'}),disabledButtonTitle:{color:a.default.BitnationLightGrayColor},dAppMessageTime:{fontSize:12,padding:9,marginTop:2,color:a.default.textColor},dAppMessageText:{fontSize:18,padding:9,marginBottom:3,color:a.default.textColor},arrowButtonTitle:{fontSize:15,color:a.default.BitnationLinkOrangeColor,fontWeight:'bold',textAlign:'center'},arrowButtonIcon:{fontSize:14,color:a.default.BitnationLinkOrangeColor,alignSelf:'center'},disabledArrowButtonTitle:{fontSize:15,color:a.default.BitnationLightGrayColor,fontWeight:'bold',textAlign:'center'},baseButton:{borderRadius:15,height:30,justifyContent:'center'},actionButton:{borderRadius:0,height:44,justifyContent:'center',backgroundColor:a.default.BitnationActionColor},buttonContainer:{marginLeft:13,marginRight:13},arrowButtonContainer:{flexDirection:'row',justifyContent:'center'},buttonContainerMultiple:{flexDirection:'row',justifyContent:'space-between',marginLeft:13,marginRight:13},buttonPrevNext:{marginTop:13,width:90},buttonListContainer:{marginTop:10,marginBottom:40,borderWidth:0},avatarContainer:{flexDirection:'row',width:100,alignItems:'center'},avatarContainerLarge:{alignItems:'flex-start'},avatarChangeContainer:{alignItems:'center'},avatarMedium:{height:50,width:50,borderRadius:25},avatarLarge:{height:100,width:100,borderRadius:50,margin:16},privateKeyGridViewContainer:{height:241,borderRadius:8,backgroundColor:a.default.shadeOf(a.default.BitnationDarkColor,.7),paddingTop:20,paddingBottom:3,paddingLeft:12,paddingRight:12},publicKeyText:{fontSize:13,color:a.default.black,textAlign:'center'}});o.default=f},794); -__d(function(e,n,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fontSizeNormalizer=function(e){0;if(f===o.FOUR_INCHES)return.65*e;if(f===o.FOUR_DOT_SEVEN_INCHES)return e;if(f===o.FIVE_DOT_FIVE_INCHES)return 1.4*e;return e},t.normalWidthMargin=function(){return _/3/2},t.isiPhoneXStatusBar=function(e){0;return e},t.isiPhoneXTabBar=function(e){0;return e};var i=n(17),u=babelHelpers.interopRequireDefault(i),o=n(516),a=u.default.Dimensions,f=(u.default.Platform,a.get('window').height),_=a.get('window').width},795); -__d(function(t,o,e,i){Object.defineProperty(i,"__esModule",{value:!0});var l=o(515),n=babelHelpers.interopRequireDefault(l),a={largeTitle:{fontFamily:'Roboto',fontWeight:'900',fontSize:22,lineHeight:30,letterSpacing:0,color:n.default.BitnationDarkGrayColor},title1:{fontFamily:'Roboto',fontWeight:'bold',fontSize:28,lineHeight:34,letterSpacing:0,color:n.default.BitnationVeryLightColor},title2:{fontFamily:'Roboto',fontWeight:'bold',fontSize:22,lineHeight:28,letterSpacing:0,color:n.default.BitnationVeryLightColor},title3:{fontFamily:'Roboto',fontWeight:'normal',fontSize:20,lineHeight:25,letterSpacing:0,color:n.default.BitnationVeryLightColor},headline:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:n.default.BitnationDarkGrayColor},body:{fontFamily:'Roboto',fontWeight:'normal',fontSize:17,lineHeight:22,letterSpacing:0,color:n.default.BitnationGrayColor},bodyBold:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:n.default.BitnationGrayColor},bodyBoldBlack:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:n.default.textPrimary},bodyBoldBlackSmall:{fontFamily:'Roboto',fontWeight:'bold',fontSize:14,lineHeight:22,letterSpacing:0,color:n.default.textPrimary},bodyBlack:{fontFamily:'Roboto',fontWeight:'900',fontSize:17,lineHeight:22,letterSpacing:0,color:n.default.BitnationVeryLightColor},callout:{fontFamily:'Roboto',fontWeight:'normal',fontSize:16,lineHeight:21,letterSpacing:0,color:n.default.BitnationLightColor},subhead:{fontFamily:'Roboto',fontWeight:'normal',fontSize:15,lineHeight:20,letterSpacing:0},footnote:{fontFamily:'Roboto',fontWeight:'normal',fontSize:13,lineHeight:18,letterSpacing:0,color:n.default.BitnationGrayColor},caption1:{fontFamily:'Roboto',fontWeight:'normal',fontSize:12,lineHeight:16,letterSpacing:0,color:n.default.BitnationLightColor},caption2:{fontFamily:'Roboto',fontWeight:'normal',fontSize:11,lineHeight:13,letterSpacing:0,color:n.default.BitnationLightColor},disabledText:{color:n.default.disabledTextColor}};i.default=a},796); -__d(function(e,t,a,i){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=a.props.navigator;return i&&i.setOnNavigatorEvent(a.onNavigatorEvent.bind(a)),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavigatorEvent",value:function(e){switch('NavBarButtonPress'===e.type&&'function'==typeof this.onNavBarButtonPress&&this.onNavBarButtonPress(e.id),e.id){case'willAppear':'function'==typeof this.onWillAppear&&this.onWillAppear();break;case'didAppear':'function'==typeof this.onDidAppear&&this.onDidAppear();break;case'willDisappear':'function'==typeof this.onWillDisappear&&this.onWillDisappear();break;case'didDisappear':'function'==typeof this.onDidDisappear&&this.onDidDisappear();break;case'bottomTabReselected':'function'==typeof this.onBottomTabReselected&&this.onBottomTabReselected()}}}]),t})(t(51).Component);i.default=o},797); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireWildcard(n),i=t(17),a=t(777),o=t(794),d=babelHelpers.interopRequireDefault(o),b=function(e){var t=e.style,l=e.children,r=e.onPress,n=e.enabled,o=e.styleTitle,b=e.title,u=babelHelpers.objectWithoutProperties(e,["style","children","onPress","enabled","styleTitle","title"]),c=a.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default));return s.createElement(i.View,babelHelpers.extends({style:[c.baseButton,t]},u),s.createElement(i.TouchableOpacity,{testID:"Touchable",disabled:!n,style:[c.buttonContainer],onPress:r},l||s.createElement(i.Text,{style:[c.buttonTitle,o,!1===n&&c.disabledButtonTitle]},b)))};b.defaultProps={style:void 0,children:void 0,enabled:!0,onPress:function(){return null},title:''},r.default=b},798); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(777),l=t(794),i=babelHelpers.interopRequireDefault(l),a=r.MediaQueryStyleSheet.create(babelHelpers.extends({},i.default,{bottomSpacer:{width:'100%',flex:1,flexDirection:'column',justifyContent:'center',alignItems:'center'},navButtons:{alignSelf:'flex-end'},WHITE:{alignSelf:'flex-end'},inlineFieldContainer:{flexDirection:'row',alignItems:'center'},bodyAccountContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',paddingHorizontal:20},lengthSlider:{width:'50%'},networkDropdownButton:{flex:1,marginBottom:20},networkDropdownList:{flex:1,marginTop:10},mt30:{marginTop:30},accountTitle:{marginTop:40,marginBottom:19,backgroundColor:'white',paddingHorizontal:28,color:'#58595B',paddingVertical:3,alignSelf:'flex-start'},accountIntroText:{flex:1},restoreButton:{backgroundColor:'transparent',alignSelf:'stretch',borderRadius:0},restoreButtonText:{color:'#58595B',fontSize:15,fontWeight:'bold'},newAccountText:{color:'#FF8B00',fontSize:15,fontWeight:'900'},createButton:{height:54,backgroundColor:'white',alignSelf:'stretch',borderRadius:0},warningPanelChildrenContainerStyle:babelHelpers.extends({},i.default.noflex,{marginBottom:-15})}));o.default=a},799); -__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var r=t(51),i=babelHelpers.interopRequireWildcard(r),a=t(17),o=t(777),s=t(366),d=babelHelpers.interopRequireDefault(s),u=t(794),c=babelHelpers.interopRequireDefault(u),p=t(798),y=babelHelpers.interopRequireDefault(p),b=o.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default)),m=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderHeader",value:function(){var e=this.props,t=e.title,l=e.icon,n=e.titleStyle;return i.createElement(a.View,{style:b.panelTitleRowContainer},t&&i.createElement(a.View,{style:b.panelTitleContainer},i.createElement(a.Text,{style:n},t)),l&&i.createElement(a.View,{style:b.panelTitleIcon},i.createElement(a.Text,{style:b.panelIcon},l)))}},{key:"render",value:function(){var e=this.props,t=e.style,l=e.childrenContainerStyle,n=e.renderBottom,r=e.renderAdditionalInfo,o=e.children,s=e.title,u=e.icon,c=e.body,p=e.buttonTitle,m=e.onButtonClick;return i.createElement(a.View,{style:t},(!d.default.isEmpty(s)||!d.default.isEmpty(u))&&this.renderHeader(),i.createElement(a.View,{style:[b.panelChildrenContainer,l]},o),c&&i.createElement(a.View,{style:b.panelBodyContainer},i.createElement(a.Text,{style:b.body},c)),i.createElement(a.View,{style:b.messageAdditionalInfoContainer},r&&r()),m&&i.createElement(y.default,{style:b.panelButton,title:p,onPress:m}),i.createElement(a.View,{style:b.messageBottomContainer},n&&n()))}}]),t})(i.Component);n.default=m,m.defaultProps={style:b.panelView,titleStyle:b.panelViewTitle,children:null,childrenContainerStyle:{},renderBottom:null,buttonTitle:'Button',onButtonClick:null,renderAdditionalInfo:null,body:void 0,icon:void 0,title:void 0}},800); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),u=t(297),s=t(17),o=t(663),c=babelHelpers.interopRequireDefault(o),i=t(623),f=t(776),d=babelHelpers.interopRequireDefault(f),p=t(793),b=babelHelpers.interopRequireDefault(p),y=t(802),m=babelHelpers.interopRequireDefault(y),E=t(798),v=babelHelpers.interopRequireDefault(E),h=t(803),C=babelHelpers.interopRequireDefault(h),g=t(799),w=babelHelpers.interopRequireDefault(g);t(365);var H=t(508),R=(function(e){function t(){var e,l,a,n;babelHelpers.classCallCheck(this,t);for(var r=arguments.length,u=Array(r),s=0;s1&&void 0!==arguments[1]?arguments[1]:m,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;d();var n=e[r]||'?';'number'==typeof n&&(n=String.fromCharCode(n));var l=(0,s.processColor)(a),i=n+":"+t+":"+l,u=s.PixelRatio.get();return new Promise(function(e,r){var a=f[i];void 0!==a?!a||a instanceof Error?r(a):e({uri:a,scale:u}):v.getImageForFont(o,n,t,l,function(t,o){var a='string'==typeof t?new Error(t):t;f[i]=o||a||!1,!a&&o?e({uri:o,scale:u}):r(a)})})}return u.Button=(0,c.default)(u),u.TabBarItem=(0,p.default)(l,y),u.TabBarItemIOS=u.TabBarItem,u.ToolbarAndroid=(0,b.default)(l,y),u.getImageSource=y,u.loadFont=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return'ios'===s.Platform.OS?(d(),e?v.loadFontWithFileName.apply(v,babelHelpers.toConsumableArray(e.split('.'))):Promise.reject(new Error('Unable to load font, because no file was specified. '))):Promise.resolve()},u.hasIcon=function(r){return Object.prototype.hasOwnProperty.call(e,r)},u};var a=r(51),n=babelHelpers.interopRequireDefault(a),l=r(105),i=babelHelpers.interopRequireDefault(l),s=r(826),u=r(827),c=babelHelpers.interopRequireDefault(u),f=r(962),p=babelHelpers.interopRequireDefault(f),d=r(976),b=babelHelpers.interopRequireDefault(d),v=s.NativeModules.RNVectorIconsManager||s.NativeModules.RNVectorIconsModule,m=12,h='black'},825); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(17);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},826); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){var t,r;return r=t=(function(t){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,t),babelHelpers.createClass(r,[{key:"render",value:function(){var t=this.props,r=t.style,l=t.iconStyle,a=t.children,n=babelHelpers.objectWithoutProperties(t,["style","iconStyle","children"]),i=(0,s.default)(n,Object.keys(f.Text.propTypes),'style','name','size','color'),d=(0,s.default)(n,Object.keys(f.TouchableHighlight.propTypes)),c=(0,u.default)(n,Object.keys(i),Object.keys(d),'iconStyle','borderRadius','backgroundColor');i.style=l?[y.icon,l]:y.icon;var p=(0,s.default)(this.props,'color'),h=(0,s.default)(this.props,'backgroundColor','borderRadius');return b.default.createElement(f.TouchableHighlight,babelHelpers.extends({style:[y.touchable,h]},d),b.default.createElement(f.View,babelHelpers.extends({style:[y.container,h,r]},c),b.default.createElement(e,i),(0,o.default)(a)?b.default.createElement(f.Text,{style:[y.text,p]},a):a))}}]),r})(d.PureComponent),t.propTypes={backgroundColor:p.default.oneOfType([p.default.string,p.default.number]),borderRadius:p.default.number,color:p.default.oneOfType([p.default.string,p.default.number]),size:p.default.number,iconStyle:p.default.any,style:p.default.any,children:p.default.node},t.defaultProps={backgroundColor:h,borderRadius:5,color:'white',size:20},r};var a=t(828),o=babelHelpers.interopRequireDefault(a),n=t(830),u=babelHelpers.interopRequireDefault(n),i=t(955),s=babelHelpers.interopRequireDefault(i),d=t(51),b=babelHelpers.interopRequireDefault(d),c=t(105),p=babelHelpers.interopRequireDefault(c),f=t(826),y=f.StyleSheet.create({container:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center',padding:8},touchable:{overflow:'hidden'},icon:{marginRight:10},text:{fontWeight:'600',backgroundColor:'transparent'}}),h='#007AFF'},827); -__d(function(t,n,r,o){var e=n(311),i=n(829),c=n(319),f='[object String]';r.exports=function(t){return'string'==typeof t||!i(t)&&c(t)&&e(t)==f}},828); -__d(function(r,a,i,n){var o=Array.isArray;i.exports=o},829); -__d(function(n,r,t,u){var e=r(831),f=r(832),o=r(929),a=r(930),i=r(876),l=r(943),v=r(944),c=r(909),g=v(function(n,r){var t={};if(null==n)return t;var u=!1;r=e(r,function(r){return r=a(r,n),u||(u=r.length>1),r}),i(n,c(n),t),u&&(t=f(t,7,l));for(var v=r.length;v--;)o(t,r[v]);return t});t.exports=g},830); -__d(function(n,r,t,o){t.exports=function(n,r){for(var t=-1,o=null==n?0:n.length,u=Array(o);++t-1}},840); -__d(function(t,i,s,_){var n=i(837);s.exports=function(t,i){var s=this.__data__,_=n(s,t);return _<0?(++this.size,s.push([t,i])):s[_][1]=i,this}},841); -__d(function(t,_,i,n){var s=_(834);i.exports=function(){this.__data__=new s,this.size=0}},842); -__d(function(t,e,i,_){i.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},843); -__d(function(t,_,n,e){n.exports=function(t){return this.__data__.get(t)}},844); -__d(function(t,_,n,a){n.exports=function(t){return this.__data__.has(t)}},845); -__d(function(t,i,s,_){var e=i(834),a=i(847),n=i(856),h=200;s.exports=function(t,i){var s=this.__data__;if(s instanceof e){var _=s.__data__;if(!a||_.length-1&&n%1==0&&n-1&&n%1==0&&n<=o}},887); -__d(function(n,t,r,u){r.exports=function(n){return function(t){return n(t)}}},888); -__d(function(e,t,r,n){var o=t(314),i='object'==typeof n&&n&&!n.nodeType&&n,p=i&&'object'==typeof r&&r&&!r.nodeType&&r,c=p&&p.exports===i&&o.process,u=(function(){try{var e=p&&p.require&&p.require('util').types;return e||c&&c.binding&&c.binding('util')}catch(e){}})();r.exports=u},889); -__d(function(r,t,n,o){var c=t(891),e=t(892),u=Object.prototype.hasOwnProperty;n.exports=function(r){if(!c(r))return e(r);var t=[];for(var n in Object(r))u.call(r,n)&&'constructor'!=n&&t.push(n);return t}},890); -__d(function(t,o,r,n){var c=Object.prototype;r.exports=function(t){var o=t&&t.constructor;return t===('function'==typeof o&&o.prototype||c)}},891); -__d(function(e,t,c,b){var j=t(318)(Object.keys,Object);c.exports=j},892); -__d(function(n,t,r,u){var e=t(850),l=t(887);r.exports=function(n){return null!=n&&l(n.length)&&!e(n)}},893); -__d(function(n,r,t,o){var u=r(876),c=r(895);t.exports=function(n,r){return n&&u(r,c(r),n)}},894); -__d(function(n,r,t,o){var u=r(878),c=r(896),e=r(893);t.exports=function(n){return e(n)?u(n,!0):c(n)}},895); -__d(function(r,t,n,o){var c=t(851),e=t(891),u=t(897),a=Object.prototype.hasOwnProperty;n.exports=function(r){if(!c(r))return u(r);var t=e(r),n=[];for(var o in r)('constructor'!=o||!t&&a.call(r,o))&&n.push(o);return n}},896); -__d(function(n,r,t,u){t.exports=function(n){var r=[];if(null!=n)for(var t in Object(n))r.push(t);return r}},897); -__d(function(e,o,t,n){var r=o(313),c='object'==typeof n&&n&&!n.nodeType&&n,f=c&&'object'==typeof t&&t&&!t.nodeType&&t,p=f&&f.exports===c?r.Buffer:void 0,i=p?p.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,n=i?i(t):new e.constructor(t);return e.copy(n),n}},898); -__d(function(r,n,t,o){t.exports=function(r,n){var t=-1,o=r.length;for(n||(n=Array(o));++ta?0:a+n),(t=t>a?a:t)<0&&(t+=a),a=n>t?0:t-n>>>0,n>>>=0;for(var e=Array(a);++o0&&e(g)?t>1?n(g,t-1,e,f,u):o(u,g):f||(u[u.length]=g)}return u}},946); -__d(function(n,o,t,a){var e=o(312),i=o(880),r=o(829),c=e?"function"==typeof e?e.isConcatSpreadable:"@@isConcatSpreadable":void 0;t.exports=function(n){return r(n)||i(n)||!!(c&&n&&n[c])}},947); -__d(function(r,n,t,a){var o=n(949),e=Math.max;t.exports=function(r,n,t){return n=e(void 0===n?r.length-1:n,0),function(){for(var a=arguments,f=-1,i=e(a.length-n,0),u=Array(i);++f0){if(++r>=i)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},954); -__d(function(n,r,t,u){var o=r(956),c=r(944)(function(n,r){return null==n?{}:o(n,r)});t.exports=c},955); -__d(function(n,r,t,u){var o=r(957),c=r(959);t.exports=function(n,r){return o(n,r,function(r,t){return c(n,t)})}},956); -__d(function(r,n,t,o){var a=n(940),e=n(958),f=n(930);t.exports=function(r,n,t){for(var o=-1,u=n.length,v={};++os))return!1;var g=d.get(e);if(g&&d.get(r))return g==r;var b=-1,h=!0,k=t&o?new n:void 0;for(d.set(e,r),d.set(r,e);++b0}),n.default.createElement(P.default,{title:H.default.t('screens.confirmKey.process.nextButton'),onPress:this.onNextPressed,style:o.default.button})))))}}]),t})(N.default);x.navigatorButtons=babelHelpers.extends({},u.androidNavigationButtons),l.default=x},987); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(17),i=t(794),l=babelHelpers.interopRequireDefault(i),u=a.StyleSheet.create(babelHelpers.extends({},l.default,{gridView:{flex:1},gridContainer:babelHelpers.extends({},l.default.privateKeyGridViewContainer),buttonContainer:babelHelpers.extends({},l.default.buttonContainerMultiple,{marginTop:15}),button:{width:90},textInput:{marginLeft:10},firstTextInput:{marginLeft:0}}));r.default=u},988); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireWildcard(a),s=t(17),o=t(366),i=babelHelpers.interopRequireDefault(o),u=t(990),p=babelHelpers.interopRequireDefault(u),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderItems",value:function(e,t){var r=this.props.renderItem;return i.default.map(i.default.range(0,t),function(t){return r(e+t)})}},{key:"renderRows",value:function(e){var t=this,r=this.props,n=r.activeRow,a=r.disableInactiveRows,o=r.itemsPerRow;return i.default.map(i.default.range(0,e),function(e){return l.createElement(s.View,{style:[p.default.row,e>0&&p.default.rowMargin,a&&n!==e&&p.default.rowInactive],key:e},t.renderItems(e*o,o))})}},{key:"render",value:function(){var e=this.props,t=e.style,r=e.rowsCount;return l.createElement(s.View,{style:[p.default.container,t]},this.renderRows(r))}}]),t})(l.Component);c.defaultProps={rowsCount:0,itemsPerRow:1,disableInactiveRows:!1,activeRow:0},n.default=c},989); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(17).StyleSheet.create({container:{},row:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',flex:1},rowMargin:{marginTop:14},rowInactive:{opacity:.1}});r.default=o},990); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(51),l=babelHelpers.interopRequireWildcard(o),u=t(17),i=t(992),a=babelHelpers.interopRequireDefault(i),s=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textInput=null,n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=t.editable,o=t.isLast,s=t.value,c=t.index,b=t.label,p=t.onFocus,d=t.onSubmit,f=t.onChange;return l.createElement(u.View,{style:[a.default.container,n]},l.createElement(u.TextInput,{underlineColorAndroid:"transparent",editable:r,autoCorrect:!1,autoCapitalize:"none",returnKeyType:o?'done':'next',style:a.default.textInput,value:s,blurOnSubmit:o,selectionColor:i.cursorColor,onFocus:(function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(e){return p(c,(0,u.findNodeHandle)(e.target))}),onChangeText:function(e){return f(c,e)},onSubmitEditing:function(){return d(c)},ref:function(t){return e.textInput=t}}),l.createElement(u.Text,{style:a.default.text},b))}}]),t})(l.Component);s.defaultProps={editable:!0,label:'',value:'',isLast:!0,index:0,onFocus:function(){},onSubmit:function(){},onChange:function(){},style:{}},r.default=s},991); -__d(function(e,t,o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.cursorColor=void 0;var i=t(17),l=t(515),n=babelHelpers.interopRequireDefault(l),a=(r.cursorColor=n.default.BitnationLightColor,i.StyleSheet.create({container:{height:44,flex:1},textInput:{backgroundColor:n.default.white,color:n.default.BitnationLightColor,fontSize:16,paddingTop:2,paddingBottom:2,paddingLeft:5,height:24},text:{color:n.default.privateKeyTextInputLabelColor,fontSize:12,textAlign:'center',marginTop:4}}));r.default=a},992); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),n=babelHelpers.interopRequireDefault(a),u=t(17),s=t(994),o=babelHelpers.interopRequireDefault(s),i=t(623),p=t(793),f=babelHelpers.interopRequireDefault(p),b=t(776),d=babelHelpers.interopRequireDefault(b),c=t(800),H=babelHelpers.interopRequireDefault(c),E=t(516),y=t(985),R=babelHelpers.interopRequireDefault(y),_=t(663),v=babelHelpers.interopRequireDefault(_),C=t(797),h=(function(e){function t(){var e,l,r,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,u=Array(n),s=0;s0}),this.state.currentPage<_.KEY_PAGE_COUNT-1?l.createElement(x.default,{title:A.default.t('screens.enterPrivateKey.nextButton'),onPress:this.onNextPressed,style:p.default.button}):l.createElement(x.default,{title:A.default.t('screens.enterPrivateKey.doneButton'),onPress:this.onDonePressed,style:p.default.button,enabled:t.doneShouldBeEnabled(this.props)}))))))}}],[{key:"doneShouldBeEnabled",value:function(e){return s.default.reduce(e.enteredMnemonic,function(e,t){return e&&!s.default.isEmpty(t)},!0)&&!e.mnemonicValidationInProgress||!1}}]),t})(R.default);G.defaultProps={isVerification:!1};r.default=(0,c.connect)(function(e){return babelHelpers.extends({},e.key,{testingModeActive:e.testingMode.isActive})},function(e){return{validateMnemonic:function(){e((0,S.validateEnteredMnemonic)())},changeMnemonic:function(t){e((0,S.changeEnteredMnemonic)(t))},mnemonicConfirmed:function(t){e((0,k.mnemonicConfirmed)(t))}}})(G)},995); -__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardAwareScrollView=t.KeyboardAwareSectionList=t.KeyboardAwareFlatList=t.KeyboardAwareListView=t.listenToKeyboardEvents=void 0;var l=r(997),i=babelHelpers.interopRequireDefault(l),o=r(999),b=babelHelpers.interopRequireDefault(o),d=r(1e3),u=babelHelpers.interopRequireDefault(d),s=r(1001),n=babelHelpers.interopRequireDefault(s),f=r(1002),w=babelHelpers.interopRequireDefault(f);t.listenToKeyboardEvents=i.default,t.KeyboardAwareListView=u.default,t.KeyboardAwareFlatList=n.default,t.KeyboardAwareSectionList=w.default,t.KeyboardAwareScrollView=b.default},996); -__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var l=o(51),n=babelHelpers.interopRequireDefault(l),a=o(105),i=babelHelpers.interopRequireDefault(a),s=o(17),d=babelHelpers.interopRequireDefault(s),c=(0,o(998).isIphoneX)()?83:49,p=250,u=75;r.default=function(e){var o,t,r;return t=o=(function(o){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.call(o),o.keyboardWillShowEvent=void 0,o.keyboardWillHideEvent=void 0,o.position={x:0,y:0},o.defaultResetScrollToCoords=null;var l=e.viewIsInsideTabBar?c:0;return o.state={keyboardSpace:l},o}return babelHelpers.inherits(t,o),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.mountedComponent=!0,'ios'===s.Platform.OS?(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardWillShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardWillHide',this._resetKeyboardSpace)):'android'===s.Platform.OS&&this.props.enableOnAndroid&&(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardDidShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardDidHide',this._resetKeyboardSpace))}},{key:"componentWillReceiveProps",value:function(e){if(e.viewIsInsideTabBar!==this.props.viewIsInsideTabBar){var o=e.viewIsInsideTabBar?c:0;this.state.keyboardSpace!==o&&this.setState({keyboardSpace:o})}}},{key:"componentWillUnmount",value:function(){this.mountedComponent=!1,this.keyboardWillShowEvent&&this.keyboardWillShowEvent.remove(),this.keyboardWillHideEvent&&this.keyboardWillHideEvent.remove()}},{key:"render",value:function(){var o=this.props,t=o.enableOnAndroid,r=o.contentContainerStyle,l=void 0;return'android'===s.Platform.OS&&t&&(l=[].concat(r).concat({paddingBottom:((r||{}).paddingBottom||0)+this.state.keyboardSpace})),n.default.createElement(e,babelHelpers.extends({ref:this._handleRef,keyboardDismissMode:"interactive",contentInset:{bottom:this.state.keyboardSpace},automaticallyAdjustContentInsets:!1,showsVerticalScrollIndicator:!0,scrollEventThrottle:1},this.props,{contentContainerStyle:l||r,keyboardSpace:this.state.keyboardSpace,getScrollResponder:this.getScrollResponder,scrollToPosition:this.scrollToPosition,scrollToEnd:this.scrollToEnd,scrollForExtraHeightOnAndroid:this.scrollForExtraHeightOnAndroid,scrollToFocusedInput:this.scrollToFocusedInput,resetKeyboardSpace:this._resetKeyboardSpace,handleOnScroll:this._handleOnScroll,onScroll:this._onScroll}))}}]),t})(n.default.Component),o.propTypes={viewIsInsideTabBar:i.default.bool,resetScrollToCoords:i.default.shape({x:i.default.number.isRequired,y:i.default.number.isRequired}),enableResetScrollToCoords:i.default.bool,enableAutomaticScroll:i.default.bool,extraHeight:i.default.number,extraScrollHeight:i.default.number,keyboardOpeningTime:i.default.number,onScroll:i.default.func,contentContainerStyle:i.default.any,enableOnAndroid:i.default.bool,innerRef:i.default.func},o.defaultProps={enableAutomaticScroll:!0,extraHeight:u,extraScrollHeight:0,enableResetScrollToCoords:!0,keyboardOpeningTime:p,viewIsInsideTabBar:!1},r=function(){var e=this;this.getScrollResponder=function(){return e._rnkasv_keyboardView&&e._rnkasv_keyboardView.getScrollResponder()},this.scrollToPosition=function(o,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=e.getScrollResponder();l&&l.scrollResponderScrollTo({x:o,y:t,animated:r})},this.scrollToEnd=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e.getScrollResponder();t&&t.scrollResponderScrollToEnd({animated:o})},this.scrollForExtraHeightOnAndroid=function(o){e.scrollToPosition(0,e.position.y+o,!0)},this.scrollToFocusedInput=function(o,t,r){void 0===t&&(t=e.props.extraHeight||0),void 0===r&&(r=e.props.keyboardOpeningTime||0),setTimeout(function(){if(e.mountedComponent){var r=e.getScrollResponder();r&&r.scrollResponderScrollNativeHandleToKeyboard(o,t,!0)}},r)},this._updateKeyboardSpace=function(o){if(e.props.enableAutomaticScroll){var t=o.endCoordinates.height+e.props.extraScrollHeight;e.props.viewIsInsideTabBar&&(t-=c),e.setState({keyboardSpace:t});var r=s.TextInput.State.currentlyFocusedField(),l=e.getScrollResponder();if(!r||!l)return;s.UIManager.viewIsDescendantOf(r,l.getInnerViewNode(),function(l){l&&s.UIManager.measureInWindow(r,function(l,n,a,i){var d=n+i,c=o.endCoordinates.screenY,p=e.props.extraScrollHeight+e.props.extraHeight;'ios'===s.Platform.OS?d>c-p&&e._scrollToFocusedInputWithNodeHandle(r):d>c?(t-=d-c,e.setState({keyboardSpace:t}),e.scrollForExtraHeightOnAndroid(p)):d>c-p&&e.scrollForExtraHeightOnAndroid(p-(c-d))})})}e.resetCoords||e.defaultResetScrollToCoords||(e.defaultResetScrollToCoords=e.position)},this._resetKeyboardSpace=function(){var o=e.props.viewIsInsideTabBar?c+e.props.extraScrollHeight||0:e.props.extraScrollHeight||0;e.setState({keyboardSpace:o}),!1!==e.props.enableResetScrollToCoords?e.resetCoords?e.scrollToPosition(e.resetCoords.x,e.resetCoords.y,!0):e.defaultResetScrollToCoords?(e.scrollToPosition(e.defaultResetScrollToCoords.x,e.defaultResetScrollToCoords.y,!0),e.defaultResetScrollToCoords=null):e.scrollToPosition(0,0,!0):e.defaultResetScrollToCoords=null},this._scrollToFocusedInputWithNodeHandle=function(o,t,r){void 0===t&&(t=e.props.extraHeight);var l=d.default.findNodeHandle(o);e.scrollToFocusedInput(l,t+e.props.extraScrollHeight,void 0!==r?r:e.props.keyboardOpeningTime||0)},this._handleOnScroll=function(o){e.position=o.nativeEvent.contentOffset},this._handleRef=function(o){e._rnkasv_keyboardView=o,e.props.innerRef&&e.props.innerRef(e._rnkasv_keyboardView)},this._onScroll=function(o){e._handleOnScroll(o),e.props.onScroll&&e.props.onScroll(o)}},t}},997); -__d(function(t,e,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isIphoneX=o,n.ifIphoneX=a,n.getStatusBarHeight=function(t){return r.Platform.select({ios:a(t?44:30,20),android:r.StatusBar.currentHeight})};var r=e(17);function o(){var t=r.Dimensions.get('window');return!('ios'!==r.Platform.OS||r.Platform.isPad||r.Platform.isTVOS||812!==t.height&&812!==t.width)}function a(t,e){return o()?t:e}},998); -__d(function(e,l,r,t){Object.defineProperty(t,"__esModule",{value:!0});var u=l(17),a=l(997),d=babelHelpers.interopRequireDefault(a);t.default=(0,d.default)(u.ScrollView)},999); -__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(997),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.ListView)},1e3); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var u=t(17),r=t(997),d=babelHelpers.interopRequireDefault(r);a.default=(0,d.default)(u.FlatList)},1001); -__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(997),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.SectionList)},1002); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(17),i=t(794),l=babelHelpers.interopRequireDefault(i),u=a.StyleSheet.create(babelHelpers.extends({},l.default,{gridView:{flex:1},gridContainer:babelHelpers.extends({},l.default.privateKeyGridViewContainer),buttonContainer:babelHelpers.extends({},l.default.buttonContainerMultiple,{marginTop:15}),button:{width:90},textInput:{marginLeft:10},firstTextInput:{marginLeft:0}}));r.default=u},1003); -__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),i=t(297),s=t(1005),o=babelHelpers.interopRequireDefault(s),f=t(776),c=babelHelpers.interopRequireDefault(f),d=t(793),b=babelHelpers.interopRequireDefault(d),p=t(800),R=babelHelpers.interopRequireDefault(p),v=t(989),_=babelHelpers.interopRequireDefault(v),E=t(798),m=babelHelpers.interopRequireDefault(E),w=t(991),y=babelHelpers.interopRequireDefault(w),P=t(516),C=t(985),h=babelHelpers.interopRequireDefault(C),H=t(663),O=babelHelpers.interopRequireDefault(H),T=t(797),q=babelHelpers.interopRequireDefault(T),D=t(580),N=babelHelpers.interopRequireDefault(D),K=t(761),x=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.activePage=function(e){return Math.floor(e.activeRow/P.KEY_PAGE_ROW_COUNT)},a.onNextPressed=function(){a.setState(function(e){return{activeRow:Math.min(e.activeRow+1,P.KEY_ROW_COUNT-1)}})},a.onPreviousPressed=function(){a.setState(function(e){return{activeRow:Math.max(e.activeRow-1,0)}})},a.renderText=function(e){var t=e+a.activePage(a.state)*P.KEY_PAGE_LENGTH;return n.default.createElement(y.default,{editable:!1,index:t,value:a.state.mnemonic[t],label:(t+1).toString(),key:t,style:t%P.KEY_COLUMN_COUNT==0?o.default.firstTextInput:o.default.textInput})},a.state={activeRow:0,mnemonic:[]},N.default.getMnemonic().then(function(e){a.setState({mnemonic:e})}).catch(function(e){(0,K.errorAlert)(e)}),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(u.View,{style:o.default.screenContainer},n.default.createElement(c.default,null),n.default.createElement(b.default,null),n.default.createElement(u.View,{style:o.default.bodyContainer},n.default.createElement(u.View,{style:o.default.bodyTopSpacer}),n.default.createElement(R.default,{style:o.default.panelViewTransparent,childrenContainerStyle:o.default.noflex},n.default.createElement(h.default,{paragraphs:O.default.t('screens.viewPrivateKey.instructions')}),n.default.createElement(u.View,{style:o.default.gridContainer},n.default.createElement(_.default,{itemsPerRow:P.KEY_COLUMN_COUNT,rowsCount:P.KEY_PAGE_ROW_COUNT,renderItem:this.renderText,activeRow:this.state.activeRow%P.KEY_PAGE_ROW_COUNT,disableInactiveRows:!0,style:o.default.gridView})),n.default.createElement(u.View,{style:o.default.buttonContainer},n.default.createElement(m.default,{title:O.default.t('screens.viewPrivateKey.previousButton'),onPress:this.onPreviousPressed,style:o.default.button,enabled:this.state.activeRow>0}),n.default.createElement(m.default,{title:O.default.t('screens.viewPrivateKey.nextButton'),onPress:this.onNextPressed,style:o.default.button,enabled:this.state.activeRow1){var r=n.state.index;n.props.loop&&r++,i[n.state.dir]='y'===n.state.dir?l*r:o*r}n.state.offset&&o===n.state.width&&l===n.state.height||(a.offset=i),'ios'===s.Platform.OS&&n.initialRender&&n.state.total>1&&(n.scrollView.scrollTo(babelHelpers.extends({},i,{animated:!1})),n.initialRender=!1),n.setState(a)},n.loopJump=function(){if(n.state.loopJump){var t=n.state.index+(n.props.loop?1:0),e=n.scrollView;n.loopJumpTimer=setTimeout(function(){return e.setPageWithoutAnimation&&e.setPageWithoutAnimation(t)},50)}},n.autoplay=function(){Array.isArray(n.props.children)&&n.props.autoplay&&!n.internals.isScrolling&&!n.state.autoplayEnd&&(n.autoplayTimer&&clearTimeout(n.autoplayTimer),n.autoplayTimer=setTimeout(function(){if(!n.props.loop&&(n.props.autoplayDirection?n.state.index===n.state.total-1:0===n.state.index))return n.setState({autoplayEnd:!0});n.scrollBy(n.props.autoplayDirection?1:-1)},1e3*n.props.autoplayTimeout))},n.onScrollBegin=function(t){n.internals.isScrolling=!0,n.props.onScrollBeginDrag&&n.props.onScrollBeginDrag(t,n.fullState(),n)},n.onScrollEnd=function(t){n.internals.isScrolling=!1,t.nativeEvent.contentOffset||('x'===n.state.dir?t.nativeEvent.contentOffset={x:t.nativeEvent.position*n.state.width}:t.nativeEvent.contentOffset={y:t.nativeEvent.position*n.state.height}),n.updateIndex(t.nativeEvent.contentOffset,n.state.dir,function(){n.autoplay(),n.loopJump(),n.props.onMomentumScrollEnd&&n.props.onMomentumScrollEnd(t,n.fullState(),n)})},n.onScrollEndDrag=function(t){var e=t.nativeEvent.contentOffset,o=n.props,l=o.horizontal,i=o.children,a=n.state.index,r=n.internals.offset;(l?r.x:r.y)!==(l?e.x:e.y)||0!==a&&a!==i.length-1||(n.internals.isScrolling=!1)},n.updateIndex=function(t,e,o){var l=n.state,i=l.index,a=t[e]-n.internals.offset[e],r='x'===e?l.width:l.height,s=!1;if(a){i=parseInt(i+Math.round(a/r)),n.props.loop&&(i<=-1?(i=l.total-1,t[e]=r*l.total,s=!0):i>=l.total&&(i=0,t[e]=r,s=!0));var u={};u.index=i,u.loopJump=s,n.internals.offset=t,s?t[e]===n.internals.offset[e]?(u.offset={x:0,y:0},u.offset[e]=t[e]+1,n.setState(u,function(){n.setState({offset:t},o)})):(u.offset=t,n.setState(u,o)):n.setState(u,o)}},n.scrollBy=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!(n.internals.isScrolling||n.state.total<2)){var o=n.state,l=(n.props.loop?1:0)+t+n.state.index,i=0,a=0;'x'===o.dir&&(i=l*o.width),'y'===o.dir&&(a=l*o.height),'ios'!==s.Platform.OS?n.scrollView&&n.scrollView[e?'setPage':'setPageWithoutAnimation'](l):n.scrollView&&n.scrollView.scrollTo({x:i,y:a,animated:e}),n.internals.isScrolling=!0,n.setState({autoplayEnd:!1}),e&&'ios'===s.Platform.OS||setImmediate(function(){n.onScrollEnd({nativeEvent:{position:l}})})}},n.scrollViewPropOverrides=function(){var t=n.props,e={};for(var o in t)'function'==typeof t[o]&&'onMomentumScrollEnd'!==o&&'renderPagination'!==o&&'onScrollBeginDrag'!==o&&(function(){var l=t[o];e[o]=function(t){return l(t,n.fullState(),n)}})();return e},n.renderPagination=function(){if(n.state.total<=1)return null;for(var t=[],e=n.props.activeDot||i.default.createElement(s.View,{style:[{backgroundColor:n.props.activeDotColor||'#007aff',width:8,height:8,borderRadius:4,marginLeft:3,marginRight:3,marginTop:3,marginBottom:3},n.props.activeDotStyle]}),o=n.props.dot||i.default.createElement(s.View,{style:[{backgroundColor:n.props.dotColor||'rgba(0,0,0,.2)',width:8,height:8,borderRadius:4,marginLeft:3,marginRight:3,marginTop:3,marginBottom:3},n.props.dotStyle]}),l=0;l1&&void 0!==arguments[1]&&arguments[1],o=this.state||{width:0,height:0,offset:{x:0,y:0}},n={autoplayEnd:!1,loopJump:!1,offset:{}};n.total=t.children?t.children.length||1:0,o.total!==n.total||e?n.index=n.total>1?Math.min(t.index,n.total-1):0:n.index=o.index;var l=s.Dimensions.get('window'),i=l.width,a=l.height;return n.dir=!1===t.horizontal?'y':'x',t.width?n.width=t.width:this.state&&this.state.width?n.width=this.state.width:n.width=i,t.height?n.height=t.height:this.state&&this.state.height?n.height=this.state.height:n.height=a,n.offset[n.dir]='y'===n.dir?a*t.index:i*t.index,this.internals=babelHelpers.extends({},this.internals,{isScrolling:!1}),n}},{key:"fullState",value:function(){return babelHelpers.extends({},this.state,this.internals)}},{key:"render",value:function(){this.state,this.props;var t=this.state,e=t.index,o=t.total,n=t.width,l=t.height,a=this.props,r=a.children,d=a.containerStyle,p=a.loop,c=a.loadMinimal,f=a.loadMinimalSize,h=a.loadMinimalLoader,m=a.renderPagination,y=a.showsButtons,g=a.showsPagination,b=p?1:0,w=[],S=[{width:n,height:l},u.slide],x={width:n,height:l,flex:1,justifyContent:'center',alignItems:'center'};return o>1?(w=Object.keys(r),p&&(w.unshift(o-1+''),w.push('0')),w=w.map(function(t,o){return c?o>=e+b-f&&o<=e+b+f?i.default.createElement(s.View,{style:S,key:o},r[t]):i.default.createElement(s.View,{style:x,key:o},h||i.default.createElement(s.ActivityIndicator,null)):i.default.createElement(s.View,{style:S,key:o},r[t])})):w=i.default.createElement(s.View,{style:S,key:0},r),i.default.createElement(s.View,{style:[u.container,d],onLayout:this.onLayout},this.renderScrollView(w),g&&(m?m(e,o,this):this.renderPagination()),this.renderTitle(),y&&this.renderButtons())}}]),e})(l.Component);d.propTypes={horizontal:r.default.bool,children:r.default.node.isRequired,containerStyle:r.default.oneOfType([r.default.object,r.default.number]),style:r.default.oneOfType([r.default.object,r.default.number]),scrollViewStyle:r.default.oneOfType([r.default.object,r.default.number]),pagingEnabled:r.default.bool,showsHorizontalScrollIndicator:r.default.bool,showsVerticalScrollIndicator:r.default.bool,bounces:r.default.bool,scrollsToTop:r.default.bool,removeClippedSubviews:r.default.bool,automaticallyAdjustContentInsets:r.default.bool,showsPagination:r.default.bool,showsButtons:r.default.bool,disableNextButton:r.default.bool,loadMinimal:r.default.bool,loadMinimalSize:r.default.number,loadMinimalLoader:r.default.element,loop:r.default.bool,autoplay:r.default.bool,autoplayTimeout:r.default.number,autoplayDirection:r.default.bool,index:r.default.number,renderPagination:r.default.func,dotStyle:r.default.oneOfType([r.default.object,r.default.number]),activeDotStyle:r.default.oneOfType([r.default.object,r.default.number]),dotColor:r.default.string,activeDotColor:r.default.string,onIndexChanged:r.default.func},d.defaultProps={horizontal:!0,pagingEnabled:!0,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,bounces:!1,scrollsToTop:!1,removeClippedSubviews:!0,automaticallyAdjustContentInsets:!1,showsPagination:!0,showsButtons:!1,disableNextButton:!1,loop:!0,loadMinimal:!1,loadMinimalSize:1,autoplay:!1,autoplayTimeout:2.5,autoplayDirection:!0,index:0,onIndexChanged:function(){return null}},n.default=d},1010); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),u=t(17),o=t(297),s=t(366),i=babelHelpers.interopRequireDefault(s),d=t(624),f=babelHelpers.interopRequireDefault(d),c=t(515),p=babelHelpers.interopRequireDefault(c),m=t(1012),y=babelHelpers.interopRequireDefault(m),b=t(776),h=babelHelpers.interopRequireDefault(b),E=t(793),g=babelHelpers.interopRequireDefault(E),v=t(523),S=t(522),C=t(623),x=t(805),T=babelHelpers.interopRequireDefault(x),w=t(812),H=t(663),D=babelHelpers.interopRequireDefault(H),R=t(761),V=t(800),q=babelHelpers.interopRequireDefault(V),I=t(797),B=babelHelpers.interopRequireDefault(I),N=t(802),P=babelHelpers.interopRequireDefault(N),k=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var l=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.onSendPress=function(){!1!==l.validateSendData()&&l.props.onSendMoney(l.state.amountString,l.state.toEthAddress)},l.state={amountString:'',toEthAddress:''},l.updateNavigation(),l}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavBarButtonPress",value:function(e){"SEND_BUTTON"===e&&this.onSendPress()}}]),babelHelpers.createClass(t,[{key:"updateNavigation",value:function(){this.props.navigator.setButtons({rightButtons:[{title:D.default.t('common.send'),id:"SEND_BUTTON",buttonColor:p.default.navigationButtonColor,disabled:!this.validateSendData()}]})}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.moneySendingError!==e.moneySendingError&&null!==this.props.moneySendingError&&!0!==this.props.moneySendingError.isCancelled?(0,R.errorAlert)(this.props.moneySendingError):this.props.moneySendingInProgress!==e.moneySendingInProgress&&this.props.moneySendingSuccess&&(0,R.alert)('successTransaction',[{name:'confirm',onPress:function(){return t.props.navigator.pop()}}]),this.updateNavigation()}},{key:"resolveWallet",value:function(){return(0,v.resolveWallet)(this.props.wallets||[],this.props.selectedWalletCurrency||'')}},{key:"validateSendData",value:function(){var e=this.resolveWallet();if(null===e)return!1;var l=t.parseAmount(this.state.amountString),a=t.parseAmount(e.balance||'0');return l>1e-17&&l<=a&&!i.default.isEmpty(this.state.toEthAddress)}},{key:"render",value:function(){var e=this,t=this.resolveWallet();return t?r.default.createElement(u.View,{style:y.default.screenContainer},r.default.createElement(h.default,null),r.default.createElement(g.default,null),r.default.createElement(u.View,{style:y.default.bodyContainer},r.default.createElement(P.default,{title:D.default.t('screens.sendMoney.title')}),r.default.createElement(u.ScrollView,{style:y.default.scrollView,contentContainerStyle:y.default.noflex},r.default.createElement(q.default,{style:y.default.panelView,childrenContainerStyle:y.default.noflex},r.default.createElement(u.View,{style:y.default.row},r.default.createElement(u.Image,{style:y.default.icon,source:'ETH'===t.currency?f.default.ethereumLogo:f.default.patLogo,resizeMode:"contain"}),r.default.createElement(u.View,{style:y.default.textColumn},r.default.createElement(u.Text,{style:y.default.bodyBold},'ETH'===t.currency?D.default.t('common.ethereum'):D.default.t('common.bitnationPat')),r.default.createElement(u.Text,{style:y.default.currencyMedium},(0,w.prettyWalletBalance)(t,t.currency))))),r.default.createElement(q.default,{style:[y.default.panelViewTransparent,y.default.pannelViewRow],childrenContainerStyle:y.default.noflex},r.default.createElement(u.View,{style:y.default.formRow},r.default.createElement(u.View,{style:y.default.fieldsContainer},r.default.createElement(u.Text,{style:y.default.amountLabelText},D.default.t('common.amount')),r.default.createElement(u.View,{style:y.default.formRow},r.default.createElement(u.View,{style:y.default.textInputContainer},r.default.createElement(u.Text,{style:y.default.currencyPlaceholder},t.currency),r.default.createElement(u.TextInput,{style:[y.default.textInputInContainer,y.default.currencyLarge,y.default.currencyNumber],placeholder:"0.00000",placeholderTextColor:p.default.placeholderTextColor,onChangeText:function(t){return e.setState({amountString:t})},value:this.state.amountString,keyboardType:"decimal-pad"}))),r.default.createElement(u.Text,{style:y.default.toLabelText},D.default.t('common.to')),r.default.createElement(u.View,{style:y.default.textInputContainer},r.default.createElement(u.TextInput,{style:[y.default.textInputInContainer,y.default.currencyLarge,y.default.currencyNumber],placeholder:"0x",placeholderTextColor:p.default.placeholderTextColor,keyboardType:"default",autoCapitalize:"none",autoCorrect:!1,onChangeText:function(t){return e.setState({toEthAddress:t})},value:this.state.toEthAddress}))))))),this.props.moneySendingInProgress?r.default.createElement(T.default,null):null):r.default.createElement(u.View,null)}}],[{key:"parseAmount",value:function(e){return parseFloat(e)||0}}]),t})(B.default);k.navigatorButtons=babelHelpers.extends({},C.androidNavigationButtons);a.default=(0,o.connect)(function(e){return babelHelpers.extends({},e.wallet)},function(e){return{onSendMoney:function(t,l){e((0,S.sendMoney)(t,l))}}})(k)},1011); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(777),o=t(515),l=babelHelpers.interopRequireDefault(o),i=t(794),d=babelHelpers.interopRequireDefault(i),u=a.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default,{row:{flexDirection:'row',justifyContent:'flex-start',alignItems:'stretch'},textColumn:{flex:1,justifyContent:'flex-start'},icon:{marginLeft:-5,width:35,marginRight:20,marginTop:10},textInputContainer:{backgroundColor:l.default.white,borderRadius:5,flexDirection:'row',alignItems:'center',justifyContent:'flex-end',paddingLeft:25},pannelViewRow:{paddingLeft:0,paddingRight:0},textInputInContainer:babelHelpers.extends({},d.default.textInput,{marginBottom:0,marginTop:0,borderBottomWidth:0}),currencyNumber:{fontWeight:'normal',color:l.default.BitnationDarkGrayColor},currencyPlaceholder:babelHelpers.extends({},d.default.currencyLarge,{color:l.default.placeholderTextColor,marginTop:6,fontSize:15,marginRight:12}),amountLabelText:babelHelpers.extends({},d.default.footnote,{marginLeft:5}),toLabelText:babelHelpers.extends({},d.default.footnote,{marginLeft:5,marginTop:10}),toTextInput:babelHelpers.extends({},d.default.textInput,{marginTop:0})}));r.default=u},1012); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),n=babelHelpers.interopRequireDefault(a),s=t(17),u=t(297),o=t(1014),i=babelHelpers.interopRequireDefault(o),d=t(793),c=babelHelpers.interopRequireDefault(d),f=t(776),b=babelHelpers.interopRequireDefault(f),p=t(800),h=babelHelpers.interopRequireDefault(p),y=t(623),H=t(663),v=babelHelpers.interopRequireDefault(H),m=t(802),A=babelHelpers.interopRequireDefault(m),C=(function(e){function t(){var e,l,r,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,u=Array(n),o=0;o=0&&e.zoom<=100&&(t.zoom=parseInt(e.zoom)),'string'==typeof e.orientation&&(t.orientation=f.constants.Orientation[e.orientation]),'string'==typeof e.torchMode&&(t.torchMode=f.constants.TorchMode[e.torchMode]),'string'==typeof e.type&&(t.type=f.constants.Type[e.type]),'string'==typeof e.captureQuality&&(t.captureQuality=f.constants.CaptureQuality[e.captureQuality]),'string'==typeof e.captureMode&&(t.captureMode=f.constants.CaptureMode[e.captureMode]),'string'==typeof e.captureTarget&&(t.captureTarget=f.constants.CaptureTarget[e.captureTarget]),'function'!=typeof e.onBarCodeRead&&(t.barCodeTypes=[]),t.barcodeScannerEnabled='function'==typeof e.onBarCodeRead,t}var f=(function(e){function t(){babelHelpers.classCallCheck(this,t);var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._setReference=function(t){t?(e._cameraRef=t,e._cameraHandle=(0,d.findNodeHandle)(t)):(e._cameraRef=null,e._cameraHandle=null)},e._onBarCodeRead=function(t){e.props.onBarCodeRead&&e.props.onBarCodeRead(t)},e.state={isAuthorized:!1,isAuthorizationChecked:!1,isRecording:!1},e._cameraRef=null,e._cameraHandle=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setNativeProps",value:function(e){this._cameraRef.setNativeProps(e)}}]),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){var e,a,o,r;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return this._addOnBarCodeReadListener(),this._addOnFocusChanged(),this._addOnZoomChanged(),e=c({captureMode:this.props.captureMode}),a=e.captureMode,o=this.props.captureAudio&&a===t.constants.CaptureMode.video,n.next=7,regeneratorRuntime.awrap((0,u.requestPermissions)(o,t,this.props.permissionDialogTitle,this.props.permissionDialogMessage));case 7:r=n.sent,this.setState({isAuthorized:r,isAuthorizationChecked:!0});case 9:case"end":return n.stop()}},null,this)}},{key:"componentWillUnmount",value:function(){this._removeOnBarCodeReadListener(),this._removeOnFocusChanged(),this._removeOnZoomChanged(),this.state.isRecording&&this.stopCapture()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.onBarCodeRead,o=t.onFocusChanged,r=t.onZoomChanged;a!==e.onBarCodeRead&&this._addOnBarCodeReadListener(e),o!==!e.onFocusChanged&&this._addOnFocusChanged(e),r!==!e.onZoomChanged&&this._addOnZoomChanged(e)}},{key:"_addOnBarCodeReadListener",value:function(e){var t=(e||this.props).onBarCodeRead;this._removeOnBarCodeReadListener(),t&&(this.cameraBarCodeReadListener=d.Platform.select({ios:d.NativeAppEventEmitter.addListener('CameraBarCodeRead',this._onBarCodeRead),android:d.DeviceEventEmitter.addListener('CameraBarCodeReadAndroid',this._onBarCodeRead)}))}},{key:"_addOnFocusChanged",value:function(e){if('ios'===d.Platform.OS){var t=(e||this.props).onFocusChanged;this.focusListener=d.NativeAppEventEmitter.addListener('focusChanged',t)}}},{key:"_addOnZoomChanged",value:function(e){if('ios'===d.Platform.OS){var t=(e||this.props).onZoomChanged;this.zoomListener=d.NativeAppEventEmitter.addListener('zoomChanged',t)}}},{key:"_removeOnBarCodeReadListener",value:function(){var e=this.cameraBarCodeReadListener;e&&e.remove()}},{key:"_removeOnFocusChanged",value:function(){var e=this.focusListener;e&&e.remove()}},{key:"_removeOnZoomChanged",value:function(){var e=this.zoomListener;e&&e.remove()}},{key:"render",value:function(){l.base,this.props.style;var e=c(this.props);return this.state.isAuthorized?n.default.createElement(h,babelHelpers.extends({ref:this._setReference},e)):this.state.isAuthorizationChecked?this.props.notAuthorizedView:this.props.pendingAuthorizationView}},{key:"capture",value:function(e){var a=c(this.props);return(e=babelHelpers.extends({audio:a.captureAudio,barCodeTypes:a.barCodeTypes,mode:a.captureMode,playSoundOnCapture:a.playSoundOnCapture,target:a.captureTarget,quality:a.captureQuality,type:a.type,title:'',description:'',mirrorImage:a.mirrorImage,fixOrientation:a.fixOrientation,cropToPreview:a.cropToPreview},e)).mode===t.constants.CaptureMode.video&&(e.totalSeconds=e.totalSeconds>-1?e.totalSeconds:-1,e.preferredTimeScale=e.preferredTimeScale||30,e.cropToPreview=!1,this.setState({isRecording:!0})),p.capture(e)}},{key:"startPreview",value:function(){'android'===d.Platform.OS?d.UIManager.dispatchViewManagerCommand(this._cameraHandle,d.UIManager.RCTCamera.Commands.startPreview,[]):p.startPreview()}},{key:"stopPreview",value:function(){'android'===d.Platform.OS?d.UIManager.dispatchViewManagerCommand(this._cameraHandle,d.UIManager.RCTCamera.Commands.stopPreview,[]):p.stopPreview()}},{key:"stopCapture",value:function(){return this.state.isRecording?(this.setState({isRecording:!1}),p.stopCapture()):Promise.resolve('Not Recording.')}},{key:"getFOV",value:function(){return p.getFOV()}},{key:"hasFlash",value:function(){if('android'===d.Platform.OS){var e=c(this.props);return p.hasFlash({type:e.type})}return p.hasFlash()}},{key:"setZoom",value:function(e){if('android'===d.Platform.OS){var t=c(this.props);return p.setZoom({type:t.type},e)}return p.setZoom(e)}}]),t})(r.Component);f.constants={Aspect:p.Aspect,BarCodeType:p.BarCodeType,Type:p.Type,CaptureMode:p.CaptureMode,CaptureTarget:p.CaptureTarget,CaptureQuality:p.CaptureQuality,Orientation:p.Orientation,FlashMode:p.FlashMode,Zoom:p.Zoom,TorchMode:p.TorchMode},f.propTypes=babelHelpers.extends({},d.ViewPropTypes,{aspect:s.default.oneOfType([s.default.string,s.default.number]),captureAudio:s.default.bool,captureMode:s.default.oneOfType([s.default.string,s.default.number]),captureQuality:s.default.oneOfType([s.default.string,s.default.number]),captureTarget:s.default.oneOfType([s.default.string,s.default.number]),defaultOnFocusComponent:s.default.bool,flashMode:s.default.oneOfType([s.default.string,s.default.number]),zoom:s.default.oneOfType([s.default.string,s.default.number]),keepAwake:s.default.bool,onBarCodeRead:s.default.func,barcodeScannerEnabled:s.default.bool,cropToPreview:s.default.bool,clearWindowBackground:s.default.bool,onFocusChanged:s.default.func,onZoomChanged:s.default.func,mirrorImage:s.default.bool,fixOrientation:s.default.bool,barCodeTypes:s.default.array,orientation:s.default.oneOfType([s.default.string,s.default.number]),playSoundOnCapture:s.default.bool,torchMode:s.default.oneOfType([s.default.string,s.default.number]),type:s.default.oneOfType([s.default.string,s.default.number]),permissionDialogTitle:s.default.string,permissionDialogMessage:s.default.string,notAuthorizedView:s.default.element,pendingAuthorizationView:s.default.element}),f.defaultProps={aspect:p.Aspect.fill,type:p.Type.back,orientation:p.Orientation.auto,fixOrientation:!1,captureAudio:!1,captureMode:p.CaptureMode.still,captureTarget:p.CaptureTarget.cameraRoll,captureQuality:p.CaptureQuality.high,defaultOnFocusComponent:!0,flashMode:p.FlashMode.off,zoom:0,playSoundOnCapture:!0,torchMode:p.TorchMode.off,mirrorImage:!1,cropToPreview:!1,clearWindowBackground:!1,barCodeTypes:Object.values(p.BarCodeType),permissionDialogTitle:'',permissionDialogMessage:'',notAuthorizedView:n.default.createElement(d.View,{style:l.authorizationContainer},n.default.createElement(d.Text,{style:l.notAuthorizedText},"Camera not authorized")),pendingAuthorizationView:n.default.createElement(d.View,{style:l.authorizationContainer},n.default.createElement(d.ActivityIndicator,{size:"small"}))},f.checkDeviceAuthorizationStatus=p.checkDeviceAuthorizationStatus,f.checkVideoAuthorizationStatus=p.checkVideoAuthorizationStatus,f.checkAudioAuthorizationStatus=p.checkAudioAuthorizationStatus,o.default=f;o.constants=f.constants;var h=(0,d.requireNativeComponent)('RCTCamera',f,{nativeOnly:{testID:!0,renderToHardwareTextureAndroid:!0,accessibilityLabel:!0,importantForAccessibility:!0,accessibilityLiveRegion:!0,accessibilityComponentType:!0,onLayout:!0}})},1019); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.requestPermissions=void 0;var s=this,i=r(17);n.requestPermissions=function(e,r,t,n){var a,o,u,c;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if('ios'!==i.Platform.OS){s.next=9;break}if(!(a=e?r.checkDeviceAuthorizationStatus:r.checkVideoAuthorizationStatus)){s.next=7;break}return s.next=5,regeneratorRuntime.awrap(a());case 5:return o=s.sent,s.abrupt("return",o);case 7:s.next=15;break;case 9:if('android'!==i.Platform.OS){s.next=15;break}return s.next=12,regeneratorRuntime.awrap(i.PermissionsAndroid.request(i.PermissionsAndroid.PERMISSIONS.CAMERA,{title:t,message:n}));case 12:return u=s.sent,c=i.Platform.Version>=23?u===i.PermissionsAndroid.RESULTS.GRANTED:!0===u,s.abrupt("return",c);case 15:return s.abrupt("return",!0);case 16:case"end":return s.stop()}},null,s)}},1020); -__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Constants=void 0;var a=t(51),r=babelHelpers.interopRequireDefault(a),i=t(105),s=babelHelpers.interopRequireDefault(i),c=t(366),u=t(17),l=t(1020),d=u.StyleSheet.create({authorizationContainer:{flex:1,alignItems:'center',justifyContent:'center'},notAuthorizedText:{textAlign:'center',fontSize:16}}),p={READY:'READY',PENDING_AUTHORIZATION:'PENDING_AUTHORIZATION',NOT_AUTHORIZED:'NOT_AUTHORIZED'},f=u.NativeModules.RNCameraManager||u.NativeModules.RNCameraModule||{stubbed:!0,Type:{back:1},AutoFocus:{on:1},FlashMode:{off:1},WhiteBalance:{},BarCodeType:{},FaceDetection:{fast:1,Mode:{},Landmarks:{none:0},Classifications:{none:0}},GoogleVisionBarcodeDetection:{BarcodeType:0}},h=500,y=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o._onMountError=function(e){var t=e.nativeEvent;o.props.onMountError&&o.props.onMountError(t)},o._onCameraReady=function(){o.props.onCameraReady&&o.props.onCameraReady()},o._onObjectDetected=function(e){return function(t){var n=t.nativeEvent,a=n.type;o._lastEvents[a]&&o._lastEventsTimes[a]&&JSON.stringify(n)===o._lastEvents[a]&&new Date-o._lastEventsTimes[a]=0&&(e.setState({joined:!0}),e.connection.on('msg',function(t){var n=(0,D.default)([t]);e.setState(function(e){return{messages:c.GiftedChat.append(e.messages,n)}})}))})}}},{key:"componentWillUnmount",value:function(){null!==this.connection&&void 0!==this.connection&&this.connection.disconnect()}},{key:"onSend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!0===this.props.isBot){var t=[{_id:this.state.messages.length+1,text:R.default.reply(e[0].text),createdAt:new Date,user:{_id:2,name:'Dr. FreudBot'}}];this.setState(function(t){return{messages:c.GiftedChat.append(t.messages,e)}}),this.setState(function(e){return{messages:c.GiftedChat.append(e.messages,t)}})}else if(!0===this.state.joined){var n={nation_id:this.nationId,msg:e[0].text,from:this.props.user?this.props.user.name:'anonymous',userId:this.props.user?this.props.user.id:'anonymous'};this.connection.emit('room:msg',n)}}},{key:"render",value:function(){var e=this,t={_id:this.props.user?this.props.user.id:'anonymous',name:this.props.user?this.props.user.name:'anonymous'};return o.default.createElement(i.View,{style:h.default.container},o.default.createElement(g.default,null),o.default.createElement(v.default,{navBarHidden:!1}),o.default.createElement(c.GiftedChat,{messages:this.state.messages,onSend:function(t){return e.onSend(t)},user:t,bottomOffset:'ios'===i.Platform.OS?48.5:0,renderComposer:function(e){return o.default.createElement(c.Composer,babelHelpers.extends({},e,{textInputStyle:h.default.composer}))},renderInputToolbar:function(e){return o.default.createElement(c.InputToolbar,babelHelpers.extends({},e,{containerStyle:h.default.inputToolbar}))},renderBubble:function(e){return o.default.createElement(c.Bubble,babelHelpers.extends({},e,{customTextStyle:h.default.customTextStyle,wrapperStyle:{left:h.default.leftBubbleWrapper,right:h.default.rightBubbleWrapper},textStyle:{left:h.default.leftTextStyle,right:h.default.rightTextStyle}}))}}),this.props.isFetching&&o.default.createElement(y.default,null))}}]),t})(s.Component);r.default=(0,a.connect)(function(e){return{nations:e.nations.nations,nationId:e.nations.openedNationId,user:(0,T.getCurrentAccount)(e.accounts),isFetching:e.chat.isFetching}},function(e){return{showSpinner:function(){return e((0,m.showSpinner)())},hideSpinner:function(){return e((0,m.hideSpinner)())}}})(I)},1024); -__d(function(o,e,n,c){var r=e(1026),t=e(1031),i=e(1038),a=e(1028)('socket.io-client');n.exports=c=u;var s=c.managers={};function u(o,e){'object'==typeof o&&(e=o,o=void 0),e=e||{};var n,c=r(o),t=c.source,u=c.id,p=c.path,f=s[u]&&p in s[u].nsps;return e.forceNew||e['force new connection']||!1===e.multiplex||f?(a('ignoring socket cache for %s',t),n=i(t,e)):(s[u]||(a('new io instance for %s',t),s[u]=i(t,e)),n=s[u]),c.query&&!e.query&&(e.query=c.query),n.socket(c.path,e)}c.protocol=t.protocol,c.connect=u,c.Manager=e(1038),c.Socket=e(1063)},1025); -__d(function(t,o,r,p){var s=o(1027),c=o(1028)('socket.io-client:url');r.exports=function(o,r){var p=o;r=r||t.location,null==o&&(o=r.protocol+'//'+r.host);'string'==typeof o&&('/'===o.charAt(0)&&(o='/'===o.charAt(1)?r.protocol+o:r.host+o),/^(https?|wss?):\/\//.test(o)||(c('protocol-less url %s',o),o=void 0!==r?r.protocol+'//'+o:'https://'+o),c('parse %s',o),p=s(o));p.port||(/^(http|ws)$/.test(p.protocol)?p.port='80':/^(http|ws)s$/.test(p.protocol)&&(p.port='443'));p.path=p.path||'/';var l=-1!==p.host.indexOf(':')?'['+p.host+']':p.host;return p.id=p.protocol+'://'+l+':'+p.port,p.href=p.protocol+'://'+l+(r&&r.port===p.port?'':':'+p.port),p}},1026); -__d(function(r,t,e,s){var o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];e.exports=function(r){var t=r,e=r.indexOf('['),s=r.indexOf(']');-1!=e&&-1!=s&&(r=r.substring(0,e)+r.substring(e,s).replace(/:/g,';')+r.substring(s,r.length));for(var i=o.exec(r||''),u={},n=14;n--;)u[a[n]]=i[n]||'';return-1!=e&&-1!=s&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,':'),u.authority=u.authority.replace('[','').replace(']','').replace(/;/g,':'),u.ipv6uri=!0),u}},1027); -__d(function(e,C,o,n){function t(){var e;try{e=n.storage.debug}catch(e){}return!e&&'undefined'!=typeof process&&'env'in process&&(e=process.env.DEBUG),e}(n=o.exports=C(1029)).log=function(){return'object'==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var C=this.useColors;if(e[0]=(C?'%c':'')+this.namespace+(C?' %c':' ')+e[0]+(C?'%c ':' ')+'+'+n.humanize(this.diff),!C)return;var o='color: '+this.color;e.splice(1,0,o,'color: inherit');var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){'%%'!==e&&'%c'===e&&(r=++t)}),e.splice(r,0,o)},n.save=function(e){try{null==e?n.storage.removeItem('debug'):n.storage.debug=e}catch(e){}},n.load=t,n.useColors=function(){if('undefined'!=typeof window&&window.process&&'renderer'===window.process.type)return!0;if('undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return'undefined'!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||'undefined'!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1028); -__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i0)return(function(e){if((e=String(e)).length>100)return;var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!s)return;var r=parseFloat(s[1]);switch((s[2]||'ms').toLowerCase()){case'years':case'year':case'yrs':case'yr':case'y':return r*u;case'days':case'day':case'd':return r*i;case'hours':case'hour':case'hrs':case'hr':case'h':return r*t;case'minutes':case'minute':case'mins':case'min':case'm':return r*c;case'seconds':case'second':case'secs':case'sec':case's':return r*a;case'milliseconds':case'millisecond':case'msecs':case'msec':case'ms':return r;default:return}})(e);if('number'===n&&!1===isNaN(e))return s.long?o(r=e,i,'day')||o(r,t,'hour')||o(r,c,'minute')||o(r,a,'second')||r+' ms':(function(e){if(e>=i)return Math.round(e/i)+'d';if(e>=t)return Math.round(e/t)+'h';if(e>=c)return Math.round(e/c)+'m';if(e>=a)return Math.round(e/a)+'s';return e+'ms'})(e);throw new Error('val is not a non-empty string or a valid number. val='+JSON.stringify(e))}},1030); -__d(function(t,r,e,n){var o=r(1032)('socket.io-parser'),c=r(1034),i=r(1035),a=r(1036),s=r(1037);function u(){}n.protocol=4,n.types=['CONNECT','DISCONNECT','EVENT','ACK','ERROR','BINARY_EVENT','BINARY_ACK'],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=u,n.Decoder=p;var f=n.ERROR+'"encode error"';function h(t){var r=''+t.type;if(n.BINARY_EVENT!==t.type&&n.BINARY_ACK!==t.type||(r+=t.attachments+'-'),t.nsp&&'/'!==t.nsp&&(r+=t.nsp+','),null!=t.id&&(r+=t.id),null!=t.data){var e=(function(t){try{return JSON.stringify(t)}catch(t){return!1}})(t.data);if(!1===e)return f;r+=e}return o('encoded %j as %s',t,r),r}function p(){this.reconstructor=null}function d(t){this.reconPack=t,this.buffers=[]}function N(t){return{type:n.ERROR,data:'parser error: '+t}}u.prototype.encode=function(t,r){(o('encoding packet %j',t),n.BINARY_EVENT===t.type||n.BINARY_ACK===t.type)?(function(t,r){i.removeBlobs(t,function(t){var e=i.deconstructPacket(t),n=h(e.packet),o=e.buffers;o.unshift(n),r(o)})})(t,r):r([h(t)])},c(p.prototype),p.prototype.add=function(t){var r;if('string'==typeof t)r=(function(t){var r=0,e={type:Number(t.charAt(0))};if(null==n.types[e.type])return N('unknown packet type '+e.type);if(n.BINARY_EVENT===e.type||n.BINARY_ACK===e.type){for(var c='';'-'!==t.charAt(++r)&&(c+=t.charAt(r),r!=t.length););if(c!=Number(c)||'-'!==t.charAt(r))throw new Error('Illegal attachments');e.attachments=Number(c)}if('/'===t.charAt(r+1))for(e.nsp='';++r;){var i=t.charAt(r);if(','===i)break;if(e.nsp+=i,r===t.length)break}else e.nsp='/';var s=t.charAt(r+1);if(''!==s&&Number(s)==s){for(e.id='';++r;){var i=t.charAt(r);if(null==i||Number(i)!=i){--r;break}if(e.id+=t.charAt(r),r===t.length)break}e.id=Number(e.id)}if(t.charAt(++r)){var u=(function(t){try{return JSON.parse(t)}catch(t){return!1}})(t.substr(r)),f=!1!==u&&(e.type===n.ERROR||a(u));if(!f)return N('invalid payload');e.data=u}return o('decoded %s as %j',t,e),e})(t),n.BINARY_EVENT===r.type||n.BINARY_ACK===r.type?(this.reconstructor=new d(r),0===this.reconstructor.reconPack.attachments&&this.emit('decoded',r)):this.emit('decoded',r);else{if(!s(t)&&!t.base64)throw new Error('Unknown type: '+t);if(!this.reconstructor)throw new Error('got binary data when not reconstructing a packet');(r=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit('decoded',r))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var r=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},1031); -__d(function(e,C,o,n){function t(){var e;try{e=n.storage.debug}catch(e){}return!e&&'undefined'!=typeof process&&'env'in process&&(e=process.env.DEBUG),e}(n=o.exports=C(1033)).log=function(){return'object'==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var C=this.useColors;if(e[0]=(C?'%c':'')+this.namespace+(C?' %c':' ')+e[0]+(C?'%c ':' ')+'+'+n.humanize(this.diff),!C)return;var o='color: '+this.color;e.splice(1,0,o,'color: inherit');var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){'%%'!==e&&'%c'===e&&(r=++t)}),e.splice(r,0,o)},n.save=function(e){try{null==e?n.storage.removeItem('debug'):n.storage.debug=e}catch(e){}},n.load=t,n.useColors=function(){if('undefined'!=typeof window&&window.process&&'renderer'===window.process.type)return!0;if('undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return'undefined'!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||'undefined'!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1032); -__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},d.prototype.cleanup=function(){p('cleanup');for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)p('reconnect failed'),this.backoff.reset(),this.emitAll('reconnect_failed'),this.reconnecting=!1;else{var e=this.backoff.duration();p('will wait %dms before reconnect attempt',e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(p('attempting reconnect'),t.emitAll('reconnect_attempt',t.backoff.attempts),t.emitAll('reconnecting',t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(p('reconnect attempt error'),t.reconnecting=!1,t.reconnect(),t.emitAll('reconnect_error',e.data)):(p('reconnect success'),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},d.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll('reconnect',t)}},1038); -__d(function(r,e,o,p){o.exports=e(1040),o.exports.parser=e(1047)},1039); -__d(function(e,t,r,s){var o=t(1041),i=t(1034),n=t(1059)('engine.io-client:socket'),a=t(483),p=t(1047),h=t(1027),c=t(1056);function u(t,r){if(!(this instanceof u))return new u(t,r);r=r||{},t&&'object'==typeof t&&(r=t,t=null),t?(t=h(t),r.hostname=t.host,r.secure='https'===t.protocol||'wss'===t.protocol,r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=h(r.host).host),this.secure=null!=r.secure?r.secure:e.location&&'https:'===location.protocol,r.hostname&&!r.port&&(r.port=this.secure?'443':'80'),this.agent=r.agent||!1,this.hostname=r.hostname||(e.location?location.hostname:'localhost'),this.port=r.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=r.query||{},'string'==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==r.upgrade,this.path=(r.path||'/engine.io').replace(/\/$/,'')+'/',this.forceJSONP=!!r.forceJSONP,this.jsonp=!1!==r.jsonp,this.forceBase64=!!r.forceBase64,this.enablesXDR=!!r.enablesXDR,this.timestampParam=r.timestampParam||'t',this.timestampRequests=r.timestampRequests,this.transports=r.transports||['polling','websocket'],this.transportOptions=r.transportOptions||{},this.readyState='',this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=r.policyPort||843,this.rememberUpgrade=r.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=r.onlyBinaryUpgrades,this.perMessageDeflate=!1!==r.perMessageDeflate&&(r.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=r.pfx||null,this.key=r.key||null,this.passphrase=r.passphrase||null,this.cert=r.cert||null,this.ca=r.ca||null,this.ciphers=r.ciphers||null,this.rejectUnauthorized=void 0===r.rejectUnauthorized||r.rejectUnauthorized,this.forceNode=!!r.forceNode;var s='object'==typeof e&&e;s.global===s&&(r.extraHeaders&&Object.keys(r.extraHeaders).length>0&&(this.extraHeaders=r.extraHeaders),r.localAddress&&(this.localAddress=r.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}r.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=p.protocol,u.Socket=u,u.Transport=t(1046),u.transports=t(1041),u.parser=t(1047),u.prototype.createTransport=function(e){n('creating transport "%s"',e);var t=(function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t})(this.query);t.EIO=p.protocol,t.transport=e;var r=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new o[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf('websocket'))e='websocket';else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit('error','No transports available')},0)}e=this.transports[0]}this.readyState='opening';try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){n('setting transport %s',e.name);var t=this;this.transport&&(n('clearing existing transport %s',this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on('drain',function(){t.onDrain()}).on('packet',function(e){t.onPacket(e)}).on('error',function(e){t.onError(e)}).on('close',function(){t.onClose('transport close')})},u.prototype.probe=function(e){n('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,s=this;function o(){if(s.onlyBinaryUpgrades){var o=!this.supportsBinary&&s.transport.supportsBinary;r=r||o}r||(n('probe transport "%s" opened',e),t.send([{type:'ping',data:'probe'}]),t.once('packet',function(o){if(!r)if('pong'===o.type&&'probe'===o.data){if(n('probe transport "%s" pong',e),s.upgrading=!0,s.emit('upgrading',t),!t)return;u.priorWebsocketSuccess='websocket'===t.name,n('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){r||'closed'!==s.readyState&&(n('changing transport and sending upgrade packet'),l(),s.setTransport(t),t.send([{type:'upgrade'}]),s.emit('upgrade',t),t=null,s.upgrading=!1,s.flush())})}else{n('probe transport "%s" failed',e);var i=new Error('probe error');i.transport=t.name,s.emit('upgradeError',i)}}))}function i(){r||(r=!0,l(),t.close(),t=null)}function a(r){var o=new Error('probe error: '+r);o.transport=t.name,i(),n('probe transport "%s" failed because of error: %s',e,r),s.emit('upgradeError',o)}function p(){a('transport closed')}function h(){a('socket closed')}function c(e){t&&e.name!==t.name&&(n('"%s" works - aborting "%s"',e.name,t.name),i())}function l(){t.removeListener('open',o),t.removeListener('error',a),t.removeListener('close',p),s.removeListener('close',h),s.removeListener('upgrading',c)}u.priorWebsocketSuccess=!1,t.once('open',o),t.once('error',a),t.once('close',p),this.once('close',h),this.once('upgrading',c),t.open()},u.prototype.onOpen=function(){if(n('socket open'),this.readyState='open',u.priorWebsocketSuccess='websocket'===this.transport.name,this.emit('open'),this.flush(),'open'===this.readyState&&this.upgrade&&this.transport.pause){n('starting upgrade probes');for(var e=0,t=this.upgrades.length;e1?{type:s[a],data:e.substring(1)}:{type:s[a]}:h}a=new Uint8Array(e)[0];var o=i(e,1);return v&&'blob'===r&&(o=new v([o])),{type:s[a],data:o}},t.decodeBase64Packet=function(e,r){var n=s[e.charAt(0)];if(!a)return{type:n,data:{base64:!0,data:e.substr(1)}};var t=a.decode(e.substr(1));return'blob'===r&&v&&(t=new v([t])),{type:n,data:t}},t.encodePayload=function(e,r,n){'function'==typeof r&&(n=r,r=null);var a=f(e);if(r&&a)return v&&!y?t.encodePayloadAsBlob(e,n):t.encodePayloadAsArrayBuffer(e,n);if(!e.length)return n('0:');p(e,function(e,n){t.encodePacket(e,!!a&&r,!1,function(e){n(null,(function(e){return e.length+':'+e})(e))})},function(e,r){return n(r.join(''))})},t.decodePayload=function(e,r,n){if('string'!=typeof e)return t.decodePayloadAsBinary(e,r,n);var a;if('function'==typeof r&&(n=r,r=null),''===e)return n(h,0,1);for(var o,f,i='',u=0,c=e.length;u0;){for(var f=new Uint8Array(a),u=0===f[0],c='',d=1;255!==f[d];d++){if(c.length>310)return n(h,0,1);c+=f[d]}a=i(a,2+c.length),c=parseInt(c);var l=i(a,0,c);if(u)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(e){var y=new Uint8Array(l);l='';for(d=0;dt&&(n=t),e>=t||e>=n||0===t)return new ArrayBuffer(0);for(var f=new Uint8Array(r),i=new Uint8Array(n-e),u=e,a=0;u=55296&&t<=56319&&o=55296&&r<=57343){if(t)throw Error('Lone surrogate U+'+r.toString(16).toUpperCase()+' is not a scalar value');return!1}return!0}function l(r,t){return d(r>>t&63|128)}function s(r,t){if(0==(4294967168&r))return d(r);var n='';return 0==(4294965248&r)?n=d(r>>6&31|192):0==(4294901760&r)?(h(r,t)||(r=65533),n=d(r>>12&15|224),n+=l(r,6)):0==(4292870144&r)&&(n=d(r>>18&7|240),n+=l(r,12),n+=l(r,6)),n+=d(63&r|128)}function p(){if(c>=a)throw Error('Invalid byte index');var r=255&u[c];if(c++,128==(192&r))return 63&r;throw Error('Invalid continuation byte')}function y(r){var t,n;if(c>a)throw Error('Invalid byte index');if(c==a)return!1;if(t=255&u[c],c++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|p())>=128)return n;throw Error('Invalid continuation byte')}if(224==(240&t)){if((n=(15&t)<<12|p()<<6|p())>=2048)return h(n,r)?n:65533;throw Error('Invalid continuation byte')}if(240==(248&t)&&(n=(7&t)<<18|p()<<12|p()<<6|p())>=65536&&n<=1114111)return n;throw Error('Invalid UTF-8 detected')}var b={version:'2.1.2',encode:function(r,t){for(var n=!1!==(t=t||{}).strict,e=v(r),o=e.length,i=-1,f='';++i65535&&(o+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=d(t);return o})(o)}};if('function'==typeof define&&'object'==typeof define.amd&&define.amd)define(function(){return b});else if(o&&!o.nodeType)if(i)i.exports=b;else{var w={}.hasOwnProperty;for(var g in b)w.call(b,g)&&(o[g]=b[g])}else t.utf8=b})(this)},1053); -__d(function(n,r,t,e){!(function(){"use strict";for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),t=0;t>2],a+=n[(3&e[t])<<4|e[t+1]>>4],a+=n[(15&e[t+1])<<2|e[t+2]>>6],a+=n[63&e[t+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},e.decode=function(n){var t,e,o,a,h,c=.75*n.length,g=n.length,i=0;"="===n[n.length-1]&&(c--,"="===n[n.length-2]&&c--);var u=new ArrayBuffer(c),d=new Uint8Array(u);for(t=0;t>4,d[i++]=(15&o)<<4|a>>2,d[i++]=(3&a)<<6|63&h;return u}})()},1054); -__d(function(e,t,r,n){var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,f=(function(){try{return 2===new Blob(['hi']).size}catch(e){return!1}})(),i=f&&(function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}})(),b=o&&o.prototype.append&&o.prototype.getBlob;function u(e){for(var t=0;t0);return t}function h(){var r=d(+new Date);return r!==o?(f=0,o=r):r+'.'+d(f++)}for(;i=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1059); -__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i';i=document.createElement(e)}catch(e){(i=document.createElement('iframe')).name=r.iframeId,i.src='javascript:0'}i.id=r.iframeId,r.form.appendChild(i),r.iframe=i}this.form.action=this.uri(),d(),e=e.replace(c,'\\\n'),this.area.value=e.replace(s,'\\n');try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){'complete'===r.iframe.readyState&&m()}:this.iframe.onload=m}},1061); -__d(function(e,t,s,o){var i,r=t(1046),n=t(1047),h=t(1056),a=t(1057),p=t(1058),c=t(1059)('engine.io-client:websocket'),u=e.WebSocket||e.MozWebSocket;if('undefined'==typeof window)try{i=t(381)}catch(e){}var f=u;function d(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=i),r.call(this,e)}f||'undefined'!=typeof window||(f=i),s.exports=d,a(d,r),d.prototype.name='websocket',d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,s={agent:this.agent,perMessageDeflate:this.perMessageDeflate};s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(s.headers=this.extraHeaders),this.localAddress&&(s.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new f(e,t):new f(e):new f(e,t,s)}catch(e){return this.emit('error',e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType='nodebuffer'):this.ws.binaryType='arraybuffer',this.addEventListeners()}},d.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError('websocket error',t)}},d.prototype.write=function(t){var s=this;this.writable=!1;for(var o=t.length,i=0,r=o;i0&&t.jitter<=1?t.jitter:0,this.attempts=0}o.exports=s,s.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),o=Math.floor(i*this.jitter*t);t=0==(1&Math.floor(10*i))?t-o:t+o}return 0|Math.min(t,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(t){this.ms=t},s.prototype.setMax=function(t){this.max=t},s.prototype.setJitter=function(t){this.jitter=t}},1067); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(1069);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},1068); -__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.utils=a.GiftedAvatar=a.Time=a.Send=a.MessageContainer=a.Message=a.LoadEarlier=a.InputToolbar=a.Day=a.Composer=a.MessageText=a.MessageImage=a.SystemMessage=a.Bubble=a.Avatar=a.Actions=a.GiftedChat=void 0;var i=t(1070),s=babelHelpers.interopRequireDefault(i),r=t(51),o=babelHelpers.interopRequireDefault(r),l=t(17),u=t(1073),d=babelHelpers.interopRequireDefault(u),h=t(1077),p=babelHelpers.interopRequireDefault(h),g=t(1078),f=babelHelpers.interopRequireDefault(g),c=t(1083),b=babelHelpers.interopRequireWildcard(c),y=t(1084),m=babelHelpers.interopRequireDefault(y),v=t(1085),H=babelHelpers.interopRequireDefault(v),I=t(1087),x=babelHelpers.interopRequireDefault(I),T=t(1096),C=babelHelpers.interopRequireDefault(T),M=t(1092),S=babelHelpers.interopRequireDefault(M),k=t(1088),L=babelHelpers.interopRequireDefault(k),D=t(1097),P=babelHelpers.interopRequireDefault(D),A=t(1098),w=babelHelpers.interopRequireDefault(A),K=t(1099),_=babelHelpers.interopRequireDefault(K),R=t(1101),F=babelHelpers.interopRequireDefault(R),q=t(1102),V=babelHelpers.interopRequireDefault(q),O=t(1103),W=babelHelpers.interopRequireDefault(O),E=t(1100),B=babelHelpers.interopRequireDefault(E),G=t(1095),z=babelHelpers.interopRequireDefault(G),j=t(1086),U=babelHelpers.interopRequireDefault(j),J=t(1111),N=(babelHelpers.interopRequireDefault(J),l.Platform.select({ios:33,android:41})),Q=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._isMounted=!1,n._keyboardHeight=0,n._bottomOffset=0,n._maxHeight=null,n._isFirstLayout=!0,n._locale='en',n._messages=[],n.state={isInitialized:!1,composerHeight:N,messagesContainerHeight:null,typingDisabled:!1},n.onKeyboardWillShow=n.onKeyboardWillShow.bind(n),n.onKeyboardWillHide=n.onKeyboardWillHide.bind(n),n.onKeyboardDidShow=n.onKeyboardDidShow.bind(n),n.onKeyboardDidHide=n.onKeyboardDidHide.bind(n),n.onSend=n.onSend.bind(n),n.getLocale=n.getLocale.bind(n),n.onInputSizeChanged=n.onInputSizeChanged.bind(n),n.onInputTextChanged=n.onInputTextChanged.bind(n),n.onMainViewLayout=n.onMainViewLayout.bind(n),n.onInitialLayoutViewLayout=n.onInitialLayoutViewLayout.bind(n),n.invertibleScrollViewProps={inverted:!0,keyboardShouldPersistTaps:n.props.keyboardShouldPersistTaps,onKeyboardWillShow:n.onKeyboardWillShow,onKeyboardWillHide:n.onKeyboardWillHide,onKeyboardDidShow:n.onKeyboardDidShow,onKeyboardDidHide:n.onKeyboardDidHide},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){var e=this;return{actionSheet:function(){return e._actionSheetRef},getLocale:this.getLocale}}},{key:"componentWillMount",value:function(){var e=this.props,t=e.messages,n=e.text;this.setIsMounted(!0),this.initLocale(),this.setMessages(t||[]),this.setTextFromProp(n)}},{key:"componentWillUnmount",value:function(){this.setIsMounted(!1)}},{key:"componentWillReceiveProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.messages,n=e.text;this.setMessages(t||[]),this.setTextFromProp(n)}},{key:"initLocale",value:function(){null===this.props.locale||-1===p.default.locales().indexOf(this.props.locale)?this.setLocale('en'):this.setLocale(this.props.locale)}},{key:"setLocale",value:function(e){this._locale=e}},{key:"getLocale",value:function(){return this._locale}},{key:"setTextFromProp",value:function(e){void 0!==e&&e!==this.state.text&&this.setState({text:e})}},{key:"getTextFromProp",value:function(e){return void 0===this.props.text?e:this.props.text}},{key:"setMessages",value:function(e){this._messages=e}},{key:"getMessages",value:function(){return this._messages}},{key:"setMaxHeight",value:function(e){this._maxHeight=e}},{key:"getMaxHeight",value:function(){return this._maxHeight}},{key:"setKeyboardHeight",value:function(e){this._keyboardHeight=e}},{key:"getKeyboardHeight",value:function(){return'android'!==l.Platform.OS||this.props.forceGetKeyboardHeight?this._keyboardHeight:0}},{key:"setBottomOffset",value:function(e){this._bottomOffset=e}},{key:"getBottomOffset",value:function(){return this._bottomOffset}},{key:"setIsFirstLayout",value:function(e){this._isFirstLayout=e}},{key:"getIsFirstLayout",value:function(){return this._isFirstLayout}},{key:"setIsTypingDisabled",value:function(e){this.setState({typingDisabled:e})}},{key:"getIsTypingDisabled",value:function(){return this.state.typingDisabled}},{key:"setIsMounted",value:function(e){this._isMounted=e}},{key:"getIsMounted",value:function(){return this._isMounted}},{key:"getMinInputToolbarHeight",value:function(){return this.props.renderAccessory?2*this.props.minInputToolbarHeight:this.props.minInputToolbarHeight}},{key:"calculateInputToolbarHeight",value:function(e){return e+(this.getMinInputToolbarHeight()-N)}},{key:"getBasicMessagesContainerHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.composerHeight;return this.getMaxHeight()-this.calculateInputToolbarHeight(e)}},{key:"getMessagesContainerHeightWithKeyboard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.composerHeight;return this.getBasicMessagesContainerHeight(e)-this.getKeyboardHeight()+this.getBottomOffset()}},{key:"prepareMessagesContainerHeight",value:function(e){return!0===this.props.isAnimated?new l.Animated.Value(e):e}},{key:"onKeyboardWillShow",value:function(e){this.setIsTypingDisabled(!0),this.setKeyboardHeight(e.endCoordinates?e.endCoordinates.height:e.end.height),this.setBottomOffset(this.props.bottomOffset);var t=this.getMessagesContainerHeightWithKeyboard();!0===this.props.isAnimated?l.Animated.timing(this.state.messagesContainerHeight,{toValue:t,duration:210}).start():this.setState({messagesContainerHeight:t})}},{key:"onKeyboardWillHide",value:function(){this.setIsTypingDisabled(!0),this.setKeyboardHeight(0),this.setBottomOffset(0);var e=this.getBasicMessagesContainerHeight();!0===this.props.isAnimated?l.Animated.timing(this.state.messagesContainerHeight,{toValue:e,duration:210}).start():this.setState({messagesContainerHeight:e})}},{key:"onKeyboardDidShow",value:function(e){'android'===l.Platform.OS&&this.onKeyboardWillShow(e),this.setIsTypingDisabled(!1)}},{key:"onKeyboardDidHide",value:function(e){'android'===l.Platform.OS&&this.onKeyboardWillHide(e),this.setIsTypingDisabled(!1)}},{key:"scrollToBottom",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==this._messageContainerRef&&this._messageContainerRef.scrollTo({y:0,animated:e})}},{key:"renderMessages",value:function(){var e=this,t=!0===this.props.isAnimated?l.Animated.View:l.View;return o.default.createElement(t,{style:{height:this.state.messagesContainerHeight}},o.default.createElement(W.default,babelHelpers.extends({},this.props,{invertibleScrollViewProps:this.invertibleScrollViewProps,messages:this.getMessages(),ref:function(t){return e._messageContainerRef=t}})),this.renderChatFooter())}},{key:"onSend",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(t)||(t=[t]),t=t.map(function(t){return babelHelpers.extends({},t,{user:e.props.user,createdAt:new Date,_id:e.props.messageIdGenerator()})}),!0===n&&(this.setIsTypingDisabled(!0),this.resetInputToolbar()),this.props.onSend(t),this.scrollToBottom(),!0===n&&setTimeout(function(){!0===e.getIsMounted()&&e.setIsTypingDisabled(!1)},100)}},{key:"resetInputToolbar",value:function(){this.textInput&&this.textInput.clear(),this.notifyInputTextReset();var e=N,t=this.getMessagesContainerHeightWithKeyboard(e);this.setState({text:this.getTextFromProp(''),composerHeight:e,messagesContainerHeight:this.prepareMessagesContainerHeight(t)})}},{key:"focusTextInput",value:function(){this.textInput&&this.textInput.focus()}},{key:"onInputSizeChanged",value:function(e){var t=Math.max(N,Math.min(100,e.height)),n=this.getMessagesContainerHeightWithKeyboard(t);this.setState({composerHeight:t,messagesContainerHeight:this.prepareMessagesContainerHeight(n)})}},{key:"onInputTextChanged",value:function(e){this.getIsTypingDisabled()||(this.props.onInputTextChanged&&this.props.onInputTextChanged(e),void 0===this.props.text&&this.setState({text:e}))}},{key:"notifyInputTextReset",value:function(){this.props.onInputTextChanged&&this.props.onInputTextChanged('')}},{key:"onInitialLayoutViewLayout",value:function(e){var t=e.nativeEvent.layout;if(!(t.height<=0)){this.notifyInputTextReset(),this.setMaxHeight(t.height);var n=N,a=this.getMessagesContainerHeightWithKeyboard(n);this.setState({isInitialized:!0,text:this.getTextFromProp(''),composerHeight:n,messagesContainerHeight:this.prepareMessagesContainerHeight(a)})}}},{key:"onMainViewLayout",value:function(e){var t=e.nativeEvent.layout;this.getMaxHeight()===t.height&&!0!==this.getIsFirstLayout()||(this.setMaxHeight(t.height),this.setState({messagesContainerHeight:this.prepareMessagesContainerHeight(this.getBasicMessagesContainerHeight())})),!0===this.getIsFirstLayout()&&this.setIsFirstLayout(!1)}},{key:"renderInputToolbar",value:function(){var e=this,t=babelHelpers.extends({},this.props,{text:this.getTextFromProp(this.state.text),composerHeight:Math.max(N,this.state.composerHeight),onSend:this.onSend,onInputSizeChanged:this.onInputSizeChanged,onTextChanged:this.onInputTextChanged,textInputProps:babelHelpers.extends({},this.props.textInputProps,{ref:function(t){return e.textInput=t},maxLength:this.getIsTypingDisabled()?0:this.props.maxInputLength})});return this.getIsTypingDisabled()&&(t.textInputProps.maxLength=0),this.props.renderInputToolbar?this.props.renderInputToolbar(t):o.default.createElement(_.default,t)}},{key:"renderChatFooter",value:function(){if(this.props.renderChatFooter){var e=babelHelpers.extends({},this.props);return this.props.renderChatFooter(e)}return null}},{key:"renderLoading",value:function(){return this.props.renderLoading?this.props.renderLoading():null}},{key:"render",value:function(){var e=this;return!0===this.state.isInitialized?o.default.createElement(d.default,{ref:function(t){return e._actionSheetRef=t}},o.default.createElement(l.View,{style:X.container,onLayout:this.onMainViewLayout},this.renderMessages(),this.renderInputToolbar())):o.default.createElement(l.View,{style:X.container,onLayout:this.onInitialLayoutViewLayout},this.renderLoading())}}],[{key:"append",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return Array.isArray(t)||(t=[t]),t.concat(e)}},{key:"prepend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return Array.isArray(t)||(t=[t]),e.concat(t)}}]),t})(o.default.Component),X=l.StyleSheet.create({container:{flex:1}});Q.childContextTypes={actionSheet:s.default.func,getLocale:s.default.func},Q.defaultProps={messages:[],text:void 0,placeholder:'Type a message...',messageIdGenerator:function(){return f.default.v4()},user:{},onSend:function(){},locale:null,timeFormat:'LT',dateFormat:'ll',isAnimated:l.Platform.select({ios:!0,android:!1}),loadEarlier:!1,onLoadEarlier:function(){},isLoadingEarlier:!1,renderLoading:null,renderLoadEarlier:null,renderAvatar:void 0,showUserAvatar:!1,onPressAvatar:null,renderAvatarOnTop:!1,renderBubble:null,renderSystemMessage:null,onLongPress:null,renderMessage:null,renderMessageText:null,renderMessageImage:null,imageProps:{},lightboxProps:{},renderCustomView:null,renderDay:null,renderTime:null,renderFooter:null,renderChatFooter:null,renderInputToolbar:null,renderComposer:null,renderActions:null,renderSend:null,renderAccessory:null,onPressActionButton:null,bottomOffset:0,minInputToolbarHeight:44,listViewProps:{},keyboardShouldPersistTaps:l.Platform.select({ios:'never',android:'always'}),onInputTextChanged:null,maxInputLength:null,forceGetKeyboardHeight:!1},Q.propTypes={messages:s.default.array,text:s.default.string,placeholder:s.default.string,messageIdGenerator:s.default.func,user:s.default.object,onSend:s.default.func,locale:s.default.string,timeFormat:s.default.string,dateFormat:s.default.string,isAnimated:s.default.bool,loadEarlier:s.default.bool,onLoadEarlier:s.default.func,isLoadingEarlier:s.default.bool,renderLoading:s.default.func,renderLoadEarlier:s.default.func,renderAvatar:s.default.func,showUserAvatar:s.default.bool,onPressAvatar:s.default.func,renderAvatarOnTop:s.default.bool,renderBubble:s.default.func,renderSystemMessage:s.default.func,onLongPress:s.default.func,renderMessage:s.default.func,renderMessageText:s.default.func,renderMessageImage:s.default.func,imageProps:s.default.object,lightboxProps:s.default.object,renderCustomView:s.default.func,renderDay:s.default.func,renderTime:s.default.func,renderFooter:s.default.func,renderChatFooter:s.default.func,renderInputToolbar:s.default.func,renderComposer:s.default.func,renderActions:s.default.func,renderSend:s.default.func,renderAccessory:s.default.func,onPressActionButton:s.default.func,bottomOffset:s.default.number,minInputToolbarHeight:s.default.number,listViewProps:s.default.object,keyboardShouldPersistTaps:s.default.oneOf(['always','never','handled']),onInputTextChanged:s.default.func,maxInputLength:s.default.number,forceGetKeyboardHeight:s.default.bool},a.GiftedChat=Q,a.Actions=m.default,a.Avatar=H.default,a.Bubble=x.default,a.SystemMessage=C.default,a.MessageImage=S.default,a.MessageText=L.default,a.Composer=P.default,a.Day=w.default,a.InputToolbar=_.default,a.LoadEarlier=F.default,a.Message=V.default,a.MessageContainer=W.default,a.Send=B.default,a.Time=z.default,a.GiftedAvatar=U.default,a.utils=b},1069); -__d(function(n,o,t,_){t.exports=o(1071)()},1070); -__d(function(e,r,t,o){'use strict';var p=r(33),n=r(18),s=r(1072);t.exports=function(){function e(e,r,t,o,p,c){c!==s&&n(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r};return t.checkPropTypes=p,t.PropTypes=t,t}},1071); -__d(function(_,t,E,O){'use strict';E.exports='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'},1072); -__d(function(e,t,o,n){o.exports=t(1074),o.exports.ActionSheetProvider=t(1075).default,o.exports.connectActionSheet=t(1076).default},1073); -__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0});var i=t(51),r=babelHelpers.interopRequireDefault(i),s=t(105),l=babelHelpers.interopRequireDefault(s),o=t(17),u=150,c=1/o.PixelRatio.get(),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){for(var e=this.props,t=e.options,a=e.icons,n=e.destructiveButtonIndex,i=e.onSelect,s=e.startIndex,l=e.length,u=e.textStyle,c=[],p=b.Ripple('rgba(180, 180, 180, 1)',!1),d=function(e){var d='#444444';e===n&&(d='#ff3b30');var h=void 0;a&&a[e]&&(h=r.default.createElement(o.Image,{source:a[e],style:f.icon})),c.push(r.default.createElement(b,{key:e,pressInDelay:0,background:p,onPress:function(){return i(e)},style:f.button},h,r.default.createElement(o.Text,{style:[f.text,{color:d},u]},t[e]))),e>>0,s=0;s0)for(n=0;n=0?n?'+':'':'-')+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},A={};function j(e,t,n,s){var i=s;'string'==typeof s&&(i=function(){return this[s]()}),e&&(A[e]=i),t&&(A[t[0]]=function(){return G(i.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Z(e,t){return e.isValid()?(t=z(t,e.localeData()),I[t]=I[t]||(function(e){var t,n,s,i=e.match(V);for(t=0,n=i.length;t=0&&E.test(e);)e=e.replace(E,s),E.lastIndex=0,n-=1;return e}var $=/\d/,J=/\d\d/,q=/\d{3}/,B=/\d{4}/,Q=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,se=/[+-]?\d{1,6}/,ie=/\d+/,re=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function de(e,t,n){le[e]=P(t)?t:function(e,s){return e&&n?n:t}}function he(e,t){return h(le,e)?le[e](t._strict,t._locale):new RegExp(ce(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}var fe={};function me(e,t){var n,s=t;for('string'==typeof e&&(e=[e]),u(t)&&(s=function(e,n){n[t]=D(e)}),n=0;n68?1900:2e3)};var xe,be=Pe('FullYear',!0);function Pe(e,t){return function(n){return null!=n?(He(this,e,n),i.updateOffset(this,t),this):We(this,e)}}function We(e,t){return e.isValid()?e._d['get'+(e._isUTC?'UTC':'')+t]():NaN}function He(e,t,n){e.isValid()&&!isNaN(n)&&('FullYear'===t&&Te(e.year())&&1===e.month()&&29===e.date()?e._d['set'+(e._isUTC?'UTC':'')+t](n,e.month(),Re(n,e.month())):e._d['set'+(e._isUTC?'UTC':'')+t](n))}function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?Te(e)?29:28:31-s%7%2}xe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ae(e,t,n){var s=7+t-n;return-((7+Ie(e,0,s).getUTCDay()-t)%7)+s-1}function je(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ae(e,s,i);return o<=0?a=Oe(r=e-1)+o:o>Oe(e)?(r=e+1,a=o-Oe(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ze(e,t,n){var s,i,r=Ae(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+ze(i=e.year()-1,t,n):a>ze(e.year(),t,n)?(s=a-ze(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function ze(e,t,n){var s=Ae(e,t,n),i=Ae(e+1,t,n);return(Oe(e)-s+i)/7}j('w',['ww',2],'wo','week'),j('W',['WW',2],'Wo','isoWeek'),C('week','w'),C('isoWeek','W'),N('week',5),N('isoWeek',5),de('w',X),de('ww',X,J),de('W',X),de('WW',X,J),_e(['w','ww','W','WW'],function(e,t,n,s){t[s.substr(0,1)]=D(e)});j('d',0,'do','day'),j('dd',0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j('ddd',0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j('dddd',0,0,function(e){return this.localeData().weekdays(this,e)}),j('e',0,0,'weekday'),j('E',0,0,'isoWeekday'),C('day','d'),C('weekday','e'),C('isoWeekday','E'),N('day',11),N('weekday',11),N('isoWeekday',11),de('d',X),de('e',X),de('E',X),de('dd',function(e,t){return t.weekdaysMinRegex(e)}),de('ddd',function(e,t){return t.weekdaysShortRegex(e)}),de('dddd',function(e,t){return t.weekdaysRegex(e)}),_e(['dd','ddd','dddd'],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),_e(['d','e','E'],function(e,t,n,s){t[s]=D(e)});var $e='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');var Je='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');var qe='Su_Mo_Tu_We_Th_Fr_Sa'.split('_');var Be=ue;var Qe=ue;var Xe=ue;function Ke(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),s=this.weekdaysMin(n,''),i=this.weekdaysShort(n,''),r=this.weekdays(n,''),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=ce(o[t]),u[t]=ce(u[t]),l[t]=ce(l[t]);this._weekdaysRegex=new RegExp('^('+l.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+u.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+o.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+a.join('|')+')','i')}function et(){return this.hours()%12||12}function tt(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}j('H',['HH',2],0,'hour'),j('h',['hh',2],0,et),j('k',['kk',2],0,function(){return this.hours()||24}),j('hmm',0,0,function(){return''+et.apply(this)+G(this.minutes(),2)}),j('hmmss',0,0,function(){return''+et.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),j('Hmm',0,0,function(){return''+this.hours()+G(this.minutes(),2)}),j('Hmmss',0,0,function(){return''+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),tt('a',!0),tt('A',!1),C('hour','h'),N('hour',13),de('a',nt),de('A',nt),de('H',X),de('h',X),de('k',X),de('HH',X,J),de('hh',X,J),de('kk',X,J),de('hmm',K),de('hmmss',ee),de('Hmm',K),de('Hmmss',ee),me(['H','HH'],we),me(['k','kk'],function(e,t,n){var s=D(e);t[we]=24===s?0:s}),me(['a','A'],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(['h','hh'],function(e,t,n){t[we]=D(e),m(n).bigHour=!0}),me('hmm',function(e,t,n){var s=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s)),m(n).bigHour=!0}),me('hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s,2)),t[Se]=D(e.substr(i)),m(n).bigHour=!0}),me('Hmm',function(e,t,n){var s=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s))}),me('Hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s,2)),t[Se]=D(e.substr(i))});var st,it=Pe('Hours',!0),rt={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},at={},ot={};function ut(e){return e?e.toLowerCase().replace('_','-'):e}function lt(e){var s=null;if(!at[e]&&void 0!==n&&n&&n.exports)try{s=st._abbr,t('./locale/'+e),dt(s)}catch(e){}return at[e]}function dt(e,t){var n;return e&&((n=o(t)?ct(e):ht(e,t))?st=n:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+e+' not found. Did you forget to load it?')),st._abbr}function ht(e,t){if(null!==t){var n,s=rt;if(t.abbr=e,null!=at[e])b('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])s=at[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;s=n._config}return at[e]=new H(W(s,t)),ot[e]&&ot[e].forEach(function(e){ht(e.name,e.config)}),dt(e),at[e]}return delete at[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!r(e)){if(t=lt(e))return t;e=[e]}return(function(e){for(var t,n,s,i,r=0;r0;){if(s=lt(i.slice(0,t).join('-')))return s;if(n&&n.length>=t&&k(i,n,!0)>=t-1)break;t--}r++}return st})(e)}function ft(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ve]<0||n[ve]>11?ve:n[pe]<1||n[pe]>Re(n[ge],n[ve])?pe:n[we]<0||n[we]>24||24===n[we]&&(0!==n[Me]||0!==n[Se]||0!==n[De])?we:n[Me]<0||n[Me]>59?Me:n[Se]<0||n[Se]>59?Se:n[De]<0||n[De]>999?De:-1,m(e)._overflowDayOfYear&&(tpe)&&(t=pe),m(e)._overflowWeeks&&-1===t&&(t=ke),m(e)._overflowWeekday&&-1===t&&(t=Ye),m(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,s,r,a,o=[];if(!e._d){for(s=(function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]})(e),e._w&&null==e._a[pe]&&null==e._a[ve]&&(function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=mt(t.GG,e._a[ge],Ze(Pt(),1,4).year),s=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ze(Pt(),r,a);n=mt(t.gg,e._a[ge],l.year),s=mt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r}s<1||s>ze(n,r,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,s,i,r,a),e._a[ge]=o.year,e._dayOfYear=o.dayOfYear)})(e),null!=e._dayOfYear&&(a=mt(e._a[ge],s[ge]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[pe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[Me]&&0===e._a[Se]&&0===e._a[De]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ie:function(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/]],wt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Mt=/^\/?Date\((\-?\d+)/i;function St(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o);if(u){for(m(e).iso=!0,t=0,n=pt.length;t0&&m(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),A[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),ye(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=u-l,o.length>0&&m(e).unusedInput.push(o),e._a[we]<=12&&!0===m(e).bigHour&&e._a[we]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[we]=(function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t})(e._locale,e._a[we],e._meridiem),_t(e),ft(e)}else Ot(e);else St(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&''===t?y({nullInput:!0}):('string'==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(ft(t)):(l(t)?e._d=t:r(n)?(function(e){var t,n,s,i,r;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()});function Rt(e,t){var n,s;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],s=1;s(r=ze(e,s,i))&&(t=r),function(e,t,n,s,i){var r=je(e,t,n,s,i),a=Ie(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}j(0,['gg',2],0,function(){return this.weekYear()%100}),j(0,['GG',2],0,function(){return this.isoWeekYear()%100}),sn('gggg','weekYear'),sn('ggggg','weekYear'),sn('GGGG','isoWeekYear'),sn('GGGGG','isoWeekYear'),C('weekYear','gg'),C('isoWeekYear','GG'),N('weekYear',1),N('isoWeekYear',1),de('G',re),de('g',re),de('GG',X,J),de('gg',X,J),de('GGGG',ne,B),de('gggg',ne,B),de('GGGGG',se,Q),de('ggggg',se,Q),_e(['gggg','ggggg','GGGG','GGGGG'],function(e,t,n,s){t[s.substr(0,2)]=D(e)}),_e(['gg','GG'],function(e,t,n,s){t[s]=i.parseTwoDigitYear(e)}),j('Q',0,'Qo','quarter'),C('quarter','Q'),N('quarter',7),de('Q',$),me('Q',function(e,t){t[ve]=3*(D(e)-1)}),j('D',['DD',2],'Do','date'),C('date','D'),N('date',9),de('D',X),de('DD',X,J),de('Do',function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(['D','DD'],pe),me('Do',function(e,t){t[pe]=D(e.match(X)[0])});var an=Pe('Date',!0);j('DDD',['DDDD',3],'DDDo','dayOfYear'),C('dayOfYear','DDD'),N('dayOfYear',4),de('DDD',te),de('DDDD',q),me(['DDD','DDDD'],function(e,t,n){n._dayOfYear=D(e)}),j('m',['mm',2],0,'minute'),C('minute','m'),N('minute',14),de('m',X),de('mm',X,J),me(['m','mm'],Me);var on=Pe('Minutes',!1);j('s',['ss',2],0,'second'),C('second','s'),N('second',15),de('s',X),de('ss',X,J),me(['s','ss'],Se);var un,ln=Pe('Seconds',!1);for(j('S',0,0,function(){return~~(this.millisecond()/100)}),j(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),j(0,['SSS',3],0,'millisecond'),j(0,['SSSS',4],0,function(){return 10*this.millisecond()}),j(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),j(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),j(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),j(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),j(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),C('millisecond','ms'),N('millisecond',16),de('S',te,$),de('SS',te,J),de('SSS',te,q),un='SSSS';un.length<=9;un+='S')de(un,ie);function dn(e,t){t[De]=D(1e3*('0.'+e))}for(un='S';un.length<=9;un+='S')me(un,dn);var hn=Pe('Milliseconds',!1);j('z',0,0,'zoneAbbr'),j('zz',0,0,'zoneName');var cn=w.prototype;function fn(e){return e}cn.add=Qt,cn.calendar=function(e,t){var n=e||Pt(),s=Et(n,this).startOf('day'),r=i.calendarFormat(this,s)||'sameElse',a=t&&(P(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Pt(n)))},cn.clone=function(){return new w(this)},cn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Et(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=F(t)){case'year':r=Kt(this,s)/12;break;case'month':r=Kt(this,s);break;case'quarter':r=Kt(this,s)/3;break;case'second':r=(this-s)/1e3;break;case'minute':r=(this-s)/6e4;break;case'hour':r=(this-s)/36e5;break;case'day':r=(this-s-i)/864e5;break;case'week':r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:S(r)},cn.endOf=function(e){return void 0===(e=F(e))||'millisecond'===e?this:('date'===e&&(e='day'),this.startOf(e).add(1,'isoWeek'===e?'week':e).subtract(1,'ms'))},cn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)},cn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Pt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.fromNow=function(e){return this.from(Pt(),e)},cn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Pt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.toNow=function(e){return this.to(Pt(),e)},cn.get=function(e){return P(this[e=F(e)])?this[e]():this},cn.invalidAt=function(){return m(this).overflow},cn.isAfter=function(e,t){var n=M(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&('millisecond'===(t=F(o(t)?'millisecond':t))?this.valueOf()>n.valueOf():n.valueOf()9999?Z(n,t?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',Z(n,'Z')):Z(n,t?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},cn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var e='moment',t='';this.isLocal()||(e=0===this.utcOffset()?'moment.utc':'moment.parseZone',t='Z');var n='['+e+'("]',s=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',i=t+'[")]';return this.format(n+s+'-MM-DD[T]HH:mm:ss.SSS'+i)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=be,cn.isLeapYear=function(){return Te(this.year())},cn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},cn.month=Ne,cn.daysInMonth=function(){return Re(this.year(),this.month())},cn.week=cn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),'d')},cn.isoWeek=cn.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),'d')},cn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},cn.isoWeeksInYear=function(){return ze(this.year(),1,4)},cn.date=an,cn.day=cn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=(function(e,t){return'string'!=typeof e?e:isNaN(e)?'number'==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)})(e,this.localeData()),this.add(e-t,'d')):t},cn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,'d')},cn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(function(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e})(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},cn.dayOfYear=function(e){var t=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==e?t:this.add(e-t,'d')},cn.hour=cn.hours=it,cn.minute=cn.minutes=on,cn.second=cn.seconds=ln,cn.millisecond=cn.milliseconds=hn,cn.utcOffset=function(e,t,n){var s,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if('string'==typeof e){if(null===(e=Vt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=It(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,'m'),r!==e&&(!t||this._changeInProgress?Bt(this,zt(e-r,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:It(this)},cn.utc=function(e){return this.utcOffset(0,e)},cn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),'m')),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var e=Vt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=At,cn.isUTC=At,cn.zoneAbbr=function(){return this._isUTC?'UTC':''},cn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},cn.dates=O('dates accessor is deprecated. Use date instead.',an),cn.months=O('months accessor is deprecated. Use month instead',Ne),cn.years=O('years accessor is deprecated. Use year instead',be),cn.zone=O('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(e,t){return null!=e?('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),cn.isDSTShifted=O('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=xt(e))._a){var t=e._isUTC?f(e._a):Pt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var mn=H.prototype;function _n(e,t,n,s){var i=ct(),r=f().set(s,t);return i[n](r,e)}function yn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||'',null!=t)return _n(e,t,n,'month');var s,i=[];for(s=0;s<12;s++)i[s]=_n(e,s,n,'month');return i}function gn(e,t,n,s){'boolean'==typeof e?(u(t)&&(n=t,t=void 0),t=t||''):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||'');var i,r=ct(),a=e?r._week.dow:0;if(null!=n)return _n(t,(n+a)%7,s,'day');var o=[];for(i=0;i<7;i++)o[i]=_n(t,(i+a)%7,s,'day');return o}mn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return P(s)?s.call(t,n):s},mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn.invalidDate=function(){return this._invalidDate},mn.ordinal=function(e){return this._ordinal.replace('%d',e)},mn.preparse=fn,mn.postformat=fn,mn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return P(i)?i(e,t,n,s):i.replace(/%d/i,e)},mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?'future':'past'];return P(n)?n(t):n.replace(/%s/i,t)},mn.set=function(e){var t,n;for(n in e)P(t=e[n])?this[n]=t:this['_'+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},mn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?'format':'standalone'][e.month()]:r(this._months)?this._months:this._months.standalone},mn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?'format':'standalone'][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,'').toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,'').toLocaleLowerCase();return n?'MMM'===t?-1!==(i=xe.call(this._shortMonthsParse,a))?i:null:-1!==(i=xe.call(this._longMonthsParse,a))?i:null:'MMM'===t?-1!==(i=xe.call(this._shortMonthsParse,a))?i:-1!==(i=xe.call(this._longMonthsParse,a))?i:null:-1!==(i=xe.call(this._longMonthsParse,a))?i:-1!==(i=xe.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp('^'+this.months(i,'').replace('.','')+'$','i'),this._shortMonthsParse[s]=new RegExp('^'+this.monthsShort(i,'').replace('.','')+'$','i')),n||this._monthsParse[s]||(r='^'+this.months(i,'')+'|^'+this.monthsShort(i,''),this._monthsParse[s]=new RegExp(r.replace('.',''),'i')),n&&'MMMM'===t&&this._longMonthsParse[s].test(e))return s;if(n&&'MMM'===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},mn.monthsRegex=function(e){return this._monthsParseExact?(h(this,'_monthsRegex')||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,'_monthsRegex')||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},mn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,'_monthsRegex')||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,'_monthsShortRegex')||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},mn.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?'format':'standalone'][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},mn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},mn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},mn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,'').toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,'').toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,'').toLocaleLowerCase();return n?'dddd'===t?-1!==(i=xe.call(this._weekdaysParse,a))?i:null:'ddd'===t?-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:'dddd'===t?-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:'ddd'===t?-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp('^'+this.weekdays(i,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[s]=new RegExp('^'+this.weekdaysShort(i,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[s]=new RegExp('^'+this.weekdaysMin(i,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[s]||(r='^'+this.weekdays(i,'')+'|^'+this.weekdaysShort(i,'')+'|^'+this.weekdaysMin(i,''),this._weekdaysParse[s]=new RegExp(r.replace('.',''),'i')),n&&'dddd'===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&'ddd'===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&'dd'===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,'_weekdaysRegex')||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mn.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},mn.meridiem=function(e,t,n){return e>11?n?'pm':'PM':n?'am':'AM'},dt('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?'th':1===t?'st':2===t?'nd':3===t?'rd':'th')}}),i.lang=O('moment.lang is deprecated. Use moment.locale instead.',dt),i.langData=O('moment.langData is deprecated. Use moment.localeData instead.',ct);var vn=Math.abs;function pn(e,t,n,s){var i=zt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var kn=Dn('ms'),Yn=Dn('s'),On=Dn('m'),Tn=Dn('h'),xn=Dn('d'),bn=Dn('w'),Pn=Dn('M'),Wn=Dn('y');function Hn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rn=Hn('milliseconds'),Cn=Hn('seconds'),Fn=Hn('minutes'),Ln=Hn('hours'),Un=Hn('days'),Nn=Hn('months'),Gn=Hn('years');var Vn=Math.round,En={ss:44,s:45,m:45,h:22,d:26,M:11};var In=Math.abs;function An(e){return(e>0)-(e<0)||+e}function jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=In(this._milliseconds)/1e3,s=In(this._days),i=In(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,''):'',h=this.asSeconds();if(!h)return'P0D';var c=h<0?'-':'',f=An(this._months)!==An(h)?'-':'',m=An(this._days)!==An(h)?'-':'',_=An(this._milliseconds)!==An(h)?'-':'';return c+'P'+(r?f+r+'Y':'')+(a?f+a+'M':'')+(o?m+o+'D':'')+(u||l||d?'T':'')+(u?_+u+'H':'')+(l?_+l+'M':'')+(d?_+d+'S':'')}var Zn=Ft.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Zn.add=function(e,t){return pn(this,e,t,1)},Zn.subtract=function(e,t){return pn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if('month'===(e=F(e))||'year'===e)return t=this._days+s/864e5,n=this._months+Mn(t),'month'===e?n:n/12;switch(t=this._days+Math.round(Sn(this._months)),e){case'week':return t/7+s/6048e5;case'day':return t+s/864e5;case'hour':return 24*t+s/36e5;case'minute':return 1440*t+s/6e4;case'second':return 86400*t+s/1e3;case'millisecond':return Math.floor(864e5*t)+s;default:throw new Error('Unknown unit '+e)}},Zn.asMilliseconds=kn,Zn.asSeconds=Yn,Zn.asMinutes=On,Zn.asHours=Tn,Zn.asDays=xn,Zn.asWeeks=bn,Zn.asMonths=Pn,Zn.asYears=Wn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},Zn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*wn(Sn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Mn(a+=S(n/24))),a-=wn(Sn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},Zn.clone=function(){return zt(this)},Zn.get=function(e){return e=F(e),this.isValid()?this[e+'s']():NaN},Zn.milliseconds=Rn,Zn.seconds=Cn,Zn.minutes=Fn,Zn.hours=Ln,Zn.days=Un,Zn.weeks=function(){return S(this.days()/7)},Zn.months=Nn,Zn.years=Gn,Zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=(function(e,t,n){var s=zt(e).abs(),i=Vn(s.as('s')),r=Vn(s.as('m')),a=Vn(s.as('h')),o=Vn(s.as('d')),u=Vn(s.as('M')),l=Vn(s.as('y')),d=i<=En.ss&&['s',i]||i0,d[4]=n,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,d)})(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Zn.toISOString=jn,Zn.toString=jn,Zn.toJSON=jn,Zn.locale=en,Zn.localeData=nn,Zn.toIsoString=O('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',jn),Zn.lang=tn,j('X',0,0,'unix'),j('x',0,0,'valueOf'),de('x',re),de('X',/[+-]?\d+(\.\d{1,3})?/),me('X',function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),me('x',function(e,t,n){n._d=new Date(D(e))}),i.version='2.22.2',e=Pt,i.fn=cn,i.min=function(){return Rt('isBefore',[].slice.call(arguments,0))},i.max=function(){return Rt('isAfter',[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Pt(1e3*e)},i.months=function(e,t){return yn(e,t,'months')},i.isDate=l,i.locale=dt,i.invalid=y,i.duration=zt,i.isMoment=M,i.weekdays=function(e,t,n){return gn(e,t,n,'weekdays')},i.parseZone=function(){return Pt.apply(null,arguments).parseZone()},i.localeData=ct,i.isDuration=Lt,i.monthsShort=function(e,t){return yn(e,t,'monthsShort')},i.weekdaysMin=function(e,t,n){return gn(e,t,n,'weekdaysMin')},i.defineLocale=ht,i.updateLocale=function(e,t){if(null!=t){var n,s,i=rt;null!=(s=lt(e))&&(i=s._config),(n=new H(t=W(i,t))).parentLocale=at[e],at[e]=n,dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return T(at)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,'weekdaysShort')},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?Vn:'function'==typeof e&&(Vn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==En[e]&&(void 0===t?En[e]:(En[e]=t,'s'===e&&(En.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,'days',!0);return n<-6?'sameElse':n<-1?'lastWeek':n<0?'lastDay':n<1?'sameDay':n<2?'nextDay':n<7?'nextWeek':'sameElse'},i.prototype=cn,i.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'YYYY-[W]WW',MONTH:'YYYY-MM'},i})},1077); -__d(function(v,n,o,r){var t=n(1079),_=n(1082),a=_;a.v1=t,a.v4=_,o.exports=a},1078); -__d(function(e,o,s,c){var r=o(1080),n=o(1081),i=r(),v=[1|i[0],i[1],i[2],i[3],i[4],i[5]],t=16383&(i[6]<<8|i[7]),a=0,d=0;s.exports=function(e,o,s){var c=o&&s||0,r=o||[],i=void 0!==(e=e||{}).clockseq?e.clockseq:t,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:d+1,m=u-a+(f-d)/1e4;if(m<0&&void 0===e.clockseq&&(i=i+1&16383),(m<0||u>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');a=u,d=f,t=i;var k=(1e4*(268435455&(u+=122192928e5))+f)%4294967296;r[c++]=k>>>24&255,r[c++]=k>>>16&255,r[c++]=k>>>8&255,r[c++]=255&k;var l=u/4294967296*1e4&268435455;r[c++]=l>>>8&255,r[c++]=255&l,r[c++]=l>>>24&15|16,r[c++]=l>>>16&255,r[c++]=i>>>8|128,r[c++]=255&i;for(var q=e.node||v,w=0;w<6;++w)r[c+w]=q[w];return o||n(r)}},1079); -__d(function(r,n,a,t){var o,e=r.crypto||r.msCrypto;if(e&&e.getRandomValues){var u=new Uint8Array(16);o=function(){return e.getRandomValues(u),u}}if(!o){var f=new Array(16);o=function(){for(var r,n=0;n<16;n++)0==(3&n)&&(r=4294967296*Math.random()),f[n]=r>>>((3&n)<<3)&255;return f}}a.exports=o},1080); -__d(function(r,t,n,o){for(var u=[],f=0;f<256;++f)u[f]=(f+256).toString(16).substr(1);n.exports=function(r,t){var n=t||0,o=u;return o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]}},1081); -__d(function(r,n,a,o){var t=n(1080),f=n(1081);a.exports=function(r,n,a){var o=n&&a||0;'string'==typeof r&&(n='binary'==r?new Array(16):null,r=null);var i=(r=r||{}).random||(r.rng||t)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n)for(var u=0;u<16;++u)n[o+u]=i[u];return n||f(i)}},1082); -__d(function(e,r,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSameDay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.createdAt)return!1;var t=(0,a.default)(e.createdAt),i=(0,a.default)(r.createdAt);if(!t.isValid()||!i.isValid())return!1;return t.isSame(i,'day')},i.isSameUser=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!r.user||!e.user||r.user._id!==e.user._id)},i.warnDeprecated=function(e){return function(){return console.warn(u),e.apply(void 0,arguments)}};var n=r(1077),a=babelHelpers.interopRequireDefault(n),u='isSameUser and isSameDay should be imported from the utils module instead of using the props functions'},1083); -__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0});var r=t(1070),i=babelHelpers.interopRequireDefault(r),s=t(51),p=babelHelpers.interopRequireDefault(s),l=t(17),c=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.onActionsPress=o.onActionsPress.bind(o),o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onActionsPress",value:function(){var e=this,t=Object.keys(this.props.options),o=Object.keys(this.props.options).length-1;this.context.actionSheet().showActionSheetWithOptions({options:t,cancelButtonIndex:o,tintColor:this.props.optionTintColor},function(t){var o=0;for(var n in e.props.options)if(e.props.options.hasOwnProperty(n)){if(t===o)return void e.props.options[n](e.props);o++}})}},{key:"renderIcon",value:function(){return this.props.icon?this.props.icon():p.default.createElement(l.View,{style:[a.wrapper,this.props.wrapperStyle]},p.default.createElement(l.Text,{style:[a.iconText,this.props.iconTextStyle]},"+"))}},{key:"render",value:function(){return p.default.createElement(l.TouchableOpacity,{style:[a.container,this.props.containerStyle],onPress:this.props.onPressActionButton||this.onActionsPress},this.renderIcon())}}]),t})(p.default.Component);n.default=c;var a=l.StyleSheet.create({container:{width:26,height:26,marginLeft:10,marginBottom:10},wrapper:{borderRadius:13,borderColor:'#b2b2b2',borderWidth:2,flex:1},iconText:{color:'#b2b2b2',fontWeight:'bold',fontSize:16,backgroundColor:'transparent',textAlign:'center'}});c.contextTypes={actionSheet:i.default.func},c.defaultProps={onSend:function(){},options:{},optionTintColor:'#007AFF',icon:null,containerStyle:{},iconTextStyle:{}},c.propTypes={onSend:i.default.func,options:i.default.object,optionTintColor:i.default.string,icon:i.default.func,onPressActionButton:i.default.func,containerStyle:l.ViewPropTypes.style,iconTextStyle:l.Text.propTypes.style}},1084); -__d(function(e,t,r,s){Object.defineProperty(s,"__esModule",{value:!0});var a=t(1070),i=babelHelpers.interopRequireDefault(a),o=t(51),n=babelHelpers.interopRequireDefault(o),p=t(17),l=t(1086),u=babelHelpers.interopRequireDefault(l),h=t(1083),f=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderAvatar",value:function(){var e=this;if(this.props.renderAvatar){var t=this.props,r=(t.renderAvatar,babelHelpers.objectWithoutProperties(t,["renderAvatar"]));return this.props.renderAvatar(r)}return n.default.createElement(u.default,{avatarStyle:p.StyleSheet.flatten([c[this.props.position].image,this.props.imageStyle[this.props.position]]),user:this.props.currentMessage.user,onPress:function(){return e.props.onPressAvatar&&e.props.onPressAvatar(e.props.currentMessage.user)}})}},{key:"render",value:function(){var e=this.props.renderAvatarOnTop,t=e?this.props.previousMessage:this.props.nextMessage,r=e?"onTop":"onBottom";return null===this.props.renderAvatar?null:(0,h.isSameUser)(this.props.currentMessage,t)&&(0,h.isSameDay)(this.props.currentMessage,t)?n.default.createElement(p.View,{style:[c[this.props.position].container,this.props.containerStyle[this.props.position]]},n.default.createElement(u.default,{avatarStyle:p.StyleSheet.flatten([c[this.props.position].image,this.props.imageStyle[this.props.position]])})):n.default.createElement(p.View,{style:[c[this.props.position].container,c[this.props.position][r],this.props.containerStyle[this.props.position]]},this.renderAvatar())}}]),t})(n.default.Component);s.default=f;var c={left:p.StyleSheet.create({container:{marginRight:8},onTop:{alignSelf:"flex-start"},onBottom:{},image:{height:36,width:36,borderRadius:18}}),right:p.StyleSheet.create({container:{marginLeft:8},onTop:{alignSelf:"flex-start"},onBottom:{},image:{height:36,width:36,borderRadius:18}})};f.defaultProps={renderAvatarOnTop:!1,position:'left',currentMessage:{user:null},nextMessage:{},containerStyle:{},imageStyle:{},isSameDay:(0,h.warnDeprecated)(h.isSameDay),isSameUser:(0,h.warnDeprecated)(h.isSameUser)},f.propTypes={renderAvatarOnTop:i.default.bool,position:i.default.oneOf(['left','right']),currentMessage:i.default.object,nextMessage:i.default.object,onPressAvatar:i.default.func,containerStyle:i.default.shape({left:p.ViewPropTypes.style,right:p.ViewPropTypes.style}),imageStyle:i.default.shape({left:p.ViewPropTypes.style,right:p.ViewPropTypes.style}),isSameDay:i.default.func,isSameUser:i.default.func}},1085); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1070),o=babelHelpers.interopRequireDefault(s),l=t(51),n=babelHelpers.interopRequireDefault(l),i=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setAvatarColor",value:function(){var e=this.props.user.name||'',t=e.toUpperCase().split(' ');1===t.length?this.avatarName=""+t[0].charAt(0):t.length>1?this.avatarName=""+t[0].charAt(0)+t[1].charAt(0):this.avatarName='';for(var a=0,r=0;r0&&(i+=encodeURIComponent(s.join(',')))}if(i+='?',p('Array',arguments[1])){var c=u(arguments[1],'String');c.length>0&&(a=!0,i+='cc='+encodeURIComponent(c.join(',')))}if(p('Array',arguments[2])){a&&(i+='&');var g=u(arguments[2],'String');g.length>0&&(a=!0,i+='bcc='+encodeURIComponent(g.join(',')))}p('String',arguments[3])&&(a&&(i+='&'),a=!0,i+='subject='+encodeURIComponent(arguments[3])),p('String',arguments[4])&&(a&&(i+='&'),i+='body='+encodeURIComponent(arguments[4])),d(i)},a=t.text=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(arguments.length>2)console.log('you supplied too many arguments. You can either supply 0 or 1 or 2');else{var n='sms:';e&&(p('String',e)?n+=e:console.log('the phone number should be provided as a string. It was provided as '+Object.prototype.toString.call(e).slice(8,-1)+',ignoring the value provided')),o&&(p('String',o)?('android'===r.Platform.OS&&(o=encodeURIComponent(o)),n+='ios'===r.Platform.OS?"&body="+encodeURIComponent(o):"?body="+encodeURIComponent(o)):console.log('the body should be provided as a string. It was provided as '+Object.prototype.toString.call(o).slice(8,-1)+',ignoring the value provided')),d(n)}},s=t.textWithoutEncoding=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(arguments.length>2)console.log('you supplied too many arguments. You can either supply 0 or 1 or 2');else{var n='sms:';e&&(p('String',e)?n+=e:console.log('the phone number should be provided as a string. It was provided as '+Object.prototype.toString.call(e).slice(8,-1)+',ignoring the value provided')),o&&(p('String',o)?n+='ios'===r.Platform.OS?"&body="+o:"?body="+o:console.log('the body should be provided as a string. It was provided as '+Object.prototype.toString.call(o).slice(8,-1)+',ignoring the value provided')),d(n)}},c=t.web=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e?p('String',e)?d(e):console.log('address was not provided as a string, it was provided as '+Object.prototype.toString.call(e).slice(8,-1)):console.log('Missing address argument')},d=function(e){r.Linking.canOpenURL(e).then(function(o){o?r.Linking.openURL(e).catch(function(o){e.includes('telprompt')||console.warn('openURL error',o)}):console.log('Can\'t handle url: '+e)}).catch(function(e){return console.warn('An unexpected error happened',e)})},u=function(e,o){var n=[];return e.forEach(function(e){p(o,e)&&n.push(e)}),n},p=function(e,o){return Object.prototype.toString.call(o).slice(8,-1)===e};t.default={phonecall:i,text:a,textWithoutEncoding:s,email:l,web:c}},1091); -__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(1070),s=babelHelpers.interopRequireDefault(l),i=t(51),o=babelHelpers.interopRequireDefault(i),n=t(17),p=t(1093),u=babelHelpers.interopRequireDefault(p),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return o.default.createElement(n.View,{style:[b.container,this.props.containerStyle]},o.default.createElement(u.default,babelHelpers.extends({activeProps:{style:b.imageActive}},this.props.lightboxProps),o.default.createElement(n.Image,babelHelpers.extends({},this.props.imageProps,{style:[b.image,this.props.imageStyle],source:{uri:this.props.currentMessage.image}}))))}}]),t})(o.default.Component);a.default=c;var b=n.StyleSheet.create({container:{},image:{width:150,height:100,borderRadius:13,margin:3,resizeMode:'cover'},imageActive:{flex:1,resizeMode:'contain'}});c.defaultProps={currentMessage:{image:null},containerStyle:{},imageStyle:{}},c.propTypes={currentMessage:s.default.object,containerStyle:n.ViewPropTypes.style,imageStyle:n.Image.propTypes.style,imageProps:s.default.object,lightboxProps:s.default.object}},1092); -__d(function(e,t,o,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireDefault(n),i=t(105),a=babelHelpers.interopRequireDefault(i),p=t(17),l=t(1094),u=babelHelpers.interopRequireDefault(l),c=(function(e){function t(){var e,o,r,s;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,a=Array(i),l=0;l150?(e.setState({isPanning:!1,target:{y:n.dy,x:n.dx,opacity:1-Math.abs(n.dy/p)}}),e.close()):l.Animated.spring(e.state.pan,babelHelpers.extends({toValue:0},e.props.springConfig)).start(function(){e.setState({isPanning:!1})})}})}},{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentWillReceiveProps",value:function(e){this.props.isOpen!=e.isOpen&&e.isOpen&&this.open()}},{key:"render",value:function(){var e=this,t=this.props,n=t.isOpen,a=t.renderHeader,i=t.swipeToDismiss,s=t.origin,r=t.backgroundColor,c=this.state,g=c.isPanning,h=(c.isAnimating,c.openVal),b=c.target,m={opacity:h.interpolate({inputRange:[0,1],outputRange:[0,b.opacity]})},y=void 0;i&&(y=this._panResponder.panHandlers);var R=void 0;g&&(R={top:this.state.pan},m.opacity=this.state.pan.interpolate({inputRange:[-p,0,p],outputRange:[0,1,0]}));var w=[f.open,{left:h.interpolate({inputRange:[0,1],outputRange:[s.x,b.x]}),top:h.interpolate({inputRange:[0,1],outputRange:[s.y+d,b.y+d]}),width:h.interpolate({inputRange:[0,1],outputRange:[s.width,u]}),height:h.interpolate({inputRange:[0,1],outputRange:[s.height,p]})}],C=o.default.createElement(l.Animated.View,{style:[f.background,{backgroundColor:r},m]}),S=o.default.createElement(l.Animated.View,{style:[f.header,m]},a?a(this.close):o.default.createElement(l.TouchableOpacity,{onPress:this.close},o.default.createElement(l.Text,{style:f.closeButton},"\xd7"))),v=o.default.createElement(l.Animated.View,babelHelpers.extends({style:[w,R]},y),this.props.children);return this.props.navigator?o.default.createElement(l.View,null,C,v,S):o.default.createElement(l.Modal,{visible:n,transparent:!0,onRequestClose:function(){return e.close()}},C,v,S)}}]),t})(i.Component);g.propTypes={origin:r.default.shape({x:r.default.number,y:r.default.number,width:r.default.number,height:r.default.number}),springConfig:r.default.shape({tension:r.default.number,friction:r.default.number}),backgroundColor:r.default.string,isOpen:r.default.bool,renderHeader:r.default.func,onOpen:r.default.func,onClose:r.default.func,swipeToDismiss:r.default.bool},g.defaultProps={springConfig:{tension:30,friction:7},backgroundColor:'black'},a.default=g},1094); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var s=t(1070),o=babelHelpers.interopRequireDefault(s),a=t(51),n=babelHelpers.interopRequireDefault(a),i=t(17),p=t(1077),u=babelHelpers.interopRequireDefault(p),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(i.View,{style:[h[this.props.position].container,this.props.containerStyle[this.props.position]]},n.default.createElement(i.Text,{style:[h[this.props.position].text,this.props.textStyle[this.props.position]]},(0,u.default)(this.props.currentMessage.createdAt).locale(this.context.getLocale()).format(this.props.timeFormat)))}}]),t})(n.default.Component);l.default=c;var f={marginLeft:10,marginRight:10,marginBottom:5},b={fontSize:10,backgroundColor:'transparent',textAlign:'right'},h={left:i.StyleSheet.create({container:babelHelpers.extends({},f),text:babelHelpers.extends({color:'#aaa'},b)}),right:i.StyleSheet.create({container:babelHelpers.extends({},f),text:babelHelpers.extends({color:'#fff'},b)})};c.contextTypes={getLocale:o.default.func},c.defaultProps={position:'left',currentMessage:{createdAt:null},containerStyle:{},textStyle:{}},c.propTypes={position:o.default.oneOf(['left','right']),currentMessage:o.default.object,containerStyle:o.default.shape({left:i.ViewPropTypes.style,right:i.ViewPropTypes.style}),textStyle:o.default.shape({left:i.Text.propTypes.style,right:i.Text.propTypes.style}),timeFormat:o.default.string}},1095); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireDefault(n),a=t(17),p=t(1070),o=babelHelpers.interopRequireDefault(p),i=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.currentMessage;return s.default.createElement(a.View,{style:[u.container,this.props.containerStyle]},s.default.createElement(a.View,{style:[u.wrapper,this.props.wrapperStyle]},s.default.createElement(a.Text,{style:[u.text,this.props.textStyle]},e.text)))}}]),t})(s.default.Component);l.default=i;var u=a.StyleSheet.create({container:{alignItems:"center",justifyContent:"center",flex:1,marginTop:5,marginBottom:10},text:{backgroundColor:"transparent",color:"#b2b2b2",fontSize:12,fontWeight:"300"}});i.defaultProps={currentMessage:{system:!1},containerStyle:{},wrapperStyle:{},textStyle:{}},i.propTypes={currentMessage:o.default.object,containerStyle:a.ViewPropTypes.style,wrapperStyle:a.ViewPropTypes.style,textStyle:a.Text.propTypes.style}},1096); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var l=t(1070),r=babelHelpers.interopRequireDefault(l),i=t(51),p=babelHelpers.interopRequireDefault(i),a=t(17),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onContentSizeChange",value:function(e){var t=e.nativeEvent.contentSize;t&&(this.contentSize&&this.contentSize.width===t.width&&this.contentSize.height===t.height||(this.contentSize=t,this.props.onInputSizeChanged(this.contentSize)))}},{key:"onChangeText",value:function(e){this.props.onTextChanged(e)}},{key:"render",value:function(){var e=this;return p.default.createElement(a.TextInput,babelHelpers.extends({placeholder:this.props.placeholder,placeholderTextColor:this.props.placeholderTextColor,multiline:this.props.multiline,onChange:function(t){return e.onContentSizeChange(t)},onContentSizeChange:function(t){return e.onContentSizeChange(t)},onChangeText:function(t){return e.onChangeText(t)},style:[u.textInput,this.props.textInputStyle,{height:this.props.composerHeight}],autoFocus:this.props.textInputAutoFocus,value:this.props.text,accessibilityLabel:this.props.text||this.props.placeholder,enablesReturnKeyAutomatically:!0,underlineColorAndroid:"transparent"},this.props.textInputProps))}}]),t})(p.default.Component);o.default=s;var u=a.StyleSheet.create({textInput:{flex:1,marginLeft:10,fontSize:16,lineHeight:16,marginTop:a.Platform.select({ios:6,android:0}),marginBottom:a.Platform.select({ios:5,android:3})}});s.defaultProps={composerHeight:a.Platform.select({ios:33,android:41}),text:'',placeholderTextColor:'#b2b2b2',textInputProps:null,multiline:!0,textInputStyle:{},textInputAutoFocus:!1,onTextChanged:function(){},onInputSizeChanged:function(){}},s.propTypes={composerHeight:r.default.number,text:r.default.string,placeholder:r.default.string,placeholderTextColor:r.default.string,textInputProps:r.default.object,onTextChanged:r.default.func,onInputSizeChanged:r.default.func,multiline:r.default.bool,textInputStyle:a.TextInput.propTypes.style,textInputAutoFocus:r.default.bool}},1097); -__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var s=t(1070),l=babelHelpers.interopRequireDefault(s),p=t(51),n=babelHelpers.interopRequireDefault(p),o=t(17),i=t(1077),u=babelHelpers.interopRequireDefault(i),c=t(1083),y=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.dateFormat;return(0,c.isSameDay)(this.props.currentMessage,this.props.previousMessage)?null:n.default.createElement(o.View,{style:[f.container,this.props.containerStyle]},n.default.createElement(o.View,{style:[f.wrapper,this.props.wrapperStyle]},n.default.createElement(o.Text,{style:[f.text,this.props.textStyle]},(0,u.default)(this.props.currentMessage.createdAt).locale(this.context.getLocale()).format(e).toUpperCase())))}}]),t})(n.default.Component);a.default=y;var f=o.StyleSheet.create({container:{alignItems:'center',justifyContent:'center',marginTop:5,marginBottom:10},wrapper:{},text:{backgroundColor:'transparent',color:'#b2b2b2',fontSize:12,fontWeight:'600'}});y.contextTypes={getLocale:l.default.func},y.defaultProps={currentMessage:{createdAt:null},previousMessage:{},containerStyle:{},wrapperStyle:{},textStyle:{},isSameDay:(0,c.warnDeprecated)(c.isSameDay),isSameUser:(0,c.warnDeprecated)(c.isSameUser)},y.propTypes={currentMessage:l.default.object,previousMessage:l.default.object,containerStyle:o.ViewPropTypes.style,wrapperStyle:o.ViewPropTypes.style,textStyle:o.Text.propTypes.style,isSameDay:l.default.func,isSameUser:l.default.func,dateFormat:l.default.string}},1098); -__d(function(e,r,t,o){Object.defineProperty(o,"__esModule",{value:!0});var s=r(1070),n=babelHelpers.interopRequireDefault(s),i=r(51),l=babelHelpers.interopRequireDefault(i),a=r(17),p=r(1097),d=babelHelpers.interopRequireDefault(p),u=r(1100),c=babelHelpers.interopRequireDefault(u),y=r(1084),h=babelHelpers.interopRequireDefault(y),f=(function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t._keyboardWillShow=function(){t.setState({position:'relative'})},t._keyboardWillHide=function(){t.setState({position:'absolute'})},t.state={position:'absolute'},t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"componentWillMount",value:function(){this.keyboardWillShowListener=a.Keyboard.addListener('keyboardWillShow',this._keyboardWillShow),this.keyboardWillHideListener=a.Keyboard.addListener('keyboardWillHide',this._keyboardWillHide)}},{key:"componentWillUnmount",value:function(){this.keyboardWillShowListener.remove(),this.keyboardWillHideListener.remove()}},{key:"renderActions",value:function(){return this.props.renderActions?this.props.renderActions(this.props):this.props.onPressActionButton?l.default.createElement(h.default,this.props):null}},{key:"renderSend",value:function(){return this.props.renderSend?this.props.renderSend(this.props):l.default.createElement(c.default,this.props)}},{key:"renderComposer",value:function(){return this.props.renderComposer?this.props.renderComposer(this.props):l.default.createElement(d.default,this.props)}},{key:"renderAccessory",value:function(){return this.props.renderAccessory?l.default.createElement(a.View,{style:[b.accessory,this.props.accessoryStyle]},this.props.renderAccessory(this.props)):null}},{key:"render",value:function(){return l.default.createElement(a.View,{style:[b.container,this.props.containerStyle,{position:this.state.position}]},l.default.createElement(a.View,{style:[b.primary,this.props.primaryStyle]},this.renderActions(),this.renderComposer(),this.renderSend()),this.renderAccessory())}}]),r})(l.default.Component);o.default=f;var b=a.StyleSheet.create({container:{borderTopWidth:a.StyleSheet.hairlineWidth,borderTopColor:'#b2b2b2',backgroundColor:'#FFFFFF',bottom:0,width:a.Dimensions.get('window').width},primary:{flexDirection:'row',alignItems:'flex-end'},accessory:{height:44}});f.defaultProps={renderAccessory:null,renderActions:null,renderSend:null,renderComposer:null,containerStyle:{},primaryStyle:{},accessoryStyle:{}},f.propTypes={renderAccessory:n.default.func,renderActions:n.default.func,renderSend:n.default.func,renderComposer:n.default.func,onPressActionButton:n.default.func,containerStyle:a.ViewPropTypes.style,primaryStyle:a.ViewPropTypes.style,accessoryStyle:a.ViewPropTypes.style}},1099); -__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(1070),a=babelHelpers.interopRequireDefault(n),o=t(51),i=babelHelpers.interopRequireDefault(o),s=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this;return this.props.text.trim().length>0?i.default.createElement(s.TouchableOpacity,{style:[u.container,this.props.containerStyle],onPress:function(){e.props.onSend({text:e.props.text.trim()},!0)},accessibilityTraits:"button"},i.default.createElement(s.View,null,this.props.children||i.default.createElement(s.Text,{style:[u.text,this.props.textStyle]},this.props.label))):i.default.createElement(s.View,null)}}]),t})(i.default.Component);l.default=p;var u=s.StyleSheet.create({container:{height:44,justifyContent:'flex-end'},text:{color:'#0084ff',fontWeight:'600',fontSize:17,backgroundColor:'transparent',marginBottom:12,marginLeft:10,marginRight:10}});p.defaultProps={text:'',onSend:function(){},label:'Send',containerStyle:{},textStyle:{}},p.propTypes={text:a.default.string,onSend:a.default.func,label:a.default.string,containerStyle:s.ViewPropTypes.style,textStyle:s.Text.propTypes.style}},1100); -__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var i=t(1070),l=babelHelpers.interopRequireDefault(i),o=t(51),n=babelHelpers.interopRequireDefault(o),s=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderLoading",value:function(){return!1===this.props.isLoadingEarlier?n.default.createElement(s.Text,{style:[c.text,this.props.textStyle]},this.props.label):n.default.createElement(s.View,null,n.default.createElement(s.Text,{style:[c.text,this.props.textStyle,{opacity:0}]},this.props.label),n.default.createElement(s.ActivityIndicator,{color:"white",size:"small",style:[c.activityIndicator,this.props.activityIndicatorStyle]}))}},{key:"render",value:function(){var e=this;return n.default.createElement(s.TouchableOpacity,{style:[c.container,this.props.containerStyle],onPress:function(){e.props.onLoadEarlier&&e.props.onLoadEarlier()},disabled:!0===this.props.isLoadingEarlier,accessibilityTraits:"button"},n.default.createElement(s.View,{style:[c.wrapper,this.props.wrapperStyle]},this.renderLoading()))}}]),t})(n.default.Component);a.default=p;var c=s.StyleSheet.create({container:{alignItems:'center',marginTop:5,marginBottom:10},wrapper:{alignItems:'center',justifyContent:'center',backgroundColor:'#b2b2b2',borderRadius:15,height:30,paddingLeft:10,paddingRight:10},text:{backgroundColor:'transparent',color:'#fff',fontSize:12},activityIndicator:{marginTop:s.Platform.select({ios:-14,android:-16})}});p.defaultProps={onLoadEarlier:function(){},isLoadingEarlier:!1,label:'Load earlier messages',containerStyle:{},wrapperStyle:{},textStyle:{},activityIndicatorStyle:{}},p.propTypes={onLoadEarlier:l.default.func,isLoadingEarlier:l.default.bool,label:l.default.string,containerStyle:s.ViewPropTypes.style,wrapperStyle:s.ViewPropTypes.style,textStyle:s.Text.propTypes.style,activityIndicatorStyle:s.ViewPropTypes.style}},1101); -__d(function(e,t,r,s){Object.defineProperty(s,"__esModule",{value:!0});var n=t(1070),a=babelHelpers.interopRequireDefault(n),l=t(51),i=babelHelpers.interopRequireDefault(l),o=t(17),u=t(1085),p=babelHelpers.interopRequireDefault(u),f=t(1087),d=babelHelpers.interopRequireDefault(f),c=t(1096),b=babelHelpers.interopRequireDefault(c),h=t(1098),y=babelHelpers.interopRequireDefault(h),g=t(1083),m=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getInnerComponentProps",value:function(){var e=this.props,t=(e.containerStyle,babelHelpers.objectWithoutProperties(e,["containerStyle"]));return babelHelpers.extends({},t,{isSameUser:g.isSameUser,isSameDay:g.isSameDay})}},{key:"renderDay",value:function(){if(this.props.currentMessage.createdAt){var e=this.getInnerComponentProps();return this.props.renderDay?this.props.renderDay(e):i.default.createElement(y.default,e)}return null}},{key:"renderBubble",value:function(){var e=this.getInnerComponentProps();return this.props.renderBubble?this.props.renderBubble(e):i.default.createElement(d.default,e)}},{key:"renderSystemMessage",value:function(){var e=this.getInnerComponentProps();return this.props.renderSystemMessage?this.props.renderSystemMessage(e):i.default.createElement(b.default,e)}},{key:"renderAvatar",value:function(){if(this.props.user._id===this.props.currentMessage.user._id&&!this.props.showUserAvatar)return null;var e=this.getInnerComponentProps();return null===e.currentMessage.user.avatar?null:i.default.createElement(p.default,e)}},{key:"render",value:function(){return i.default.createElement(o.View,null,this.renderDay(),this.props.currentMessage.system?this.renderSystemMessage():i.default.createElement(o.View,{style:[v[this.props.position].container,{marginBottom:(0,g.isSameUser)(this.props.currentMessage,this.props.nextMessage)?2:10},this.props.containerStyle[this.props.position]]},"left"===this.props.position?this.renderAvatar():null,this.renderBubble(),"right"===this.props.position?this.renderAvatar():null))}}]),t})(i.default.Component);s.default=m;var v={left:o.StyleSheet.create({container:{flexDirection:'row',alignItems:'flex-end',justifyContent:'flex-start',marginLeft:8,marginRight:0}}),right:o.StyleSheet.create({container:{flexDirection:'row',alignItems:'flex-end',justifyContent:'flex-end',marginLeft:0,marginRight:8}})};m.defaultProps={renderAvatar:void 0,renderBubble:null,renderDay:null,renderSystemMessage:null,position:'left',currentMessage:{},nextMessage:{},previousMessage:{},user:{},containerStyle:{}},m.propTypes={renderAvatar:a.default.func,showUserAvatar:a.default.bool,renderBubble:a.default.func,renderDay:a.default.func,renderSystemMessage:a.default.func,position:a.default.oneOf(['left','right']),currentMessage:a.default.object,nextMessage:a.default.object,previousMessage:a.default.object,user:a.default.object,containerStyle:a.default.shape({left:o.ViewPropTypes.style,right:o.ViewPropTypes.style})}},1102); -__d(function(e,r,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=r(1070),a=babelHelpers.interopRequireDefault(n),o=r(51),l=babelHelpers.interopRequireDefault(o),i=r(17),u=r(1104),d=babelHelpers.interopRequireDefault(u),p=r(1105),f=babelHelpers.interopRequireDefault(p),c=r(1107),b=babelHelpers.interopRequireDefault(c),h=r(1101),g=babelHelpers.interopRequireDefault(h),m=r(1102),v=babelHelpers.interopRequireDefault(m),y=(function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));t.renderRow=t.renderRow.bind(t),t.renderFooter=t.renderFooter.bind(t),t.renderLoadEarlier=t.renderLoadEarlier.bind(t),t.renderScrollComponent=t.renderScrollComponent.bind(t);var s=new i.ListView.DataSource({rowHasChanged:function(e,r){return e.hash!==r.hash}}),n=t.prepareMessages(e.messages);return t.state={dataSource:s.cloneWithRows(n.blob,n.keys)},t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"prepareMessages",value:function(e){return{keys:e.map(function(e){return e._id}),blob:e.reduce(function(r,t,s){var n=e[s+1]||{},a=e[s-1]||{},o=JSON.stringify(t)+n._id+a._id;return r[t._id]=babelHelpers.extends({},t,{previousMessage:n,nextMessage:a,hash:(0,b.default)(o)}),r},{})}}},{key:"shouldComponentUpdate",value:function(e,r){return!(0,d.default)(this.props,e)||!(0,d.default)(this.state,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.messages!==e.messages){var r=this.prepareMessages(e.messages);this.setState({dataSource:this.state.dataSource.cloneWithRows(r.blob,r.keys)})}}},{key:"renderFooter",value:function(){if(this.props.renderFooter){var e=babelHelpers.extends({},this.props);return this.props.renderFooter(e)}return null}},{key:"renderLoadEarlier",value:function(){if(!0===this.props.loadEarlier){var e=babelHelpers.extends({},this.props);return this.props.renderLoadEarlier?this.props.renderLoadEarlier(e):l.default.createElement(g.default,e)}return null}},{key:"scrollTo",value:function(e){this._invertibleScrollViewRef.scrollTo(e)}},{key:"renderRow",value:function(e,r,t){e._id||0===e._id||console.warn('GiftedChat: `_id` is missing for message',JSON.stringify(e)),e.user||(e.system||console.warn("GiftedChat: `user` is missing for message",JSON.stringify(e)),e.user={});var s=babelHelpers.extends({},this.props,{key:e._id,currentMessage:e,previousMessage:e.previousMessage,nextMessage:e.nextMessage,position:e.user._id===this.props.user._id?'right':'left'});return this.props.renderMessage?this.props.renderMessage(s):l.default.createElement(v.default,s)}},{key:"renderScrollComponent",value:function(e){var r=this,t=this.props.invertibleScrollViewProps;return l.default.createElement(f.default,babelHelpers.extends({},e,t,{ref:function(e){return r._invertibleScrollViewRef=e}}))}},{key:"render",value:function(){return l.default.createElement(i.View,{ref:"container",style:S.container},l.default.createElement(i.ListView,babelHelpers.extends({enableEmptySections:!0,automaticallyAdjustContentInsets:!1,initialListSize:20,pageSize:20},this.props.listViewProps,{dataSource:this.state.dataSource,renderRow:this.renderRow,renderHeader:this.renderFooter,renderFooter:this.renderLoadEarlier,renderScrollComponent:this.renderScrollComponent})))}}]),r})(l.default.Component);s.default=y;var S=i.StyleSheet.create({container:{flex:1}});y.defaultProps={messages:[],user:{},renderFooter:null,renderMessage:null,onLoadEarlier:function(){}},y.propTypes={messages:a.default.array,user:a.default.object,renderFooter:a.default.func,renderMessage:a.default.func,onLoadEarlier:a.default.func,listViewProps:a.default.object}},1103); -__d(function(r,t,e,n){e.exports=function(r,t,e,n){var o=e?e.call(n,r,t):void 0;if(void 0!==o)return!!o;if(r===t)return!0;if('object'!=typeof r||!r||'object'!=typeof t||!t)return!1;var i=Object.keys(r),f=Object.keys(t);if(i.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u>>24)|4278255360&(e[y]<<24|e[y]>>>8);e[g>>>5]|=128<>>9<<4)]=g;var _=r._ff,v=r._gg,h=r._hh,d=r._ii;for(y=0;y>>0,f=f+T>>>0,c=c+B>>>0,l=l+S>>>0}return i.endian([u,f,c,l])})._ff=function(r,n,t,e,i,o,s){var a=r+(n&t|~n&e)+(i>>>0)+s;return(a<>>32-o)+n},g._gg=function(r,n,t,e,i,o,s){var a=r+(n&e|t&~e)+(i>>>0)+s;return(a<>>32-o)+n},g._hh=function(r,n,t,e,i,o,s){var a=r+(n^t^e)+(i>>>0)+s;return(a<>>32-o)+n},g._ii=function(r,n,t,e,i,o,s){var a=r+(t^(n|~e))+(i>>>0)+s;return(a<>>32-o)+n},g._blocksize=16,g._digestsize=16,t.exports=function(r,n){if(void 0===r||null===r)throw new Error('Illegal argument '+r);var t=i.wordsToBytes(g(r,n));return n&&n.asBytes?t:n&&n.asString?a.bytesToString(t):i.bytesToHex(t)}},1107); -__d(function(r,t,n,o){var e,u;e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u={rotl:function(r,t){return r<>>32-t},rotr:function(r,t){return r<<32-t|r>>>t},endian:function(r){if(r.constructor==Number)return 16711935&u.rotl(r,8)|4278255360&u.rotl(r,24);for(var t=0;t0;r--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(r){for(var t=[],n=0,o=0;n>>5]|=r[n]<<24-o%32;return t},wordsToBytes:function(r){for(var t=[],n=0;n<32*r.length;n+=8)t.push(r[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(r){for(var t=[],n=0;n>>4).toString(16)),t.push((15&r[n]).toString(16));return t.join('')},hexToBytes:function(r){for(var t=[],n=0;n>>6*(3-u)&63)):t.push('=');return t.join('')},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,'');for(var t=[],n=0,o=0;n>>6-2*o);return t}},n.exports=u},1108); -__d(function(n,t,e,o){var r={utf8:{stringToBytes:function(n){return r.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(r.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var t=[],e=0;eo[1]?-1:e[1]o[3]?1:e[3]\/\\\t/g,' ')).replace(/\s+-+\s+/g,'.')).replace(/\s*[,\.\?!;]+\s*/g,'.')).replace(/\s*\bbut\b\s*/g,'.')).replace(/\s{2,}/g,' ')).split('.'),a=0;a=0&&(o=this._execRule(h)),''!=o)return o}}if(''==(o=this._memGet())){this.sentence=' ';var y=this._getRuleIndexByKey('xnone');y>=0&&(o=this._execRule(y))}return''!=o?o:'I am at a loss for words.'},n.prototype._execRule=function(e){for(var o=this.elizaKeywords[e][2],t=/\(([0-9]+)\)/,a=0;ar||this.lastchoice[e][a]==r?(r=++this.lastchoice[e][a])>=s.length&&(r=0,this.lastchoice[e][a]=-1):this.lastchoice[e][a]=r;var u=s[r];if(this.debug&&alert('match:\nkey: '+this.elizaKeywords[e][0]+'\nrank: '+this.elizaKeywords[e][1]+'\ndecomp: '+o[a][0]+'\nreasmb: '+u+'\nmemflag: '+n),0==u.search('^goto ','i')&&(ki=this._getRuleIndexByKey(u.substring(5)),ki>=0))return this._execRule(ki);var h=t.exec(u);if(h){for(var y='',l=u;h;){var d=i[parseInt(h[1])],m=this.postExp.exec(d);if(m){for(var p='',f=d;m;)p+=f.substring(0,m.index)+this.posts[m[1]],f=f.substring(m.index+m[0].length),m=this.postExp.exec(f);d=p+f}y+=l.substring(0,h.index)+d,l=l.substring(h.index+h[0].length),h=t.exec(l)}u=y+l}if(u=this._postTransform(u),!n)return u;this._memSave(u)}}return''},n.prototype._postTransform=function(e){if(e=(e=e.replace(/\s{2,}/g,' ')).replace(/\s+\./g,'.'),this.elizaPostTransforms&&this.elizaPostTransforms.length)for(var o=0;othis.memSize&&this.mem.shift()},n.prototype._memGet=function(){if(this.mem.length){if(this.noRandom)return this.mem.shift();for(var e=Math.floor(Math.random()*this.mem.length),o=this.mem[e],t=e+1;t0&&e[t]?e[t]:void 0})(w,n);return b.default.createElement(s,{key:n,index:n,badge:!(!r||!r[n])&&r[n],isTabActive:t?l.includes(n):a===n,text:e,textNumberOfLines:m,onTabPress:function(e){return(function(e,t,a,l){t?l(e):a!==e&&l(e)})(e,t,a,B)},firstTabStyle:0===n?[{borderRightWidth:0},R]:{},lastTabStyle:n===i.length-1?[{borderLeftWidth:0},F]:{},tabStyle:[T,0!==n&&n!==i.length-1?{marginLeft:-1}:{}],activeTabStyle:u,tabTextStyle:S,activeTabTextStyle:g,tabBadgeContainerStyle:p,activeTabBadgeContainerStyle:f,tabBadgeStyle:v,activeTabBadgeStyle:x,allowFontScaling:C,activeTabOpacity:L,accessible:h,accessibilityLabel:o||e,enabled:O})}))};c.propTypes={values:o.default.array,badges:o.default.array,multiple:o.default.bool,onTabPress:o.default.func,selectedIndex:o.default.number,selectedIndices:o.default.arrayOf(o.default.number),tabsContainerStyle:n.ViewPropTypes.style,tabsContainerDisableStyle:n.ViewPropTypes.style,tabStyle:n.ViewPropTypes.style,activeTabStyle:n.ViewPropTypes.style,tabTextStyle:n.Text.propTypes.style,activeTabTextStyle:n.Text.propTypes.style,tabBadgeContainerStyle:n.Text.propTypes.style,activeTabBadgeContainerStyle:n.Text.propTypes.style,tabBadgeStyle:n.Text.propTypes.style,activeTabBadgeStyle:n.Text.propTypes.style,borderRadius:o.default.number,textNumberOfLines:o.default.number,allowFontScaling:o.default.bool,accessible:o.default.bool,accessibilityLabels:o.default.array,activeTabOpacity:o.default.number,enabled:o.default.bool},c.defaultProps={values:['One','Two','Three'],accessible:!0,accessibilityLabels:[],badges:['','',''],multiple:!1,selectedIndex:0,selectedIndices:[0],onTabPress:function(){},tabsContainerStyle:{},tabsContainerDisableStyle:{opacity:.6},tabStyle:{},activeTabStyle:{},tabTextStyle:{},activeTabTextStyle:{},tabBadgeContainerStyle:{},activeTabBadgeContainerStyle:{},tabBadgeStyle:{},activeTabBadgeStyle:{},borderRadius:5,textNumberOfLines:1,allowFontScaling:!0,activeTabOpacity:1,enabled:!0};var d=n.StyleSheet.create({tabsContainerStyle:{backgroundColor:'transparent',flexDirection:'row'},tabStyle:{paddingVertical:5,flex:1,justifyContent:'center',alignItems:'center',borderColor:'#0076FF',borderWidth:1,backgroundColor:'white'},activeTabStyle:{backgroundColor:'#0076FF'},tabTextStyle:{color:'#0076FF'},activeTabTextStyle:{color:'white'},tabBadgeContainerStyle:{borderRadius:20,backgroundColor:'red',paddingLeft:5,paddingRight:5,marginLeft:5,marginBottom:3},activeTabBadgeContainerStyle:{backgroundColor:'white'},tabBadgeStyle:{color:'white',fontSize:11,fontWeight:'bold'},activeTabBadgeStyle:{color:'black'}});l.default=c},1116); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),i=babelHelpers.interopRequireDefault(a),n=t(17),u=t(777),d=t(794),s=babelHelpers.interopRequireDefault(d);r.default=function(e){var t=e.title,l=u.MediaQueryStyleSheet.create(babelHelpers.extends({},s.default));return i.default.createElement(n.View,{style:l.sectionListHeaderContainer},i.default.createElement(n.Text,{style:l.sectionListHeaderText},t))}},1117); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var c=t(51),i=babelHelpers.interopRequireDefault(c),r=t(297),a=t(17),u=t(1119),s=babelHelpers.interopRequireDefault(u),l=t(1122),p=babelHelpers.interopRequireDefault(l),d=t(508),g=t(776),f=babelHelpers.interopRequireDefault(g),A=t(532),b=t(793),C=babelHelpers.interopRequireDefault(b),E=t(1287),h=babelHelpers.interopRequireDefault(E),v=t(365),S=t(511),H=t(623),D=t(663),F=babelHelpers.interopRequireDefault(D),T=(function(e){function t(){var e,n,o,c;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,r=Array(i),u=0;u0?{uri:"data:image/gif;base64,"+e}:null};var n=u(366),t=babelHelpers.interopRequireDefault(n)},1121); -__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0});var l=t(51),r=babelHelpers.interopRequireDefault(l),o=t(17),i=t(1123),u=babelHelpers.interopRequireDefault(i),c=t(996),s=t(1124),d=t(797),f=babelHelpers.interopRequireDefault(d),p=t(800),h=babelHelpers.interopRequireDefault(p),b=t(1121),v=t(624),g=babelHelpers.interopRequireDefault(v),m=t(515),y=babelHelpers.interopRequireDefault(m),C=t(663),E=babelHelpers.interopRequireDefault(C),_=t(1286),P=babelHelpers.interopRequireDefault(_),B=t(802),w=babelHelpers.interopRequireDefault(B),x=t(623),A=(function(e){function t(e){var a=this;babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onChange=function(e,t){n.props.onAccountChanged(e,t)},n._onEditAvatar=function(){null!==n.actionSheet&&n.actionSheet._root.showActionSheet({options:[E.default.t('screens.profile.edit.editPhotoActionSheet.photoLibrary'),E.default.t('screens.profile.edit.editPhotoActionSheet.takePhoto'),E.default.t('screens.profile.edit.editPhotoActionSheet.cancel')],cancelButtonIndex:2,title:E.default.t('screens.profile.edit.editPhotoActionSheet.title')},function(e){switch(e){case 0:n._openPicker(!1);break;case 1:n._openPicker(!0)}})},n._openPicker=function(e){var t,l;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t={cropping:!0,mediaType:'photo',cropperCircleOverlay:!0,compressImageQuality:.4,includeBase64:!0},a.prev=1,!e){a.next=8;break}return a.next=5,regeneratorRuntime.awrap(u.default.openCamera(t));case 5:a.t0=a.sent,a.next=11;break;case 8:return a.next=10,regeneratorRuntime.awrap(u.default.openPicker(t));case 10:a.t0=a.sent;case 11:(l=a.t0).data&&n.props.onAccountChanged('avatar',l.data),a.next=18;break;case 15:a.prev=15,a.t1=a.catch(1),'E_PICKER_CANCELLED'!==a.t1.code&&o.Alert.alert(E.default.t('error.noCamera'));case 18:case"end":return a.stop()}},null,a,[[1,15]])},n.actionSheet=null,n.setNavigationButtons((0,b.saveShouldBeEnabled)(n.props.account,n.props.editingAccount)),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setNavigationButtons",value:function(e){var t=babelHelpers.extends({leftButtons:void 0,rightButtons:[{title:E.default.t('screens.profile.edit.doneButton'),id:"DONE_BUTTON",disabled:!e,buttonColor:y.default.navigationButtonColor}]},x.androidNavigationButtons);!1===this.props.isCreating&&(t.leftButtons=[{title:E.default.t('screens.profile.edit.cancelButton'),id:'cancel',buttonColor:y.default.navigationButtonColor}]),this.props.navigator.setButtons(t)}},{key:"componentWillReceiveProps",value:function(e){var t=(0,b.saveShouldBeEnabled)(this.props.account,this.props.editingAccount),a=(0,b.saveShouldBeEnabled)(e.account,e.editingAccount);t!==a&&this.setNavigationButtons(a)}},{key:"onNavBarButtonPress",value:function(e){'cancel'===e&&this.props.onCancelEditing(),"DONE_BUTTON"===e&&this.props.onDoneEditing()}},{key:"render",value:function(){return r.default.createElement(o.View,{style:P.default.bodyContainer},r.default.createElement(c.KeyboardAwareScrollView,{style:P.default.scrollView},r.default.createElement(w.default,{title:this.props.isCreating?E.default.t('screens.accounts.create.identityTitle'):E.default.t('screens.profile.edit.editPhoto')}),this._buildPicturePanel(),this._buildProfileForm()))}},{key:"_buildPicturePanel",value:function(){var e=this.props.editingAccount,t=(0,b.imageSource)(e.avatar)||g.default.avatarIcon;return r.default.createElement(o.View,{style:P.default.avatarContainerLarge},r.default.createElement(o.TouchableOpacity,{onPress:this._onEditAvatar},r.default.createElement(o.View,{style:P.default.avatarChangeContainer},r.default.createElement(o.Image,{source:t,style:P.default.avatarLarge}),r.default.createElement(o.Text,{style:P.default.editItemLabel},E.default.t('screens.profile.edit.editPhoto')))))}},{key:"_buildProfileForm",value:function(){var e=this;return r.default.createElement(h.default,{style:P.default.panelViewTransparent,title:''},r.default.createElement(o.View,{style:P.default.formRow},r.default.createElement(o.View,{style:P.default.fieldsContainer},r.default.createElement(o.View,{style:P.default.formRow},r.default.createElement(o.TextInput,{value:this.props.editingAccount.name,onChangeText:function(t){return e._onChange('name',t)},style:P.default.textInput,placeholder:E.default.t('screens.profile.edit.name'),placeholderTextColor:y.default.placeholderTextColor,keyboardType:"default"})),r.default.createElement(o.View,{style:P.default.formRow},r.default.createElement(o.TextInput,{value:this.props.editingAccount.location,onChangeText:function(t){return e._onChange('location',t)},style:P.default.textInput,placeholder:E.default.t('screens.profile.edit.location'),placeholderTextColor:y.default.placeholderTextColor,keyboardType:"default"}))),r.default.createElement(s.ActionSheet,{ref:function(t){e.actionSheet=t}})))}}]),t})(f.default);n.default=A},1122); -__d(function(e,r,a,l){Object.defineProperty(l,"__esModule",{value:!0});var t=r(51),u=(babelHelpers.interopRequireDefault(t),r(17));l.default=u.NativeModules.ImageCropPicker},1123); -__d(function(e,t,a,o){Object.defineProperty(o,"__esModule",{value:!0}),o.mapPropsToStyleNames=o.Accordion=o.VueNativeBase=o.SwipeRow=o.Root=o.Segment=o.DefaultTabBar=o.TabContainer=o.TabHeading=o.ActionSheet=o.ScrollableTab=o.Toast=o.View=o.TabContent=o.Text=o.Grid=o.Row=o.Col=o.Textarea=o.Label=o.Subtitle=o.Item=o.DeckSwiper=o.Separator=o.ListItem=o.List=o.Picker=o.FooterTab=o.Tabs=o.Tab=o.Footer=o.Content=o.Container=o.Switch=o.Spinner=o.H3=o.H2=o.H1=o.CardItem=o.Card=o.Thumbnail=o.Radio=o.CheckBox=o.Badge=o.Body=o.Right=o.Left=o.Fab=o.Title=o.Input=o.InputGroup=o.Form=o.Header=o.Icon=o.IconNB=o.DatePicker=o.Button=o.connectStyle=o.StyleProvider=o.variables=o.getTheme=void 0;var n=t(1125),r=t(1138),i=t(1139),l=ce(t(1144)),c=ce(t(1145)),d=ce(t(1147)),T=t(1197),b=t(1198),u=t(1204),S=t(1205),p=t(1207),C=t(1208),m=t(1209),s=t(1210),B=t(1231),I=t(1233),w=t(1234),h=t(1235),f=t(1237),H=t(1238),R=t(1200),g=t(1201),k=t(1202),y=t(1239),F=t(1240),L=t(1241),P=t(1242),v=t(1243),x=t(1244),D=t(1245),N=t(1246),A=t(1247),G=t(1248),_=t(1249),V=t(1250),M=t(1256),j=t(1257),O=t(1264),q=t(1265),z=t(1266),E=t(1253),J=t(1255),K=t(1267),Q=t(1268),U=t(1203),W=t(1269),X=t(1270),Y=t(1272),Z=t(1274),$=t(1273),ee=t(1275),te=t(1276),ae=ce(t(1277)),oe=t(1280),ne=t(1282),re=t(1283),ie=t(1284),le=ce(t(1285));function ce(e){return e&&e.__esModule?e:{default:e}}(0,l.default)(),o.getTheme=c.default,o.variables=d.default,o.StyleProvider=n.StyleProvider,o.connectStyle=n.connectStyle,o.Button=S.Button,o.DatePicker=p.DatePicker,o.IconNB=s.IconNB,o.Icon=B.Icon,o.Header=I.Header,o.Form=z.Form,o.InputGroup=w.InputGroup,o.Input=h.Input,o.Title=f.Title,o.Fab=H.Fab,o.Left=R.Left,o.Right=g.Right,o.Body=k.Body,o.Badge=y.Badge,o.CheckBox=F.CheckBox,o.Radio=L.Radio,o.Thumbnail=P.Thumbnail,o.Card=v.Card,o.CardItem=x.CardItem,o.H1=D.H1,o.H2=N.H2,o.H3=A.H3,o.Spinner=G.Spinner,o.Switch=_.Switch,o.Container=V.Container,o.Content=j.Content,o.Footer=O.Footer,o.Tab=te.Tab,o.Tabs=ae.default,o.FooterTab=q.FooterTab,o.Picker=K.PickerNB,o.List=Q.List,o.ListItem=U.ListItem,o.Separator=W.Separator,o.DeckSwiper=X.DeckSwiper,o.Item=Y.Item,o.Subtitle=re.Subtitle,o.Label=$.Label,o.Textarea=ee.Textarea,o.Col=i.Col,o.Row=i.Row,o.Grid=i.Grid,o.Text=b.Text,o.TabContent=j.Content,o.View=u.ViewNB,o.Toast=E.ToastContainer,o.ScrollableTab=ne.ScrollableTab,o.ActionSheet=J.ActionSheetContainer,o.TabHeading=C.TabHeading,o.TabContainer=m.TabContainer,o.DefaultTabBar=oe.DefaultTabBar,o.Segment=Z.Segment,o.Root=M.Root,o.SwipeRow=T.SwipeRow,o.VueNativeBase=le.default,o.Accordion=ie.Accordion;o.mapPropsToStyleNames=function(e,t){return(0,r.keys)(t)}},1124); -__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createSharedStyle=r.createVariations=r.ThemeShape=r.Theme=r.StyleProvider=r.INCLUDE=r.connectStyle=void 0;var l=t(1126),i=babelHelpers.interopRequireDefault(l),o=t(1132),n=t(1136),S=babelHelpers.interopRequireDefault(n),c=t(1131),d=babelHelpers.interopRequireDefault(c),u=t(1137);r.connectStyle=i.default,r.INCLUDE=o.INCLUDE,r.StyleProvider=S.default,r.Theme=d.default,r.ThemeShape=c.ThemeShape,r.createVariations=u.createVariations,r.createSharedStyle=u.createSharedStyle},1125); -__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireDefault(a),s=t(105),o=babelHelpers.interopRequireDefault(s),i=t(1127),u=babelHelpers.interopRequireDefault(i),p=t(366),y=babelHelpers.interopRequireWildcard(p),c=t(1128),h=(babelHelpers.interopRequireDefault(c),t(17),t(1131)),d=babelHelpers.interopRequireDefault(h),f=t(1134),b={};function v(e,t){throw Error(e+" - when connecting "+t+" component to style.")}r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(a){var s=(function(e){return e.displayName||e.name||"Component"})(a);y.isPlainObject(t)||v("Component style must be plain object",s),y.isString(e)||v("Component Style Name must be string",s);var i=(function(s){function o(e,t){babelHelpers.classCallCheck(this,o);var n=babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t)),r=n.getStyleNames(e),a=e.style,l=n.getFinalStyle(e,t,a,r);return n.setWrappedInstance=n.setWrappedInstance.bind(n),n.resolveConnectedComponentStyle=n.resolveConnectedComponentStyle.bind(n),n.state={style:l,addedProps:n.resolveAddedProps(),styleNames:r},n}return babelHelpers.inherits(o,s),babelHelpers.createClass(o,[{key:"getFinalStyle",value:function(t,n,r,a){var l={};n.parentPath?l=this.getOrSetStylesInCache(n,t,a,[].concat(babelHelpers.toConsumableArray(n.parentPath),[e],babelHelpers.toConsumableArray(a))):(l=this.resolveStyle(n,t,a),b[e]=l);var s=(function(e){return y.pickBy(e,function(e,t){return!/^\./.test(t)&&!(function(e){return/(^[^\.].*\.)|^\*$/.test(e)})(t)})})(y.merge({},l));return y.isArray(r)?[s].concat(babelHelpers.toConsumableArray(r)):"number"==typeof r||"object"==typeof r?[s,r]:s}},{key:"getStyleNames",value:function(e){var t=y.map(e,function(e,t){return"object"!=typeof e&&!0===e&&"."+t});return y.remove(t,function(e,t){return!1===e}),t}},{key:"getParentPath",value:function(){return this.context.parentPath?[].concat(babelHelpers.toConsumableArray(this.context.parentPath),[e],babelHelpers.toConsumableArray(this.getStyleNames(this.props))):[e]}},{key:"getChildContext",value:function(){return{parentPath:this.getParentPath()}}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.getStyleNames(e),r=e.style;if(this.shouldRebuildStyle(e,t,n)){var a=this.getFinalStyle(e,t,r,n);this.setState({style:a,styleNames:n})}}},{key:"setNativeProps",value:function(e){this.wrappedInstance.setNativeProps&&this.wrappedInstance.setNativeProps(e)}},{key:"setWrappedInstance",value:function(e){e&&e._root?this._root=e._root:this._root=e,this.wrappedInstance=this._root}},{key:"hasStyleNameChanged",value:function(e,t){return n&&this.props!==e&&!y.isEqual(this.state.styleNames,t)}},{key:"shouldRebuildStyle",value:function(e,t,n){return e.style!==this.props.style||e.styleName!==this.props.styleName||t.theme!==this.context.theme||!y.isEqual(t.parentPath,this.context.parentPath)||this.hasStyleNameChanged(e,n)}},{key:"resolveStyleNames",value:function(e){var t=e.styleName,r=t?t.split(/\s/g):[];return n?y.uniq(n(r,e)):r}},{key:"resolveAddedProps",value:function(){var e={};return r.withRef&&(e.ref="wrappedInstance"),e}},{key:"getOrSetStylesInCache",value:function(e,t,n,r){if(b&&b[r.join(">")])return b[r.join(">")];var a=this.resolveStyle(e,t,n);return Object.keys(b).length<1e4&&(b[r.join(">")]=a),a}},{key:"resolveStyle",value:function(n,r,a){var l={},s=(function(e){return e.theme||d.default.getDefaultTheme()})(n).createComponentStyle(e,t);return l=n.parentPath?b[n.parentPath.join(">")]:(0,f.resolveComponentStyle)(e,a,s,l),(0,f.resolveComponentStyle)(e,a,s,l)}},{key:"resolveConnectedComponentStyle",value:function(e){var t=this.resolveStyleNames(e);return this.resolveStyle(this.context,e,t).componentStyle}},{key:"render",value:function(){var e=this.state,t=e.addedProps,n=e.style;return l.default.createElement(a,babelHelpers.extends({},this.props,t,{style:n,ref:this.setWrappedInstance}))}}]),o})(l.default.Component);return i.contextTypes={theme:h.ThemeShape,parentPath:o.default.array},i.childContextTypes={parentPath:o.default.array},i.propTypes={style:o.default.oneOfType([o.default.object,o.default.number,o.default.array]),styleName:o.default.string,virtual:o.default.bool},i.defaultProps={virtual:r.virtual},i.displayName="Styled("+s+")",i.WrappedComponent=a,(0,u.default)(i,a)}}},1126); -__d(function(t,e,r,o){'use strict';var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},s='function'==typeof Object.getOwnPropertySymbols;r.exports=function(t,e,r){if('string'!=typeof e){var o=Object.getOwnPropertyNames(e);s&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var y=0;y2&&void 0!==arguments[2]?arguments[2]:'';r.forEach(function(r){var t=e+r.type+i;if(a.normalizerExists(t))throw Error("Normalizer for '"+t+"' shorthand already exists");a.normalizers[t]=l.default.createNormalizer(e,r,i)})}},{key:"normalizerExists",value:function(e){return!!this.normalizers[e]}},{key:"canNormalize",value:function(e){return this.normalizerExists(e)}},{key:"normalize",value:function(e,r){return this.normalizers[e](r)}}]),e})();i.default=n},1129); -__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.BOTTOM_LEFT=l.TOP_LEFT=l.BOTTOM_RIGHT=l.TOP_RIGHT=l.BOTTOM=l.TOP=l.RIGHT=l.LEFT=l.VERTICAL=l.HORIZONTAL=l.CORNERS=l.SIDES=void 0;var a=r(366),i=babelHelpers.interopRequireDefault(a),n=function(e,r){return{name:e,type:i.default.isUndefined(r)?e:r}},o=l.SIDES=n('Sides',''),s=l.CORNERS=n('Corners',''),p=l.HORIZONTAL=n('Horizontal'),b=l.VERTICAL=n('Vertical'),f=l.LEFT='Left',u=l.RIGHT='Right',T=l.TOP='Top',d=l.BOTTOM='Bottom',c=l.TOP_RIGHT='TopRight',H=l.BOTTOM_RIGHT='BottomRight',O=l.TOP_LEFT='TopLeft',y=l.BOTTOM_LEFT='BottomLeft',P=(function(){function e(){var r;babelHelpers.classCallCheck(this,e),this.createNormalizersMap=(r={},babelHelpers.defineProperty(r,o.name,this.createAllSidesNormalizer),babelHelpers.defineProperty(r,s.name,this.createAllCornersNormalizer),babelHelpers.defineProperty(r,p.name,this.createHorizontalSidesNormalizer),babelHelpers.defineProperty(r,b.name,this.createVerticalSidesNormalizer),r)}return babelHelpers.createClass(e,[{key:"createAllSidesNormalizer",value:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return function(r){var l;return l={},babelHelpers.defineProperty(l,e+f+t,r),babelHelpers.defineProperty(l,e+u+t,r),babelHelpers.defineProperty(l,e+T+t,r),babelHelpers.defineProperty(l,e+d+t,r),l}}},{key:"createAllCornersNormalizer",value:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return function(r){var l;return l={},babelHelpers.defineProperty(l,e+y+t,r),babelHelpers.defineProperty(l,e+H+t,r),babelHelpers.defineProperty(l,e+O+t,r),babelHelpers.defineProperty(l,e+c+t,r),l}}},{key:"createHorizontalSidesNormalizer",value:function(e){return function(r){var t;return t={},babelHelpers.defineProperty(t,e+f,r),babelHelpers.defineProperty(t,e+u,r),t}}},{key:"createVerticalSidesNormalizer",value:function(e){return function(r){var t;return t={},babelHelpers.defineProperty(t,e+T,r),babelHelpers.defineProperty(t,e+d,r),t}}},{key:"getNormalizerCreator",value:function(e){return this.createNormalizersMap[e.name]}},{key:"createNormalizer",value:function(e,r,t){return this.getNormalizerCreator(r)(e,r,t)}}]),e})();l.default=new P},1130); -__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0}),u.ThemeShape=void 0;var r=t(105),a=t(1132),n=babelHelpers.interopRequireDefault(a),i=t(1133),s=babelHelpers.interopRequireDefault(i),h=t(1128),o=babelHelpers.interopRequireDefault(h),f="@@shoutem.theme/themeStyle",p="@@shoutem.theme/themeCachedStyle",c=void 0,m=function(e,t){return(0,o.default)((0,n.default)(e,t))},b=(function(){function e(t){babelHelpers.classCallCheck(this,e),this[f]=m(t),this[p]={}}return babelHelpers.createClass(e,[{key:"createComponentStyle",value:function(e,t){if(this[p][e])return this[p][e];var l=m(t,this[f]);return this[p][e]=(0,s.default)(l,this[f][e],this[f]),this[p][e]}}],[{key:"setDefaultThemeStyle",value:function(t){c=new e(t)}},{key:"getDefaultTheme",value:function(){return c||(c=new e({})),c}}]),e})();u.default=b;u.ThemeShape=r.PropTypes.shape({createComponentStyle:r.PropTypes.func.isRequired})},1131); -__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.INCLUDE=void 0,t.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(n){var t={},i=t,a=r[n];if(a){if(a[l])throw Error("Base style cannot have includes, unexpected include in "+n+".");i=babelHelpers.extends({},a)}var o=e[n];return o&&(i=babelHelpers.extends({},i,o)),i===t&&console.warn("Including unexisting style: "+n),i}var t=new Set;return(function e(r,t){if(!a.isPlainObject(r))return r;var i=r[l];var u={};if(i){if(!a.isArray(i))throw Error('Include should be array');for(var s=i,d=Array.isArray(s),f=0,s=d?s:s["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var c;if(d){if(f>=s.length)break;c=s[f++]}else{if((f=s.next()).done)break;c=f.value}var b=c;if(t.has(b))throw Error("Circular style include, including "+b);t.add(b),u=a.mergeWith({},u,e(n(b),t),o),t.delete(b)}}var v=a.mergeWith({},u,r,o);delete v[l];for(var y=a.keys(v),h=Array.isArray(y),m=0,y=h?y:y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var p;if(h){if(m>=y.length)break;p=y[m++]}else{if((m=y.next()).done)break;p=m.value}var g=p;v[g]=e(v[g],t)}return v})(e,t)};var i=r(366),a=babelHelpers.interopRequireWildcard(i),l=t.INCLUDE='@@shoutem.theme/include';function o(e,r){var n=e,t=void 0;if(r&&r[l]&&(t=n&&n[l]?[].concat(babelHelpers.toConsumableArray(n[l]),babelHelpers.toConsumableArray(r[l])):r[l]),a.isUndefined(n)&&a.isPlainObject(r)){var i=a.mergeWith({},r,function(e,r){return r});return t&&(i[l]=t),i}a.isPlainObject(n)&&t&&(n[l]=t)}},1132); -__d(function(e,r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,r,i){var n=u.merge({},e,r),t=u.pick(i,u.keys(n));return u.merge({},t,n)};var t=r(366),u=babelHelpers.interopRequireWildcard(t)},1133); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.resolveComponentStyle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=(arguments[4],(0,u.default)(n,o[e]));t.forEach(function(e,t){f=(0,u.default)(f,n[""+e])}),t.forEach(function(t,n){f=(0,u.default)(f,o[""+e+t])});var l=(0,u.default)(f,o[e]);return t.forEach(function(e,t){l=(0,u.default)(l,f[""+e])}),t.forEach(function(t,n){l=(0,u.default)(l,o[""+e+t])}),l};var f=t(366),l=(babelHelpers.interopRequireDefault(f),t(1135)),u=babelHelpers.interopRequireDefault(l)},1134); -__d(function(e,o,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(o,r){var t={};var i=void 0,f=void 0;if(!o)return r;if(!r)return o;for(i in o)for(f in r)i===f?"object"==typeof o[i]&&"object"==typeof r[i]&&r[i]&&o[i]?t[i]=e(o[i],r[i]):t[i]=r[i]:(void 0===t[i]&&(t[i]=o[i]),void 0===t[f]&&(t[f]=r[f]));return t}},1135); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var s=t(51),n=babelHelpers.interopRequireDefault(s),a=t(105),i=babelHelpers.interopRequireDefault(a),u=t(1131),o=babelHelpers.interopRequireDefault(u),p=t(1128),h=(babelHelpers.interopRequireDefault(p),(function(e){function t(e,l){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,l));return r.state={theme:r.createTheme(e)},r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){return{theme:this.state.theme}}},{key:"componentWillReceiveProps",value:function(e){e.style!==this.props.style&&this.setState({theme:this.createTheme(e)})}},{key:"createTheme",value:function(e){return new o.default(e.style)}},{key:"render",value:function(){var e=this.props.children;return s.Children.only(e)}}]),t})(n.default.Component));h.propTypes={children:i.default.element.isRequired,style:i.default.object},h.defaultProps={style:{}},h.childContextTypes={theme:u.ThemeShape.isRequired},r.default=h},1136); -__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createVariations=function(e,r,t,n){return a.default.reduce(r,function(r,u){var a=u?e+"-"+u:e,i=u?""+t+(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})(u):t;return r[a]=babelHelpers.defineProperty({},i,n),r},{})},n.createSharedStyle=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.default.reduce(e,function(e,n){return e[n]=babelHelpers.extends({},r,t[n]),e},{})};var u=r(366),a=babelHelpers.interopRequireDefault(u)},1137); -__d(function(n,t,r,e){(function(){var t,u=200,i='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',o='Expected a function',f='__lodash_hash_undefined__',a=500,c='__lodash_placeholder__',l=1,s=2,h=4,p=1,v=2,_=1,g=2,y=4,d=8,b=16,w=32,m=64,x=128,j=256,A=512,k=30,O='...',I=800,R=16,z=1,E=2,S=1/0,L=9007199254740991,W=1.7976931348623157e308,C=NaN,T=4294967295,U=T-1,B=T>>>1,$=[['ary',x],['bind',_],['bindKey',g],['curry',d],['curryRight',b],['flip',A],['partial',w],['partialRight',m],['rearg',j]],D='[object Arguments]',M='[object Array]',F='[object AsyncFunction]',N='[object Boolean]',P='[object Date]',q='[object DOMException]',Z='[object Error]',K='[object Function]',V='[object GeneratorFunction]',G='[object Map]',H='[object Number]',J='[object Null]',Y='[object Object]',Q='[object Proxy]',X='[object RegExp]',nn='[object Set]',tn='[object String]',rn='[object Symbol]',en='[object Undefined]',un='[object WeakMap]',on='[object WeakSet]',fn='[object ArrayBuffer]',an='[object DataView]',cn='[object Float32Array]',ln='[object Float64Array]',sn='[object Int8Array]',hn='[object Int16Array]',pn='[object Int32Array]',vn='[object Uint8Array]',_n='[object Uint8ClampedArray]',gn='[object Uint16Array]',yn='[object Uint32Array]',dn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,jn=RegExp(mn.source),An=RegExp(xn.source),kn=/<%-([\s\S]+?)%>/g,On=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zn=/^\w*$/,En=/^\./,Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ln=/[\\^$.*+?()[\]{}|]/g,Wn=RegExp(Ln.source),Cn=/^\s+|\s+$/g,Tn=/^\s+/,Un=/\s+$/,Bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$n=/\{\n\/\* \[wrapped with (.+)\] \*/,Dn=/,? & /,Mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fn=/\\(\\)?/g,Nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pn=/\w*$/,qn=/^[-+]0x[0-9a-f]+$/i,Zn=/^0b[01]+$/i,Kn=/^\[object .+?Constructor\]$/,Vn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Hn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jn=/($^)/,Yn=/['\n\r\u2028\u2029\\]/g,Qn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nt="[\\ud800-\\udfff]",tt='['+Xn+']',rt='['+Qn+']',et='\\d+',ut="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ot="[^\\ud800-\\udfff"+Xn+et+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",at="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",st="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht='(?:'+it+'|'+ot+')',pt='(?:'+st+'|'+ot+')',vt='(?:'+rt+'|'+ft+')'+'?',_t="[\\ufe0e\\ufe0f]?"+vt+("(?:\\u200d(?:"+[at,ct,lt].join('|')+")[\\ufe0e\\ufe0f]?"+vt+')*'),gt='(?:'+[ut,ct,lt].join('|')+')'+_t,yt='(?:'+[at+rt+'?',rt,ct,lt,nt].join('|')+')',dt=RegExp("['\u2019]",'g'),bt=RegExp(rt,'g'),wt=RegExp(ft+'(?='+ft+')|'+yt+_t,'g'),mt=RegExp([st+'?'+it+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[tt,st,'$'].join('|')+')',pt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[tt,st+ht,'$'].join('|')+')',st+'?'+ht+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",st+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",'\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)','\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)',et,gt].join('|'),'g'),xt=RegExp("[\\u200d\\ud800-\\udfff"+Qn+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,At=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'],kt=-1,Ot={};Ot[cn]=Ot[ln]=Ot[sn]=Ot[hn]=Ot[pn]=Ot[vn]=Ot[_n]=Ot[gn]=Ot[yn]=!0,Ot[D]=Ot[M]=Ot[fn]=Ot[N]=Ot[an]=Ot[P]=Ot[Z]=Ot[K]=Ot[G]=Ot[H]=Ot[Y]=Ot[X]=Ot[nn]=Ot[tn]=Ot[un]=!1;var It={};It[D]=It[M]=It[fn]=It[an]=It[N]=It[P]=It[cn]=It[ln]=It[sn]=It[hn]=It[pn]=It[G]=It[H]=It[Y]=It[X]=It[nn]=It[tn]=It[rn]=It[vn]=It[_n]=It[gn]=It[yn]=!0,It[Z]=It[K]=It[un]=!1;var Rt={'\\':'\\',"'":"'",'\n':'n','\r':'r',"\u2028":'u2028',"\u2029":'u2029'},zt=parseFloat,Et=parseInt,St='object'==typeof n&&n&&n.Object===Object&&n,Lt='object'==typeof self&&self&&self.Object===Object&&self,Wt=St||Lt||Function('return this')(),Ct='object'==typeof e&&e&&!e.nodeType&&e,Tt=Ct&&'object'==typeof r&&r&&!r.nodeType&&r,Ut=Tt&&Tt.exports===Ct,Bt=Ut&&St.process,$t=(function(){try{return Bt&&Bt.binding&&Bt.binding('util')}catch(n){}})(),Dt=$t&&$t.isArrayBuffer,Mt=$t&&$t.isDate,Ft=$t&&$t.isMap,Nt=$t&&$t.isRegExp,Pt=$t&&$t.isSet,qt=$t&&$t.isTypedArray;function Zt(n,t){return n.set(t[0],t[1]),n}function Kt(n,t){return n.add(t),n}function Vt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Gt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function nr(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function xr(n,t){for(var r=n.length;r--&&cr(t,n[r],0)>-1;);return r}var jr=vr({'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',"\u0100":'A',"\u0102":'A',"\u0104":'A',"\u0101":'a',"\u0103":'a',"\u0105":'a',"\u0106":'C',"\u0108":'C',"\u010a":'C',"\u010c":'C',"\u0107":'c',"\u0109":'c',"\u010b":'c',"\u010d":'c',"\u010e":'D',"\u0110":'D',"\u010f":'d',"\u0111":'d',"\u0112":'E',"\u0114":'E',"\u0116":'E',"\u0118":'E',"\u011a":'E',"\u0113":'e',"\u0115":'e',"\u0117":'e',"\u0119":'e',"\u011b":'e',"\u011c":'G',"\u011e":'G',"\u0120":'G',"\u0122":'G',"\u011d":'g',"\u011f":'g',"\u0121":'g',"\u0123":'g',"\u0124":'H',"\u0126":'H',"\u0125":'h',"\u0127":'h',"\u0128":'I',"\u012a":'I',"\u012c":'I',"\u012e":'I',"\u0130":'I',"\u0129":'i',"\u012b":'i',"\u012d":'i',"\u012f":'i',"\u0131":'i',"\u0134":'J',"\u0135":'j',"\u0136":'K',"\u0137":'k',"\u0138":'k',"\u0139":'L',"\u013b":'L',"\u013d":'L',"\u013f":'L',"\u0141":'L',"\u013a":'l',"\u013c":'l',"\u013e":'l',"\u0140":'l',"\u0142":'l',"\u0143":'N',"\u0145":'N',"\u0147":'N',"\u014a":'N',"\u0144":'n',"\u0146":'n',"\u0148":'n',"\u014b":'n',"\u014c":'O',"\u014e":'O',"\u0150":'O',"\u014d":'o',"\u014f":'o',"\u0151":'o',"\u0154":'R',"\u0156":'R',"\u0158":'R',"\u0155":'r',"\u0157":'r',"\u0159":'r',"\u015a":'S',"\u015c":'S',"\u015e":'S',"\u0160":'S',"\u015b":'s',"\u015d":'s',"\u015f":'s',"\u0161":'s',"\u0162":'T',"\u0164":'T',"\u0166":'T',"\u0163":'t',"\u0165":'t',"\u0167":'t',"\u0168":'U',"\u016a":'U',"\u016c":'U',"\u016e":'U',"\u0170":'U',"\u0172":'U',"\u0169":'u',"\u016b":'u',"\u016d":'u',"\u016f":'u',"\u0171":'u',"\u0173":'u',"\u0174":'W',"\u0175":'w',"\u0176":'Y',"\u0177":'y',"\u0178":'Y',"\u0179":'Z',"\u017b":'Z',"\u017d":'Z',"\u017a":'z',"\u017c":'z',"\u017e":'z',"\u0132":'IJ',"\u0133":'ij',"\u0152":'Oe',"\u0153":'oe',"\u0149":"'n","\u017f":'s'}),Ar=vr({'&':'&','<':'<','>':'>','"':'"',"'":'''});function kr(n){return'\\'+Rt[n]}function Or(n){return xt.test(n)}function Ir(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function Rr(n,t){return function(r){return n(t(r))}}function zr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r','"':'"',''':"'"});var Tr=(function n(r){var e,Qn=(r=null==r?Wt:Tr.defaults(Wt.Object(),r,Tr.pick(Wt,At))).Array,Xn=r.Date,nt=r.Error,tt=r.Function,rt=r.Math,et=r.Object,ut=r.RegExp,it=r.String,ot=r.TypeError,ft=Qn.prototype,at=tt.prototype,ct=et.prototype,lt=r['__core-js_shared__'],st=at.toString,ht=ct.hasOwnProperty,pt=0,vt=(e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||''))?'Symbol(src)_1.'+e:'',_t=ct.toString,gt=st.call(et),yt=Wt._,wt=ut('^'+st.call(ht).replace(Ln,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),xt=Ut?r.Buffer:t,Rt=r.Symbol,St=r.Uint8Array,Lt=xt?xt.allocUnsafe:t,Ct=Rr(et.getPrototypeOf,et),Tt=et.create,Bt=ct.propertyIsEnumerable,$t=ft.splice,or=Rt?"function"==typeof Rt?Rt.isConcatSpreadable:"@@isConcatSpreadable":t,vr=Rt?"function"==typeof Rt?Rt.iterator:"@@iterator":t,Ur=Rt?"function"==typeof Rt?Rt.toStringTag:"@@toStringTag":t,Br=(function(){try{var n=Di(et,'defineProperty');return n({},'',{}),n}catch(n){}})(),$r=r.clearTimeout!==Wt.clearTimeout&&r.clearTimeout,Dr=Xn&&Xn.now!==Wt.Date.now&&Xn.now,Mr=r.setTimeout!==Wt.setTimeout&&r.setTimeout,Fr=rt.ceil,Nr=rt.floor,Pr=et.getOwnPropertySymbols,qr=xt?xt.isBuffer:t,Zr=r.isFinite,Kr=ft.join,Vr=Rr(et.keys,et),Gr=rt.max,Hr=rt.min,Jr=Xn.now,Yr=r.parseInt,Qr=rt.random,Xr=ft.reverse,ne=Di(r,'DataView'),te=Di(r,'Map'),re=Di(r,'Promise'),ee=Di(r,'Set'),ue=Di(r,'WeakMap'),ie=Di(et,'create'),oe=ue&&new ue,fe={},ae=so(ne),ce=so(te),le=so(re),se=so(ee),he=so(ue),pe=Rt?"function"==typeof Rt?Rt.prototype:"@@prototype":t,ve=pe?pe.valueOf:t,_e=pe?pe.toString:t;function ge(n){if(Ef(n)&&!bf(n)&&!(n instanceof we)){if(n instanceof be)return n;if(ht.call(n,'__wrapped__'))return ho(n)}return new be(n)}var ye=(function(){function n(){}return function(r){if(!zf(r))return{};if(Tt)return Tt(r);n.prototype=r;var e=new n;return n.prototype=t,e}})();function de(){}function be(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function me(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=r?n:r)),n}function De(n,r,e,u,i,o){var f,a=r&l,c=r&s,p=r&h;if(e&&(f=i?e(n,u,i,o):e(n)),f!==t)return f;if(!zf(n))return n;var v=bf(n);if(v){if(f=(function(n){var t=n.length,r=n.constructor(t);return t&&'string'==typeof n[0]&&ht.call(n,'index')&&(r.index=n.index,r.input=n.input),r})(n),!a)return oi(n,f)}else{var _=Ni(n),g=_==K||_==V;if(jf(n))return ni(n,a);if(_==Y||_==D||g&&!i){if(f=c||g?{}:qi(n),!a)return c?(function(n,t){return fi(n,Fi(n),t)})(n,(function(n,t){return n&&fi(t,fa(t),n)})(f,n)):(function(n,t){return fi(n,Mi(n),t)})(n,Te(f,n))}else{if(!It[_])return i?n:{};f=(function(n,t,r,e){var u,i,o,f=n.constructor;switch(t){case fn:return ti(n);case N:case P:return new f(+n);case an:return(function(n,t){var r=t?ti(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)})(n,e);case cn:case ln:case sn:case hn:case pn:case vn:case _n:case gn:case yn:return ri(n,e);case G:return(function(n,t,r){return er(t?r(Ir(n),l):Ir(n),Zt,new n.constructor)})(n,e,r);case H:case tn:return new f(n);case X:return(o=new(i=n).constructor(i.source,Pn.exec(i))).lastIndex=i.lastIndex,o;case nn:return(function(n,t,r){return er(t?r(Er(n),l):Er(n),Kt,new n.constructor)})(n,e,r);case rn:return u=n,ve?et(ve.call(u)):{}}})(n,_,De,a)}}o||(o=new ke);var y=o.get(n);if(y)return y;o.set(n,f);var d=v?t:(p?c?Li:Si:c?fa:oa)(n);return Ht(d||n,function(t,u){d&&(t=n[u=t]),Le(f,u,De(t,r,e,u,n,o))}),f}function Me(n,r,e){var u=e.length;if(null==n)return!u;for(n=et(n);u--;){var i=e[u],o=r[i],f=n[i];if(f===t&&!(i in n)||!o(f))return!1}return!0}function Fe(n,r,e){if('function'!=typeof n)throw new ot(o);return uo(function(){n.apply(t,e)},r)}function Ne(n,t,r,e){var i=-1,o=Xt,f=!0,a=n.length,c=[],l=t.length;if(!a)return c;r&&(t=tr(t,dr(r))),e?(o=nr,f=!1):t.length>=u&&(o=wr,f=!1,t=new Ae(t));n:for(;++i-1},xe.prototype.set=function(n,t){var r=this.__data__,e=We(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},je.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(te||xe),string:new me}},je.prototype.delete=function(n){var t=Bi(this,n).delete(n);return this.size-=t?1:0,t},je.prototype.get=function(n){return Bi(this,n).get(n)},je.prototype.has=function(n){return Bi(this,n).has(n)},je.prototype.set=function(n,t){var r=Bi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Ae.prototype.add=Ae.prototype.push=function(n){return this.__data__.set(n,f),this},Ae.prototype.has=function(n){return this.__data__.has(n)},ke.prototype.clear=function(){this.__data__=new xe,this.size=0},ke.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},ke.prototype.get=function(n){return this.__data__.get(n)},ke.prototype.has=function(n){return this.__data__.has(n)},ke.prototype.set=function(n,t){var r=this.__data__;if(r instanceof xe){var e=r.__data__;if(!te||e.length0&&r(f)?t>1?Ge(f,t-1,r,e,u):rr(u,f):e||(u[u.length]=f)}return u}var He=si(),Je=si(!0);function Ye(n,t){return n&&He(n,t,oa)}function Qe(n,t){return n&&Je(n,t,oa)}function Xe(n,t){return Qt(t,function(t){return Of(n[t])})}function nu(n,r){for(var e=0,u=(r=Gi(r,n)?[r]:Ju(r)).length;null!=n&&et}function uu(n,t){return null!=n&&ht.call(n,t)}function iu(n,t){return null!=n&&t in et(n)}function ou(n,r,e){for(var u=e?nr:Xt,i=n[0].length,o=n.length,f=o,a=Qn(o),c=1/0,l=[];f--;){var s=n[f];f&&r&&(s=tr(s,dr(r))),c=Hr(s.length,c),a[f]=!e&&(r||i>=120&&s.length>=120)?new Ae(f&&s):t}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;var c=r[e];return a*('desc'==c?-1:1)}}return n.index-t.index})(n,t,r)})}function xu(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&$t.call(f,a,1),$t.call(n,a,1);return n}function Au(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;if(Ki(u))$t.call(n,u,1);else if(Gi(u,n))delete n[lo(u)];else{var o=Ju(u),f=ro(n,o);null!=f&&delete f[lo(Ao(o))]}}}return n}function ku(n,t){return n+Nr(Qr()*(t-n+1))}function Ou(n,t){var r='';if(!n||t<1||t>L)return r;do{t%2&&(r+=n),(t=Nr(t/2))&&(n+=n)}while(t);return r}function Iu(n,t){return io(to(n,t,La),n+'')}function Ru(n){return Ie(_a(n))}function zu(n,t){var r=_a(n);return ao(r,$e(t,0,r.length))}function Eu(n,r,e,u){if(!zf(n))return n;for(var i=-1,o=(r=Gi(r,n)?[r]:Ju(r)).length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=Qn(u);++e>>1,o=n[i];null!==o&&!Bf(o)&&(r?o<=t:o=u){var l=t?null:Oi(n);if(l)return Er(l);f=!1,i=wr,c=new Ae}else c=t?[]:a;n:for(;++e=u?n:Cu(n,r,e)}var Xu=$r||function(n){return Wt.clearTimeout(n)};function ni(n,t){if(t)return n.slice();var r=n.length,e=Lt?Lt(r):new n.constructor(r);return n.copy(e),e}function ti(n){var t=new n.constructor(n.byteLength);return new St(t).set(new St(n)),t}function ri(n,t){var r=t?ti(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ei(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=Bf(n),f=r!==t,a=null===r,c=r==r,l=Bf(r);if(!a&&!l&&!o&&n>r||o&&f&&c&&!a&&!l||u&&f&&c||!e&&c||!i)return 1;if(!u&&!o&&!l&&n1?e[i-1]:t,f=i>2?e[2]:t;for(o=n.length>3&&'function'==typeof o?(i--,o):t,f&&Vi(e[0],e[1],f)&&(o=i<3?t:o,i=1),r=et(r);++u-1?i[o?r[f]:f]:t}}function gi(n){return Ei(function(r){var e=r.length,i=e,f=be.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if('function'!=typeof a)throw new ot(o);if(f&&!c&&'wrapper'==Ci(a))var c=new be([],!0)}for(i=c?i:e;++i=u)return c.plant(t).value();for(var i=0,o=e?r[i].apply(this,n):t;++i1&&d.reverse(),s&&ca))return!1;var l=o.get(n);if(l&&o.get(r))return l==r;var s=-1,h=!0,_=e&v?new Ae:t;for(o.set(n,r),o.set(r,n);++s-1&&n%1==0&&n1?'& ':'')+t[e],t=t.join(r>2?', ':' '),n.replace(Bn,'{\n/* [wrapped with '+t+'] */\n')})(e,(function(n,t){return Ht($,function(r){var e='_.'+r[0];t&r[1]&&!Xt(n,e)&&n.push(e)}),n.sort()})((function(n){var t=n.match($n);return t?t[1].split(Dn):[]})(e),r)))}function fo(n){var r=0,e=0;return function(){var u=Jr(),i=R-(u-e);if(e=u,i>0){if(++r>=I)return arguments[0]}else r=0;return n.apply(t,arguments)}}function ao(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e1?n[r-1]:t;return Wo(n,e='function'==typeof e?(n.pop(),e):t)});function Mo(n){var t=ge(n);return t.__chain__=!0,t}function Fo(n,t){return t(n)}var No=Ei(function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(t){return Be(t,n)};return!(r>1||this.__actions__.length)&&u instanceof we&&Ki(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:Fo,args:[i],thisArg:t}),new be(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(t),n})):this.thru(i)});var Po=ai(function(n,t,r){ht.call(n,r)?++n[r]:Ue(n,r,1)});var qo=_i(go),Zo=_i(yo);function Ko(n,t){return(bf(n)?Ht:Pe)(n,Ui(t,3))}function Vo(n,t){return(bf(n)?Jt:qe)(n,Ui(t,3))}var Go=ai(function(n,t,r){ht.call(n,r)?n[r].push(t):Ue(n,r,[t])});var Ho=Iu(function(n,r,e){var u=-1,i='function'==typeof r,o=Gi(r),f=mf(n)?Qn(n.length):[];return Pe(n,function(n){var a=i?r:o&&null!=n?n[r]:t;f[++u]=a?Vt(a,n,e):fu(n,r,e)}),f}),Jo=ai(function(n,t,r){Ue(n,r,t)});function Yo(n,t){return(bf(n)?tr:gu)(n,Ui(t,3))}var Qo=ai(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]});var Xo=Iu(function(n,t){if(null==n)return[];var r=t.length;return r>1&&Vi(n,t[0],t[1])?t=[]:r>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),mu(n,Ge(t,1),[])}),nf=Dr||function(){return Wt.Date.now()};function tf(n,r,e){return r=e?t:r,r=n&&null==r?n.length:r,Ri(n,x,t,t,t,t,r)}function rf(n,r){var e;if('function'!=typeof r)throw new ot(o);return n=Pf(n),function(){return--n>0&&(e=r.apply(this,arguments)),n<=1&&(r=t),e}}var ef=Iu(function(n,t,r){var e=_;if(r.length){var u=zr(r,Ti(ef));e|=w}return Ri(n,e,t,r,u)}),uf=Iu(function(n,t,r){var e=_|g;if(r.length){var u=zr(r,Ti(uf));e|=w}return Ri(t,e,n,r,u)});function of(n,r,e){var u,i,f,a,c,l,s=0,h=!1,p=!1,v=!0;if('function'!=typeof n)throw new ot(o);function _(r){var e=u,o=i;return u=i=t,s=r,a=n.apply(o,e)}function g(n){var e=n-l;return l===t||e>=r||e<0||p&&n-s>=f}function y(){var n=nf();if(g(n))return d(n);c=uo(y,(function(n){var t=r-(n-l);return p?Hr(t,f-(n-s)):t})(n))}function d(n){return c=t,v&&u?_(n):(u=i=t,a)}function b(){var n=nf(),e=g(n);if(u=arguments,i=this,l=n,e){if(c===t)return(function(n){return s=n,c=uo(y,r),h?_(n):a})(l);if(p)return c=uo(y,r),_(l)}return c===t&&(c=uo(y,r)),a}return r=Zf(r)||0,zf(e)&&(h=!!e.leading,f=(p='maxWait'in e)?Gr(Zf(e.maxWait)||0,r):f,v='trailing'in e?!!e.trailing:v),b.cancel=function(){c!==t&&Xu(c),s=0,u=l=i=c=t},b.flush=function(){return c===t?a:d(nf())},b}var ff=Iu(function(n,t){return Fe(n,1,t)}),af=Iu(function(n,t,r){return Fe(n,Zf(t)||0,r)});function cf(n,t){if('function'!=typeof n||null!=t&&'function'!=typeof t)throw new ot(o);var r=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(cf.Cache||je),r}function lf(n){if('function'!=typeof n)throw new ot(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}cf.Cache=je;var sf=Yu(function(n,t){var r=(t=1==t.length&&bf(t[0])?tr(t[0],dr(Ui())):tr(Ge(t,1),dr(Ui()))).length;return Iu(function(e){for(var u=-1,i=Hr(e.length,r);++u=t}),df=au((function(){return arguments})())?au:function(n){return Ef(n)&&ht.call(n,'callee')&&!Bt.call(n,'callee')},bf=Qn.isArray,wf=Dt?dr(Dt):function(n){return Ef(n)&&ru(n)==fn};function mf(n){return null!=n&&Rf(n.length)&&!Of(n)}function xf(n){return Ef(n)&&mf(n)}var jf=qr||Za,Af=Mt?dr(Mt):function(n){return Ef(n)&&ru(n)==P};function kf(n){if(!Ef(n))return!1;var t=ru(n);return t==Z||t==q||'string'==typeof n.message&&'string'==typeof n.name&&!Wf(n)}function Of(n){if(!zf(n))return!1;var t=ru(n);return t==K||t==V||t==F||t==Q}function If(n){return'number'==typeof n&&n==Pf(n)}function Rf(n){return'number'==typeof n&&n>-1&&n%1==0&&n<=L}function zf(n){var t=typeof n;return null!=n&&('object'==t||'function'==t)}function Ef(n){return null!=n&&'object'==typeof n}var Sf=Ft?dr(Ft):function(n){return Ef(n)&&Ni(n)==G};function Lf(n){return'number'==typeof n||Ef(n)&&ru(n)==H}function Wf(n){if(!Ef(n)||ru(n)!=Y)return!1;var t=Ct(n);if(null===t)return!0;var r=ht.call(t,'constructor')&&t.constructor;return'function'==typeof r&&r instanceof r&&st.call(r)==gt}var Cf=Nt?dr(Nt):function(n){return Ef(n)&&ru(n)==X};var Tf=Pt?dr(Pt):function(n){return Ef(n)&&Ni(n)==nn};function Uf(n){return'string'==typeof n||!bf(n)&&Ef(n)&&ru(n)==tn}function Bf(n){return'symbol'==typeof n||Ef(n)&&ru(n)==rn}var $f=qt?dr(qt):function(n){return Ef(n)&&Rf(n.length)&&!!Ot[ru(n)]};var Df=ji(_u),Mf=ji(function(n,t){return n<=t});function Ff(n){if(!n)return[];if(mf(n))return Uf(n)?Wr(n):oi(n);if(vr&&n[vr])return(function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r})(n[vr]());var t=Ni(n);return(t==G?Ir:t==nn?Er:_a)(n)}function Nf(n){return n?(n=Zf(n))===S||n===-S?(n<0?-1:1)*W:n==n?n:0:0===n?n:0}function Pf(n){var t=Nf(n),r=t%1;return t==t?r?t-r:t:0}function qf(n){return n?$e(Pf(n),0,T):0}function Zf(n){if('number'==typeof n)return n;if(Bf(n))return C;if(zf(n)){var t='function'==typeof n.valueOf?n.valueOf():n;n=zf(t)?t+'':t}if('string'!=typeof n)return 0===n?n:+n;n=n.replace(Cn,'');var r=Zn.test(n);return r||Vn.test(n)?Et(n.slice(2),r?2:8):qn.test(n)?C:+n}function Kf(n){return fi(n,fa(n))}function Vf(n){return null==n?'':Mu(n)}var Gf=ci(function(n,t){if(Yi(t)||mf(t))fi(t,oa(t),n);else for(var r in t)ht.call(t,r)&&Le(n,r,t[r])}),Hf=ci(function(n,t){fi(t,fa(t),n)}),Jf=ci(function(n,t,r,e){fi(t,fa(t),n,e)}),Yf=ci(function(n,t,r,e){fi(t,oa(t),n,e)}),Qf=Ei(Be);var Xf=Iu(function(n){return n.push(t,Ee),Vt(Jf,t,n)}),na=Iu(function(n){return n.push(t,no),Vt(ca,t,n)});function ta(n,r,e){var u=null==n?t:nu(n,r);return u===t?e:u}function ra(n,t){return null!=n&&Pi(n,t,iu)}var ea=di(function(n,t,r){n[t]=r},za(La)),ua=di(function(n,t,r){ht.call(n,t)?n[t].push(r):n[t]=[r]},Ui),ia=Iu(fu);function oa(n){return mf(n)?Oe(n):pu(n)}function fa(n){return mf(n)?Oe(n,!0):vu(n)}var aa=ci(function(n,t,r){bu(n,t,r)}),ca=ci(function(n,t,r,e){bu(n,t,r,e)}),la=Ei(function(n,t){var r={};if(null==n)return r;fi(n,Li(n),r),r=De(r,l|s|h);for(var e=t.length;e--;)Nu(r,t[e]);return r});var sa=Ei(function(n,t){return null==n?{}:(function(n,t){return xu(n=et(n),t,function(t,r){return ra(n,r)})})(n,tr(t,lo))});function ha(n,t){return null==n?{}:xu(n,Li(n),Ui(t))}var pa=Ii(oa),va=Ii(fa);function _a(n){return null==n?[]:br(n,oa(n))}var ga=pi(function(n,t,r){return t=t.toLowerCase(),n+(r?ya(t):t)});function ya(n){return ka(Vf(n).toLowerCase())}function da(n){return(n=Vf(n))&&n.replace(Hn,jr).replace(bt,'')}var ba=pi(function(n,t,r){return n+(r?'-':'')+t.toLowerCase()}),wa=pi(function(n,t,r){return n+(r?' ':'')+t.toLowerCase()}),ma=hi('toLowerCase');var xa=pi(function(n,t,r){return n+(r?'_':'')+t.toLowerCase()});var ja=pi(function(n,t,r){return n+(r?' ':'')+ka(t)});var Aa=pi(function(n,t,r){return n+(r?' ':'')+t.toUpperCase()}),ka=hi('toUpperCase');function Oa(n,r,e){return n=Vf(n),(r=e?t:r)===t?(function(n){return jt.test(n)})(n)?(function(n){return n.match(mt)||[]})(n):(function(n){return n.match(Mn)||[]})(n):n.match(r)||[]}var Ia=Iu(function(n,r){try{return Vt(n,t,r)}catch(n){return kf(n)?n:new nt(n)}}),Ra=Ei(function(n,t){return Ht(t,function(t){t=lo(t),Ue(n,t,ef(n[t],n))}),n});function za(n){return function(){return n}}var Ea=gi(),Sa=gi(!0);function La(n){return n}function Wa(n){return hu('function'==typeof n?n:De(n,l))}var Ca=Iu(function(n,t){return function(r){return fu(r,n,t)}}),Ta=Iu(function(n,t){return function(r){return fu(n,r,t)}});function Ua(n,t,r){var e=oa(t),u=Xe(t,e);null!=r||zf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Xe(t,oa(t)));var i=!(zf(r)&&'chain'in r&&!r.chain),o=Of(n);return Ht(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=oi(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,rr([this.value()],arguments))})}),n}function Ba(){}var $a=wi(tr),Da=wi(Yt),Ma=wi(ir);function Fa(n){return Gi(n)?pr(lo(n)):(function(n){return function(t){return nu(t,n)}})(n)}var Na=xi(),Pa=xi(!0);function qa(){return[]}function Za(){return!1}var Ka=bi(function(n,t){return n+t},0),Va=ki('ceil'),Ga=bi(function(n,t){return n/t},1),Ha=ki('floor');var Ja,Ya=bi(function(n,t){return n*t},1),Qa=ki('round'),Xa=bi(function(n,t){return n-t},0);return ge.after=function(n,t){if('function'!=typeof t)throw new ot(o);return n=Pf(n),function(){if(--n<1)return t.apply(this,arguments)}},ge.ary=tf,ge.assign=Gf,ge.assignIn=Hf,ge.assignInWith=Jf,ge.assignWith=Yf,ge.at=Qf,ge.before=rf,ge.bind=ef,ge.bindAll=Ra,ge.bindKey=uf,ge.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return bf(n)?n:[n]},ge.chain=Mo,ge.chunk=function(n,r,e){r=(e?Vi(n,r,e):r===t)?1:Gr(Pf(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,f=Qn(Fr(u/r));ii?0:i+e),(u=u===t||u>i?i:Pf(u))<0&&(u+=i),u=e>u?0:qf(u);e>>0)?(n=Vf(n))&&('string'==typeof r||null!=r&&!Cf(r))&&!(r=Mu(r))&&Or(n)?Qu(Wr(n),0,e):n.split(r,e):[]},ge.spread=function(n,r){if('function'!=typeof n)throw new ot(o);return r=r===t?0:Gr(Pf(r),0),Iu(function(t){var e=t[r],u=t.length-1,i=Qu(t,0,r);return e&&rr(i,e),r!=u&&rr(i,Qu(t,r+1)),Vt(n,this,i)})},ge.tail=function(n){var t=null==n?0:n.length;return t?Cu(n,1,t):[]},ge.take=function(n,r,e){return n&&n.length?Cu(n,0,(r=e||r===t?1:Pf(r))<0?0:r):[]},ge.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?Cu(n,(r=u-(r=e||r===t?1:Pf(r)))<0?0:r,u):[]},ge.takeRightWhile=function(n,t){return n&&n.length?qu(n,Ui(t,3),!1,!0):[]},ge.takeWhile=function(n,t){return n&&n.length?qu(n,Ui(t,3)):[]},ge.tap=function(n,t){return t(n),n},ge.throttle=function(n,t,r){var e=!0,u=!0;if('function'!=typeof n)throw new ot(o);return zf(r)&&(e='leading'in r?!!r.leading:e,u='trailing'in r?!!r.trailing:u),of(n,t,{leading:e,maxWait:t,trailing:u})},ge.thru=Fo,ge.toArray=Ff,ge.toPairs=pa,ge.toPairsIn=va,ge.toPath=function(n){return bf(n)?tr(n,lo):Bf(n)?[n]:oi(co(n))},ge.toPlainObject=Kf,ge.transform=function(n,t,r){var e=bf(n),u=e||jf(n)||$f(n);if(t=Ui(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:zf(n)&&Of(i)?ye(Ct(n)):{}}return(u?Ht:Ye)(n,function(n,e,u){return t(r,n,e,u)}),r},ge.unary=function(n){return tf(n,1)},ge.union=zo,ge.unionBy=Eo,ge.unionWith=So,ge.uniq=function(n){return n&&n.length?Fu(n):[]},ge.uniqBy=function(n,t){return n&&n.length?Fu(n,Ui(t,2)):[]},ge.uniqWith=function(n,r){return r='function'==typeof r?r:t,n&&n.length?Fu(n,t,r):[]},ge.unset=function(n,t){return null==n||Nu(n,t)},ge.unzip=Lo,ge.unzipWith=Wo,ge.update=function(n,t,r){return null==n?n:Pu(n,t,Hu(r))},ge.updateWith=function(n,r,e,u){return u='function'==typeof u?u:t,null==n?n:Pu(n,r,Hu(e),u)},ge.values=_a,ge.valuesIn=function(n){return null==n?[]:br(n,fa(n))},ge.without=Co,ge.words=Oa,ge.wrap=function(n,t){return hf(Hu(t),n)},ge.xor=To,ge.xorBy=Uo,ge.xorWith=Bo,ge.zip=$o,ge.zipObject=function(n,t){return Vu(n||[],t||[],Le)},ge.zipObjectDeep=function(n,t){return Vu(n||[],t||[],Eu)},ge.zipWith=Do,ge.entries=pa,ge.entriesIn=va,ge.extend=Hf,ge.extendWith=Jf,Ua(ge,ge),ge.add=Ka,ge.attempt=Ia,ge.camelCase=ga,ge.capitalize=ya,ge.ceil=Va,ge.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=Zf(e))==e?e:0),r!==t&&(r=(r=Zf(r))==r?r:0),$e(Zf(n),r,e)},ge.clone=function(n){return De(n,h)},ge.cloneDeep=function(n){return De(n,l|h)},ge.cloneDeepWith=function(n,r){return De(n,l|h,r='function'==typeof r?r:t)},ge.cloneWith=function(n,r){return De(n,h,r='function'==typeof r?r:t)},ge.conformsTo=function(n,t){return null==t||Me(n,t,oa(t))},ge.deburr=da,ge.defaultTo=function(n,t){return null==n||n!=n?t:n},ge.divide=Ga,ge.endsWith=function(n,r,e){n=Vf(n),r=Mu(r);var u=n.length,i=e=e===t?u:$e(Pf(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},ge.eq=_f,ge.escape=function(n){return(n=Vf(n))&&An.test(n)?n.replace(xn,Ar):n},ge.escapeRegExp=function(n){return(n=Vf(n))&&Wn.test(n)?n.replace(Ln,'\\$&'):n},ge.every=function(n,r,e){var u=bf(n)?Yt:Ze;return e&&Vi(n,r,e)&&(r=t),u(n,Ui(r,3))},ge.find=qo,ge.findIndex=go,ge.findKey=function(n,t){return fr(n,Ui(t,3),Ye)},ge.findLast=Zo,ge.findLastIndex=yo,ge.findLastKey=function(n,t){return fr(n,Ui(t,3),Qe)},ge.floor=Ha,ge.forEach=Ko,ge.forEachRight=Vo,ge.forIn=function(n,t){return null==n?n:He(n,Ui(t,3),fa)},ge.forInRight=function(n,t){return null==n?n:Je(n,Ui(t,3),fa)},ge.forOwn=function(n,t){return n&&Ye(n,Ui(t,3))},ge.forOwnRight=function(n,t){return n&&Qe(n,Ui(t,3))},ge.get=ta,ge.gt=gf,ge.gte=yf,ge.has=function(n,t){return null!=n&&Pi(n,t,uu)},ge.hasIn=ra,ge.head=wo,ge.identity=La,ge.includes=function(n,t,r,e){n=mf(n)?n:_a(n),r=r&&!e?Pf(r):0;var u=n.length;return r<0&&(r=Gr(u+r,0)),Uf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&cr(n,t,r)>-1},ge.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:Pf(r);return u<0&&(u=Gr(e+u,0)),cr(n,t,u)},ge.inRange=function(n,r,e){return r=Nf(r),e===t?(e=r,r=0):e=Nf(e),(function(n,t,r){return n>=Hr(t,r)&&n=-L&&n<=L},ge.isSet=Tf,ge.isString=Uf,ge.isSymbol=Bf,ge.isTypedArray=$f,ge.isUndefined=function(n){return n===t},ge.isWeakMap=function(n){return Ef(n)&&Ni(n)==un},ge.isWeakSet=function(n){return Ef(n)&&ru(n)==on},ge.join=function(n,t){return null==n?'':Kr.call(n,t)},ge.kebabCase=ba,ge.last=Ao,ge.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=Pf(e))<0?Gr(u+i,0):Hr(i,u-1)),r==r?(function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e})(n,r,i):ar(n,sr,i,!0)},ge.lowerCase=wa,ge.lowerFirst=ma,ge.lt=Df,ge.lte=Mf,ge.max=function(n){return n&&n.length?Ke(n,La,eu):t},ge.maxBy=function(n,r){return n&&n.length?Ke(n,Ui(r,2),eu):t},ge.mean=function(n){return hr(n,La)},ge.meanBy=function(n,t){return hr(n,Ui(t,2))},ge.min=function(n){return n&&n.length?Ke(n,La,_u):t},ge.minBy=function(n,r){return n&&n.length?Ke(n,Ui(r,2),_u):t},ge.stubArray=qa,ge.stubFalse=Za,ge.stubObject=function(){return{}},ge.stubString=function(){return''},ge.stubTrue=function(){return!0},ge.multiply=Ya,ge.nth=function(n,r){return n&&n.length?wu(n,Pf(r)):t},ge.noConflict=function(){return Wt._===this&&(Wt._=yt),this},ge.noop=Ba,ge.now=nf,ge.pad=function(n,t,r){n=Vf(n);var e=(t=Pf(t))?Lr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return mi(Nr(u),r)+n+mi(Fr(u),r)},ge.padEnd=function(n,t,r){n=Vf(n);var e=(t=Pf(t))?Lr(n):0;return t&&er){var u=n;n=r,r=u}if(e||n%1||r%1){var i=Qr();return Hr(n+i*(r-n+zt('1e-'+((i+'').length-1))),r)}return ku(n,r)},ge.reduce=function(n,t,r){var e=bf(n)?er:_r,u=arguments.length<3;return e(n,Ui(t,4),r,u,Pe)},ge.reduceRight=function(n,t,r){var e=bf(n)?ur:_r,u=arguments.length<3;return e(n,Ui(t,4),r,u,qe)},ge.repeat=function(n,r,e){return r=(e?Vi(n,r,e):r===t)?1:Pf(r),Ou(Vf(n),r)},ge.replace=function(){var n=arguments,t=Vf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},ge.result=function(n,r,e){var u=-1,i=(r=Gi(r,n)?[r]:Ju(r)).length;for(i||(n=t,i=1);++uL)return[];var r=T,e=Hr(n,T);t=Ui(t),n-=T;for(var u=yr(e,t);++r=o)return n;var a=e-Lr(u);if(a<1)return u;var c=f?Qu(f,0,a).join(''):n.slice(0,a);if(i===t)return c+u;if(f&&(a+=c.length-a),Cf(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=ut(i.source,Vf(Pn.exec(i))+'g')),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===t?a:h)}}else if(n.indexOf(Mu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+u},ge.unescape=function(n){return(n=Vf(n))&&jn.test(n)?n.replace(mn,Cr):n},ge.uniqueId=function(n){var t=++pt;return Vf(n)+t},ge.upperCase=Aa,ge.upperFirst=ka,ge.each=Ko,ge.eachRight=Vo,ge.first=wo,Ua(ge,(Ja={},Ye(ge,function(n,t){ht.call(ge.prototype,t)||(Ja[t]=n)}),Ja),{chain:!1}),ge.VERSION="4.17.0",Ht(['bind','bindKey','curry','curryRight','partial','partialRight'],function(n){ge[n].placeholder=ge}),Ht(['drop','take'],function(n,r){we.prototype[n]=function(e){var u=this.__filtered__;if(u&&!r)return new we(this);e=e===t?1:Gr(Pf(e),0);var i=this.clone();return u?i.__takeCount__=Hr(e,i.__takeCount__):i.__views__.push({size:Hr(e,T),type:n+(i.__dir__<0?'Right':'')}),i},we.prototype[n+'Right']=function(t){return this.reverse()[n](t).reverse()}}),Ht(['filter','map','takeWhile'],function(n,t){var r=t+1,e=r==z||3==r;we.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Ui(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),Ht(['head','last'],function(n,t){var r='take'+(t?'Right':'');we.prototype[n]=function(){return this[r](1).value()[0]}}),Ht(['initial','tail'],function(n,t){var r='drop'+(t?'':'Right');we.prototype[n]=function(){return this.__filtered__?new we(this):this[r](1)}}),we.prototype.compact=function(){return this.filter(La)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=Iu(function(n,t){return'function'==typeof n?new we(this):this.map(function(r){return fu(r,n,t)})}),we.prototype.reject=function(n){return this.filter(lf(Ui(n)))},we.prototype.slice=function(n,r){n=Pf(n);var e=this;return e.__filtered__&&(n>0||r<0)?new we(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=Pf(r))<0?e.dropRight(-r):e.take(r-n)),e)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(T)},Ye(we.prototype,function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=ge[u?'take'+('last'==r?'Right':''):r],o=u||/^find/.test(r);i&&(ge.prototype[r]=function(){var r=this.__wrapped__,f=u?[1]:arguments,a=r instanceof we,c=f[0],l=a||bf(r),s=function(n){var t=i.apply(ge,rr([n],f));return u&&h?t[0]:t};l&&e&&'function'==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){r=_?r:new we(this);var g=n.apply(r,f);return g.__actions__.push({func:Fo,args:[s],thisArg:t}),new be(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?u?g.value()[0]:g.value():g)})}),Ht(['pop','push','shift','sort','splice','unshift'],function(n){var t=ft[n],r=/^(?:push|sort|unshift)$/.test(n)?'tap':'thru',e=/^(?:pop|shift)$/.test(n);ge.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bf(u)?u:[],n)}return this[r](function(r){return t.apply(bf(r)?r:[],n)})}}),Ye(we.prototype,function(n,t){var r=ge[t];if(r){var e=r.name+'';(fe[e]||(fe[e]=[])).push({name:t,func:r})}}),fe[yi(t,g).name]=[{name:'wrapper',func:t}],we.prototype.clone=function(){var n=new we(this.__wrapped__);return n.__actions__=oi(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=oi(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=oi(this.__views__),n},we.prototype.reverse=function(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},we.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=bf(n),e=t<0,i=r?n.length:0,o=(function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},ge.prototype.plant=function(n){for(var r,e=this;e instanceof de;){var u=ho(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},ge.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof we){var r=n;return this.__actions__.length&&(r=new we(this)),(r=r.reverse()).__actions__.push({func:Fo,args:[Ro],thisArg:t}),new be(r,this.__chain__)}return this.thru(Ro)},ge.prototype.toJSON=ge.prototype.valueOf=ge.prototype.value=function(){return Zu(this.__wrapped__,this.__actions__)},ge.prototype.first=ge.prototype.head,vr&&(ge.prototype[vr]=function(){return this}),ge})();'function'==typeof define&&'object'==typeof define.amd&&define.amd?(Wt._=Tr,define(function(){return Tr})):Tt?((Tt.exports=Tr)._=Tr,Ct._=Tr):Wt._=Tr}).call(this)},1138); -__d(function(e,l,r,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.Col=t.Grid=t.Row=void 0;var u=l(1140),i=babelHelpers.interopRequireDefault(u),a=l(1142),o=babelHelpers.interopRequireDefault(a),d=l(1143),f=babelHelpers.interopRequireDefault(d);t.Row=i.default,t.Grid=o.default,t.Col=f.default},1139); -__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=t(51),p=babelHelpers.interopRequireDefault(o),i=t(17),l=t(1141),n=babelHelpers.interopRequireDefault(l),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"prepareRootProps",value:function(){var e={style:{flexDirection:'row',flex:this.props.size?this.props.size:this.props.style&&this.props.style.height?0:1}};return(0,n.default)(this.props,e)}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?p.default.createElement(i.TouchableOpacity,babelHelpers.extends({onPress:this.props.onPress},this.prepareRootProps()),p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)):p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)}}]),t})(o.Component);s.default=a},1140); -__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),f=(babelHelpers.interopRequireDefault(a),t(17)),u=t(366),n=babelHelpers.interopRequireDefault(u);r.default=function(e,t){var l={};delete(e=n.default.clone(e)).children;var r=e.style;if(delete e.style,e?n.default.merge(l,t,e):l=t,r){var a={};l.style={},Array.isArray(r)?n.default.forEach(r,function(e){"number"==typeof e?n.default.merge(a,f.StyleSheet.flatten(e)):n.default.merge(a,e)}):a="number"==typeof r?f.StyleSheet.flatten(r):r,n.default.merge(l.style,t.style,a)}return l}},1141); -__d(function(e,r,t,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=r(51),l=babelHelpers.interopRequireDefault(o),i=r(17),n=r(1141),p=babelHelpers.interopRequireDefault(n),a=r(1143),u=(babelHelpers.interopRequireDefault(a),r(1140)),f=babelHelpers.interopRequireDefault(u),c=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"prepareRootProps",value:function(){var e={style:{flex:1,flexDirection:this.ifRow()?'column':'row'}};return(0,p.default)(this.props,e)}},{key:"ifRow",value:function(){var e=!1;return l.default.Children.forEach(this.props.children,function(r){r&&r.type==f.default&&(e=!0)}),e}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?l.default.createElement(i.TouchableOpacity,{onPress:this.props.onPress},l.default.createElement(i.View,babelHelpers.extends({ref:function(r){return e._root=r}},this.props,this.prepareRootProps()),this.props.children)):l.default.createElement(i.View,babelHelpers.extends({ref:function(r){return e._root=r}},this.props,this.prepareRootProps()),this.props.children)}}]),r})(o.Component);s.default=c},1142); -__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=t(51),p=babelHelpers.interopRequireDefault(o),i=t(17),l=t(1141),n=babelHelpers.interopRequireDefault(l),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"prepareRootProps",value:function(){var e={style:{flexDirection:'column',flex:this.props.size?this.props.size:this.props.style&&this.props.style.width?0:1}};return(0,n.default)(this.props,e)}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?p.default.createElement(i.TouchableOpacity,babelHelpers.extends({onPress:this.props.onPress},this.prepareRootProps()),p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)):p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)}}]),t})(o.Component);s.default=a},1143); -__d(function(e,t,u,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(){var e=(0,_.default)();d.Theme.setDefaultThemeStyle(e)};var a,d=t(1125),f=t(1145),_=(a=f)&&a.__esModule?a:{default:a}},1144); -__d(function(e,a,t,i){Object.defineProperty(i,"__esModule",{value:!0});var u=Object.assign||function(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:U.default,a={variables:e,"NativeBase.Left":u({},(0,d.default)(e)),"NativeBase.Right":u({},(0,s.default)(e)),"NativeBase.Body":u({},(0,l.default)(e)),"NativeBase.Header":u({},(0,B.default)(e)),"NativeBase.Button":u({},(0,r.default)(e)),"NativeBase.Title":u({},(0,c.default)(e)),"NativeBase.Subtitle":u({},(0,b.default)(e)),"NativeBase.InputGroup":u({},(0,T.default)(e)),"NativeBase.Input":u({},(0,E.default)(e)),"NativeBase.Badge":u({},(0,p.default)(e)),"NativeBase.CheckBox":u({},(0,h.default)(e)),"NativeBase.Radio":u({},(0,I.default)(e)),"NativeBase.Card":u({},(0,m.default)()),"NativeBase.CardItem":u({},(0,A.default)(e)),"NativeBase.Toast":u({},(0,F.default)(e)),"NativeBase.H1":u({},(0,C.default)(e)),"NativeBase.H2":u({},(0,x.default)(e)),"NativeBase.H3":u({},(0,g.default)(e)),"NativeBase.Form":u({},(0,J.default)(e)),"NativeBase.Container":u({},(0,n.default)(e)),"NativeBase.Content":u({},(0,o.default)(e)),"NativeBase.Footer":u({},(0,O.default)(e)),"NativeBase.Tabs":{flex:1},"NativeBase.FooterTab":u({},(0,S.default)(e)),"NativeBase.ListItem":u({},(0,D.default)(e)),"NativeBase.ListItem1":u({},(0,D.default)(e)),"NativeBase.Icon":u({},(0,V.default)(e)),"NativeBase.IconNB":u({},(0,V.default)(e)),"NativeBase.Text":u({},(0,j.default)(e)),"NativeBase.Spinner":u({},(0,z.default)(e)),"NativeBase.Fab":u({},(0,_.default)(e)),"NativeBase.Item":u({},(0,w.default)(e)),"NativeBase.Label":u({},(0,y.default)(e)),"NativeBase.Textarea":u({},(0,H.default)(e)),"NativeBase.PickerNB":u({},(0,Q.default)(e),{"NativeBase.Button":{"NativeBase.Text":{}}}),"NativeBase.Tab":u({},(0,L.default)(e)),"NativeBase.Segment":u({},(0,q.default)(e)),"NativeBase.TabBar":u({},(0,P.default)(e)),"NativeBase.ViewNB":u({},(0,k.default)(e)),"NativeBase.TabHeading":u({},(0,M.default)(e)),"NativeBase.TabContainer":u({},(0,R.default)(e)),"NativeBase.Switch":u({},(0,v.default)(e)),"NativeBase.Separator":u({},(0,K.default)(e)),"NativeBase.SwipeRow":u({},(0,G.default)(e)),"NativeBase.Thumbnail":u({},(0,N.default)(e))};return(function e(a,t,i){f.default.forEach(t,function(u,f){0===f.indexOf(".")&&i&&0===i.indexOf(".")&&a&&(a[f]?a[f][i]=u:a[f]={}),u&&"object"==typeof u&&"fontVariant"!==f&&"transform"!==f&&e(t,u,f)})})(null,a,null),a}},1145); -__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var u,d=t(1147),f=(u=d)&&u.__esModule?u:{default:u};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{flex:1,alignItems:'center',alignSelf:'center'}}},1146); -__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var i,n=o(1148),a=(i=n)&&i.__esModule?i:{default:i},s=o(17);var f=s.Dimensions.get("window").height,l=s.Dimensions.get("window").width,d=s.Platform.OS,g="ios"===d&&(812===f||812===l);r.default={platformStyle:void 0,platform:d,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:!0,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:!0,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:"ios"===d?3:0,btnFontFamily:"ios"===d?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary},get btnPrimaryColor(){return this.inverseTextColor},get btnInfoBg(){return this.brandInfo},get btnInfoColor(){return this.inverseTextColor},get btnSuccessBg(){return this.brandSuccess},get btnSuccessColor(){return this.inverseTextColor},get btnDangerBg(){return this.brandDanger},get btnDangerColor(){return this.inverseTextColor},get btnWarningBg(){return this.brandWarning},get btnWarningColor(){return this.inverseTextColor},get btnTextSize(){return"ios"===d?1.1*this.fontSizeBase:this.fontSizeBase-1},get btnTextSizeLarge(){return 1.5*this.fontSizeBase},get btnTextSizeSmall(){return.8*this.fontSizeBase},get borderRadiusLarge(){return 3.8*this.fontSizeBase},get iconSizeLarge(){return 1.5*this.iconFontSize},get iconSizeSmall(){return.6*this.iconFontSize},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:"ios"===d?10:12,CheckboxRadius:"ios"===d?13:0,CheckboxBorderWidth:"ios"===d?1:2,CheckboxPaddingLeft:"ios"===d?4:2,CheckboxPaddingBottom:"ios"===d?0:5,CheckboxIconSize:"ios"===d?21:16,CheckboxIconMarginTop:"ios"===d?void 0:1,CheckboxFontSize:"ios"===d?25.555555555555554:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:"ios"===d?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",containerBgColor:"#fff",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:"ios"===d?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return 1.8*this.fontSizeBase},get fontSizeH2(){return 1.6*this.fontSizeBase},get fontSizeH3(){return 1.4*this.fontSizeBase},footerHeight:55,footerDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:"ios"===d?"#6b6b6b":"#b3c7f9",tabBarTextSize:"ios"===d?14:11,activeTab:"ios"===d?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:"ios"===d?"#007aff":"#fff",tabActiveBgColor:"ios"===d?"#cde1f9":"#3F51B5",toolbarBtnColor:"ios"===d?"#007aff":"#fff",toolbarDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",toolbarHeight:"ios"===d?64:56,toolbarSearchIconSize:"ios"===d?20:23,toolbarInputColor:"ios"===d?"#CECDD2":"#fff",searchBarHeight:"ios"===d?30:40,searchBarInputHeight:"ios"===d?30:50,toolbarBtnTextColor:"ios"===d?"#007aff":"#fff",toolbarDefaultBorder:"ios"===d?"#a7a6ab":"#3F51B5",iosStatusbar:"ios"===d?"dark-content":"light-content",get statusBarColor(){return(0,a.default)(this.toolbarDefaultBg).darken(.2).hex()},get darkenHeader(){return(0,a.default)(this.tabBgColor).darken(.03).hex()},iconFamily:"Ionicons",iconFontSize:"ios"===d?30:28,iconHeaderSize:"ios"===d?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor},get inputColorPlaceholder(){return"#575757"},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:"ios"===d?20:24,listItemSelected:"ios"===d?"#007aff":"#3F51B5",listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:"ios"===d?10:12,listNoteColor:"#808080",listNoteSize:13,defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:"ios"===d?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:"ios"===d?29:24,get radioColor(){return this.brandPrimary},segmentBackgroundColor:"ios"===d?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:"ios"===d?"#007aff":"#fff",segmentTextColor:"ios"===d?"#007aff":"#fff",segmentActiveTextColor:"ios"===d?"#fff":"#3F51B5",segmentBorderColor:"ios"===d?"#007aff":"#fff",segmentBorderColorMain:"ios"===d?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",topTabBarTextColor:"ios"===d?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:"ios"===d?"#007aff":"#fff",topTabBarBorderColor:"ios"===d?"#a7a6ab":"#fff",topTabBarActiveBorderColor:"ios"===d?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor},titleFontfamily:"ios"===d?"System":"Roboto_medium",titleFontSize:"ios"===d?17:19,subTitleFontSize:"ios"===d?11:14,subtitleColor:"ios"===d?"#8e8e93":"#FFF",titleFontColor:"ios"===d?"#000":"#FFF",borderRadiusBase:"ios"===d?5:2,borderWidth:1/s.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:l,deviceHeight:f,isIphoneX:g,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}},1147); -__d(function(r,t,o,n){'use strict';var e=t(1149),a=t(1153),i=[].slice,h=['keyword','gray','hex'],l={};Object.keys(a).forEach(function(r){l[i.call(a[r].labels).sort().join('')]=r});var s={};function c(r,t){if(!(this instanceof c))return new c(r,t);if(t&&t in h&&(t=null),t&&!(t in a))throw new Error('Unknown model: '+t);var o,n;if(r)if(r instanceof c)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if('string'==typeof r){var u=e.get(r);if(null===u)throw new Error('Unable to parse color from string: '+r);this.model=u.model,n=a[this.model].channels,this.color=u.value.slice(0,n),this.valpha='number'==typeof u.value[n]?u.value[n]:1}else if(r.length){this.model=t||'rgb',n=a[this.model].channels;var f=i.call(r,0,n);this.color=v(f,n),this.valpha='number'==typeof r[n]?r[n]:1}else if('number'==typeof r)r&=16777215,this.model='rgb',this.color=[r>>16&255,r>>8&255,255&r],this.valpha=1;else{this.valpha=1;var p=Object.keys(r);'alpha'in r&&(p.splice(p.indexOf('alpha'),1),this.valpha='number'==typeof r.alpha?r.alpha:0);var b=p.sort().join('');if(!(b in l))throw new Error('Unable to parse color from object: '+JSON.stringify(r));this.model=l[b];var m=a[this.model].labels,g=[];for(o=0;oo?(t+.05)/(o+.05):(o+.05)/(t+.05)},level:function(r){var t=this.contrast(r);return t>=7.1?'AAA':t>=4.5?'AA':''},dark:function(){var r=this.rgb().color;return(299*r[0]+587*r[1]+114*r[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var r=this.rgb(),t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten:function(r){var t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken:function(r){var t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate:function(r){var t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate:function(r){var t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten:function(r){var t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken:function(r){var t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale:function(){var r=this.rgb().color,t=.3*r[0]+.59*r[1]+.11*r[2];return c.rgb(t,t,t)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var t=this.hsl(),o=t.color[0];return o=(o=(o+r)%360)<0?360+o:o,t.color[0]=o,t},mix:function(r,t){var o=this.rgb(),n=r.rgb(),e=void 0===t?.5:t,a=2*e-1,i=o.alpha()-n.alpha(),h=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,l=1-h;return c.rgb(h*o.red()+l*n.red(),h*o.green()+l*n.green(),h*o.blue()+l*n.blue(),o.alpha()*e+n.alpha()*(1-e))}},Object.keys(a).forEach(function(r){if(-1===h.indexOf(r)){var t=a[r].channels;c.prototype[r]=function(){if(this.model===r)return new c(this);if(arguments.length)return new c(arguments,r);var o,n='number'==typeof arguments[t]?t:this.valpha;return new c((o=a[this.model][r].raw(this.color),Array.isArray(o)?o:[o]).concat(n),r)},c[r]=function(o){return'number'==typeof o&&(o=v(i.call(arguments),t)),new c(o,r)}}}),o.exports=c},1148); -__d(function(r,t,a,n){var e=t(1150),s=t(1151),o={};for(var u in e)e.hasOwnProperty(u)&&(o[e[u]]=u);var l=a.exports={to:{},get:{}};function h(r,t,a){return Math.min(Math.max(t,r),a)}function d(r){var t=r.toString(16).toUpperCase();return t.length<2?'0'+t:t}l.get=function(r){var t,a;switch(r.substring(0,3).toLowerCase()){case'hsl':t=l.get.hsl(r),a='hsl';break;case'hwb':t=l.get.hwb(r),a='hwb';break;default:t=l.get.rgb(r),a='rgb'}return t?{model:a,value:t}:null},l.get.rgb=function(r){if(!r)return null;var t,a,n,s=[0,0,0,1];if(t=r.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var o=2*a;s[a]=parseInt(t.slice(o,o+2),16)}n&&(s[3]=Math.round(parseInt(n,16)/255*100)/100)}else if(t=r.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=Math.round(parseInt(n+n,16)/255*100)/100)}else if(t=r.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(s[3]=parseFloat(t[4]))}else{if(!(t=r.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=r.match(/(\D+)/))?'transparent'===t[1]?[0,0,0,0]:(s=e[t[1]])?(s[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=h(s[a],0,255);return s[3]=h(s[3],0,1),s},l.get.hsl=function(r){if(!r)return null;var t=r.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(r){if(!r)return null;var t=r.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var r=s(arguments);return'#'+d(r[0])+d(r[1])+d(r[2])+(r[3]<1?d(Math.round(255*r[3])):'')},l.to.rgb=function(){var r=s(arguments);return r.length<4||1===r[3]?'rgb('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+')':'rgba('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+', '+r[3]+')'},l.to.rgb.percent=function(){var r=s(arguments),t=Math.round(r[0]/255*100),a=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||1===r[3]?'rgb('+t+'%, '+a+'%, '+n+'%)':'rgba('+t+'%, '+a+'%, '+n+'%, '+r[3]+')'},l.to.hsl=function(){var r=s(arguments);return r.length<4||1===r[3]?'hsl('+r[0]+', '+r[1]+'%, '+r[2]+'%)':'hsla('+r[0]+', '+r[1]+'%, '+r[2]+'%, '+r[3]+')'},l.to.hwb=function(){var r=s(arguments),t='';return r.length>=4&&1!==r[3]&&(t=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+t+')'},l.to.keyword=function(r){return o[r.slice(0,3)]}},1149); -__d(function(e,r,l,a){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1150); -__d(function(r,t,n,o){'use strict';var c=t(1152),a=Array.prototype.concat,e=Array.prototype.slice,u=n.exports=function(r){for(var t=[],n=0,o=r.length;n=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},1152); -__d(function(n,e,r,o){var t=e(1154),c=e(1155),i={};Object.keys(t).forEach(function(n){i[n]={},Object.defineProperty(i[n],'channels',{value:t[n].channels}),Object.defineProperty(i[n],'labels',{value:t[n].labels});var e=c(n);Object.keys(e).forEach(function(r){var o=e[r];i[n][r]=(function(n){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=n(e);if('object'==typeof r)for(var o=r.length,t=0;t1&&(e=Array.prototype.slice.call(arguments)),n(e))};return'conversion'in n&&(e.conversion=n.conversion),e})(o)})}),r.exports=i},1153); -__d(function(r,n,a,t){var e=n(1150),h={};for(var u in e)e.hasOwnProperty(u)&&(h[e[u]]=u);var o=a.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};for(var s in o)if(o.hasOwnProperty(s)){if(!('channels'in o[s]))throw new Error('missing channels property: '+s);if(!('labels'in o[s]))throw new Error('missing channel labels property: '+s);if(o[s].labels.length!==o[s].channels)throw new Error('channel and label counts mismatch: '+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],'channels',{value:c}),Object.defineProperty(o[s],'labels',{value:l})}o.rgb.hsl=function(r){var n,a,t=r[0]/255,e=r[1]/255,h=r[2]/255,u=Math.min(t,e,h),o=Math.max(t,e,h),s=o-u;return o===u?n=0:t===o?n=(e-h)/s:e===o?n=2+(h-t)/s:h===o&&(n=4+(t-e)/s),(n=Math.min(60*n,360))<0&&(n+=360),a=(u+o)/2,[n,100*(o===u?0:a<=.5?s/(o+u):s/(2-o-u)),100*a]},o.rgb.hsv=function(r){var n,a,t,e,h,u=r[0]/255,o=r[1]/255,s=r[2]/255,c=Math.max(u,o,s),l=c-Math.min(u,o,s),i=function(r){return(c-r)/6/l+.5};return 0===l?e=h=0:(h=l/c,n=i(u),a=i(o),t=i(s),u===c?e=t-a:o===c?e=.3333333333333333+n-t:s===c&&(e=.6666666666666666+a-n),e<0?e+=1:e>1&&(e-=1)),[360*e,100*h,100*c]},o.rgb.hwb=function(r){var n=r[0],a=r[1],t=r[2];return[o.rgb.hsl(r)[0],100*(.00392156862745098*Math.min(n,Math.min(a,t))),100*(t=1-.00392156862745098*Math.max(n,Math.max(a,t)))]},o.rgb.cmyk=function(r){var n,a=r[0]/255,t=r[1]/255,e=r[2]/255;return[100*((1-a-(n=Math.min(1-a,1-t,1-e)))/(1-n)||0),100*((1-t-n)/(1-n)||0),100*((1-e-n)/(1-n)||0),100*n]},o.rgb.keyword=function(r){var n=h[r];if(n)return n;var a,t,u,o=1/0;for(var s in e)if(e.hasOwnProperty(s)){var c=e[s],l=(t=r,u=c,Math.pow(t[0]-u[0],2)+Math.pow(t[1]-u[1],2)+Math.pow(t[2]-u[2],2));l.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*n+.7152*a+.0722*t),100*(.0193*n+.1192*a+.9505*t)]},o.rgb.lab=function(r){var n=o.rgb.xyz(r),a=n[0],t=n[1],e=n[2];return t/=100,e/=108.883,a=(a/=95.047)>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862,[116*(t=t>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862)-16,500*(a-t),200*(t-(e=e>.008856?Math.pow(e,.3333333333333333):7.787*e+.13793103448275862))]},o.hsl.rgb=function(r){var n,a,t,e,h,u=r[0]/360,o=r[1]/100,s=r[2]/100;if(0===o)return[h=255*s,h,h];n=2*s-(a=s<.5?s*(1+o):s+o-s*o),e=[0,0,0];for(var c=0;c<3;c++)(t=u+.3333333333333333*-(c-1))<0&&t++,t>1&&t--,h=6*t<1?n+6*(a-n)*t:2*t<1?a:3*t<2?n+(a-n)*(.6666666666666666-t)*6:n,e[c]=255*h;return e},o.hsl.hsv=function(r){var n=r[0],a=r[1]/100,t=r[2]/100,e=a,h=Math.max(t,.01);return a*=(t*=2)<=1?t:2-t,e*=h<=1?h:2-h,[n,100*(0===t?2*e/(h+e):2*a/(t+a)),100*((t+a)/2)]},o.hsv.rgb=function(r){var n=r[0]/60,a=r[1]/100,t=r[2]/100,e=Math.floor(n)%6,h=n-Math.floor(n),u=255*t*(1-a),o=255*t*(1-a*h),s=255*t*(1-a*(1-h));switch(t*=255,e){case 0:return[t,s,u];case 1:return[o,t,u];case 2:return[u,t,s];case 3:return[u,o,t];case 4:return[s,u,t];case 5:return[t,u,o]}},o.hsv.hsl=function(r){var n,a,t,e=r[0],h=r[1]/100,u=r[2]/100,o=Math.max(u,.01);return t=(2-h)*u,a=h*o,[e,100*(a=(a/=(n=(2-h)*o)<=1?n:2-n)||0),100*(t/=2)]},o.hwb.rgb=function(r){var n,a,t,e,h,u,o,s=r[0]/360,c=r[1]/100,l=r[2]/100,i=c+l;switch(i>1&&(c/=i,l/=i),a=1-l,t=6*s-(n=Math.floor(6*s)),0!=(1&n)&&(t=1-t),e=c+t*(a-c),n){default:case 6:case 0:h=a,u=e,o=c;break;case 1:h=e,u=a,o=c;break;case 2:h=c,u=a,o=e;break;case 3:h=c,u=e,o=a;break;case 4:h=e,u=c,o=a;break;case 5:h=a,u=c,o=e}return[255*h,255*u,255*o]},o.cmyk.rgb=function(r){var n=r[0]/100,a=r[1]/100,t=r[2]/100,e=r[3]/100;return[255*(1-Math.min(1,n*(1-e)+e)),255*(1-Math.min(1,a*(1-e)+e)),255*(1-Math.min(1,t*(1-e)+e))]},o.xyz.rgb=function(r){var n,a,t,e=r[0]/100,h=r[1]/100,u=r[2]/100;return a=-.9689*e+1.8758*h+.0415*u,t=.0557*e+-.204*h+1.057*u,n=(n=3.2406*e+-1.5372*h+-.4986*u)>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,.4166666666666667)-.055:12.92*a,t=t>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1))]},o.xyz.lab=function(r){var n=r[0],a=r[1],t=r[2];return a/=100,t/=108.883,n=(n/=95.047)>.008856?Math.pow(n,.3333333333333333):7.787*n+.13793103448275862,[116*(a=a>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862)-16,500*(n-a),200*(a-(t=t>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862))]},o.lab.xyz=function(r){var n,a,t,e=r[0],h=r[1],u=r[2];n=h/500+(a=(e+16)/116),t=a-u/200;var o=Math.pow(a,3),s=Math.pow(n,3),c=Math.pow(t,3);return a=o>.008856?o:(a-.13793103448275862)/7.787,n=s>.008856?s:(n-.13793103448275862)/7.787,t=c>.008856?c:(t-.13793103448275862)/7.787,[n*=95.047,a*=100,t*=108.883]},o.lab.lch=function(r){var n,a=r[0],t=r[1],e=r[2];return(n=360*Math.atan2(e,t)/2/Math.PI)<0&&(n+=360),[a,Math.sqrt(t*t+e*e),n]},o.lch.lab=function(r){var n,a=r[0],t=r[1];return n=r[2]/360*2*Math.PI,[a,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(r){var n=r[0],a=r[1],t=r[2],e=1 in arguments?arguments[1]:o.rgb.hsv(r)[2];if(0===(e=Math.round(e/50)))return 30;var h=30+(Math.round(t/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===e&&(h+=60),h},o.hsv.ansi16=function(r){return o.rgb.ansi16(o.hsv.rgb(r),r[2])},o.rgb.ansi256=function(r){var n=r[0],a=r[1],t=r[2];return n===a&&a===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(a/255*5)+Math.round(t/255*5)},o.ansi16.rgb=function(r){var n=r%10;if(0===n||7===n)return r>50&&(n+=3.5),[n=n/10.5*255,n,n];var a=.5*(1+~~(r>50));return[(1&n)*a*255,(n>>1&1)*a*255,(n>>2&1)*a*255]},o.ansi256.rgb=function(r){if(r>=232){var n=10*(r-232)+8;return[n,n,n]}var a;return r-=16,[Math.floor(r/36)/5*255,Math.floor((a=r%36)/6)/5*255,a%6/5*255]},o.rgb.hex=function(r){var n=(((255&Math.round(r[0]))<<16)+((255&Math.round(r[1]))<<8)+(255&Math.round(r[2]))).toString(16).toUpperCase();return'000000'.substring(n.length)+n},o.hex.rgb=function(r){var n=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var a=n[0];3===n[0].length&&(a=a.split('').map(function(r){return r+r}).join(''));var t=parseInt(a,16);return[t>>16&255,t>>8&255,255&t]},o.rgb.hcg=function(r){var n,a,t=r[0]/255,e=r[1]/255,h=r[2]/255,u=Math.max(Math.max(t,e),h),o=Math.min(Math.min(t,e),h),s=u-o;return n=s<1?o/(1-s):0,a=s<=0?0:u===t?(e-h)/s%6:u===e?2+(h-t)/s:4+(t-e)/s+4,a/=6,[360*(a%=1),100*s,100*n]},o.hsl.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=1,e=0;return(t=a<.5?2*n*a:2*n*(1-a))<1&&(e=(a-.5*t)/(1-t)),[r[0],100*t,100*e]},o.hsv.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=n*a,e=0;return t<1&&(e=(a-t)/(1-t)),[r[0],100*t,100*e]},o.hcg.rgb=function(r){var n=r[0]/360,a=r[1]/100,t=r[2]/100;if(0===a)return[255*t,255*t,255*t];var e,h=[0,0,0],u=n%1*6,o=u%1,s=1-o;switch(Math.floor(u)){case 0:h[0]=1,h[1]=o,h[2]=0;break;case 1:h[0]=s,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=o;break;case 3:h[0]=0,h[1]=s,h[2]=1;break;case 4:h[0]=o,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=s}return e=(1-a)*t,[255*(a*h[0]+e),255*(a*h[1]+e),255*(a*h[2]+e)]},o.hcg.hsv=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n),t=0;return a>0&&(t=n/a),[r[0],100*t,100*a]},o.hcg.hsl=function(r){var n=r[1]/100,a=r[2]/100*(1-n)+.5*n,t=0;return a>0&&a<.5?t=n/(2*a):a>=.5&&a<1&&(t=n/(2*(1-a))),[r[0],100*t,100*a]},o.hcg.hwb=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n);return[r[0],100*(a-n),100*(1-a)]},o.hwb.hcg=function(r){var n=r[1]/100,a=1-r[2]/100,t=a-n,e=0;return t<1&&(e=(a-t)/(1-t)),[r[0],100*t,100*e]},o.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]},o.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]},o.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]},o.gray.hsl=o.gray.hsv=function(r){return[0,0,r[0]]},o.gray.hwb=function(r){return[0,100,r[0]]},o.gray.cmyk=function(r){return[0,0,0,r[0]]},o.gray.lab=function(r){return[r[0],0,0]},o.gray.hex=function(r){var n=255&Math.round(r[0]/100*255),a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return'000000'.substring(a.length)+a},o.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}},1154); -__d(function(n,t,r,e){var a=t(1154);function u(n){var t=(function(){for(var n={},t=Object.keys(a),r=t.length,e=0;e0&&void 0!==arguments[0]?arguments[0]:a.default;return{flex:1,alignSelf:'center',alignItems:'flex-start'}}},1156); -__d(function(e,l,n,t){Object.defineProperty(t,"__esModule",{value:!0});var u,a=l(1147),f=(u=a)&&u.__esModule?u:{default:u};t.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'}}},1157); -__d(function(t,o,e,a){Object.defineProperty(a,"__esModule",{value:!0});var i,n=o(17),l=o(1147),r=(i=l)&&i.__esModule?i:{default:i};a.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default,o=t.platformStyle,e=t.platform;return{".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:t.titleFontSize-2,fontFamily:t.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:t.subTitleFontSize,fontFamily:t.titleFontfamily,color:t.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:"android"===e?n.StatusBar.currentHeight:void 0,height:"android"===e?t.toolbarHeight+n.StatusBar.currentHeight:t.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:.3},"NativeBase.Right":{flex:.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:"ios"===e?void 0:0,flex:"ios"===e?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:"ios"===e?void 0:10},"NativeBase.Subtitle":{paddingLeft:"ios"===e?void 0:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:t.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},paddingHorizontal:t.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:t.dropdownLinkColor,fontSize:t.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:t.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:t.searchBarHeight,borderColor:"transparent",backgroundColor:t.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:"ios"===e?10:null},paddingHorizontal:"ios"===e?void 0:null,width:"ios"===e?void 0:0,height:"ios"===e?void 0:0}},".rounded":{"NativeBase.Item":{borderRadius:"ios"===e&&"material"!==o?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:"ios"===e&&"material"!==o?-3:0,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize+1:t.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize+1:t.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:0,top:"ios"===e?1:-1.5,paddingLeft:"ios"===e&&"material"!==o?2:5,paddingRight:"ios"===e&&"material"!==o?void 0:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},alignSelf:null,paddingRight:t.buttonPadding,paddingLeft:"ios"===e&&"material"!==o?4:8},flex:"ios"===e&&"material"!==o?1:.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"ios"===e&&"material"!==o?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:"ios"===e?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},"NativeBase.Text":{color:t.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:"ios"===e?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize-9:t.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize-9:t.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:14,top:"ios"===e?1:-1.5,paddingRight:"ios"===e&&"material"!==t.platformStyle?0:void 0},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},alignSelf:null,paddingHorizontal:t.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:t.toolbarDefaultBg,flexDirection:"row",paddingLeft:"ios"===e&&"material"!==t.platformStyle?6:10,paddingRight:10,justifyContent:"center",paddingTop:"ios"===e?18:0,borderBottomWidth:"ios"===e?1/n.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:t.toolbarDefaultBorder,height:"ios"===t.platform&&"material"===t.platformStyle?t.toolbarHeight+n.StatusBar.height:t.toolbarHeight,elevation:3,shadowColor:"material"===o?"#000":void 0,shadowOffset:"material"===o?{width:0,height:2}:void 0,shadowOpacity:"material"===o?.2:void 0,shadowRadius:"material"===o?1.2:void 0,top:0,left:0,right:0}}},1158); -__d(function(e,t,u,d){Object.defineProperty(d,"__esModule",{value:!0});var l,n=t(1147),a=(l=n)&&l.__esModule?l:{default:l};d.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{marginVertical:-5}}},1159); -__d(function(e,d,r,i){Object.defineProperty(i,"__esModule",{value:!0});var a,u=d(1147),t=(a=u)&&a.__esModule?a:{default:a};i.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.default;return{'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28}}},1160); -__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,i=o(17),l=o(1147),a=(r=l)&&r.__esModule?r:{default:r};var d=i.Dimensions.get("window").height;n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{flex:1,height:"ios"===i.Platform.OS?d:d-20,backgroundColor:e.containerBgColor}}},1161); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a,o=t(1147),d=(a=o)&&a.__esModule?a:{default:a};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}}}},1162); -__d(function(r,o,e,a){Object.defineProperty(a,"__esModule",{value:!0});var n,t=Object.assign||function(r){for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:d.default,o=r.platformStyle,e=r.platform,a={"NativeBase.Text":{color:r.brandDark},"NativeBase.Icon":{color:r.brandDark},"NativeBase.IconNB":{color:r.brandDark}},n={"NativeBase.Text":{color:r.brandLight},"NativeBase.Icon":{color:r.brandLight},"NativeBase.IconNB":{color:r.brandLight}},i={"NativeBase.Text":{color:r.btnPrimaryBg},"NativeBase.Icon":{color:r.btnPrimaryBg},"NativeBase.IconNB":{color:r.btnPrimaryBg}},l={"NativeBase.Text":{color:r.btnSuccessBg},"NativeBase.Icon":{color:r.btnSuccessBg},"NativeBase.IconNB":{color:r.btnSuccessBg}},b={"NativeBase.Text":{color:r.btnInfoBg},"NativeBase.Icon":{color:r.btnInfoBg},"NativeBase.IconNB":{color:r.btnInfoBg}},g={"NativeBase.Text":{color:r.btnWarningBg},"NativeBase.Icon":{color:r.btnWarningBg},"NativeBase.IconNB":{color:r.btnWarningBg}},c={"NativeBase.Text":{color:r.btnDangerBg},"NativeBase.Icon":{color:r.btnDangerBg},"NativeBase.IconNB":{color:r.btnDangerBg}};return{".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:r.btnDisabledBg},"NativeBase.Icon":{color:r.btnDisabledBg},"NativeBase.IconNB":{color:r.btnDisabledBg}},"NativeBase.Icon":{color:r.brandLight},"NativeBase.IconNB":{color:r.brandLight},backgroundColor:r.btnDisabledBg},".bordered":t({".dark":t({},a,{backgroundColor:"transparent",borderColor:r.brandDark,borderWidth:2*r.borderWidth}),".light":t({},n,{backgroundColor:"transparent",borderColor:r.brandLight,borderWidth:2*r.borderWidth}),".primary":t({},i,{backgroundColor:"transparent",borderColor:r.btnPrimaryBg,borderWidth:2*r.borderWidth}),".success":t({},l,{backgroundColor:"transparent",borderColor:r.btnSuccessBg,borderWidth:2*r.borderWidth}),".info":t({},b,{backgroundColor:"transparent",borderColor:r.btnInfoBg,borderWidth:2*r.borderWidth}),".warning":t({},g,{backgroundColor:"transparent",borderColor:r.btnWarningBg,borderWidth:2*r.borderWidth}),".danger":t({},c,{backgroundColor:"transparent",borderColor:r.btnDangerBg,borderWidth:2*r.borderWidth}),".disabled":{backgroundColor:null,borderColor:r.btnDisabledBg,borderWidth:2*r.borderWidth,"NativeBase.Text":{color:r.btnDisabledBg}}},i,{borderWidth:2*r.borderWidth,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":t({},a),backgroundColor:r.brandDark},".light":t({".transparent":t({},n,{backgroundColor:null}),".bordered":t({},n)},a,{backgroundColor:r.brandLight}),".primary":{".bordered":t({},i),backgroundColor:r.btnPrimaryBg},".success":{".bordered":t({},l),backgroundColor:r.btnSuccessBg},".info":{".bordered":t({},b),backgroundColor:r.btnInfoBg},".warning":{".bordered":t({},g),backgroundColor:r.btnWarningBg},".danger":{".bordered":t({},c),backgroundColor:r.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:r.borderRadiusLarge},".transparent":t({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},i,{".dark":t({},a,{backgroundColor:null}),".danger":t({},c,{backgroundColor:null}),".warning":t({},g,{backgroundColor:null}),".info":t({},b,{backgroundColor:null}),".primary":t({},i,{backgroundColor:null}),".success":t({},l,{backgroundColor:null}),".light":t({},n,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:r.btnDisabledBg,borderWidth:2*r.borderWidth,"NativeBase.Text":{color:r.btnDisabledBg},"NativeBase.Icon":{color:r.btnDisabledBg},"NativeBase.IconNB":{color:r.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:r.btnFontFamily,marginLeft:0,marginRight:0,color:r.inverseTextColor,fontSize:r.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:r.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:"ios"===e?2:void 0},"NativeBase.IconNB":{color:r.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:"ios"===e?2:void 0},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:r.buttonPadding,backgroundColor:r.btnPrimaryBg,borderRadius:r.borderRadiusBase,borderColor:r.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:"material"===o?r.brandDark:void 0,shadowOffset:"material"===o?{width:0,height:2}:void 0,shadowOpacity:"material"===o?.2:void 0,shadowRadius:"material"===o?1.2:void 0,alignItems:"center",justifyContent:"space-between"}}},1163); -__d(function(t,e,o,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=e(17),f=e(1147),a=(l=f)&&l.__esModule?l:{default:l};i.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{fontSize:t.titleFontSize,fontFamily:t.titleFontfamily,color:t.titleFontColor,fontWeight:"ios"===n.Platform.OS?"700":void 0,textAlign:"center",paddingLeft:"ios"===n.Platform.OS?4:0,marginLeft:"ios"===n.Platform.OS?void 0:-3,paddingTop:1}}},1164); -__d(function(t,e,o,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=e(17),f=e(1147),a=(l=f)&&l.__esModule?l:{default:l};i.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{fontSize:t.subTitleFontSize,fontFamily:t.titleFontfamily,color:t.subtitleColor,textAlign:"center",paddingLeft:"ios"===n.Platform.OS?4:0,marginLeft:"ios"===n.Platform.OS?void 0:-3}}},1165); -__d(function(r,o,e,d){Object.defineProperty(d,"__esModule",{value:!0});var t,i=o(1147),n=(t=i)&&t.__esModule?t:{default:t};d.default=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{"NativeBase.Icon":{fontSize:24,color:r.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:r.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:r.inputHeightBase,color:r.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:r.inputFontSize,lineHeight:r.inputLineHeight},".underline":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputBorderColor},".regular":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderColor:r.inputBorderColor},".rounded":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderRadius:r.inputGroupRoundedBorderRadius,borderColor:r.inputBorderColor},".success":{"NativeBase.Icon":{color:r.inputSuccessBorderColor},"NativeBase.IconNB":{color:r.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:r.inputSuccessBorderColor},".regular":{borderColor:r.inputSuccessBorderColor},".underline":{borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputSuccessBorderColor},borderColor:r.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:r.inputErrorBorderColor},"NativeBase.IconNB":{color:r.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:r.inputErrorBorderColor},".regular":{borderColor:r.inputErrorBorderColor},".underline":{borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputErrorBorderColor},borderColor:r.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"}}},1166); -__d(function(n,e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a,t=e(1147),d=(a=t)&&a.__esModule?a:{default:a};r.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{".primary":{backgroundColor:n.btnPrimaryBg},".warning":{backgroundColor:n.btnWarningBg},".info":{backgroundColor:n.btnInfoBg},".success":{backgroundColor:n.btnSuccessBg},".danger":{backgroundColor:n.btnDangerBg},"NativeBase.Text":{color:n.badgeColor,fontSize:n.fontSizeBase,lineHeight:n.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:n.badgeBg,padding:n.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:"ios"===n.platform?"center":void 0,borderRadius:13.5,height:27}}},1167); -__d(function(e,o,c,i){Object.defineProperty(i,"__esModule",{value:!0});var n,t=o(1147),a=(n=t)&&n.__esModule?n:{default:n};i.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{".checked":{"NativeBase.Icon":{color:e.checkboxTickColor},"NativeBase.IconNB":{color:e.checkboxTickColor}},"NativeBase.Icon":{color:"transparent",lineHeight:e.CheckboxIconSize,marginTop:e.CheckboxIconMarginTop,fontSize:e.CheckboxFontSize},"NativeBase.IconNB":{color:"transparent",lineHeight:e.CheckboxIconSize,marginTop:e.CheckboxIconMarginTop,fontSize:e.CheckboxFontSize},borderRadius:e.CheckboxRadius,overflow:"hidden",width:e.checkboxSize,height:e.checkboxSize,borderWidth:e.CheckboxBorderWidth,paddingLeft:e.CheckboxPaddingLeft-1,paddingBottom:e.CheckboxPaddingBottom,left:10}}},1168); -__d(function(o,a,r,d){Object.defineProperty(d,"__esModule",{value:!0});var l,e=a(1147),n=(l=e)&&l.__esModule?l:{default:l};d.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,borderWidth:o.borderWidth,borderRadius:o.cardBorderRadius,borderColor:o.cardBorderColor,flexWrap:"nowrap",backgroundColor:o.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.1,shadowRadius:1.5,elevation:3}}},1169); -__d(function(o,e,i,t){Object.defineProperty(t,"__esModule",{value:!0});var r,a=e(17),d=e(1147),l=(r=d)&&r.__esModule?r:{default:r};t.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default;return{".selected":{"NativeBase.IconNB":{color:"ios"===a.Platform.OS?o.radioColor:o.radioSelectedColorAndroid,lineHeight:"ios"===a.Platform.OS?25:o.radioBtnLineHeight,height:"ios"===a.Platform.OS?20:void 0}},"NativeBase.IconNB":{color:"ios"===a.Platform.OS?"transparent":void 0,lineHeight:"ios"===a.Platform.OS?void 0:o.radioBtnLineHeight,fontSize:"ios"===a.Platform.OS?void 0:o.radioBtnSize}}}},1170); -__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(1147),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH3,lineHeight:e.lineHeightH3}}},1171); -__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(1147),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH2,lineHeight:e.lineHeightH2}}},1172); -__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(1147),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH1,lineHeight:e.lineHeightH1}}},1173); -__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var a,r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:i.default,t=e.platformStyle,o=e.platform,l={"NativeBase.Icon":{color:e.tabBarActiveTextColor}},a={"NativeBase.IconNB":{color:e.tabBarActiveTextColor}},n={"NativeBase.Text":{color:e.tabBarActiveTextColor}};return{"NativeBase.Left":{"NativeBase.Button":r({".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),alignSelf:null},l,a),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":r({alignSelf:"center",".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),".full":{height:e.footerHeight,paddingBottom:e.footerPaddingBottom,flex:1}},l,a)},"NativeBase.Right":{"NativeBase.Button":r({".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),alignSelf:null},l,a),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:e.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:"ios"===o&&"material"!==t?e.borderWidth:void 0,borderColor:"ios"===o&&"material"!==t?"#cbcbcb":void 0,height:e.footerHeight,paddingBottom:e.footerPaddingBottom,elevation:3,left:0,right:0}}},1174); -__d(function(e,t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var l,i=t(17),r=t(1147),n=(l=r)&&l.__esModule?l:{default:l};a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default,t=e.platform;return{"NativeBase.Button":{".active":{"NativeBase.Text":{color:e.tabBarActiveTextColor,fontSize:e.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:e.tabBarActiveTextColor},"NativeBase.IconNB":{color:e.tabBarActiveTextColor},backgroundColor:e.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:e.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:"ios"===t?"600":void 0,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:e.tabBarTextColor},"NativeBase.IconNB":{color:e.tabBarTextColor},"NativeBase.Text":{color:e.tabBarTextColor,fontSize:e.tabBarTextSize,lineHeight:16}},backgroundColor:"android"===i.Platform.OS?e.footerDefaultBg:void 0,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"}}},1175); -__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i,l=t(1147),f=(i=l)&&i.__esModule?i:{default:i};a.default=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default).platform;return{"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}}}},1176); -__d(function(o,r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,d=r(17),n=r(1147),l=(i=n)&&i.__esModule?i:{default:i};t.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default;return{".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:o.inputHeightBase,paddingTop:"ios"===d.Platform.OS?10:3,paddingBottom:"ios"===d.Platform.OS?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:o.inputFontSize},"NativeBase.Input":{flex:2,fontSize:o.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:o.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:"ios"===d.Platform.OS?"stretch":"flex-start",flex:1,width:"ios"===d.Platform.OS?null:o.deviceWidth-25,fontSize:o.inputFontSize,lineHeight:o.inputLineHeight-6,".secureTextEntry":{fontSize:o.inputFontSize-4},".multiline":{paddingTop:"ios"===d.Platform.OS?9:void 0,paddingBottom:"ios"===d.Platform.OS?9:void 0}},flexDirection:null,minHeight:o.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:o.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:o.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:o.inputFontSize,color:o.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:o.inputHeightBase,color:o.inputColor,flex:1,top:"ios"===d.Platform.OS?1.5:void 0,fontSize:o.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderColor:o.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderRadius:30,borderColor:o.inputBorderColor},".success":{"NativeBase.Icon":{color:o.inputSuccessBorderColor},"NativeBase.IconNB":{color:o.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:o.inputSuccessBorderColor},".regular":{borderColor:o.inputSuccessBorderColor},".underline":{borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputSuccessBorderColor},borderColor:o.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:o.inputErrorBorderColor},"NativeBase.IconNB":{color:o.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:o.inputErrorBorderColor},".regular":{borderColor:o.inputErrorBorderColor},".underline":{borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputErrorBorderColor},borderColor:o.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2}}},1177); -__d(function(e,t,d,u){Object.defineProperty(u,"__esModule",{value:!0});var f,n=t(1147),o=(f=n)&&f.__esModule?f:{default:f};u.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default;return{".focused":{width:0},fontSize:17}}},1178); -__d(function(o,r,e,d){Object.defineProperty(d,"__esModule",{value:!0});var t,i=r(1147),n=(t=i)&&t.__esModule?t:{default:t};d.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".underline":{borderBottomWidth:o.borderWidth,marginTop:5,borderColor:o.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:o.inputBorderColor},color:o.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"}}},1179); -__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var l,a=o(1147),f=(l=a)&&l.__esModule?l:{default:l};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{fontSize:e.DefaultFontSize,fontFamily:e.fontFamily,color:e.textColor,".note":{color:"#a7a7a7",fontSize:e.noteFontSize}}}},1180); -__d(function(e,n,a,r){Object.defineProperty(r,"__esModule",{value:!0});var o,t=n(1147),d=(o=t)&&o.__esModule?o:{default:o};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default,n=e.platform;return{".danger":{backgroundColor:e.brandDanger},".warning":{backgroundColor:e.brandWarning},".success":{backgroundColor:e.brandSuccess},backgroundColor:"rgba(0,0,0,0.8)",borderRadius:"ios"===n?5:0,flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,minHeight:50,"NativeBase.Text":{color:"#fff",flex:1},"NativeBase.Button":{backgroundColor:"transparent",height:30,elevation:0,"NativeBase.Text":{fontSize:14}}}}},1181); -__d(function(e,u,d,l){Object.defineProperty(l,"__esModule",{value:!0});var o,t=u(1147),n=(o=t)&&o.__esModule?o:{default:o};l.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{flex:1,backgroundColor:"#FFF"}}},1182); -__d(function(t,e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a,i=e(1147),n=(a=i)&&a.__esModule?a:{default:a};r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".tabIcon":{height:void 0},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:t.tabFontSize,color:t.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:t.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:t.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:t.tabFontSize,color:t.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:t.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:t.tabBgColor}}},1183); -__d(function(o,e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var r,d=e(1147),i=(r=d)&&r.__esModule?r:{default:r},l=e(17);a.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.default,e=o.platformStyle;o.platform;return{elevation:3,height:50,flexDirection:"row",shadowColor:"material"===e?"#000":void 0,shadowOffset:"material"===e?{width:0,height:2}:void 0,shadowOpacity:"material"===e?.2:void 0,shadowRadius:"material"===e?1.2:void 0,justifyContent:"space-around",borderBottomWidth:"ios"===l.Platform.OS?o.borderWidth:0,borderColor:o.topTabBarBorderColor}}},1184); -__d(function(e,d,n,t){Object.defineProperty(t,"__esModule",{value:!0});var u,a=d(1147),l=(u=a)&&u.__esModule?u:{default:u};t.default=function(){return{".padder":{padding:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default).contentPadding}}}},1185); -__d(function(o,e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var r,i=e(1147),l=(r=i)&&r.__esModule?r:{default:r};a.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default,e=o.platform;return{flexDirection:"row",backgroundColor:o.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:"android"===e?0:1,minWidth:"android"===e?void 0:60},"NativeBase.Text":{color:o.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:o.topTabBarTextColor,fontSize:"ios"===e?26:void 0},".active":{"NativeBase.Text":{color:o.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:o.topTabBarActiveTextColor}}}}},1186); -__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u,d=o(1147),l=(u=d)&&u.__esModule?u:{default:u};n.default=function(){return{fontSize:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default).iconFontSize,color:"#000"}}},1187); -__d(function(e,t,i,n){Object.defineProperty(n,"__esModule",{value:!0});var l,u=t(1147),d=(l=u)&&l.__esModule?l:{default:l};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{'.multiline':{height:null},height:e.inputHeightBase,color:e.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:e.inputFontSize}}},1188); -__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var a,i=t(1147),s=(a=i)&&a.__esModule?a:{default:a};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default;return{"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}}}},1189); -__d(function(o,e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var i,d=e(1147),n=(i=d)&&i.__esModule?i:{default:i};r.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default,e=o.platform;return{height:45,borderColor:o.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:o.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:o.segmentBorderColor,elevation:0,".active":{backgroundColor:o.segmentActiveBackgroundColor,"NativeBase.Text":{color:o.segmentActiveTextColor},"NativeBase.Icon":{color:o.segmentActiveTextColor}},".first":{borderTopLeftRadius:"ios"===e?5:void 0,borderBottomLeftRadius:"ios"===e?5:void 0,borderLeftWidth:1},".last":{borderTopRightRadius:"ios"===e?5:void 0,borderBottomRightRadius:"ios"===e?5:void 0},"NativeBase.Text":{color:o.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:o.segmentTextColor}}}}},1190); -__d(function(e,t,u,d){Object.defineProperty(d,"__esModule",{value:!0});var l,n=t(1147),f=(l=n)&&l.__esModule?l:{default:l};d.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{height:80}}},1191); -__d(function(e,t,o,i){Object.defineProperty(i,"__esModule",{value:!0});var a,n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:d.default,t=e.platform,o={"NativeBase.Text":{fontSize:e.DefaultFontSize-3,color:e.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:e.iconFontSize-10,color:e.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:e.iconFontSize-10,color:e.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};return{"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:e.iconFontSize},"NativeBase.IconNB":{fontSize:e.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":n({},o,{paddingRight:e.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:"ios"===t?"#555":"#222",fontSize:e.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":n({},o,{paddingRight:e.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":n({},o),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:e.iconFontSize-8,color:e.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:e.iconFontSize-8,color:e.cardBorderColor},"NativeBase.Text":{fontSize:e.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:"ios"===t?"600":"500"},".bordered":{"NativeBase.Text":{color:e.brandPrimary,fontWeight:"ios"===t?"600":"500"},borderBottomWidth:e.borderWidth},borderBottomWidth:null,paddingVertical:e.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:"ios"===t?"600":"500"},".bordered":{"NativeBase.Text":{color:e.brandPrimary,fontWeight:"ios"===t?"600":"500"},borderTopWidth:e.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:e.iconFontSize+5,fontSize:e.iconFontSize-2},"NativeBase.IconNB":{width:e.iconFontSize+5,fontSize:e.iconFontSize-2},".bordered":{borderBottomWidth:r.StyleSheet.hairlineWidth,borderColor:e.cardBorderColor},".first":{borderTopLeftRadius:e.cardBorderRadius,borderTopRightRadius:e.cardBorderRadius},".last":{borderBottomLeftRadius:e.cardBorderRadius,borderBottomRightRadius:e.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:e.cardItemPadding+5,paddingVertical:e.cardItemPadding,backgroundColor:e.cardDefaultBg}}},1192); -__d(function(e,t,i,o){Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:r.default,t=e.platform,i={"NativeBase.Text":{color:e.listItemSelected},"NativeBase.Icon":{color:e.listItemSelected}};return{"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:e.dropdownLinkColor,fontSize:"ios"===t?e.iconFontSize-10:e.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:"ios"===t?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:"ios"===t?10:null},paddingHorizontal:"ios"===t?void 0:null,width:"ios"===t?void 0:0,height:"ios"===t?void 0:0},backgroundColor:e.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:e.listItemPadding+3}},".itemHeader":{".first":{paddingTop:e.listItemPadding+3},borderBottomWidth:"ios"===t?e.borderWidth:null,marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+5,paddingTop:"ios"===t?e.listItemPadding+25:void 0,paddingBottom:"android"===t?e.listItemPadding+20:void 0,flexDirection:"row",borderColor:e.listBorderColor,"NativeBase.Text":{fontSize:14,color:"ios"===t?void 0:e.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+5,backgroundColor:e.listDividerBg,flexDirection:"row",borderColor:e.listBorderColor},".selected":n({"NativeBase.Left":n({},i),"NativeBase.Body":n({},i),"NativeBase.Right":n({},i)},i),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:e.iconFontSize-10,fontSize:e.iconFontSize-10},"NativeBase.IconNB":{width:e.iconFontSize-10,fontSize:e.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:e.listItemPadding,".note":{color:e.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:e.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:e.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:e.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:e.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:.28},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(e.listItemPadding+5),paddingLeft:2*(e.listItemPadding+5),top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:e.listItemPadding,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor,marginLeft:e.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:e.noteFontSize-2}},flex:0,paddingRight:e.listItemPadding+5,alignSelf:"stretch",paddingVertical:e.listItemPadding,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:e.listItemPadding+5,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor,marginLeft:e.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:e.listNoteSize,color:e.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:e.listItemPadding+5,paddingVertical:e.listItemPadding+5,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:e.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:e.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:e.iconFontSize-5,fontSize:e.iconFontSize-2},"NativeBase.IconNB":{width:e.iconFontSize-5,fontSize:e.iconFontSize-2},paddingRight:e.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:e.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:e.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:e.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:"ios"===a.Platform.OS?void 0:-5,alignSelf:null},"NativeBase.PickerNB":n({},(0,l.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:e.listBorderColor,paddingRight:e.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:e.listItemPadding+6,paddingVertical:e.listItemPadding+3,marginLeft:e.listItemPadding+6,borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:e.listBg,borderColor:e.listBorderColor}}},1193); -__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,u=t(1147),d=(n=u)&&n.__esModule?n:{default:n};l.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1}}},1194); -__d(function(e,a,t,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=a(1147),f=(l=n)&&l.__esModule?l:{default:l};i.default=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default).platform;return{"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}}}},1195); -__d(function(d,t,o,e){Object.defineProperty(e,"__esModule",{value:!0});var r,i=t(1147),n=(r=i)&&r.__esModule?r:{default:r};e.default=function(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{'.group':{height:50,paddingVertical:d.listItemPadding-8,paddingTop:d.listItemPadding+12,'.bordered':{height:50,paddingVertical:d.listItemPadding-8,paddingTop:d.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:d.listItemPadding+2,paddingBottom:d.listItemPadding,borderBottomWidth:d.borderWidth,borderTopWidth:d.borderWidth,borderColor:d.listBorderColor},'NativeBase.Text':{fontSize:d.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:d.listItemPadding+5}}},1196); -__d(function(e,t,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SwipeRow=void 0;var r=Object.assign||function(e){for(var t=1;tthis.props.directionalDistanceChangeThreshold}},{key:"handlePanResponderMove",value:function(e,t){var n=t.dx,i=t.dy,r=Math.abs(n),s=Math.abs(i);if(r>this.props.directionalDistanceChangeThreshold||s>this.props.directionalDistanceChangeThreshold){if(s>r&&!this.horizontalSwipeGestureBegan)return;this.parentScrollEnabled&&(this.parentScrollEnabled=!1,this.props.setScrollEnabled&&this.props.setScrollEnabled(!1)),null===this.swipeInitialX&&(this.swipeInitialX=this._translateX._value),this.horizontalSwipeGestureBegan||(this.horizontalSwipeGestureBegan=!0,this.props.swipeGestureBegan&&this.props.swipeGestureBegan());var o=this.swipeInitialX+n;this.props.disableLeftSwipe&&o<0&&(o=0),this.props.disableRightSwipe&&o>0&&(o=0),this.props.stopLeftSwipe&&o>this.props.stopLeftSwipe&&(o=this.props.stopLeftSwipe),this.props.stopRightSwipe&&o=0?this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)&&(n=this.props.leftOpenValue):this._translateX._value0?this.props.activeOpacity:.5,__source:{fileName:n,lineNumber:67}}),o);if(this.props.rounded){var r=a({},this.prepareRootProps().style),i=this.props.full||this.props.block?1:r.flex;return u.default.createElement(s.View,{style:[{maxHeight:r.height},r,{paddingTop:void 0,paddingBottom:void 0}],__source:{fileName:n,lineNumber:82}},u.default.createElement(s.TouchableNativeFeedback,a({ref:function(t){return e._root=t},background:this.props.androidRippleColor?s.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,!0):s.TouchableNativeFeedback.Ripple(t.androidRippleColor,!0)},this.prepareRootProps(),{__source:{fileName:n,lineNumber:83}}),u.default.createElement(s.View,{style:[v.childContainer,{paddingTop:r.paddingTop,paddingBottom:r.paddingBottom,height:r.height,flexGrow:i}],__source:{fileName:n,lineNumber:92}},o)))}return u.default.createElement(s.TouchableNativeFeedback,a({ref:function(t){return e._root=t},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:n,lineNumber:100}}),u.default.createElement(s.View,a({},this.prepareRootProps(),{__source:{fileName:n,lineNumber:105}}),o))}}]),t})();m.contextTypes={theme:p.default.object},m.propTypes=a({},s.TouchableOpacity.propTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array]),block:p.default.bool,primary:p.default.bool,transparent:p.default.bool,success:p.default.bool,danger:p.default.bool,warning:p.default.bool,info:p.default.bool,bordered:p.default.bool,disabled:p.default.bool,rounded:p.default.bool,large:p.default.bool,small:p.default.bool,active:p.default.bool});var v=s.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}}),_=(0,d.connectStyle)("NativeBase.Button",{},h.default)(m);r.Button=_},1205); -__d(function(e,t,l,r){"use_strict";var a,f=t(1138),u=(a=f)&&a.__esModule?a:{default:a},n=t(17);l.exports=function(e,t){var l={};delete(e=u.default.clone(e)).children;var r=e.style;if(delete e.style,e?u.default.assign(l,t,e):l=t,r){var a={};l.style={},Array.isArray(r)?u.default.forEach(r,function(e){"number"==typeof e?u.default.merge(a,n.StyleSheet.flatten(e)):u.default.merge(a,e)}):a="number"==typeof r?n.StyleSheet.flatten(r):r,u.default.merge(l.style,t.style,a)}return l}},1206); -__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DatePicker=void 0;var o="src/basic/DatePicker.js",r=(function(){function e(e,t){for(var a=0;a=t?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateHeight",value:function(e,t){var r=null;r=void 0!=t?t:h.default.Inset;var o="portrait"===e?r.portrait:r.landscape;return(void 0!=this.props.style.height?this.props.style.height:this.props.style[1]&&this.props.style[1].height?this.props.style[1].height:this.props.style[0].height)+o.topInset}},{key:"calculatePadder",value:function(e,t){var r=null;r=void 0!=t?t:h.default.Inset;var o="portrait"===e?r.portrait:r.landscape,a=p.StyleSheet.flatten(this.props.style);return void 0!==a.padding||void 0!==a.paddingTop?(a.paddingTop?a.paddingTop:a.padding)+o.topInset:o.topInset}},{key:"render",value:function(){var e=this,t=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:h.default,r=t.platformStyle;return l.default.createElement(p.View,{onLayout:function(t){return e.layoutChange(t.nativeEvent.layout)},__source:{fileName:n,lineNumber:67}},l.default.createElement(p.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:t.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:"material"===r?"light-content":t.iosStatusbar,translucent:!!this.props.transparent||this.props.translucent,__source:{fileName:n,lineNumber:68}}),h.default.isIphoneX?l.default.createElement(p.View,a({ref:function(t){return e._root=t}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,t.Inset),paddingTop:this.calculatePadder(this.state.orientation,t.Inset)}],__source:{fileName:n,lineNumber:84}})):l.default.createElement(p.View,a({ref:function(t){return e._root=t}},this.props,{__source:{fileName:n,lineNumber:102}})))}}]),t})();y.contextTypes={theme:u.default.object},y.propTypes=a({},p.ViewPropTypes,{style:u.default.oneOfType([u.default.object,u.default.number,u.default.array]),searchBar:u.default.bool,rounded:u.default.bool});var v=(0,c.connectStyle)("NativeBase.Header",{},f.default)(y);o.Header=v},1233); -__d(function(e,t,r,o){Object.defineProperty(o,"__esModule",{value:!0}),o.InputGroup=void 0;var n=Object.assign||function(e){for(var t=1;t0?e.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),o)}c.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start()}},{key:"closeModal",value:function(t){this.setState({modalVisible:!1});var e=this.state.onClose;e&&"function"==typeof e&&e(t)}},{key:"closeToast",value:function(t){clearTimeout(this.closeTimeout),c.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,t))}},{key:"render",value:function(){var t=this;return this.state.modalVisible?l.default.createElement(c.Animated.View,{style:this.getToastStyle(),__source:{fileName:a,lineNumber:105}},l.default.createElement(d.Toast,{style:this.state.style,danger:"danger"==this.state.type,success:"success"==this.state.type,warning:"warning"==this.state.type,__source:{fileName:a,lineNumber:106}},l.default.createElement(y.Text,{style:this.state.textStyle,__source:{fileName:a,lineNumber:112}},this.state.text),this.state.buttonText&&l.default.createElement(p.Button,{style:this.state.buttonStyle,onPress:function(){return t.closeToast('user')},__source:{fileName:a,lineNumber:114}},l.default.createElement(y.Text,{style:this.state.buttonTextStyle,__source:{fileName:a,lineNumber:118}},this.state.buttonText)))):null}}],[{key:"show",value:function(t){var e=(function(t,e){var o={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o})(t,[]);this.toastInstance._root.showToast({config:e})}},{key:"hide",value:function(){this.toastInstance._root.getModalState()&&this.toastInstance._root.closeToast("functionCall")}}]),e})();b.propTypes=i({},c.ViewPropTypes,{style:u.default.oneOfType([u.default.object,u.default.number,u.default.array])});var T=(0,f.connectStyle)("NativeBase.ToastContainer",{},h.default)(b);n.ToastContainer=T},1253); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Toast=void 0;var o=Object.assign||function(e){for(var t=1;t=e?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateLeft",value:function(t,e){var o=null;o=void 0!==e?e:u.default.Inset;var s="portrait"===t?o.portrait:o.landscape,r=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingLeft||(r=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+s.leftInset):r=void 0!==this.props.style.padding||void 0!==this.props.style.paddingLeft?(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+s.leftInset:s.leftInset,r}},{key:"calculateRight",value:function(t,e){var o=null;o=void 0!==e?e:u.default.Inset;var s="portrait"===t?o.portrait:o.landscape,r=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingRight||(r=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+s.rightInset):r=void 0!==this.props.style.padding||void 0!==this.props.style.paddingRight?(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+s.rightInset:s.rightInset,r}},{key:"render",value:function(){var t=this,e=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:u.default;return u.default.isIphoneX?a.default.createElement(p.KeyboardAwareScrollView,r({automaticallyAdjustContentInsets:!1,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function(e){t._scrollview=e,t._root=e}},this.props,{onLayout:function(e){return t.layoutChange(e.nativeEvent.layout)},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,e.Inset)}],contentContainerStyle:[{padding:this.props.padder?e.contentPadding:void 0},this.props.contentContainerStyle],__source:{fileName:"src/basic/Content.js",lineNumber:95}}),this.props.children):a.default.createElement(p.KeyboardAwareScrollView,r({automaticallyAdjustContentInsets:!1,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function(e){t._scrollview=e,t._root=e}},this.props,{contentContainerStyle:[{padding:this.props.padder?e.contentPadding:void 0},this.props.contentContainerStyle],__source:{fileName:"src/basic/Content.js",lineNumber:125}}),this.props.children)}}]),e})();f.contextTypes={theme:l.default.object},f.propTypes={style:l.default.oneOfType([l.default.object,l.default.number,l.default.array]),padder:l.default.bool,disableKBDismissScroll:l.default.bool,enableResetScrollToCoords:l.default.bool,keyboardShouldPersistTaps:l.default.string};var y=(0,d.connectStyle)("NativeBase.Content",{},h.default)(f);s.Content=y},1257); -__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardAwareScrollView=t.KeyboardAwareSectionList=t.KeyboardAwareFlatList=t.KeyboardAwareListView=t.listenToKeyboardEvents=void 0;var l=r(1259),i=babelHelpers.interopRequireDefault(l),o=r(1260),b=babelHelpers.interopRequireDefault(o),d=r(1261),u=babelHelpers.interopRequireDefault(d),s=r(1262),n=babelHelpers.interopRequireDefault(s),f=r(1263),w=babelHelpers.interopRequireDefault(f);t.listenToKeyboardEvents=i.default,t.KeyboardAwareListView=u.default,t.KeyboardAwareFlatList=n.default,t.KeyboardAwareSectionList=w.default,t.KeyboardAwareScrollView=b.default},1258); -__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=o(51),l=babelHelpers.interopRequireDefault(n),a=o(105),i=babelHelpers.interopRequireDefault(a),s=o(17),d=babelHelpers.interopRequireDefault(s),c=(0,o(998).isIphoneX)()?83:49,u=250,p=75;r.default=function(e){var o,t,r;return t=o=(function(o){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.call(o),o.keyboardWillShowEvent=void 0,o.keyboardWillHideEvent=void 0,o.position={x:0,y:0},o.defaultResetScrollToCoords=null;var n=e.viewIsInsideTabBar?c:0;return o.state={keyboardSpace:n},o}return babelHelpers.inherits(t,o),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.mountedComponent=!0,'ios'===s.Platform.OS?(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardWillShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardWillHide',this._resetKeyboardSpace)):'android'===s.Platform.OS&&this.props.enableOnAndroid&&(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardDidShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardDidHide',this._resetKeyboardSpace))}},{key:"componentWillReceiveProps",value:function(e){if(e.viewIsInsideTabBar!==this.props.viewIsInsideTabBar){var o=e.viewIsInsideTabBar?c:0;this.state.keyboardSpace!==o&&this.setState({keyboardSpace:o})}}},{key:"componentWillUnmount",value:function(){this.mountedComponent=!1,this.keyboardWillShowEvent&&this.keyboardWillShowEvent.remove(),this.keyboardWillHideEvent&&this.keyboardWillHideEvent.remove()}},{key:"render",value:function(){var o=this.props,t=o.enableOnAndroid,r=o.contentContainerStyle,n=void 0;return'android'===s.Platform.OS&&t&&(n=[].concat(r).concat({paddingBottom:((r||{}).paddingBottom||0)+this.state.keyboardSpace})),l.default.createElement(e,babelHelpers.extends({ref:this._handleRef,keyboardDismissMode:"interactive",contentInset:{bottom:this.state.keyboardSpace},automaticallyAdjustContentInsets:!1,showsVerticalScrollIndicator:!0,scrollEventThrottle:1},this.props,{contentContainerStyle:n||r,keyboardSpace:this.state.keyboardSpace,getScrollResponder:this.getScrollResponder,scrollToPosition:this.scrollToPosition,scrollToEnd:this.scrollToEnd,scrollForExtraHeightOnAndroid:this.scrollForExtraHeightOnAndroid,scrollToFocusedInput:this.scrollToFocusedInput,resetKeyboardSpace:this._resetKeyboardSpace,handleOnScroll:this._handleOnScroll,onScroll:this._onScroll}))}}]),t})(l.default.Component),o.propTypes={viewIsInsideTabBar:i.default.bool,resetScrollToCoords:i.default.shape({x:i.default.number.isRequired,y:i.default.number.isRequired}),enableResetScrollToCoords:i.default.bool,enableAutomaticScroll:i.default.bool,extraHeight:i.default.number,extraScrollHeight:i.default.number,keyboardOpeningTime:i.default.number,onScroll:i.default.func,contentContainerStyle:i.default.any,enableOnAndroid:i.default.bool,innerRef:i.default.func},o.defaultProps={enableAutomaticScroll:!0,extraHeight:p,extraScrollHeight:0,enableResetScrollToCoords:!0,keyboardOpeningTime:u,viewIsInsideTabBar:!1},r=function(){var e=this;this.getScrollResponder=function(){return e._rnkasv_keyboardView&&e._rnkasv_keyboardView.getScrollResponder()},this.scrollToPosition=function(o,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.getScrollResponder();n&&n.scrollResponderScrollTo({x:o,y:t,animated:r})},this.scrollToEnd=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e.getScrollResponder();t&&t.scrollResponderScrollToEnd({animated:o})},this.scrollForExtraHeightOnAndroid=function(o){e.scrollToPosition(0,e.position.y+o,!0)},this.scrollToFocusedInput=function(o,t,r){void 0===t&&(t=e.props.extraHeight||0),void 0===r&&(r=e.props.keyboardOpeningTime||0),setTimeout(function(){if(e.mountedComponent){var r=e.getScrollResponder();r&&r.scrollResponderScrollNativeHandleToKeyboard(o,t,!0)}},r)},this.scrollIntoView=function(o){var t,r,n,l,a,i,s,d,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return regeneratorRuntime.async(function(p){for(;;)switch(p.prev=p.next){case 0:if(e._rnkasv_keyboardView&&o){p.next=2;break}return p.abrupt("return");case 2:return p.next=4,regeneratorRuntime.awrap(Promise.all([e._measureElement(e._rnkasv_keyboardView),e._measureElement(o)]));case 4:t=p.sent,r=babelHelpers.slicedToArray(t,2),n=r[0],l=r[1],a=u.getScrollPosition||e._defaultGetScrollPosition,i=a(n,l,e.position),s=i.x,d=i.y,c=i.animated,e.scrollToPosition(s,d,c);case 11:case"end":return p.stop()}},null,e)},this._defaultGetScrollPosition=function(e,o,t){return{x:0,y:Math.max(0,o.y-e.y+t.y),animated:!0}},this._measureElement=function(e){var o=(0,s.findNodeHandle)(e);return new Promise(function(e){s.UIManager.measureInWindow(o,function(o,t,r,n){e({x:o,y:t,width:r,height:n})})})},this._updateKeyboardSpace=function(o){if(e.props.enableAutomaticScroll){var t=o.endCoordinates.height+e.props.extraScrollHeight;e.props.viewIsInsideTabBar&&(t-=c),e.setState({keyboardSpace:t});var r=s.TextInput.State.currentlyFocusedField(),n=e.getScrollResponder();if(!r||!n)return;s.UIManager.viewIsDescendantOf(r,n.getInnerViewNode(),function(n){n&&s.UIManager.measureInWindow(r,function(n,l,a,i){var d=l+i,c=o.endCoordinates.screenY,u=e.props.extraScrollHeight+e.props.extraHeight;'ios'===s.Platform.OS?d>c-u&&e._scrollToFocusedInputWithNodeHandle(r):d>c?(t-=d-c,e.setState({keyboardSpace:t}),e.scrollForExtraHeightOnAndroid(u)):d>c-u&&e.scrollForExtraHeightOnAndroid(u-(c-d))})})}e.resetCoords||e.defaultResetScrollToCoords||(e.defaultResetScrollToCoords=e.position)},this._resetKeyboardSpace=function(){var o=e.props.viewIsInsideTabBar?c+e.props.extraScrollHeight||0:e.props.extraScrollHeight||0;e.setState({keyboardSpace:o}),!1!==e.props.enableResetScrollToCoords?e.resetCoords?e.scrollToPosition(e.resetCoords.x,e.resetCoords.y,!0):e.defaultResetScrollToCoords?(e.scrollToPosition(e.defaultResetScrollToCoords.x,e.defaultResetScrollToCoords.y,!0),e.defaultResetScrollToCoords=null):e.scrollToPosition(0,0,!0):e.defaultResetScrollToCoords=null},this._scrollToFocusedInputWithNodeHandle=function(o,t,r){void 0===t&&(t=e.props.extraHeight);var n=d.default.findNodeHandle(o);e.scrollToFocusedInput(n,t+e.props.extraScrollHeight,void 0!==r?r:e.props.keyboardOpeningTime||0)},this._handleOnScroll=function(o){e.position=o.nativeEvent.contentOffset},this._handleRef=function(o){e._rnkasv_keyboardView=o,e.props.innerRef&&e.props.innerRef(e._rnkasv_keyboardView)},this._onScroll=function(o){e._handleOnScroll(o),e.props.onScroll&&e.props.onScroll(o)}},t}},1259); -__d(function(e,l,r,t){Object.defineProperty(t,"__esModule",{value:!0});var u=l(17),a=l(1259),d=babelHelpers.interopRequireDefault(a);t.default=(0,d.default)(u.ScrollView)},1260); -__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1259),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.ListView)},1261); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var u=t(17),r=t(1259),d=babelHelpers.interopRequireDefault(r);a.default=(0,d.default)(u.FlatList)},1262); -__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1259),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.SectionList)},1263); -__d(function(t,e,o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Footer=void 0;var n=Object.assign||function(t){for(var e=1;ec.default.deviceWidth?"portrait":"landscape"},o}return(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(e,a.Component),i(e,[{key:"layoutChange",value:function(t){var e=Math.max(c.default.deviceWidth,c.default.deviceHeight);t.width>=e?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateHeight",value:function(t,e){var o=null;o=void 0!=e?e:c.default.Inset;var r="portrait"===t?o.portrait:o.landscape;return(void 0!=this.props.style.height?this.props.style.height:this.props.style[1]&&this.props.style[1].height?this.props.style[1].height:this.props.style[0].height)+r.bottomInset}},{key:"calculatePadder",value:function(t,e){var o=null;o=void 0!=e?e:c.default.Inset;var r="portrait"===t?o.portrait:o.landscape,n=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingTop||(n=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+r.bottomInset):n=void 0!==this.props.style.padding&&void 0!==this.props.style.paddingTop?(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+r.bottomInset:r.bottomInset,n}},{key:"render",value:function(){var t=this,e=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:c.default;return c.default.isIphoneX?s.default.createElement(l.View,n({ref:function(e){return t._root=e}},this.props,{onLayout:function(e){return t.layoutChange(e.nativeEvent.layout)},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,e.Inset),paddingBottom:this.calculatePadder(this.state.orientation,e.Inset)}],__source:{fileName:"src/basic/Footer.js",lineNumber:85}})):s.default.createElement(l.View,n({ref:function(e){return t._root=e}},this.props,{__source:{fileName:"src/basic/Footer.js",lineNumber:104}}))}}]),e})();f.contextTypes={theme:p.default.object},f.propTypes=n({},l.ViewPropTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array])});var y=(0,u.connectStyle)("NativeBase.Footer",{},d.default)(f);r.Footer=y},1264); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FooterTab=void 0;var o=Object.assign||function(e){for(var t=1;tthis.props.dataSource.length-1&&t===this.props.dataSource.length-1?[t,0]:t>this.props.dataSource.length-1?[0,1]:[t,n]}},{key:"selectNext",value:function(){var e=this,t=this.props.dataSource,n=t.indexOf(this.state.selectedItem);if(!this.state.looping){if(n===t.length-1)return this.setState({disabled:!0});if(n===t.length-2)return setTimeout(function(){e.setState({selectedItem:t[n+1]}),setTimeout(function(){e.setState({lastCard:!0})},350)},50)}var a=this.findNextIndexes(n);setTimeout(function(){e.setState({selectedItem:e.props.dataSource[a[0]]}),setTimeout(function(){e.setState({selectedItem2:e.props.dataSource[a[1]]})},350)},50)}},{key:"swipeRight",value:function(){var e=this;this.props.onSwiping&&this.props.onSwiping("right"),setTimeout(function(){u.Animated.timing(e.state.fadeAnim,{toValue:1}).start(),u.Animated.spring(e.state.enter,{toValue:1,friction:7}).start(),e.selectNext(),u.Animated.decay(e.state.pan,{velocity:{x:8,y:1},deceleration:.98}).start(e._resetState.bind(e))},300)}},{key:"swipeLeft",value:function(){var e=this;this.props.onSwiping&&this.props.onSwiping("left"),setTimeout(function(){u.Animated.timing(e.state.fadeAnim,{toValue:1}).start(),u.Animated.spring(e.state.enter,{toValue:1,friction:7}).start(),e.selectNext(),u.Animated.decay(e.state.pan,{velocity:{x:-8,y:1},deceleration:.98}).start(e._resetState.bind(e))},300)}},{key:"componentWillMount",value:function(){var e=this;this._panResponder=u.PanResponder.create({onMoveShouldSetResponderCapture:function(){return!0},onMoveShouldSetPanResponderCapture:function(e,t){return Math.abs(t.dx)>5},onPanResponderGrant:function(t,n){e.state.pan.setOffset({x:e.state.pan.x._value,y:e.state.pan.y._value}),e.state.pan.setValue({x:0,y:0})},onPanResponderMove:function(t,n){n.dx>20?e.props.onSwiping&&e.props.onSwiping("right",n.dx):n.dx<-20&&e.props.onSwiping&&e.props.onSwiping("left",n.dx);var a=Math.abs(.0013*n.dx);Math.abs(.0022*n.dx);a>.2&&(a=.2),u.Animated.timing(e.state.fadeAnim,{toValue:.8+a}).start(),u.Animated.spring(e.state.enter,{toValue:.8+a,friction:7}).start(),u.Animated.event([null,{dx:e.state.pan.x}])(t,n)},onPanResponderRelease:function(t,n){var a=n.vx,i=n.vy;e.props.onSwiping&&e.props.onSwiping(null);var r=void 0;a>=0?r=(0,d.default)(a,4.5,10):a<0&&(r=-1*(0,d.default)(-1*a,4.5,10)),Math.abs(e.state.pan.x._value)>120?(r>0?(e.props.onSwipeRight&&e.props.onSwipeRight(e.state.selectedItem),e.selectNext()):(e.props.onSwipeLeft&&e.props.onSwipeLeft(e.state.selectedItem),e.selectNext()),u.Animated.decay(e.state.pan,{velocity:{x:r,y:i},deceleration:.98}).start(e._resetState.bind(e))):u.Animated.spring(e.state.pan,{toValue:{x:0,y:0},friction:4}).start()}})}},{key:"_resetState",value:function(){this.state.pan.setValue({x:0,y:0}),this.state.enter.setValue(.8),this.state.fadeAnim.setValue(.8),this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top}),this.props.onSwiping&&this.props.onSwiping(null)}},{key:"getCardStyles",value:function(){var e=this.state,t=e.pan,n=(e.pan2,e.enter),a=[t.x,t.y];return[{transform:[{translateX:a[0]},{translateY:a[1]},{rotate:t.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]})}],opacity:t.x.interpolate({inputRange:[-320,0,320],outputRange:[.9,1,.9]})},{transform:[{scale:n}]}]}},{key:"render",value:function(){return this.state.disabled?l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:258}},l.default.createElement(u.View,{__source:{fileName:i,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())):this.state.lastCard?l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:265}},void 0===this.state.selectedItem?l.default.createElement(u.View,{__source:{fileName:i,lineNumber:267}}):l.default.createElement(u.View,{__source:{fileName:i,lineNumber:269}},l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:280}}),this.props.renderItem(this.state.selectedItem)))):l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:295}},void 0===this.state.selectedItem?l.default.createElement(u.View,{__source:{fileName:i,lineNumber:297}}):l.default.createElement(u.View,{__source:{fileName:i,lineNumber:299}},l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))))}}]),t})();h.propTypes=r({},u.ViewPropTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array]),dataSource:p.default.array});var y=(0,c.connectStyle)("NativeBase.DeckSwiper",{},f.default)(h);a.DeckSwiper=y},1270); -__d(function(n,t,o,r){o.exports=function(n,t,o){return to?o:n:nt?t:n}},1271); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Item=void 0;var i="src/basic/Item.js",r=Object.assign||function(e){for(var t=1;t=0&&e.page!==this.state.currentPage&&this.goToPage(e.page)},goToPage:function(e){var t=e*this.state.containerWidth;this.scrollView&&this.scrollView.scrollTo({x:t,y:0,animated:!this.props.scrollWithoutAnimation});var n=this.state.currentPage;this.updateSceneKeys({page:e,callback:this._onChangeTab.bind(this,n,e)})},renderTabBar:function(e){return!1===this.props.renderTabBar?null:this.props.renderTabBar?h.cloneElement(this.props.renderTabBar(e),e):h.createElement(_,o({},e,{__source:{fileName:a,lineNumber:116}}))},updateSceneKeys:function(e){var t=e.page,n=e.children,r=void 0===n?this.props.children:n,o=e.callback,a=void 0===o?function(){}:o,i=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:t,children:r});this.setState({currentPage:t,sceneKeys:i},a)},newSceneKeys:function(e){var t=this,n=e.previousKeys,r=void 0===n?[]:n,o=e.currentPage,a=void 0===o?0:o,i=e.children,s=void 0===i?this.props.children:i,l=[];return this._children(s).forEach(function(e,n){var o=t._makeSceneKey(e,n);(t._keyExists(r,o)||t._shouldRenderSceneKey(n,a))&&l.push(o)}),l},_shouldRenderSceneKey:function(e,t){var n=this.props.prerenderingSiblingsNumber;return et-n-1},_keyExists:function(e,t){return e.find(function(e){return t===e})},_makeSceneKey:function(e,t){return e.props.heading+"_"+t},renderScrollableContent:function(){var e=this,t=this._composeScenes();return h.createElement(y,o({horizontal:!0,pagingEnabled:!0,automaticallyAdjustContentInsets:!1,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function(t){e.scrollView=t},onScroll:function(t){var n=t.nativeEvent.contentOffset.x;e._updateScrollValue(n/e.state.containerWidth)},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,scrollEnabled:!this.props.locked,directionalLockEnabled:!0,alwaysBounceVertical:!1,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:a,lineNumber:170}}),t)},_composeScenes:function(){var e=this;return this._children().map(function(t,n){var r=e._makeSceneKey(t,n);return h.createElement(S,{key:t.key,shouldUpdated:e._shouldRenderSceneKey(n,e.state.currentPage),style:{width:e.state.containerWidth},__source:{fileName:a,lineNumber:205}},e._keyExists(e.state.sceneKeys,r)?t:h.createElement(f,{heading:t.props.heading,__source:{fileName:a,lineNumber:216}}))})},_onMomentumScrollBeginAndEnd:function(e){var t=e.nativeEvent.contentOffset.x,n=Math.round(t/this.state.containerWidth);this.state.currentPage!==n&&this._updateSelectedPage(n)},_updateSelectedPage:function(e){var t=e;"object"==typeof t&&(t=e.nativeEvent.position);var n=this.state.currentPage;this.updateSceneKeys({page:t,callback:this._onChangeTab.bind(this,n,t)})},_onChangeTab:function(e,t){this.props.onChangeTab({i:t,ref:this._children()[t],from:e})},_updateScrollValue:function(e){this.state.scrollValue.setValue(e),this.props.onScroll(e)},_handleLayout:function(e){var t=this,n=e.nativeEvent.layout.width;Math.round(n)!==Math.round(this.state.containerWidth)&&(this.setState({containerWidth:n}),this.requestAnimationFrame(function(){t.goToPage(t.state.currentPage)}))},_children:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children;return h.Children.map(e,function(e){return e})},render:function(){var e,t="overlayTop"===this.props.tabBarPosition||"overlayBottom"===this.props.tabBarPosition,n={goToPage:this.goToPage,tabs:this._children().map(function(e){return e.props.heading}),tabStyle:this._children().map(function(e){return e.props.tabStyle}),activeTabStyle:this._children().map(function(e){return e.props.activeTabStyle}),textStyle:this._children().map(function(e){return e.props.textStyle}),activeTextStyle:this._children().map(function(e){return e.props.activeTextStyle}),tabHeaderStyle:this._children().map(function(e){return l.default.get(e.props.heading.props,"style",void 0)}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};(this.props.tabBarBackgroundColor&&(n.backgroundColor=this.props.tabBarBackgroundColor),this.props.tabBarActiveTextColor&&(n.activeTextColor=this.props.tabBarActiveTextColor),this.props.tabBarInactiveTextColor&&(n.inactiveTextColor=this.props.tabBarInactiveTextColor),this.props.tabBarTextStyle&&(n.textStyle=this.props.tabBarTextStyle),this.props.tabBarUnderlineStyle&&(n.underlineStyle=this.props.tabBarUnderlineStyle),this.props.tabContainerStyle&&(n.tabContainerStyle=this.props.tabContainerStyle),t)&&(n.style=(p(e={position:"absolute",left:0,right:0},"overlayTop"===this.props.tabBarPosition?"top":"bottom",0),p(e,"backgroundColor","rgba(255, 255, 255, 0.7)"),e));return h.createElement(f,{style:[B.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:a,lineNumber:322}},("top"===this.props.tabBarPosition||"overlayTop"===this.props.tabBarPosition)&&this.renderTabBar(n),this.renderScrollableContent(),("bottom"===this.props.tabBarPosition||"overlayBottom"===this.props.tabBarPosition)&&this.renderTabBar(n))}});r.default=P;var B=m.create({container:{flex:1},scrollableContentAndroid:{flex:1}})},1277); -__d(function(e,r,n,t){var o=Object.assign||function(e){for(var r=1;r=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n})(e,["shouldUpdated"]);return a.createElement(s,o({},n,{__source:{fileName:"src/basic/Tabs/SceneComponent.js",lineNumber:11}}),a.createElement(i,{shouldUpdate:r,__source:{fileName:"src/basic/Tabs/SceneComponent.js",lineNumber:12}},n.children))}},1278); -__d(function(e,t,n,r){var o=(function(){function e(e,t){for(var n=0;nr||this.necessarilyMeasurementsCompleted(t,t===r)&&(this.updateTabPanel(t,a),this.updateTabUnderline(t,a,n))},necessarilyMeasurementsCompleted:function(e,t){return this._tabsMeasurements[e]&&(t||this._tabsMeasurements[e+1])&&this._tabContainerMeasurements&&this._containerMeasurements},updateTabPanel:function(e,t){var a=this._containerMeasurements.width,n=this._tabsMeasurements[e].width,r=this._tabsMeasurements[e+1],i=r&&r.width||0,s=this._tabsMeasurements[e].left+t*n;s=(s-=(a-(1-t)*n-t*i)/2)>=0?s:0,this._scrollView.scrollTo({x:s,y:0,animated:!1})},updateTabUnderline:function(e,t,a){var n=this._tabsMeasurements[e].left,r=this._tabsMeasurements[e].right;if(e-1?e[f?r[v]:v]:void 0}}},1317); -__d(function(n,r,t,u){var a=r(1319),l=r(1304),e=r(1320),f=Math.max;t.exports=function(n,r,t){var u=null==n?0:n.length;if(!u)return-1;var i=null==t?0:e(t);return i<0&&(i=f(u+i,0)),a(n,l(r,3),i)}},1318); -__d(function(n,r,t,e){t.exports=function(n,r,t,e){for(var f=n.length,o=t+(e?1:-1);e?o--:++o=0}):o.default.filter(n,function(e){return-1!==o.default.indexOf(r,e.id)&&e.idInSmartContract>=0}),f=o.default.sortBy(u,function(e){return e.nationName.toUpperCase()}),c=o.default.groupBy(f,function(e){return e.nationName.toUpperCase().charAt(0)}),p=o.default.map(c,function(e,t){return{title:t,data:e}});return p=[{title:'Bots',data:[{name:'Dr. FreudBot',isBot:!0,id:0}]}].concat(p),l.default.createElement(i.View,{style:s.default.nationsScreenContainer},l.default.createElement(d.default,null),l.default.createElement(q.default,null),l.default.createElement(B.default,{title:R.default.t('screens.chat.title')}),l.default.createElement(i.SectionList,{renderItem:function(e){var t=e.item;return!0===t.isBot?l.default.createElement(b.default,{text:t.name,participants:"",itemIcon:y.default.ChatUI.botIcon,onPress:function(e){return a(e,!0)},id:t.id}):l.default.createElement(b.default,{text:t.nationName,participants:"",itemIcon:0,onPress:function(e){return a(e,!1)},id:t.id})},keyExtractor:function(e){return e.id},renderSectionHeader:function(e){var t=e.section;return l.default.createElement(D.default,{title:t.title})},sections:p,style:s.default.sectionList}))}},1326); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(777),u=t(794),d=babelHelpers.interopRequireDefault(u),b=r.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default));a.default=b},1327); -__d(function(e,t,n,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),i=babelHelpers.interopRequireDefault(r),a=t(17),u=t(777),s=t(794),o=babelHelpers.interopRequireDefault(s),c=t(624),f=babelHelpers.interopRequireDefault(c),d=u.MediaQueryStyleSheet.create(babelHelpers.extends({},o.default)),p=function(e){var t=e.text,n=e.participants,l=e.id,r=e.onPress,u=e.itemIcon;return i.default.createElement(a.View,{style:d.sectionListItemContainer},i.default.createElement(a.TouchableOpacity,{testID:"Touchable",onPress:(function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(){return r(l)}),style:d.sectionListTouchable},i.default.createElement(a.Text,{style:d.listItemText,numberOfLines:1},t),i.default.createElement(a.Image,{source:u,style:d.sectionListSignal}),i.default.createElement(a.Text,{style:d.listItemTextState},n),i.default.createElement(a.Image,{source:f.default.disclosureRowIcon,style:d.sectionListDisclosure})))};p.defaultProps={text:'',participants:'',id:null,onPress:function(){return null},itemIcon:0},l.default=p},1328); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),u=babelHelpers.interopRequireDefault(n),r=t(297),s=t(17),c=t(1124),f=t(797),o=babelHelpers.interopRequireDefault(f),i=t(663),d=babelHelpers.interopRequireDefault(i),b=t(534),p=t(1330),y=babelHelpers.interopRequireDefault(p),h=t(776),m=babelHelpers.interopRequireDefault(h),E=t(793),C=babelHelpers.interopRequireDefault(E),H=t(802),q=babelHelpers.interopRequireDefault(H),B=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var l=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.state={key:''},l}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this;return u.default.createElement(s.View,{style:y.default.screenContainer},u.default.createElement(m.default,null),u.default.createElement(C.default,null),u.default.createElement(q.default,{title:d.default.t('screens.chat.newConversation')}),u.default.createElement(s.View,{style:y.default.bodyContainer},u.default.createElement(c.Item,{inlineLabel:!0},u.default.createElement(c.Label,{style:y.default.textInput},"To: "),u.default.createElement(c.Input,{onChangeText:function(t){return e.setState({key:t})},value:this.state.key,style:y.default.textInput,placeholder:d.default.t('screens.chat.pubKeyPlaceholder')})),u.default.createElement(s.View,{style:y.default.buttonContainer},u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.scanQrCode'))),u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.pasteClipboard'))),u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.qrCodeLibrary'))))))}}]),t})(o.default);a.default=(0,r.connect)(null,function(e){return{findUserByPublicKey:function(t){e((0,b.findUserByPublicKey)(t))}}})(B)},1329); -__d(function(e,t,n,i){Object.defineProperty(i,"__esModule",{value:!0});var l=t(777),r=t(794),a=babelHelpers.interopRequireDefault(r),o=t(515),u=babelHelpers.interopRequireDefault(o),c=l.MediaQueryStyleSheet.create(babelHelpers.extends({},a.default,{submitButton:{width:80,marginTop:40,alignSelf:'center'},textInput:{color:u.default.white},buttonContainer:{marginTop:50,width:'100%',flexDirection:'column',justifyContent:'center',alignItems:'center'},chatActionButton:{color:u.default.white,width:260,height:50,marginTop:10,alignContent:'center',justifyContent:'center',alignSelf:'center'}}));i.default=c},1330); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireDefault(a),s=t(17),o=t(297),u=t(776),i=babelHelpers.interopRequireDefault(u),c=t(1332),p=babelHelpers.interopRequireDefault(c),f=t(793),b=babelHelpers.interopRequireDefault(f),d=t(663),E=babelHelpers.interopRequireDefault(d),R=t(802),_=babelHelpers.interopRequireDefault(R),g=t(1333),y=babelHelpers.interopRequireDefault(g),v=t(797),C=babelHelpers.interopRequireDefault(v),m=t(623),H=t(798),h=babelHelpers.interopRequireDefault(H),D=t(508),P=t(365),S=(function(e){function t(){var e,r,n,a;babelHelpers.classCallCheck(this,t);for(var l=arguments.length,s=Array(l),o=0;o0,title:c.default.t('common.ok'),onPress:function(){return e.props.onSubmit(e.state.password)},style:u.default.submitButton})))}}]),t})(p.default);v.defaultProps={shouldShowCancel:!1},n.default=v},1345); -__d(function(e,t,i,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(777),r=t(794),l=babelHelpers.interopRequireDefault(r),o=t(515),u=babelHelpers.interopRequireDefault(o),d=n.MediaQueryStyleSheet.create(babelHelpers.extends({},l.default,{submitButton:{width:80,marginTop:40,alignSelf:'center'},textInput:{color:u.default.BitnationGrayColor,fontSize:16,paddingTop:2,paddingBottom:2,height:50,marginTop:16,marginLeft:30,marginRight:30,textAlign:'center'}}));a.default=d},1346); -__d(function(e,t,n,s){Object.defineProperty(s,"__esModule",{value:!0});var a=t(51),r=babelHelpers.interopRequireDefault(a),o=t(297),i=t(17),l=t(1343),c=babelHelpers.interopRequireDefault(l);t(535);var u=t(797),d=babelHelpers.interopRequireDefault(u),f=t(663),p=babelHelpers.interopRequireDefault(f),y=t(508),v=t(761),b=t(1345),h=babelHelpers.interopRequireDefault(b),C=t(1344),P=babelHelpers.interopRequireDefault(C),R=t(776),S=babelHelpers.interopRequireDefault(R),m=t(793),K=babelHelpers.interopRequireDefault(m),H=t(802),w=babelHelpers.interopRequireDefault(H),g=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onSaveFinished=function(e){if(!0===e)return n.setState({enteredPasscode:void 0}),void n.props.onSuccess();(0,v.errorAlert)(p.default.t('error.passcodeCreationFailed'))},n.showVerificationFailedAlert=function(){(0,v.alert)('passcodeVerificationFailed',[{name:'tryAgain',onPress:function(){n.setState(function(e){return{verifyResetKey:e.verifyResetKey+1}})}},{name:'startOver',onPress:function(){n.setState(function(e){return{createResetKey:e.createResetKey+1,verifyResetKey:e.verifyResetKey+1,enteredPasscode:void 0}})}}])},n.onSubmitPasscode=function(e){n.state.enteredPasscode===e?'pinCode'===n.props.passcodeType.type?n.props.savePinCode(e,n.props.accountId,n.onSaveFinished):n.props.savePassword(e,n.props.accountId,n.onSaveFinished):n.showVerificationFailedAlert()},n.onCreatePasscode=function(e){n.setState({enteredPasscode:e})},n.onCancelVerificationPasscode=function(){n.setState(function(e){return{verifyResetKey:e.verifyResetKey+1,enteredPasscode:void 0}})},n.state={enteredPasscode:void 0,verifyResetKey:0,createResetKey:0},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.title;return r.default.createElement(i.View,{style:P.default.screenContainer},r.default.createElement(S.default,null),r.default.createElement(K.default,null),r.default.createElement(i.View,{style:P.default.bodyAccountContainer},r.default.createElement(w.default,{title:e}),this.renderPasscodeScreen()))}},{key:"renderPasscodeScreen",value:function(){var e=this.props,t=e.navigator,n=e.passcodeType,s=e.onCancel;return'pinCode'===n.type?null==this.state.enteredPasscode?r.default.createElement(c.default,{key:"create "+this.state.createResetKey,navigator:t,pinCodeLength:n.length,instruction:p.default.t('screens.pinCode.createInstruction'),shouldShowCancel:!0,onCancel:s,onSubmit:this.onCreatePasscode}):r.default.createElement(c.default,{key:"verify "+this.state.verifyResetKey,resetKey:this.state.verifyResetKey,navigator:t,pinCodeLength:n.length,instruction:p.default.t('screens.pinCode.verifyInstruction'),shouldShowCancel:!0,onCancel:this.onCancelVerificationPasscode,onSubmit:this.onSubmitPasscode}):null==this.state.enteredPasscode?r.default.createElement(h.default,{key:"create "+this.state.createResetKey,navigator:t,instruction:p.default.t('screens.password.createInstruction'),shouldShowCancel:!0,onCancel:s,onSubmit:this.onCreatePasscode}):r.default.createElement(h.default,{key:"verify "+this.state.verifyResetKey,navigator:t,instruction:p.default.t('screens.password.verifyInstruction'),shouldShowCancel:!0,onCancel:this.onCancelVerificationPasscode,onSubmit:this.onSubmitPasscode})}}]),t})(d.default);g.defaultProps={onCancel:function(){},onSuccess:function(){},title:''};s.default=(0,o.connect)(function(e){return babelHelpers.extends({},e.settings)},function(e){return{savePinCode:function(t,n,s){e((0,y.savePinCode)(t,n,s))},savePassword:function(t,n,s){e((0,y.savePassword)(t,n,s))}}})(g)},1347); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireDefault(a),s=t(297),i=t(17),o=t(366),u=babelHelpers.interopRequireDefault(o),c=t(1124),f=t(1349),p=babelHelpers.interopRequireDefault(f),d=t(534),b=t(776),h=babelHelpers.interopRequireDefault(b),m=t(1355),y=babelHelpers.interopRequireDefault(m),S=t(623),g=t(1328),R=babelHelpers.interopRequireDefault(g),v=t(1117),E=babelHelpers.interopRequireDefault(v),w=t(793),C=babelHelpers.interopRequireDefault(w),P=t(805),H=babelHelpers.interopRequireDefault(P),K=t(797),M=babelHelpers.interopRequireDefault(K),T=t(663),x=babelHelpers.interopRequireDefault(T),q=t(515),D=babelHelpers.interopRequireDefault(q),_=t(802),B=babelHelpers.interopRequireDefault(_),k=t(1356),A=babelHelpers.interopRequireDefault(k),I=t(1357),N=babelHelpers.interopRequireDefault(I),O=t(1358),F=babelHelpers.interopRequireDefault(O),U=t(1359),V=babelHelpers.interopRequireDefault(U),j=t(585),L='newChat',z='invalidKey',G=(function(e){function t(e){var r=this;babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChatAction=function(e){var t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next=0===r.t0?3:18;break;case 3:return r.prev=3,n.setState({loading:!0}),r.next=7,regeneratorRuntime.awrap(n.getPublicKeyFromClipboard());case 7:t=r.sent,n.setState({publicKey:t.identityKey,profile:t,showModal:L}),r.next=14;break;case 11:r.prev=11,r.t1=r.catch(3),n.setState({publicKey:'',profile:null,showModal:z});case 14:return r.prev=14,n.setState({loading:!1}),r.finish(14);case 17:case 18:return r.abrupt("break",19);case 19:case"end":return r.stop()}},null,r,[[3,11,14,17]])},n.getPublicKeyFromClipboard=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(i.Clipboard.getString());case 2:return e=t.sent,t.abrupt("return",n.getUserProfile(e));case 4:case"end":return t.stop()}},null,r)},n.getUserProfile=function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){console.log('[TEST] pubKey: ',e),n.props.getProfile(e,function(e,n){null==e?(console.log('[TEST] profile: ',e),null!=n&&console.log("[TEST] Profile fetch error: "+n.message),r(n)):t(e)})}));case 1:case"end":return t.stop()}},null,r)},n.startChat=function(){var e,t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!=(e=n.state.profile)){r.next=4;break}return console.log('[TEST] No partner profile selected'),r.abrupt("return");case 4:if(null==(t=u.default.find(n.props.chatSessions,function(t){return t.publicKey===e.identityKey}))){r.next=9;break}return n.onChatSelect(t),n.setState({showModal:''}),r.abrupt("return");case 9:n.props.createNewSession(e,function(t){'success'===t.status?(n.setState({showModal:''}),n.props.navigator.push(babelHelpers.extends({},(0,S.screen)('PRIVATE_CHAT_SCREEN'),{passProps:{userPublicKey:t.userPublicKey,recipientPublicKey:e.identityKey}}))):console.log('[TEST] create session error: ',t)});case 10:case"end":return r.stop()}},null,r)},n.onChatSelect=function(e){n.props.onItemSelect(e.publicKey,function(t){'success'===t.status&&n.props.navigator.push(babelHelpers.extends({},(0,S.screen)('PRIVATE_CHAT_SCREEN'),{passProps:{userPublicKey:t.userPublicKey,recipientPublicKey:e.publicKey}}))})},n.dismissModal=function(){n.setState({publicKey:'',profile:null,showModal:''})},n.sharePublicKey=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap((0,j.panthalassaIdentityPublicKey)());case 2:e=t.sent,i.Share.share({message:e||''}).then(function(){n.dismissModal()});case 4:case"end":return t.stop()}},null,r)},n.showActionSheet=function(){n.actionSheet.show()},n.state={publicKey:'',profile:null,showModal:'',loading:!1},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavBarButtonPress",value:function(e){"MORE_BUTTON"===e&&this.setState({showModal:"moreMenu"})}},{key:"render",value:function(){var e=this,t=u.default.sortBy(this.props.chatSessions,function(e){return e.username}),r=u.default.groupBy(t,function(e){return e.username.charAt(0)}),n=u.default.map(r,function(e,t){return{title:t,data:e}}),a=[x.default.t('screens.chat.keyFromClipboard'),x.default.t('screens.chat.cancel')];return l.default.createElement(i.View,{style:y.default.nationsScreenContainer},l.default.createElement(h.default,null),l.default.createElement(C.default,null),l.default.createElement(B.default,{title:x.default.t('screens.chat.title')}),l.default.createElement(i.SectionList,{renderItem:function(t){var r=t.item;return l.default.createElement(R.default,{text:r.username,participants:"",itemIcon:0,onPress:e.onChatSelect,id:r})},keyExtractor:function(e){return e.publicKey},renderSectionHeader:function(e){var t=e.section;return l.default.createElement(E.default,{title:t.title})},sections:n,style:y.default.sectionList}),l.default.createElement(c.Fab,{style:y.default.fabStyle,position:"bottomRight",onPress:this.showActionSheet},l.default.createElement(c.Text,null,"+")),l.default.createElement(p.default,{ref:function(t){e.actionSheet=t},options:a,cancelButtonIndex:a.length-1,onPress:this.onChatAction}),l.default.createElement(V.default,{visible:"moreMenu"===this.state.showModal,onCancel:this.dismissModal,onShareKey:this.sharePublicKey}),l.default.createElement(A.default,{profile:this.state.profile,visible:this.state.showModal===L,onStartChat:this.startChat,onCancel:this.dismissModal}),l.default.createElement(N.default,{done:this.dismissModal,visible:this.state.showModal===z}),l.default.createElement(F.default,{done:this.dismissModal,visible:"invite"===this.state.showModal}),!0===this.state.loading&&l.default.createElement(H.default,null))}}]),t})(M.default);G.navigatorButtons={leftButtons:[],rightButtons:[{title:'More',id:"MORE_BUTTON",buttonColor:D.default.navigationButtonColor}]};n.default=(0,s.connect)(function(e){return{chatSessions:e.chat.chats}},function(e){return{getProfile:function(t,r){return e((0,d.getProfile)(t,r))},createNewSession:function(t,r){return e((0,d.newChatSession)(t,r))},onItemSelect:function(t,r){return e((0,d.openChat)(t,r))}}})(G)},1348); -__d(function(e,t,l,o){Object.defineProperty(o,"__esModule",{value:!0}),o.ActionSheetCustom=void 0;var u=t(17),a=t(1350),i=babelHelpers.interopRequireDefault(a),r=t(1352),d=babelHelpers.interopRequireDefault(r),f=(o.ActionSheetCustom=d.default,void 0);f='ios'===u.Platform.OS?i.default:d.default,o.default=f},1349); -__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=t(51),l=babelHelpers.interopRequireDefault(o),s=t(17),u=t(1351),a=babelHelpers.interopRequireDefault(u),i=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"show",value:function(){var e=this.props,t={};a.default.forEach(function(r){var n=e[r];void 0!==n&&(t[r]=n)});var r=t.onPress;delete t.onPress,s.ActionSheetIOS.showActionSheetWithOptions(t,r)}},{key:"render",value:function(){return null}}]),t})(l.default.Component);n.default=i},1350); -__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=['options','cancelButtonIndex','destructiveButtonIndex','title','message','tintColor','onPress']},1351); -__d(function(e,t,n,l){Object.defineProperty(l,"__esModule",{value:!0});var s=t(51),a=babelHelpers.interopRequireDefault(s),i=t(17),r=t(1353),o=babelHelpers.interopRequireWildcard(r),u=t(1354),c=babelHelpers.interopRequireDefault(u),h=.7*i.Dimensions.get('window').height,d=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.show=function(){n.setState({visible:!0},function(){n._showSheet()})},n.hide=function(e){n._hideSheet(function(){n.setState({visible:!1},function(){n.props.onPress(e)})})},n._cancel=function(){var e=n.props.cancelButtonIndex;o.isset(e)&&n.hide(e)},n._showSheet=function(){i.Animated.timing(n.state.sheetAnim,{toValue:0,duration:250,easing:i.Easing.out(i.Easing.ease)}).start()},n.scrollEnabled=!1,n.translateY=n._calculateHeight(e),n.state={visible:!1,sheetAnim:new i.Animated.Value(n.translateY)},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillReceiveProps",value:function(e){this.translateY=this._calculateHeight(e)}},{key:"_hideSheet",value:function(e){i.Animated.timing(this.state.sheetAnim,{toValue:this.translateY,duration:200}).start(e)}},{key:"_calculateHeight",value:function(e){var t=this.styles,n=function(e){var n=t[e][t[e].length-1],l=0;return['height','marginTop','marginBottom'].forEach(function(e){void 0!==n[e]&&(l+=n[e])}),l},l=0;return e.title&&(l+=n('titleBox')),e.message&&(l+=n('messageBox')),o.isset(e.cancelButtonIndex)?(l+=n('cancelButtonBox'),l+=(e.options.length-1)*n('buttonBox')):l+=e.options.length*n('buttonBox'),l>h?(this.scrollEnabled=!0,l=h):this.scrollEnabled=!1,l}},{key:"_renderTitle",value:function(){var e=this.props.title,t=this.styles;return e?a.default.createElement(i.View,{style:t.titleBox},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:t.titleText},e)):null}},{key:"_renderMessage",value:function(){var e=this.props.message,t=this.styles;return e?a.default.createElement(i.View,{style:t.messageBox},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:t.messageText},e)):null}},{key:"_renderCancelButton",value:function(){var e=this.props,t=e.options,n=e.cancelButtonIndex;return o.isset(n)?this._createButton(t[n],n):null}},{key:"_createButton",value:function(e,t){var n=this,l=this.styles,s=this.props,r=s.buttonUnderlayColor,o=s.cancelButtonIndex,u=s.destructiveButtonIndex,c=s.tintColor,h=u===t?"#FF3B30":c,d=o===t?l.cancelButtonBox:l.buttonBox;return a.default.createElement(i.TouchableHighlight,{key:t,activeOpacity:1,underlayColor:r,style:d,onPress:function(){return n.hide(t)}},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:[l.buttonText,{color:h}]},e))}},{key:"_renderOptions",value:function(){var e=this,t=this.props.cancelButtonIndex;return this.props.options.map(function(n,l){return t===l?null:e._createButton(n,l)})}},{key:"render",value:function(){var e=this.styles,t=this.state,n=t.visible,l=t.sheetAnim;return a.default.createElement(i.Modal,{visible:n,animationType:"none",transparent:!0,onRequestClose:this._cancel},a.default.createElement(i.View,{style:[e.wrapper]},a.default.createElement(i.Text,{style:[e.overlay],onPress:this._cancel}),a.default.createElement(i.Animated.View,{style:[e.body,{height:this.translateY,transform:[{translateY:l}]}]},this._renderTitle(),this._renderMessage(),a.default.createElement(i.ScrollView,{scrollEnabled:this.scrollEnabled},this._renderOptions()),this._renderCancelButton())))}},{key:"styles",get:function(){var e=this.props.styles,t={};return Object.keys(c.default).forEach(function(n){var l=[c.default[n]];e[n]&&l.push(e[n]),t[n]=l}),t}}]),t})(a.default.Component);d.defaultProps={tintColor:'#007AFF',buttonUnderlayColor:'#F4F4F4',onPress:function(){},styles:{}},l.default=d},1352); -__d(function(e,t,n,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isset=function(e){return void 0!==e},c.merge=function e(t,n){Object.keys(n).forEach(function(c){'Object'===Object.prototype.toString.call(n).slice(8,-1)?t[c]=e(t[c]||{},n[c]):t[c]=n[c]});return t}},1353); -__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hairlineWidth=void 0;var i=t(17),r=n.hairlineWidth=i.StyleSheet.hairlineWidth;n.default={overlay:{position:'absolute',top:0,right:0,bottom:0,left:0,opacity:.4,backgroundColor:'#000'},wrapper:{flex:1,flexDirection:'row'},body:{flex:1,alignSelf:'flex-end',backgroundColor:'#e5e5e5'},titleBox:{height:40,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},titleText:{color:'#757575',fontSize:14},messageBox:{height:30,paddingLeft:10,paddingRight:10,paddingBottom:10,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},messageText:{color:'#9a9a9a',fontSize:12},buttonBox:{height:50,marginTop:r,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},buttonText:{fontSize:18},cancelButtonBox:{height:50,marginTop:6,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'}}},1354); -__d(function(e,t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(777),i=t(17),l=t(794),r=babelHelpers.interopRequireDefault(l),d=t(515),f=babelHelpers.interopRequireDefault(d),u=n.MediaQueryStyleSheet.create(babelHelpers.extends({},r.default,{fabStyle:{backgroundColor:'#FF8B00'},modalContainer:{flex:1,alignItems:'center',justifyContent:'center',backgroundColor:'rgba(51, 51, 51, 0.4)'},modalContent:{width:327,backgroundColor:'white',padding:20,display:'flex',flexDirection:'column',justifyContent:'space-between'},newChatModal:{height:471},invalidKeyModal:{height:393},inviteSuccessModal:{height:248},modalTitle:{fontSize:19,fontWeight:'bold'},modalBody:{marginTop:17,fontSize:16,color:'rgba(0, 0, 0, 0.54)'},userName:{fontSize:28,color:f.default.BitnationDarkGrayColor,marginTop:13},profileArea:{},buttonArea:{flexDirection:'row',justifyContent:'flex-end'},modalMoreContainer:{flex:1,backgroundColor:'transparent',paddingLeft:100,paddingRight:10,paddingTop:r.default.statusBar.height},modalMoreContent:{backgroundColor:'white',shadowColor:f.default.BitnationDarkGrayColor,shadowOffset:{width:2,height:4},shadowOpacity:.8,elevation:2},modalMenuItem:{paddingVertical:10,alignItems:'center',flexDirection:'row',justifyContent:'space-between'},modalMenuItemBorderBottom:{borderBottomColor:f.default.BitnationBlackAlphaColor,borderBottomWidth:i.StyleSheet.hairlineWidth},modalMenuText:{paddingLeft:15,fontSize:16,color:f.default.BitnationBlackAlphaColor},iconForward:{fontSize:17,color:f.default.BitnationBlackAlphaColor,paddingTop:5,paddingLeft:4,paddingRight:15}}));a.default=u},1355); -__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),d=t(1124),f=t(798),s=babelHelpers.interopRequireDefault(f),i=t(1355),o=babelHelpers.interopRequireDefault(i),c=t(663),m=babelHelpers.interopRequireDefault(c),p=t(624),b=babelHelpers.interopRequireDefault(p),y=t(1121);l.default=function(e){var t=e.profile,a=e.onStartChat,l=e.onCancel,r=e.visible;return n.default.createElement(u.Modal,{animationType:"fade",transparent:!0,visible:r,onRequestClose:l},n.default.createElement(u.View,{style:o.default.modalContainer},n.default.createElement(u.View,{style:[o.default.modalContent,o.default.newChatModal]},n.default.createElement(u.View,{style:o.default.profileArea},n.default.createElement(d.Text,{style:o.default.modalTitle},m.default.t('screens.chat.newChat')),n.default.createElement(u.Image,{source:(0,y.imageSource)(t?t.image:null)||b.default.avatarIcon,style:o.default.avatarLarge}),n.default.createElement(d.Text,{style:o.default.userName},t?t.name:'')),n.default.createElement(u.View,{style:o.default.buttonArea},n.default.createElement(s.default,{enabled:!0,styleTitle:o.default.newAccountText,title:m.default.t('screens.chat.cancel').toUpperCase(),onPress:l}),n.default.createElement(s.default,{enabled:!0,styleTitle:o.default.newAccountText,title:m.default.t('screens.chat.startChat').toUpperCase(),onPress:a})))))}},1356); -__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),i=babelHelpers.interopRequireDefault(n),r=t(17),d=t(1124),o=t(798),u=babelHelpers.interopRequireDefault(o),f=t(1355),s=babelHelpers.interopRequireDefault(f),y=t(663),c=babelHelpers.interopRequireDefault(y);l.default=function(e){var t=e.done,a=e.visible;return i.default.createElement(r.Modal,{animationType:"fade",transparent:!0,visible:a,onRequestClose:t},i.default.createElement(r.View,{style:s.default.modalContainer},i.default.createElement(r.View,{style:[s.default.modalContent,s.default.invalidKeyModal]},i.default.createElement(r.View,{style:s.default.profileArea},i.default.createElement(d.Text,{style:s.default.modalTitle},c.default.t('screens.chat.invalidKey')),i.default.createElement(d.Text,{style:s.default.modalBody},"Your clipboard does not have a valid public key on it.",'\n','\n',"Ask the person you want to chat with to share their Identity Key with you. They can find their Identity Key in the app identity setting, or in the menu on the chat screen.",'\n','\n',"Copy the key they send you and return here.")),i.default.createElement(r.View,{style:s.default.buttonArea},i.default.createElement(u.default,{enabled:!0,styleTitle:s.default.newAccountText,title:c.default.t('common.ok').toUpperCase(),onPress:t})))))}},1357); -__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),u=babelHelpers.interopRequireDefault(n),d=t(17),r=t(1124),i=t(798),o=babelHelpers.interopRequireDefault(i),f=t(1355),s=babelHelpers.interopRequireDefault(f),c=t(663),p=babelHelpers.interopRequireDefault(c);a.default=function(e){var t=e.done,l=e.visible;return u.default.createElement(d.Modal,{animationType:"fade",transparent:!0,visible:l,onRequestClose:t},u.default.createElement(d.View,{style:s.default.modalContainer},u.default.createElement(d.View,{style:[s.default.modalContent,s.default.inviteSuccessModal]},u.default.createElement(d.View,{style:s.default.profileArea},u.default.createElement(r.Text,{style:s.default.modalTitle},p.default.t('screens.chat.inviteSent')),u.default.createElement(r.Text,{style:s.default.modalBody},"You have invited Sandy Apples to chat.")),u.default.createElement(d.View,{style:s.default.buttonArea},u.default.createElement(o.default,{enabled:!0,styleTitle:s.default.newAccountText,title:p.default.t('common.ok').toUpperCase(),onPress:t})))))}},1358); -__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),o=t(1211),i=babelHelpers.interopRequireDefault(o),d=t(1124),f=t(1355),s=babelHelpers.interopRequireDefault(f),c=t(663),p=babelHelpers.interopRequireDefault(c);l.default=function(e){var t=e.onCancel,a=e.onShareKey,l=e.visible;return n.default.createElement(u.Modal,{animationType:"fade",transparent:!0,visible:l,onRequestClose:t},n.default.createElement(u.TouchableOpacity,{style:s.default.modalMoreContainer,activeOpacity:1,onPress:t},n.default.createElement(u.View,{style:s.default.modalMoreContent},n.default.createElement(u.TouchableOpacity,{style:s.default.modalMenuItem,activeOpacity:.8,onPress:a},n.default.createElement(d.Text,{style:s.default.modalMenuText},p.default.t('screens.chat.menu.shareIdentityKey')),n.default.createElement(i.default,{name:"ios-arrow-forward",style:s.default.iconForward})))))}},1359); -__d(function(e,t,n,s){Object.defineProperty(s,"__esModule",{value:!0});var r=t(51),l=babelHelpers.interopRequireDefault(r),a=t(17),o=t(297),p=t(366),u=babelHelpers.interopRequireDefault(p),i=t(1068),c=t(1349),d=babelHelpers.interopRequireDefault(c),f=t(1361),b=babelHelpers.interopRequireDefault(f),h=t(534),m=t(776),A=babelHelpers.interopRequireDefault(m),g=t(793),y=babelHelpers.interopRequireDefault(g),S=t(805),v=babelHelpers.interopRequireDefault(S),D=t(365),x=t(584),C=t(761),M=t(537),H=t(538),w=t(663),E=babelHelpers.interopRequireDefault(w),P=t(1362),T=babelHelpers.interopRequireDefault(P),K=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onSelectDAppToOpen=function(e){e0&&void 0!==arguments[0]?arguments[0]:[])[0].text;null!=(0,x.getSelectedSession)(this.props.sessions,this.props.recipientPublicKey)?this.props.sendMessage(this.props.recipientPublicKey,e):this.showSessionClosedAlert()}},{key:"buildContext",value:function(){return{partner:{name:this.props.partner.name,identityKey:this.props.partner.identityKey,ethereumAddress:this.props.partner.ethereumAddress},account:{name:this.props.user.name,identityKey:this.props.userPublicKey,ethereumAddress:this.props.wallets[0].ethAddress}}}},{key:"render",value:function(){var e=this,t=[].concat(babelHelpers.toConsumableArray(this.props.availableDApps.map(function(e){return e.name})),[E.default.t('screens.chat.cancel')]),n=(0,x.getSelectedSession)(this.props.sessions,this.props.recipientPublicKey);if(null==n)return this.showSessionClosedAlert(),l.default.createElement(a.View,null);var s=[];n.messages&&n.messages.length>0&&(s=u.default.sortBy(n.messages,function(e){return e.createdAt}).reverse()),s=s.map(function(t){if(null==t.dAppMessage)return t;var n=t.dAppMessage,s=(0,M.getDApp)(e.props.dAppsState,n.dAppPublicKey);return null==s?babelHelpers.extends({},t,{user:{_id:n.dAppPublicKey,name:'??'}}):babelHelpers.extends({},t,{user:{_id:s.publicKey,name:s.name}})});var r={_id:this.props.userPublicKey,name:this.props.user?this.props.user.name:'anonymous'};return l.default.createElement(a.View,{style:b.default.container},l.default.createElement(A.default,null),l.default.createElement(y.default,{navBarHidden:!1}),l.default.createElement(i.GiftedChat,{messages:s,onSend:function(t){return e.onSend(t)},user:r,bottomOffset:'ios'===a.Platform.OS?48.5:0,renderComposer:function(e){return l.default.createElement(i.Composer,babelHelpers.extends({},e,{textInputStyle:b.default.composer}))},renderInputToolbar:function(e){return l.default.createElement(i.InputToolbar,babelHelpers.extends({},e,{containerStyle:b.default.inputToolbar}))},renderCustomView:function(e){var t=e.currentMessage.dAppMessage;return null==t?null:l.default.createElement(T.default,{message:t})},renderMessageText:function(e){return null==e.currentMessage.dAppMessage?l.default.createElement(i.MessageText,e):null},renderBubble:function(e){return l.default.createElement(i.Bubble,babelHelpers.extends({},e,{customTextStyle:b.default.customTextStyle,wrapperStyle:{left:b.default.leftBubbleWrapper,right:b.default.rightBubbleWrapper},textStyle:{left:b.default.leftTextStyle,right:b.default.rightTextStyle}}))},onLongPress:function(t,n){e.setState({selectedMessage:n})},onPressActionButton:function(){return e.dAppsActionSheet&&e.dAppsActionSheet.show()},renderActions:function(e){return l.default.createElement(i.Actions,babelHelpers.extends({},e,{containerStyle:b.default.actionContainerStyle}))}}),this.props.isFetching&&l.default.createElement(v.default,null),l.default.createElement(d.default,{ref:function(t){e.dAppsActionSheet=t},options:t,cancelButtonIndex:t.length-1,onPress:this.onSelectDAppToOpen}),l.default.createElement(d.default,{ref:function(t){e.messageActionSheet=t},options:['Copy Text','Cancel'],cancelButtonIndex:1,onPress:this.onMessageAction}))}}]),t})(r.Component);s.default=(0,o.connect)(function(e){return{user:(0,D.getCurrentAccount)(e.accounts),isFetching:e.chat.isFetching,sessions:e.chat.chats,partner:e.chat.chatProfile,wallets:e.wallet.wallets,availableDApps:e.dApps.availableDApps,dAppsState:e.dApps}},function(e){return{showSpinner:function(){return e((0,h.showSpinner)())},hideSpinner:function(){return e((0,h.hideSpinner)())},sendMessage:function(t,n){return e((0,h.sendMessage)(t,n))},openDApp:function(t){return e((0,H.openDApp)(t))},setDAppContext:function(t){return e((0,H.setDAppContext)(t))}}})(K)},1360); -__d(function(o,t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var l=t(777),a=t(515),i=babelHelpers.interopRequireDefault(a),n=l.MediaQueryStyleSheet.create({container:{flex:1},composer:{backgroundColor:i.default.shadeOfBitnationLightColor(.2),borderWidth:1,borderColor:i.default.borderColor,color:i.default.BitnationDarkGrayColor,paddingLeft:4,marginRight:5},inputToolbar:{backgroundColor:'transparent',borderTopWidth:0,paddingRight:5},customTextStyle:{fontFamily:'Roboto',fontWeight:'normal',color:i.default.BitnationDarkGrayColor},leftBubbleWrapper:{flex:1,backgroundColor:i.default.white},rightBubbleWrapper:{flex:1,backgroundColor:i.default.BitnationHighlightYellowColor},leftTextStyle:{color:i.default.BitnationDarkGrayColor},rightTextStyle:{color:i.default.BitnationDarkGrayColor},actionContainerStyle:{width:26,height:26}});r.default=n},1361); -__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(51),r=babelHelpers.interopRequireDefault(l),s=t(17),i=t(777),p=t(297),u=t(1363),o=babelHelpers.interopRequireDefault(u),d=t(794),c=babelHelpers.interopRequireDefault(d),f=t(538),g=t(663),b=babelHelpers.interopRequireDefault(g),y=t(537),h=i.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default,{dAppMessageRootView:{flex:1,alignItems:'center',justifyContent:'center'},dAppMessageContainer:{paddingTop:6,flexGrow:1,alignItems:'stretch',justifyContent:'center',flex:0},loadingContainer:{flex:1,height:50,alignItems:'center',justifyContent:'center'},fallbackUIContainer:{paddingLeft:6,paddingRight:6}})),A=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isRendering:!0,layout:null},n.props.renderDAppMessage(e.message,function(e){n.setState(function(){return{isRendering:!1,layout:e}})}),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidCatch",value:function(){this.setState({isRendering:!1,layout:null})}},{key:"renderFallbackUI",value:function(){var e=(0,y.getDApp)(this.props.dAppsState,this.props.message.dAppPublicKey),t=b.default.t('dApps.unknownDAppMessage');return null!=e&&(t=b.default.t('dApps.failedDAppMessageRender',{dAppName:e.name})),r.default.createElement(s.View,{style:h.fallbackUIContainer},r.default.createElement(s.Text,{style:h.body},t))}},{key:"renderLoading",value:function(){return r.default.createElement(s.View,{style:h.loadingContainer},r.default.createElement(s.ActivityIndicator,{size:"small"}))}},{key:"render",value:function(){return r.default.createElement(s.View,{style:h.dAppMessageRootView},r.default.createElement(s.View,{style:h.dAppMessageContainer},null!=this.state.layout&&r.default.createElement(o.default,{dAppPublicKey:this.props.message.dAppPublicKey,layout:this.state.layout}),!1===this.state.isRendering&&null==this.state.layout&&this.renderFallbackUI()),!0===this.state.isRendering&&this.renderLoading())}}]),t})(r.default.Component);a.default=(0,p.connect)(function(e){return{dAppsState:e.dApps}},function(e){return{renderDAppMessage:function(t,n){e((0,f.renderDAppMessage)(t,n))}}})(A)},1362); -__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});var n=r(51),a=babelHelpers.interopRequireDefault(n),o=r(17),s=r(297),u=r(1364),i=r(538),c=r(794),p=babelHelpers.interopRequireDefault(c),b=(function(e){function r(){var e,t,l,n;babelHelpers.classCallCheck(this,r);for(var a=arguments.length,o=Array(a),s=0;s0&&r.default.createElement(_.default,{title:l}),r.default.createElement(h.default,{layout:t,dAppPublicKey:e.dAppPublicKey}),a&&r.default.createElement(C.default,null))}},{key:"modalInfo",get:function(){return this.props.dApps.modals[this.props.modalID]}}]),t})(p.default);k.navigatorButtons={leftButtons:[{id:'cancel',title:c.default.t('common.cancel'),buttonColor:d.default.navigationButtonColor}],rightButtons:[]};a.default=(0,o.connect)(function(e){return{dApps:e.dApps}},function(e){return{closeDApp:function(t){e((0,E.dAppLaunchStateChanged)(t,'started'))},cleanDAppModal:function(t){e((0,E.cleanDAppModal)(t))}}})(k)},1372); +__d(function(e,s,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=void 0;var r=s(534),n=s(517),c=s(535),l=t.initialState={isFetching:!1,chats:[],chatProfile:{}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,s=arguments[1];switch(s.type){case n.SERVICES_DESTROYED:return l;case r.SHOW_CHAT_SPINNER:return babelHelpers.extends({},e,{isFetching:!0});case r.HIDE_CHAT_SPINNER:return babelHelpers.extends({},e,{isFetching:!1});case r.CHATS_UPDATED:return babelHelpers.extends({},e,{chats:s.chats.slice()});case r.ADD_CREATED_CHAT_SESSION:return babelHelpers.extends({},e,{chats:[].concat(babelHelpers.toConsumableArray(e.chats),[s.chat])});case r.SELECT_PROFILE:return babelHelpers.extends({},e,{chatProfile:s.profile});case r.CHAT_MESSAGES_LOADED:var a=s.recipientPublicKey,t=s.messages,i=e.chats.map(function(e){return e.publicKey===a?babelHelpers.extends({},e,{messages:(0,c.mergeMessages)(e.messages,t)}):e});return babelHelpers.extends({},e,{chats:i});case r.ADD_CHAT_MESSAGE:var b=s.publicKey,u=s.message,p=e.chats.map(function(e){return e.publicKey===b?babelHelpers.extends({},e,{messages:(0,c.mergeMessages)(e.messages,[u])}):e});return babelHelpers.extends({},e,{chats:p});case r.UNREAD_STATUS_CHANGED:var E=s.recipientPublicKey,H=s.hasUnreadMessages,d=e.chats.map(function(e){return e.publicKey===E?babelHelpers.extends({},e,{unreadMessages:H}):e});return babelHelpers.extends({},e,{chats:d});default:return e}}},533); +__d(function(e,t,n,S){Object.defineProperty(S,"__esModule",{value:!0}),S.showSpinner=function(){return{type:E}},S.hideSpinner=function(){return{type:_}},S.findUserByPublicKey=function(e){return{type:A,key:e}},S.getProfile=function(e,t){return{type:r,identityKey:e,callback:t}},S.newChatSession=function(e,t){return{type:a,profile:e,callback:t}},S.addCreatedChatSession=function(e){return{type:u,chat:e}},S.chatsUpdated=function(e){return{type:i,chats:e}},S.openChat=function(e,t){return{type:c,publicKey:e,callback:t}},S.selectProfile=function(e){return{type:s,profile:e}},S.fetchAllChats=function(){return{type:T}},S.sendMessage=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:C,recipientPublicKey:e,message:t,callback:n}},S.loadChatMessages=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'0';return{type:o,recipientPublicKey:e,fromMessageId:t}},S.chatMessagesLoaded=function(e,t,n){return{type:p,recipientPublicKey:e,messages:t,expectedCount:n}},S.panthalassaMessagePersisted=function(e){return{type:D,payload:e}},S.addChatMessage=function(e,t){return{type:H,publicKey:e,message:t}},S.changeUnreadStatus=function(e,t){return{type:N,recipientPublicKey:e,hasUnreadMessages:t}},S.unreadStatusChanged=function(e,t){return{type:y,recipientPublicKey:e,hasUnreadMessages:t}};var E=S.SHOW_CHAT_SPINNER='SHOW_CHAT_SPINNER',_=S.HIDE_CHAT_SPINNER='HIDE_CHAT_SPINNER',A=S.FIND_USER_BY_KEY='FIND_USER_BY_KEY',r=S.GET_PROFILE='GET_PROFILE',a=S.NEW_CHAT_SESSION='NEW_CHAT_SESSION',i=S.CHATS_UPDATED='CHATS_UPDATED',u=S.ADD_CREATED_CHAT_SESSION='ADD_CREATED_CHAT_SESSION',c=S.OPEN_CHAT_SESSION='OPEN_CHAT_SESSION',s=S.SELECT_PROFILE='SELECT_PROFILE',T=S.FETCH_ALL_CHATS='FETCH_ALL_CHATS',C=S.SEND_MESSAGE='SEND_MESSAGE',o=S.LOAD_CHAT_MESSAGES='LOAD_CHAT_MESSAGES',p=S.CHAT_MESSAGES_LOADED='CHAT_MESSAGES_LOADED',D=S.PANTHALASSA_MESSAGE_PERSISTED='PANTHALASSA_MESSAGE_PERSISTED',H=S.ADD_CHAT_MESSAGE='ADD_CHAT_MESSAGE',N=S.CHANGE_UNREAD_STATUS='CHANGE_UNREAD_STATUS',y=S.UNREAD_STATUS_CHANGED='UNREAD_STATUS_CHANGED'},534); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.getSelectedSession=void 0,a.default=function(e){var t=[];return e.forEach(function(e){t.push({_id:e._id,text:e.msg,createdAt:e.createdAt,user:{_id:e.userId,name:e.from}})}),t},a.createGiftedChatMessageObjects=function(e,t,r){var a=[];return r.forEach(function(r){var n=new Date(0);n.setUTCMilliseconds(r.created_at/1e6);var d=r.received?{_id:t.identityKey,name:t.name}:{_id:e.id,name:e.name},u=null;if(''!==r.dapp)try{var s=JSON.parse(r.dapp);u={dAppPublicKey:Buffer.from(s.dapp_public_key,'base64').toString('hex'),params:s.params,shouldSend:s.should_send,type:s.type}}catch(e){console.log("[CHAT] Unable to parse DApp message: "+r.dapp)}a.push({_id:r.db_id,text:r.content,createdAt:n,user:d,dAppMessage:u})}),a},a.mergeMessages=function(e,t){var r=[].concat(babelHelpers.toConsumableArray(e),babelHelpers.toConsumableArray(t)),a=d.default.sortBy(r,function(e){return e.createdAt});return d.default.uniqBy(a,function(e){return e._id})};var n=t(366),d=babelHelpers.interopRequireDefault(n);a.getSelectedSession=function(e,t){return d.default.find(e,function(e){return e.publicKey===t})||null}},535); +__d(function(e,s,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.initialState=a.PasscodeTypeValues=void 0;var p=s(537),d=s(517),n=a.PasscodeTypeValues={password:{type:'password'},pinCode:{type:'pinCode',length:6}},r=a.initialState={passcodeType:n.password};a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,s=arguments[1];switch(s.type){case d.SERVICES_DESTROYED:return r;case p.CHANGE_USE_NUMERIC_PASSCODE:var t=s.useNumericPasscode?n.pinCode:n.password;return e.passcodeType.type===t.type?e:babelHelpers.extends({},e,{passcodeType:t});case p.CHANGE_PASSCODE_LENGTH:return'pinCode'!==e.passcodeType.type?e:babelHelpers.extends({},e,{passcodeType:{type:'pinCode',length:s.passcodeLength}});case p.SETTINGS_UPDATED:return babelHelpers.extends({},e,s.settings);case p.RESET_SETTINGS:return r;default:return e}}},536); +__d(function(e,t,S,n){Object.defineProperty(n,"__esModule",{value:!0}),n.changeUseNumericPasscode=function(e){return{type:E,useNumericPasscode:e}},n.changePasscodeLength=function(e){return{type:c,passcodeLength:e}},n.resetSettings=function(){return{type:T}},n.saveSettings=function(e,t){return{type:s,accountId:e,callback:t}},n.loadSettings=function(e,t){return{type:_,accountId:e,callback:t}},n.settingsUpdated=function(e){return{type:u,settings:e}};var E=n.CHANGE_USE_NUMERIC_PASSCODE='CHANGE_USE_NUMERIC_PASSCODE',c=n.CHANGE_PASSCODE_LENGTH='CHANGE_PASSCODE_LENGTH',T=n.RESET_SETTINGS='RESET_SETTINGS',_=n.LOAD_SETTINGS='LOAD_SETTINGS',s=n.SAVE_SETTINGS='SAVE_SETTINGS',u=n.SETTINGS_UPDATED='SETTINGS_UPDATED'},537); +__d(function(e,a,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getDAppLaunchState=l.getDApp=l.initialState=void 0;var n=a(539),p=a(517);a(540);var r=l.initialState={availableDApps:[],context:null,dAppsLaunchState:{},modals:{}},s=(l.getDApp=function(e,a){return e.availableDApps.find(function(e){return e.publicKey===a})},l.getDAppLaunchState=function(e,a){return e.dAppsLaunchState[a]});l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,a=arguments[1];switch(a.type){case p.SERVICES_DESTROYED:return r;case n.DAPPS_LIST_UPDATED:var t={};return a.availableDApps.forEach(function(a){var l=s(e,a.publicKey);t[a.publicKey]=l||'off'}),babelHelpers.extends({},e,{availableDApps:a.availableDApps,dAppsLaunchState:t});case n.SET_DAPP_CONTEXT:return babelHelpers.extends({},e,{context:babelHelpers.extends({},a.context)});case n.STORE_DAPP_MODAL:return babelHelpers.extends({},e,{modals:babelHelpers.extends({},e.modals,babelHelpers.defineProperty({},a.modal.modalID,a.modal))});case n.CLEAN_DAPP_MODAL:var l=babelHelpers.extends({},e.modals);return delete l[a.modalID],babelHelpers.extends({},e,{modals:l});case n.DAPP_LAUNCH_STATE_CHANGED:var d=a.dAppPublicKey,u=a.launchState;return babelHelpers.extends({},e,{dAppsLaunchState:babelHelpers.extends({},e.dAppsLaunchState,babelHelpers.defineProperty({},d,u))});default:return e}}},538); +__d(function(A,P,D,_){Object.defineProperty(_,"__esModule",{value:!0}),_.RENDER_DAPP_MESSAGE=_.PERFORM_DAPP_CALLBACK=_.CLEAN_DAPP_MODAL=_.STORE_DAPP_MODAL=_.OPEN_DAPP=_.DAPP_LAUNCH_STATE_CHANGED=_.SET_DAPP_CONTEXT=_.STOP_DAPP=_.START_DAPP=_.DAPPS_LIST_UPDATED=void 0,_.dAppsListUpdated=function(A){return{type:e,availableDApps:A}},_.dAppLaunchStateChanged=function(A,P){return{type:E,dAppPublicKey:A,launchState:P}},_.startDApp=function(A){return{type:t,dAppPublicKey:A}},_.stopDApp=function(A){return{type:p,dAppPublicKey:A}},_.setDAppContext=function(A){return{type:n,context:A}},_.openDApp=function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:T,dAppPublicKey:A,callback:P}},_.storeDAppModal=function(A){return{type:r,modal:A}},_.cleanDAppModal=function(A){return{type:u,modalID:A}},_.performDAppCallback=function(A,P,D){return{type:a,dAppPublicKey:A,callbackID:P,args:D}},_.renderDAppMessage=function(A,P){return{type:c,message:A,callback:P}},P(540);var e=_.DAPPS_LIST_UPDATED='DAPPS_LIST_UPDATED',t=_.START_DAPP='START_DAPP',p=_.STOP_DAPP='STOP_DAPP',n=_.SET_DAPP_CONTEXT='SET_DAPP_CONTEXT',E=_.DAPP_LAUNCH_STATE_CHANGED='DAPP_LAUNCH_STATE_CHANGED',T=_.OPEN_DAPP='OPEN_DAPP',r=_.STORE_DAPP_MODAL='STORE_DAPP_MODAL',u=_.CLEAN_DAPP_MODAL='CLEAN_DAPP_MODAL',a=_.PERFORM_DAPP_CALLBACK='PERFORM_DAPP_CALLBACK',c=_.RENDER_DAPP_MESSAGE='RENDER_DAPP_MESSAGE'},539); +__d(function(n,_,c,d){},540); +__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getOpenedDocument=r.getDocument=r.initialState=void 0;var l=n(366),o=babelHelpers.interopRequireDefault(l),a=n(542),i=n(517),u=n(543),d=r.initialState={isFetching:!1,documents:[],openedDocumentId:null,modification:null,fetchError:null},c=r.getDocument=function(e,n){return o.default.find(e.documents,function(e){return e.id===n})};r.getOpenedDocument=function(e){return null===e.openedDocumentId?null:c(e,e.openedDocumentId)};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,n=arguments[1];switch(n.type){case i.SERVICES_DESTROYED:return d;case a.START_DOCUMENTS_FETCH:return babelHelpers.extends({},e,{isFetching:!0,fetchError:null});case a.DOCUMENTS_FETCH_FAILED:return babelHelpers.extends({},e,{isFetching:!1,fetchError:n.error});case a.DOCUMENTS_UPDATED:return babelHelpers.extends({},e,{isFetching:!1,documents:[].concat(babelHelpers.toConsumableArray(n.documents))});case a.START_DOCUMENT_CREATION:var t=n.content;return babelHelpers.extends({},e,{modification:{initial:null,new:(function(e){return{id:null,name:'',description:'',dataId:u.contentStorage.storeContent(e),mimeType:''}})(t)}});case a.START_DOCUMENT_EDITING:var r=n.documentId,l=c(e,r);return null==l?e:babelHelpers.extends({},e,{modification:{initial:l,new:babelHelpers.extends({},l)}});case a.CANCEL_DOCUMENT_MODIFICATION:var o=e.modification;return null!==o&&u.contentStorage.removeContent(o.new.dataId),babelHelpers.extends({},e,{modification:null});case a.OPEN_DOCUMENT:return babelHelpers.extends({},e,{openedDocumentId:n.documentId});case a.UPDATE_MODIFIED_DOCUMENT_FIELD:var s=e.modification;if(null===s)return e;var b=n.field,D=n.value;return babelHelpers.extends({},e,{modification:babelHelpers.extends({},s,{new:babelHelpers.extends({},s.new,babelHelpers.defineProperty({},b,D))})});case a.DELETE_DOCUMENT:var E=n.documentId,m=c(e,E);return null!=m&&u.contentStorage.removeContent(m.dataId),e;default:return e}}},541); +__d(function(t,e,n,D){Object.defineProperty(D,"__esModule",{value:!0}),D.startDocumentsFetch=function(){return{type:T}},D.documentsUpdated=function(t){return{type:E,documents:t}},D.documentsFetchFailed=function(t){return{type:_,error:t}},D.startDocumentCreation=function(t){return{type:u,content:t}},D.startDocumentEditing=function(t){return{type:o,documentId:t}},D.deleteDocument=function(t){return{type:C,documentId:t}},D.updateModifiedDocumentField=function(t,e){return{type:O,field:t,value:e}},D.finishDocumentModification=function(){return{type:N}},D.cancelDocumentModification=function(){return{type:c}},D.openDocument=function(t){return{type:I,documentId:t}};var T=D.START_DOCUMENTS_FETCH='START_DOCUMENTS_FETCH',E=D.DOCUMENTS_UPDATED='DOCUMENTS_UPDATED',_=D.DOCUMENTS_FETCH_FAILED='DOCUMENTS_FETCH_FAILED',u=D.START_DOCUMENT_CREATION='START_DOCUMENT_CREATION',o=D.START_DOCUMENT_EDITING='START_DOCUMENT_EDITING',C=D.DELETE_DOCUMENT='DELETE_DOCUMENT',O=D.UPDATE_MODIFIED_DOCUMENT_FIELD='UPDATE_MODIFIED_DOCUMENT_FIELD',N=D.FINISH_DOCUMENT_MODIFICATION='FINISH_DOCUMENT_MODIFICATION',c=D.CANCEL_DOCUMENT_MODIFICATION='CANCEL_DOCUMENT_MODIFICATION',I=D.OPEN_DOCUMENT='OPEN_DOCUMENT'},542); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.contentStorage=void 0;var a=t(367),s=babelHelpers.interopRequireDefault(a),o=t(544),u=t(545),c=babelHelpers.interopRequireWildcard(u),l=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,[{key:"storeContent",value:function(e){var t=(0,s.default)();return this.contents[t]=e,t}},{key:"removeContent",value:function(e){delete this.contents[e]}},{key:"resolveContent",value:function(e){return this.contents[e]}},{key:"clear",value:function(){this.contents={}}}]),e})(),i=r.contentStorage=new l,p=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"getDocuments",value:function(){var e,t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(c.panthalassaCall('DOCUMENT:ALL'));case 2:return e=n.sent,t=JSON.parse(e),i.clear(),n.abrupt("return",t.docs.map(function(e){return(0,o.convertFromPanthalassa)(e,i.storeContent(e.content))}));case 6:case"end":return n.stop()}},null,this)}},{key:"saveDocument",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(c.panthalassaCall('DOCUMENT:CREATE',(0,o.convertToPanthalassa)(e,i.resolveContent(e.dataId))));case 2:case"end":return t.stop()}},null,this)}},{key:"updateDocument",value:function(e){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,o.convertToPanthalassa)(e,''),n.next=3,regeneratorRuntime.awrap(c.panthalassaCall('DOCUMENT:UPDATE',{doc_id:t.id,title:t.title,description:t.description}));case 3:case"end":return n.stop()}},null,this)}},{key:"deleteDocument",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(c.panthalassaCall('DOCUMENT:DELETE',{doc_id:e}));case 2:case"end":return t.stop()}},null,this)}}]),e})();r.default=p},543); +__d(function(e,t,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.convertFromPanthalassa=function(e,t){return{id:e.id,name:e.title,description:e.description,dataId:t,mimeType:e.mime_type}},n.convertToPanthalassa=function(e,t){return{id:e.id,title:e.name,description:e.description,content:t,mime_type:e.mimeType}}},544); +__d(function(n,e,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.panthalassaStop=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaStop());case 1:case"end":return n.stop()}},null,this)},a.panthalassaStart=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaStart({config:n,password:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaStartFromMnemonic=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaStartFromMnemonic({config:n,mnemonic:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaIsValidMnemonic=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaIsValidMnemonic(n));case 1:case"end":return e.stop()}},null,this)},a.panthalassaNewAccountKeys=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaNewAccountKeys({pw:n,pwConfirm:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaNewAccountKeysFromMnemonic=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaNewAccountKeysFromMnemonic({mne:n,pw:e,pwConfirm:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaExportAccountStore=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaExportAccountStore({pw:n,pwConfirm:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaEthPrivateKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaEthPrivateKey());case 1:case"end":return n.stop()}},null,this)},a.panthalassaEthPubToAddress=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaEthPubToAddress({pub:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaEthAddress=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaEthAddress());case 1:case"end":return n.stop()}},null,this)},a.panthalassaGetIdentityPublicKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaGetIdentityPublicKey());case 1:case"end":return n.stop()}},null,this)},a.panthalassaSignProfileStandAlone=function(n,e,t,a,s){return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",r.PanthalassaSignProfileStandAlone({name:n,location:e,image:t,keyManagerStore:a,password:s}));case 1:case"end":return u.stop()}},null,this)},a.panthalassaSignProfile=function(n,e,t){return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",r.PanthalassaSignProfile({name:n,location:e,image:t}));case 1:case"end":return a.stop()}},null,this)},a.panthalassaGetMnemonic=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaGetMnemonic());case 1:case"end":return n.stop()}},null,this)},a.panthalassaStartDApp=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaStartDApp({dAppSingingKeyStr:n,timeout:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaOpenDApp=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaOpenDApp({id:n,context:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaCallDAppFunction=function(n,e,t){return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",r.PanthalassaCallDAppFunction({signingKey:n,id:e,args:t}));case 1:case"end":return a.stop()}},null,this)},a.panthalassaConnectToDAppDevHost=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaConnectToDAppDevHost({address:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaRenderMessage=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaRenderMessage({signingKey:n,payload:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaSendResponse=function(n,e,t,a){return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",r.PanthalassaSendResponse({id:n,data:e,responseError:t,timeout:a}));case 1:case"end":return s.stop()}},null,this)},a.panthalassaAllChats=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaAllChats());case 1:case"end":return n.stop()}},null,this)},a.panthalassaConnectLogger=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaConnectLogger({address:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaDApps=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaDApps());case 1:case"end":return n.stop()}},null,this)},a.panthalassaIdentityPublicKey=function(){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.PanthalassaIdentityPublicKey());case 1:case"end":return n.stop()}},null,this)},a.panthalassaMessages=function(n,e,t){return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",r.PanthalassaMessages({partner:n,startStr:e,amount:t}));case 1:case"end":return a.stop()}},null,this)},a.panthalassaSendMessage=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaSendMessage({partner:n,message:e}));case 1:case"end":return t.stop()}},null,this)},a.panthalassaSetLogger=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaSetLogger({level:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaStopDApp=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaStopDApp({dAppSingingKeyStr:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaMarkMessagesAsRead=function(n){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.PanthalassaMarkMessagesAsRead({partner:n}));case 1:case"end":return e.stop()}},null,this)},a.panthalassaCall=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.PanthalassaCall({command:n,payload:JSON.stringify(e)}));case 1:case"end":return t.stop()}},null,this)};var r=e(17).NativeModules.Panthalassa},545); +__d(function(e,l,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=E;var t=l(350),u=l(547),i=babelHelpers.interopRequireDefault(u),f=l(610),p=babelHelpers.interopRequireDefault(f),n=l(613),b=babelHelpers.interopRequireDefault(n),c=l(615),o=babelHelpers.interopRequireDefault(c),s=l(684),d=babelHelpers.interopRequireDefault(s),R=l(686),q=babelHelpers.interopRequireDefault(R),D=l(689),H=babelHelpers.interopRequireDefault(D),_=l(757),m=babelHelpers.interopRequireDefault(_),v=l(759),g=babelHelpers.interopRequireDefault(v),h=l(761),w=babelHelpers.interopRequireDefault(h),x=l(764),j=babelHelpers.interopRequireDefault(x),k=l(767),y=babelHelpers.interopRequireDefault(k),M=l(772),O=babelHelpers.interopRequireDefault(M),P=l(774),z=babelHelpers.interopRequireDefault(P),A=l(776),B=babelHelpers.interopRequireDefault(A),C=regeneratorRuntime.mark(E);function E(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,t.all)([(0,t.call)(i.default),(0,t.call)(p.default),(0,t.call)(b.default),(0,t.call)(o.default),(0,t.call)(d.default),(0,t.call)(q.default),(0,t.call)(H.default),(0,t.call)(m.default),(0,t.call)(g.default),(0,t.call)(w.default),(0,t.call)(j.default),(0,t.call)(O.default),(0,t.call)(y.default),(0,t.call)(O.default),(0,t.call)(z.default),(0,t.call)(B.default)]);case 2:case"end":return e.stop()}},C,this)}},546); +__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var n=a(350),E=a(548),o=a(508),C=a(511),c=regeneratorRuntime.mark(i);function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.call)(E.listenForDatabaseUpdates),(0,n.takeEvery)(o.START_ACCOUNT_CREATION,E.startAccountCreation),(0,n.takeEvery)(o.START_RESTORE_ACCOUNT_USING_MNEMONIC,E.startRestoreAccountUsingMnemonic),(0,n.takeEvery)(o.LOGIN,E.loginActionHandler),(0,n.takeEvery)(o.VALIDATE_MNEMONIC_WITH_ACCOUNT,E.validateMnemonicWithAccountActionHandler),(0,n.takeEvery)(o.LOGOUT,E.logout),(0,n.takeEvery)(C.SAVE_EDITING_ACCOUNT,E.saveEditingAccount),(0,n.takeEvery)(o.ACCOUNTS_LIST_UPDATED,E.updateSignedProfile),(0,n.takeEvery)(o.CHECK_PIN_CODE,E.checkPinCodeSaga),(0,n.takeEvery)(o.CHECK_PASSWORD,E.checkPasswordSaga),(0,n.takeEvery)(o.SAVE_PIN_CODE,E.savePinCodeSaga),(0,n.takeEvery)(o.SAVE_PASSWORD,E.savePasswordSaga),(0,n.takeEvery)(o.SAVE_CREATING_ACCOUNT,E.saveCreatingAccount),(0,n.takeEvery)(o.MNEMONIC_CONFIRMED,E.saveMnemonicConfirmed)]);case 2:case"end":return e.stop()}},c,this)}},547); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAccounts=void 0,n.currentAccountBasedUpdate=W,n.startAccountUpdateListening=B,n.getCurrentAccountId=V,n.accountsPresent=z,n.getAccount=J,n.getCurrentAccount=Q,n.listenForDatabaseUpdates=X,n.updateSignedProfile=Y,n.startAccountCreation=Z,n.startRestoreAccountUsingMnemonic=$,n.loginActionHandler=ee,n.login=te,n.validateMnemonicWithAccountActionHandler=re,n.validateMnemonicWithAccount=ne,n.logout=ae,n.saveEditingAccount=ce,n.checkPinCodeSaga=ue,n.checkPasswordSaga=se,n.savePinCodeSaga=oe,n.savePasswordSaga=ie,n.saveCreatingAccount=le,n.saveMnemonicConfirmed=pe;var a=t(350),c=t(549),u=babelHelpers.interopRequireDefault(c),s=t(584),o=t(508),i=t(534),l=t(585),p=t(510),f=babelHelpers.interopRequireDefault(p),x=t(586),d=babelHelpers.interopRequireDefault(x),m=t(588),g=t(511),v=t(537),b=t(589),k=babelHelpers.interopRequireDefault(b),h=t(609),R=regeneratorRuntime.mark(W),w=regeneratorRuntime.mark(B),A=regeneratorRuntime.mark(V),P=regeneratorRuntime.mark(z),C=regeneratorRuntime.mark(J),I=regeneratorRuntime.mark(Q),D=regeneratorRuntime.mark(X),S=regeneratorRuntime.mark(Y),F=regeneratorRuntime.mark(Z),E=regeneratorRuntime.mark($),U=regeneratorRuntime.mark(ee),T=regeneratorRuntime.mark(te),_=regeneratorRuntime.mark(re),M=regeneratorRuntime.mark(ne),H=regeneratorRuntime.mark(ae),y=regeneratorRuntime.mark(ce),L=regeneratorRuntime.mark(ue),O=regeneratorRuntime.mark(se),N=regeneratorRuntime.mark(oe),j=regeneratorRuntime.mark(ie),q=regeneratorRuntime.mark(le),G=regeneratorRuntime.mark(pe),K=n.getAccounts=function(e){return e.accounts};function W(e,t){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,(0,a.race)({task:(0,a.call)(B,e,t),cancel:(0,a.take)(o.CURRENT_ACCOUNT_ID_CHANGED)});case 3:r.next=0;break;case 5:case"end":return r.stop()}},R,this)}function B(e,t){var r,n,c,o,i,l,p;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,a.call)(V);case 2:return r=f.sent,f.next=5,u.default;case 5:return n=f.sent,f.next=8,(0,a.call)(e,n,r);case 8:if(null!==(c=f.sent)){f.next=13;break}return f.next=12,(0,a.take)('HANG_FOREVER');case 12:return f.abrupt("return");case 13:return f.next=15,(0,a.call)(s.createDatabaseUpdateChannel,c);case 15:o=f.sent;case 16:return f.next=19,(0,a.take)(o);case 19:return i=f.sent,l=i.collection,p=i.changes,f.next=24,(0,a.call)(t,l,p);case 24:f.next=16;break;case 26:case"end":return f.stop()}},w,this)}function V(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.select)();case 2:return e=r.sent,t=e.accounts,r.abrupt("return",t.currentAccountId);case 5:case"end":return r.stop()}},A,this)}function z(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,u.default;case 2:return e=r.sent,t=e.objects('Account'),r.next=6,t.length>0;case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}},P,this)}function J(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u.default;case 2:return t=n.sent,r=t.objects('Account').filtered("id == '"+e+"'"),n.next=6,r[0]||null;case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},C,this)}function Q(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(V);case 2:if(null!==(e=t.sent)){t.next=7;break}return t.next=6,null;case 6:return t.abrupt("return",t.sent);case 7:return t.next=9,(0,a.call)(J,e);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}},I,this)}function X(){var e,t,r,n,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,u.default;case 2:return e=i.sent,i.next=5,(0,a.call)([e,'objects'],'Account');case 5:return t=i.sent,i.next=8,(0,a.call)(s.createDatabaseUpdateChannel,t);case 8:r=i.sent;case 9:return i.next=12,(0,a.take)(r);case 12:return n=i.sent,c=n.collection,i.next=16,(0,a.put)((0,o.accountListUpdated)(c.map(l.convertFromDatabase)));case 16:i.next=9;break;case 18:case"end":return i.stop()}},D,this)}function Y(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.call)(Q);case 2:if(null==(e=r.sent)){r.next=7;break}return t=(0,l.convertFromDatabase)(e),r.next=7,(0,a.call)(d.default.signProfile,(0,l.retrieveProfileFromAccount)(t));case 7:case"end":return r.stop()}},S,this)}function Z(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.put)((0,v.resetSettings)());case 2:case"end":return e.stop()}},F,this)}function $(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.put)((0,v.resetSettings)());case 2:case"end":return e.stop()}},E,this)}function ee(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(te,{accountId:e.accountId},e.password,e.deferred);case 2:case"end":return t.stop()}},U,this)}function te(e,t){var r,n,c,u,s,p,x,v,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!0!==b){h.next=3;break}return h.next=3,(0,a.take)(o.PERFORM_DEFERRED_LOGIN);case 3:return h.next=5,(0,a.put)((0,o.loginTaskUpdated)(f.default.pending()));case 5:if(r=e.accountId,n=void 0,c=void 0,null!=e.accountStore){h.next=16;break}return h.next=11,(0,a.call)(J,r);case 11:u=h.sent,n=u.accountStore,c=(0,l.retrieveProfileFromAccount)((0,l.convertFromDatabase)(u)),h.next=27;break;case 16:return n=e.accountStore,h.next=19,(0,a.select)(K);case 19:if(s=h.sent,p=s.creatingAccount,null!=(x=(0,l.retrieveProfileFromPartialAccount)(p))){h.next=26;break}return h.next=25,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new m.LoginFailedError)));case 25:return h.abrupt("return");case 26:c=x;case 27:return h.prev=27,h.next=30,(0,a.call)(d.default.login,n,c,t);case 30:if(!0===h.sent){h.next=35;break}return h.next=34,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new m.InvalidPasswordError)));case 34:return h.abrupt("return");case 35:h.next=48;break;case 37:if(h.prev=37,h.t0=h.catch(27),console.log('--\x3e ERROR Login: ',h.t0),void 0===h.t0.transKey){h.next=45;break}return h.next=43,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(h.t0)));case 43:h.next=47;break;case 45:return h.next=47,(0,a.put)((0,o.loginTaskUpdated)(f.default.failure(new m.LoginFailedError)));case 47:return h.abrupt("return");case 48:return h.next=50,(0,a.call)(k.default.getPublicKey);case 50:return v=h.sent,h.next=53,(0,a.put)((0,g.setPublicKey)(v));case 53:return h.next=55,(0,a.put)((0,o.currentAccountIdChanged)(r));case 55:return h.next=57,(0,a.put)((0,o.loginTaskUpdated)(f.default.success()));case 57:return h.next=59,(0,a.put)((0,i.fetchAllChats)());case 59:case"end":return h.stop()}},T,this,[[27,37]])}function re(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(ne,{accountId:e.accountId},e.callback);case 2:case"end":return t.stop()}},_,this)}function ne(e,t){var r,n,c,u,s,o,i;return regeneratorRuntime.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=e.accountId,p.next=3,(0,a.call)(J,r);case 3:return n=p.sent,c=n.accountStore,u=(0,l.retrieveProfileFromAccount)((0,l.convertFromDatabase)(n)),p.prev=6,p.next=9,(0,a.select)();case 9:return s=p.sent,o=s.key.enteredMnemonic,p.next=13,(0,a.call)(d.default.validateMnemonicWithAccount,c,u,o);case 13:return i=p.sent,p.next=16,(0,a.call)(t,i);case 16:p.next=23;break;case 18:return p.prev=18,p.t0=p.catch(6),console.log('--\x3e ERROR Login: ',p.t0),p.next=23,(0,a.call)(t,!1);case 23:case"end":return p.stop()}},M,this,[[6,18]])}function ae(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(d.default.logout);case 2:return e.next=4,(0,a.put)((0,o.currentAccountIdChanged)(null));case 4:case"end":return e.stop()}},H,this)}function ce(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,a.call)(Q);case 2:if(null!==(t=n.sent)){n.next=5;break}return n.abrupt("return");case 5:return r=e.account,n.next=8,u.default;case 8:n.sent.write(function(){t.location=r.location?r.location.trim():'',t.name=r.name.trim(),t.profileImage=r.avatar||''});case 10:case"end":return n.stop()}},y,this)}function ue(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(se,(0,o.checkPassword)(e.pinCode,e.accountId,e.callback));case 2:case"end":return t.stop()}},L,this)}function se(e){var t,r,n,c;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,(0,a.call)(J,e.accountId);case 3:return t=u.sent,r=t.accountStore,n=(0,l.retrieveProfileFromAccount)((0,l.convertFromDatabase)(t)),u.next=8,(0,a.call)(d.default.checkPasscode,r,n,e.password);case 8:return c=u.sent,u.next=11,(0,a.call)(e.callback,c);case 11:u.next=17;break;case 13:return u.prev=13,u.t0=u.catch(0),u.next=17,(0,a.call)(e.callback,!1);case 17:case"end":return u.stop()}},O,this,[[0,13]])}function oe(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(ie,(0,o.savePassword)(e.pinCode,e.accountId,e.callback));case 2:case"end":return t.stop()}},N,this)}function ie(e){var t,r,n,c,s,i,l,p,f;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t=e.accountId,r=e.password,x.next=3,(0,a.select)();case 3:if(n=x.sent,c=n.accounts,s=c.currentCreation,x.prev=6,null!==s){x.next=21;break}return x.next=10,(0,a.call)(d.default.exportAccountStore,e.password);case 10:return i=x.sent,x.next=13,u.default;case 13:return l=x.sent,x.next=16,(0,a.call)(J,t);case 16:return p=x.sent,l.write(function(){p.accountStore=i}),x.next=20,(0,a.call)(e.callback,!0);case 20:return x.abrupt("return");case 21:if(f=void 0,'create'!==s.type){x.next=28;break}return x.next=25,(0,a.call)(d.default.createAccountStore,r);case 25:f=x.sent,x.next=37;break;case 28:if('restore'!==s.type){x.next=34;break}return x.next=31,(0,a.call)(d.default.restoreAccountStore,s.mnemonic,r);case 31:f=x.sent,x.next=37;break;case 34:return x.next=36,(0,a.call)(e.callback,!1);case 36:return x.abrupt("return");case 37:return x.next=39,(0,a.put)((0,o.changeCreatingAccountField)('accountStore',f));case 39:return x.next=41,(0,a.call)(e.callback,!0);case 41:return x.next=43,(0,a.call)(te,{accountId:t,accountStore:f},r,!0);case 43:x.next=49;break;case 45:return x.prev=45,x.t0=x.catch(6),x.next=49,(0,a.call)(e.callback,!1);case 49:case"end":return x.stop()}},j,this,[[6,45]])}function le(e){var t,r,n,c,s;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,a.select)();case 2:if(t=o.sent,r=t.accounts,n=r.creatingAccount,c=void 0,null!==n){o.next=10;break}return o.next=9,(0,a.call)(e.callback,!1);case 9:return o.abrupt("return");case 10:if(null!==(c=null!==h.version&&void 0!==h.version?(0,l.convertToDatabase)(n,h.version):(0,l.convertToDatabase)(n,'0.0.0'))){o.next=15;break}return o.next=14,(0,a.call)(e.callback,!1);case 14:return o.abrupt("return");case 15:return o.next=17,u.default;case 17:return(s=o.sent).write(function(){s.create('Account',c)}),o.next=21,(0,a.call)(e.callback,!0);case 21:return o.next=23,(0,a.put)((0,g.cancelAccountEditing)());case 23:case"end":return o.stop()}},q,this)}function pe(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,a.call)(Q);case 2:if(null!=(t=r.sent)){r.next=7;break}return r.next=6,(0,a.call)(e.callback,!1);case 6:return r.abrupt("return");case 7:return r.next=9,u.default;case 9:return r.sent.write(function(){t.confirmedMnemonic=!0}),r.next=13,(0,a.call)(e.callback,!0);case 13:case"end":return r.stop()}},G,this)}},548); +__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buildRandomPathDatabase=void 0,r.factory=f;var n=a(550),s=babelHelpers.interopRequireDefault(n),i=a(573),u=babelHelpers.interopRequireDefault(i),o=a(574),l=babelHelpers.interopRequireDefault(o),c=regeneratorRuntime.mark(f),d='pangea_0_4_5';function f(e){var a,t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=d,''!==e&&'string'==typeof e&&(a=e),t=Math.max(i-1,s.default.schemaVersion(a));case 3:if(!(t1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a=0?n:o.push(t)-1)};var t,n;if(!r||'object'!=typeof r)return{value:r};var a=r[i];if(a)return{id:a};if(r instanceof Date)return{type:s.objectTypes.DATE,value:r.getTime()};if(Array.isArray(r))return{value:r.map(function(r){return _(e,r)})};if(r instanceof ArrayBuffer||ArrayBuffer.isView(r))return{type:s.objectTypes.DATA,value:u.encode(r)};var l=Object.keys(r),c=l.map(function(t){return _(e,r[t])});return{type:s.objectTypes.DICT,keys:l,values:c}}function m(e,r){var t=r.type,n=t&&l[t];if(n)return n(e,r);var a=r.value;return a&&Array.isArray(a)?a.map(function(r){return m(e,r)}):a}y(s.objectTypes.DATA,function(e,r){var t=r.value;return u.decode(t)}),y(s.objectTypes.DATE,function(e,r){var t=r.value;return new Date(t)}),y(s.objectTypes.DICT,function(e,r){for(var t=r.keys,n=r.values,a={},u=0,s=t.length;u2&&void 0!==arguments[2]?arguments[2]:p;clearTimeout(b);try{if(!n)throw new Error('Must first create RPC session with a valid host');var a=(function(r,t){var n=void 0,a=void 0;if(e.__debug__){var u=e.__debug__.require('sync-request')('POST',r,{body:JSON.stringify(t),headers:{"Content-Type":"text/plain;charset=UTF-8"}});n=u.statusCode,a=u.body.toString('utf-8')}else{var s=JSON.stringify(t),i=new f;i.open('POST',r,!1),i.send(s),n=i.status,a=i.responseText}if(200!=n)throw new Error(a);return JSON.parse(a)})('http://'+n+'/'+r,t=babelHelpers.extends({},t,v?{sessionId:v}:null));if(!a||a.error){var u=a&&a.error;if(u&&u.replace)u=u.replace(/^[a-z]+: /i,'');else if(u.type&&'dict'===u.type){var s=(function e(r){for(var t={},n=0;n>4),t[i++]=((15&c)<<4)+((60&s)>>2),t[i++]=((3&s)<<6)+y}return f},f.encode=function(r){var e,n=0;if(r instanceof ArrayBuffer)e=r;else{if(!ArrayBuffer.isView(r))throw new TypeError('Can only base64 encode ArrayBuffer and ArrayBufferView objects');e=r.buffer,n=r.byteOffset}for(var f=r.byteLength,a=new Uint8Array(e,n,f),u='',i=0;i>2],u+=t[((3&a[i])<<4)+((240&a[i+1])>>4)],u+=t[((15&a[i+1])<<2)+((192&a[i+2])>>6)],u+=t[63&a[i+2]];switch(f%3){case 1:return u.slice(0,-2)+'==';case 2:return u.slice(0,-1)+'=';default:return u}};var t='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',a={};Array.from(t,function(r,e){return a[r]=e})},556); +__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createList=function(e,t){return(0,o.createCollection)(p.prototype,e,t,!0)};var o=t(553),i=babelHelpers.interopRequireDefault(o),l=t(552),n=t(554),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t})(i.default);s.default=p,(0,n.createMethods)(p.prototype,l.objectTypes.LIST,['filtered','sorted','snapshot','isValid','indexOf','min','max','sum','avg','addListener','removeListener','removeAllListeners']),(0,n.createMethods)(p.prototype,l.objectTypes.LIST,['pop','shift','push','unshift','splice'],!0)},557); +__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createResults=function(e,t){return(0,o.createCollection)(a.prototype,e,t)};var o=t(553),l=babelHelpers.interopRequireDefault(o),i=t(552),n=t(554),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t})(l.default);s.default=a,(0,n.createMethods)(a.prototype,i.objectTypes.RESULTS,['filtered','sorted','snapshot','subscribe','isValid','indexOf','min','max','sum','avg','addListener','removeListener','removeAllListeners']),(0,n.createMethods)(a.prototype,i.objectTypes.RESULTS,['update'],!0)},558); +__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0}),o.clearRegisteredConstructors=function(){s={},i={}},o.createObject=function(e,t){var r=t.schema,o=i[e],u=(s[o]||{})[r.name],l=Object.create(u?u.prototype:a.prototype);if(l[n.keys.realm]=e,l[n.keys.id]=t.id,l[n.keys.type]=t.type,r.properties.forEach(function(e){Object.defineProperty(l,e,{enumerable:!0,get:(0,c.getterForProperty)(e),set:(0,c.setterForProperty)(e)})}),u){var p=u.call(l);if(null!=p&&p!=l)throw new Error('Realm object constructor must not return another value')}return l},o.registerConstructors=function(e,t,r){i[e]=t,r&&(s[t]=r)},o.typeForConstructor=function(e,t){var r=i[e],o=s[r];for(var n in o)if(o[n]==t)return n;throw new Error("Constructor was not registered in the schema for this Realm")};var n=t(552),c=t(554),s={},i={},a=function e(){babelHelpers.classCallCheck(this,e)};o.default=a,(0,c.createMethods)(a.prototype,n.objectTypes.OBJECT,['isValid','objectSchema','linkingObjects','linkingObjectsCount','_objectId','_isSameObject'])},559); +__d(function(e,r,t,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0}),s.createUser=function(e,r){var t=Object.create(l.prototype);return t[a.keys.realm]="(User object)",t[a.keys.id]=r.id,t[a.keys.type]=a.objectTypes.USER,babelHelpers.extends(t,r.data),t};var n=r(555),a=r(552),o=r(554),l=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"createUser",value:function(e,r,t,s,a){return(0,n.createUser)(Array.from(arguments))}},{key:"_adminUser",value:function(e,r){return(0,n._adminUser)(Array.from(arguments))}},{key:"_getExistingUser",value:function(e,r){return(0,n._getExistingUser)(Array.from(arguments))}},{key:"all",get:function(){return(0,n.getAllUsers)()}}]),e})();s.default=l,(0,o.createMethods)(l.prototype,a.objectTypes.USER,['_logout','_sessionForOnDiskPath'])},560); +__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0}),o.createSession=function(e,t){var r=Object.create(c.prototype);return r[s.keys.realm]="(Session object)",r[s.keys.id]=t.id,r[s.keys.type]=s.objectTypes.SESSION,r.user=(0,a.deserialize)(e,t.data.user),r.config=(0,a.deserialize)(e,t.data.config),r};var s=t(552),i=t(554),a=t(555),c=function e(){babelHelpers.classCallCheck(this,e)};o.default=c,Object.defineProperties(c.prototype,{url:{get:(0,i.getterForProperty)('url')},state:{get:(0,i.getterForProperty)('state')}}),(0,i.createMethods)(c.prototype,s.objectTypes.SESSION,['_refreshAccessToken','_simulateError','addProgressNotification','removeProgressNotification'])},561); +__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var s=t(552),a=t(554),c=function e(){babelHelpers.classCallCheck(this,e)};o.default=c,Object.defineProperties(c.prototype,{error:{get:(0,a.getterForProperty)('error')},state:{get:(0,a.getterForProperty)('state')}}),(0,a.createMethods)(c.prototype,s.objectTypes.SUBSCRIPTION,['unsubscribe','addListener','removeListener'])},562); +__d(function(e,t,n,r){'use strict';var o=t(564).AuthError,s=t(565),i=t(570),a=t,c=t(566);function u(e,t){e=Array.prototype.slice.call(e);for(var n=0;nn&&typeof e[n]!==t[n])throw new TypeError('param '+n+' must be of type '+t[n])}var f,h,d,l=(f='undefined'==typeof fetch?a('node-fetch'):fetch,h=[],d=0,function(e,t){return new Promise(function(n,r){h.push([e,t,n,r]),(function e(){if(!(d>=5)){var t=h.shift();if(t){var n=babelHelpers.slicedToArray(t,4),r=n[0],o=n[1],s=n[2],i=n[3];++d,f(r,o).then(function(t){--d,e(),s(t)}).catch(function(t){--d,e(),i(t)})}}})()})}),p=t(566),v={'content-type':'application/json;charset=utf-8',accept:'application/json'};function g(e,t){return e+('/'!=e.charAt(e.length-1)?'/':'')+t}function m(){(console.error||console.log).apply(console,arguments)}function w(e,t,n,r){var s=e._sessionForOnDiskPath(t);if(s){var i=s.config.error;if(200==n.status){if('invalid'!==s.state)return s}else{var a=new o(r);i?i(s,a):m("Unhandled session token refresh error for user "+e.identity+" at path "+t,a)}}else m("Unhandled session token refresh error: could not look up session for user "+e.identity+" at path "+t)}function y(e,t,n){if(!e.server)throw new Error("Server for user must be specified");var r=p(n);if(e.isAdminToken)return(function(e,t,n){var r=e.token,o=e.server,s=p(n),i=g(e.server,'realms/files/'+encodeURIComponent(s.pathname));l(i,{method:'GET',timeout:1e4,headers:{Authorization:e.token}}).then(function(e){return 404===e.status||503===e.status?{response:{status:200},json:{path:s.pathname,syncLabel:'_direct'}}:e.json().then(function(t){return{response:e,json:t}})}).then(function(n){var i=n.response,a=n.json,c=w(e.constructor.adminUser(r,o),t,i,a);c&&(s.set('pathname',a.path),c._refreshAccessToken(e.token,s.href,a.syncLabel))}).catch(function(r){m(r),setTimeout(function(){return y(e,t,n)},1e4)})})(e,t,n);var o=g(e.server,'auth'),s={method:'POST',body:JSON.stringify({data:e.token,path:r.pathname,provider:'realm',app_id:''}),headers:v,timeout:1e4};l(o,s).then(function(e){return e.json().then(function(t){return{response:e,json:t}})}).then(function(o){var s=o.response,i=o.json,a=e.constructor._getExistingUser(e.server,e.identity);if(a){var c=w(a,t,s,i);if(c){var u=i.access_token.token_data;r.set('pathname',u.path),c._refreshAccessToken(i.access_token.token,r.href,u.sync_label);var f=c.config.error;f&&f._notifyOnAccessTokenRefreshed&&f(c,f._notifyOnAccessTokenRefreshed);var h=new Date(1e3*u.expires);!(function(e,t,n,r){var o=r-Date.now()-1e4;setTimeout(function(){return y(e,t,n)},o)})(a,t,n,h)}}}).catch(function(r){m(r),setTimeout(function(){return y(e,t,n)},1e4)})}function k(e,t,n,r){n.app_id='';var s=g(t,'auth'),i={method:'POST',body:JSON.stringify(n),headers:v,open_timeout:5e3},a=l(s,i).then(function(n){return-1===n.headers.get('Content-Type').indexOf('application/json')?n.text().then(function(e){throw new o({title:"Could not authenticate: Realm Object Server didn't respond with valid JSON",body:e})}):n.ok?n.json().then(function(n){var r=n.refresh_token.token,o=n.refresh_token.token_data.identity,s=n.refresh_token.token_data.is_admin;return e.createUser(t,o,r,!1,s)}):n.json().then(function(e){return Promise.reject(new o(e))})});if(!r)return a;a.then(function(e){r(null,e)}).catch(function(e){r(e)})}function _(e,t,n){var r=g(t,'auth/password/updateAccount'),s={method:'POST',body:JSON.stringify(n),headers:v,open_timeout:5e3};return l(r,s).then(function(e){return-1===e.headers.get('Content-Type').indexOf('application/json')?e.text().then(function(e){throw new o({title:"Could not update user account: Realm Object Server didn't respond with valid JSON",body:e})}):e.ok?void 0:e.json().then(function(e){return Promise.reject(new o(e))})})}var b={get current(){var e=this.all,t=Object.keys(e);if(0!==t.length){if(t.length>1)throw new Error("Multiple users are logged in");return e[t[0]]}},adminUser:function(e,t){return u(arguments,['string','string']),this._adminUser(t,e)},register:function(e,t,n,r){u(arguments,['string','string','string','function']);var o={provider:'password',user_info:{password:n,register:!0},data:t};if(r){(console.warn||console.log).call(console,"register(..., callback) is now deprecated in favor of register(): Promise. This function argument will be removed in future versions.")}return k(this,e,o,r)},login:function(e,t,n,r){u(arguments,['string','string','string','function']);var o={provider:'password',user_info:{password:n,register:!1},data:t};if(r){(console.warn||console.log).call(console,"login(..., callback) is now deprecated in favor of login(): Promise. This function argument will be removed in future versions.")}return k(this,e,o,r)},registerWithProvider:function(e,t,n){4===arguments.length?(u(arguments,['string','string','string','function']),t={provider:arguments[1],providerToken:arguments[2]},n=arguments[3]):u(arguments,['string','object','function']);var r={provider:t.provider,data:t.providerToken};if(t.userInfo&&(r.user_info=t.userInfo),n){(console.warn||console.log).call(console,"registerWithProvider(..., callback) is now deprecated in favor of registerWithProvider(): Promise. This function argument will be removed in future versions.")}return k(this,e,r,n)},authenticate:function(e,t,n){u(arguments,['string','string','object']);var r={};switch(t.toLowerCase()){case'jwt':r.provider='jwt',r.token=n.token;break;case'password':r.provider='password',r.user_info={password:n.password},r.data=n.username;break;default:babelHelpers.extends(r,n),r.provider=t}return k(this,e,r)},requestPasswordReset:function(e,t){return u(arguments,['string','string']),_(0,e,{provider_id:t,data:{action:'reset_password'}})},completePasswordReset:function(e,t,n){return u(arguments,['string','string']),_(0,e,{data:{action:'complete_reset',token:t,new_password:n}})},requestEmailConfirmation:function(e,t){return u(arguments,['string','string']),_(0,e,{provider_id:t,data:{action:'request_email_confirmation'}})},confirmEmail:function(e,t){return u(arguments,['string','string']),_(0,e,{data:{action:'confirm_email',token:t}})},_refreshAccessToken:y},j={logout:function(){this._logout();var e=p(this.server);e.set('pathname','/auth/revoke');var t={method:'POST',headers:{Authorization:this.token},body:JSON.stringify({token:this.token}),open_timeout:5e3};l(e.href,t).then(function(){return console.log('User is logged out')}).catch(function(e){return m(e)})},openManagementRealm:function(){var e=p(this.server);if('http:'===e.protocol)e.set('protocol','realm:');else{if('https:'!==e.protocol)throw new Error("Unexpected user auth url: "+this.server);e.set('protocol','realms:')}return e.set('pathname','/~/__management'),new this.constructor._realmConstructor({schema:t(569),sync:{user:this,url:e.href}})},retrieveAccount:function(e,t){u(arguments,['string','string']);var n=p(this.server);n.set('pathname',"/auth/users/"+e+"/"+t);var r={method:'GET',headers:{Authorization:this.token},open_timeout:5e3};return l(n.href,r).then(function(e){return 200!==e.status?e.json().then(function(e){throw new o(e)}):e.json()})},createConfiguration:function(e){if(e&&e.sync&&(void 0!==console.warn&&console.warn("'user' property will be overridden by "+this.identity),void 0!==e.sync.partial&&void 0!==e.sync.fullSynchronization))throw new Error("'partial' and 'fullSynchronization' were both set. 'partial' has been deprecated, use only 'fullSynchronization'");var t=new c(this.server),n='https:'===t.protocol?'s':'',r=void 0===t.port?'9080':t.port,o={sync:{user:this,url:"realm"+n+"://"+t.hostname+":"+r+"/default"}};e&&e.sync&&e.sync.partial||(o.sync.fullSynchronization=!1);var s=void 0===e?o:i(o,e);return s.sync.user=this,s}};babelHelpers.extends(j,s),n.exports={static:b,instance:j}},563); +__d(function(r,t,o,s){'use strict';function e(r){var t=Error.call(this,r.title);this.name='AuthError',this.message=t.message,this.stack=t.stack,babelHelpers.extends(this,r)}e.__proto__=Error,e.prototype.__proto__=Error.prototype,s.AuthError=e},564); +__d(function(e,r,t,n){'use strict';var i=r(566),a=r(569);function o(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(e){var r=16*Math.random()|0;return('x'==e?r:3&r|8).toString(16)})}var s=[{name:'Permission',properties:{userId:{type:'string'},path:{type:'string'},mayRead:{type:'bool',optional:!1},mayWrite:{type:'bool',optional:!1},mayManage:{type:'bool',optional:!1},updatedAt:{type:'date',optional:!1}}}],u='_specialPurposeRealms';function m(e,r,t){if(e.hasOwnProperty(u)||(e[u]={}),e[u].hasOwnProperty(r))return Promise.resolve(e[u][r]);var n=i(e.server);if('http:'===n.protocol)n.set('protocol','realm:');else{if('https:'!==n.protocol)throw new Error("Unexpected user auth url: "+e.server);n.set('protocol','realms:')}n.set('pathname',"/~/"+r);var a={schema:t,sync:{user:e,url:n.href,fullSynchronization:!0}};return e.constructor._realmConstructor.open(a).then(function(t){return e[u][r]=t,t})}function c(e,r,t){return m(e,'__management',a).then(function(e){return new Promise(function(n,i){try{var a=void 0;e.addListener('change',function r(){if(a){var t=a.statusCode;if('number'==typeof t)if(e.removeListener('change',r),0===t)setTimeout(function(){return n(a)},1);else{var o=new Error(a.statusMessage);o.statusCode=t,o.managementObject=a,setTimeout(function(){return i(o)},1)}}}),e.write(function(){a=e.create(r,t)})}catch(e){i(e)}})})}var d=['none','read','write','admin'],f=['read','write','admin'];t.exports={getGrantedPermissions:function(e){var r=this;return e&&-1===['currentUser','otherUser','any'].indexOf(e)?Promise.reject(new Error("'"+e+"' is not a valid recipient type. Must be 'any', 'currentUser' or 'otherUser'.")):m(this,'__permission',s).then(function(t){var n=t.objects('Permission').filtered('NOT path ENDSWITH "__permission" AND NOT path ENDSWITH "__management"');return'currentUser'===e?n=n.filtered('userId = $0',r.identity):'otherUser'===e&&(n=n.filtered('userId != $0',r.identity)),n})},applyPermissions:function(e,r,t){if(!r)return Promise.reject(new Error('realmUrl must be specified'));if(-1===d.indexOf(t))return Promise.reject(new Error("'"+t+"' is not a valid access level. Must be "+d.join(', ')+"."));var n='read'===t||'write'===t||'admin'===t,i='write'===t||'admin'===t,a='admin'===t,s={id:o(),createdAt:new Date,updatedAt:new Date,realmUrl:r,mayRead:n,mayWrite:i,mayManage:a};return e.hasOwnProperty('userId')?s.userId=e.userId:(s.userId='',s.metadataKey=e.metadataKey,s.metadataValue=e.metadataValue),c(this,'PermissionChange',s)},offerPermissions:function(e,r,t){if(!e)return Promise.reject(new Error('realmUrl must be specified'));if(-1===f.indexOf(r))return Promise.reject(new Error("'"+r+"' is not a valid access level. Must be "+f.join(', ')+"."));var n='write'===r||'admin'===r,i='admin'===r;return c(this,'PermissionOffer',{id:o(),createdAt:new Date,updatedAt:new Date,expiresAt:t,realmUrl:e,mayRead:!0,mayWrite:n,mayManage:i}).then(function(e){return e.token})},acceptPermissionOffer:function(e){return e?c(this,'PermissionOfferResponse',{id:o(),createdAt:new Date,updatedAt:new Date,token:e}).then(function(e){return e.realmUrl}):Promise.reject(new Error('Offer token must be specified'))},invalidatePermissionOffer:function(e){return m(this,'__management',a).then(function(r){var t=void 0;if('string'==typeof e){var n=r.objects('PermissionOffer').filtered('token = $0',e);if(0===n.length)throw new Error("No permission offers with the given token were found");t=n[0]}else t=e;r.write(function(){t.expiresAt=new Date})})}}},565); +__d(function(t,e,o,s){'use strict';var r=e(567),a=e(568),n=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,h=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=[['#','hash'],['?','query'],function(t){return t.replace('\\','/')},['/','pathname'],['@','auth',1],[NaN,'host',void 0,1,1],[/:(\d+)$/,'port',void 0,1],[NaN,'hostname',void 0,1,1]],p={hash:1,query:1};function c(e){var o,s=t&&t.location||{},r={},a=typeof(e=e||s);if('blob:'===e.protocol)r=new u(unescape(e.pathname),{});else if('string'===a)for(o in r=new u(e,{}),p)delete r[o];else if('object'===a){for(o in e)o in p||(r[o]=e[o]);void 0===r.slashes&&(r.slashes=h.test(e.href))}return r}function l(t){var e=n.exec(t);return{protocol:e[1]?e[1].toLowerCase():'',slashes:!!e[2],rest:e[3]}}function u(t,e,o){if(!(this instanceof u))return new u(t,e,o);var s,n,h,p,f,m,y=i.slice(),d=typeof e,g=this,v=0;for('object'!==d&&'string'!==d&&(o=e,e=null),o&&'function'!=typeof o&&(o=a.parse),e=c(e),s=!(n=l(t||'')).protocol&&!n.slashes,g.slashes=n.slashes||s&&e.slashes,g.protocol=n.protocol||e.protocol||'',t=n.rest,n.slashes||(y[3]=[/(.*)/,'pathname']);v=t.length)return t=null,{done:!0,value:void 0};var n;switch(e){case'entries':n=[r,t[r]];break;case'keys':n=r;break;default:n=t[r]}return r++,{done:!1,value:n}}}})},configurable:!0,writable:!0}}),n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=n.values},572); +__d(function(n,t,r,o){var e=Array.prototype.slice;function u(n){var t=this,r=e.call(arguments,1);return new Promise(function(o,e){if('function'==typeof n&&(n=n.apply(t,r)),!n||'function'!=typeof n.next)return o(n);function u(t){var r;try{r=n.next(t)}catch(n){return e(n)}f(r)}function a(t){var r;try{r=n.throw(t)}catch(n){return e(n)}f(r)}function f(n){if(n.done)return o(n.value);var r=c.call(t,n.value);return r&&i(r)?r.then(u,a):a(new TypeError("You may only yield a function, promise, generator, array, or object, but the following object was passed: \""+String(n.value)+'"'))}u()})}function c(n){return n?i(n)?n:(function(n){var t=n.constructor;return!!t&&('GeneratorFunction'===t.name||'GeneratorFunction'===t.displayName||a(t.prototype))})(n)||a(n)?u.call(this,n):'function'==typeof n?function(n){var t=this;return new Promise(function(r,o){n.call(t,function(n,t){if(n)return o(n);arguments.length>2&&(t=e.call(arguments,1)),r(t)})})}.call(this,n):Array.isArray(n)?function(n){return Promise.all(n.map(c,this))}.call(this,n):Object==n.constructor?function(n){for(var t=new n.constructor,r=Object.keys(n),o=[],e=0;e>>3){case 1:i.name=e.string();break;case 2:i.location=e.string();break;case 3:i.image=e.string();break;case 4:i.identityPubKey=e.bytes();break;case 5:i.ethereumPubKey=e.bytes();break;case 6:i.chatIdentityPubKey=e.bytes();break;case 7:i.timestamp=e.int64();break;case 8:i.version=e.uint32();break;case 9:i.identityKeySignature=e.bytes();break;case 10:i.ethereumKeySignature=e.bytes();break;default:e.skipType(7&y)}}return i},e.decodeDelimited=function(e){return e instanceof u||(e=new u(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!o.isString(e.name)?"name: string expected":null!=e.location&&e.hasOwnProperty("location")&&!o.isString(e.location)?"location: string expected":null!=e.image&&e.hasOwnProperty("image")&&!o.isString(e.image)?"image: string expected":null!=e.identityPubKey&&e.hasOwnProperty("identityPubKey")&&!(e.identityPubKey&&"number"==typeof e.identityPubKey.length||o.isString(e.identityPubKey))?"identityPubKey: buffer expected":null!=e.ethereumPubKey&&e.hasOwnProperty("ethereumPubKey")&&!(e.ethereumPubKey&&"number"==typeof e.ethereumPubKey.length||o.isString(e.ethereumPubKey))?"ethereumPubKey: buffer expected":null!=e.chatIdentityPubKey&&e.hasOwnProperty("chatIdentityPubKey")&&!(e.chatIdentityPubKey&&"number"==typeof e.chatIdentityPubKey.length||o.isString(e.chatIdentityPubKey))?"chatIdentityPubKey: buffer expected":null!=e.timestamp&&e.hasOwnProperty("timestamp")&&!(o.isInteger(e.timestamp)||e.timestamp&&o.isInteger(e.timestamp.low)&&o.isInteger(e.timestamp.high))?"timestamp: integer|Long expected":null!=e.version&&e.hasOwnProperty("version")&&!o.isInteger(e.version)?"version: integer expected":null!=e.identityKeySignature&&e.hasOwnProperty("identityKeySignature")&&!(e.identityKeySignature&&"number"==typeof e.identityKeySignature.length||o.isString(e.identityKeySignature))?"identityKeySignature: buffer expected":null!=e.ethereumKeySignature&&e.hasOwnProperty("ethereumKeySignature")&&!(e.ethereumKeySignature&&"number"==typeof e.ethereumKeySignature.length||o.isString(e.ethereumKeySignature))?"ethereumKeySignature: buffer expected":null},e.fromObject=function(e){if(e instanceof r.Profile)return e;var t=new r.Profile;return null!=e.name&&(t.name=String(e.name)),null!=e.location&&(t.location=String(e.location)),null!=e.image&&(t.image=String(e.image)),null!=e.identityPubKey&&("string"==typeof e.identityPubKey?o.base64.decode(e.identityPubKey,t.identityPubKey=o.newBuffer(o.base64.length(e.identityPubKey)),0):e.identityPubKey.length&&(t.identityPubKey=e.identityPubKey)),null!=e.ethereumPubKey&&("string"==typeof e.ethereumPubKey?o.base64.decode(e.ethereumPubKey,t.ethereumPubKey=o.newBuffer(o.base64.length(e.ethereumPubKey)),0):e.ethereumPubKey.length&&(t.ethereumPubKey=e.ethereumPubKey)),null!=e.chatIdentityPubKey&&("string"==typeof e.chatIdentityPubKey?o.base64.decode(e.chatIdentityPubKey,t.chatIdentityPubKey=o.newBuffer(o.base64.length(e.chatIdentityPubKey)),0):e.chatIdentityPubKey.length&&(t.chatIdentityPubKey=e.chatIdentityPubKey)),null!=e.timestamp&&(o.Long?(t.timestamp=o.Long.fromValue(e.timestamp)).unsigned=!1:"string"==typeof e.timestamp?t.timestamp=parseInt(e.timestamp,10):"number"==typeof e.timestamp?t.timestamp=e.timestamp:"object"==typeof e.timestamp&&(t.timestamp=new o.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber())),null!=e.version&&(t.version=e.version>>>0),null!=e.identityKeySignature&&("string"==typeof e.identityKeySignature?o.base64.decode(e.identityKeySignature,t.identityKeySignature=o.newBuffer(o.base64.length(e.identityKeySignature)),0):e.identityKeySignature.length&&(t.identityKeySignature=e.identityKeySignature)),null!=e.ethereumKeySignature&&("string"==typeof e.ethereumKeySignature?o.base64.decode(e.ethereumKeySignature,t.ethereumKeySignature=o.newBuffer(o.base64.length(e.ethereumKeySignature)),0):e.ethereumKeySignature.length&&(t.ethereumKeySignature=e.ethereumKeySignature)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.name="",n.location="",n.image="",t.bytes===String?n.identityPubKey="":(n.identityPubKey=[],t.bytes!==Array&&(n.identityPubKey=o.newBuffer(n.identityPubKey))),t.bytes===String?n.ethereumPubKey="":(n.ethereumPubKey=[],t.bytes!==Array&&(n.ethereumPubKey=o.newBuffer(n.ethereumPubKey))),t.bytes===String?n.chatIdentityPubKey="":(n.chatIdentityPubKey=[],t.bytes!==Array&&(n.chatIdentityPubKey=o.newBuffer(n.chatIdentityPubKey))),o.Long){var i=new o.Long(0,0,!1);n.timestamp=t.longs===String?i.toString():t.longs===Number?i.toNumber():i}else n.timestamp=t.longs===String?"0":0;n.version=0,t.bytes===String?n.identityKeySignature="":(n.identityKeySignature=[],t.bytes!==Array&&(n.identityKeySignature=o.newBuffer(n.identityKeySignature))),t.bytes===String?n.ethereumKeySignature="":(n.ethereumKeySignature=[],t.bytes!==Array&&(n.ethereumKeySignature=o.newBuffer(n.ethereumKeySignature)))}return null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.location&&e.hasOwnProperty("location")&&(n.location=e.location),null!=e.image&&e.hasOwnProperty("image")&&(n.image=e.image),null!=e.identityPubKey&&e.hasOwnProperty("identityPubKey")&&(n.identityPubKey=t.bytes===String?o.base64.encode(e.identityPubKey,0,e.identityPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.identityPubKey):e.identityPubKey),null!=e.ethereumPubKey&&e.hasOwnProperty("ethereumPubKey")&&(n.ethereumPubKey=t.bytes===String?o.base64.encode(e.ethereumPubKey,0,e.ethereumPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.ethereumPubKey):e.ethereumPubKey),null!=e.chatIdentityPubKey&&e.hasOwnProperty("chatIdentityPubKey")&&(n.chatIdentityPubKey=t.bytes===String?o.base64.encode(e.chatIdentityPubKey,0,e.chatIdentityPubKey.length):t.bytes===Array?Array.prototype.slice.call(e.chatIdentityPubKey):e.chatIdentityPubKey),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?n.timestamp=t.longs===String?String(e.timestamp):e.timestamp:n.timestamp=t.longs===String?o.Long.prototype.toString.call(e.timestamp):t.longs===Number?new o.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),null!=e.identityKeySignature&&e.hasOwnProperty("identityKeySignature")&&(n.identityKeySignature=t.bytes===String?o.base64.encode(e.identityKeySignature,0,e.identityKeySignature.length):t.bytes===Array?Array.prototype.slice.call(e.identityKeySignature):e.identityKeySignature),null!=e.ethereumKeySignature&&e.hasOwnProperty("ethereumKeySignature")&&(n.ethereumKeySignature=t.bytes===String?o.base64.encode(e.ethereumKeySignature,0,e.ethereumKeySignature.length):t.bytes===Array?Array.prototype.slice.call(e.ethereumKeySignature):e.ethereumKeySignature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,y.util.toJSONOptions)},e})(),r),n.exports=s},590); +__d(function(t,s,c,e){"use strict";c.exports=s(592)},591); +__d(function(r,e,i,f){"use strict";var u=f;function t(){u.Reader._configure(u.BufferReader),u.util._configure()}u.build="minimal",u.Writer=e(593),u.BufferWriter=e(603),u.Reader=e(604),u.BufferReader=e(605),u.util=e(594),u.rpc=e(606),u.roots=e(608),u.configure=t,u.Writer._configure(u.BufferWriter),t()},592); +__d(function(t,i,n,e){"use strict";n.exports=a;var o,r=i(594),s=r.LongBits,h=r.base64,u=r.utf8;function p(t,i,n){this.fn=t,this.len=i,this.next=void 0,this.val=n}function l(){}function a(){this.len=0,this.head=new p(l,0,0),this.tail=this.head,this.states=null}function f(t,i,n){i[n]=255&t}function c(t,i){this.len=t,this.next=void 0,this.val=i}function y(t,i,n){for(;t.hi;)i[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)i[n++]=127&t.lo|128,t.lo=t.lo>>>7;i[n++]=t.lo}function d(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}a.create=r.Buffer?function(){return(a.create=function(){return new o})()}:function(){return new a},a.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(a.alloc=r.pool(a.alloc,r.Array.prototype.subarray)),a.prototype._push=function(t,i,n){return this.tail=this.tail.next=new p(t,i,n),this.len+=i,this},c.prototype=Object.create(p.prototype),c.prototype.fn=function(t,i,n){for(;t>127;)i[n++]=127&t|128,t>>>=7;i[n]=t},a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new c((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(y,10,s.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var i=s.from(t);return this._push(y,i.length(),i)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var i=s.from(t).zzEncode();return this._push(y,i.length(),i)},a.prototype.bool=function(t){return this._push(f,1,t?1:0)},a.prototype.fixed32=function(t){return this._push(d,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var i=s.from(t);return this._push(d,4,i.lo)._push(d,4,i.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(r.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(r.float.writeDoubleLE,8,t)};var x=r.Array.prototype.set?function(t,i,n){i.set(t,n)}:function(t,i,n){for(var e=0;e>>0;if(!i)return this._push(f,1,0);if(r.isString(t)){var n=a.alloc(i=h.length(t));h.decode(t,n,0),t=n}return this.uint32(i)._push(x,i,t)},a.prototype.string=function(t){var i=u.length(t);return i?this.uint32(i)._push(u.write,i,t):this._push(f,1,0)},a.prototype.fork=function(){return this.states=new(function(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states})(this),this.head=this.tail=new p(l,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new p(l,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,i=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=i,this.len+=n),this},a.prototype.finish=function(){for(var t=this.head.next,i=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,i,n),n+=t.len,t=t.next;return i},a._configure=function(t){o=t}},593); +__d(function(e,r,t,n){"use strict";var o=n;function f(e,r,t){for(var n=Object.keys(r),o=0;o0)},o.Buffer=(function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}})(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,r){var t=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(t.lo,t.hi,r):t.toNumber(Boolean(r))},o.merge=f,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var r={},t=0;t-1;--t)if(1===r[e[t]]&&void 0!==this[e[t]]&&null!==this[e[t]])return e[t]}},o.oneOfSetter=function(e){return function(r){for(var t=0;t1&&"="===r.charAt(e);)++a;return Math.ceil(3*r.length)/4-a};for(var i=new Array(64),o=new Array(123),c=0;c<64;)o[i[c]=c<26?c+65:c<52?c+71:c<62?c-4:c-59|43]=c++;t.encode=function(r,e,a){for(var n,t=null,o=[],c=0,s=0;e>2],n=(3&f)<<4,s=1;break;case 1:o[c++]=i[n|f>>4],n=(15&f)<<2,s=2;break;case 2:o[c++]=i[n|f>>6],o[c++]=i[63&f],s=0}c>8191&&((t||(t=[])).push(String.fromCharCode.apply(String,o)),c=0)}return s&&(o[c++]=i[n],o[c++]=61,1===s&&(o[c++]=61)),t?(c&&t.push(String.fromCharCode.apply(String,o.slice(0,c))),t.join("")):String.fromCharCode.apply(String,o.slice(0,c))};t.decode=function(r,e,a){for(var n,t=a,i=0,c=0;c1)break;if(void 0===(s=o[s]))throw Error("invalid encoding");switch(i){case 0:n=s,i=1;break;case 1:e[a++]=n<<2|(48&s)>>4,n=s,i=2;break;case 2:e[a++]=(15&n)<<4|(60&s)>>2,n=s,i=3;break;case 3:e[a++]=(3&n)<<6|s,i=0}}if(1===i)throw Error("invalid encoding");return a-t},t.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}},596); +__d(function(t,s,e,i){"use strict";function n(){this._listeners={}}e.exports=n,n.prototype.on=function(t,s,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:s,ctx:e||this}),this},n.prototype.off=function(t,s){if(void 0===t)this._listeners={};else if(void 0===s)this._listeners[t]=[];else for(var e=this._listeners[t],i=0;i0?0:2147483648,t,r);else if(isNaN(e))n(2143289344,t,r);else if(e>3.4028234663852886e38)n((o<<31|2139095040)>>>0,t,r);else if(e<1.1754943508222875e-38)n((o<<31|Math.round(e/1.401298464324817e-45))>>>0,t,r);else{var u=Math.floor(Math.log(e)/Math.LN2);n((o<<31|u+127<<23|8388607&Math.round(e*Math.pow(2,-u)*8388608))>>>0,t,r)}}function t(n,e,t){var r=n(e,t),o=2*(r>>31)+1,u=r>>>23&255,i=8388607&r;return 255===u?i?NaN:o*(1/0):0===u?1.401298464324817e-45*o*i:o*Math.pow(2,u-150)*(i+8388608)}n.writeFloatLE=e.bind(null,u),n.writeFloatBE=e.bind(null,i),n.readFloatLE=t.bind(null,a),n.readFloatBE=t.bind(null,l)})(),"undefined"!=typeof Float64Array?(function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),r=128===t[7];function o(n,r,o){e[0]=n,r[o]=t[0],r[o+1]=t[1],r[o+2]=t[2],r[o+3]=t[3],r[o+4]=t[4],r[o+5]=t[5],r[o+6]=t[6],r[o+7]=t[7]}function u(n,r,o){e[0]=n,r[o]=t[7],r[o+1]=t[6],r[o+2]=t[5],r[o+3]=t[4],r[o+4]=t[3],r[o+5]=t[2],r[o+6]=t[1],r[o+7]=t[0]}function i(n,r){return t[0]=n[r],t[1]=n[r+1],t[2]=n[r+2],t[3]=n[r+3],t[4]=n[r+4],t[5]=n[r+5],t[6]=n[r+6],t[7]=n[r+7],e[0]}function a(n,r){return t[7]=n[r],t[6]=n[r+1],t[5]=n[r+2],t[4]=n[r+3],t[3]=n[r+4],t[2]=n[r+5],t[1]=n[r+6],t[0]=n[r+7],e[0]}n.writeDoubleLE=r?o:u,n.writeDoubleBE=r?u:o,n.readDoubleLE=r?i:a,n.readDoubleBE=r?a:i})():(function(){function e(n,e,t,r,o,u){var i=r<0?1:0;if(i&&(r=-r),0===r)n(0,o,u+e),n(1/r>0?0:2147483648,o,u+t);else if(isNaN(r))n(0,o,u+e),n(2146959360,o,u+t);else if(r>1.7976931348623157e308)n(0,o,u+e),n((i<<31|2146435072)>>>0,o,u+t);else{var a;if(r<2.2250738585072014e-308)n((a=r/5e-324)>>>0,o,u+e),n((i<<31|a/4294967296)>>>0,o,u+t);else{var l=Math.floor(Math.log(r)/Math.LN2);1024===l&&(l=1023),n(4503599627370496*(a=r*Math.pow(2,-l))>>>0,o,u+e),n((i<<31|l+1023<<20|1048576*a&1048575)>>>0,o,u+t)}}}function t(n,e,t,r,o){var u=n(r,o+e),i=n(r,o+t),a=2*(i>>31)+1,l=i>>>20&2047,f=4294967296*(1048575&i)+u;return 2047===l?f?NaN:a*(1/0):0===l?5e-324*a*f:a*Math.pow(2,l-1075)*(f+4503599627370496)}n.writeDoubleLE=e.bind(null,u,0,4),n.writeDoubleBE=e.bind(null,i,4,0),n.readDoubleLE=t.bind(null,a,0,4),n.readDoubleBE=t.bind(null,l,4,0)})(),n}function u(n,e,t){e[t]=255&n,e[t+1]=n>>>8&255,e[t+2]=n>>>16&255,e[t+3]=n>>>24}function i(n,e,t){e[t]=n>>>24,e[t+1]=n>>>16&255,e[t+2]=n>>>8&255,e[t+3]=255&n}function a(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0}function l(n,e){return(n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3])>>>0}t.exports=o(o)},598); +__d(function(global,require,module,exports){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},599); +__d(function(r,t,n,e){"use strict";var o=e;o.length=function(r){for(var t=0,n=0,e=0;e191&&e<224?i[a++]=(31&e)<<6|63&r[t++]:e>239&&e<365?(e=((7&e)<<18|(63&r[t++])<<12|(63&r[t++])<<6|63&r[t++])-65536,i[a++]=55296+(e>>10),i[a++]=56320+(1023&e)):i[a++]=(15&e)<<12|(63&r[t++])<<6|63&r[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},o.write=function(r,t,n){for(var e,o,i=n,a=0;a>6|192,t[n++]=63&e|128):55296==(64512&e)&&56320==(64512&(o=r.charCodeAt(a+1)))?(e=65536+((1023&e)<<10)+(1023&o),++a,t[n++]=e>>18|240,t[n++]=e>>12&63|128,t[n++]=e>>6&63|128,t[n++]=63&e|128):(t[n++]=e>>12|224,t[n++]=e>>6&63|128,t[n++]=63&e|128);return n-i}},600); +__d(function(n,r,t,u){"use strict";t.exports=function(n,r,t){var u=t||8192,c=u>>>1,e=null,i=u;return function(t){if(t<1||t>c)return n(t);i+t>u&&(e=n(u),i=0);var f=r.call(e,i,i+=t);return 7&i&&(i=1+(7|i)),f}}},601); +__d(function(t,i,o,r){"use strict";o.exports=n;var h=i(594);function n(t,i){this.lo=t>>>0,this.hi=i>>>0}var e=n.zero=new n(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(t){if(0===t)return e;var i=t<0;i&&(t=-t);var o=t>>>0,r=(t-o)/4294967296>>>0;return i&&(r=~r>>>0,o=~o>>>0,++o>4294967295&&(o=0,++r>4294967295&&(r=0))),new n(o,r)},n.from=function(t){if("number"==typeof t)return n.fromNumber(t);if(h.isString(t)){if(!h.Long)return n.fromNumber(parseInt(t,10));t=h.Long.fromString(t)}return t.low||t.high?new n(t.low>>>0,t.high>>>0):e},n.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var i=1+~this.lo>>>0,o=~this.hi>>>0;return i||(o=o+1>>>0),-(i+4294967296*o)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(t){return h.Long?new h.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var l=String.prototype.charCodeAt;n.fromHash=function(t){return t===s?e:new n((l.call(t,0)|l.call(t,1)<<8|l.call(t,2)<<16|l.call(t,3)<<24)>>>0,(l.call(t,4)|l.call(t,5)<<8|l.call(t,6)<<16|l.call(t,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},n.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},n.prototype.length=function(){var t=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return 0===o?0===i?t<16384?t<128?1:2:t<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:o<128?9:10}},602); +__d(function(t,e,n,r){"use strict";n.exports=u;var o=e(593);(u.prototype=Object.create(o.prototype)).constructor=u;var i=e(594),s=i.Buffer;function u(){o.call(this)}u.alloc=function(t){return(u.alloc=i._Buffer_allocUnsafe)(t)};var f=s&&s.prototype instanceof Uint8Array&&"set"===s.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(f,e,t),this},u.prototype.string=function(t){var e=s.byteLength(t);return this.uint32(e),e&&this._push(c,e,t),this}},603); +__d(function(t,i,s,r){"use strict";s.exports=f;var o,h=i(594),n=h.LongBits,e=h.utf8;function u(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var p,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")};function a(){var t=new n(0,0),i=0;if(!(this.len-this.pos>4)){for(;i<3;++i){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*i)>>>0,t}for(;i<4;++i)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(i=0,this.len-this.pos>4){for(;i<5;++i)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}else for(;i<5;++i){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw u(this,8);return new n(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=h.Buffer?function(t){return(f.create=function(t){return h.Buffer.isBuffer(t)?new o(t):l(t)})(t)}:l,f.prototype._slice=h.Array.prototype.subarray||h.Array.prototype.slice,f.prototype.uint32=(p=4294967295,function(){if(p=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return p;if(p=(p|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return p;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return p}),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=h.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=h.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),i=this.pos,s=this.pos+t;if(s>this.len)throw u(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(i,s):i===s?new this.buf.constructor(0):this._slice.call(this.buf,i,s)},f.prototype.string=function(){var t=this.bytes();return e.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw u(this)}while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){o=t;var i=h.Long?"toLong":"toNumber";h.merge(f.prototype,{int64:function(){return a.call(this)[i](!1)},uint64:function(){return a.call(this)[i](!0)},sint64:function(){return a.call(this).zzDecode()[i](!1)},fixed64:function(){return b.call(this)[i](!0)},sfixed64:function(){return b.call(this)[i](!1)}})}},604); +__d(function(t,o,r,e){"use strict";r.exports=p;var i=o(604);(p.prototype=Object.create(i.prototype)).constructor=p;var s=o(594);function p(t){i.call(this,t)}s.Buffer&&(p.prototype._slice=s.Buffer.prototype.slice),p.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},605); +__d(function(c,e,i,t){"use strict";t.Service=e(607)},606); +__d(function(e,t,r,i){"use strict";r.exports=o;var n=t(594);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,i,o,c){if(!o)throw TypeError("request must be specified");var l=this;if(!c)return n.asPromise(e,l,t,r,i,o);if(l.rpcImpl)try{return l.rpcImpl(t,r[l.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return l.emit("error",e,t),c(e);if(null!==r){if(!(r instanceof i))try{r=i[l.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return l.emit("error",e,t),c(e)}return l.emit("data",r,t),c(null,r)}l.end(!0)})}catch(e){return l.emit("error",e,t),void setTimeout(function(){c(e)},0)}else setTimeout(function(){c(Error("already ended"))},0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},607); +__d(function(t,s,c,e){"use strict";c.exports={}},608); +__d(function(e,t,r,a){r.exports={name:"Pangea",version:"1.2.0",private:!0,scripts:{start:"node node_modules/react-native/local-cli/cli.js start",lint:"eslint src __tests__ __mocks__","lint:fix":"eslint --fix src __tests__ __mocks__",test:"flow && jest","test:update":"jest -u","test:coverage":"flow && jest --coverage --forceExit","test:coveralls":"yarn test:coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",ios:"flow && node_modules/.bin/react-native run-ios",android:"flow && node_modules/.bin/react-native run-android",postinstall:"./node_modules/.bin/rn-nodeify --install 'stream,buffer,vm,crypto,string_decoder,events,assert' --hack",docs:"node_modules/.bin/documentation build src/services/container.js -f md > docs/main.md","build:ios":"react-native bundle --entry-file='index.js' --bundle-output='./ios/Pangea/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'","build:protofile":"pbjs -t static-module -w commonjs -o src/services/upstream/compiled.js src/services/upstream/request.proto src/services/upstream/response.proto","build:profile_protofile":"pbjs -t static-module -w commonjs -o src/services/chat/compiled.js src/services/chat/profile.proto"},dependencies:{assert:"^1.4.1","async-to-generator":"^1.1.0",awilix:"^3.0.1","base64-arraybuffer":"^0.1.5","bignumber.js":"^5.0.0","bn.js":"^4.11.8",buffer:"^4.9.1",co:"^4.6.0",ethers:"^3.0.25",eventemitter3:"^3.1.0",events:"^1.1.1","fetch-everywhere":"^1.0.5","flow-bin":"^0.57.0","hoist-non-react-statics":"^2.3.1",i18next:"^10.3.0",lodash:"^4.17.4","native-base":"^2.3.5","prop-types":"^15.6.0",react:"16.0.0","react-native":"0.51.0","react-native-actionsheet":"^2.4.2","react-native-camera":"1.1.4","react-native-config":"^0.11.2","react-native-crypto":"^2.1.2","react-native-dropdownalert":"^3.1.2","react-native-eth-daemon":"git+https://github.com/Bit-Nation/react-native-eth-daemon.git#development","react-native-gifted-chat":"^0.3.0","react-native-image-crop-picker":"^0.19.1","react-native-keyboard-aware-scroll-view":"^0.4.3","react-native-modal":"^4.1.1","react-native-modal-dropdown":"^0.6.0","react-native-navigation":"^1.1.319","react-native-qrcode":"^0.2.6","react-native-qrcode-scanner":"0.0.29","react-native-randombytes":"^3.0.0","react-native-responsive":"^1.0.2","react-native-segmented-control-tab":"3.3.1","react-native-sensitive-info":"^5.1.0","react-native-shake":"^3.2.2","react-native-simple-dialogs":"^0.3.1","react-native-swiper":"^1.5.13","react-native-vector-icons":"^4.4.2","react-navigation":"^1.0.0-beta.22","react-redux":"^5.0.6","readable-stream":"^1.0.33",realm:"2.8.0",recompose:"^0.27.1","reconnecting-websocket":"^4.0.0-rc5",redux:"^3.7.2","redux-logger":"^3.0.6","redux-persist":"^5.4.0","redux-saga":"^0.16.0","redux-thunk":"^2.2.0","rn-nodeify":"^8.3.0","saga-monitor":"git+https://github.com/clarketm/saga-monitor.git","socket.io-client":"^2.0.4","stream-browserify":"^1.0.0",string_decoder:"^0.10.31","unique-string":"^1.0.0",uuid4:"^1.0.0","vm-browserify":"0.0.4"},devDependencies:{"babel-eslint":"^8.2.2","babel-jest":"22.0.3","babel-preset-es2015":"^6.24.1","babel-preset-react-native":"4.0.0",color:"^3.0.0",coveralls:"^3.0.0",documentation:"^5.3.5",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"^4.18.0","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.12.2","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","eslint-plugin-react-native":"^3.2.1","eslint-plugin-require-jsdoc":"^1.0.4","ethers-cli":"^4.0.0","flow-bin":"^0.57.0",jest:"22.0.3",protobufjs:"^6.8.6","react-dom":"^16.2.0","react-native-mock":"^0.3.1","react-test-renderer":"16.0.0","redux-mock-store":"^1.5.1",websocket:"^1.0.26"},jest:{preset:"react-native",setupTestFrameworkScriptFile:"./enzymeInit.js",transformIgnorePatterns:["/node_modules","node_modules/(realm)/"],moduleNameMapper:{"^image![a-zA-Z0-9$_-]+$":"GlobalImageStub","^[@./a-zA-Z0-9$_-]+\\.(png|gif)$":"RelativeImageStub"},collectCoverageFrom:["!**/styles.js","**/**/**/**/*.{js,jsx}","!**/node_modules/**","!**/coverage/**","!**/vendor/**","!src/services/upstream/compiled.js"],globals:{WebSocket:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}}},"react-native":{crypto:"react-native-crypto",_stream_transform:"readable-stream/transform",_stream_readable:"readable-stream/readable",_stream_writable:"readable-stream/writable",_stream_duplex:"readable-stream/duplex",_stream_passthrough:"readable-stream/passthrough",stream:"stream-browserify",vm:"vm-browserify"},browser:{crypto:"react-native-crypto",_stream_transform:"readable-stream/transform",_stream_readable:"readable-stream/readable",_stream_writable:"readable-stream/writable",_stream_duplex:"readable-stream/duplex",_stream_passthrough:"readable-stream/passthrough",stream:"stream-browserify",vm:"vm-browserify"},rnpm:{assets:["assets/fonts/Roboto"]}}},609); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=c;var n=t(350),s=t(528),u=t(611),i=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.call)(u.startDatabaseListening),(0,n.takeEvery)(s.ADD_NEW_MESSAGE,u.addNewMessageSaga)]);case 2:case"end":return e.stop()}},i,this)}},610); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.buildMessageObject=void 0,n.buildMessagesResults=b,n.onCurrentAccountChange=p,n.startDatabaseListening=f,n.addNewMessageSaga=x;var a=t(350),s=t(528),c=t(549),u=babelHelpers.interopRequireDefault(c),o=t(612),i=t(548),l=regeneratorRuntime.mark(p),d=regeneratorRuntime.mark(f),g=regeneratorRuntime.mark(x);function b(e,t){return null===t?null:e.objects('MessageJob').filtered("accountId == '"+t+"'")}function p(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.put)((0,s.messagesUpdated)(e.map(o.convertFromDatabase)));case 2:case"end":return t.stop()}},l,this)}function f(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(i.currentAccountBasedUpdate,b,p);case 2:case"end":return e.stop()}},d,this)}var m=n.buildMessageObject=function(e,t,r,n,a){return{id:e,accountId:t,msg:r,params:JSON.stringify(n),interpret:a,createdAt:new Date}};function x(e){var t,r,n,s,c,l,d;return regeneratorRuntime.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,u.default;case 2:return t=g.sent,r=e.params||{},n=!1!==e.interpret,s=t.objects('MessageJob').sorted('id',!0),c=1,s.length>0&&(c=s[0].id+1),g.next=10,(0,a.call)(i.getCurrentAccountId);case 10:if(l=g.sent,null!==(d=(0,o.convertToDatabase)(m(c,l,e.message,r,n)))){g.next=17;break}return g.next=15,(0,a.call)(e.callback,!1);case 15:g.next=20;break;case 17:return t.write(function(){t.create('MessageJob',d)}),g.next=20,(0,a.call)(e.callback,!0);case 20:case"end":return g.stop()}},g,this)}},611); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.convertFromDatabase=function(e){return{id:e.id,accountId:e.accountId,msg:e.msg,params:e.params,interpret:e.interpret,createdAt:e.createdAt}},a.convertToDatabase=function(e){return{id:e.id,accountId:e.accountId,heading:'',msg:e.msg,params:e.params||'',version:1,display:!0,interpret:e.interpret||!0,createdAt:e.createdAt}},t(574)},612); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=A;var n=t(350),E=t(534),s=t(614),S=regeneratorRuntime.mark(A);function A(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)(E.FETCH_ALL_CHATS,s.fetchAllChats),(0,n.takeEvery)(E.GET_PROFILE,s.getProfileActionHandler),(0,n.takeEvery)(E.NEW_CHAT_SESSION,s.createChatSession),(0,n.takeEvery)(E.OPEN_CHAT_SESSION,s.openChatSession),(0,n.takeEvery)(E.SEND_MESSAGE,s.sendMessage),(0,n.takeEvery)(E.LOAD_CHAT_MESSAGES,s.loadMessages),(0,n.takeEvery)(E.PANTHALASSA_MESSAGE_PERSISTED,s.handlePanthalassaMessagePersisted),(0,n.takeEvery)(E.CHANGE_UNREAD_STATUS,s.changeUnreadStatus)]);case 2:case"end":return e.stop()}},S,this)}},613); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProfile=w,n.getProfileActionHandler=R,n.createChatSession=A,n.openChatSession=M,n.fetchAllChats=C,n.loadMessages=E,n.sendMessage=_,n.handlePanthalassaMessagePersisted=T,n.changeUnreadStatus=H;var a=t(350),s=t(13),c=t(534),u=t(549),i=babelHelpers.interopRequireDefault(u),l=t(589),o=babelHelpers.interopRequireDefault(l),f=t(548),p=t(535),d=t(545),x=t(516),g=regeneratorRuntime.mark(w),h=regeneratorRuntime.mark(R),b=regeneratorRuntime.mark(A),m=regeneratorRuntime.mark(M),y=regeneratorRuntime.mark(C),k=regeneratorRuntime.mark(E),v=regeneratorRuntime.mark(_),S=regeneratorRuntime.mark(T),K=regeneratorRuntime.mark(H);function P(e){var t,r,n,a,c,u;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,regeneratorRuntime.awrap(i.default);case 2:if(t=l.sent,0!==(r=t.objects('Profile').filtered("identityKey == '"+e.ethereumPubKey+"'")).length){l.next=13;break}return n=s.Buffer.from(e.ethereumPubKey,'base64').toString('hex'),l.next=8,regeneratorRuntime.awrap((0,d.panthalassaEthPubToAddress)(n));case 8:return a=l.sent,c={name:e.name,location:e.location||'',image:e.image||'',identityKey:s.Buffer.from(e.identityPubKey,'base64').toString('hex'),ethereumPublicKey:n,ethereumAddress:a,chatIdKey:s.Buffer.from(e.chatIdentityPubKey,'base64').toString('hex'),timestamp:new Date(1e3*e.timestamp),version:e.version,identityKeySignature:s.Buffer.from(e.identityKeySignature,'base64').toString('hex'),ethereumKeySignature:s.Buffer.from(e.ethereumKeySignature,'base64').toString('hex')},u=null,t.write(function(){u=t.create('Profile',c,!0)}),l.abrupt("return",u);case 13:return l.abrupt("return",r[0]);case 14:case"end":return l.stop()}},null,this)}function w(e){var t,r,n,s,c;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,i.default;case 2:return t=u.sent,u.next=5,(0,a.call)([t,'objects'],'Profile');case 5:return r=u.sent,u.next=8,(0,a.call)([r,'filtered'],"identityKey == '"+e+"'");case 8:return r=u.sent,u.next=11,r[0]||null;case 11:if(null==(n=u.sent)){u.next=16;break}return u.next=15,n;case 15:return u.abrupt("return",u.sent);case 16:return u.next=18,(0,a.call)(o.default.getProfile,e);case 18:return s=u.sent,u.next=21,(0,a.call)(P,s);case 21:return c=u.sent,u.abrupt("return",c);case 23:case"end":return u.stop()}},g,this)}function R(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,a.call)(w,e.identityKey);case 3:return t=r.sent,r.next=6,(0,a.call)(e.callback,t,null);case 6:return r.abrupt("return",r.sent);case 9:return r.prev=9,r.t0=r.catch(0),r.next=13,(0,a.call)(e.callback,null,r.t0);case 13:return r.abrupt("return",r.sent);case 14:case"end":return r.stop()}},h,this,[[0,9]])}function A(e){var t,r,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,a.call)(f.getCurrentAccountId);case 2:return t=s.sent,r={publicKey:e.profile.identityKey,profile:e.profile,accountId:t,messages:[],unreadMessages:!1},s.next=6,(0,a.put)((0,c.addCreatedChatSession)(r));case 6:return s.next=8,(0,a.put)((0,c.selectProfile)(e.profile));case 8:return s.next=10,(0,a.call)(o.default.getPublicKey);case 10:return n=s.sent,s.next=13,(0,a.call)(e.callback,{status:'success',userPublicKey:n});case 13:case"end":return s.stop()}},b,this)}function M(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,a.call)(w,e.publicKey,!1);case 3:if(null!=(t=n.sent)){n.next=8;break}return n.next=7,(0,a.call)(e.callback,{status:'fail'});case 7:return n.abrupt("return");case 8:return n.next=10,(0,a.put)((0,c.selectProfile)(t));case 10:return n.next=12,(0,a.call)(o.default.getPublicKey);case 12:return r=n.sent,n.next=15,(0,a.call)(e.callback,{status:'success',userPublicKey:r});case 15:n.next=21;break;case 17:return n.prev=17,n.t0=n.catch(0),n.next=21,(0,a.call)(e.callback,{status:'fail'});case 21:case"end":return n.stop()}},m,this,[[0,17]])}function C(){var e,t,r,n,u,i,l,p,d,x,g,h;return regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,a.call)(f.getCurrentAccount);case 2:return e=b.sent,b.next=5,(0,a.call)(o.default.fetchAllChats);case 5:t=b.sent,r=[],n=t,u=Array.isArray(n),i=0,n=u?n:n["function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator"]();case 8:if(!u){b.next=14;break}if(!(i>=n.length)){b.next=11;break}return b.abrupt("break",36);case 11:l=n[i++],b.next=18;break;case 14:if(!(i=n.next()).done){b.next=17;break}return b.abrupt("break",36);case 17:l=i.value;case 18:return p=l,b.prev=19,d=p.chat,x=s.Buffer.from(d,'base64').toString('hex'),b.next=24,(0,a.call)(w,x);case 24:return g=b.sent,b.next=27,(0,a.call)(o.default.loadMessages,e,g,'0',1);case 27:h=b.sent,null!=g&&r.push({publicKey:x,profile:g,accountId:e.id,unreadMessages:p.unread_messages,messages:h}),b.next=34;break;case 31:b.prev=31,b.t0=b.catch(19),console.log("[TEST] Fail to get profile with error: "+b.t0.message);case 34:b.next=8;break;case 36:return b.next=38,(0,a.put)((0,c.chatsUpdated)(r));case 38:case"end":return b.stop()}},y,this,[[19,31]])}function E(e){var t,r,n,s,u,l,p;return regeneratorRuntime.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t=e.recipientPublicKey,r=e.fromMessageId,g.next=3,i.default;case 3:return n=g.sent,g.next=6,(0,a.call)([n,'objects'],'Profile');case 6:return s=g.sent,g.next=9,(0,a.call)([s,'filtered'],"identityKey == '"+t+"'");case 9:return s=g.sent,g.next=12,s[0]||null;case 12:return u=g.sent,g.next=15,(0,a.call)(f.getCurrentAccount);case 15:if(l=g.sent,null==u){g.next=32;break}return g.prev=17,g.next=20,(0,a.put)((0,c.showSpinner)());case 20:return g.next=22,(0,a.call)(o.default.loadMessages,l,u,r,x.CHAT_MESSAGES_PAGE);case 22:return p=g.sent,g.next=25,(0,a.put)((0,c.chatMessagesLoaded)(t,p,x.CHAT_MESSAGES_PAGE));case 25:if(!(p.length>0)){g.next=28;break}return g.next=28,(0,a.call)(d.panthalassaMarkMessagesAsRead,t);case 28:return g.prev=28,g.next=31,(0,a.put)((0,c.hideSpinner)());case 31:return g.finish(28);case 32:case"end":return g.stop()}},k,this,[[17,,28,32]])}function _(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(o.default.sendMessage,e.recipientPublicKey,e.message);case 2:case"end":return t.stop()}},v,this)}function T(e){var t,r,n,s,u;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload.chat,i.prev=1,i.next=4,(0,a.call)(w,t);case 4:return r=i.sent,i.next=7,(0,a.call)(f.getCurrentAccount);case 7:return n=i.sent,i.next=10,(0,a.select)();case 10:if(s=i.sent,-1!==s.chat.chats.findIndex(function(e){return e.publicKey===t})){i.next=15;break}return i.next=15,(0,a.call)(A,(0,c.newChatSession)(r,function(){}));case 15:if(!r){i.next=22;break}return u=(0,p.createGiftedChatMessageObjects)(n,r,[e.payload]),i.next=19,(0,a.put)((0,c.addChatMessage)(t,u[0]));case 19:if(!0!==e.payload.received){i.next=22;break}return i.next=22,(0,a.put)((0,c.unreadStatusChanged)(t,!0));case 22:i.next=27;break;case 24:i.prev=24,i.t0=i.catch(1),console.log("[TEST] Handle message persisted failed: "+i.t0.message);case 27:case"end":return i.stop()}},S,this,[[1,24]])}function H(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,a.call)(d.panthalassaMarkMessagesAsRead,e.recipientPublicKey);case 3:return t.next=5,(0,a.put)((0,c.unreadStatusChanged)(e.recipientPublicKey,e.hasUnreadMessages));case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log("[CHAT] Failed to set messages as read for "+e.recipientPublicKey);case 10:case"end":return t.stop()}},K,this,[[0,7]])}},614); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var a=r(350),u=r(616),o=r(508),c=r(683),i=regeneratorRuntime.mark(_);function _(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)([o.CURRENT_ACCOUNT_ID_CHANGED,c.START_NAVIGATION],u.launchCorrectFlow);case 2:case"end":return e.stop()}},i,this)}},615); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.launchCorrectFlow=S,r.launchLoggedInFlow=C,r.launchLoggedOutFlow=E;var a=t(350),s=t(617),c=t(627),l=t(548),u=t(682),o=t(508),p=regeneratorRuntime.mark(S),i=regeneratorRuntime.mark(C);function S(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=void 0,e.type!==o.CURRENT_ACCOUNT_ID_CHANGED){r.next=5;break}t=e.currentAccountId,r.next=8;break;case 5:return r.next=7,(0,a.call)(l.getCurrentAccountId);case 7:t=r.sent;case 8:if(null!==t){r.next=16;break}return r.next=11,(0,a.call)(l.accountsPresent);case 11:return n=r.sent,r.next=14,(0,a.call)(E,n);case 14:r.next=18;break;case 16:return r.next=18,(0,a.call)(C);case 18:case"end":return r.stop()}},p,this)}function C(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(u.isMigration);case 2:e.sent?s.Navigation.startSingleScreenApp({screen:(0,c.screen)('MIGRATION_SCREEN'),appStyle:babelHelpers.extends({},c.appStyle)}):s.Navigation.startTabBasedApp({tabs:[(0,c.screen)('DASHBOARD_SCREEN'),(0,c.screen)('CHAT_LIST_SCREEN'),(0,c.screen)('NATIONS_SCREEN'),(0,c.screen)('WALLET_SCREEN'),(0,c.screen)('SETTINGS_SCREEN')],tabsStyle:babelHelpers.extends({},c.tabsStyle),appStyle:babelHelpers.extends({},c.appStyle)});case 4:case"end":return e.stop()}},i,this)}function E(e){s.Navigation.startSingleScreenApp({screen:!0===e?(0,c.screen)('ACCOUNTS_ACCESS_SCREEN'):(0,c.screen)('ACCOUNTS_SCREEN'),appStyle:babelHelpers.extends({},c.appStyle)})}},616); +__d(function(n,o,t,_){t.exports=o(618)},617); +__d(function(e,t,a,i){var r=t(619),l=babelHelpers.interopRequireDefault(r),n=t(624),u=babelHelpers.interopRequireDefault(n),o=t(625),b=babelHelpers.interopRequireDefault(o),f=t(626),p=babelHelpers.interopRequireDefault(f),s=t(623);a.exports={Navigation:l.default,SharedElementTransition:u.default,NativeEventsReceiver:b.default,ScreenVisibilityListener:p.default,Navigator:s.Navigator}},618); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),s=babelHelpers.interopRequireDefault(a),i=t(17),o=t(620),u=babelHelpers.interopRequireDefault(o),l=t(623),c=t(621),p=babelHelpers.interopRequireDefault(c),d={},f={};function h(e,t){d[e]=t,i.AppRegistry.registerComponent(e,t)}n.default={getRegisteredScreen:function(e){var t=d[e];if(t)return t();console.error("Navigation.getRegisteredScreen: "+e+" used but not yet registered")},getCurrentlyVisibleScreenId:function(){return u.default.getCurrentlyVisibleScreenId()},registerComponent:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r&&n?(function(e,t,r,n,a){var i=function(){var i,o,u=t();return o=i=(function(t){function i(e){babelHelpers.classCallCheck(this,i);var t=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t.state={internalProps:babelHelpers.extends({},e,p.default.load(e.screenInstanceID||e.passPropsKey))},t}return babelHelpers.inherits(i,t),babelHelpers.createClass(i,[{key:"componentWillReceiveProps",value:function(e){this.setState({internalProps:babelHelpers.extends({},p.default.load(this.props.screenInstanceID||this.props.passPropsKey),e)})}},{key:"render",value:function(){return s.default.createElement(n,babelHelpers.extends({store:r},a),s.default.createElement(u,babelHelpers.extends({testID:e,navigator:this.navigator},this.state.internalProps)))}}]),i})(l.Screen),i.navigatorStyle=u.navigatorStyle||{},i.navigatorButtons=u.navigatorButtons||{},o};return h(e,i),i})(e,t,r,n,a):(function(e,t){var r=function(){var r,n,a=t();return a||console.error("Navigation: "+e+" registration result is 'undefined'"),n=r=(function(t){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={internalProps:babelHelpers.extends({},e,p.default.load(e.screenInstanceID||e.passPropsKey))},t}return babelHelpers.inherits(r,t),babelHelpers.createClass(r,[{key:"componentWillReceiveProps",value:function(e){this.setState({internalProps:babelHelpers.extends({},p.default.load(this.props.screenInstanceID||this.props.passPropsKey),e)})}},{key:"render",value:function(){return s.default.createElement(a,babelHelpers.extends({testID:e,navigator:this.navigator},this.state.internalProps))}}]),r})(l.Screen),r.navigatorStyle=a.navigatorStyle||{},r.navigatorButtons=a.navigatorButtons||{},n};return h(e,r),r})(e,t)},showModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showModal(e)},dismissModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissModal(e)},dismissAllModals:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissAllModals(e)},showSnackbar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showSnackbar(e)},showLightBox:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showLightBox(e)},dismissLightBox:function(){return u.default.dismissLightBox()},showInAppNotification:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.showInAppNotification(e)},dismissInAppNotification:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.dismissInAppNotification(e)},startTabBasedApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.default.startTabBasedApp(e));case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while starting app: "+t.t0);case 9:case"end":return t.stop()}},null,this,[[0,6]])},startSingleScreenApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.default.startSingleScreenApp(e));case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while starting app: "+t.t0);case 9:case"end":return t.stop()}},null,this,[[0,6]])},setEventHandler:function(e,t){f[e]=t},clearEventHandler:function(e){delete f[e]},handleDeepLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.link,r=e.payload;if(t){var n=babelHelpers.extends({type:'DeepLink',link:t},r?{payload:r}:{});for(var a in f)f[a](n)}},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(u.default.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},619); +__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=o(51),a=(babelHelpers.interopRequireDefault(r),o(17)),s=(babelHelpers.interopRequireDefault(a),o(366)),i=babelHelpers.interopRequireDefault(s),l=o(621),c=babelHelpers.interopRequireDefault(l),u=o(619),p=babelHelpers.interopRequireDefault(u),d=o(622),B=babelHelpers.interopRequireWildcard(d),g=o(138);function b(e){var o=e;return w(o),y(o,e.drawer),H(o),o.passProps=e.passProps,v(o,o.navigatorID),o.screenId=o.screen,o=I(o=T(o))}function f(e){return e.portraitOnlyMode||'portrait'===i.default.get(e,'appStyle.orientation')?'portrait':e.landscaptOnlyMode||'landscape'===i.default.get(e,'appStyle.orientation')?'landscape':'auto'}function v(e,o){e.topTabs=i.default.cloneDeep(e.topTabs),i.default.forEach(i.default.get(e,'topTabs'),function(e){w(e),o&&(e.navigatorID=o),e.screen=e.screenId,e.icon&&S(e),y(e),I(e),H(e),e=T(e)})}function T(e){var o=e.navigatorStyle;return o?(e.styleParams=C(o),i.default.omit(e,['navigatorStyle'])):e}function C(e){if(!e)return null;var o={orientation:e.orientation,screenAnimationType:e.screenAnimationType,statusBarColor:(0,a.processColor)(e.statusBarColor),statusBarHidden:e.statusBarHidden,statusBarTextColorScheme:e.statusBarTextColorScheme,drawUnderStatusBar:e.drawUnderStatusBar,topBarReactView:e.navBarCustomView,topBarReactViewAlignment:e.navBarComponentAlignment,topBarReactViewInitialProps:e.navBarCustomViewInitialProps,topBarColor:(0,a.processColor)(e.navBarBackgroundColor),topBarTransparent:e.navBarTransparent,topBarTranslucent:e.navBarTranslucent,topBarElevationShadowEnabled:e.topBarElevationShadowEnabled,topBarCollapseOnScroll:e.topBarCollapseOnScroll,topBarBorderColor:(0,a.processColor)(e.topBarBorderColor),topBarBorderWidth:e.topBarBorderWidth&&""+e.topBarBorderWidth,collapsingToolBarImage:e.collapsingToolBarImage,collapsingToolBarComponent:e.collapsingToolBarComponent,collapsingToolBarComponentHeight:e.collapsingToolBarComponentHeight,collapsingToolBarCollapsedColor:(0,a.processColor)(e.collapsingToolBarCollapsedColor),collapsingToolBarExpendedColor:(0,a.processColor)(e.collapsingToolBarExpendedColor),showTitleWhenExpended:e.showTitleWhenExpended,expendCollapsingToolBarOnTopTabChange:e.expendCollapsingToolBarOnTopTabChange,titleBarHidden:e.navBarHidden,titleBarHideOnScroll:e.navBarHideOnScroll,titleBarTitleColor:(0,a.processColor)(e.navBarTextColor),titleBarSubtitleColor:(0,a.processColor)(e.navBarSubtitleColor),titleBarSubtitleFontSize:e.navBarSubtitleFontSize,titleBarSubtitleFontFamily:e.navBarSubtitleFontFamily,titleBarButtonColor:(0,a.processColor)(e.navBarButtonColor),titleBarButtonFontFamily:e.navBarButtonFontFamily,titleBarDisabledButtonColor:(0,a.processColor)(e.titleBarDisabledButtonColor),titleBarTitleFontFamily:e.navBarTextFontFamily,titleBarTitleFontSize:e.navBarTextFontSize,titleBarTitleFontBold:e.navBarTextFontBold,titleBarTitleTextCentered:e.navBarTitleTextCentered,titleBarSubTitleTextCentered:e.navBarSubTitleTextCentered,titleBarHeight:e.navBarHeight,titleBarTopPadding:e.navBarTopPadding,backButtonHidden:e.backButtonHidden,topTabsHidden:e.topTabsHidden,contextualMenuStatusBarColor:(0,a.processColor)(e.contextualMenuStatusBarColor),contextualMenuBackgroundColor:(0,a.processColor)(e.contextualMenuBackgroundColor),contextualMenuButtonsColor:(0,a.processColor)(e.contextualMenuButtonsColor),drawBelowTopBar:!e.drawUnderNavBar,topTabTextColor:(0,a.processColor)(e.topTabTextColor),topTabTextFontFamily:e.topTabTextFontFamily,topTabIconColor:(0,a.processColor)(e.topTabIconColor),selectedTopTabIconColor:(0,a.processColor)(e.selectedTopTabIconColor),selectedTopTabTextColor:(0,a.processColor)(e.selectedTopTabTextColor),selectedTopTabIndicatorHeight:e.selectedTopTabIndicatorHeight,selectedTopTabIndicatorColor:(0,a.processColor)(e.selectedTopTabIndicatorColor),topTabsScrollable:e.topTabsScrollable,topTabsHeight:e.topTabsHeight,screenBackgroundColor:(0,a.processColor)(e.screenBackgroundColor),rootBackgroundImageName:e.rootBackgroundImageName,drawScreenAboveBottomTabs:!e.drawUnderTabBar,initialTabIndex:e.initialTabIndex,bottomTabsColor:(0,a.processColor)(e.tabBarBackgroundColor),bottomTabsButtonColor:(0,a.processColor)(e.tabBarButtonColor),bottomTabsSelectedButtonColor:(0,a.processColor)(e.tabBarSelectedButtonColor),bottomTabsHidden:e.tabBarHidden,bottomTabsHiddenOnScroll:e.bottomTabsHiddenOnScroll,bottomTabsHideShadow:e.tabBarHideShadow,forceTitlesDisplay:e.forceTitlesDisplay,bottomTabBadgeTextColor:(0,a.processColor)(e.bottomTabBadgeTextColor),bottomTabBadgeBackgroundColor:(0,a.processColor)(e.bottomTabBadgeBackgroundColor),bottomTabFontFamily:e.tabFontFamily,bottomTabFontSize:e.tabFontSize,bottomTabSelectedFontSize:e.selectedTabFontSize,navigationBarColor:(0,a.processColor)(e.navigationBarColor)};if(e.disabledButtonColor&&(o.titleBarDisabledButtonColor=(0,a.processColor)(e.disabledButtonColor)),e.collapsingToolBarImage){i.default.isString(e.collapsingToolBarImage)&&(o.collapsingToolBarImage=e.collapsingToolBarImage);var t=g(e.collapsingToolBarImage);t&&(o.collapsingToolBarImage=t.uri)}if(i.default.isUndefined(o.expendCollapsingToolBarOnTopTabChange)&&(o.expendCollapsingToolBarOnTopTabChange=!0),o.topBarReactViewInitialProps){var n=i.default.uniqueId('customNavBarComponent');c.default.save(n,o.topBarReactViewInitialProps),o.topBarReactViewInitialProps={passPropsKey:n}}return o}function m(e){var o=babelHelpers.extends({},e),t={left:{},right:{}};return Object.keys(t).forEach(function(e){if(o[e]&&o[e].screen){if(t[e].screenId=o[e].screen,w(t[e]),t[e]=I(t[e]),t[e].passProps=o[e].passProps,o.disableOpenGesture)t[e].disableOpenGesture=parseInt(o.disableOpenGesture);else{var n=o[e].disableOpenGesture;t[e].disableOpenGesture=n?parseInt(n):null}o.fixedWidth?t[e].fixedWidth=o.fixedWidth:t[e].fixedWidth=o[e].fixedWidth}else t[e]=null}),t}function I(e){return e.navigationParams={screenInstanceID:e.screenInstanceID,navigatorID:e.navigatorID,navigatorEventID:e.navigatorEventID},e}function h(e,o,t){w(e,null,o),y(e,t.drawer),H(e),S(e),e.passProps||(e.passProps=t.passProps),v(e,e.navigatorID),e.screenId=e.screen;var n=T(e);return(n=I(e)).overrideBackPress=e.overrideBackPress,n.timestamp=Date.now(),n}function S(e){if(e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(!e.icon)throw new Error("No icon defined for tab "+e.screen)}function x(e){return'none'!==e}function w(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';e.navigatorID=o?o.navigatorID:i.default.uniqueId('navigatorID')+'_nav'+t,e.screenInstanceID=i.default.uniqueId('screenInstanceID'),e.navigatorEventID=e.screenInstanceID+'_events'}function y(e,o){var t=p.default.getRegisteredScreen(e.screen);null==e.navigatorButtons&&(e.navigatorButtons=i.default.cloneDeep(t.navigatorButtons));var n=(function(e){if(e.navigatorButtons&&e.navigatorButtons.rightButtons)return e.navigatorButtons.rightButtons;if(e.rightButtons)return e.rightButtons;var o=p.default.getRegisteredScreen(e.screen);if(o.navigatorButtons&&!i.default.isEmpty(o.navigatorButtons.rightButtons))return i.default.cloneDeep(o.navigatorButtons.rightButtons);return null})(e);n&&n.forEach(function(e){if(e.enabled=!e.disabled,e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(e.buttonColor&&(e.color=(0,a.processColor)(e.buttonColor)),e.component){var t=i.default.uniqueId('customButtonComponent');c.default.save(t,e.passProps),e.passProps={passPropsKey:t}}});var r=k(e);if(r){if(r.icon){var s=g(r.icon);s&&(r.icon=s.uri)}r.buttonColor&&(r.color=(0,a.processColor)(r.buttonColor))}var l=D(e);l&&(e.fab=l),n&&(e.rightButtons=n),r&&(e.leftButton=r)}function D(e){var o=e.fab;if(e.navigatorButtons&&e.navigatorButtons.fab&&(o=e.navigatorButtons.fab),null!==o&&void 0!==o){if(0===Object.keys(o).length)return{};var t=g(o.collapsedIcon);if(t){if(o.collapsedIcon=t.uri,o.expendedIcon){var n=g(o.expendedIcon);n&&(o.expendedIcon=n.uri)}return o.backgroundColor&&(o.backgroundColor=(0,a.processColor)(o.backgroundColor)),o.collapsedIconColor&&(o.collapsedIconColor=(0,a.processColor)(o.collapsedIconColor)),o.expendedIconColor&&(o.expendedIconColor=(0,a.processColor)(o.expendedIconColor)),o.actions&&i.default.forEach(o.actions,function(e){return e.icon=g(e.icon).uri,e.backgroundColor&&(e.backgroundColor=(0,a.processColor)(e.backgroundColor)),e.iconColor&&(e.iconColor=(0,a.processColor)(e.iconColor)),e}),o}}}function P(e){k(e)||(e.leftButton={id:'back'})}function k(e){var o=(function(e){if(e.navigatorButtons&&e.navigatorButtons.leftButton)return e.navigatorButtons.leftButton;return e.leftButton})(e);return o||(e.navigatorButtons&&e.navigatorButtons.leftButtons?e.navigatorButtons.leftButtons[0]:e.leftButtons?i.default.isArray(e.leftButtons)?e.leftButtons[0]:e.leftButtons:null)}function H(e){var o=p.default.getRegisteredScreen(e.screen);e.navigatorStyle=babelHelpers.extends({},o.navigatorStyle,e.navigatorStyle)}n.default={startTabBasedApp:function(e){var o;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.tabs){t.next=3;break}return console.error('startTabBasedApp(params): params.tabs is required'),t.abrupt("return");case 3:return o=[],e.tabs=i.default.cloneDeep(e.tabs),e.tabs.forEach(function(t,n){if(t.components){var r=t.components,a=h(t,n,e),s=a,l=s.label,c=s.icon;a.screens=r.map(function(o){return h(babelHelpers.extends({},o,{icon:c,label:l}),n,e)}),a.screens.map(function(e,o){return P(e)}),a.screens.map(function(e,o){return e.navigationParams.navigatorID=a.navigationParams.navigatorID}),a=i.default.omit(a,['components']),o.push(a)}else o.push(h(t,n,e))}),e.tabs=o,e.appStyle=C(e.appStyle),e.appStyle&&(e.appStyle.orientation=f(e)),e.sideMenu=m(e.drawer),e.animateShow=x(e.animationType),t.next=13,regeneratorRuntime.awrap(B.startApp(e));case 13:return t.abrupt("return",t.sent);case 14:case"end":return t.stop()}},null,this)},startSingleScreenApp:function(e){var o;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.components,e.screen||o){t.next=4;break}return console.error('startSingleScreenApp(params): screen must include a screen property'),t.abrupt("return");case 4:return o?(e.screen=b(o[0]),o.shift(),e.screen.screens=o.map(b)||[],e.screen.screens.map(function(e,o){return 0===o?e:P(e)})):e.screen=b(babelHelpers.extends({},e.screen,{passProps:e.passProps})),e.sideMenu=m(e.drawer),e.overrideBackPress=e.screen.overrideBackPress,e.animateShow=x(e.animationType),e.appStyle=C(e.appStyle),e.appStyle&&(e.appStyle.orientation=f(e)),t.next=12,regeneratorRuntime.awrap(B.startApp(e));case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}},null,this)},navigatorPush:function(e,o){w(o,e),y(o),P(o),H(o),v(o,o.navigatorID),o.screenId=o.screen;var t=T(o);return(t=I(t)).overrideBackPress=o.overrideBackPress,t.timestamp=Date.now(),t.passProps||(t.passProps={}),t.passProps.commandType||(t.passProps.commandType='Push'),B.push(t)},navigatorPop:function(e,o){w(o,e),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.pop(t)},navigatorPopToRoot:function(e,o){w(o,e),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.popToRoot(t)},navigatorResetTo:function(e,o){w(o,e),y(o),H(o),v(o,o.navigatorID),o.screenId=o.screen;var t=T(o);(t=I(t)).timestamp=Date.now(),B.newStack(t)},showModal:function(e){w(e),y(e),P(e),H(e),v(e,e.navigatorID),e.screenId=e.screen;var o=T(e);(o=I(o)).overrideBackPress=e.overrideBackPress,o.timestamp=Date.now(),o.passProps||(o.passProps={}),o.passProps.commandType||(o.passProps.commandType='ShowModal'),B.showModal(o)},dismissModal:function(e){B.dismissTopModal(babelHelpers.extends({},e,{navigationParams:{}}))},dismissAllModals:function(e){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.dismissAllModals());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},showInAppNotification:function(e){e.navigationParams={},w(e.navigationParams),e.autoDismissTimerSec=e.autoDismissTimerSec||5,!1===e.autoDismiss&&delete e.autoDismissTimerSec,B.showInAppNotification(e)},showLightBox:function(e){e.navigationParams={},w(e.navigationParams),e.screenId=e.screen;var o=i.default.get(e,'style.backgroundBlur'),t=i.default.get(e,'style.backgroundColor');e.backgroundColor=t?(0,a.processColor)(t):'dark'===o?(0,a.processColor)('rgba(0, 0, 0, 0.5)'):(0,a.processColor)('transparent'),e.tapBackgroundToDismiss=i.default.get(e,'style.tapBackgroundToDismiss')||!1,B.showLightBox(e)},dismissLightBox:function(){B.dismissLightBox()},dismissInAppNotification:function(e){B.dismissInAppNotification(e)},navigatorSetButtons:function(e,o,t){var n=i.default.cloneDeep(t);n.rightButtons&&n.rightButtons.forEach(function(e){if(e.enabled=!e.disabled,e.icon){var o=g(e.icon);o&&(e.icon=o.uri)}if(e.buttonColor&&(e.color=(0,a.processColor)(e.buttonColor)),e.component){var t=i.default.uniqueId('customButtonComponent');c.default.save(t,e.passProps),e.passProps={passPropsKey:t}}});var r=k(n);if(r){if(r.icon){var s=g(r.icon);s&&(r.icon=s.uri)}r.buttonColor&&(r.color=(0,a.processColor)(r.buttonColor))}else(function(e){return e.leftButtons&&0===e.leftButtons.length})(n)&&(r={});var l=D(n);B.setScreenButtons(e.screenInstanceID,o,n.rightButtons,r,l)},navigatorSetTabBadge:function(e,o){var t=o.badge?o.badge.toString():'';o.tabIndex>=0?B.setBottomTabBadgeByIndex(o.tabIndex,t):B.setBottomTabBadgeByNavigatorId(e.navigatorID,t)},navigatorSetTabButton:function(e,o){if(o.icon){var t=g(o.icon);t&&(o.icon=t.uri)}o.navigationParams={},o.tabIndex>=0?B.setBottomTabButtonByIndex(o.tabIndex,o):B.setBottomTabButtonByNavigatorId(e.navigatorID,o)},navigatorSetTitle:function(e,o){B.setScreenTitleBarTitle(e.screenInstanceID,o.title)},navigatorSetSubtitle:function(e,o){B.setScreenTitleBarSubtitle(e.screenInstanceID,o.subtitle)},navigatorSetStyle:function(e,o){var t=C(o);B.setScreenStyle(e.screenInstanceID,t)},navigatorSwitchToTab:function(e,o){o.tabIndex>=0?B.selectBottomTabByTabIndex(o.tabIndex):B.selectBottomTabByNavigatorId(e.navigatorID)},navigatorSwitchToTopTab:function(e,o){o.tabIndex>=0?B.selectTopTabByTabIndex(e.screenInstanceID,o.tabIndex):B.selectTopTabByScreen(e.screenInstanceID)},navigatorToggleDrawer:function(e,o){var t=!(!1===o.animated);if(o.to){var n='open'===o.to;B.setSideMenuVisible(t,n,o.side)}else B.toggleSideMenuVisible(t,o.side)},navigatorSetDrawerEnabled:function(e,o){B.setSideMenuEnabled(o.enabled,o.side)},navigatorToggleTabs:function(e,o){var t='hidden'===o.to,n=!(!1===o.animated);B.toggleBottomTabsVisible(t,n)},navigatorToggleNavBar:function(e,o){var t=e.screenInstanceID,n='shown'===o.to||'show'===o.to,r=!(!1===o.animated);B.toggleTopBarVisible(t,n,r)},showSnackbar:function(e){var o=i.default.cloneDeep(e);return o.backgroundColor&&(o.backgroundColor=(0,a.processColor)(o.backgroundColor)),o.actionColor&&(o.actionColor=(0,a.processColor)(o.actionColor)),o.textColor&&(o.textColor=(0,a.processColor)(o.textColor)),B.showSnackbar(o)},dismissSnackbar:function(){return B.dismissSnackbar()},showContextualMenu:function(e,o){var t={buttons:[],backButton:{id:'back'},navigationParams:{navigatorEventID:e.navigatorEventID}};o.rightButtons.forEach(function(e,o){var n={icon:g(e.icon),showAsAction:e.showAsAction,color:(0,a.processColor)(e.color),label:e.title,index:o};n.icon&&(n.icon=n.icon.uri),t.buttons.push(n)}),B.showContextualMenu(e.screenInstanceID,t,o.onButtonPressed)},dismissContextualMenu:function(){B.dismissContextualMenu()},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getCurrentlyVisibleScreenId:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.getCurrentlyVisibleScreenId());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(B.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},620); +__d(function(e,t,r,n){var i=(function(){function e(){babelHelpers.classCallCheck(this,e),this.registry={}}return babelHelpers.createClass(e,[{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.registry[e]=t}},{key:"load",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return this.registry[e]||{}}}]),e})();r.exports=new i},621); +__d(function(e,t,n,s){var r=t(51),a=(babelHelpers.interopRequireDefault(r),t(17)),o=t(366),i=babelHelpers.interopRequireDefault(o),u=t(621),c=babelHelpers.interopRequireDefault(u),l=a.NativeModules.NavigationReactModule;function p(e){e.navigationParams&&e.passProps&&c.default.save(e.navigationParams.screenInstanceID,e.passProps),e.screen&&e.screen.passProps&&c.default.save(e.screen.navigationParams.screenInstanceID,e.screen.passProps),i.default.get(e,'screen.screens')&&i.default.forEach(e.screen.screens,p),i.default.get(e,'screen.topTabs')&&i.default.forEach(e.screen.topTabs,function(e){return p(e)}),e.topTabs&&i.default.forEach(e.topTabs,function(e){return p(e)}),e.tabs&&i.default.forEach(e.tabs,function(t){t.passProps||(t.passProps=e.passProps),p(t),t.screens&&i.default.forEach(t.screens,p)}),e.sideMenu&&e.sideMenu.left&&c.default.save(e.sideMenu.left.navigationParams.screenInstanceID,e.sideMenu.left.passProps),e.sideMenu&&e.sideMenu.right&&c.default.save(e.sideMenu.right.navigationParams.screenInstanceID,e.sideMenu.right.passProps)}n.exports={startApp:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return p(e),t.next=3,regeneratorRuntime.awrap(l.startApp(e));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},null,this)},push:function(e){return p(e),l.push(e)},pop:function(e){l.pop(e)},popToRoot:function(e){l.popToRoot(e)},newStack:function(e){p(e),l.newStack(e)},toggleTopBarVisible:function(e,t,n){l.setTopBarVisible(e,t,n)},toggleBottomTabsVisible:function(e,t){l.setBottomTabsVisible(e,t)},setScreenTitleBarTitle:function(e,t){l.setScreenTitleBarTitle(e,t)},setScreenTitleBarSubtitle:function(e,t){l.setScreenTitleBarSubtitle(e,t)},setScreenButtons:function(e,t,n,s,r){l.setScreenButtons(e,t,n,s,r)},showModal:function(e){p(e),l.showModal(e)},dismissTopModal:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(l.dismissTopModal(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this)},dismissAllModals:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.dismissAllModals());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},showLightBox:function(e){p(e),l.showLightBox(e)},dismissLightBox:function(){l.dismissLightBox()},selectTopTabByScreen:function(e){l.selectTopTabByScreen(e)},selectTopTabByTabIndex:function(e,t){l.selectTopTabByTabIndex(e,t)},showInAppNotification:function(e){p(e),l.showSlidingOverlay(e)},dismissInAppNotification:function(e){l.hideSlidingOverlay(e)},toggleSideMenuVisible:function(e,t){l.toggleSideMenuVisible(e,t)},setSideMenuVisible:function(e,t,n){l.setSideMenuVisible(e,t,n)},setSideMenuEnabled:function(e,t){l.setSideMenuEnabled(e,t)},selectBottomTabByNavigatorId:function(e){l.selectBottomTabByNavigatorId(e)},selectBottomTabByTabIndex:function(e){l.selectBottomTabByTabIndex(e)},setBottomTabBadgeByNavigatorId:function(e,t){l.setBottomTabBadgeByNavigatorId(e,t)},setBottomTabBadgeByIndex:function(e,t){l.setBottomTabBadgeByIndex(e,t)},setBottomTabButtonByNavigatorId:function(e,t){l.setBottomTabButtonByNavigatorId(e,t)},setBottomTabButtonByIndex:function(e,t){l.setBottomTabButtonByIndex(e,t)},showSnackbar:function(e){l.showSnackbar(e)},dismissSnackbar:function(){l.dismissSnackbar()},showContextualMenu:function(e,t,n){l.showContextualMenu(e,t,n)},dismissContextualMenu:function(e){l.dismissContextualMenu(e)},setScreenStyle:function(e,t){l.setScreenStyle(e,t)},isAppLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.isAppLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},isRootLaunched:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.isRootLaunched());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getCurrentlyVisibleScreenId:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.getCurrentlyVisibleScreenId());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)},getLaunchArgs:function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.getLaunchArgs());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this)}}},622); +__d(function(t,e,n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Navigator=a.Screen=void 0;var r=e(51),i=(babelHelpers.interopRequireDefault(r),e(17)),o=e(620),v=babelHelpers.interopRequireDefault(o),u=e(619),l=babelHelpers.interopRequireDefault(u),s={push:v.default.navigatorPush,pop:v.default.navigatorPop,popToRoot:v.default.navigatorPopToRoot,resetTo:v.default.navigatorResetTo},d=(function(){function t(e,n,a){babelHelpers.classCallCheck(this,t),this.navigatorID=e,this.screenInstanceID=a,this.navigatorEventID=n,this.navigatorEventHandler=null,this.navigatorEventHandlers=[],this.navigatorEventSubscription=null}return babelHelpers.createClass(t,[{key:"push",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.push(this,t)}},{key:"pop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.pop(this,t)}},{key:"popToRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.popToRoot(this,t)}},{key:"resetTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.resetTo(this,t)}},{key:"showModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showModal(t)}},{key:"showLightBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showLightBox(t)}},{key:"dismissModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissModal(t)}},{key:"dismissAllModals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissAllModals(t)}},{key:"showLightBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showLightBox(t)}},{key:"dismissLightBox",value:function(){return l.default.dismissLightBox()}},{key:"showInAppNotification",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.showInAppNotification(t)}},{key:"dismissInAppNotification",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.dismissInAppNotification(t)}},{key:"setButtons",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetButtons(this,this.navigatorEventID,t)}},{key:"setTitle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTitle(this,t)}},{key:"setSubTitle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetSubtitle(this,t)}},{key:"setTitleImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTitleImage(this,t)}},{key:"setStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetStyle(this,t)}},{key:"toggleDrawer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleDrawer(this,t)}},{key:"setDrawerEnabled",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetDrawerEnabled(this,t)}},{key:"toggleTabs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleTabs(this,t)}},{key:"toggleNavBar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorToggleNavBar(this,t)}},{key:"setTabBadge",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTabBadge(this,t)}},{key:"setTabButton",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSetTabButton(this,t)}},{key:"switchToTab",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSwitchToTab(this,t)}},{key:"switchToTopTab",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.navigatorSwitchToTopTab(this,t)}},{key:"showSnackbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v.default.showSnackbar(t)}},{key:"dismissSnackbar",value:function(){return v.default.dismissSnackbar()}},{key:"showContextualMenu",value:function(t,e){return v.default.showContextualMenu(this,t,e)}},{key:"dismissContextualMenu",value:function(){return v.default.dismissContextualMenu()}},{key:"setOnNavigatorEvent",value:function(t){if(this.navigatorEventHandlers.length>0)throw new Error('setOnNavigatorEvent can not be used after addOnNavigatorEvent has been called');this.navigatorEventHandler=t,this._registerNavigatorEvent()}},{key:"addOnNavigatorEvent",value:function(t){var e=this;if(this.navigatorEventHandler)throw new Error('addOnNavigatorEvent can not be used after setOnNavigatorEvent has been called');return-1===this.navigatorEventHandlers.indexOf(t)&&this.navigatorEventHandlers.push(t),this._registerNavigatorEvent(),function(){return e._removeOnNavigatorEvent(t)}}},{key:"_registerNavigatorEvent",value:function(){var t=this;if(!this.navigatorEventSubscription){var e='android'===i.Platform.OS?i.DeviceEventEmitter:i.NativeAppEventEmitter;this.navigatorEventSubscription=e.addListener(this.navigatorEventID,function(e){return t.onNavigatorEvent(e)}),l.default.setEventHandler(this.navigatorEventID,function(e){return t.onNavigatorEvent(e)})}}},{key:"_removeOnNavigatorEvent",value:function(t){var e=this.navigatorEventHandlers.indexOf(t);-1!==e&&this.navigatorEventHandlers.splice(e,1)}},{key:"onNavigatorEvent",value:function(t){this.navigatorEventHandler&&this.navigatorEventHandler(t),this.navigatorEventHandlers.forEach(function(e){return e(t)})}},{key:"handleDeepLink",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.default.handleDeepLink(t)}},{key:"cleanup",value:function(){this.navigatorEventSubscription&&(this.navigatorEventSubscription.remove(),this.navigatorEventHandlers=[],l.default.clearEventHandler(this.navigatorEventID))}},{key:"screenIsCurrentlyVisible",value:function(){var t;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(l.default.getCurrentlyVisibleScreenId());case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",t.screenId===this.screenInstanceID);case 6:case"end":return e.stop()}},null,this)}}]),t})(),g=(function(t){function e(t){babelHelpers.classCallCheck(this,e);var n=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return t.navigatorID&&(n.navigator=new d(t.navigatorID,t.navigatorEventID,t.screenInstanceID)),n}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"componentWillUnmount",value:function(){this.navigator&&(this.navigator.cleanup(),this.navigator=void 0)}}]),e})(r.Component);g.navigatorStyle={},g.navigatorButtons={},a.Screen=g,a.Navigator=d},623); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),a=babelHelpers.interopRequireDefault(n),o=(0,t(17).requireNativeComponent)('SharedElementTransition',null),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return a.default.createElement(o,this.props)}}]),t})(n.Component);l.default=s},624); +__d(function(e,t,a,i){Object.defineProperty(i,"__esModule",{value:!0});var n=t(17),r=(function(){function e(){babelHelpers.classCallCheck(this,e),this.emitter='android'===n.Platform.OS?n.DeviceEventEmitter:n.NativeAppEventEmitter}return babelHelpers.createClass(e,[{key:"appLaunched",value:function(e){this.emitter.addListener('RNN.appLaunched',e)}}]),e})();i.default=r},625); +__d(function(i,e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var s=e(17),p=(function(){function i(e){babelHelpers.classCallCheck(this,i),this.emitter='android'===s.Platform.OS?s.DeviceEventEmitter:s.NativeAppEventEmitter,this.listeners=e}return babelHelpers.createClass(i,[{key:"register",value:function(){var i=this.listeners,e=i.willAppear,t=i.didAppear,r=i.willDisappear,s=i.didDisappear;this.willAppearSubscription=e&&this.emitter.addListener('willAppear',e),this.didAppearSubscription=t&&this.emitter.addListener('didAppear',t),this.willDisappearSubscription=r&&this.emitter.addListener('willDisappear',r),this.didDisappearSubscription=s&&this.emitter.addListener('didDisappear',s)}},{key:"unregister",value:function(){this.willAppearSubscription&&this.willAppearSubscription.remove(),this.didAppearSubscription&&this.didAppearSubscription.remove(),this.willDisappearSubscription&&this.willDisappearSubscription.remove(),this.didDisappearSubscription&&this.didDisappearSubscription.remove()}}]),i})();r.default=p},626); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.solidNavigatorStyle=r.navigatorStyleModal=r.hiddenNavigatorStyle=r.navigatorStyle=r.androidNavigationButtons=r.appStyle=r.tabsStyle=void 0,r.screen=function(e){return babelHelpers.extends({},N[e])};var n=t(17),l=t(628),o=babelHelpers.interopRequireDefault(l),i=t(515),s=babelHelpers.interopRequireDefault(i),c=t(665),S=babelHelpers.interopRequireDefault(c),E=r.tabsStyle={tabBarButtonColor:s.default.tabBarButtonColor,tabBarLabelColor:s.default.tabBarLabelColor,tabBarSelectedLabelColor:s.default.tabBarSelectedLabelColor,tabBarSelectedButtonColor:s.default.tabBarSelectedButtonColor,tabBarBackgroundColor:s.default.tabBarBackgroundColor},C=(r.appStyle=babelHelpers.extends({},E),r.androidNavigationButtons='android'===n.Platform.OS?{leftButtons:[{id:'back',buttonColor:s.default.androidNavigationButtons}]}:{},r.navigatorStyle={tabBarHidden:!1,statusBarTextColorScheme:'ios'===n.Platform.OS?'dark':'light',statusBarColor:'ios'===n.Platform.OS?s.default.statusBarColorIOS:s.default.statusBarColorOther,navBarBackgroundColor:s.default.navBarBackgroundColor,navBarTransparent:!0,navBarBlur:!1,navBarTranslucent:!0,navBarNoBorder:!0,drawUnderNavBar:!0,drawUnderStatusBar:!1,navBarTextColor:s.default.navBarTextColor,navBarButtonColor:s.default.navBarButtonColor,screenBackgroundColor:'transparent',rootBackgroundImageName:'background-gray.jpg',topBarElevationShadowEnabled:!1}),d=r.hiddenNavigatorStyle={statusBarTextColorScheme:'light',statusBarColor:'ios'===n.Platform.OS?s.default.statusBarColorIOS:s.default.statusBarColorOther,navBarHidden:!0,drawUnderStatusBar:!1,screenBackgroundColor:'transparent',rootBackgroundImageName:'background-gray.jpg'},g=r.navigatorStyleModal=babelHelpers.extends({},C,{tabBarHidden:!0}),u=r.solidNavigatorStyle=babelHelpers.extends({},C,{navBarTransparent:!1,navBarBlur:!1,drawUnderNavBar:!1,screenBackgroundColor:'#E8EBED',tabBarHidden:!0,navBarBackgroundColor:s.default.white}),N={ACCOUNTS_SCREEN:{screen:'Pangea.AccountsScreen',title:S.default.t('screens.accounts.title'),navigatorStyle:d},ACCOUNT_CREATE_DEVELOPER_SETTINGS:{screen:'Pangea.AccountCreateDeveloperSettingsScreen',title:S.default.t('screens.accounts.create.developerTitle'),navigatorStyle:C},ACCOUNT_CREATE_READY:{screen:'Pangea.AccountCreateReadyScreen',navigatorStyle:d},ACCOUNT_RESTORE_SOURCE:{screen:'Pangea.AccountRestoreSourceScreen',navigatorStyle:C},ACCOUNT_RESTORE_EMPTY_WALLET:{screen:'Pangea.AccountRestoreEmptyWalletScreen',navigatorStyle:d},ACCOUNTS_ACCESS_SCREEN:{screen:'Pangea.AccountsAccess',title:'',navigatorStyle:g},DASHBOARD_SCREEN:{screen:'Pangea.DashboardScreen',label:S.default.t('screens.dashboard.tabTitle'),icon:o.default.TabIcons.dashboard,navigatorStyle:d},CHAT_SCREEN:{screen:'Pangea.ChatScreen',title:S.default.t('screens.chat.title'),navigatorStyle:C},CHAT_NATIONS_SCREEN:{screen:'Pangea.ChatNationsScreen',label:S.default.t('screens.chat.tabTitle'),title:'',navigatorStyle:C},MIGRATION_SCREEN:{screen:'Pangea.MigrationScreen',label:S.default.t('screens.migration.title'),navigatorStyle:C},NEW_CHAT_SCREEN:{screen:'Pangea.NewChatScreen',label:S.default.t('screens.chat.newConversation'),title:'',navigatorStyle:C},NATIONS_SCREEN:{screen:'Pangea.NationsScreen',label:S.default.t('screens.nations.tabTitle'),icon:o.default.TabIcons.nations,title:'',navigatorStyle:C},NATION_DETAILS_SCREEN:{screen:'Pangea.NationDetailsScreen',title:'',navigatorStyle:g},NATION_CREATE_SCREEN:{screen:'Pangea.NationCreateScreen',title:'',navigatorStyle:C},WALLET_SCREEN:{screen:'Pangea.WalletScreen',label:S.default.t('screens.wallet.tabTitle'),icon:o.default.TabIcons.wallet,title:'',navigatorStyle:C},PROFILE_SCREEN:{screen:'Pangea.ProfileScreen',label:S.default.t('screens.profile.tabTitle'),title:'',navigatorStyle:C},CONFIRM_KEY_INSTRUCTION_SCREEN:{screen:'Pangea.ConfirmKeyInstructionScreen',title:S.default.t('screens.confirmKey.title'),navigatorStyle:C,backButtonTitle:''},CONFIRM_KEY_PROCESS_SCREEN:{screen:'Pangea.ConfirmKeyProcessScreen',title:S.default.t('screens.confirmKey.title'),navigatorStyle:C,backButtonTitle:''},VERIFY_KEY_INSTRUCTION_SCREEN:{screen:'Pangea.VerifyKeyInstructionScreen',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:''},VERIFY_KEY_PROCESS_SCREEN:{screen:'Pangea.VerifyKeyProcessScreen',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:'',passProps:{isVerification:!0}},RESTORE_KEY_SCREEN:{screen:'Pangea.RestoreKeyProcessScreen',title:S.default.t('screens.restoreKey.title'),navigatorStyle:C},VIEW_PRIVATE_KEY_SCREEN:{screen:'Pangea.ViewPrivateKeyScreen',title:S.default.t('screens.viewPrivateKey.title'),navigatorStyle:C},INTRO_SCREEN:{screen:'Pangea.Intro',navigatorStyle:d},RECEIVE_MONEY_SCREEN:{screen:'Pangea.ReceiveMoneyScreen',title:'',navigatorStyle:C},VERIFY_KEY_SUCCESS_SCREEN:{screen:'Pangea.VerifyKeySuccess',title:S.default.t('screens.verifyKey.title'),navigatorStyle:C,backButtonTitle:''},SEND_MONEY_SCREEN:{screen:'Pangea.SendMoneyScreen',title:'',navigatorStyle:C},QR_CODE_SCANNER_SCREEN:{screen:'Pangea.QRCodeScannerScreen',title:S.default.t('screens.scanQRCode.title'),navigatorStyle:C},QR_CODE_DAPP_SCREEN:{screen:'Pangea.QRCodeAppScreen',title:'',navigatorStyle:C},SETTINGS_SCREEN:{screen:'Pangea.Settings',title:'',icon:o.default.TabIcons.profile,label:S.default.t('screens.settings.tabTitle'),navigatorStyle:C},SECURITY_SETTINGS_SCREEN:{screen:'Pangea.Settings.Security',title:'',navigatorStyle:C},ENTER_PASSCODE_SCREEN:{screen:'Pangea.EnterPasscode',title:'',navigatorStyle:g},CREATE_PASSCODE_SCREEN:{screen:'Pangea.CreatePasscode',title:'',navigatorStyle:g},CONFIRMATION_SCREEN:{screen:'Pangea.ConfirmationContainer',title:'',navigatorStyle:C},CHAT_LIST_SCREEN:{screen:'Pangea.ChatListScreen',label:S.default.t('screens.chat.tabTitle'),icon:o.default.TabIcons.chat,navigatorStyle:C},PRIVATE_CHAT_SCREEN:{screen:'Pangea.PrivateChatScreen',title:S.default.t('screens.chat.title'),navigatorStyle:C},DAPP_MODAL_SCREEN:{screen:'Pangea.DAppModalScreen',navigatorStyle:C},DOCUMENTS_LIST_SCREEN:{screen:'Pangea.DocumentsListScreen',navigatorStyle:C},DOCUMENT_VIEW_SCREEN:{screen:'Pangea.DocumentViewScreen',title:S.default.t('screens.documentView.title'),navigatorStyle:u},DOCUMENT_MODIFY_SCREEN:{screen:'Pangea.DocumentModifyScreen',title:S.default.t('screens.documentModify.title'),navigatorStyle:u}}},627); +__d(function(o,e,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i=e(629),t=e(630),s=e(631),l=e(632),c=e(633),r=e(634),g=e(635),u=e(636),d=e(637),b=e(638),I=e(639),m=e(640),v=e(641),f=e(642),h=e(643),p=e(644),L=e(645),_=e(646),w=e(647),M=e(648),j=e(649),y=e(650),C=e(651),k=e(652),x={background:i,ethereumLogo:t,xpatLogo:s,bitLogo:l,build:r,monroe:g,fern:u,moon:d,avatarIcon:b,bitLogoBig:c,privateKeyDemo:I,userCitizenIcon:e(653),disclosureRowIcon:e(654),moreMenuIcon:e(655),closeIcon:e(656),TabIcons:{dashboard:m,chat:v,nations:f,wallet:h,profile:p},Actions:{chat:L,map:_,join:w,leave:M,reset:j,save:y,delete:C,submit:k},ChatUI:{signal0:e(657),signal1:e(658),signal2:e(659),signal3:e(660),signal4:e(661),signal5:e(662),botIcon:e(663),newMsgIcon:e(664)}};a.default=x},628); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:320,height:568,scales:[1,2,3],hash:"ec4a4ecc058a82440c1252c9f053a517",name:"background",type:"png"})},629); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:39,scales:[1,2,3],hash:"b6f7faeb7b693b9c604257a1ec60a449",name:"ethereumLogo",type:"png"})},630); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:34,height:34,scales:[1,2,3],hash:"b2b0c709f8b24538a9468dd2f9461ad1",name:"xpatLogo",type:"png"})},631); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:81,height:74,scales:[1],hash:"ca705d8ab598b53cbc6a1b55e0c02ddd",name:"bitnationLogo",type:"png"})},632); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:218,height:199,scales:[1],hash:"c67ab85f6554a5abd30598a179de76be",name:"bitnationLogoBig",type:"png"})},633); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"06b8056329288c3cd9e2834c883e5f04",name:"Chrysler_Building",type:"png"})},634); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"1d30a7a4dae4681d6708e62f174f217d",name:"monroe",type:"png"})},635); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"60ae281a0298373bf1a9de2a335688f5",name:"fern",type:"png"})},636); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:375,height:667,scales:[1],hash:"e61b39c0c30a76986f1c6ccac2bc0f9d",name:"moon",type:"png"})},637); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:125,height:125,scales:[1,2,3],hash:"2ce0c26c619ce7c9f60fdece1f13ebd9",name:"avatarIcon",type:"png"})},638); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:500,height:386,scales:[1],hash:"fe86cd9750bc2ff1511c5f272a3cec0f",name:"privateKeyDemo",type:"png"})},639); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"7a3664ed34e7592f2f9fefc378860f60",name:"tabIconDashboard",type:"png"})},640); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"1c2e295d2014d26971924142ab4a6bff",name:"tabIconChat",type:"png"})},641); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"cca40fddd22969edddb8718e839490dc",name:"tabIconNations",type:"png"})},642); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"241ad1736d0fde604a8519abfa87b690",name:"tabIconWallet",type:"png"})},643); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"7ac4175265966a5e172e1d2b24a5f80e",name:"tabIconProfile",type:"png"})},644); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"1c2e295d2014d26971924142ab4a6bff",name:"toolbarIconChat",type:"png"})},645); +__d(function(s,a,e,t){e.exports=a(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"395ab15100999fa1f1bf717a13e541da",name:"toolbarIconMap",type:"png"})},646); +__d(function(s,a,e,t){e.exports=a(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"a27fba197aa1bc47b8f9248843b0bb90",name:"toolbarIconJoin",type:"png"})},647); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"684ca465fcb2d9b4d5d59d711d0dbf7c",name:"toolbarIconLeave",type:"png"})},648); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"36954187d417be239e977f86eecc04c4",name:"toolbarIconReset",type:"png"})},649); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"3df32919a8a1e6b5f751dd4cad91a4e3",name:"toolbarIconSave",type:"png"})},650); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"0d85a482e0fb877306ef204aaa2226a6",name:"toolbarIconDelete",type:"png"})},651); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"30b1ae39022149432e028f668558eff3",name:"toolbarIconSubmit",type:"png"})},652); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:72,height:72,scales:[1],hash:"24ccf2076c90a29bbedbcf5d9c7a4040",name:"avatarCitizen",type:"png"})},653); +__d(function(s,e,t,a){t.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:6,height:12,scales:[1,2,3],hash:"139ce64f62f221b5926706012a89647e",name:"disclosure",type:"png"})},654); +__d(function(e,s,a,t){a.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:12,height:24,scales:[1,2,3],hash:"b2a77c93d3ddc7bae6771ef3e0702aea",name:"moreIcon",type:"png"})},655); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:24,scales:[1,2,3],hash:"c65cbfcef0934367096655ddaed9067d",name:"closeIcon",type:"png"})},656); +__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:19,scales:[1,2,3],hash:"247ca8c4abf7cb3208e82b4940c3b7e5",name:"signal_icon_0",type:"png"})},657); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"f2203ef8feefe9837d2f20f1d28d0e20",name:"signal_icon_1",type:"png"})},658); +__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"6faa4b6a73590ffef9ad9ab5365be206",name:"signal_icon_2",type:"png"})},659); +__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"9a0a5172556a3ac8e2dd1d9e68f5c20c",name:"signal_icon_3",type:"png"})},660); +__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"9b27ac4a4ee73a72c68129ab8645289a",name:"signal_icon_4",type:"png"})},661); +__d(function(s,e,a,t){a.exports=e(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:22,height:20,scales:[1,2,3],hash:"8f8abb1692a7e06d0a9c26267b4a8166",name:"signal_icon_5",type:"png"})},662); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:24,height:25,scales:[1,2,3],hash:"0f58b1335e6f95bcf8a152c429279ec1",name:"icon_chatbot",type:"png"})},663); +__d(function(e,s,t,a){t.exports=s(139).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:8,height:8,scales:[1,2,3],hash:"a68ec229a2d2780ebc91627f2ffed657",name:"chat_indicator",type:"png"})},664); +__d(function(e,t,a,u){Object.defineProperty(u,"__esModule",{value:!0});var i=t(666),l=babelHelpers.interopRequireDefault(i),n=t(681);l.default.init({fallbackLng:'en',initImmediate:!1,returnObjects:!0,interpolation:{escapeValue:!1},resources:{en:{translation:n}}}),l.default.ifExists=function(e){return l.default.exists(e)?l.default.t(e):''},l.default.tf=function(e,t){return l.default.exists(e)?l.default.t(e):l.default.ifExists(t)},u.default=l.default},665); +__d(function(t,d,e,f){e.exports=d(667).default},666); +__d(function(e,a,d,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.use=t.t=t.setDefaultNamespace=t.on=t.off=t.loadResources=t.loadNamespaces=t.loadLanguages=t.init=t.getFixedT=t.exists=t.dir=t.createInstance=t.cloneInstance=t.changeLanguage=void 0;var u,l=a(668),n=(u=l)&&u.__esModule?u:{default:u};t.default=n.default;t.changeLanguage=n.default.changeLanguage.bind(n.default),t.cloneInstance=n.default.cloneInstance.bind(n.default),t.createInstance=n.default.createInstance.bind(n.default),t.dir=n.default.dir.bind(n.default),t.exists=n.default.exists.bind(n.default),t.getFixedT=n.default.getFixedT.bind(n.default),t.init=n.default.init.bind(n.default),t.loadLanguages=n.default.loadLanguages.bind(n.default),t.loadNamespaces=n.default.loadNamespaces.bind(n.default),t.loadResources=n.default.loadResources.bind(n.default),t.off=n.default.off.bind(n.default),t.on=n.default.on.bind(n.default),t.setDefaultNamespace=n.default.setDefaultNamespace.bind(n.default),t.t=n.default.t.bind(n.default),t.use=n.default.use.bind(n.default)},667); +__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=m(this,t.call(this));if(r.options=(0,d.transformOptions)(o),r.services={},r.logger=s.default,r.modules={external:[]},n&&!r.isInitialized&&!o.isClone){var i;if(!r.options.initImmediate)return i=r.init(o,n),m(r,i);setTimeout(function(){r.init(o,n)},0)}return r}return b(e,t),e.prototype.init=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1];function n(t){return t?'function'==typeof t?new t:t:null}if('function'==typeof e&&(o=e,e={}),this.options=i({},(0,d.get)(),this.options,(0,d.transformOptions)(e)),this.format=this.options.interpolation.format,o||(o=w),!this.options.isClone){this.modules.logger?s.default.init(n(this.modules.logger),this.options):s.default.init(null,this.options);var r=new u.default(this.options);this.store=new c.default(this.options.resources,this.options);var a=this.services;a.logger=s.default,a.resourceStore=this.store,a.resourceStore.on('added removed',function(t,e){a.cacheConnector.save()}),a.languageUtils=r,a.pluralResolver=new p.default(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new f.default(this.options),a.backendConnector=new g.default(n(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on('*',function(e){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r1?o-1:0),r=1;r1?o-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:w;if(this.options.resources)e(null);else{if(this.language&&'cimode'===this.language.toLowerCase())return e();var o=[],n=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(t){o.indexOf(t)<0&&o.push(t)})};if(this.language)n(this.language);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return n(t)});this.options.preload&&this.options.preload.forEach(function(t){return n(t)}),this.services.cacheConnector.load(o,this.options.ns,function(){t.services.backendConnector.load(o,t.options.ns,e)})}},e.prototype.reloadResources=function(t,e){t||(t=this.languages),e||(e=this.options.ns),this.services.backendConnector.reload(t,e)},e.prototype.use=function(t){return'backend'===t.type&&(this.modules.backend=t),'cache'===t.type&&(this.modules.cache=t),('logger'===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),'languageDetector'===t.type&&(this.modules.languageDetector=t),'postProcessor'===t.type&&y.default.addPostProcessor(t),'3rdParty'===t.type&&this.modules.external.push(t),this},e.prototype.changeLanguage=function(t,e){var o=this,n=function(t){t&&(o.language=t,o.languages=o.services.languageUtils.toResolveHierarchy(t),o.translator.language||o.translator.changeLanguage(t),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(t)),o.loadResources(function(n){!(function(t,n){o.translator.changeLanguage(n),n&&(o.emit('languageChanged',n),o.logger.log('languageChanged',n)),e&&e(t,function(){return o.t.apply(o,arguments)})})(n,t)})};t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(t):n(this.services.languageDetector.detect())},e.prototype.getFixedT=function(t,e){var o=this,n=function t(e,n){for(var s=arguments.length,a=Array(s>2?s-2:0),c=2;c0?this.languages[0]:this.language),!t)return'rtl';return['ar','shu','sqr','ssh','xaa','yhd','yud','aao','abh','abv','acm','acq','acw','acx','acy','adf','ads','aeb','aec','afb','ajp','apc','apd','arb','arq','ars','ary','arz','auz','avl','ayh','ayl','ayn','ayp','bbz','pga','he','iw','ps','pbt','pbu','pst','prp','prd','ur','ydd','yds','yih','ji','yi','hbo','men','xmn','fa','jpr','peo','pes','prs','dv','sam'].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?'rtl':'ltr'},e.prototype.createInstance=function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},e.prototype.cloneInstance=function(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,r=i({},this.options,o,{isClone:!0}),s=new e(r);return['store','services','language'].forEach(function(e){s[e]=t[e]}),s.translator=new l.default(s.services,s.options),s.translator.on('*',function(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{};!(function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),this.init(t,o)}return r.prototype.init=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||'i18next:',this.logger=r||i,this.options=t,this.debug=t.debug},r.prototype.setDebug=function(r){this.debug=r},r.prototype.log=function(){for(var r=arguments.length,t=Array(r),o=0;o-1&&o.observers[e].splice(s,1)}else delete o.observers[e]})},e.prototype.emit=function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:{ns:['translation'],defaultNS:'translation'};!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=(function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e})(this,t.call(this));return r.data=o||{},r.options=n,r}return c(e,t),e.prototype.addNamespaces=function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)},e.prototype.removeNamespaces=function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)},e.prototype.getResource=function(t,e,o){var n=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keySeparator||this.options.keySeparator;void 0===n&&(n='.');var r=[t,e];return o&&'string'!=typeof o&&(r=r.concat(o)),o&&'string'==typeof o&&(r=r.concat(n?o.split(n):o)),t.indexOf('.')>-1&&(r=t.split('.')),p.getPath(this.data,r)},e.prototype.addResource=function(t,e,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i='.');var s=[t,e];o&&(s=s.concat(i?o.split(i):o)),t.indexOf('.')>-1&&(n=e,e=(s=t.split('.'))[1]),this.addNamespaces(e),p.setPath(this.data,s,n),r.silent||this.emit('added',t,e,o,n)},e.prototype.addResources=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)'string'==typeof o[r]&&this.addResource(t,e,r,o[r],{silent:!0});n.silent||this.emit('added',t,e,o)},e.prototype.addResourceBundle=function(t,e,o,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf('.')>-1&&(n=o,o=e,e=(a=t.split('.'))[1]),this.addNamespaces(e);var c=p.getPath(this.data,a)||{};n?p.deepExtend(c,o,r):c=i({},c,o),p.setPath(this.data,a,c),s.silent||this.emit('added',t,e,o)},e.prototype.removeResourceBundle=function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit('removed',t,e)},e.prototype.hasResourceBundle=function(t,e){return void 0!==this.getResource(t,e)},e.prototype.getResourceBundle=function(t,e){return e||(e=this.options.defaultNS),'v1'===this.options.compatibilityAPI?i({},this.getResource(t,e)):this.getResource(t,e)},e.prototype.toJSON=function(){return this.data},e})(a.default);n.default=u},671); +__d(function(n,t,e,r){'use strict';function i(n,t,e){function r(n){return n&&n.indexOf('###')>-1?n.replace(/###/g,'.'):n}function i(){return!n||'string'==typeof n}for(var o='string'!=typeof t?[].concat(t):t.split('.');o.length>1;){if(i())return{};var u=r(o.shift());!n[u]&&e&&(n[u]=new e),n=n[u]}return i()?{}:{obj:n,k:r(o.shift())}}Object.defineProperty(r,"__esModule",{value:!0}),r.makeString=function(n){return null==n?'':''+n},r.copy=function(n,t,e){n.forEach(function(n){t[n]&&(e[n]=t[n])})},r.setPath=function(n,t,e){var r=i(n,t,Object),o=r.obj,u=r.k;o[u]=e},r.pushPath=function(n,t,e,r){var o=i(n,t,Object),u=o.obj,c=o.k;u[c]=u[c]||[],r&&(u[c]=u[c].concat(e));r||u[c].push(e)},r.getPath=function(n,t){var e=i(n,t),r=e.obj,o=e.k;return r?r[o]:void 0},r.deepExtend=function n(t,e,r){for(var i in e)i in t?'string'==typeof t[i]||t[i]instanceof String||'string'==typeof e[i]||e[i]instanceof String?r&&(t[i]=e[i]):n(t[i],e[i],r):t[i]=e[i];return t},r.regexEscape=function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')},r.escape=function(n){if('string'==typeof n)return n.replace(/[&<>"'\/]/g,function(n){return o[n]});return n};var o={"&":"&","<":"<",">":">",'"':'"',"'":''',"/":'/'}},672); +__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var r=(function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e})(this,t.call(this));return p.copy(['resourceStore','languageUtils','pluralResolver','interpolator','backendConnector'],o,r),r.options=n,r.logger=a.default.create('translator'),r}return c(e,t),e.prototype.changeLanguage=function(t){t&&(this.language=t)},e.prototype.exists=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=this.resolve(t,e);return o&&void 0!==o.res},e.prototype.extractFromKey=function(t,e){var o=e.nsSeparator||this.options.nsSeparator;void 0===o&&(o=':');var n=e.keySeparator||this.options.keySeparator||'.',r=e.ns||this.options.defaultNS;if(o&&t.indexOf(o)>-1){var i=t.split(o);(o!==n||o===n&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),t=i.join(n)}return'string'==typeof r&&(r=[r]),{key:t,namespaces:r}},e.prototype.translate=function(t,e){var o=this;if('object'!==(void 0===e?'undefined':i(e))&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),void 0===t||null===t||''===t)return'';'number'==typeof t&&(t=String(t)),'string'==typeof t&&(t=[t]);var n=e.keySeparator||this.options.keySeparator||'.',a=this.extractFromKey(t[t.length-1],e),s=a.key,l=a.namespaces,p=l[l.length-1],u=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&'cimode'===u.toLowerCase()){if(c){var f=e.nsSeparator||this.options.nsSeparator;return p+f+s}return s}var y=this.resolve(t,e),h=y&&y.res,g=y&&y.usedKey||s,d=Object.prototype.toString.apply(h),v=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays;if(h&&('string'!=typeof h&&'boolean'!=typeof h&&'number'!=typeof h)&&['[object Number]','[object Function]','[object RegExp]'].indexOf(d)<0&&(!v||'[object Array]'!==d)){if(!e.returnObjects&&!this.options.returnObjects)return this.logger.warn('accessing an object - but returnObjects options is not enabled!'),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,e):'key \''+s+' ('+this.language+')\' returned an object instead of string.';if(e.keySeparator||this.options.keySeparator){var b='[object Array]'===d?[]:{};for(var j in h)if(Object.prototype.hasOwnProperty.call(h,j)){var m=''+g+n+j;b[j]=this.translate(m,r({},e,{joinArrays:!1,ns:l})),b[j]===m&&(b[j]=h[j])}h=b}}else if(v&&'[object Array]'===d)(h=h.join(v))&&(h=this.extendTranslation(h,t,e));else{var O=!1,S=!1;this.isValidLookup(h)||void 0===e.defaultValue||(O=!0,h=e.defaultValue),this.isValidLookup(h)||(S=!0,h=s);var k=e.defaultValue&&e.defaultValue!==h&&this.options.updateMissing;if(S||O||k){this.logger.log(k?'updateKey':'missingKey',u,p,s,k?e.defaultValue:h);var x=[],V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if('fallback'===this.options.saveMissingTo&&V&&V[0])for(var M=0;M1&&void 0!==arguments[1]?arguments[1]:{},n=void 0,r=void 0;return'string'==typeof t&&(t=[t]),t.forEach(function(t){if(!e.isValidLookup(n)){var i=e.extractFromKey(t,o),a=i.key;r=a;var s=i.namespaces;e.options.fallbackNS&&(s=s.concat(e.options.fallbackNS));var l=void 0!==o.count&&'string'!=typeof o.count,p=void 0!==o.context&&'string'==typeof o.context&&''!==o.context,u=o.lngs?o.lngs:e.languageUtils.toResolveHierarchy(o.lng||e.language);s.forEach(function(t){e.isValidLookup(n)||u.forEach(function(r){if(!e.isValidLookup(n)){var i=a,s=[i],u=void 0;l&&(u=e.pluralResolver.getSuffix(r,o.count)),l&&p&&s.push(i+u),p&&s.push(i+=''+e.options.contextSeparator+o.context),l&&s.push(i+=u);for(var c=void 0;c=s.pop();)e.isValidLookup(n)||(n=e.getResource(r,t,c,o))}})})}}),{res:n,usedKey:r}},e.prototype.isValidLookup=function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&''===t)},e.prototype.getResource=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(t,e,o,n)},e})(s.default);n.default=f},673); +__d(function(s,o,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={processors:{},addPostProcessor:function(s){this.processors[s.name]=s},handle:function(s,o,e,r,c){var t=this;return s.forEach(function(s){t.processors[s]&&(o=t.processors[s].process(o,e,r,c))}),o}}},674); +__d(function(t,e,o,n){'use strict';Object.defineProperty(n,"__esModule",{value:!0});var i,r=e(669),a=(i=r)&&i.__esModule?i:{default:i};function s(t){return t.charAt(0).toUpperCase()+t.slice(1)}var l=(function(){function t(e){!(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=a.default.create('languageUtils')}return t.prototype.getScriptPartFromCode=function(t){if(!t||t.indexOf('-')<0)return null;var e=t.split('-');return 2===e.length?null:(e.pop(),this.formatLanguageCode(e.join('-')))},t.prototype.getLanguagePartFromCode=function(t){if(!t||t.indexOf('-')<0)return t;var e=t.split('-');return this.formatLanguageCode(e[0])},t.prototype.formatLanguageCode=function(t){if('string'==typeof t&&t.indexOf('-')>-1){var e=['hans','hant','latn','cyrl','cans','mong','arab'],o=t.split('-');return this.options.lowerCaseLng?o=o.map(function(t){return t.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=s(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),'sgn'!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=s(o[1].toLowerCase())),e.indexOf(o[2].toLowerCase())>-1&&(o[2]=s(o[2].toLowerCase()))),o.join('-')}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t},t.prototype.isWhitelisted=function(t){return('languageOnly'===this.options.load||this.options.nonExplicitWhitelist)&&(t=this.getLanguagePartFromCode(t)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(t)>-1},t.prototype.getFallbackCodes=function(t,e){if(!t)return[];if('string'==typeof t&&(t=[t]),'[object Array]'===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var o=t[e];return o||(o=t[this.getScriptPartFromCode(e)]),o||(o=t[this.formatLanguageCode(e)]),o||(o=t.default),o||[]},t.prototype.toResolveHierarchy=function(t,e){var o=this,n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=function(t){t&&(o.isWhitelisted(t)?i.push(t):o.logger.warn('rejecting non-whitelisted language code: '+t))};return'string'==typeof t&&t.indexOf('-')>-1?('languageOnly'!==this.options.load&&r(this.formatLanguageCode(t)),'languageOnly'!==this.options.load&&'currentOnly'!==this.options.load&&r(this.getScriptPartFromCode(t)),'currentOnly'!==this.options.load&&r(this.getLanguagePartFromCode(t))):'string'==typeof t&&r(this.formatLanguageCode(t)),n.forEach(function(t){i.indexOf(t)<0&&r(o.formatLanguageCode(t))}),i},t})();n.default=l},675); +__d(function(n,r,t,u){'use strict';Object.defineProperty(u,"__esModule",{value:!0});var e,o=r(669),s=(e=o)&&e.__esModule?e:{default:e};var i=[{lngs:['ach','ak','am','arn','br','fil','gun','ln','mfe','mg','mi','oc','pt','pt-BR','tg','ti','tr','uz','wa'],nr:[1,2],fc:1},{lngs:['af','an','ast','az','bg','bn','ca','da','de','dev','el','en','eo','es','et','eu','fi','fo','fur','fy','gl','gu','ha','he','hi','hu','hy','ia','it','kn','ku','lb','mai','ml','mn','mr','nah','nap','nb','ne','nl','nn','no','nso','pa','pap','pms','ps','pt-PT','rm','sco','se','si','so','son','sq','sv','sw','ta','te','tk','ur','yo'],nr:[1,2],fc:2},{lngs:['ay','bo','cgg','fa','id','ja','jbo','ka','kk','km','ko','ky','lo','ms','sah','su','th','tt','ug','vi','wo','zh'],nr:[1],fc:3},{lngs:['be','bs','dz','hr','ru','sr','uk'],nr:[1,2,5],fc:4},{lngs:['ar'],nr:[0,1,2,3,11,100],fc:5},{lngs:['cs','sk'],nr:[1,2,5],fc:6},{lngs:['csb','pl'],nr:[1,2,5],fc:7},{lngs:['cy'],nr:[1,2,3,8],fc:8},{lngs:['fr'],nr:[1,2],fc:9},{lngs:['ga'],nr:[1,2,3,7,11],fc:10},{lngs:['gd'],nr:[1,2,3,20],fc:11},{lngs:['is'],nr:[1,2],fc:12},{lngs:['jv'],nr:[0,1],fc:13},{lngs:['kw'],nr:[1,2,3,4],fc:14},{lngs:['lt'],nr:[1,2,10],fc:15},{lngs:['lv'],nr:[1,2,0],fc:16},{lngs:['mk'],nr:[1,2],fc:17},{lngs:['mnk'],nr:[0,1,2],fc:18},{lngs:['mt'],nr:[1,2,11,20],fc:19},{lngs:['or'],nr:[2,1],fc:2},{lngs:['ro'],nr:[1,2,20],fc:20},{lngs:['sl'],nr:[5,1,2,3],fc:21}],l={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(n){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},5:function(n){return Number(0===n?0:1==n?1:2==n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&n<=4?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:n<7?2:n<11?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&n<20?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0===n||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3)},20:function(n){return Number(1==n?0:0===n||n%100>0&&n%100<20?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)}};var f=(function(){function n(r){var t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(function(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")})(this,n),this.languageUtils=r,this.options=u,this.logger=s.default.create('pluralResolver'),this.rules=(t={},i.forEach(function(n){n.lngs.forEach(function(r){t[r]={numbers:n.nr,plurals:l[n.fc]}})}),t)}return n.prototype.addRule=function(n,r){this.rules[n]=r},n.prototype.getRule=function(n){return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},n.prototype.needsPlural=function(n){var r=this.getRule(n);return r&&r.numbers.length>1},n.prototype.getPluralFormsOfKey=function(n,r){var t=this,u=[],e=this.getRule(n);return e?(e.numbers.forEach(function(e){var o=t.getSuffix(n,e);u.push(''+r+o)}),u):u},n.prototype.getSuffix=function(n,r){var t=this,u=this.getRule(n);if(u){var e=u.noAbs?u.plurals(r):u.plurals(Math.abs(r)),o=u.numbers[e];this.options.simplifyPluralSuffix&&2===u.numbers.length&&1===u.numbers[0]&&(2===o?o='plural':1===o&&(o=''));var s=function(){return t.options.prepend&&o.toString()?t.options.prepend+o.toString():o.toString()};return'v1'===this.options.compatibilityJSON?1===o?'':'number'==typeof o?'_plural_'+o.toString():s():'v2'===this.options.compatibilityJSON||2===u.numbers.length&&1===u.numbers[0]?s():2===u.numbers.length&&1===u.numbers[0]?s():this.options.prepend&&e.toString()?this.options.prepend+e.toString():e.toString()}return this.logger.warn('no plural rule found for: '+n),''},n})();u.default=f},676); +__d(function(e,t,i,r){'use strict';Object.defineProperty(r,"__esModule",{value:!0});var n,s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.logger=p.default.create('interpolator'),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||a.escape),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?a.regexEscape(t.prefix):t.prefixEscaped||'{{',this.suffix=t.suffix?a.regexEscape(t.suffix):t.suffixEscaped||'}}',this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||',',this.unescapePrefix=t.unescapeSuffix?'':t.unescapePrefix||'-',this.unescapeSuffix=this.unescapePrefix?'':t.unescapeSuffix||'',this.nestingPrefix=t.nestingPrefix?a.regexEscape(t.nestingPrefix):t.nestingPrefixEscaped||a.regexEscape('$t('),this.nestingSuffix=t.nestingSuffix?a.regexEscape(t.nestingSuffix):t.nestingSuffixEscaped||a.regexEscape(')'),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+'(.+?)'+this.suffix;this.regexp=new RegExp(e,'g');var t=''+this.prefix+this.unescapePrefix+'(.+?)'+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,'g');var i=this.nestingPrefix+'(.+?)'+this.nestingSuffix;this.nestingRegexp=new RegExp(i,'g')},e.prototype.interpolate=function(e,t,i){var r=this,n=void 0,s=void 0,o=void 0;function p(e){return e.replace(/\$/g,'$$$$')}var f=function(e){if(e.indexOf(r.formatSeparator)<0)return a.getPath(t,e);var n=e.split(r.formatSeparator),s=n.shift().trim(),o=n.join(r.formatSeparator).trim();return r.format(a.getPath(t,s),o,i)};for(this.resetRegExp(),o=0;(n=this.regexpUnescape.exec(e))&&(s=f(n[1].trim()),e=e.replace(n[0],s),this.regexpUnescape.lastIndex=0,!(++o>=this.maxReplaces)););for(o=0;n=this.regexp.exec(e);){if('string'!=typeof(s=f(n[1].trim()))&&(s=a.makeString(s)),!s)if('function'==typeof this.options.missingInterpolationHandler){var c=this.options.missingInterpolationHandler(e,n);s='string'==typeof c?c:''}else this.logger.warn('missed to pass in variable '+n[1]+' for interpolating '+e),s='';if(s=this.escapeValue?p(this.escape(s)):p(s),e=e.replace(n[0],s),this.regexp.lastIndex=0,++o>=this.maxReplaces)break}return e},e.prototype.nest=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,n=void 0,o=s({},i);function p(e,t){if(e.indexOf(',')<0)return e;var i=e.split(',');e=i.shift();var r=i.join(',');r=(r=this.interpolate(r,o)).replace(/'/g,'"');try{o=JSON.parse(r),t&&(o=s({},t,o))}catch(t){this.logger.error('failed parsing options string in nesting for key '+e,t)}return e}for(o.applyPostProcessor=!1;r=this.nestingRegexp.exec(e);){if((n=t(p.call(this,r[1].trim(),o),o))&&r[0]===e&&'string'!=typeof n)return n;'string'!=typeof n&&(n=a.makeString(n)),n||(this.logger.warn('missed to resolve '+r[1]+' for nesting '+e),n=''),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e},e})();r.default=f},677); +__d(function(e,t,n,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var i=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this));return i.backend=n,i.store=o,i.languageUtils=a.languageUtils,i.options=r,i.logger=l.default.create('backendConnector'),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(a,r.backend,r),i}return u(t,e),t.prototype.queueLoad=function(e,t,n){var o=this,a=[],r=[],i=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var i=e+'|'+t;o.store.hasResourceBundle(e,t)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?r.indexOf(i)<0&&r.push(i):(o.state[i]=1,n=!1,r.indexOf(i)<0&&r.push(i),a.indexOf(i)<0&&a.push(i),l.indexOf(t)<0&&l.push(t)))}),n||i.push(e)}),(a.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:n}),{toLoad:a,pending:r,toLoadLanguages:i,toLoadNamespaces:l}},t.prototype.loaded=function(e,t,n){var o=this,a=e.split('|'),l=r(a,2),s=l[0],u=l[1];t&&this.emit('failedLoading',s,u,t),n&&this.store.addResourceBundle(s,u,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){i.pushPath(n.loaded,[s],u),(function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)})(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(o.emit('loaded',n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=arguments[5];return e.length?this.backend[n](e,t,function(l,s){l&&s&&o<5?setTimeout(function(){a.read.call(a,e,t,n,o+1,2*r,i)},r):i(l,s)}):i(null,{})},t.prototype.load=function(e,t,n){var o=this;if(!this.backend)return this.logger.warn('No backend was added via i18next.use. Will not load resources.'),n&&n();var l=a({},this.backend.options,this.options.backend);'string'==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),'string'==typeof t&&(t=[t]);var s=this.queueLoad(e,t,n);if(!s.toLoad.length)return s.pending.length||n(),null;l.allowMultiLoading&&this.backend.readMulti?this.read(s.toLoadLanguages,s.toLoadNamespaces,'readMulti',null,null,function(e,t){e&&o.logger.warn('loading namespaces '+s.toLoadNamespaces.join(', ')+' for languages '+s.toLoadLanguages.join(', ')+' via multiloading failed',e),!e&&t&&o.logger.log('successfully loaded namespaces '+s.toLoadNamespaces.join(', ')+' for languages '+s.toLoadLanguages.join(', ')+' via multiloading',t),s.toLoad.forEach(function(n){var a=n.split('|'),l=r(a,2),s=l[0],u=l[1],d=i.getPath(t,[s,u]);if(d)o.loaded(n,e,d);else{var c='loading namespace '+u+' for language '+s+' via multiloading failed';o.loaded(n,c),o.logger.error(c)}})}):s.toLoad.forEach(function(e){o.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn('No backend was added via i18next.use. Will not load resources.');var o=a({},this.backend.options,this.options.backend);'string'==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),'string'==typeof t&&(t=[t]),o.allowMultiLoading&&this.backend.readMulti?this.read(e,t,'readMulti',null,null,function(o,a){o&&n.logger.warn('reloading namespaces '+t.join(', ')+' for languages '+e.join(', ')+' via multiloading failed',o),!o&&a&&n.logger.log('successfully reloaded namespaces '+t.join(', ')+' for languages '+e.join(', ')+' via multiloading',a),e.forEach(function(e){t.forEach(function(t){var r=i.getPath(a,[e,t]);if(r)n.loaded(e+'|'+t,o,r);else{var l='reloading namespace '+t+' for language '+e+' via multiloading failed';n.loaded(e+'|'+t,l),n.logger.error(l)}})})}):e.forEach(function(e){t.forEach(function(t){n.loadOne(e+'|'+t,'re')})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',o=e.split('|'),a=r(o,2),i=a[0],l=a[1];this.read(i,l,'read',null,null,function(o,a){o&&t.logger.warn(n+'loading namespace '+l+' for language '+i+' failed',o),!o&&a&&t.logger.log(n+'loaded namespace '+l+' for language '+i,a),t.loaded(e,o,a)})},t.prototype.saveMissing=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,a({},i,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o)},t})(s(t(670)).default);o.default=d},678); +__d(function(e,t,r,o){'use strict';Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var i=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this));return i.cache=r,i.store=o,i.services=n,i.options=a,i.logger=c.default.create('cacheConnector'),i.cache&&i.cache.init&&i.cache.init(n,a.cache,a),i}return i(t,e),t.prototype.load=function(e,t,r){var o=this;if(!this.cache)return r&&r();var c=n({},this.cache.options,this.options.cache),a='string'==typeof e?this.services.languageUtils.toResolveHierarchy(e):e;c.enabled?this.cache.load(a,function(e,t){if(e&&o.logger.error('loading languages '+a.join(', ')+' from cache failed',e),t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))for(var c in t[n])if(Object.prototype.hasOwnProperty.call(t[n],c)&&'i18nStamp'!==c){var i=t[n][c];i&&o.store.addResourceBundle(n,c,i)}r&&r()}):r&&r()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t})(a(t(670)).default);o.default=s},679); +__d(function(e,a,n,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.transformOptions=function(e){'string'==typeof e.ns&&(e.ns=[e.ns]);'string'==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]);'string'==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]);e.whitelist&&e.whitelist.indexOf('cimode')<0&&(e.whitelist=e.whitelist.concat(['cimode']));return e},t.get=function(){return{debug:!1,initImmediate:!0,ns:['translation'],defaultNS:['translation'],fallbackLng:['dev'],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:'all',preload:!1,simplifyPluralSuffix:!0,keySeparator:'.',nsSeparator:':',pluralSeparator:'_',contextSeparator:'_',saveMissing:!1,updateMissing:!1,saveMissingTo:'fallback',saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var a={};return e[1]&&(a.defaultValue=e[1]),e[2]&&(a.tDescription=e[2]),a},interpolation:{escapeValue:!0,format:function(e,a,n){return e},prefix:'{{',suffix:'}}',formatSeparator:',',unescapePrefix:'-',nestingPrefix:'$t(',nestingSuffix:')',maxReplaces:1e3}}}},680); +__d(function(e,t,o,n){o.exports={tabbar:{nations:"NATIONS",chat:"CHAT",dashboard:"DASHBOARD",wallet:"WALLET",profile:"PROFILE"},activityLog:{nation:{join:{succeed:"Joined nation: {{nationName}}",failed:"Failed to join: {{nationName}}"},create:{succeed:"Created Nation {{nationName}}",failed:"Failed to create: {{nationName}}"},leave:{succeed:"Left nation: {{nationName}}",failed:"Failed to leave: {{nationName}}"}}},common:{send:"Send",receive:"Receive",transactions:"Transactions",ok:"OK",previous:"Previous",next:"Next",cancel:"Cancel",begin:"Begin",done:"Done",edit:"Edit",from:"From",to:"To",address:"Address",amount:"Amount",wallet:"Wallet",map:"Map",join:"Join",leave:"Leave",new:"New",optional:"Optional",available:"available",options:"Options",fees:"Fees",chat:"Chat",nations:"Nations",governmentalStructure:"Governmental Structure",updating:"Updating",updateFailed:"Update failed",ethereum:"Ethereum",bitnationPat:"XPAT",continue:"Continue",location:"Location",accounts:"Accounts",balance:"Balance"},enums:{nation:{locationType:{virtual:"Virtual nation",geographical:"Geographical nation"},usageAllowance:{may:"may",mayNot:"may not"},profit:{for:"for-profit",non:"non-profit"},legalCode:{no:"No legal code",transSupra:"Transnational/Supranational Law",multiple:"Multiple Legal Codes",unidroit:"UNIDROIT Principles",computer:"Computer Code",common:"Common Law",civil:"Civil Law"},services:{legal:"Legal Services",insurance:"Insurance Services",social:"Social Services",diplomatic:"Diplomatic Services",physical:"Physical Services"},governmentType:{other:"Other Type of Government",holocracy:"Holocracy",democracy:"Democracy",autocracy:"Autocracy",theocracy:"Theocracy",meritocracy:"Meritocracy"},lawEnforcementMechanism:{no:"No Law Enforcement",idReputation:"ID & Reputation Law Enforcement",privateOrCooperativeSecurity:"Private or Cooperative Security",nationState:"Nation State Law Enforcement",international:"International Law Enforcement"},status:{draft:"Draft",NATION_JOIN:{200:"Joining",300:"",400:"Banned"},NATION_CREATE:{200:"Pending",300:"",400:"Rejected"},NATION_LEAVE:{200:"Leaving",300:"",400:"Leaving\xa0rejected"}}},onOff:{on:"on",off:"off"}},alerts:{abortKeyCreateProcess:{title:"Delete Private Key",subtitle:"Are you sure that you want to stop creating this private key?",confirm:"Delete Key",cancel:"$t(common.cancel)"},privateKeyGroupCompleted:{title:"Group {{number}} finished!",subtitle:"Good work! Now, write down next group of {{KEY_PAGE_LENGTH}} words.",confirm:"$t(common.ok)"},incorrectKeyEntered:{title:"Incorrect: Check all the words.",subtitle:"",confirm:"$t(common.ok)"},passwordRecoveryFailed:{title:"Entered private key does not match the account.",subtitle:"",confirm:"$t(common.ok)"},walletRequired:{title:"No wallet",subtitle:"You need to setup a wallet first",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},resetForm:{title:"Reset",subtitle:"Reset this form to default values?",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},deleteForm:{title:"Delete Draft",subtitle:"Delete this draft nation?",delete:"Delete",cancel:"$t(common.cancel)"},saveForm:{title:"Save Draft",subtitle:"This draft nation has been saved to your device.",continue:"$t(common.continue)",close:"Close"},submitForm:{title:"Submit Nation",subtitle:"Submit this nation to the blockchain?",confirm:"$t(common.continue)",cancel:"$t(common.cancel)"},saveFormOnCancel:{title:"Save Draft",subtitle:"Do you want to save this nations as a draft on your device?",save:"Save",cancel:"$t(common.cancel)"},error:{title:"Error",confirm:"$t(common.ok)"},nationsDisabled:{title:"This function is disabled in this release. It will be re-enabled on March 3.",confirm:"$t(common.ok)"},passcodeVerificationFailed:{title:"Passcode mismatch",subtitle:"Please enter passcode carefully again.",tryAgain:"Try again",startOver:"Start over"},changingPasscodeType:{title:"Change passcode?",subtitle:"Changing the passcode type requires you to change your passcode",confirm:"$t(common.ok)",cancel:"$t(common.cancel)"},successTransaction:{title:"Success",subtitle:"Your transaction has been successfully sent",confirm:"$t(common.ok)"},successResetPassword:{title:"Success",subtitle:"Your password has been successfully changed",confirm:"$t(common.ok)"}},screens:{intro:{freeSpeech:{title:"Free Speech",text:"She uses Bitnation to speak privately with clients. He uses Bitnation to speak privately with victims."},refugeeEmergencyResponse:{title:"Refugee Emergency Response",text:"He can show his documents from home. She can get a fair wage for her work."},education:{title:"Bitnation Education Network",text:"She can get her high school diploma. He can study the languages he needs."},nations:{title:"Borderless Decentralized Nations",text:"They can form a nation to get a fair deal, enforce contracts, and share working knowledge."}},accounts:{title:"Accounts",introduction:"Create a new account or restore an account you have backed up.",newAccount:"New Account",restoreAccount:"Restore Account",warningTitle:"Where's My Money?",warningText:"This release is not compatible with prior releases of the Pangea app. Tap this button to learn how to recover the Ethereum in your wallet.",checkRelease:"Open Instructions Website",create:{prev:"Previous",next:"Next",title:"Create Account",securityTitle:"Security Settings",numericCode:"Numeric Passcode (less secure)",codeLength:"Passcode Length",lockAccount:"Lock Account when app closes",requireCode:"Require Passcode for",payment:"Payments & Editing",editAccount:"Edit Account",developerTitle:"Developer Settings",testingAccount:"Testing Account",useMainNetwork:"Using main Ethereum network",useRinkebyNetwork:"Using Rinkeby testing network",detailLogging:"Detailed Logging",debuggingTools:"Debugging Tools",identityTitle:"Create Identity",name:"Name",location:"Location",readyUse:"Your account is ready to use.",walletEmpty:"Your account is ready, but your wallet is empty. Please add ETH to your wallet so you can do stuff.",openDashboard:"Open Dashboard",openWallet:"Open ETH Wallet"},restore:{title:"Restore Account",source:"Restore your account from:",clipboard:"Restore from Clipboard",file:"Restore from File",cloud:"Restore from Cloud",emptyWalletStatement:"Your wallet is empty or low. Please add ETH to your wallet so you can do stuff.",sendETH:"Send ETH to address"}},dashboard:{tabTitle:"$t(tabbar.dashboard)",activityPanel:{title:"Activity"},walletPanel:{title:"$t(common.wallet)",empty:"Create a wallet to use Pangea."},nationsPanel:{title:"$t(common.nations)",nationsCount:{prefix:"",main:"{{count}}",suffix:" in Pangea"},newNations:"Newest Nations"},warningPanel:{title:"Notice",body:"Smart contracts will be upgraded in the near future.",button:"More"},confirmKeyPanel:{title:"Important",body:"Write down your private key to not lose your account.",button:"Start"}},chat:{title:"$t(common.chat)",tabTitle:"$t(tabbar.chat)",allChats:"All Chats",myChats:"My Chats",keyFromClipboard:"Use Identity Key on clipboard",keyFromLibrary:"Get Identity Key from library",keyFromCamera:"Scan Identity Key with camera",dappChat:"New Chat with DApp",cancel:"$t(common.cancel)",sendInvite:"Send Invite",startChat:"Begin Chat",newChat:"New Chat",invalidKey:"Invalid or Missing Key",inviteSent:"Invite Sent",menu:{filterChatList:"Filter Chat List",markAllRead:"Mark all as read",shareIdentityKey:"Share my Identity Key",managerChatSections:"Manager Chat Sections",restoreChat:"Restore Chat",settings:"Settings"}},migration:{title:"Migration",migrateData:"Please wait, we are migrating your data"},nations:{toolbar:{chat:"CHAT",map:"MAP",join:"JOIN",submit:"SUBMIT",delete:"DELETE",reset:"RESET",save:"SAVE",leave:"LEAVE"},title:"$t(common.nations)",tabTitle:"$t(tabbar.nations)",allNations:"All Nations",myNations:"My Nations"},nationDetails:{title:"Nation",aboutInfo:"About {{name}}",description:"Description",locationInfo:"{{name}} is a {{locationType}}",legalSystemInfo:"{{name}} uses {{code}} as its legal system.",lawEnforcementInfo:"The laws are enforced with {{lawEnforcementMechanism}}.",governmentInfo:"The government is a {{decisionMakingProcess}}.",funFacts:"Fun Facts",diplomaticRecognitionInfo:"{{name}} is seeking diplomatic recognition from Earth governments as a sovereign entity.",serviceUsageInfo:"Non-citizens {{allowance}} use national services.",profitInfo:"The nation is managed as a {{profit}} entity.",ethereumAddress:"Ethereum Address:",status:"Status:",citizen:"You are citizen of",statusDescription:{NATION_CREATE:{200:"Submission in progress...",300:"Submitted to blockchain.",400:"Submission failed."},NATION_JOIN:{200:"Join nation in progress...",300:"Join nation succeed.",400:"Join nation failed"},NATION_LEAVE:{200:"Leave nation in progress...",300:"Leave nation succeed.",400:"Leave nation failed"}}},createNation:{title:"Create A Nation",introduction:"Reclaim your sovereignty by creating your own decentralized borderless voluntary nation (DBVN).",prompt:{name:"Nation name",description:"Short description",location:"Nation location type...",represents:"Nation represents an existing Earth country",legalCode:"Legal Code...",lawEnforcementMechanism:"Law Enforcement Mechanism...",typeOfGovernment:"Type of Government...",servicesOffered:"Services Offered...",diplomaticRecognition:"Seeking diplomatic recognition as a sovereign entity.",servicesUsage:"Non-citizens may use governance services.",profit:"For-profit nation."},locationTypeHint:"Virtual nations exist only in Pangea. Geographic nations are on Earth.",cancelButton:"$t(common.cancel)",doneButton:"$t(common.done)"},wallet:{title:"$t(common.wallet)",tabTitle:"$t(tabbar.wallet)",empty:{createWallet:"Create Wallet",restoreWallet:"Restore Wallet",createWalletPanel:{title:"$t(screens.wallet.empty.createWallet)",text:"You need an Ethereum wallet to make payments, to create nations, and to use other useful services.",button:"$t(screens.wallet.empty.createWallet)"},restoreWalletPanel:{title:"$t(screens.wallet.empty.restoreWallet)",text:"You can restore your wallet if you lose or change your phone. You will need your private key to restore your wallet.",button:"$t(screens.wallet.empty.restoreWallet)"}}},profile:{title:"Profile",tabTitle:"$t(tabbar.profile)",shareKey:"Share Identity Key",empty:{createProfilePanel:{title:"Become a World Citizen",text:"Bitnation is a decentralized, open-source movement powered by blockchain technology. Bitnation offers a peer-to-peer voluntary governance system to compete with the prevailing top-down, one-size-fits-all, geographical apartheid Nation State model wherein your quality of life is arbitrarily defined by where you were born.",button:"Create a User Profile"}},editButton:"$t(common.edit)",edit:{cancelButton:"$t(common.cancel)",doneButton:"$t(common.done)",personalInformation:"Personal Information",name:"Name",location:"Location ($t(common.optional))",editPhoto:"$t(common.edit)",editPhotoActionSheet:{title:"Edit your profile picture.",photoLibrary:"Photo Library",takePhoto:"Take Photo",cancel:"$t(common.cancel)"}}},confirmKey:{title:"Confirm Private Key",instructions:{beforeGrid:["We will show you a group of {{KEY_LENGTH}} words that is the private key of your account."],afterGrid:["Write the words on paper, in order. Store the paper in very safe place. If your device is lost, stolen, broken, or upgraded, you must have this key to restore your account."]},process:{instructions:["Write each row of words on the piece of paper. Press \u201cNext\u201d when you have written the row."],nextButton:"$t(common.next)",previousButton:"$t(common.previous)"},startButton:"$t(common.begin)"},verifyKey:{title:"Verify Private Key",instructions:["Now that you have written down your private key, we will ask you to verify it.","You will type the {{KEY_LENGTH}} words of your private key into the app, and we will check that your written private key is correct.","Your private key protects everything in Bitnation, so be sure to put your paper with your private key in a safe place."],success:{instructions:["Congratulations! You correctly entered your private key.","Now, put your paper with your private key in a safe place."],doneButton:"$t(common.done)"},startButton:"$t(common.begin)"},enterPrivateKey:{instructions:["Enter in the correct order the {{KEY_LENGTH}} words that you wrote down as your paper key. Tap a box to begin."],nextButton:"$t(common.next)",previousButton:"$t(common.previous)",doneButton:"$t(common.done)"},viewPrivateKey:{title:"Private key",instructions:[],nextButton:"$t(common.next)",previousButton:"$t(common.previous)"},restoreKey:{title:"Restore account"},sendMoney:{title:"Send money",enterAddress:"Enter ETH address",available:"available"},receiveMoney:{title:"Receive Money",shareAddressPanel:{title:"Copy Address",text:"You can copy your wallet address and send any way you choose, e.g. SMS or email. Do not try to type your address by hand!",button:"Share Wallet Address"}},dAppQRCodeScanner:{devHost:{title:"Connect to DApp host",instruction:"Scan QR code to connect to PC"},logger:{title:"Connect to debug logger",instruction:"Scan QR code to connect to PC"}},settings:{title:"Settings",tabTitle:"SETTINGS",identity:"Identity",security:"Security",viewPrivateKey:"Private Key",confirmPrivateKey:"Private Key (confirmation required)",switchAccounts:"Switch accounts",connectToDAppHost:"Connect to DApp host",connectToDAppLogger:"Connect debug logger",documents:"Documents",sections:{account:"Account",dApps:"DApp development",notary:"Notary"}},securitySettings:{title:"Security settings",useNumericPasscode:"Numeric Passcode (less secure)",passcodeLength:"Passcode Length",changePasscode:"Change Passcode"},pinCode:{enterInstruction:"Enter PIN code:",createInstruction:"Enter new PIN code:",verifyInstruction:"Enter PIN code again:"},password:{enterInstruction:"Enter password:",createInstruction:"Enter new password:",verifyInstruction:"Enter password again:",forgetInstruction:"Forgot Password?"},confirmTransaction:{title:"Confirm Transaction",gasPrice:"What gas price would you like to set?",gasLimit:"Gas Limit",gasEstimate:"Est. Transaction fee",confirmButton:"Confirm",gasPriceTitle:"Gas Price: {{gasPrice}}",slow:"Slow",quick:"Quick",fast:"Fast",fastest:"Fastest",to:"To Address:",from:"From Address:",amount:"Amount:",total:"Total:",processor:"Processor",gwei:"Gwei",eth:"ETH"},documentsList:{title:"Documents",actionSheetTitle:"Select document to store"},documentView:{actions:{edit:"Edit metadata",delete:"Delete document"}},documentModify:{title:"New document",fields:{title:"Title",description:"Description"},placeholder:{title:"Enter title",description:"Enter description"},save:"Save document"}},testingMode:{changeActiveAlert:{title:"You have turned {{onOff}} testing mode"},removeWallets:"Remove wallets"},error:{noConnection:"Please check your internet connection.",insufficientFunds:"Insufficient funds. Please check your wallet.",noCamera:"Camera Error",invalidPinCode:"PIN code is invalid. Please try again.",invalidPassword:"Password is invalid. Please try again.",loginFailed:"Unable to login. Please report this issue.",passcodeCreationFailed:"Unable to create passcode. Please report this issue.",accountCreationFailed:"Unable to create account. Please report this issue.",generalError:"Unable to finish operation. Please report this issue."},bots:{freudbot:{initial1:"Hi, I am Dr. FreudBot, your resident therapist. What is bothering you?",initial2:"Herr Professor Doktor FreudBot here, your therapy bot. What has been troubling you?",initial3:"I am the Pangea therapy bot, Dr. FreudBot, ready to help. I am not a real therapist, I just play one in this app.",initial4:"I'm here, Dr. FreudBot. Talk to me.",initial5:"Talk to me! I am Dr. FreudBot. Tell me about your mother.",initial6:"Hallo, Dr. FreudBot here. I am not a real Freudian. I am not real. Are you? Are you sure?"}},dApps:{unknownDAppMessage:"This message was sent from DApp that is not installed on your device. It can not be rendered.",failedDAppMessageRender:"{{dAppName}} DApp failed to render this message. It may be due to an issue in the DApp or using of an old version.",failedDAppModalRender:"{{dAppName}} DApp failed to render the modal. It may be due to an issue in the DApp or using of an old version."}}},681); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.startMigration=f,n.isMigration=g;var a=r(350),u=r(549),i=babelHelpers.interopRequireDefault(u),s=r(548),c=r(616),o=regeneratorRuntime.mark(f),l=regeneratorRuntime.mark(g);function f(){var e,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default;case 2:return e=t.sent,t.next=5,(0,s.getCurrentAccount)();case 5:return r=t.sent,e.write(function(){e.create('Account',babelHelpers.extends({},r,{lastMigrationVersion:'1.1.0'}),!0)}),t.next=9,(0,a.call)(c.launchLoggedInFlow);case 9:case"end":return t.stop()}},o,this)}function g(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getCurrentAccount)();case 2:if('1.1.0'===e.sent.lastMigrationVersion){e.next=5;break}return e.abrupt("return",!0);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},l,this)}},682); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startNavigation=function(){return{type:A}};var A=r.START_NAVIGATION='START_NAVIGATION'},683); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=r(350),u=r(685),i=r(525),o=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)(i.VALIDATE_ENTERED_MNEMONIC,u.validateEnteredMnemonic);case 2:case"end":return e.stop()}},o,this)}},684); +__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateEnteredMnemonic=d;var a=n(350),c=n(366),u=babelHelpers.interopRequireDefault(c),i=n(586),l=babelHelpers.interopRequireDefault(i),s=n(525),o=regeneratorRuntime.mark(d);function d(){var e,n,t,r,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=void 0,i.prev=1,i.next=4,(0,a.call)(l.default.getMnemonic);case 4:e=i.sent,i.next=10;break;case 7:i.prev=7,i.t0=i.catch(1),e=null;case 10:return i.next=12,(0,a.select)();case 12:if(n=i.sent,t=n.key.enteredMnemonic,null!==e){i.next=22;break}return i.next=17,(0,a.call)(l.default.validateMnemonic,t);case 17:return r=i.sent,i.next=20,(0,a.put)((0,s.changeMnemonicValid)(!0===r));case 20:i.next=25;break;case 22:return c=u.default.isEqual(e,t),i.next=25,(0,a.put)((0,s.changeMnemonicValid)(!0===c));case 25:case"end":return i.stop()}},o,this,[[1,7]])}},685); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var a=t(350),s=t(687),i=t(537),u=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.call)(s.startDatabaseListening),(0,a.takeEvery)(i.LOAD_SETTINGS,s.loadSettings),(0,a.takeEvery)(i.SAVE_SETTINGS,s.saveSettings)]);case 2:case"end":return e.stop()}},u,this)}},686); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.onCurrentAccountChange=g,r.buildAccountSettingsResults=b,r.startDatabaseListening=x,r.loadSettings=m,r.saveSettings=v;var a=t(350),c=t(549),u=babelHelpers.interopRequireDefault(c),s=t(548),i=t(537),o=t(688),l=regeneratorRuntime.mark(g),d=regeneratorRuntime.mark(x),p=regeneratorRuntime.mark(m),f=regeneratorRuntime.mark(v);function g(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==e.length){r.next=2;break}return r.abrupt("return");case 2:return t=e[0],r.next=5,(0,a.call)(o.convertFromDatabase,t);case 5:return n=r.sent,r.next=8,(0,a.put)((0,i.settingsUpdated)(n));case 8:case"end":return r.stop()}},l,this)}function b(e,t){return null===t?null:e.objects('AccountSettings').filtered("id == '"+t+"'")}function x(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(s.currentAccountBasedUpdate,b,g);case 2:case"end":return e.stop()}},d,this)}function m(e){var t,n,r;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,u.default;case 2:if(t=c.sent,0!==(n=t.objects('AccountSettings').filtered("id == '"+e.accountId+"'")).length){c.next=8;break}return c.next=7,(0,a.call)(e.callback,!1);case 7:return c.abrupt("return");case 8:return r=n[0],c.next=11,(0,a.put)((0,i.settingsUpdated)((0,o.convertFromDatabase)(r)));case 11:return c.next=13,(0,a.call)(e.callback,!0);case 13:case"end":return c.stop()}},p,this)}function v(e){var t,n,r,c;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,a.select)();case 2:return t=s.sent,n=t.settings,s.next=6,u.default;case 6:if(r=s.sent,c=null,r.write(function(){c=r.create('AccountSettings',(0,o.convertToDatabase)(n,e.accountId),!0)}),null!=c){s.next=13;break}return s.next=12,(0,a.call)(e.callback,!1);case 12:return s.abrupt("return");case 13:return s.next=15,(0,a.put)((0,i.settingsUpdated)((0,o.convertFromDatabase)(c)));case 15:return s.next=17,(0,a.call)(e.callback,!0);case 17:case"end":return s.stop()}},f,this)}},687); +__d(function(e,p,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.convertFromDatabase=function(e){return{passcodeType:'pinCode'===e.passcodeType?{type:'pinCode',length:e.pinCodeLength||t.MINIMAL_PIN_CODE_LENGTH}:{type:'password'}}},o.convertToDatabase=function(e,p){return{id:p,passcodeType:e.passcodeType.type,pinCodeLength:'pinCode'===e.passcodeType.type?e.passcodeType.length:null}},p(574);var t=p(516)},688); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=o;var n=t(350),E=t(522),u=t(690),_=t(517),l=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)([E.UPDATE_WALLET_LIST,_.SERVICES_CREATED,_.SERVICES_DESTROYED],u.updateWalletList),(0,n.takeEvery)(E.UPDATE_WALLET_BALANCE,u.updateWalletBalance),(0,n.takeEvery)(E.SEND_MONEY,u.sendMoneySaga)]);case 2:case"end":return e.stop()}},l,this)}},689); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.updateWalletToDb=W,n.sendMoneySaga=y,n.getDbWallets=A,n.saveWalletsToDb=R,n.updateWalletsToDb=S,n.updateWalletList=T,n.updateWalletBalance=D;var a=t(350),c=t(691),s=t(522),u=t(548),l=t(692),o=babelHelpers.interopRequireDefault(l),i=t(755),d=t(549),p=babelHelpers.interopRequireDefault(d),x=t(756),f=t(523),b=regeneratorRuntime.mark(W),v=regeneratorRuntime.mark(y),w=regeneratorRuntime.mark(A),g=regeneratorRuntime.mark(R),m=regeneratorRuntime.mark(S),h=regeneratorRuntime.mark(T),k=regeneratorRuntime.mark(D);function W(e,t,r){var n,s,l,o,i,d;return regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,p.default;case 2:if(n=b.sent,null!==(s=(0,f.resolveWallet)(e,r))){b.next=6;break}return b.abrupt("return");case 6:return b.next=8,(0,a.call)(u.getCurrentAccountId);case 8:l=b.sent,o=(0,x.convertToDatabase)(s,l),c.BigNumber.config({DECIMAL_PLACES:18}),i=new c.BigNumber(o.balance),d=new c.BigNumber(t),n.write(function(){n.create('Wallet',{name:o.name,balance:i.minus(d).toString()},!0)});case 14:case"end":return b.stop()}},b,this)}function y(e){var t,r,n,c,l,d,p;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,a.select)();case 2:return t=x.sent,r=t.wallet.selectedWalletAddress,n=e.toEthAddress,c=e.amount,x.next=8,(0,a.call)(u.getCurrentAccountId);case 8:return l=x.sent,x.next=11,(0,u.getAccount)(l);case 11:if(d=x.sent,null!==(p=o.default.instance.walletService)){x.next=17;break}return x.next=16,(0,a.put)((0,s.sendMoneyFailed)(new i.NoWalletServiceError));case 16:return x.abrupt("return");case 17:if('ETH'!==t.wallet.selectedWalletCurrency){x.next=31;break}return x.prev=18,x.next=21,(0,a.call)([p,'sendMoney'],r,n,c);case 21:return x.next=23,(0,a.put)((0,s.sendMoneySuccess)());case 23:x.next=29;break;case 25:return x.prev=25,x.t0=x.catch(18),x.next=29,(0,a.put)((0,s.sendMoneyFailed)(x.t0));case 29:x.next=42;break;case 31:return x.prev=31,x.next=34,(0,a.call)([p,'sendToken'],r,n,c,d.networkType);case 34:return x.next=36,(0,a.put)((0,s.sendMoneySuccess)());case 36:x.next=42;break;case 38:return x.prev=38,x.t1=x.catch(31),x.next=42,(0,a.put)((0,s.sendMoneyFailed)(x.t1));case 42:case"end":return x.stop()}},v,this,[[18,25],[31,38]])}function A(){var e,t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,p.default;case 2:return e=n.sent,n.next=5,(0,a.call)(u.getCurrentAccountId);case 5:return t=n.sent,r=e.objects('Wallet').filtered("accountId == '"+t+"'"),n.next=9,r;case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}},w,this)}function R(e){var t,r,n,c;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,p.default;case 2:return t=s.sent,s.next=5,(0,a.call)(u.getCurrentAccountId);case 5:r=s.sent,n=(0,x.convertToDatabase)(e[0],r),c=(0,x.convertToDatabase)(e[1],r),t.write(function(){t.create('Wallet',n,!0),t.create('Wallet',c,!0)});case 9:case"end":return s.stop()}},g,this)}function S(e){var t,r,n,c,s,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.default;case 2:if(t=o.sent,r=(0,f.resolveWallet)(e,'ETH'),n=(0,f.resolveWallet)(e,'XPAT'),null!==r&&null!==n){o.next=7;break}return o.abrupt("return");case 7:return o.next=9,(0,a.call)(u.getCurrentAccountId);case 9:c=o.sent,s=(0,x.convertToDatabase)(r,c),l=(0,x.convertToDatabase)(n,c),t.write(function(){t.create('Wallet',s,!0),t.create('Wallet',l,!0)});case 13:case"end":return o.stop()}},m,this)}function T(){var e,t,r,n,c,l;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,a.call)(u.getCurrentAccountId);case 2:return e=i.sent,i.next=5,(0,u.getAccount)(e);case 5:if(t=i.sent,null!==(r=o.default.instance.walletService)){i.next=11;break}return i.next=10,(0,a.put)((0,s.walletsListUpdated)([],!0));case 10:return i.abrupt("return");case 11:return n=void 0,i.next=14,(0,a.call)(A);case 14:if(0!==(c=i.sent).length){i.next=23;break}return i.next=18,(0,a.call)([r,'getWallets']);case 18:return n=i.sent,i.next=21,(0,a.call)(R,n);case 21:i.next=24;break;case 23:n=c.map(x.convertFromDatabase);case 24:return i.next=26,(0,a.put)((0,s.walletsListUpdated)(n,!1));case 26:return i.prev=26,i.next=29,(0,a.call)([r,'resolveBalance'],n,t.networkType);case 29:return l=i.sent,i.next=32,(0,a.call)(S,l);case 32:return i.next=34,(0,a.put)((0,s.walletsListUpdated)(l,!0));case 34:i.next=43;break;case 36:return i.prev=36,i.t0=i.catch(26),i.next=40,(0,a.put)((0,s.walletSyncFailed)(n[0].ethAddress,n[0].currency,i.t0));case 40:return i.next=42,(0,a.put)((0,s.walletSyncFailed)(n[1].ethAddress,n[1].currency,i.t0));case 42:console.log("Wallet list update failed with error: "+i.t0.toString());case 43:case"end":return i.stop()}},h,this,[[26,36]])}function D(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=o.default.instance.walletService)){r.next=5;break}return r.next=4,(0,a.put)((0,s.walletSyncFailed)(e.ethAddress,e.currency,new i.NoWalletServiceError));case 4:return r.abrupt("return");case 5:return r.prev=5,r.next=8,(0,a.call)([t,'syncWallet'],e);case 8:return r.next=10,T();case 10:r.next=17;break;case 12:return r.prev=12,r.t0=r.catch(5),r.next=16,(0,a.put)((0,s.walletSyncFailed)(e.ethAddress,e.currency,r.t0));case 16:console.log("Wallet balance update failed with error: "+r.t0.toString());case 17:case"end":return r.stop()}},k,this,[[5,12]])}},690); +__d(function(e,n,t,r){!(function(e){'use strict';var n,r=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,u=' not a boolean or binary digit',s='rounding mode',l='number type has more than 15 significant digits',c='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_',f=1e14,a=14,h=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e7,d=1e9;function m(e){var n=0|e;return e>0||e===n?n:n-1}function w(e){for(var n,t,r=1,i=e.length,o=e[0]+'';rc^t?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,u=0;uo[u]^t?1:-1;return l==c?0:l>c^t?1:-1}function N(e,n,t){return(e=S(e))>=n&&e<=t}function b(e){return'[object Array]'==Object.prototype.toString.call(e)}function y(e,n,t){for(var r,i,o=[0],u=0,s=e.length;ut-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function O(e,n){return(e.length>1?e.charAt(0)+'.'+e.slice(1):e)+(n<0?'e':'e+')+n}function R(e,n){var t,r;if(n<0){for(r='0.';++n;r+='0');e=r+e}else if(++n>(t=e.length)){for(r='0',n-=t;--n;r+='0');e+=r}else n15&&Q(L,l,e),s=!1):p.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1,g=J(g,10,n,p.s)}else{if(e instanceof W)return p.s=e.s,p.e=e.e,p.c=(e=e.c)?e.slice():e,void(L=0);if((s='number'==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,u=e;u>=10;u/=10,i++);return p.e=i,p.c=[e],void(L=0)}g=e+''}else{if(!r.test(g=e+''))return A(p,g,s);p.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1}}for((i=g.indexOf('.'))>-1&&(g=g.replace('.','')),(u=g.search(/e/i))>0?(i<0&&(i=u),i+=+g.slice(u+1),g=g.substring(0,u)):i<0&&(i=g.length),u=0;48===g.charCodeAt(u);u++);for(f=g.length;48===g.charCodeAt(--f););if(g=g.slice(u,f+1))if(f=g.length,s&&$&&f>15&&(e>h||e!==o(e))&&Q(L,l,p.s*e),(i=i-u-1)>k)p.c=p.e=null;else if(i=0&&(s=j,j=0,e=e.replace('.',''),f=(h=new W(r)).pow(e.length-g),j=s,h.c=y(R(w(f.c),f.e),10,n),h.e=h.c.length),u=s=(a=y(e,r,n)).length;0==a[--s];a.pop());if(!a[0])return'0';if(g<0?--u:(f.c=a,f.e=u,f.s=i,a=(f=t(f,h,p,d,n)).c,l=f.r,u=f.e),g=a[o=u+p+1],s=n/2,l=l||o<0||null!=a[o+1],l=d<4?(null!=g||l)&&(0==d||d==(f.s<0?3:2)):g>s||g==s&&(4==d||l||6==d&&1&a[o-1]||d==(f.s<0?8:7)),o<1||!a[0])e=l?R('1',-p):'0';else{if(a.length=o,l)for(--n;++a[--o]>n;)a[o]=0,o||(++u,a=[1].concat(a));for(s=a.length;!a[--s];);for(g=0,e='';g<=s;e+=c.charAt(a[g++]));e=R(e,u)}return e}function X(e,n,t,r){var i,o,u,l,c;if(t=null!=t&&G(t,0,8,r,s)?0|t:T,!e.c)return e.toString();if(i=e.c[0],u=e.e,null==n)c=w(e.c),c=19==r||24==r&&u<=B?O(c,u):R(c,u);else if(o=(e=ee(new W(e),n,t)).e,l=(c=w(e.c)).length,19==r||24==r&&(n<=o||o<=B)){for(;ll){if(--n>0)for(c+='.';n--;c+='0');}else if((n+=o-l)>0)for(o+1==l&&(c+='.');n--;c+='0');return e.s<0&&i?'-'+c:c}function Y(e,n){var t,r,i=0;for(b(e[0])&&(e=e[0]),t=new W(e[0]);++it||e!=S(e))&&Q(r,(i||'decimal places')+(et?' out of range':' not an integer'),e),!0}function K(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*a-1)>k?e.c=e.e=null:t=10;c/=10,u++);if((s=n-u)<0)s+=a,l=n,d=(h=m[p=0])/w[u-l-1]%10|0;else if((p=i((s+1)/a))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));h=d=0,u=1,l=(s%=a)-a+1}else{for(h=c=m[p],u=1;c>=10;c/=10,u++);d=(l=(s%=a)-a+u)<0?0:h/w[u-l-1]%10|0}if(r=r||n<0||null!=m[p+1]||(l<0?h:h%w[u-l-1]),r=t<4?(d||r)&&(0==t||t==(e.s<0?3:2)):d>5||5==d&&(4==t||r||6==t&&(s>0?l>0?h/w[u-l]:0:m[p-1])%10&1||t==(e.s<0?8:7)),n<1||!m[0])return m.length=0,r?(n-=e.e+1,m[0]=w[(a-n%a)%a],e.e=-n||0):m[0]=e.e=0,e;if(0==s?(m.length=p,c=1,p--):(m.length=p+1,c=w[a-s],m[p]=l>0?o(h/w[u-l]%w[l])*c:0),r)for(;;){if(0==p){for(s=1,l=m[0];l>=10;l/=10,s++);for(l=m[0]+=c,c=1;l>=10;l/=10,c++);s!=c&&(e.e++,m[0]==f&&(m[0]=1));break}if(m[p]+=c,m[p]!=f)break;m[p--]=0,c=1}for(s=m.length;0===m[--s];m.pop());}e.e>k?e.c=e.e=null:e.et)return null!=(e=i[t++])};return s(n='DECIMAL_PLACES')&&G(e,0,d,2,n)&&(M=0|e),r[n]=M,s(n='ROUNDING_MODE')&&G(e,0,8,2,n)&&(T=0|e),r[n]=T,s(n='EXPONENTIAL_AT')&&(b(e)?G(e[0],-d,0,2,n)&&G(e[1],0,d,2,n)&&(B=0|e[0],P=0|e[1]):G(e,-d,d,2,n)&&(B=-(P=0|(e<0?-e:e)))),r[n]=[B,P],s(n='RANGE')&&(b(e)?G(e[0],-d,-1,2,n)&&G(e[1],1,d,2,n)&&(q=0|e[0],k=0|e[1]):G(e,-d,d,2,n)&&(0|e?q=-(k=0|(e<0?-e:e)):$&&Q(2,n+' cannot be zero',e))),r[n]=[q,k],s(n='ERRORS')&&(e===!!e||1===e||0===e?(L=0,G=($=!!e)?Z:N):$&&Q(2,n+u,e)),r[n]=$,s(n='CRYPTO')&&(!0===e||!1===e||1===e||0===e?e?!(e='undefined'==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:$?Q(2,'crypto unavailable',e?void 0:crypto):z=!1:z=!1:$&&Q(2,n+u,e)),r[n]=z,s(n='MODULO_MODE')&&G(e,0,9,2,n)&&(V=0|e),r[n]=V,s(n='POW_PRECISION')&&G(e,0,d,2,n)&&(j=0|e),r[n]=j,s(n='FORMAT')&&('object'==typeof e?H=e:$&&Q(2,n+' not an object',e)),r[n]=H,r},W.max=function(){return Y(arguments,U.lt)},W.min=function(){return Y(arguments,U.gt)},W.random=(E=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var n,t,r,u,s,l=0,c=[],f=new W(C);if(e=null!=e&&G(e,0,d,14)?0|e:M,u=i(e/a),z)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(u*=2));l>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),n[l]=t[0],n[l+1]=t[1]):(c.push(s%1e14),l+=2);l=u/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(u*=7);l=9e15?crypto.randomBytes(7).copy(n,l):(c.push(s%1e14),l+=7);l=u/7}else z=!1,$&&Q(14,'crypto unavailable',crypto);if(!z)for(;l=10;s/=10,l++);lr?1:-1;else for(i=o=0;in[i]?1:-1;break}return o}function t(e,n,t,r){for(var i=0;t--;)e[t]-=i,i=e[t]1;e.splice(0,1));}return function(r,i,u,s,l){var c,h,g,p,d,w,v,N,b,y,O,R,S,A,E,_,D,F=r.s==i.s?1:-1,x=r.c,I=i.c;if(!(x&&x[0]&&I&&I[0]))return new W(r.s&&i.s&&(x?!I||x[0]!=I[0]:I)?x&&0==x[0]||!I?0*F:F/0:NaN);for(b=(N=new W(F)).c=[],F=u+(h=r.e-i.e)+1,l||(l=f,h=m(r.e/a)-m(i.e/a),F=F/a|0),g=0;I[g]==(x[g]||0);g++);if(I[g]>(x[g]||0)&&h--,F<0)b.push(1),p=!0;else{for(A=x.length,_=I.length,g=0,F+=2,(d=o(l/(I[0]+1)))>1&&(I=e(I,d,l),x=e(x,d,l),_=I.length,A=x.length),S=_,O=(y=x.slice(0,_)).length;O<_;y[O++]=0);D=I.slice(),D=[0].concat(D),E=I[0],I[1]>=l/2&&E++;do{if(d=0,(c=n(I,y,_,O))<0){if(R=y[0],_!=O&&(R=R*l+(y[1]||0)),(d=o(R/E))>1)for(d>=l&&(d=l-1),v=(w=e(I,d,l)).length,O=y.length;1==n(w,y,v,O);)d--,t(w,_=10;F/=10,g++);ee(N,u+(N.e=g+h*a-1)+1,s,p)}else N.e=h,N.r=+p;return N}})(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,D=/^([^.]+)\.$/,F=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,n,t,r){var i,o=t?n:n.replace(I,'');if(x.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!t&&(o=o.replace(_,function(e,n,t){return i='x'==(t=t.toLowerCase())?16:'b'==t?2:8,r&&r!=i?e:n}),r&&(i=r,o=o.replace(D,'$1').replace(F,'0.$1')),n!=o))return new W(o,i);$&&Q(L,'not a'+(r?' base '+r:'')+' number',n),e.s=null}e.c=e.e=null,L=0},U.absoluteValue=U.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},U.ceil=function(){return ee(new W(this),this.e+1,2)},U.comparedTo=U.cmp=function(e,n){return L=1,v(this,new W(e,n))},U.decimalPlaces=U.dp=function(){var e,n,t=this.c;if(!t)return null;if(e=((n=t.length-1)-m(this.e/a))*a,n=t[n])for(;n%10==0;n/=10,e--);return e<0&&(e=0),e},U.dividedBy=U.div=function(e,n){return L=3,t(this,new W(e,n),M,T)},U.dividedToIntegerBy=U.divToInt=function(e,n){return L=4,t(this,new W(e,n),0,1)},U.equals=U.eq=function(e,n){return L=5,0===v(this,new W(e,n))},U.floor=function(){return ee(new W(this),this.e+1,3)},U.greaterThan=U.gt=function(e,n){return L=6,v(this,new W(e,n))>0},U.greaterThanOrEqualTo=U.gte=function(e,n){return L=7,1===(n=v(this,new W(e,n)))||0===n},U.isFinite=function(){return!!this.c},U.isInteger=U.isInt=function(){return!!this.c&&m(this.e/a)>this.c.length-2},U.isNaN=function(){return!this.s},U.isNegative=U.isNeg=function(){return this.s<0},U.isZero=function(){return!!this.c&&0==this.c[0]},U.lessThan=U.lt=function(e,n){return L=8,v(this,new W(e,n))<0},U.lessThanOrEqualTo=U.lte=function(e,n){return L=9,-1===(n=v(this,new W(e,n)))||0===n},U.minus=U.sub=function(e,n){var t,r,i,o,u=this,s=u.s;if(L=10,n=(e=new W(e,n)).s,!s||!n)return new W(NaN);if(s!=n)return e.s=-n,u.plus(e);var l=u.e/a,c=e.e/a,h=u.c,g=e.c;if(!l||!c){if(!h||!g)return h?(e.s=-n,e):new W(g?u:NaN);if(!h[0]||!g[0])return g[0]?(e.s=-n,e):new W(h[0]?u:3==T?-0:0)}if(l=m(l),c=m(c),h=h.slice(),s=l-c){for((o=s<0)?(s=-s,i=h):(c=l,i=g),i.reverse(),n=s;n--;i.push(0));i.reverse()}else for(r=(o=(s=h.length)<(n=g.length))?s:n,s=n=0;n0)for(;n--;h[t++]=0);for(n=f-1;r>s;){if(h[--r]0?(u=o,t=l):(i=-i,t=s),t.reverse();i--;t.push(0));t.reverse()}for((i=s.length)-(n=l.length)<0&&(t=l,l=s,s=t,n=i),i=0;n;)i=(s[--n]=s[n]+l[n]+i)/f|0,s[n]=f===s[n]?0:s[n]%f;return i&&(s=[i].concat(s),++u),K(e,s,u)},U.precision=U.sd=function(e){var n,t,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&($&&Q(13,'argument'+u,e),e!=!!e&&(e=null)),!i)return null;if(n=(t=i.length-1)*a+1,t=i[t]){for(;t%10==0;t/=10,n--);for(t=i[0];t>=10;t/=10,n++);}return e&&r.e+1>n&&(n=r.e+1),n},U.round=function(e,n){var t=new W(this);return(null==e||G(e,0,d,15))&&ee(t,~~e+this.e+1,null!=n&&G(n,0,8,15,s)?0|n:T),t},U.shift=function(e){var n=this;return G(e,-h,h,16,'argument')?n.times('1e'+S(e)):new W(n.c&&n.c[0]&&(e<-h||e>h)?n.s*(e<0?0:1/0):n)},U.squareRoot=U.sqrt=function(){var e,n,r,i,o,u=this,s=u.c,l=u.s,c=u.e,f=M+4,a=new W('0.5');if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?u:1/0);if(0==(l=Math.sqrt(+u))||l==1/0?(((n=w(s)).length+c)%2==0&&(n+='0'),l=Math.sqrt(n),c=m((c+1)/2)-(c<0||c%2),r=new W(n=l==1/0?'1e'+c:(n=l.toExponential()).slice(0,n.indexOf('e')+1)+c)):r=new W(l+''),r.c[0])for((l=(c=r.e)+f)<3&&(l=0);;)if(o=r,r=a.times(o.plus(t(u,o,f,1))),w(o.c).slice(0,l)===(n=w(r.c)).slice(0,l)){if(r.e=0;){for(t=0,d=R[i]%b,w=R[i]/b|0,o=i+(u=l);o>i;)t=((c=d*(c=O[--u]%b)+(s=w*c+(h=O[u]/b|0)*d)%b*b+v[o]+t)/N|0)+(s/b|0)+w*h,v[o--]=c%N;v[o]=t}return t?++r:v.splice(0,1),K(e,v,r)},U.toDigits=function(e,n){var t=new W(this);return e=null!=e&&G(e,1,d,18,'precision')?0|e:null,n=null!=n&&G(n,0,8,18,s)?0|n:T,e?ee(t,e,n):t},U.toExponential=function(e,n){return X(this,null!=e&&G(e,0,d,19)?1+~~e:null,n,19)},U.toFixed=function(e,n){return X(this,null!=e&&G(e,0,d,20)?~~e+this.e+1:null,n,20)},U.toFormat=function(e,n){var t=X(this,null!=e&&G(e,0,d,21)?~~e+this.e+1:null,n,21);if(this.c){var r,i=t.split('.'),o=+H.groupSize,u=+H.secondaryGroupSize,s=H.groupSeparator,l=i[0],c=i[1],f=this.s<0,a=f?l.slice(1):l,h=a.length;if(u&&(r=o,o=u,u=r,h-=r),o>0&&h>0){for(r=h%o||o,l=a.substr(0,r);r0&&(l+=s+a.slice(r)),f&&(l='-'+l)}t=c?l+H.decimalSeparator+((u=+H.fractionGroupSize)?c.replace(new RegExp('\\d{'+u+'}\\B','g'),'$&'+H.fractionGroupSeparator):c):l}return t},U.toFraction=function(e){var n,r,i,o,u,s,l,c,f,h=$,p=this,d=p.c,m=new W(C),v=r=new W(C),N=l=new W(C);if(null!=e&&($=!1,s=new W(e),$=h,(h=s.isInt())&&!s.lt(C)||($&&Q(22,'max denominator '+(h?'out of range':'not an integer'),e),e=!h&&s.c&&ee(s,s.e+1,1).gte(C)?s:null)),!d)return p.toString();for(f=w(d),o=m.e=f.length-p.e-1,m.c[0]=g[(u=o%a)<0?a+u:u],e=!e||s.cmp(m)>0?o>0?m:v:s,u=k,k=1/0,s=new W(f),l.c[0]=0;c=t(s,m,0,1),1!=(i=r.plus(c.times(N))).cmp(e);)r=N,N=i,v=l.plus(c.times(i=v)),l=i,m=s.minus(c.times(i=m)),s=i;return i=t(e.minus(r),N,0,1),l=l.plus(i.times(v)),r=r.plus(i.times(N)),l.s=v.s=p.s,n=t(v,N,o*=2,T).minus(p).abs().cmp(t(l,r,o,T).minus(p).abs())<1?[v.toString(),N.toString()]:[l.toString(),r.toString()],k=u,n},U.toNumber=function(){return+this},U.toPower=U.pow=function(e,n){var t,r,u,s=o(e<0?-e:+e),l=this;if(null!=n&&(L=23,n=new W(n)),!G(e,-h,h,23,'exponent')&&(!isFinite(e)||s>h&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return t=Math.pow(+l,e),new W(n?t%n:t);for(n?e>1&&l.gt(C)&&l.isInt()&&n.gt(C)&&n.isInt()?l=l.mod(n):(u=n,n=null):j&&(t=i(j/a+2)),r=new W(C);;){if(s%2){if(!(r=r.times(l)).c)break;t?r.c.length>t&&(r.c.length=t):n&&(r=r.mod(n))}if(!(s=o(s/2)))break;l=l.times(l),t?l.c&&l.c.length>t&&(l.c.length=t):n&&(l=l.mod(n))}return n?r:(e<0&&(r=C.div(r)),u?r.mod(u):t?ee(r,j,T):r)},U.toPrecision=function(e,n){return X(this,null!=e&&G(e,1,d,24,'precision')?0|e:null,n,24)},U.toString=function(e){var n,t=this,r=t.s,i=t.e;return null===i?r?(n='Infinity',r<0&&(n='-'+n)):n='NaN':(n=w(t.c),n=null!=e&&G(e,2,64,25,'base')?J(R(n,i),0|e,10,r):i<=B||i>=P?O(n,i):R(n,i),r<0&&t.c[0]&&(n='-'+n)),n},U.truncated=U.trunc=function(){return ee(new W(this),this.e+1,1)},U.valueOf=U.toJSON=function(){var e,n=this,t=n.e;return null===t?n.toString():(e=w(n.c),e=t<=B||t>=P?O(e,t):R(e,t),n.s<0?'-'+e:e)},U.isBigNumber=!0,null!=n&&W.config(n),W})()).default=n.BigNumber=n,'function'==typeof define&&define.amd?define(function(){return n}):void 0!==t&&t.exports?t.exports=n:(e||(e='undefined'!=typeof self?self:Function('return this')()),e.BigNumber=n)})(this)},691); +__d(function(e,t,i,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(587),a=t(549),n=babelHelpers.interopRequireDefault(a),u=t(693),s=babelHelpers.interopRequireDefault(u),c=t(694),p=(babelHelpers.interopRequireDefault(c),t(748)),v=babelHelpers.interopRequireDefault(p),h=t(749),o=babelHelpers.interopRequireDefault(h),S=t(753),f=babelHelpers.interopRequireDefault(S),b=(function(){function e(){babelHelpers.classCallCheck(this,e),this.ethereumService=null,this.walletService=null,this.nationsService=null,this.upstreamService=null}return babelHelpers.createClass(e,[{key:"initServices",value:function(e,t){var i=(0,s.default)({privateKey:(0,r.normalizeEthPrivateKey)(t),networkType:e.networkType,app:'Default Application'}).service;this.ethereumService=i,this.walletService=new v.default(this.ethereumService),this.nationsService=new o.default(this.ethereumService,n.default,e.id),this.upstreamService=new f.default(this.ethereumService)}},{key:"destroyServices",value:function(){this.ethereumService=null,this.walletService=null,null!==this.nationsService&&this.nationsService.cleanUp(),this.nationsService=null,null!==this.upstreamService&&this.upstreamService.cleanUp(),this.upstreamService=null}}]),e})();b.instance=new b,l.default=b},692); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var r=e.privateKey,t=e.networkType,n=function(e){var n=new l.default(r,'dev'===t?'rinkeby':'homestead',e);return new a.default(n,t)},i=e.app;null==i&&(i='Bitnation Application');return{service:n(i),serviceBuilder:n}};var i=r(694),a=babelHelpers.interopRequireDefault(i),u=r(743),l=babelHelpers.interopRequireDefault(u)},693); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(695),u=babelHelpers.interopRequireDefault(n),s=t(17),l=t(741),i=babelHelpers.interopRequireDefault(l),c=t(742),o=babelHelpers.interopRequireDefault(c),f=(function(){function e(t,r){babelHelpers.classCallCheck(this,e),p.call(this),this.wallet=t,this.network=r;var a=o.default;this.nations=new u.default.Contract('dev'===r?'0x559f57f7dbe737319f8d28f8a94f1dcee9f468ad':'0xa014847cff475826804f2e0a178096b10eeed7a7',a,this.wallet)}return babelHelpers.createClass(e,[{key:"getBalance",value:function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(this.wallet.getBalance('latest'));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}},null,this)}},{key:"getOtherBalance",value:function(e){var t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.wallet.provider.getBalance(e));case 2:return t=r.sent,r.abrupt("return",t);case 4:case"end":return r.stop()}},null,this)}},{key:"getTokenBalance",value:function(e){var t,r,a;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=i.default,r=new u.default.Contract(e,t,this.wallet.provider),n.next=4,regeneratorRuntime.awrap(r.balanceOf(this.wallet.address));case 4:return a=n.sent,n.abrupt("return",a);case 6:case"end":return n.stop()}},null,this)}},{key:"getOtherTokenBalance",value:function(e,t){var r,a,n;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=i.default,a=new u.default.Contract(e,r,this.wallet.provider),s.next=4,regeneratorRuntime.awrap(a.balanceOf(t));case 4:return n=s.sent,s.abrupt("return",n);case 6:case"end":return s.stop()}},null,this)}},{key:"sendTokens",value:function(e,t,r){var a,n,s,l,c;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return a=i.default,n=new u.default.Contract(e,a,this.wallet),s=u.default.utils.parseUnits(r,18),l={gasLimit:1e6},o.next=6,regeneratorRuntime.awrap(n.transfer(t,s,l));case 6:return c=o.sent,o.abrupt("return",c);case 8:case"end":return o.stop()}},null,this)}},{key:"estimateGas",value:function(e,t){var r,a;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return r={gasPrice:u.default.utils.bigNumberify(e),to:'0xF0D346A86A68086846363185d24D5893F4353A78',data:t,value:u.default.utils.parseEther('0.1')},n.next=3,regeneratorRuntime.awrap(this.wallet.estimateGas(r));case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}},null,this)}},{key:"sendMoney",value:function(e,t){var r={gasLimit:21e3,to:e,data:'0x',value:u.default.utils.parseEther(t)};return this.wallet.sendTransaction(r)}},{key:"trackTransaction",value:function(e){return this.wallet.provider.waitForTransaction(e)}},{key:"getTransactionReceipt",value:function(e){return this.wallet.provider.getTransactionReceipt(e)}},{key:"ethereumAddressFromPublicKey",value:function(e){return s.NativeModules.Panthalassa.PanthalassaEthPubToAddress({pub:e})}},{key:"deployContract",value:function(e,t,r){for(var a,n,s=arguments.length,l=Array(s>3?s-3:0),i=3;i0||'call exception'===t.message)&&a.throwError('call exception',a.CALL_EXCEPTION,{address:e,method:p.signature,value:f}),t}return 1===n.outputs.types.length&&(t=t[0]),t});case'transaction':if(!t)return Promise.reject(new Error('missing signer'));if(null!=l.from)throw new Error('transaction cannot override from');if(o)return t&&t.estimateGas?t.estimateGas(l):i.estimateGas(l);if(t.sendTransaction)return t.sendTransaction(l);if(!t.sign)return Promise.reject(new Error('custom signer does not support signing'));null==l.gasLimit&&(l.gasLimit=t.defaultGasLimit||2e6);var g=null;if(l.nonce)g=Promise.resolve(l.nonce);else if(t.getTransactionCount)(g=t.getTransactionCount())instanceof Promise||(g=Promise.resolve(g));else{var h=t.getAddress();h instanceof Promise||(h=Promise.resolve(h)),g=h.then(function(e){return i.getTransactionCount(e,'pending')})}var y=null;return y=l.gasPrice?Promise.resolve(l.gasPrice):i.getGasPrice(),Promise.all([g,y]).then(function(e){return l.nonce=e[0],l.gasPrice=e[1],t.sign(l)}).then(function(e){return i.sendTransaction(e)})}}}var p={};s.defineProperty(this,'estimate',p);var d={};s.defineProperty(this,'functions',d);var g={};s.defineProperty(this,'events',g),Object.keys(r.functions).forEach(function(e){var n=r.functions[e],t=u(n,!1);null==this[e]?s.defineProperty(this,e,t):console.log('WARNING: Multiple definitions for '+n),null==d[n]&&(s.defineProperty(d,e,t),s.defineProperty(p,e,u(n,!0)))},this),Object.keys(r.events).forEach(function(e){var n=r.events[e],t=null;function o(r){f.then(function(s){if(s==r.address){try{var a=n.parse(r.topics,r.data);r.args=a,r.event=e,r.parse=n.parse,r.removeListener=function(){i.removeListener(n.topics,o)},r.getBlock=function(){return i.getBlock(r.blockHash)},r.getTransaction=function(){return i.getTransaction(r.transactionHash)},r.getTransactionReceipt=function(){return i.getTransactionReceipt(r.transactionHash)},r.eventSignature=n.signature,t.apply(r,Array.prototype.slice.call(a))}catch(e){console.log(e)}return null}}).catch(function(e){})}var s={enumerable:!0,get:function(){return t},set:function(e){e||(e=null),!e&&t?i.removeListener(n.topics,o):e&&!t&&i.on(n.topics,o),t=e}},a='on'+e.toLowerCase();null==this[a]&&Object.defineProperty(this,a,s),Object.defineProperty(g,e,s)},this)}s.defineProperty(l.prototype,'connect',function(e){return new l(this.address,this.interface,e)}),s.defineProperty(l,'getDeployTransaction',function(e,r){r instanceof o||(r=new o(r));var n=Array.prototype.slice.call(arguments);return n.splice(1,1),{data:r.deployFunction.apply(r,n).bytecode}}),n.exports=l},698); +__d(function(e,n,t,r){'use strict';var a,o,s,i,u=(a=n(700),o=n(701),s=n(702),i=n(704),{defineFrozen:s.defineFrozen,defineProperty:s.defineProperty,coder:a.defaultCoder,parseSignature:a.parseSignature,arrayify:o.arrayify,concat:o.concat,isHexString:o.isHexString,toUtf8Bytes:i.toUtf8Bytes,keccak256:n(708)}),p=n(703);function c(e){var n=[],t=[];return e.forEach(function(e){if(null!=e.components){if('tuple'!==e.type.substring(0,5))throw new Error('internal error; report on GitHub');var r='',a=e.type.indexOf('[');a>=0&&(r=e.type.substring(a));var o=c(e.components);n.push({name:e.name||null,names:o.names}),t.push('tuple('+o.types.join(',')+')'+r)}else n.push(e.name||null),t.push(e.type)}),{names:n,types:t}}function l(e,n){for(var t in n)u.defineProperty(e,t,n[t]);return e}function y(e){u.defineProperty(this,'indexed',!0),u.defineProperty(this,'hash',e)}function f(e){if(!(this instanceof f))throw new Error('missing new');if('string'==typeof e)try{e=JSON.parse(e)}catch(n){p.throwError('could not parse ABI JSON',p.INVALID_ARGUMENT,{arg:'abi',errorMessage:n.message,value:e})}var n=[];e.forEach(function(e){'string'==typeof e&&(e=u.parseSignature(e)),n.push(e)}),u.defineFrozen(this,'abi',n);var t={},r={},a=null;function o(e){switch(e.type){case'constructor':var n=(function(){var n=c(e.inputs),t=function(t){u.isHexString(t)||p.throwError('invalid contract bytecode',p.INVALID_ARGUMENT,{arg:'bytecode',type:typeof t,value:t});var r=Array.prototype.slice.call(arguments,1);r.lengthn.types.length&&p.throwError('too many constructor arguments',p.UNEXPECTED_ARGUMENT,{count:r.length,expectedCount:n.types.length});try{var a=u.coder.encode(e.inputs,r)}catch(e){p.throwError('invalid constructor argument',p.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}var o={bytecode:t+a.substring(2),type:'deploy'};return l(new(function(){}),o)};return u.defineFrozen(t,'inputs',n),u.defineProperty(t,'payable',null==e.payable||!!e.payable),t})();a||(a=n);break;case'function':n=(function(){var n=c(e.inputs),t=c(e.outputs),r='('+n.types.join(',')+')';r=r.replace(/tuple/g,''),r=e.name+r;var a=function(n){try{return u.coder.decode(e.outputs,u.arrayify(n))}catch(e){p.throwError('invalid data for function output',p.INVALID_ARGUMENT,{arg:'data',errorArg:e.arg,errorValue:e.value,value:n,reason:e.reason})}},o=u.keccak256(u.toUtf8Bytes(r)).substring(0,10),s=function(){var t={name:e.name,signature:r,sighash:o,type:e.constant?'call':'transaction'},s=Array.prototype.slice.call(arguments,0);s.lengthn.types.length&&p.throwError('too many input arguments',p.UNEXPECTED_ARGUMENT,{count:s.length,expectedCount:n.types.length});try{var i=u.coder.encode(e.inputs,s)}catch(e){p.throwError('invalid input argument',p.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}return t.data=o+i.substring(2),t.parse=a,l(new(function(){}),t)};return u.defineFrozen(s,'inputs',n),u.defineFrozen(s,'outputs',t),u.defineProperty(s,'payable',null==e.payable||!!e.payable),u.defineProperty(s,'parseResult',a),u.defineProperty(s,'signature',r),u.defineProperty(s,'sighash',o),s})();e.name&&null==t[e.name]&&u.defineProperty(t,e.name,n),null==t[n.signature]&&u.defineProperty(t,n.signature,n);break;case'event':n=(function(){var n=c(e.inputs),t='('+n.types.join(',')+')';t=t.replace(/tuple/g,''),t=e.name+t;var r={anonymous:!!e.anonymous,name:e.name,signature:t,type:'event',parse:function(n,t){null==t&&(t=n,n=null),null==n||e.anonymous||(n=n.slice(1));var r=[],a=[],o=[];if(e.inputs.forEach(function(e,n){e.indexed?'string'===e.type||'bytes'===e.type||e.type.indexOf('[')>=0||'tuple'===e.type.substring(0,5)?(r.push({type:'bytes32',name:e.name||''}),o.push(!0)):(r.push(e),o.push(!1)):(a.push(e),o.push(!1))}),null!=n)var s=u.coder.decode(r,u.concat(n));var i=u.coder.decode(a,u.arrayify(t)),p=new(function(){}),c=0,l=0;return e.inputs.forEach(function(e,t){e.indexed?null==n?p[t]=new y(null):o[t]?p[t]=new y(s[l++]):p[t]=s[l++]:p[t]=i[c++],e.name&&(p[e.name]=p[t])}),p.length=e.inputs.length,p}},a=l(new(function(){}),r);return u.defineFrozen(a,'topics',[u.keccak256(u.toUtf8Bytes(t))]),u.defineFrozen(a,'inputs',n),a})();e.name&&null==r[e.name]&&u.defineProperty(r,e.name,n),null==t[n.signature]&&u.defineProperty(t,n.signature,n);break;case'fallback':break;default:console.log('WARNING: unsupported ABI type - '+e.type)}}u.defineProperty(this,'functions',t),u.defineProperty(this,'events',r),n.forEach(o,this),a||o({type:'constructor',inputs:[]}),u.defineProperty(this,'deployFunction',a)}u.defineProperty(f.prototype,'parseTransaction',function(e){var n=e.data.substring(0,10).toLowerCase();for(var t in this.functions)if(-1!==t.indexOf('(')){var r=this.functions[t];if(r.sighash===n)return{args:u.coder.decode(r.inputs.types,'0x'+e.data.substring(10)),signature:r.signature,sighash:r.sighash,parse:r.parseResult,value:e.value}}return null}),t.exports=f},699); +__d(function(e,t,r,n){'use strict';var a,o,i=(a=t(701),o=t(704),{defineProperty:t(702).defineProperty,arrayify:a.arrayify,padZeros:a.padZeros,bigNumberify:t(705).bigNumberify,getAddress:t(707).getAddress,concat:a.concat,toUtf8Bytes:o.toUtf8Bytes,toUtf8String:o.toUtf8String,hexlify:a.hexlify}),c=t(703),u=new RegExp(/^bytes([0-9]*)$/),l=new RegExp(/^(u?int)([0-9]*)$/),s=new RegExp(/^(.*)\[([0-9]*)\]$/),y=function(e,t){var r=e.match(l);return r&&parseInt(r[2])<=48?t.toNumber():t};var d=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),f=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function p(e){return e.match(/^uint($|[^1-9])/)?e='uint256'+e.substring(4):e.match(/^int($|[^1-9])/)&&(e='int256'+e.substring(3)),e}function h(e,t){function r(t){throw new Error('unexpected character "'+e[t]+'" at position '+t+' in "'+e+'"')}for(var n={type:'',name:'',state:{allowType:!0}},a=n,o=0;ot.length)throw new Error('invalid null');return{consumed:0,value:e('null',void 0)}},dynamic:!1}},v=function(e,t,r,n){var a=(r?'int':'uint')+8*t;return{localName:n,name:a,type:a,encode:function(e){try{e=i.bigNumberify(e)}catch(t){c.throwError('invalid number value',c.INVALID_ARGUMENT,{arg:n,type:typeof e,value:e})}return e=e.toTwos(8*t).maskn(8*t),r&&(e=e.fromTwos(8*t).toTwos(256)),i.padZeros(i.arrayify(e),32)},decode:function(o,u){o.length32)throw new Error('too many bytes for field')}catch(t){c.throwError('invalid '+n+' value',c.INVALID_ARGUMENT,{arg:r,type:typeof e,value:t.value})}if(32===e.length)return e;var t=new Uint8Array(32);return t.set(e),t},decode:function(a,o){return a.length256||a%8!=0)&&c.throwError('invalid '+r[1]+' bit length',c.INVALID_ARGUMENT,{arg:'param',value:t}),v(e,a/8,'int'===r[1],t.name);if(r=t.type.match(u))return(0===(a=parseInt(r[1]))||a>32)&&c.throwError('invalid bytes length',c.INVALID_ARGUMENT,{arg:'param',value:t}),w(e,a,t.name);if(r=t.type.match(s)){t=(function(e){var t={};for(var r in e)t[r]=e[r];return t})(t);var a=parseInt(r[2]||-1);return t.type=r[1],(function(e,t,r,n){var a=t.type+'['+(r>=0?r:'')+']';return{coder:t,localName:n,length:r,name:'array',type:a,encode:function(e){Array.isArray(e)||c.throwError('expected array value',c.INVALID_ARGUMENT,{arg:n,coderType:'array',type:typeof e,value:e});var a=r,o=new Uint8Array(0);-1===a&&(a=e.length,o=g.encode(a)),a!==e.length&&error.throwError('array value length mismatch',c.INVALID_ARGUMENT,{arg:n,coderType:'array',count:e.length,expectedCount:a,value:e});var u=[];return e.forEach(function(e){u.push(t)}),i.concat([o,b(u,e)])},decode:function(o,i){var u=0,l=r;if(-1===l){try{var s=g.decode(o,i)}catch(e){c.throwError('insufficient data for dynamic array length',c.INVALID_ARGUMENT,{arg:n,coderType:'array',value:e.value})}try{l=s.value.toNumber()}catch(e){c.throwError('array count too large',c.INVALID_ARGUMENT,{arg:n,coderType:'array',value:s.value.toString()})}u+=s.consumed,i+=s.consumed}for(var y={name:t.name,type:t.type,encode:t.encode,decode:t.decode,dynamic:t.dynamic},d=[],f=0;f1){var a=r[1].match(d);if(''!=a[1].trim()||''!=a[3].trim())throw new Error('unexpected tokens');U(a[2]).forEach(function(e){t.outputs.push(h(e))})}return t})(e.trim()));throw new Error('unknown fragment')}),r.exports=_},700); +__d(function(r,t,n,e){t(702).defineProperty;var a=t(703);function i(r){return r.slice?r:(r.slice=function(){var t=Array.prototype.slice.call(arguments);return new Uint8Array(Array.prototype.slice.apply(r,t))},r)}function o(r){if(!r||parseInt(r.length)!=r.length||'string'==typeof r)return!1;for(var t=0;t=256||parseInt(n)!=n)return!1}return!0}function u(r){if(null==r&&a.throwError('cannot convert null value to array',a.INVALID_ARGUMENT,{arg:'value',value:r}),r&&r.toHexString&&(r=r.toHexString()),l(r)){(r=r.substring(2)).length%2&&(r='0'+r);for(var t=[],n=0;n>4]+f[15&i])}return'0x'+n.join('')}a.throwError('invalid hexlify value',{arg:'value',value:r})}n.exports={arrayify:u,isArrayish:o,concat:function(r){for(var t=[],n=0,e=0;e3&&'0x0'===r.substring(0,3);)r='0x'+r.substring(3);return r},hexZeroPad:function(r,t){for(;r.length<2*t+2;)r='0x0'+r.substring(2);return r}}},701); +__d(function(e,n,r,t){'use strict';r.exports={defineFrozen:function(e,n,r){var t=JSON.stringify(r);Object.defineProperty(e,n,{enumerable:!0,get:function(){return JSON.parse(t)}})},defineProperty:function(e,n,r){Object.defineProperty(e,n,{enumerable:!0,value:r,writable:!1})}}},702); +__d(function(r,n,N,t){'use strict';var E=n(702).defineProperty,o={};['UNKNOWN_ERROR','NOT_IMPLEMENTED','MISSING_NEW','CALL_EXCEPTION','INVALID_ARGUMENT','MISSING_ARGUMENT','UNEXPECTED_ARGUMENT','UNSUPPORTED_OPERATION'].forEach(function(r){E(o,r,r)}),E(o,'throwError',function(r,n,N){n||(n=o.UNKNOWN_ERROR),N||(N={});var t=[];Object.keys(N).forEach(function(r){try{t.push(r+'='+JSON.stringify(N[r]))}catch(n){t.push(r+'='+JSON.stringify(N[r].toString()))}});var E=r;t.length&&(r+=' ('+t.join(', ')+')');var e=new Error(r);throw e.reason=E,e.code=n,Object.keys(N).forEach(function(r){e[r]=N[r]}),e}),E(o,'checkNew',function(r,n){r instanceof n||o.throwError('missing new',o.MISSING_NEW,{name:n.name})}),N.exports=o},703); +__d(function(r,e,t,f){var n=e(701);t.exports={toUtf8Bytes:function(r){for(var e=[],t=0,f=0;f>6|192,e[t++]=63&i|128):55296==(64512&i)&&f+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=63&i|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=63&i|128)}return n.arrayify(e)},toUtf8String:function(r){r=n.arrayify(r);for(var e='',t=0;t>7!=0){if(f>>6!=2){var i=null;if(f>>5==6)i=1;else if(f>>4==14)i=2;else if(f>>3==30)i=3;else if(f>>2==62)i=4;else{if(f>>1!=126)continue;i=5}if(t+i>r.length){for(;t>6==2;t++);if(t!=r.length)continue;return e}var o,a=f&(1<<8-i-1)-1;for(o=0;o>6!=2)break;a=a<<6|63&l}o==i?a<=65535?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296+(a>>10&1023),56320+(1023&a))):t--}}else e+=String.fromCharCode(f)}return e}}},704); +__d(function(n,t,e,r){var o=t(440),i=t(702).defineProperty,u=t(701),s=t(706);function b(n){if(!(this instanceof b))throw new Error('missing new');u.isHexString(n)?('0x'==n&&(n='0x0'),n=new o(n.substring(2),16)):'string'==typeof n&&'-'===n[0]&&u.isHexString(n.substring(1))?n=new o(n.substring(3),16).mul(b.constantNegativeOne._bn):'string'==typeof n&&n.match(/^-?[0-9]*$/)?(''==n&&(n='0'),n=new o(n)):'number'==typeof n&&parseInt(n)==n?n=new o(n):o.isBN(n)||(p(n)?n=n._bn:u.isArrayish(n)?n=new o(u.hexlify(n).substring(2),16):s('invalid BigNumber value',{input:n})),i(this,'_bn',n)}function p(n){return n._bn&&n._bn.mod}function _(n){return p(n)?n:new b(n)}i(b,'constantNegativeOne',_(-1)),i(b,'constantZero',_(0)),i(b,'constantOne',_(1)),i(b,'constantTwo',_(2)),i(b,'constantWeiPerEther',_(new o('1000000000000000000'))),i(b.prototype,'fromTwos',function(n){return new b(this._bn.fromTwos(n))}),i(b.prototype,'toTwos',function(n){return new b(this._bn.toTwos(n))}),i(b.prototype,'add',function(n){return new b(this._bn.add(_(n)._bn))}),i(b.prototype,'sub',function(n){return new b(this._bn.sub(_(n)._bn))}),i(b.prototype,'div',function(n){return new b(this._bn.div(_(n)._bn))}),i(b.prototype,'mul',function(n){return new b(this._bn.mul(_(n)._bn))}),i(b.prototype,'mod',function(n){return new b(this._bn.mod(_(n)._bn))}),i(b.prototype,'pow',function(n){return new b(this._bn.pow(_(n)._bn))}),i(b.prototype,'maskn',function(n){return new b(this._bn.maskn(n))}),i(b.prototype,'eq',function(n){return this._bn.eq(_(n)._bn)}),i(b.prototype,'lt',function(n){return this._bn.lt(_(n)._bn)}),i(b.prototype,'lte',function(n){return this._bn.lte(_(n)._bn)}),i(b.prototype,'gt',function(n){return this._bn.gt(_(n)._bn)}),i(b.prototype,'gte',function(n){return this._bn.gte(_(n)._bn)}),i(b.prototype,'isZero',function(){return this._bn.isZero()}),i(b.prototype,'toNumber',function(n){return this._bn.toNumber()}),i(b.prototype,'toString',function(){return this._bn.toString(10)}),i(b.prototype,'toHexString',function(){var n=this._bn.toString(16);return n.length%2&&(n='0'+n),'0x'+n}),e.exports={isBigNumber:p,bigNumberify:_,BigNumber:b}},705); +__d(function(r,n,o,t){'use strict';o.exports=function(r,n){var o=new Error(r);for(var t in n)o[t]=n[t];throw o}},706); +__d(function(r,t,n,i){var s=t(440),e=t(701),a=t(706),o=t(708);function g(r){'string'==typeof r&&r.match(/^0x[0-9A-Fa-f]{40}$/)||a('invalid address',{input:r});for(var t=(r=r.toLowerCase()).substring(2).split(''),n=0;n>1]>>4>=8&&(r[n]=r[n].toUpperCase()),(15&t[n>>1])>=8&&(r[n+1]=r[n+1].toUpperCase());return'0x'+r.join('')}var u=(function(){for(var r={},t=0;t<10;t++)r[String(t)]=String(t);for(t=0;t<26;t++)r[String.fromCharCode(65+t)]=String(10+t);var n,i=Math.floor((n=9007199254740991,Math.log10?Math.log10(n):Math.log(n)/Math.LN10));return function(t){for(var n=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+'00').split(''),s=0;s=i;){var e=n.substring(0,i);n=parseInt(e,10)%97+n.substring(e.length)}for(var a=String(98-parseInt(n,10)%97);a.length<2;)a='0'+a;return a}})();n.exports={getAddress:function(r,t){var n=null;if('string'!=typeof r&&a('invalid address',{input:r}),r.match(/^(0x)?[0-9a-fA-F]{40}$/))'0x'!==r.substring(0,2)&&(r='0x'+r),n=g(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==r&&a('invalid address checksum',{input:r,expected:n});else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==u(r)&&a('invalid address icap checksum',{input:r}),n=new s(r.substring(4),36).toString(16);n.length<40;)n='0'+n;n=g('0x'+n)}else a('invalid address',{input:r});if(t){for(var i=new s(n.substring(2),16).toString(36).toUpperCase();i.length<30;)i='0'+i;return'XE'+u('XE00'+i)+i}return n}}},707); +__d(function(r,t,c,n){'use strict';var a=t(709),e=t(701);c.exports=function(r){return r=e.arrayify(r),'0x'+a.keccak_256(r)}},708); +__d(function(t,r,e,o){!(function(){'use strict';var r='object'==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&'object'==typeof process&&process.versions&&process.versions.node&&(r=t);for(var o=!r.JS_SHA3_NO_COMMON_JS&&'object'==typeof e&&e.exports,s='0123456789abcdef'.split(''),i=[0,8,16,24],n=[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],a=[224,256,384,512],u=['hex','buffer','arrayBuffer','array'],h=function(t,r,e){return function(o){return new g(t,r,t).update(o)[e]()}},f=function(t,r,e){return function(o,s){return new g(t,r,s).update(o)[e]()}},c=function(t,r){var e=h(t,r,'hex');e.create=function(){return new g(t,r,t)},e.update=function(t){return e.create().update(t)};for(var o=0;o>5,this.byteCount=this.blockCount<<2,this.outputBlocks=e>>5,this.extraBytes=(31&e)>>3;for(var o=0;o<50;++o)this.s[o]=0}g.prototype.update=function(t){var r='string'!=typeof t;r&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var e,o,s=t.length,n=this.blocks,a=this.byteCount,u=this.blockCount,h=0,f=this.s;h>2]|=t[h]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(n[e>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=a){for(this.start=e-a,this.block=n[u],e=0;e>2]|=this.padding[3&r],this.lastByteIndex===this.byteCount)for(t[0]=t[e],r=1;r>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%r==0&&(x(e),n=0)}return i&&(t=e[n],i>0&&(u+=s[t>>4&15]+s[15&t]),i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},g.prototype.arrayBuffer=function(){this.finalize();var t,r=this.blockCount,e=this.s,o=this.outputBlocks,s=this.extraBytes,i=0,n=0,a=this.outputBits>>3;t=s?new ArrayBuffer(o+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);n>8&255,u[t+2]=r>>16&255,u[t+3]=r>>24&255;a%e==0&&x(o)}return i&&(t=a<<2,r=o[n],i>0&&(u[t]=255&r),i>1&&(u[t+1]=r>>8&255),i>2&&(u[t+2]=r>>16&255)),u};var x=function(t){var r,e,o,s,i,a,u,h,f,c,p,l,d,y,b,v,k,B,g,x,C,w,_,A,S,M,O,m,z,J,N,j,I,H,U,D,E,q,F,G,K,L,P,Q,R,T,V,W,X,Y,Z,$,tt,rt,et,ot,st,it,nt,at,ut,ht,ft;for(o=0;o<48;o+=2)s=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],p=t[7]^t[17]^t[27]^t[37]^t[47],r=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|u>>>31),e=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|a>>>31),t[0]^=r,t[1]^=e,t[10]^=r,t[11]^=e,t[20]^=r,t[21]^=e,t[30]^=r,t[31]^=e,t[40]^=r,t[41]^=e,r=s^(h<<1|f>>>31),e=i^(f<<1|h>>>31),t[2]^=r,t[3]^=e,t[12]^=r,t[13]^=e,t[22]^=r,t[23]^=e,t[32]^=r,t[33]^=e,t[42]^=r,t[43]^=e,r=a^(c<<1|p>>>31),e=u^(p<<1|c>>>31),t[4]^=r,t[5]^=e,t[14]^=r,t[15]^=e,t[24]^=r,t[25]^=e,t[34]^=r,t[35]^=e,t[44]^=r,t[45]^=e,r=h^(l<<1|d>>>31),e=f^(d<<1|l>>>31),t[6]^=r,t[7]^=e,t[16]^=r,t[17]^=e,t[26]^=r,t[27]^=e,t[36]^=r,t[37]^=e,t[46]^=r,t[47]^=e,r=c^(s<<1|i>>>31),e=p^(i<<1|s>>>31),t[8]^=r,t[9]^=e,t[18]^=r,t[19]^=e,t[28]^=r,t[29]^=e,t[38]^=r,t[39]^=e,t[48]^=r,t[49]^=e,y=t[0],b=t[1],T=t[11]<<4|t[10]>>>28,V=t[10]<<4|t[11]>>>28,m=t[20]<<3|t[21]>>>29,z=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,L=t[40]<<18|t[41]>>>14,P=t[41]<<18|t[40]>>>14,H=t[2]<<1|t[3]>>>31,U=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,k=t[12]<<12|t[13]>>>20,W=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,J=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,rt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,E=t[15]<<6|t[14]>>>26,B=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,j=t[45]<<29|t[44]>>>3,I=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,ot=t[17]<<23|t[16]>>>9,st=t[16]<<23|t[17]>>>9,q=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,x=t[36]<<21|t[37]>>>11,C=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,Q=t[8]<<27|t[9]>>>5,R=t[9]<<27|t[8]>>>5,M=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,nt=t[28]<<7|t[29]>>>25,G=t[38]<<8|t[39]>>>24,K=t[39]<<8|t[38]>>>24,w=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=y^~v&B,t[1]=b^~k&g,t[10]=A^~M&m,t[11]=S^~O&z,t[20]=H^~D&q,t[21]=U^~E&F,t[30]=Q^~T&W,t[31]=R^~V&X,t[40]=rt^~ot&it,t[41]=et^~st&nt,t[2]=v^~B&x,t[3]=k^~g&C,t[12]=M^~m&J,t[13]=O^~z&N,t[22]=D^~q&G,t[23]=E^~F&K,t[32]=T^~W&Y,t[33]=V^~X&Z,t[42]=ot^~it&at,t[43]=st^~nt&ut,t[4]=B^~x&w,t[5]=g^~C&_,t[14]=m^~J&j,t[15]=z^~N&I,t[24]=q^~G&L,t[25]=F^~K&P,t[34]=W^~Y&$,t[35]=X^~Z&tt,t[44]=it^~at&ht,t[45]=nt^~ut&ft,t[6]=x^~w&y,t[7]=C^~_&b,t[16]=J^~j&A,t[17]=N^~I&S,t[26]=G^~L&H,t[27]=K^~P&U,t[36]=Y^~$&Q,t[37]=Z^~tt&R,t[46]=at^~ht&rt,t[47]=ut^~ft&et,t[8]=w^~y&v,t[9]=_^~b&k,t[18]=j^~A&M,t[19]=I^~S&O,t[28]=L^~H&D,t[29]=P^~U&E,t[38]=$^~Q&T,t[39]=tt^~R&V,t[48]=ht^~rt&ot,t[49]=ft^~et&st,t[0]^=n[o],t[1]^=n[o+1]};if(o)e.exports=l;else for(y=0;yt+12&&delete n._emitted[e]})),n.emit('block',t);var s={};return Object.keys(r).forEach(function(t){var r=(function(e){if('tx:'===e.substring(0,3))return{type:'transaction',hash:e.substring(3)};if('block'===e)return{type:'block'};if('pending'===e)return{type:'pending'};if('address:'===e.substring(0,8))return{type:'address',address:e.substring(8)};if('topic:'===e.substring(0,6))try{var t=c.RLP.decode(e.substring(6));return{type:'topic',topic:t=H(t,function(e){return'0x'===e&&(e=null),e})}}catch(e){console.log(e)}throw new Error('invalid event string')})(t);'transaction'===r.type?n.getTransaction(r.hash).then(function(e){return e&&null!=e.blockNumber?(n._emitted['t:'+e.hash.toLowerCase()]=e.blockNumber,n.emit(r.hash,e),null):null}).catch(function(e){}):'address'===r.type?(i[r.address]&&(s[r.address]=i[r.address]),n.getBalance(r.address,'latest').then(function(e){var t=i[r.address];return t&&e.eq(t)?null:(i[r.address]=e,n.emit(r.address,e),null)}).catch(function(e){})):'topic'===r.type&&n.getLogs({fromBlock:o+1,toBlock:e,topics:r.topic}).then(function(e){return 0===e.length?null:(e.forEach(function(e){n._emitted['b:'+e.blockHash.toLowerCase()]=e.blockNumber,n._emitted['t:'+e.transactionHash.toLowerCase()]=e.blockNumber,n.emit(r.topic,e)}),null)}).catch(function(e){})}),o=e,i=s,null}}).catch(function(){}),n.doPoll()}c.defineProperty(this,'resetEventsBlock',function(e){o=e,n.doPoll()});var u=4e3,a=null;Object.defineProperty(this,'polling',{get:function(){return null!=a},set:function(e){setTimeout(function(){e&&!a?a=setInterval(s,u):!e&&a&&(clearInterval(a),a=null)},0)}}),Object.defineProperty(this,'pollingInterval',{get:function(){return u},set:function(e){if('number'!=typeof e||e<=0||parseInt(e)!=e)throw new Error('invalid polling interval');u=e,a&&(clearInterval(a),a=setInterval(s,u))}})}function L(e,t){return new Promise(function(r,n){var o=0;!(function i(){t().then(function(t){if(t||e())r(t);else{o++;var n=500+250*parseInt(Math.random()*(1<1e4&&(n=1e4),setTimeout(i,n)}return null},function(e){n(e)}).catch(function(e){n(e)})})()})}function H(e,t){if(Array.isArray(e)){var r=[];return e.forEach(function(e){r.push(H(e,t))}),r}return t(e)}function S(e){try{return'address:'+c.getAddress(e)}catch(e){}if('block'===e)return'block';if('pending'===e)return'pending';if(c.isHexString(e)){if(66===e.length)return'tx:'+e}else if(Array.isArray(e)){e=H(e,function(e){return null==e&&(e='0x'),e});try{return'topic:'+c.RLP.encode(e)}catch(e){console.log(e)}}throw new Error('invalid event - '+e)}c.defineProperty(I,'inherits',(function e(t){return function(r){s(r,t),c.defineProperty(r,'inherits',e(r))}})(I)),c.defineProperty(I,'getNetwork',function(e){if('string'==typeof e){if(!(e=a[e]))throw new Error('unknown network')}else null==e&&(e=a.homestead);if('number'!=typeof e.chainId)throw new Error('invalid chainId');return e}),c.defineProperty(I,'networks',a),c.defineProperty(I,'fetchJSON',function(e,t,r){var n=[];if('object'==typeof e&&null!=e.url&&null!=e.user&&null!=e.password){'https:'!==e.url.substring(0,6)&&!0!==e.forceInsecure&&l.throwError('basic authentication requires a secure https url',l.INVALID_ARGUMENT,{arg:'url',url:e.url,user:e.user,password:'[REDACTED]'});var o=e.user+':'+e.password;n.push({key:'Authorization',value:'Basic '+c.base64.encode(c.toUtf8Bytes(o))}),e=e.url}return new Promise(function(o,i){var s=new u;t?(s.open('POST',e,!0),n.push({key:'Content-Type',value:'application/json'})):s.open('GET',e,!0),n.forEach(function(e){s.setRequestHeader(e.key,e.value)}),s.onreadystatechange=function(){if(4===s.readyState){try{var n=JSON.parse(s.responseText)}catch(a){var u=new Error('invalid json response');return u.orginialError=a,u.responseText=s.responseText,u.url=e,void i(u)}if(r)try{n=r(n)}catch(a){return a.url=e,a.body=t,a.responseText=s.responseText,void i(a)}if(200!=s.status){var a=new Error('invalid response - '+s.status);return a.statusCode=s.statusCode,void i(a)}o(n)}},s.onerror=function(e){i(e)};try{t?s.send(t):s.send()}catch(e){var a=new Error('connection error');a.error=e,i(a)}})}),c.defineProperty(I.prototype,'waitForTransaction',function(e,t){var r=this;return new Promise(function(n,o){var i=null;function s(e){i&&clearTimeout(i),n(e)}r.once(e,s),'number'==typeof t&&t>0&&(i=setTimeout(function(){r.removeListener(e,s),o(new Error('timeout'))},t))})}),c.defineProperty(I.prototype,'getBlockNumber',function(){try{return this.perform('getBlockNumber').then(function(e){var t=parseInt(e);if(t!=e)throw new Error('invalid response - getBlockNumber');return t})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getGasPrice',function(){try{return this.perform('getGasPrice').then(function(e){return c.bigNumberify(e)})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getBalance',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getBalance',n).then(function(e){return c.bigNumberify(e)})})}),c.defineProperty(I.prototype,'getTransactionCount',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getTransactionCount',n).then(function(e){var t=parseInt(e);if(t!=e)throw new Error('invalid response - getTransactionCount');return t})})}),c.defineProperty(I.prototype,'getCode',function(e,t){var r=this;return this.resolveName(e).then(function(e){var n={address:e,blockTag:v(t)};return r.perform('getCode',n).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'getStorageAt',function(e,t,r){var n=this;return this.resolveName(e).then(function(e){var o={address:e,blockTag:v(r),position:c.hexStripZeros(c.hexlify(t))};return n.perform('getStorageAt',o).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'sendTransaction',function(e){try{var t={signedTransaction:c.hexlify(e)};return this.perform('sendTransaction',t).then(function(e){if(66!==(e=c.hexlify(e)).length)throw new Error('invalid response - sendTransaction');return e})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'call',function(e){var t=this;return this._resolveNames(e,['to','from']).then(function(e){var r={transaction:k(e)};return t.perform('call',r).then(function(e){return c.hexlify(e)})})}),c.defineProperty(I.prototype,'estimateGas',function(e){var t=this;return this._resolveNames(e,['to','from']).then(function(e){var r={transaction:k(e)};return t.perform('estimateGas',r).then(function(e){return c.bigNumberify(e)})})}),c.defineProperty(I.prototype,'getBlock',function(e){var t=this;try{var r=c.hexlify(e);if(66===r.length)return L(function(){return null==t._emitted['b:'+r.toLowerCase()]},function(){return t.perform('getBlock',{blockHash:r}).then(function(e){return null==e?null:b(e)})})}catch(e){}try{var n=v(e);return L(function(){return!c.isHexString(n)||parseInt(n.substring(2),16)>t._emitted.block},function(){return t.perform('getBlock',{blockTag:n}).then(function(e){return null==e?null:b(e)})})}catch(e){}return Promise.reject(new Error('invalid block hash or block tag'))}),c.defineProperty(I.prototype,'getTransaction',function(e){var t=this;try{var r={transactionHash:p(e)};return L(function(){return null==t._emitted['t:'+e.toLowerCase()]},function(){return t.perform('getTransaction',r).then(function(e){return null!=e&&(e=x(e)),e})})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getTransactionReceipt',function(e){var t=this;try{var r={transactionHash:p(e)};return L(function(){return null==t._emitted['t:'+e.toLowerCase()]},function(){return t.perform('getTransactionReceipt',r).then(function(e){return null!=e&&(e=(function(e){e.status,e.root;var t=f(A,e);return t.logs.forEach(function(e,t){null==e.transactionLogIndex&&(e.transactionLogIndex=t)}),null!=e.status&&(t.byzantium=!0),t})(e)),e})})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'getLogs',function(e){var t=this;return this._resolveNames(e,['address']).then(function(e){var r={filter:(function(e){return f(E,e)})(e)};return t.perform('getLogs',r).then(function(e){return d(T)(e)})})}),c.defineProperty(I.prototype,'getEtherPrice',function(){try{return this.perform('getEtherPrice',{}).then(function(e){return e})}catch(e){return Promise.reject(e)}}),c.defineProperty(I.prototype,'_resolveNames',function(e,t){var r=[],n=(function(e){var t={};for(var r in e)t[r]=e[r];return t})(e);return t.forEach(function(e){void 0!==n[e]&&r.push(this.resolveName(n[e]).then(function(t){return n[e]=t,null}))},this),Promise.all(r).then(function(){return n})}),c.defineProperty(I.prototype,'_getResolver',function(e){var t='0x0178b8bf'+c.namehash(e).substring(2),r={to:this.ensAddress,data:t};return this.call(r).then(function(e){return 66!=e.length?null:c.getAddress('0x'+e.substring(26))})}),c.defineProperty(I.prototype,'resolveName',function(e){try{return Promise.resolve(c.getAddress(e))}catch(e){}if(!this.ensAddress)throw new Error('network does not have ENS deployed');var t=this,r=c.namehash(e);return this._getResolver(e).then(function(e){var n={to:e,data:'0x3b3b57de'+r.substring(2)};return t.call(n)}).then(function(e){if(66!=e.length)return null;var t=c.getAddress('0x'+e.substring(26));return'0x0000000000000000000000000000000000000000'===t?null:t})}),c.defineProperty(I.prototype,'lookupAddress',function(e){if(!this.ensAddress)throw new Error('network does not have ENS deployed');var t=(e=c.getAddress(e)).substring(2)+'.addr.reverse',r=c.namehash(t),n=this;return this._getResolver(t).then(function(e){if(!e)return null;var t={to:e,data:'0x691f3431'+r.substring(2)};return n.call(t)}).then(function(t){if((t=t.substring(2)).length<64)return null;if((t=t.substring(64)).length<64)return null;var r=c.bigNumberify('0x'+t.substring(0,64)).toNumber();if(2*r>(t=t.substring(64)).length)return null;var o=c.toUtf8String('0x'+t.substring(0,2*r));return n.resolveName(o).then(function(t){return t!=e?null:o})})}),c.defineProperty(I.prototype,'doPoll',function(){}),c.defineProperty(I.prototype,'perform',function(e,t){return Promise.reject(new Error('not implemented - '+e))}),c.defineProperty(I.prototype,'_startPending',function(){console.log('WARNING: this provider does not support pending events')}),c.defineProperty(I.prototype,'_stopPending',function(){}),c.defineProperty(I.prototype,'on',function(e,t){var r=S(e);this._events[r]||(this._events[r]=[]),this._events[r].push({eventName:e,listener:t,type:'on'}),'pending'===r&&this._startPending(),this.polling=!0}),c.defineProperty(I.prototype,'once',function(e,t){var r=S(e);this._events[r]||(this._events[r]=[]),this._events[r].push({eventName:e,listener:t,type:'once'}),'pending'===r&&this._startPending(),this.polling=!0}),c.defineProperty(I.prototype,'emit',function(e){var t=S(e),r=Array.prototype.slice.call(arguments,1),n=this._events[t];if(n){for(var o=0;o>=8;return n}function l(r,n,t){for(var e=0,i=0;in+1+e)throw new Error('invalid rlp')}return{consumed:1+e,result:i}}function f(r,n){if(0===r.length)throw new Error('invalid rlp data');if(r[n]>=248){if(n+1+(t=r[n]-247)>r.length)throw new Error('too short');if(n+1+t+(e=l(r,n+1,t))>r.length)throw new Error('to short');return a(r,n,n+1+t,t+e)}if(r[n]>=192){if(n+1+(e=r[n]-192)>r.length)throw new Error('invalid rlp data');return a(r,n,n+1,e)}if(r[n]>=184){var t;if(n+1+(t=r[n]-183)>r.length)throw new Error('invalid rlp data');if(n+1+t+(e=l(r,n+1,t))>r.length)throw new Error('invalid rlp data');return{consumed:1+t+e,result:i.hexlify(r.slice(n+1+t,n+1+t+e))}}if(r[n]>=128){var e;if(n+1+(e=r[n]-128)>r.offset)throw new Error('invlaid rlp data');return{consumed:1+e,result:i.hexlify(r.slice(n+1,n+1+e))}}return{consumed:1,result:i.hexlify(r[n])}}t.exports={encode:function(r){return i.hexlify((function r(n){if(Array.isArray(n)){var t=[];return n.forEach(function(n){t=t.concat(r(n))}),t.length<=55?(t.unshift(192+t.length),t):((e=o(t.length)).unshift(247+e.length),e.concat(t))}return 1===(n=[].slice.call(i.arrayify(n))).length&&n[0]<=127?n:n.length<=55?(n.unshift(128+n.length),n):((e=o(n.length)).unshift(183+e.length),e.concat(n));var e})(r))},decode:function(r){var n=f(r=i.arrayify(r),0);if(n.consumed!==r.length)throw new Error('invalid rlp data');return n.result}}},715); +__d(function(r,t,o,e){'use strict';var n=t(701);o.exports={decode:function(r){r=atob(r);for(var t=[],o=0;o0){if(t.filter.topics.length>1)throw new Error('unsupported topic format');var s=t.filter.topics[0];if('string'!=typeof s||66!==s.length)throw new Error('unsupported topic0 format');r+='&topic0='+s}}catch(e){return Promise.reject(e)}r+=n;var c=this;return a.fetchJSON(r,null,l).then(function(e){var t={},r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return null!=e.blockHash?null:(e.blockHash=t[e.transactionHash],null==e.blockHash?c.getTransaction(e.transactionHash).then(function(r){return t[e.transactionHash]=r.blockHash,e.blockHash=r.blockHash,e}):null)})}),r.then(function(){return e})});case'getEtherPrice':return'homestead'!==this.name?Promise.resolve(0):(r+='/api?module=stats&action=ethprice',r+=n,a.fetchJSON(r,null,l).then(function(e){return parseFloat(e.ethusd)}))}return Promise.reject(new Error('not implemented - '+e))}),s.defineProperty(c.prototype,'getHistory',function(e,t,r){var n=this.baseUrl;return this.apiKey&&'&apikey='+this.apiKey,null==t&&(t=0),null==r&&(r=99999999),this.resolveName(e).then(function(e){return n+='/api?module=account&action=txlist&address='+e,n+='&startblock='+t,n+='&endblock='+r,n+='&sort=asc',a.fetchJSON(n,null,l).then(function(e){var t=[];return e.forEach(function(e){['contractAddress','to'].forEach(function(t){''==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var r=a._formatters.checkTransactionResponse(e);e.timeStamp&&(r.timestamp=parseInt(e.timeStamp)),t.push(r)}),t})})}),r.exports=c},718); +__d(function(r,n,e,t){'use strict';var i=n(363),o=n(711),f={defineProperty:n(702).defineProperty};function s(r){if(0===r.length)throw new Error('no providers');var n={};if(['chainId','ensAddress','name','testnet'].forEach(function(e){for(var t=1;t256)throw new Error('invalid number type - '+e);return n&&(u=256),t=a(t).toTwos(u),i.padZeros(t,u/8)}if(s=e.match(c)){var u;if((u=s[1])!=parseInt(u)||0===u||u>32)throw new Error('invalid number type - '+e);if(u=parseInt(u),i.arrayify(t).byteLength!==u)throw new Error('invalid value for '+e);return n?(t+p).substring(0,66):t}if(s=e.match(h)){var w=s[1];if(parseInt(s[2]||t.length)!=t.length)throw new Error('invalid value for '+e);var y=[];return t.forEach(function(e){e=r(w,e,!0),y.push(e)}),i.concat(y)}throw new Error('unknown type - '+e)})(r,e[n]))}),i.hexlify(i.concat(t))}t.exports={pack:w,keccak256:function(r,e){return s(w(r,e))},sha256:function(r,e){return u(w(r,e))}}},727); +__d(function(r,n,e,t){'use strict';var a=n(701),o=n(702).defineProperty,s=r.crypto||r.msCrypto;function i(r){if(r<=0||r>1024||parseInt(r)!=r)throw new Error('invalid length');var n=new Uint8Array(r);return s.getRandomValues(n),a.arrayify(n)}s&&s.getRandomValues||(console.log('WARNING: Missing strong random number source; using weak randomBytes'),s={getRandomValues:function(r){for(var n=0;n<20;n++)for(var e=0;e=0&&e<=256){for(var i='1',o=0;o2&&a('too many decimal points',{input:n});var l=o[0],s=o[1];for(l||(l='0'),s||(s='0'),s.length>e.decimals&&a('too many decimal places',{input:n,decimals:s.length});s.length0)throw(t=new Error('invalid '+r.name)).reason='wrong length',t.value=i,t;if(r.maxLength&&(i=a.stripZeros(i)).length>r.maxLength)throw(t=new Error('invalid '+r.name)).reason='too long',t.value=i,t;n.push(a.hexlify(i))}),r&&(n.push(a.hexlify(r)),n.push('0x'),n.push('0x'));var i=a.keccak256(a.RLP.encode(n)),o=t.signDigest(i),s=27+o.recoveryParam;return r&&(n.pop(),n.pop(),n.pop(),s+=2*r+8),n.push(a.hexlify(s)),n.push(a.stripZeros(a.arrayify(o.r))),n.push(a.stripZeros(a.arrayify(o.s))),a.RLP.encode(n)})}a.defineProperty(p,'parseTransaction',function(e){e=a.hexlify(e,'rawTransaction');var r=a.RLP.decode(e);if(9!==r.length)throw new Error('invalid transaction');var t=[],n={};d.forEach(function(e,i){n[e.name]=r[i],t.push(r[i])}),n.to&&('0x'==n.to?delete n.to:n.to=a.getAddress(n.to)),['gasPrice','gasLimit','nonce','value'].forEach(function(e){n[e]&&(0===n[e].length?n[e]=a.bigNumberify(0):n[e]=a.bigNumberify(n[e]))}),n.nonce?n.nonce=n.nonce.toNumber():n.nonce=0;var i=a.arrayify(r[6]),o=a.arrayify(r[7]),s=a.arrayify(r[8]);if(i.length>=1&&o.length>=1&&o.length<=32&&s.length>=1&&s.length<=32){n.v=a.bigNumberify(i).toNumber(),n.r=r[7],n.s=r[8];var f=(n.v-35)/2;f<0&&(f=0),f=parseInt(f),n.chainId=f;var c=n.v-27;f&&(t.push(a.hexlify(f)),t.push('0x'),t.push('0x'),c-=2*f+8);var p=a.keccak256(a.RLP.encode(t));try{n.from=h.recover(p,o,s,c)}catch(e){console.log(e)}}return n}),a.defineProperty(p.prototype,'getAddress',function(){return this.address}),a.defineProperty(p.prototype,'getBalance',function(e){if(!this.provider)throw new Error('missing provider');return this.provider.getBalance(this.address,e)}),a.defineProperty(p.prototype,'getTransactionCount',function(e){if(!this.provider)throw new Error('missing provider');return this.provider.getTransactionCount(this.address,e)}),a.defineProperty(p.prototype,'estimateGas',function(e){if(!this.provider)throw new Error('missing provider');var r={};return['from','to','data','value'].forEach(function(t){null!=e[t]&&(r[t]=e[t])}),null==e.from&&(r.from=this.address),this.provider.estimateGas(r)}),a.defineProperty(p.prototype,'sendTransaction',function(e){if(!this.provider)throw new Error('missing provider');if(!e||'object'!=typeof e)throw new Error('invalid transaction object');var r=e.gasLimit;null==r&&(r=this.defaultGasLimit);var t=this,n=null;n=e.gasPrice?Promise.resolve(e.gasPrice):this.provider.getGasPrice();var i=null;i=e.nonce?Promise.resolve(e.nonce):this.provider.getTransactionCount(t.address,'pending');var o=this.provider.chainId,s=null;s=e.to?this.provider.resolveName(e.to):Promise.resolve(void 0);var f=a.hexlify(e.data||'0x'),c=a.hexlify(e.value||0);return Promise.all([n,i,s]).then(function(e){var n=t.sign({to:e[2],data:f,gasLimit:r,gasPrice:e[0],nonce:e[1],value:c,chainId:o});return t.provider.sendTransaction(n).then(function(e){var r=p.parseTransaction(n);return r.hash=e,r.wait=function(){return t.provider.waitForTransaction(e)},r})})}),a.defineProperty(p.prototype,'send',function(e,r,t){return t||(t={}),this.sendTransaction({to:e,gasLimit:t.gasLimit,gasPrice:t.gasPrice,nonce:t.nonce,value:r})}),a.defineProperty(p,'hashMessage',function(e){var r=a.concat([a.toUtf8Bytes('\x19Ethereum Signed Message:\n'),a.toUtf8Bytes(String(e.length)),'string'==typeof e?a.toUtf8Bytes(e):e]);return a.keccak256(r)}),a.defineProperty(p.prototype,'signMessage',function(e){var r=new h(this.privateKey).signDigest(p.hashMessage(e));return a.hexZeroPad(r.r,32)+a.hexZeroPad(r.s,32).substring(2)+(r.recoveryParam?'1c':'1b')}),a.defineProperty(p,'verifyMessage',function(e,r){if(132!=(r=a.hexlify(r)).length)throw new Error('invalid signature');var t=p.hashMessage(e),n=parseInt(r.substring(130),16);if(n>=27&&(n-=27),n<0)throw new Error('invalid signature');return h.recover(t,r.substring(0,66),'0x'+r.substring(66,130),n)}),a.defineProperty(p.prototype,'encrypt',function(e,r,t){if('function'!=typeof r||t||(t=r,r={}),t&&'function'!=typeof t)throw new Error('invalid callback');if(r||(r={}),this.mnemonic){var n={};for(var i in r)n[i]=r[i];(r=n).mnemonic=this.mnemonic,r.path=this.path}return c.encrypt(this.privateKey,e,r,t)}),a.defineProperty(p,'isEncryptedWallet',function(e){return c.isValidWallet(e)||c.isCrowdsaleWallet(e)}),a.defineProperty(p,'createRandom',function(e){var r=a.randomBytes(16);e||(e={}),e.extraEntropy&&(r=a.keccak256(a.concat([r,e.extraEntropy])).substring(0,34));var t=f.entropyToMnemonic(r);return p.fromMnemonic(t,e.path)}),a.defineProperty(p,'fromEncryptedWallet',function(e,r,t){if(t&&'function'!=typeof t)throw new Error('invalid callback');return new Promise(function(n,i){if(c.isCrowdsaleWallet(e))try{var o=c.decryptCrowdsale(e,r);n(new p(o))}catch(e){i(e)}else c.isValidWallet(e)?c.decrypt(e,r,t).then(function(e){var r=new p(e);return e.mnemonic&&e.path&&(a.defineProperty(r,'mnemonic',e.mnemonic),a.defineProperty(r,'path',e.path)),n(r),null},function(e){i(e)}).catch(function(e){i(e)}):i('invalid wallet JSON')})}),a.defineProperty(p,'fromMnemonic',function(e,r){r||(r="m/44'/60'/0'/0/0");var t=new p(f.fromMnemonic(e).derivePath(r).privateKey);return a.defineProperty(t,'mnemonic',e),a.defineProperty(t,'path',r),t}),a.defineProperty(p,'fromBrainWallet',function(e,r,t){if(t&&'function'!=typeof t)throw new Error('invalid callback');return e='string'==typeof e?a.toUtf8Bytes(e,'NFKC'):a.arrayify(e,'password'),r='string'==typeof r?a.toUtf8Bytes(r,'NFKC'):a.arrayify(r,'password'),new Promise(function(n,i){o(r,e,262144,8,1,32,function(e,r,o){if(e)i(e);else if(o)n(new p(a.hexlify(o)));else if(t)return t(r)})})}),t.exports=p},731); +__d(function(r,n,e,t){"use strict";!(function(r){var n=2147483647;function o(r){var n=[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],e=1779033703,t=3144134277,o=1013904242,f=2773480762,a=1359893119,i=2600822924,u=528734635,s=1541459225,c=new Array(64);function h(r){for(var h=0,l=r.length;l>=64;){var p,w,v,g,y,d=e,b=t,m=o,A=f,E=a,k=i,I=u,U=s;for(w=0;w<16;w++)v=h+4*w,c[w]=(255&r[v])<<24|(255&r[v+1])<<16|(255&r[v+2])<<8|255&r[v+3];for(w=16;w<64;w++)g=((p=c[w-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,y=((p=c[w-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,c[w]=(g+c[w-7]|0)+(y+c[w-16]|0)|0;for(w=0;w<64;w++)g=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&k^~E&I)|0)+(U+(n[w]+c[w]|0)|0)|0,y=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&b^d&m^b&m)|0,U=I,I=k,k=E,E=A+g|0,A=m,m=b,b=d,d=g+y|0;e=e+d|0,t=t+b|0,o=o+m|0,f=f+A|0,a=a+E|0,i=i+k|0,u=u+I|0,s=s+U|0,h+=64,l-=64}}h(r);var l,p=r.length%64,w=r.length/536870912|0,v=r.length<<3,g=p<56?56:120,y=r.slice(r.length-p,r.length);for(y.push(128),l=p+1;l>>24&255),y.push(w>>>16&255),y.push(w>>>8&255),y.push(w>>>0&255),y.push(v>>>24&255),y.push(v>>>16&255),y.push(v>>>8&255),y.push(v>>>0&255),h(y),[e>>>24&255,e>>>16&255,e>>>8&255,e>>>0&255,t>>>24&255,t>>>16&255,t>>>8&255,t>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255]}function f(r,n,e){var t;r=r.length<=64?r:o(r);var f=64+n.length+4,a=new Array(f),i=new Array(64),u=[];for(t=0;t<64;t++)a[t]=54;for(t=0;t=f-4;r--){if(a[r]++,a[r]<=255)return;a[r]=0}}for(;e>=32;)s(),u=u.concat(o(i.concat(o(a)))),e-=32;return e>0&&(s(),u=u.concat(o(i.concat(o(a))).slice(0,e))),u}function a(r,n,e,t,o){var f;for(c(r,16*(2*e-1),o,0,16),f=0;f<2*e;f++)s(r,16*f,o,16),u(o,t),c(o,0,r,n+16*f,16);for(f=0;f>>32-n}function u(r,n){c(r,0,n,0,16);for(var e=8;e>0;e-=2)n[4]^=i(n[0]+n[12],7),n[8]^=i(n[4]+n[0],9),n[12]^=i(n[8]+n[4],13),n[0]^=i(n[12]+n[8],18),n[9]^=i(n[5]+n[1],7),n[13]^=i(n[9]+n[5],9),n[1]^=i(n[13]+n[9],13),n[5]^=i(n[1]+n[13],18),n[14]^=i(n[10]+n[6],7),n[2]^=i(n[14]+n[10],9),n[6]^=i(n[2]+n[14],13),n[10]^=i(n[6]+n[2],18),n[3]^=i(n[15]+n[11],7),n[7]^=i(n[3]+n[15],9),n[11]^=i(n[7]+n[3],13),n[15]^=i(n[11]+n[7],18),n[1]^=i(n[0]+n[3],7),n[2]^=i(n[1]+n[0],9),n[3]^=i(n[2]+n[1],13),n[0]^=i(n[3]+n[2],18),n[6]^=i(n[5]+n[4],7),n[7]^=i(n[6]+n[5],9),n[4]^=i(n[7]+n[6],13),n[5]^=i(n[4]+n[7],18),n[11]^=i(n[10]+n[9],7),n[8]^=i(n[11]+n[10],9),n[9]^=i(n[8]+n[11],13),n[10]^=i(n[9]+n[8],18),n[12]^=i(n[15]+n[14],7),n[13]^=i(n[12]+n[15],9),n[14]^=i(n[13]+n[12],13),n[15]^=i(n[14]+n[13],18);for(e=0;e<16;++e)r[e]+=n[e]}function s(r,n,e,t){for(var o=0;o=256)return!1}return!0}function l(r,n){var e=parseInt(r);if(r!=e)throw new Error('invalid '+n);return e}function p(r,e,t,o,i,u,p){if(!p)throw new Error('missing callback');if(t=l(t,'N'),o=l(o,'r'),i=l(i,'p'),u=l(u,'dkLen'),0===t||0!=(t&t-1))throw new Error('N must be power of 2');if(t>n/128/o)throw new Error('N too large');if(o>n/128/i)throw new Error('r too large');if(!h(r))throw new Error('password must be an array or buffer');if(!h(e))throw new Error('salt must be an array or buffer');for(var w=f(r,e,128*i*o),v=new Uint32Array(32*i*o),g=0;gj&&(h=j);for(var e=0;ej&&(h=j),e=0;e>0&255),w.push(v[e]>>8&255),w.push(v[e]>>16&255),w.push(v[e]>>24&255);var y=f(r,w,u);return p(null,1,y)}q(n)})()}void 0!==t?e.exports=p:'function'==typeof define&&define.amd?define(p):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=p)})(this)},732); +__d(function(e,r,t,i){var n,o,a,h=new(r(448).ec)('secp256k1'),f=r(734).replace(/([A-Z])/g,' $1').toLowerCase().substring(1).split(' '),s=(n=r(701),o=r(726),a=r(735),{defineProperty:r(702).defineProperty,arrayify:n.arrayify,bigNumberify:r(705).bigNumberify,hexlify:n.hexlify,toUtf8Bytes:r(704).toUtf8Bytes,sha256:o.sha256,createSha512Hmac:a.createSha512Hmac,pbkdf2:r(736)}),y=s.toUtf8Bytes('Bitcoin seed');function l(e){return(1<127)throw new Error('passwords with non-ASCII characters not supported in this environment')}else r='';e=s.toUtf8Bytes(e,'NFKD');var n=s.toUtf8Bytes('mnemonic'+r,'NFKD');return s.hexlify(s.pbkdf2(e,n,2048,64,s.createSha512Hmac))}function p(e){var r=e.toLowerCase().split(' ');if(r.length%3!=0)throw new Error('invalid mnemonic');for(var t=s.arrayify(new Uint8Array(Math.ceil(11*r.length/8))),i=0,n=0;n>3]|=1<<7-i%8),i++}var h=32*r.length/3,y=l(r.length/3),c=s.arrayify(s.sha256(t.slice(0,h/8)))[0];if((c&=y)!==(t[t.length-1]&y))throw new Error('invalid checksum');return s.hexlify(t.slice(0,h/8))}s.defineProperty(c.prototype,'_derive',function(e){if(!this.privateKey){if(e>=2147483648)throw new Error('cannot derive child of neutered node');throw new Error('not implemented')}var r=new Uint8Array(37);2147483648&e?r.set(s.arrayify(this.privateKey),1):r.set(this._keyPair.getPublic().encode(null,!0));for(var t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;var i=s.arrayify(s.createSha512Hmac(this.chainCode).update(r).digest()),n=s.bigNumberify(i.slice(0,32)),o=(i.slice(32),n.add('0x'+this._keyPair.getPrivate('hex')).mod('0x'+h.curve.n.toString(16)));return new c(h.keyFromPrivate(s.arrayify(o)),i.slice(32),e,this.depth+1)}),s.defineProperty(c.prototype,'derivePath',function(e){var r=e.split('/');if(0===r.length||'m'===r[0]&&0!==this.depth)throw new Error('invalid path');'m'===r[0]&&r.shift();for(var t=this,i=0;i=2147483648)throw new Error('invalid path index - '+n);t=t._derive(2147483648+o)}else{if(!n.match(/^[0-9]+$/))throw new Error('invlaid path component - '+n);var o;if((o=parseInt(n))>=2147483648)throw new Error('invalid path index - '+n);t=t._derive(o)}}return t}),s.defineProperty(c,'fromMnemonic',function(e){return p(e),c.fromSeed(d(e))}),s.defineProperty(c,'fromSeed',function(e){if((e=s.arrayify(e)).length<16||e.length>64)throw new Error('invalid seed');var r=s.arrayify(s.createSha512Hmac(y).update(e).digest());return new c(h.keyFromPrivate(r.slice(0,32)),r.slice(32),0,0,0)}),t.exports={fromMnemonic:c.fromMnemonic,fromSeed:c.fromSeed,mnemonicToEntropy:p,entropyToMnemonic:function(e){if((e=s.arrayify(e)).length%4!=0||e.length<16||e.length>32)throw new Error('invalid entropy');for(var r=[0],t=11,i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],t-=8):(r[r.length-1]<<=t,r[r.length-1]|=e[i]>>8-t,r.push(e[i]&(1<<8-t)-1),t+=3);var n=s.arrayify(s.sha256(e))[0],o=e.length/4;for(n&=l(o),r[r.length-1]<<=o,r[r.length-1]|=n>>8-o,i=0;i>24&255,v[t.length+1]=y>>16&255,v[t.length+2]=y>>8&255,v[t.length+3]=255&y;var o=i(r).update(v).digest();s||(s=o.length,l=new Uint8Array(s),g=a-((f=Math.ceil(a/s))-1)*s),l.set(o);for(var u=1;u255)return!1;return!0}function s(t,r){if(t.buffer&&ArrayBuffer.isView(t)&&'Uint8Array'===t.name)return r&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!n(t))throw new Error('Array contains invalid value: '+t);return new Uint8Array(t)}if(e(t.length)&&n(t))return new Uint8Array(t);throw new Error('unsupported array-like object')}function o(t){return new Uint8Array(t)}function h(t,e,r,i,n){null==i&&null==n||(t=t.slice?t.slice(i,n):Array.prototype.slice.call(t,i,n)),e.set(t,r)}var a=(function(){return{toBytes:function(t){var e=[],r=0;for(t=encodeURI(t);r191&&i<224?(e.push(String.fromCharCode((31&i)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&i)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join('')}}})(),f=(function(){var t='0123456789abcdef';return{toBytes:function(t){for(var e=[],r=0;r>4]+t[15&n])}return r.join('')}}})(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],y=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],d=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],_=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],z=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(t){for(var e=[],r=0;r>2,this._Ke[r][e%4]=s[e],this._Kd[t-r][e%4]=s[e];for(var o,h=0,a=n;a>16&255]<<24^l[o>>8&255]<<16^l[255&o]<<8^l[o>>24&255]^u[h]<<24,h+=1,8!=n)for(e=1;e>8&255]<<8^l[o>>16&255]<<16^l[o>>24&255]<<24;for(e=n/2+1;e>2,p=a%4,this._Ke[f][p]=s[e],this._Kd[t-f][p]=s[e++],a++}for(var f=1;f>24&255]^C[o>>16&255]^z[o>>8&255]^S[255&o]},K.prototype.encrypt=function(t){if(16!=t.length)throw new Error('invalid plaintext size (must be 16 bytes)');for(var e=this._Ke.length-1,r=[0,0,0,0],i=A(t),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^g[i[(n+1)%4]>>16&255]^d[i[(n+2)%4]>>8&255]^_[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}var h,a=o(16);for(n=0;n<4;n++)h=this._Ke[e][n],a[4*n]=255&(l[i[n]>>24&255]^h>>24),a[4*n+1]=255&(l[i[(n+1)%4]>>16&255]^h>>16),a[4*n+2]=255&(l[i[(n+2)%4]>>8&255]^h>>8),a[4*n+3]=255&(l[255&i[(n+3)%4]]^h);return a},K.prototype.decrypt=function(t){if(16!=t.length)throw new Error('invalid ciphertext size (must be 16 bytes)');for(var e=this._Kd.length-1,r=[0,0,0,0],i=A(t),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^w[i[(n+3)%4]>>16&255]^m[i[(n+2)%4]>>8&255]^b[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}var h,a=o(16);for(n=0;n<4;n++)h=this._Kd[e][n],a[4*n]=255&(p[i[n]>>24&255]^h>>24),a[4*n+1]=255&(p[i[(n+3)%4]>>16&255]^h>>16),a[4*n+2]=255&(p[i[(n+2)%4]>>8&255]^h>>8),a[4*n+3]=255&(p[255&i[(n+1)%4]]^h);return a};var k=function t(e){if(!(this instanceof t))throw Error('AES must be instanitated with `new`');this.description="Electronic Code Block",this.name="ecb",this._aes=new K(e)};k.prototype.encrypt=function(t){if((t=s(t)).length%16!=0)throw new Error('invalid plaintext size (must be multiple of 16 bytes)');for(var e=o(t.length),r=o(16),i=0;i=0;--e)this._counter[e]=t%256,t>>=8},R.prototype.setBytes=function(t){if(16!=(t=s(t,!0)).length)throw new Error('invalid counter bytes size (must be 16 bytes)');this._counter=t},R.prototype.increment=function(){for(var t=15;t>=0;t--){if(255!==this._counter[t]){this._counter[t]++;break}this._counter[t]=0}};var B=function t(e,r){if(!(this instanceof t))throw Error('AES must be instanitated with `new`');this.description="Counter",this.name="ctr",r instanceof R||(r=new R(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new K(e)};B.prototype.encrypt=function(t){for(var e=s(t,!0),r=0;r16)throw new Error('PKCS#7 padding byte out of range');for(var r=t.length-e,i=0;i0&&void 0!==arguments[0]?arguments[0]:1e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',i=arguments[2];babelHelpers.classCallCheck(this,t);var s=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,'close',i));return s.wasClean=!0,s.code=e,s.reason=n,s}return babelHelpers.inherits(t,e),t})(s),c=function(){if('undefined'!=typeof WebSocket)return WebSocket},a={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,debug:!1},u=(function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};babelHelpers.classCallCheck(this,e),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType='blob',this.eventToHandler=new Map([['open',this._handleOpen.bind(this)],['close',this._handleClose.bind(this)],['error',this._handleError.bind(this)],['message',this._handleMessage.bind(this)]]),this.onclose=void 0,this.onerror=void 0,this.onmessage=void 0,this.onopen=void 0,this._url=t,this._protocols=n,this._options=i,this._connect()}return babelHelpers.createClass(e,[{key:"close",value:function(e,t){this._shouldReconnect=!1,this._ws&&this._ws.readyState!==this.CLOSED&&this._ws.close(e,t)}},{key:"reconnect",value:function(e,t){this._shouldReconnect=!0,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED||this._connect(),this._disconnect(e,t),this._connect()}},{key:"send",value:function(e){this._ws&&this._ws.send(e)}},{key:"addEventListener",value:function(e,t){this._listeners[e]&&this._listeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(e){return e!==t}))}},{key:"_debug",value:function(){if(this._options.debug){for(var e,t=arguments.length,n=Array(t),i=0;i'].concat(n))}}},{key:"_getNextDelay",value:function(){var e=0;if(this._retryCount>0){var t=this._options,n=t.reconnectionDelayGrowFactor,i=void 0===n?a.reconnectionDelayGrowFactor:n,s=t.minReconnectionDelay,o=void 0===s?a.minReconnectionDelay:s,r=t.maxReconnectionDelay,c=void 0===r?a.maxReconnectionDelay:r;(e=o+Math.pow(this._retryCount-1,i))>c&&(e=c)}return this._debug('next delay',e),e}},{key:"_wait",value:function(){var e=this;return new Promise(function(t){setTimeout(t,e._getNextDelay())})}},{key:"_getNextUrl",value:function(e){if('string'==typeof e)return Promise.resolve(e);if('function'==typeof e){var t=e();if('string'==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error('Invalid URL')}},{key:"_connect",value:function(){var e=this;if(!this._connectLock){this._connectLock=!0;var t=this._options,n=t.maxRetries,i=void 0===n?a.maxRetries:n,s=t.connectionTimeout,o=void 0===s?a.connectionTimeout:s,r=t.WebSocket,u=void 0===r?c():r;if(this._retryCount>=i)this._debug('max retries reached',this._retryCount,'>=',i);else{if(this._retryCount++,this._debug('connect',this._retryCount),this._removeListeners(),'function'!=typeof(h=u)||2!==h.CLOSING)throw Error('No valid WebSocket class provided');var h;this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(t){e._debug('connect',{url:t,protocols:e._protocols}),e._ws=new u(t,e._protocols),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},o)})}}}},{key:"_handleTimeout",value:function(){this._debug('timeout event'),this._handleError(new o(Error('TIMEOUT'),this))}},{key:"_disconnect",value:function(e,t){if(clearTimeout(this._connectTimeout),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new r(e,t,this))}catch(e){}}}},{key:"_acceptOpen",value:function(){this._retryCount=0}},{key:"_handleOpen",value:function(e){var t=this;this._debug('open event');var n=this._options.minUptime,i=void 0===n?a.minUptime:n;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(function(){return t._acceptOpen()},i),this._debug('assign binary type'),this._ws.binaryType=this._binaryType,this.onopen&&this.onopen(e),this._listeners.open.forEach(function(t){return t(e)})}},{key:"_handleMessage",value:function(e){this._debug('message event'),this.onmessage&&this.onmessage(e),this._listeners.message.forEach(function(t){return t(e)})}},{key:"_handleError",value:function(e){this._debug('error event',e.message),this._disconnect(void 0,'TIMEOUT'===e.message?'timeout':void 0),this.onerror&&this.onerror(e),this._debug('exec error listeners'),this._listeners.error.forEach(function(t){return t(e)}),this._connect()}},{key:"_handleClose",value:function(e){this._debug('close event'),this.onclose&&this.onclose(e),this._listeners.close.forEach(function(t){return t(e)})}},{key:"_removeListeners",value:function(){if(this._ws){this._debug('removeListeners');var e=this.eventToHandler,t=Array.isArray(e),n=0;for(e=t?e:e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var s=i,o=babelHelpers.slicedToArray(s,2),r=o[0],c=o[1];this._ws.removeEventListener(r,c)}}}},{key:"_addListeners",value:function(){this._debug('addListeners');var e=this.eventToHandler,t=Array.isArray(e),n=0;for(e=t?e:e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var s=i,o=babelHelpers.slicedToArray(s,2),r=o[0],c=o[1];this._ws.addEventListener(r,c)}}},{key:"CONNECTING",get:function(){return e.CONNECTING}},{key:"OPEN",get:function(){return e.OPEN}},{key:"CLOSING",get:function(){return e.CLOSING}},{key:"CLOSED",get:function(){return e.CLOSED}},{key:"binaryType",get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}},{key:"retryCount",get:function(){return Math.max(this._retryCount,0)}},{key:"bufferedAmount",get:function(){return this._ws?this._ws.bufferedAmount:0}},{key:"extensions",get:function(){return this._ws?this._ws.extensions:''}},{key:"protocol",get:function(){return this._ws?this._ws.protocol:''}},{key:"readyState",get:function(){return this._ws?this._ws.readyState:e.CONNECTING}},{key:"url",get:function(){return this._ws?this._ws.url:''}}],[{key:"CONNECTING",get:function(){return 0}},{key:"OPEN",get:function(){return 1}},{key:"CLOSING",get:function(){return 2}},{key:"CLOSED",get:function(){return 3}}]),e})();n.exports=u},746); +__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});l.GeneralError=(function(e){function r(){var e,t,l,s;babelHelpers.classCallCheck(this,r);for(var o=arguments.length,a=Array(o),n=0;n=0)){i.next=8;break}throw new u.NationAlreadySubmitted;case 8:return i.prev=8,r=void 0,n.write(function(){r=n.create('Nation',(0,c.convertDraftToDatabase)(t,e,a.currentAccountId),!0)}),i.abrupt("return",r);case 14:throw i.prev=14,i.t0=i.catch(8),new l.DatabaseWriteFailed;case 17:case"end":return i.stop()}},null,this,[[8,14]])}},{key:"saveDraft",value:function(e){var t,n,r,a=this;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.prev=3,n=void 0,i.next=7,regeneratorRuntime.awrap(this.newNationId());case 7:return r=i.sent,t.write(function(){n=t.create('Nation',(0,c.convertDraftToDatabase)(e,r,a.currentAccountId))}),i.abrupt("return",n);case 12:throw i.prev=12,i.t0=i.catch(3),new l.DatabaseWriteFailed(i.t0);case 15:case"end":return i.stop()}},null,this,[[3,12]])}},{key:"submitDraft",value:function(e){var t,n,r,a,i;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=o.sent,o.next=5,regeneratorRuntime.awrap(this.nationById(e));case 5:if(!((n=o.sent).idInSmartContract>=0)){o.next=8;break}throw new u.NationAlreadySubmitted;case 8:if(!1!==this.canMutateNationState(n)){o.next=10;break}throw new u.StateMutateNotPossible;case 10:return r=(0,c.convertNationToBlockchain)(n),o.next=13,regeneratorRuntime.awrap(this.ethereumService.nations.createNation(JSON.stringify(r)));case 13:return a=o.sent,o.next=16,regeneratorRuntime.awrap((0,h.jobFactory)(a.hash,d.TX_JOB_TYPE.NATION_CREATE,this.currentAccountId));case 16:return i=o.sent,o.prev=17,t.write(function(){n.tx=i}),o.abrupt("return",n);case 22:throw o.prev=22,o.t0=o.catch(17),new l.DatabaseWriteFailed(o.t0);case 25:case"end":return o.stop()}},null,this,[[17,22]])}},{key:"saveAndSubmit",value:function(e){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(this.saveDraft(e));case 2:return t=n.sent,n.abrupt("return",this.submitDraft(t.id));case 4:case"end":return n.stop()}},null,this)}},{key:"deleteDraft",value:function(e){var t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=r.sent,r.next=5,regeneratorRuntime.awrap(this.nationById(e));case 5:if(!((n=r.sent).idInSmartContract>=0)){r.next=8;break}throw new u.NationAlreadySubmitted;case 8:r.prev=8,t.write(function(){t.delete(n)}),r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(8),new l.DatabaseWriteFailed(r.t0);case 15:case"end":return r.stop()}},null,this,[[8,12]])}},{key:"joinNation",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.next=5,regeneratorRuntime.awrap(this.nationById(e.id));case 5:if(n=i.sent,!1!==this.canMutateNationState(n)){i.next=8;break}throw new u.StateMutateNotPossible;case 8:return i.next=10,regeneratorRuntime.awrap(this.ethereumService.nations.joinNation(n.idInSmartContract));case 10:return r=i.sent,i.next=13,regeneratorRuntime.awrap((0,h.jobFactory)(r.hash,d.TX_JOB_TYPE.NATION_JOIN,this.currentAccountId));case 13:a=i.sent,i.prev=14,t.write(function(){n.tx=a}),i.next=21;break;case 18:throw i.prev=18,i.t0=i.catch(14),new l.DatabaseWriteFailed;case 21:case"end":return i.stop()}},null,this,[[14,18]])}},{key:"leaveNation",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=i.sent,i.next=5,regeneratorRuntime.awrap(this.nationById(e.id));case 5:if(n=i.sent,!1!==this.canMutateNationState(n)){i.next=8;break}throw new u.StateMutateNotPossible;case 8:return i.next=10,regeneratorRuntime.awrap(this.ethereumService.nations.leaveNation(n.idInSmartContract));case 10:return r=i.sent,i.next=13,regeneratorRuntime.awrap((0,h.jobFactory)(r.hash,d.TX_JOB_TYPE.NATION_LEAVE,this.currentAccountId));case 13:a=i.sent,i.prev=14,t.write(function(){n.tx=a}),i.next=21;break;case 18:throw i.prev=18,i.t0=i.catch(14),new l.DatabaseWriteFailed;case 21:case"end":return i.stop()}},null,this,[[14,18]])}},{key:"requestNationLogsHistory",value:function(){var e,t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e='dev'===this.ethereumService.network?d.NATIONS_DEV_ENDPOINT:d.NATIONS_PROD_ENDPOINT,n.next=3,regeneratorRuntime.awrap(fetch(e,{headers:{'content-type':'application/json'},method:'GET'}));case 3:if(!0===(t=n.sent).ok){n.next=6;break}throw new Error('[TEST] Nation logs fetch failed');case 6:return n.abrupt("return",Promise.resolve(t.json()));case 7:case"end":return n.stop()}},null,this)}},{key:"registerNationIndexing",value:function(){var e,t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return t=function(){console.log("[TEST] Coming log "+JSON.stringify(this)),e.updateNationsFromLogs([{idInSmartContract:this.args.nationId.toNumber(),txHash:this.transactionHash}]).catch(function(e){console.log("[PANGEA] Nation update fails with error "+e.message)})},e=this,this.ethereumService.nations.onnationcreated=t,this.ethereumService.nations.oncitizenjoined=t,this.ethereumService.nations.oncitizenleft=t,r.next=7,regeneratorRuntime.awrap(this.requestNationLogsHistory());case 7:return r.t0=function(e){return{idInSmartContract:e.id,txHash:e.tx_hash}},n=r.sent.map(r.t0),console.log("[TEST] Nation logs "+JSON.stringify(n)),r.abrupt("return",this.updateNationsFromLogs(n));case 11:case"end":return r.stop()}},null,this)}},{key:"updateNationsFromLogs",value:function(e){var t,n,r,a,i,o=this;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:return t=s.sent,s.next=5,regeneratorRuntime.awrap(this.ethereumService.nations.getJoinedNations({from:this.ethereumService.wallet.address}));case 5:return n=s.sent,r=!0===Array.isArray(n)?n.map(function(e){return e.toNumber()}):[],a=e.map(function(e){var n,a,i,s,c,u,l;return regeneratorRuntime.async(function(h){for(;;)switch(h.prev=h.next){case 0:return console.log("[TEST] Start processing log for id "+e.idInSmartContract),n=e.txHash,a=e.idInSmartContract,h.next=4,regeneratorRuntime.awrap(o.ethereumService.nations.getNumCitizens(a));case 4:if(i=h.sent.toNumber(),s=r.includes(a),null==(c=t.objects('Nation').filtered("tx.txHash = '"+(n||'')+"' AND tx.type = '"+d.TX_JOB_TYPE.NATION_CREATE+"'")[0])){h.next=10;break}return console.log('[TEST] Updating draft'),h.abrupt("return",function(){c.idInSmartContract=a,c.joined=s,c.citizens=i});case 10:if(null==(u=t.objects('Nation').filtered("accountId = '"+o.currentAccountId+"' && idInSmartContract = "+a)[0])){h.next=14;break}return console.log('[TEST] Updating nation'),h.abrupt("return",function(){u.joined=s,u.citizens=i});case 14:return h.t0=JSON,h.next=17,regeneratorRuntime.awrap(o.ethereumService.nations.getNationMetaData(a));case 17:return h.t1=h.sent,l=h.t0.parse.call(h.t0,h.t1),console.log("[TEST] Creating nation "+a),h.abrupt("return",function(){t.create('Nation',{id:o.newNationId(),accountId:o.currentAccountId,idInSmartContract:a,nationName:l.nationName,nationDescription:l.nationDescription,created:!0,exists:l.exists,virtualNation:l.virtualNation,nationCode:l.nationCode,lawEnforcementMechanism:l.lawEnforcementMechanism,profit:l.profit,nonCitizenUse:l.nonCitizenUse,diplomaticRecognition:l.diplomaticRecognition,decisionMakingProcess:l.decisionMakingProcess,governanceService:l.governanceService,joined:s,citizens:i})});case 21:case"end":return h.stop()}},null,o)}),s.next=10,regeneratorRuntime.awrap(Promise.all(a));case 10:i=s.sent,console.log('[TEST] Created writes'),t.write(function(){i.forEach(function(e){return e()})}),console.log('[TEST] Done');case 14:case"end":return s.stop()}},null,this)}},{key:"newNationId",value:function(){return(0,o.default)()}},{key:"nationById",value:function(e){var t,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(this.dbPromise);case 2:if(t=r.sent,0!==(n=t.objects('Nation').filtered("id = '"+e+"'")).length){r.next=6;break}throw new Error('system_error.nation.does_not_exist');case 6:return r.abrupt("return",n[0]);case 7:case"end":return r.stop()}},null,this)}},{key:"cleanUp",value:function(){this.ethereumService.nations.onnationcreated=null}}]),e})();r.default=m},749); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});l.NationAlreadySubmitted=(function(e){function t(){var e,r,l,o;babelHelpers.classCallCheck(this,t);for(var s=arguments.length,a=Array(s),n=0;n>>3){case 1:r.requestID=e.string();break;case 8:r.showModal=l.api_proto.Request.RenderModal.decode(e,e.uint32());break;case 9:r.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestID&&e.hasOwnProperty("requestID")&&!u.isString(e.requestID)?"requestID: string expected":null!=e.showModal&&e.hasOwnProperty("showModal")&&(t=l.api_proto.Request.RenderModal.verify(e.showModal))?"showModal."+t:null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(t=l.api_proto.Request.SendEthereumTransaction.verify(e.sendEthereumTransaction))?"sendEthereumTransaction."+t:null;var t},e.fromObject=function(e){if(e instanceof l.api_proto.Request)return e;var t=new l.api_proto.Request;if(null!=e.requestID&&(t.requestID=String(e.requestID)),null!=e.showModal){if("object"!=typeof e.showModal)throw TypeError(".api_proto.Request.showModal: object expected");t.showModal=l.api_proto.Request.RenderModal.fromObject(e.showModal)}if(null!=e.sendEthereumTransaction){if("object"!=typeof e.sendEthereumTransaction)throw TypeError(".api_proto.Request.sendEthereumTransaction: object expected");t.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.fromObject(e.sendEthereumTransaction)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.requestID="",n.showModal=null,n.sendEthereumTransaction=null),null!=e.requestID&&e.hasOwnProperty("requestID")&&(n.requestID=e.requestID),null!=e.showModal&&e.hasOwnProperty("showModal")&&(n.showModal=l.api_proto.Request.RenderModal.toObject(e.showModal,t)),null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(n.sendEthereumTransaction=l.api_proto.Request.SendEthereumTransaction.toObject(e.sendEthereumTransaction,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.RenderModal=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.dAppPublicKey=e.bytes();break;case 2:r.uiID=e.string();break;case 3:r.layout=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.dAppPublicKey&&e.hasOwnProperty("dAppPublicKey")&&!(e.dAppPublicKey&&"number"==typeof e.dAppPublicKey.length||u.isString(e.dAppPublicKey))?"dAppPublicKey: buffer expected":null!=e.uiID&&e.hasOwnProperty("uiID")&&!u.isString(e.uiID)?"uiID: string expected":null!=e.layout&&e.hasOwnProperty("layout")&&!u.isString(e.layout)?"layout: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Request.RenderModal)return e;var t=new l.api_proto.Request.RenderModal;return null!=e.dAppPublicKey&&("string"==typeof e.dAppPublicKey?u.base64.decode(e.dAppPublicKey,t.dAppPublicKey=u.newBuffer(u.base64.length(e.dAppPublicKey)),0):e.dAppPublicKey.length&&(t.dAppPublicKey=e.dAppPublicKey)),null!=e.uiID&&(t.uiID=String(e.uiID)),null!=e.layout&&(t.layout=String(e.layout)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.dAppPublicKey="":(n.dAppPublicKey=[],t.bytes!==Array&&(n.dAppPublicKey=u.newBuffer(n.dAppPublicKey))),n.uiID="",n.layout=""),null!=e.dAppPublicKey&&e.hasOwnProperty("dAppPublicKey")&&(n.dAppPublicKey=t.bytes===String?u.base64.encode(e.dAppPublicKey,0,e.dAppPublicKey.length):t.bytes===Array?Array.prototype.slice.call(e.dAppPublicKey):e.dAppPublicKey),null!=e.uiID&&e.hasOwnProperty("uiID")&&(n.uiID=e.uiID),null!=e.layout&&e.hasOwnProperty("layout")&&(n.layout=e.layout),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e.SendEthereumTransaction=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.value=e.string();break;case 2:r.to=e.string();break;case 3:r.data=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!u.isString(e.value)?"value: string expected":null!=e.to&&e.hasOwnProperty("to")&&!u.isString(e.to)?"to: string expected":null!=e.data&&e.hasOwnProperty("data")&&!u.isString(e.data)?"data: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Request.SendEthereumTransaction)return e;var t=new l.api_proto.Request.SendEthereumTransaction;return null!=e.value&&(t.value=String(e.value)),null!=e.to&&(t.to=String(e.to)),null!=e.data&&(t.data=String(e.data)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value="",n.to="",n.data=""),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.to&&e.hasOwnProperty("to")&&(n.to=e.to),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e})(),o.Response=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 6:r.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")){var t=l.api_proto.Response.SendEthereumTransaction.verify(e.sendEthereumTransaction);if(t)return"sendEthereumTransaction."+t}return null},e.fromObject=function(e){if(e instanceof l.api_proto.Response)return e;var t=new l.api_proto.Response;if(null!=e.sendEthereumTransaction){if("object"!=typeof e.sendEthereumTransaction)throw TypeError(".api_proto.Response.sendEthereumTransaction: object expected");t.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.fromObject(e.sendEthereumTransaction)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.sendEthereumTransaction=null),null!=e.sendEthereumTransaction&&e.hasOwnProperty("sendEthereumTransaction")&&(n.sendEthereumTransaction=l.api_proto.Response.SendEthereumTransaction.toObject(e.sendEthereumTransaction,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.SendEthereumTransaction=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.nonce=e.uint32();break;case 2:r.gasPrice=e.string();break;case 3:r.gasLimit=e.string();break;case 4:r.to=e.string();break;case 5:r.value=e.string();break;case 6:r.data=e.string();break;case 7:r.v=e.string();break;case 8:r.r=e.string();break;case 9:r.s=e.string();break;case 10:r.chainID=e.uint32();break;case 11:r.from=e.string();break;case 12:r.hash=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.nonce&&e.hasOwnProperty("nonce")&&!u.isInteger(e.nonce)?"nonce: integer expected":null!=e.gasPrice&&e.hasOwnProperty("gasPrice")&&!u.isString(e.gasPrice)?"gasPrice: string expected":null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&!u.isString(e.gasLimit)?"gasLimit: string expected":null!=e.to&&e.hasOwnProperty("to")&&!u.isString(e.to)?"to: string expected":null!=e.value&&e.hasOwnProperty("value")&&!u.isString(e.value)?"value: string expected":null!=e.data&&e.hasOwnProperty("data")&&!u.isString(e.data)?"data: string expected":null!=e.v&&e.hasOwnProperty("v")&&!u.isString(e.v)?"v: string expected":null!=e.r&&e.hasOwnProperty("r")&&!u.isString(e.r)?"r: string expected":null!=e.s&&e.hasOwnProperty("s")&&!u.isString(e.s)?"s: string expected":null!=e.chainID&&e.hasOwnProperty("chainID")&&!u.isInteger(e.chainID)?"chainID: integer expected":null!=e.from&&e.hasOwnProperty("from")&&!u.isString(e.from)?"from: string expected":null!=e.hash&&e.hasOwnProperty("hash")&&!u.isString(e.hash)?"hash: string expected":null},e.fromObject=function(e){if(e instanceof l.api_proto.Response.SendEthereumTransaction)return e;var t=new l.api_proto.Response.SendEthereumTransaction;return null!=e.nonce&&(t.nonce=e.nonce>>>0),null!=e.gasPrice&&(t.gasPrice=String(e.gasPrice)),null!=e.gasLimit&&(t.gasLimit=String(e.gasLimit)),null!=e.to&&(t.to=String(e.to)),null!=e.value&&(t.value=String(e.value)),null!=e.data&&(t.data=String(e.data)),null!=e.v&&(t.v=String(e.v)),null!=e.r&&(t.r=String(e.r)),null!=e.s&&(t.s=String(e.s)),null!=e.chainID&&(t.chainID=e.chainID>>>0),null!=e.from&&(t.from=String(e.from)),null!=e.hash&&(t.hash=String(e.hash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.nonce=0,n.gasPrice="",n.gasLimit="",n.to="",n.value="",n.data="",n.v="",n.r="",n.s="",n.chainID=0,n.from="",n.hash=""),null!=e.nonce&&e.hasOwnProperty("nonce")&&(n.nonce=e.nonce),null!=e.gasPrice&&e.hasOwnProperty("gasPrice")&&(n.gasPrice=e.gasPrice),null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&(n.gasLimit=e.gasLimit),null!=e.to&&e.hasOwnProperty("to")&&(n.to=e.to),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),null!=e.v&&e.hasOwnProperty("v")&&(n.v=e.v),null!=e.r&&e.hasOwnProperty("r")&&(n.r=e.r),null!=e.s&&e.hasOwnProperty("s")&&(n.s=e.s),null!=e.chainID&&e.hasOwnProperty("chainID")&&(n.chainID=e.chainID),null!=e.from&&e.hasOwnProperty("from")&&(n.from=e.from),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=e.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e})(),e})(),o),n.exports=l},754); +__d(function(e,r,t,o){Object.defineProperty(o,"__esModule",{value:!0});o.NoWalletServiceError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error),o.NoNationsServiceError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error),o.NoTxProcessorError=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),r})(Error)},755); +__d(function(e,a,n,c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertFromDatabase=function(e){return{currency:'PAT'===e.symbol?'XPAT':e.symbol,ethAddress:e.address,balance:''===e.balance?null:e.balance,name:e.name}},c.convertToDatabase=function(e,a){var n='XPAT'===e.currency?'PAT':e.currency;return{name:e.name,chain:'ethereum',symbol:n,decimals:18,balance:null===e.balance?'':e.balance,address:e.ethAddress,accountId:a,compoundId:a+"|"+e.ethAddress+"|"+n}}},756); +__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(350),u=r(758),o=r(508),c=regeneratorRuntime.mark(i);function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.takeEvery)(o.CURRENT_ACCOUNT_ID_CHANGED,u.onCurrentAccountChange)]);case 2:case"end":return e.stop()}},c,this)}},757); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.onCurrentAccountChange=d;var a=t(350),c=t(692),u=babelHelpers.interopRequireDefault(c),s=t(365),i=t(586),l=babelHelpers.interopRequireDefault(i),o=t(517),f=regeneratorRuntime.mark(d);function d(){var e,t,r,n;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,a.select)();case 2:if(e=c.sent,t=e.accounts,null!=(r=(0,s.getCurrentAccount)(t))){c.next=12;break}return c.next=8,(0,a.call)([u.default.instance,'destroyServices']);case 8:return c.next=10,(0,a.put)((0,o.servicesDestroyed)());case 10:c.next=19;break;case 12:return c.next=14,(0,a.call)(l.default.getEthPrivateKey);case 14:return n=c.sent,c.next=17,(0,a.call)([u.default.instance,'initServices'],r,n);case 17:return c.next=19,(0,a.put)((0,o.servicesCreated)());case 19:case"end":return c.stop()}},f,this)}},758); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=s;var n=t(350),u=t(519),i=t(760),o=regeneratorRuntime.mark(s);function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.all)([(0,n.takeEvery)(u.SAVE_NATION_DRAFT,i.saveDraftSaga),(0,n.takeEvery)(u.DELETE_NATION_DRAFT,i.deleteDraftSaga),(0,n.takeEvery)(u.SUBMIT_NATION,i.submitNationSaga)]);case 2:case"end":return e.stop()}},o,this)}},759); +__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.saveDraftSaga=d,n.deleteDraftSaga=p,n.submitNationSaga=b;var r=t(350),i=t(519),c=t(518),s=t(692),u=babelHelpers.interopRequireDefault(s),o=t(755),l=t(514),f=regeneratorRuntime.mark(d),x=regeneratorRuntime.mark(p),v=regeneratorRuntime.mark(b);function d(e){var t,a,n;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.nation,a=u.default.instance.nationsService,c.prev=2,null!=a){c.next=5;break}throw new o.NoNationsServiceError;case 5:if(n=void 0,void 0!==t.id){c.next=12;break}return c.next=9,(0,r.call)([a,'saveDraft'],t);case 9:n=c.sent,c.next=15;break;case 12:return c.next=14,(0,r.call)([a,'updateDraft'],t.id,t);case 14:n=c.sent;case 15:return c.next=17,(0,r.put)((0,i.nationDraftSaveResult)(n.id));case 17:return c.next=19,(0,r.put)((0,i.startNationEditing)((0,l.convertFromDatabase)(n)));case 19:c.next=25;break;case 21:return c.prev=21,c.t0=c.catch(2),c.next=25,(0,r.put)((0,i.nationDraftSaveResult)(t.id,c.t0));case 25:if(c.prev=25,!e.callback){c.next=29;break}return c.next=29,(0,r.call)(e.callback);case 29:return c.finish(25);case 30:case"end":return c.stop()}},f,this,[[2,21,25,30]])}function p(e){var t,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.nationId,a=u.default.instance.nationsService,n.prev=2,null!=a){n.next=5;break}throw new o.NoNationsServiceError;case 5:return n.next=7,(0,r.call)([a,'deleteDraft'],t);case 7:return n.next=9,(0,r.put)((0,i.nationDraftDeleteResult)(t));case 9:n.next=15;break;case 11:return n.prev=11,n.t0=n.catch(2),n.next=15,(0,r.put)((0,i.nationDraftDeleteResult)(t,n.t0));case 15:if(n.prev=15,!e.callback){n.next=19;break}return n.next=19,(0,r.call)(e.callback);case 19:return n.finish(15);case 20:case"end":return n.stop()}},x,this,[[2,11,15,20]])}function b(e){var t,a,n,s;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e.nation,a=u.default.instance.nationsService,l.prev=2,null!=a){l.next=5;break}throw new o.NoNationsServiceError;case 5:if(n=void 0,void 0!==t.id){l.next=12;break}return l.next=9,(0,r.call)([a,'saveAndSubmit'],t);case 9:n=l.sent,l.next=22;break;case 12:return l.next=14,(0,r.select)();case 14:if(s=l.sent,!(0,c.nationIsModified)(s.modifyNation)){l.next=19;break}return l.next=19,(0,r.call)([a,'updateDraft'],t.id,t);case 19:return l.next=21,(0,r.call)([a,'submitDraft'],t.id);case 21:n=l.sent;case 22:return l.next=24,(0,r.put)((0,i.nationSubmitResult)(n.id));case 24:l.next=30;break;case 26:return l.prev=26,l.t0=l.catch(2),l.next=30,(0,r.put)((0,i.nationSubmitResult)(t.id,l.t0));case 30:if(l.prev=30,!e.callback){l.next=34;break}return l.next=34,(0,r.call)(e.callback);case 34:return l.finish(30);case 35:case"end":return l.stop()}},v,this,[[2,26,30,35]])}},760); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=c;var a=t(350),s=t(513),i=t(762),u=t(517),o=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(s.REQUEST_JOIN_NATION,i.joinNation);case 3:return e.t1=e.sent,e.next=6,(0,a.takeEvery)(s.REQUEST_LEAVE_NATION,i.leaveNation);case 6:return e.t2=e.sent,e.next=9,(0,a.takeEvery)(u.SERVICES_CREATED,i.startNationIndexingWorker);case 9:return e.t3=e.sent,e.next=12,(0,a.call)(i.startDatabaseListening);case 12:return e.t4=e.sent,e.t5=[e.t1,e.t2,e.t3,e.t4],e.next=16,(0,e.t0)(e.t5);case 16:case"end":return e.stop()}},o,this)}},761); +__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNations=void 0,r.onCurrentAccountChange=R,r.buildAccountNationsResults=k,r.startDatabaseListening=A,r.startNationIndexingWorker=E,r.joinNation=S,r.leaveNation=_;var a=n(350),i=n(336),c=(n(550),n(513)),o=n(512),s=n(514),u=n(763),l=n(692),f=babelHelpers.interopRequireDefault(l),p=n(755),d=n(548),v=n(516),x=regeneratorRuntime.mark(R),N=regeneratorRuntime.mark(A),g=regeneratorRuntime.mark(E),h=regeneratorRuntime.mark(S),m=regeneratorRuntime.mark(_),b=function(e){return void 0!==e.transKey?e:-1!==e.toString().indexOf('insufficient')?{transKey:'insufficientFunds'}:e},w=r.getNations=function(e){return e.nations};function R(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.map(function(e){return(0,s.convertFromDatabase)(e)}),t.next=3,(0,a.put)((0,c.nationsUpdated)(n));case 3:case"end":return t.stop()}},x,this)}function k(e,n){return null===n?null:e.objects('Nation').filtered("accountId == '"+n+"'")}function A(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(d.currentAccountBasedUpdate,k,R);case 2:case"end":return e.stop()}},N,this)}function E(){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,null!=(e=f.default.instance.nationsService)){n.next=4;break}throw new p.NoNationsServiceError;case 4:return n.next=6,(0,a.put)((0,c.fetchNationsStarted)());case 6:return n.next=8,(0,a.call)([e,'registerNationIndexing']);case 8:return n.next=10,(0,a.put)((0,c.doneFetchNations)());case 10:n.next=20;break;case 12:return n.prev=12,n.t0=n.catch(0),console.log("[PANGEA] Nation indexing failed with error: "+n.t0.message),n.next=17,(0,i.delay)(v.NATION_INDEX_RECOVER_PERIOD);case 17:return console.log('[PANGEA] Recover nation indexing'),n.next=20,(0,a.call)(E);case 20:case"end":return n.stop()}},g,this,[[0,12]])}function S(){var e,n,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,null!=(e=f.default.instance.nationsService)){r.next=4;break}throw new p.NoNationsServiceError;case 4:return r.next=6,(0,a.select)(w);case 6:return n=r.sent,t=(0,o.openedNation)(n),r.next=10,(0,a.call)([e,'joinNation'],t);case 10:r.next=17;break;case 12:if(r.prev=12,r.t0=r.catch(0),!0!==r.t0.isCancelled){r.next=16;break}return r.abrupt("return");case 16:(0,u.errorAlert)(b(r.t0));case 17:return r.prev=17,r.next=20,(0,a.put)((0,c.cancelLoading)());case 20:return r.finish(17);case 21:case"end":return r.stop()}},h,this,[[0,12,17,21]])}function _(){var e,n,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,null!=(e=f.default.instance.nationsService)){r.next=4;break}throw new p.NoNationsServiceError;case 4:return r.next=6,(0,a.select)(w);case 6:return n=r.sent,t=(0,o.openedNation)(n),r.next=10,(0,a.call)([e,'leaveNation'],t);case 10:r.next=17;break;case 12:if(r.prev=12,r.t0=r.catch(0),!0!==r.t0.isCancelled){r.next=16;break}return r.abrupt("return");case 16:(0,u.errorAlert)(b(r.t0));case 17:return r.prev=17,r.next=20,(0,a.put)((0,c.cancelLoading)());case 20:return r.finish(17);case 21:case"end":return r.stop()}},m,this,[[0,12,17,21]])}},762); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.errorAlert=function(e){if(!0===e.isCancelled)return;a.Alert.alert(s.default.t('alerts.error.title'),'string'==typeof e.transKey?s.default.t("error."+e.transKey):e.toString(),[{text:s.default.t('alerts.error.confirm')}],{cancelable:!1})},l.alert=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a.Alert.alert(s.default.tf("alerts."+e+".title",e+".title"),s.default.tf("alerts."+e+".subtitle",e+".subtitle"),t.map(function(t){return{text:s.default.tf("alerts."+e+"."+t.name,e+"."+t.name),style:t.style,onPress:t.onPress}}),{cancelable:r})};var a=t(17),n=t(665),s=babelHelpers.interopRequireDefault(n)},763); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=r(350),o=r(765),u=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.call)(o.registerProcessor)]);case 2:case"end":return e.stop()}},u,this)}},764); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buildTransactionsResults=N,r.createNationProcessor=h,r.joinNationProcessor=k,r.leaveNationProcessor=w,r.processTransaction=O,r.onCurrentAccountChange=R,r.registerProcessor=g;var a=t(350),o=t(366),s=babelHelpers.interopRequireDefault(o),i=t(548),u=t(692),c=babelHelpers.interopRequireDefault(u),l=t(517),f=t(516),b=t(549),p=babelHelpers.interopRequireDefault(b),T=t(766),d=t(528),x=regeneratorRuntime.mark(h),E=regeneratorRuntime.mark(k),_=regeneratorRuntime.mark(w),m=regeneratorRuntime.mark(O),S=regeneratorRuntime.mark(R),A=regeneratorRuntime.mark(g);function N(e,t){return null===t?null:e.objects('TransactionJob').filtered("accountId == '"+t+"'")}function h(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_CREATE_SUCCEED:T.NATION_CREATE_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},x,this)}function k(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED,e&&(t.nation[0].joined=!0)}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_JOIN_SUCCEED:T.NATION_JOIN_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},E,this)}function w(e,t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=t.nation[0]){n.next=2;break}throw new Error('Unexpected! There is no nation present on the job object');case 2:return n.next=4,p.default;case 4:return n.sent.write(function(){t.status=e?f.TX_JOB_STATUS.SUCCESS:f.TX_JOB_STATUS.FAILED,e&&(t.nation[0].joined=!1)}),n.abrupt("return",(0,d.addNewMessage)(e?T.NATION_LEAVE_SUCCEED:T.NATION_LEAVE_FAILED,{nationName:t.nation[0].nationName},!0));case 7:case"end":return n.stop()}},_,this)}function O(e){var t,n,r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(e.status===f.TX_JOB_STATUS.PENDING){o.next=2;break}return o.abrupt("return");case 2:if(null!==(t=(function(){switch(e.type){case f.TX_JOB_TYPE.NATION_CREATE:return h;case f.TX_JOB_TYPE.NATION_JOIN:return k;case f.TX_JOB_TYPE.NATION_LEAVE:return w;default:return null}})())){o.next=5;break}throw new Error("Couldn't find a processor for type: "+e.type);case 5:return o.next=7,(0,a.call)([c.default.instance.ethereumService,'trackTransaction'],e.txHash);case 7:return o.next=9,(0,a.call)([c.default.instance.ethereumService,'getTransactionReceipt'],e.txHash);case 9:return n=o.sent,o.next=12,(0,a.call)(t,1===n.status,e);case 12:if(null==(r=o.sent)){o.next=16;break}return o.next=16,(0,a.put)(r);case 16:case"end":return o.stop()}},m,this)}function R(e,t){var n,r,o,i,u,f,b,p,T,d,x;return regeneratorRuntime.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(null!=c.default.instance.ethereumService){E.next=4;break}return E.next=4,(0,a.take)(l.SERVICES_CREATED);case 4:if(!(null==t||s.default.isEmpty(t.deletions)&&s.default.isEmpty(t.modifications)&&s.default.isEmpty(t.insertions))){E.next=13;break}n=0;case 6:if(!(n=r.length)){E.next=17;break}return E.abrupt("break",29);case 17:u=r[i++],E.next=24;break;case 20:if(!(i=r.next()).done){E.next=23;break}return E.abrupt("break",29);case 23:u=i.value;case 24:return f=u,E.next=27,(0,a.call)(O,e[f],'added');case 27:E.next=14;break;case 29:b=t.modifications,p=Array.isArray(b),T=0,b=p?b:b["function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator"]();case 30:if(!p){E.next=36;break}if(!(T>=b.length)){E.next=33;break}return E.abrupt("break",45);case 33:d=b[T++],E.next=40;break;case 36:if(!(T=b.next()).done){E.next=39;break}return E.abrupt("break",45);case 39:d=T.value;case 40:return x=d,E.next=43,(0,a.call)(O,e[x],'modified');case 43:E.next=30;break;case 45:case"end":return E.stop()}},S,this)}function g(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.call)(i.currentAccountBasedUpdate,N,R);case 2:case"end":return e.stop()}},A,this)}},765); +__d(function(e,n,a,A){Object.defineProperty(A,"__esModule",{value:!0});A.NATION_JOIN_SUCCEED='nation.join.succeed',A.NATION_JOIN_FAILED='nation.join.failed',A.NATION_LEAVE_SUCCEED='nation.leave.succeed',A.NATION_LEAVE_FAILED='nation.leave.failed',A.NATION_ALERT_HEADING='nation.heading',A.NATION_CREATE_SUCCEED='nation.create.succeed',A.NATION_CREATE_FAILED='nation.create.failed',A.TRANSACTION_FAILED='transaction.failed',A.TRANSACTION_SUCCEED='transaction.succeed',A.TRANSACTION_HEADING='transaction.heading'},766); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var a=t(350),s=t(768),E=t(539),p=t(517),u=t(771),A=regeneratorRuntime.mark(c);function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(p.SERVICES_CREATED,s.fetchDApps);case 3:return e.t1=e.sent,e.next=6,(0,a.takeEvery)(p.SERVICES_CREATED,u.subscribeToModalRender);case 6:return e.t2=e.sent,e.next=9,(0,a.takeEvery)(E.DAPPS_LIST_UPDATED,s.onDAppsListUpdated);case 9:return e.t3=e.sent,e.next=12,(0,a.takeEvery)(E.START_DAPP,s.startDAppSaga);case 12:return e.t4=e.sent,e.next=15,(0,a.takeEvery)(E.STOP_DAPP,s.stopDAppSaga);case 15:return e.t5=e.sent,e.next=18,(0,a.takeEvery)(E.OPEN_DAPP,s.openDApp);case 18:return e.t6=e.sent,e.next=21,(0,a.takeEvery)(E.PERFORM_DAPP_CALLBACK,s.performDAppCallback);case 21:return e.t7=e.sent,e.next=24,(0,a.takeEvery)(E.RENDER_DAPP_MESSAGE,s.renderDAppMessage);case 24:return e.t8=e.sent,e.t9=[e.t1,e.t2,e.t3,e.t4,e.t5,e.t6,e.t7,e.t8],e.next=28,(0,e.t0)(e.t9);case 28:case"end":return e.stop()}},A,this)}},767); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fetchDApps=b,n.onDAppsListUpdated=m,n.getDAppSaga=k,n.getDAppLaunchStateSaga=v,n.startDAppSaga=D,n.stopDAppSaga=w,n.openDApp=y,n.performDAppCallback=S,n.renderDAppMessage=R;var a=t(350),c=t(539),p=t(769),s=babelHelpers.interopRequireDefault(p),u=t(538),i=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(m),o=regeneratorRuntime.mark(k),d=regeneratorRuntime.mark(v),f=regeneratorRuntime.mark(D),x=regeneratorRuntime.mark(w),h=regeneratorRuntime.mark(y),g=regeneratorRuntime.mark(S),A=regeneratorRuntime.mark(R);function b(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(s.default.getDApps);case 2:return e=t.sent,t.next=5,(0,a.put)((0,c.dAppsListUpdated)(e));case 5:case"end":return t.stop()}},i,this)}function m(e){var t,r,n,p,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.availableDApps,i.next=3,(0,a.select)();case 3:r=i.sent,n=r.dApps,p=0;case 6:if(!(p0&&(i=babelHelpers.slicedToArray(u.children,1),u=i[0]),void 0===u.type&&(u.type='view',u.props={},u.children=[]),l.next=14,(0,a.call)(r,u);case 14:l.next=27;break;case 16:if(l.prev=16,l.t0=l.catch(5),'Error: it seems like that this app hasn\'t been started yet'!==l.t0){l.next=24;break}return l.next=21,(0,a.call)(D);case 21:return l.next=23,(0,a.call)(R,e);case 23:return l.abrupt("return");case 24:return console.log("[DAPP] Fail to render message: "+JSON.stringify(t)+" with error: "+l.t0),l.next=27,(0,a.call)(r,null);case 27:case"end":return l.stop()}},A,this,[[5,16]])}},768); +__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0});var a=n(770),s=n(545),u=babelHelpers.interopRequireWildcard(s),c=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"startDApp",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaStartDApp(e,30));case 1:case"end":return n.stop()}},null,this)}},{key:"stopDApp",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaStopDApp(e));case 1:case"end":return n.stop()}},null,this)}},{key:"openDApp",value:function(e,n){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.panthalassaOpenDApp(e,JSON.stringify({context:n})));case 1:case"end":return t.stop()}},null,this)}},{key:"getDApps",value:function(){var e,n;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(u.panthalassaDApps());case 3:return e=t.sent,n=JSON.parse(e),t.abrupt("return",n.map(a.convertFromPanthalassa));case 8:return t.prev=8,t.t0=t.catch(0),console.log("[PANGEA] Failed to get DApps "+t.t0.message),t.abrupt("return",[]);case 12:case"end":return t.stop()}},null,this,[[0,8]])}},{key:"connectToDAppHost",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",u.panthalassaConnectToDAppDevHost(e));case 1:case"end":return n.stop()}},null,this)}},{key:"connectToLogger",value:function(e){return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(u.panthalassaConnectLogger(e));case 2:return n.abrupt("return",u.panthalassaSetLogger('DEBUG'));case 3:case"end":return n.stop()}},null,this)}},{key:"performDAppCallback",value:function(e,n,t){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",u.panthalassaCallDAppFunction(e,n,JSON.stringify(t)));case 1:case"end":return r.stop()}},null,this)}},{key:"renderDAppMessage",value:function(e,n){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.panthalassaRenderMessage(e.dAppPublicKey,JSON.stringify({message:e,context:n})));case 1:case"end":return t.stop()}},null,this)}}]),e})();r.default=c},769); +__d(function(e,n,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertFromPanthalassa=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-us',a=t.Buffer.from(e.used_signing_key,'base64').toString('hex');return{name:e.name[n]||e.name['en-us'],publicKey:a}};var t=n(13)},770); +__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.handleRequest=f,t.createModalRenderChannel=R,t.subscribeToModalRender=m;var a=r(336),s=r(350),u=r(617),o=r(692),c=babelHelpers.interopRequireDefault(o),l=r(753),i=(babelHelpers.interopRequireDefault(l),r(539)),d=r(627),p=regeneratorRuntime.mark(f),b=regeneratorRuntime.mark(m);function f(e){var r,n,t,a;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=e.modalID,o.next=3,(0,s.select)();case 3:return n=o.sent,t=n.dApps.modals,a=null!=t[r],o.next=8,(0,s.put)((0,i.storeDAppModal)(e));case 8:!1===a&&u.Navigation.showModal(babelHelpers.extends({},(0,d.screen)('DAPP_MODAL_SCREEN'),{passProps:{modalID:r}}));case 9:case"end":return o.stop()}},p,this)}function R(e){return(0,a.eventChannel)(function(r){return e.subscribeToModalRender(function(e){r({request:e})}),e.unsubscribeFromModalRender})}function m(){var e,r,n,t;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(null!=(e=c.default.instance.upstreamService)){a.next=3;break}return a.abrupt("return");case 3:return a.next=5,(0,s.call)(R,e);case 5:r=a.sent;case 6:return a.next=9,(0,s.take)(r);case 9:return n=a.sent,t=n.request,a.next=13,(0,s.fork)(f,t);case 13:a.next=6;break;case 15:case"end":return a.stop()}},b,this)}},771); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var a=r(350),i=r(682),u=r(773),o=regeneratorRuntime.mark(s);function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.takeEvery)(u.START_MIGRATION,i.startMigration);case 2:return e.next=4,(0,a.takeEvery)(u.IS_MIGRATION,i.isMigration);case 4:case"end":return e.stop()}},o,this)}},772); +__d(function(t,e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startMigration=function(){return{type:I}},r.isMigration=function(){return{type:i}};var I=r.START_MIGRATION='START_MIGRATION',i=r.IS_MIGRATION='IS_MIGRATION'},773); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var a=t(350),u=t(517),s=t(775),c=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)(u.SERVICES_CREATED,s.subscribeToUIAPI);case 3:return e.t1=e.sent,e.t2=[e.t1],e.next=7,(0,e.t0)(e.t2);case 7:case"end":return e.stop()}},c,this)}},774); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.handleRequest=E,n.createUIAPIChannel=x,n.subscribeToUIAPI=I;var a=r(350),s=r(336),u=r(692),c=babelHelpers.interopRequireDefault(u),i=r(753),p=(babelHelpers.interopRequireDefault(i),r(539)),o=r(768),b=r(534),l=regeneratorRuntime.mark(E),f=regeneratorRuntime.mark(I);function E(e){var r,t,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(r=e.name,t=e.payload,'string'==typeof r&&'object'==typeof t){s.next=3;break}return s.abrupt("return");case 3:s.t0=r,s.next='DAPP:PERSISTED'===s.t0?6:'MESSAGE:RECEIVED'===s.t0?12:'MESSAGE:DELIVERED'===s.t0?13:'MESSAGE:PERSISTED'===s.t0?14:17;break;case 6:return n=t.dapp_signing_key,s.next=9,(0,a.call)(o.stopDAppSaga,(0,p.stopDApp)(n));case 9:return s.next=11,(0,a.call)(o.fetchDApps);case 11:case 12:case 13:return s.abrupt("break",18);case 14:return s.next=16,(0,a.put)((0,b.panthalassaMessagePersisted)(t));case 16:case 17:return s.abrupt("break",18);case 18:case"end":return s.stop()}},l,this)}function x(e){return(0,s.eventChannel)(function(r){return e.subscribeToUIAPI(function(e){r({request:e})}),e.unsubscribeFromUIAPI})}function I(){var e,r,t,n;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(null!=(e=c.default.instance.upstreamService)){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,(0,a.call)(x,e);case 5:r=s.sent;case 6:return s.next=9,(0,a.take)(r);case 9:return t=s.sent,n=t.request,s.next=13,(0,a.fork)(E,n);case 13:s.next=6;break;case 15:case"end":return s.stop()}},f,this)}},775); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=o;var a=t(350),u=t(777),c=t(517),s=t(542),E=regeneratorRuntime.mark(o);function o(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.all,e.next=3,(0,a.takeEvery)([c.SERVICES_CREATED,s.START_DOCUMENTS_FETCH],u.fetchDocuments);case 3:return e.t1=e.sent,e.next=6,(0,a.takeEvery)(s.FINISH_DOCUMENT_MODIFICATION,u.saveDocument);case 6:return e.t2=e.sent,e.next=9,(0,a.takeEvery)(s.DELETE_DOCUMENT,u.deleteDocument);case 9:return e.t3=e.sent,e.t4=[e.t1,e.t2,e.t3],e.next=13,(0,e.t0)(e.t4);case 13:case"end":return e.stop()}},E,this)}},776); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fetchDocuments=d,n.saveDocument=m,n.deleteDocument=p;var a=t(350),c=t(543),u=babelHelpers.interopRequireDefault(c),s=t(542),o=regeneratorRuntime.mark(d),i=regeneratorRuntime.mark(m),l=regeneratorRuntime.mark(p);function d(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,a.call)(u.default.getDocuments);case 3:return e=t.sent,t.next=6,(0,a.put)((0,s.documentsUpdated)(e));case 6:t.next=13;break;case 8:return t.prev=8,t.t0=t.catch(0),console.log("[DOCUMENTS] Failed to get documents with error "+t.t0.message),t.next=13,(0,a.put)((0,s.documentsFetchFailed)(t.t0));case 13:case"end":return t.stop()}},o,this,[[0,8]])}function m(){var e,t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,a.select)();case 2:if(e=n.sent,null!==(t=e.documents.modification)){n.next=6;break}return n.abrupt("return");case 6:if(null!==(r=t.new)){n.next=9;break}return n.abrupt("return");case 9:if(n.prev=9,null===t.new.id){n.next=15;break}return n.next=13,(0,a.call)(u.default.updateDocument,r);case 13:n.next=17;break;case 15:return n.next=17,(0,a.call)(u.default.saveDocument,r);case 17:return n.next=19,(0,a.put)((0,s.startDocumentsFetch)());case 19:n.next=24;break;case 21:n.prev=21,n.t0=n.catch(9),console.log("[DOCUMENTS] Failed to save document: "+JSON.stringify(r)+", with error "+n.t0.message);case 24:case"end":return n.stop()}},i,this,[[9,21]])}function p(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.documentId,r.prev=1,r.next=4,(0,a.call)(u.default.deleteDocument,t);case 4:return r.next=6,(0,a.put)((0,s.startDocumentsFetch)());case 6:r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),console.log("[DOCUMENTS] Failed to delete document with id: "+t+", with error "+r.t0.message);case 11:case"end":return r.stop()}},l,this,[[1,8]])}},777); +__d(function(e,n,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,n){i.Navigation.registerComponent((0,Oe.screen)('ACCOUNTS_SCREEN').screen,function(){return u.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ACCOUNT_CREATE_DEVELOPER_SETTINGS').screen,function(){return l.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ACCOUNT_CREATE_READY').screen,function(){return E.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ACCOUNT_RESTORE_SOURCE').screen,function(){return f.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ACCOUNT_RESTORE_EMPTY_WALLET').screen,function(){return p.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CONFIRM_KEY_INSTRUCTION_SCREEN').screen,function(){return T.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CONFIRM_KEY_PROCESS_SCREEN').screen,function(){return d.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('VERIFY_KEY_INSTRUCTION_SCREEN').screen,function(){return m.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('VERIFY_KEY_PROCESS_SCREEN').screen,function(){return q.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('VERIFY_KEY_SUCCESS_SCREEN').screen,function(){return P.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('RESTORE_KEY_SCREEN').screen,function(){return q.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('VIEW_PRIVATE_KEY_SCREEN').screen,function(){return I.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('INTRO_SCREEN').screen,function(){return M.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('DASHBOARD_SCREEN').screen,function(){return R.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CHAT_SCREEN').screen,function(){return B.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('MIGRATION_SCREEN').screen,function(){return S.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('NATIONS_SCREEN').screen,function(){return k.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('NATION_DETAILS_SCREEN').screen,function(){return J.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('WALLET_SCREEN').screen,function(){return g.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('PROFILE_SCREEN').screen,function(){return x.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('RECEIVE_MONEY_SCREEN').screen,function(){return K.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('SEND_MONEY_SCREEN').screen,function(){return V.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('QR_CODE_SCANNER_SCREEN').screen,function(){return G.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('QR_CODE_DAPP_SCREEN').screen,function(){return j.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('NATION_CREATE_SCREEN').screen,function(){return Z.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CHAT_NATIONS_SCREEN').screen,function(){return ee.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('NEW_CHAT_SCREEN').screen,function(){return re.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('SETTINGS_SCREEN').screen,function(){return ie.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('SECURITY_SETTINGS_SCREEN').screen,function(){return ue.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ACCOUNTS_ACCESS_SCREEN').screen,function(){return le.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('ENTER_PASSCODE_SCREEN').screen,function(){return fe.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CREATE_PASSCODE_SCREEN').screen,function(){return pe.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CONFIRMATION_SCREEN').screen,function(){return Ee.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('CHAT_LIST_SCREEN').screen,function(){return Re.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('PRIVATE_CHAT_SCREEN').screen,function(){return ge.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('DAPP_MODAL_SCREEN').screen,function(){return Se.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('DOCUMENTS_LIST_SCREEN').screen,function(){return Te.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('DOCUMENT_VIEW_SCREEN').screen,function(){return de.default},e,n),i.Navigation.registerComponent((0,Oe.screen)('DOCUMENT_MODIFY_SCREEN').screen,function(){return me.default},e,n)};var i=n(617),o=n(779),u=babelHelpers.interopRequireDefault(o),a=n(805),l=babelHelpers.interopRequireDefault(a),s=n(808),E=babelHelpers.interopRequireDefault(s),c=n(810),f=babelHelpers.interopRequireDefault(c),C=n(811),p=babelHelpers.interopRequireDefault(C),N=n(812),R=babelHelpers.interopRequireDefault(N),_=n(823),g=babelHelpers.interopRequireDefault(_),b=n(1179),S=babelHelpers.interopRequireDefault(b),D=n(1181),T=babelHelpers.interopRequireDefault(D),H=n(1185),d=babelHelpers.interopRequireDefault(H),v=n(1191),m=babelHelpers.interopRequireDefault(v),O=n(1193),q=babelHelpers.interopRequireDefault(O),A=n(1201),I=babelHelpers.interopRequireDefault(A),Y=n(1203),P=babelHelpers.interopRequireDefault(Y),U=n(1205),M=babelHelpers.interopRequireDefault(U),L=n(1208),V=babelHelpers.interopRequireDefault(L),F=n(1210),K=babelHelpers.interopRequireDefault(F),W=n(1212),G=babelHelpers.interopRequireDefault(W),Q=n(1213),j=babelHelpers.interopRequireDefault(Q),y=n(1221),B=babelHelpers.interopRequireDefault(y),h=n(1311),k=babelHelpers.interopRequireDefault(h),w=n(1315),x=babelHelpers.interopRequireDefault(w),z=n(1330),J=babelHelpers.interopRequireDefault(z),X=n(1336),Z=babelHelpers.interopRequireDefault(X),$=n(1367),ee=babelHelpers.interopRequireDefault($),ne=n(1371),re=babelHelpers.interopRequireDefault(ne),te=n(1373),ie=babelHelpers.interopRequireDefault(te),oe=n(1376),ue=babelHelpers.interopRequireDefault(oe),ae=n(1378),le=babelHelpers.interopRequireDefault(ae),se=n(1381),Ee=babelHelpers.interopRequireDefault(se),ce=n(1384),fe=babelHelpers.interopRequireDefault(ce),Ce=n(1389),pe=babelHelpers.interopRequireDefault(Ce),Ne=n(1390),Re=babelHelpers.interopRequireDefault(Ne),_e=n(1396),ge=babelHelpers.interopRequireDefault(_e),be=n(1408),Se=babelHelpers.interopRequireDefault(be),De=n(1409),Te=babelHelpers.interopRequireDefault(De),He=n(1412),de=babelHelpers.interopRequireDefault(He),ve=n(1414),me=babelHelpers.interopRequireDefault(ve),Oe=n(627)},778); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var s=this,a=t(51),o=babelHelpers.interopRequireDefault(a),c=t(297),l=t(17),u=t(628),i=babelHelpers.interopRequireDefault(u),f=t(665),d=babelHelpers.interopRequireDefault(f),p=t(627),b=t(780),R=babelHelpers.interopRequireDefault(b),m=t(797),E=babelHelpers.interopRequireDefault(m),h=t(801),g=babelHelpers.interopRequireDefault(h),C=t(802),y=babelHelpers.interopRequireDefault(C),S=t(803),w=babelHelpers.interopRequireDefault(S),P=t(508);t(365);var x=t(804),H=babelHelpers.interopRequireDefault(x),T=t(763),v=(function(e){function t(){var e,n,r,s;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,o=Array(a),c=0;c=n&&e<=r;if(n||0===n)return e>=n;if(r||0===r)return e<=r}return!1}},{key:"isInIntervalOrEqual",value:function(n,r,l,t){return r||0===r?n===r:e.isInInterval(n,l,t)}},{key:"debounce",value:function(e,n){var r=void 0;return function(){console.log(r),clearTimeout(r),console.log(r),r=setTimeout(e,n)}}}]),e})();l.default=t},791); +__d(function(e,n,l,r){Object.defineProperty(r,"__esModule",{value:!0});var t=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"childrenValidator",value:function(e,n,l){return"object"!=typeof e[n]?new Error("Invalid prop '"+n+"' supplied to '"+l+"': A valid JSX element must be provided."):e[n]instanceof Array?new Error("Invalid prop '"+n+"' supplied to '"+l+"': Adjacent JSX elements must be wrapped in an enclosing tag."):null}}]),e})();r.default=t},792); +__d(function(e,i,r,t){Object.defineProperty(t,"__esModule",{value:!0});var a=i(17),n=i(788),o=i(784),u=(function(e){function i(){return babelHelpers.classCallCheck(this,i),babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,null,[{key:"create",value:function(e,r){if(r)for(var t in r)/@media/.test(t)&&i.isValidRule(t)&&i.merge(e,r[t]);return a.StyleSheet.create(e)}},{key:"isValidRule",value:function(e){if(e){for(var r=[],t=/\(([^()]+)\)/g,a=!0;(r=t.exec(e))&&a;)a=i.isValidFeature(r[1]);return a}return!1}},{key:"isValidFeature",value:function(e){return!!e&&i.isValidSizeFeature(e)}},{key:"isValidSizeFeature",value:function(e){var r=i.parseSizeFeature(e);return!!r&&i.featuresCheckers[r.key](r.value)}},{key:"debug",value:function(){console.log("\ud83d\udcf1 DEVICE LOGS for MediaQueryStyleSheet:\n"),o.Device.information.map(function(e){console.log("\t"+e)})}}]),i})(n.StyleSheetUtil);u.featuresCheckers={"device-width":function(e){return o.Device.isValidWidthFromOperator("equal",e)},"min-device-width":function(e){return o.Device.isValidWidthFromOperator("min",e)},"max-device-width":function(e){return o.Device.isValidWidthFromOperator("max",e)},"device-height":function(e){return o.Device.isValidHeightFromOperator("equal",e)},"min-device-height":function(e){return o.Device.isValidHeightFromOperator("min",e)},"max-device-height":function(e){return o.Device.isValidHeightFromOperator("max",e)},"device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("equal",e)},"min-device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("min",e)},"max-device-pixel-ratio":function(e){return o.Device.isValidPixelRatioFromOperator("max",e)}},t.default=u},793); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var s=t(51),a=babelHelpers.interopRequireDefault(s),n=t(17),o=t(784),i=(function(e){function t(e){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.styleText,r=babelHelpers.objectWithoutProperties(e,["styleText"]);return a.default.createElement(n.View,r,o.Device.information.map(function(e,r){return a.default.createElement(n.Text,{key:r,style:t}," ",e," ")}))}}]),t})(s.Component);i.displayName="MediaQueryDebug",i.propTypes=babelHelpers.extends({},n.ViewPropType),l.default=i},794); +__d(function(e,r,t,u){Object.defineProperty(u,"__esModule",{value:!0});var n=r(796);Object.defineProperty(u,"MediaQueryDecorator",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}})},795); +__d(function(e,t,r,i){Object.defineProperty(i,"__esModule",{value:!0});var l=t(51),n=babelHelpers.interopRequireDefault(l),a=t(784);i.default=function(e,t){return function(r){var i,l;return l=i=(function(i){function l(t){babelHelpers.classCallCheck(this,l);var r=babelHelpers.possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,t));return r.device=new a.Device(e),r.state={isVisible:r.device.isValid()},r}return babelHelpers.inherits(l,i),babelHelpers.createClass(l,[{key:"componentDidMount",value:function(){t&&this.device.debug(l.displayName)}},{key:"render",value:function(){return this.state.isVisible?n.default.createElement(r,this.props):null}}]),l})(n.default.Component),i.displayName="MediaQueryDecorator",l}}},796); +__d(function(e,a,t,r){Object.defineProperty(r,"__esModule",{value:!0});var l=a(51),n=babelHelpers.interopRequireDefault(l),u=a(17),i=a(781),d=a(798),f=babelHelpers.interopRequireDefault(d),s=function(e){var a=e.navBarHidden,t=i.MediaQueryStyleSheet.create({fakeNavigationBar:babelHelpers.extends({},f.default.navigationBar),fakeStatusBar:babelHelpers.extends({},f.default.statusBar)});return n.default.createElement(u.View,{style:a?t.fakeStatusBar:t.fakeNavigationBar})};s.defaultProps={navBarHidden:!1},r.default=s},797); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var i=t(17),r=t(515),a=babelHelpers.interopRequireDefault(r),l=t(799),d=t(800),g=babelHelpers.interopRequireDefault(d),f=babelHelpers.extends({},g.default,{noflex:{flex:0},flexEnd:{flex:1,justifyContent:'flex-end'},screenContainer:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch'},bodyContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',marginLeft:8,marginRight:8},bodyAccountContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',marginLeft:16,marginRight:16},gridContainer:{flexDirection:'column',justifyContent:'flex-start',alignItems:'stretch',alignContent:'flex-start',flex:1,marginLeft:8,marginRight:8},scrollView:{flex:1},scrollViewWallet:{flex:0,marginBottom:56},bodyTopSpacer:{height:(0,l.fontSizeNormalizer)(18)},titleContainer:{marginHorizontal:20,marginBottom:8},bodyParagraph:{paddingBottom:16},bodyParagraphConfirmationRow:{paddingBottom:20,borderBottomColor:a.default.BitnationGrayColor,borderBottomWidth:.4,paddingLeft:4,paddingRight:4,paddingTop:8,flexDirection:'row',alignItems:'stretch',justifyContent:'space-between',flex:1},bodyParagraphConfirmationColumn:{paddingBottom:16,borderBottomColor:a.default.BitnationGrayColor,borderBottomWidth:.4,paddingLeft:4,paddingRight:4,paddingTop:8},statusBar:{height:'android'===i.Platform.OS?0:(0,l.isiPhoneXStatusBar)(20),backgroundColor:'transparent'},statusBariPhoneX:{height:44,backgroundColor:'transparent'},navigationBar:{marginTop:'android'===i.Platform.OS?0:(0,l.isiPhoneXStatusBar)(20),marginLeft:8,marginRight:8,height:44,backgroundColor:'transparent'},tabBar:{height:49,marginTop:10,marginBottom:10,backgroundColor:a.default.shadeOfBitnationLightColor(.1),flexDirection:'row',alignItems:'stretch',justifyContent:'space-around'},homeIndicator:{height:34},titleBarLarge:{height:(0,l.fontSizeNormalizer)(40),alignItems:'flex-start'},titleBarLargeNationDetail:{height:(0,l.fontSizeNormalizer)(92),alignItems:'flex-start'},titleBarLargeMargins:{height:52,marginLeft:16,marginRight:16,textAlign:'left'},profilesScreenContainer:{flex:1,justifyContent:'flex-start',flexDirection:'column',alignItems:'stretch'},nationsScreenContainer:{flex:1,justifyContent:'flex-start',flexDirection:'column',alignItems:'stretch'},nationsScreenImageContainer:{flex:1,justifyContent:'center',flexDirection:'row',alignItems:'stretch',marginTop:30,marginBottom:20},gridPanelView:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch',margin:4,borderRadius:8,backgroundColor:a.default.white,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},gridPanelViewWarning:{flexDirection:'column',justifyContent:'space-between',alignItems:'stretch',margin:4,borderRadius:8,backgroundColor:a.default.white,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},removeGridPanelMarginsLR:{marginLeft:(0,l.fontSizeNormalizer)(-16),marginRight:(0,l.fontSizeNormalizer)(-16)},panelView:{flexDirection:'column',justifyContent:'space-between',borderRadius:8,backgroundColor:a.default.white,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',padding:(0,l.fontSizeNormalizer)(16)},panelViewTransparent:{flexDirection:'column',justifyContent:'space-between',borderRadius:8,backgroundColor:'transparent',marginTop:8,marginBottom:8,marginLeft:0,marginRight:0,paddingLeft:8,paddingRight:8,paddingTop:4,paddingBottom:4},panelTitleRowContainer:{flexDirection:'row',backgroundColor:'transparent',paddingBottom:4},panelTitleContainer:{backgroundColor:'transparent'},panelTitleIcon:{flex:1,backgroundColor:'transparent',alignItems:'flex-end'},panelViewTitle:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',color:a.default.panelViewTitleColor,textAlign:'left'}),alertPanelViewTitle:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',color:a.default.primary_red,textAlign:'left'}),panelSubTitle:babelHelpers.extends({},g.default.title3,{textAlign:'left'}),panelIcon:babelHelpers.extends({},g.default.title2,{fontWeight:'bold',textAlign:'right'}),panelChildrenContainer:{flex:1,marginBottom:4},panelBodyContainer:{marginBottom:8,flexShrink:1,overflow:'hidden'},panelBody:babelHelpers.extends({},g.default.body),messageAdditionalInfoContainer:{},messageBottomContainer:{},panelButton:{marginTop:13},panelFlatlistHeader:{justifyContent:'center',paddingLeft:16,height:30},panelViewAlert:{flexDirection:'row',borderRadius:8,backgroundColor:a.default.panelViewAlert,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',paddingLeft:10,padding:(0,l.fontSizeNormalizer)(5)},panelAlertBold:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor,fontSize:13,fontWeight:'bold'}),panelAlertStatus:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor,fontSize:13}),panelViewCitizen:{justifyContent:'space-between',flexDirection:'row',borderRadius:8,backgroundColor:a.default.panelView,marginTop:4,marginBottom:4,marginLeft:0,marginRight:0,overflow:'hidden',paddingLeft:10,padding:(0,l.fontSizeNormalizer)(7)},panelViewCitizenIcon:{width:25,height:25},formRow:{flexDirection:'row',alignItems:'center'},fieldsContainer:{alignItems:'stretch',flex:1},formLabelText:babelHelpers.extends({},g.default.body,{color:'white'}),formSwitchLabelText:babelHelpers.extends({},g.default.body,{color:a.default.BitnationDarkGrayColor,marginRight:60,fontSize:16}),textInput:babelHelpers.extends({},g.default.body,{borderColor:a.default.borderColor,borderBottomWidth:1,flex:1,marginTop:4,marginBottom:14,marginRight:0,marginLeft:0,fontSize:16,paddingLeft:4,paddingTop:6,paddingBottom:12}),textInputConfirmation:babelHelpers.extends({},g.default.body,{borderColor:a.default.borderColor,flex:1,alignItems:'stretch',textAlign:'right',fontSize:16,paddingLeft:4}),textInputLabelText:babelHelpers.extends({},g.default.caption1),labeledTextInputContainer:{minHeight:72},placeHolderText:babelHelpers.extends({},g.default.body,{color:a.default.placeholderTextColor}),editItemLabel:babelHelpers.extends({},g.default.body,{backgroundColor:'transparent',color:a.default.titleColor,fontWeight:'bold',margin:5}),labelText:babelHelpers.extends({},g.default.body,{backgroundColor:'transparent',color:a.default.titleColor}),dropDown:{backgroundColor:a.default.shadeOfBitnationLightColor(.2),borderColor:a.default.borderColor,borderWidth:1,flex:1,marginTop:4,marginBottom:4,marginRight:0,marginLeft:0,paddingLeft:4,paddingTop:6,paddingBottom:6},dropDownTextDefault:babelHelpers.extends({},g.default.body),dropDownTextList:babelHelpers.extends({},g.default.body,{color:a.default.BitnationHighlightColor}),switchContainer:{flex:1,flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginTop:5,marginBottom:10,borderWidth:0},switchObject:{marginRight:10},listContainer:{flex:1,flexDirection:'column',justifyContent:'space-between',alignItems:'stretch'},sectionList:{flex:1},listItemText:babelHelpers.extends({},g.default.body,{color:a.default.BitnationDarkGrayColor,flex:1,textAlignVertical:'center'}),listItemSubtitle:babelHelpers.extends({},g.default.footnote,{color:a.default.BitnationDarkGrayColor,flex:1,textAlignVertical:'center'}),listItemTextContainer:{flex:1,alignItems:'stretch',justifyContent:'space-between',paddingBottom:16,paddingTop:12},detailedItemTitle:babelHelpers.extends({},g.default.body,{color:a.default.BitnationDarkGrayColor,fontSize:14,fontWeight:'500'}),listItemTextVeryBold:babelHelpers.extends({},g.default.bodyBlack,{flex:1}),listItemTextState:babelHelpers.extends({},g.default.body,{color:a.default.listItemTextState.default,textAlign:'right',marginRight:16}),sectionListTouchable:{flex:1,flexDirection:'row',justifyContent:'center',alignItems:'center'},sectionListItemContainer:{flex:1,flexDirection:'row',height:46,justifyContent:'center',alignItems:'center',backgroundColor:a.default.sectionListItemContainerBackground,marginLeft:20,marginRight:8},sectionListHeaderContainer:{flexDirection:'row',height:30,justifyContent:'center',alignItems:'center',marginLeft:16,backgroundColor:a.default.sectionListHeaderContainer},sectionListHeaderText:babelHelpers.extends({},g.default.body,{flex:1,marginLeft:16,color:a.default.sectionListHeaderText}),sectionListSeparator:{flex:1,marginLeft:10,height:1,backgroundColor:a.default.sectionListSeparator},sectionListDisclosure:{marginRight:16,width:8,height:15},listItemIcon:{height:40,width:40,borderRadius:20,marginRight:16},sectionListSignal:{marginRight:14,width:20,height:15},sectionListNewMessage:{marginRight:7,width:7,height:7},itemSeparator:{height:1,backgroundColor:a.default.BitnationLightGrayColor,marginLeft:16,marginRight:16},detailedItemContainer:{height:72},closeIcon:{color:'#fff'},segmentedControlContainer:{height:44,marginLeft:(0,l.normalWidthMargin)(),marginRight:(0,l.normalWidthMargin)(),flexDirection:'row',alignItems:'center'},segmentedControlContainerBackground:{backgroundColor:'transparent'},settingsList:{height:50},settingsText:{color:'white',fontSize:15,fontWeight:'900'},tabsContainerStyle:{backgroundColor:'transparent'},tabStyle:{backgroundColor:'transparent',borderColor:a.default.activeTabStyle},tabTextStyle:{backgroundColor:'transparent',color:a.default.tabTextStyle},activeTabStyle:{backgroundColor:a.default.activeTabStyle},tabBarButton:{borderRadius:15,backgroundColor:'transparent',height:48,width:48,justifyContent:'center'},tabBarContainer:{justifyContent:'center',alignItems:'center'},tabBarTitle:{marginTop:4,color:a.default.white,backgroundColor:'transparent',fontSize:10},fakeBottomBar:{paddingTop:5,height:(0,l.isiPhoneXTabBar)(55),backgroundColor:a.default.BitnationDarkGrayColor,flexDirection:'row',alignItems:'stretch',justifyContent:'space-around'},currencyLarge:babelHelpers.extends({},g.default.largeTitle,{fontFamily:'Roboto',fontSize:30,color:a.default.currency}),currencyMedium:babelHelpers.extends({},g.default.largeTitle,{fontFamily:'Roboto',fontSize:15,color:a.default.currency,fontWeight:'bold'}),buttonTitle:{fontSize:14,color:a.default.BitnationLinkOrangeColor,letterSpacing:-.02,lineHeight:19,textAlign:'center',fontWeight:'bold'},actionButtonTitle:babelHelpers.extends({},g.default.headline,{color:a.default.white,textAlign:'center'}),disabledButtonTitle:{color:a.default.BitnationLightGrayColor},dAppMessageTime:{fontSize:12,padding:9,marginTop:2,color:a.default.textColor},dAppMessageText:{fontSize:18,padding:9,marginBottom:3,color:a.default.textColor},arrowButtonTitle:{fontSize:12,color:a.default.BitnationLinkOrangeColor,fontWeight:'bold',textAlign:'center'},arrowButtonIcon:{fontSize:14,color:a.default.BitnationLinkOrangeColor,alignSelf:'center'},disabledArrowButtonTitle:{fontSize:15,color:a.default.BitnationLightGrayColor,fontWeight:'bold',textAlign:'center'},baseButton:{borderRadius:15,height:30,justifyContent:'center'},actionButton:{borderRadius:0,height:50,justifyContent:'center',backgroundColor:a.default.BitnationActionColor},buttonContainer:{marginLeft:13,marginRight:13},arrowButtonContainer:{flexDirection:'row',justifyContent:'flex-start',marginLeft:0},buttonContainerMultiple:{flexDirection:'row',justifyContent:'space-between',marginLeft:13,marginRight:13},buttonPrevNext:{marginTop:13,width:90},buttonListContainer:{marginTop:10,marginBottom:40,borderWidth:0},avatarContainer:{flexDirection:'row',width:100,alignItems:'center'},avatarContainerLarge:{alignItems:'flex-start'},avatarChangeContainer:{alignItems:'center'},avatarSmall:{height:35,width:35,borderRadius:18,marginRight:10},avatarMedium:{height:50,width:50,borderRadius:25},avatarLarge:{height:100,width:100,borderRadius:50,margin:16},privateKeyGridViewContainer:{height:241,borderRadius:8,backgroundColor:a.default.shadeOf(a.default.BitnationDarkColor,.7),paddingTop:20,paddingBottom:3,paddingLeft:12,paddingRight:12},publicKeyText:{fontSize:13,color:a.default.black,textAlign:'center'},floatingButton:{backgroundColor:a.default.BitnationLinkOrangeColor},forgetButton:{backgroundColor:'transparent',alignSelf:'stretch',borderRadius:0},forgetButtonText:{color:'#58595B',fontSize:15,fontWeight:'bold'}});f.multilineTextInput=babelHelpers.extends({},f.textInput,{flex:0}),o.default=f},798); +__d(function(e,n,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fontSizeNormalizer=function(e){0;if(f===o.FOUR_INCHES)return.65*e;if(f===o.FOUR_DOT_SEVEN_INCHES)return e;if(f===o.FIVE_DOT_FIVE_INCHES)return 1.4*e;return e},t.normalWidthMargin=function(){return _/3/2},t.isiPhoneXStatusBar=function(e){0;return e},t.isiPhoneXTabBar=function(e){0;return e};var i=n(17),u=babelHelpers.interopRequireDefault(i),o=n(516),a=u.default.Dimensions,f=(u.default.Platform,a.get('window').height),_=a.get('window').width},799); +__d(function(o,t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var l=t(17),n=t(515),a=babelHelpers.interopRequireDefault(n),r={largeTitle:{fontFamily:'Roboto',fontWeight:'android'===l.Platform.OS?'500':'900',fontSize:27,lineHeight:30,letterSpacing:0,color:a.default.BitnationDarkGrayColor},title1:{fontFamily:'Roboto',fontWeight:'bold',fontSize:28,lineHeight:34,letterSpacing:0,color:a.default.BitnationVeryLightColor},title2:{fontFamily:'Roboto',fontWeight:'bold',fontSize:22,lineHeight:28,letterSpacing:0,color:a.default.BitnationVeryLightColor},title3:{fontFamily:'Roboto',fontWeight:'normal',fontSize:20,lineHeight:25,letterSpacing:0,color:a.default.BitnationVeryLightColor},headline:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:a.default.BitnationDarkGrayColor},body:{fontFamily:'Roboto',fontWeight:'normal',fontSize:17,lineHeight:22,letterSpacing:0,color:a.default.BitnationGrayColor},bodyBold:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:a.default.BitnationGrayColor},bodyBoldBlack:{fontFamily:'Roboto',fontWeight:'bold',fontSize:17,lineHeight:22,letterSpacing:0,color:a.default.textPrimary},bodyBoldBlackSmall:{fontFamily:'Roboto',fontWeight:'bold',fontSize:14,lineHeight:22,letterSpacing:0,color:a.default.textPrimary},bodyBlack:{fontFamily:'Roboto',fontWeight:'900',fontSize:17,lineHeight:22,letterSpacing:0,color:a.default.BitnationDarkGrayColor},callout:{fontFamily:'Roboto',fontWeight:'normal',fontSize:16,lineHeight:21,letterSpacing:0,color:a.default.BitnationLightColor},subhead:{fontFamily:'Roboto',fontWeight:'normal',fontSize:15,lineHeight:20,letterSpacing:0},footnote:{fontFamily:'Roboto',fontWeight:'normal',fontSize:13,lineHeight:18,letterSpacing:0,color:a.default.BitnationGrayColor},caption1:{fontFamily:'Roboto',fontWeight:'normal',fontSize:12,lineHeight:16,letterSpacing:0,color:a.default.BitnationLightColor},caption2:{fontFamily:'Roboto',fontWeight:'normal',fontSize:11,lineHeight:13,letterSpacing:0,color:a.default.BitnationLightColor},disabledText:{color:a.default.disabledTextColor}};i.default=r},800); +__d(function(e,t,a,i){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=a.props.navigator;return i&&i.setOnNavigatorEvent(a.onNavigatorEvent.bind(a)),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavigatorEvent",value:function(e){switch('NavBarButtonPress'===e.type&&'function'==typeof this.onNavBarButtonPress&&this.onNavBarButtonPress(e.id),e.id){case'willAppear':'function'==typeof this.onWillAppear&&this.onWillAppear();break;case'didAppear':'function'==typeof this.onDidAppear&&this.onDidAppear();break;case'willDisappear':'function'==typeof this.onWillDisappear&&this.onWillDisappear();break;case'didDisappear':'function'==typeof this.onDidDisappear&&this.onDidDisappear();break;case'bottomTabReselected':'function'==typeof this.onBottomTabReselected&&this.onBottomTabReselected()}}}]),t})(t(51).Component);i.default=o},801); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireWildcard(n),i=t(17),a=t(781),o=t(798),d=babelHelpers.interopRequireDefault(o),b=function(e){var t=e.style,l=e.children,r=e.onPress,n=e.enabled,o=e.styleTitle,b=e.title,u=babelHelpers.objectWithoutProperties(e,["style","children","onPress","enabled","styleTitle","title"]),c=a.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default));return s.createElement(i.View,babelHelpers.extends({style:[c.baseButton,t]},u),s.createElement(i.TouchableOpacity,{testID:"Touchable",disabled:!n,style:[c.buttonContainer],onPress:r},l||s.createElement(i.Text,{style:[c.buttonTitle,o,!1===n&&c.disabledButtonTitle]},b)))};b.defaultProps={style:void 0,children:void 0,enabled:!0,onPress:function(){return null},title:''},r.default=b},802); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(781),l=t(798),i=babelHelpers.interopRequireDefault(l),a=r.MediaQueryStyleSheet.create(babelHelpers.extends({},i.default,{bottomSpacer:{width:'100%',flex:1,flexDirection:'column',justifyContent:'center',alignItems:'center'},navButtons:{alignSelf:'flex-end'},WHITE:{alignSelf:'flex-end'},inlineFieldContainer:{flexDirection:'row',alignItems:'center'},bodyAccountContainer:{flex:1,flexDirection:'column',justifyContent:'flex-start',alignContent:'flex-start',paddingHorizontal:20},lengthSlider:{width:'50%'},networkDropdownButton:{flex:1,marginBottom:20},networkDropdownList:{flex:1,marginTop:10},mt30:{marginTop:30},accountTitle:{marginTop:40,marginBottom:19,backgroundColor:'white',paddingHorizontal:28,color:'#58595B',paddingVertical:3,alignSelf:'flex-start'},accountIntroText:{flex:1},restoreButton:{backgroundColor:'transparent',alignSelf:'stretch',borderRadius:0},restoreButtonText:{color:'#58595B',fontSize:15,fontWeight:'bold'},newAccountText:{color:'#FF8B00',fontSize:15,fontWeight:'900'},createButton:{height:54,backgroundColor:'white',alignSelf:'stretch',borderRadius:0},warningPanelChildrenContainerStyle:babelHelpers.extends({},i.default.noflex,{marginBottom:-15})}));o.default=a},803); +__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var r=t(51),i=babelHelpers.interopRequireWildcard(r),a=t(17),o=t(781),s=t(366),d=babelHelpers.interopRequireDefault(s),u=t(798),c=babelHelpers.interopRequireDefault(u),p=t(802),y=babelHelpers.interopRequireDefault(p),b=o.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default)),m=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderHeader",value:function(){var e=this.props,t=e.title,l=e.icon,n=e.titleStyle;return i.createElement(a.View,{style:b.panelTitleRowContainer},t&&i.createElement(a.View,{style:b.panelTitleContainer},i.createElement(a.Text,{style:n},t)),l&&i.createElement(a.View,{style:b.panelTitleIcon},i.createElement(a.Text,{style:b.panelIcon},l)))}},{key:"render",value:function(){var e=this.props,t=e.style,l=e.childrenContainerStyle,n=e.renderBottom,r=e.renderAdditionalInfo,o=e.children,s=e.title,u=e.icon,c=e.body,p=e.buttonTitle,m=e.onButtonClick;return i.createElement(a.View,{style:t},(!d.default.isEmpty(s)||!d.default.isEmpty(u))&&this.renderHeader(),i.createElement(a.View,{style:[b.panelChildrenContainer,l]},o),c&&i.createElement(a.View,{style:b.panelBodyContainer},i.createElement(a.Text,{style:b.body},c)),i.createElement(a.View,{style:b.messageAdditionalInfoContainer},r&&r()),m&&i.createElement(y.default,{style:b.panelButton,title:p,onPress:m}),i.createElement(a.View,{style:b.messageBottomContainer},n&&n()))}}]),t})(i.Component);n.default=m,m.defaultProps={style:b.panelView,titleStyle:b.panelViewTitle,children:null,childrenContainerStyle:{},renderBottom:null,buttonTitle:'Button',onButtonClick:null,renderAdditionalInfo:null,body:void 0,icon:void 0,title:void 0}},804); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),u=t(297),s=t(17),o=t(665),c=babelHelpers.interopRequireDefault(o),i=t(627),f=t(780),d=babelHelpers.interopRequireDefault(f),p=t(797),b=babelHelpers.interopRequireDefault(p),y=t(806),m=babelHelpers.interopRequireDefault(y),E=t(802),v=babelHelpers.interopRequireDefault(E),h=t(807),C=babelHelpers.interopRequireDefault(h),g=t(803),w=babelHelpers.interopRequireDefault(g);t(365);var H=t(508),R=(function(e){function t(){var e,l,a,n;babelHelpers.classCallCheck(this,t);for(var r=arguments.length,u=Array(r),s=0;s1?null:t}var s={}},829); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t=babelHelpers.extends({},a.StyleSheet.flatten(e));t.transform&&(t.transform.forEach(function(e){var r=Object.keys(e)[0];t[r]=e[r]}),delete t.transform);return t};var a=t(17)},830); +__d(function(e,i,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.registerAnimation=a,t.getAnimationByName=function(e){return u[e]},t.getAnimationNames=function(){return Object.keys(u)},t.initializeRegistryWithDefinitions=function(e){Object.keys(e).forEach(function(i){a(i,(0,r.default)(e[i]))})};var o=i(829),r=babelHelpers.interopRequireDefault(o),u={};function a(e,i){u[e]=i}},831); +__d(function(t,e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e,n,i,o=t.displayName||t.name||'Component',l=u.Animated.createAnimatedComponent(t);return n=e=(function(t){function e(t){babelHelpers.classCallCheck(this,e);var n=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));i.call(n);var a=new u.Animated.Value(k(0,n.props.direction)),r={},o={};return t.animation&&(o=O(t.animation),r=S(o,a)),n.state={animationValue:a,animationStyle:r,compiledAnimation:o,transitionStyle:{},transitionValues:{},currentTransitionValues:{}},t.transition&&(n.state=babelHelpers.extends({},n.state,n.initializeTransitionState(t.transition))),n.delayTimer=null,(0,h.getAnimationNames)().forEach(function(t){t in n||(n[t]=n.animate.bind(n,t))}),n}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"initializeTransitionState",value:function(t){var e={},n={},i=(0,c.default)(t,this.props.style);return Object.keys(i).forEach(function(t){var a=i[t];if(-1!==g.indexOf(t))e[t]=new u.Animated.Value(0),n[t]=a;else{var r=new u.Animated.Value(a);e[t]=r,n[t]=r}}),{currentTransitionValues:i,transitionStyle:n,transitionValues:e}}},{key:"getTransitionState",value:function(t){var e=this,n='string'==typeof t?[t]:t,i=this.state,a=i.transitionValues,r=i.currentTransitionValues,o=i.transitionStyle,s=n.filter(function(t){return!e.state.transitionValues[t]});if(s.length){var u=this.initializeTransitionState(s);a=babelHelpers.extends({},a,u.transitionValues),r=babelHelpers.extends({},r,u.currentTransitionValues),o=babelHelpers.extends({},o,u.transitionStyle)}return{transitionValues:a,currentTransitionValues:r,transitionStyle:o}}},{key:"setNativeProps",value:function(t){this.ref&&this.ref.setNativeProps(t)}},{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.animation,i=e.duration,a=e.delay,r=e.onAnimationBegin,o=e.iterationDelay;if(n){var s=function(){r(),t.startAnimation(i,0,o,function(e){return t.props.onAnimationEnd(e)}),t.delayTimer=null};a?this.delayTimer=setTimeout(s,a):s()}}},{key:"componentWillReceiveProps",value:function(t){var e,n,i=this,a=t.animation,r=t.delay,o=t.duration,s=t.easing,u=t.transition,l=t.onAnimationBegin;if(u){var f=(0,c.default)(u,t.style);this.transitionTo(f,o,s,r)}else e=a,n=this.props.animation,e!==n&&JSON.stringify(e)!==JSON.stringify(n)&&(a?this.delayTimer?this.setAnimation(a):(l(),this.animate(a,o).then(function(t){return i.props.onAnimationEnd(t)})):this.stopAnimation())}},{key:"componentWillUnmount",value:function(){this.delayTimer&&clearTimeout(this.delayTimer)}},{key:"setAnimation",value:function(t,e){var n=O(t),i=S(n,this.state.animationValue);this.setState({animationStyle:i,compiledAnimation:n},e)}},{key:"animate",value:function(t,e,n){var i=this;return new Promise(function(a){i.setAnimation(t,function(){i.startAnimation(e,0,n,a)})})}},{key:"stopAnimation",value:function(){this.setState({scheduledAnimation:!1,animationStyle:{}}),this.state.animationValue.stopAnimation(),this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"startAnimation",value:function(t,e,n,i){var a=this,r=this.state,o=r.animationValue,s=r.compiledAnimation,l=this.props,f=l.direction,d=l.iterationCount,c=l.useNativeDriver,p=this.props.easing||s.easing||'ease',m=e||0,y=k(m,f),v=V(m,f);o.setValue(y),'string'==typeof p&&(p=T.default[p]);var h='reverse'===f||'alternate'===f&&!v||'alternate-reverse'===f&&!v;h&&(p=u.Easing.out(p));var b={toValue:v,easing:p,isInteraction:d<=1,duration:t||this.props.duration||1e3,useNativeDriver:c,delay:n||0};u.Animated.timing(o,b).start(function(e){m+=1,e.finished&&a.props.animation&&('infinite'===d||m=1?null:new Error('iterationCount must be a positive number or "infinite"')},iterationDelay:s.default.number,onAnimationBegin:s.default.func,onAnimationEnd:s.default.func,onTransitionBegin:s.default.func,onTransitionEnd:s.default.func,style:s.default.oneOfType([s.default.number,s.default.array,s.default.object]),transition:s.default.oneOfType([s.default.string,s.default.arrayOf(s.default.string)]),useNativeDriver:s.default.bool},e.defaultProps={animation:void 0,delay:0,direction:'normal',duration:void 0,easing:void 0,iterationCount:1,iterationDelay:0,onAnimationBegin:function(){},onAnimationEnd:function(){},onTransitionBegin:function(){},onTransitionEnd:function(){},style:void 0,transition:void 0,useNativeDriver:!1},i=function(){var t=this;this.ref=null,this.handleRef=function(e){t.ref=e}},n};var a=e(51),r=babelHelpers.interopRequireDefault(a),o=e(105),s=babelHelpers.interopRequireDefault(o),u=e(17),l=e(833),f=babelHelpers.interopRequireDefault(l),d=e(834),c=babelHelpers.interopRequireDefault(d),p=e(830),m=babelHelpers.interopRequireDefault(p),y=e(829),v=babelHelpers.interopRequireDefault(y),h=e(831),b=e(836),T=babelHelpers.interopRequireDefault(b),g=['rotate','rotateX','rotateY','rotateZ','skewX','skewY','transformMatrix','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','shadowColor','color','textDecorationColor','tintColor'],A=['width','height'];function V(t,e){switch(e){case'reverse':return 0;case'alternate':return t%2?0:1;case'alternate-reverse':return t%2?1:0;case'normal':default:return 1}}function k(t,e){return V(t,e)?0:1}function O(t){if('string'==typeof t){var e=(0,h.getAnimationByName)(t);if(!e)throw new Error("No animation registred by the name of "+t);return e}return(0,v.default)(t)}function S(t,e){var n={};return Object.keys(t).forEach(function(i){'style'===i?babelHelpers.extends(n,t.style):'easing'!==i&&(n[i]=e.interpolate(t[i]))}),(0,f.default)(n)}function C(t,e,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments[6],s=arguments[7],l=arguments[8],f=i||a||o?u.Animated.timing(e,{toValue:n,delay:o,duration:i||1e3,easing:'function'==typeof a?a:T.default[a||'ease'],useNativeDriver:r}):u.Animated.spring(e,{toValue:n,useNativeDriver:r});setTimeout(function(){return s(t)},o),f.start(function(){return l(t)})}},832); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var t={};return Object.keys(e).forEach(function(r){-1!==n.indexOf(r)?(t.transform||(t.transform=[]),t.transform.push(babelHelpers.defineProperty({},r,e[r]))):t[r]=e[r]}),t};var n=['perspective','rotate','rotateX','rotateY','rotateZ','scale','scaleX','scaleY','skewX','skewY','translateX','translateY']},833); +__d(function(e,t,r,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(e,t){var r={},u=(0,a.default)(t);return('string'==typeof e?[e]:e).forEach(function(e){r[e]=e in u?u[e]:(0,l.default)(e,u)}),r};var n=t(830),a=babelHelpers.interopRequireDefault(n),f=t(835),l=babelHelpers.interopRequireDefault(f)},834); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,r){if('backgroundColor'===e)return'rgba(0,0,0,0)';if('color'===e||-1!==e.indexOf('Color'))return'rgba(0,0,0,1)';if(0===e.indexOf('rotate')||0===e.indexOf('skew'))return'0deg';if('opacity'===e||0===e.indexOf('scale'))return 1;if('fontSize'===e)return 14;if(0===e.indexOf('margin')||0===e.indexOf('padding'))for(var t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(a){var s=(function(e){return e.displayName||e.name||"Component"})(a);y.isPlainObject(t)||v("Component style must be plain object",s),y.isString(e)||v("Component Style Name must be string",s);var i=(function(s){function o(e,t){babelHelpers.classCallCheck(this,o);var n=babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t)),r=n.getStyleNames(e),a=e.style,l=n.getFinalStyle(e,t,a,r);return n.setWrappedInstance=n.setWrappedInstance.bind(n),n.resolveConnectedComponentStyle=n.resolveConnectedComponentStyle.bind(n),n.state={style:l,addedProps:n.resolveAddedProps(),styleNames:r},n}return babelHelpers.inherits(o,s),babelHelpers.createClass(o,[{key:"getFinalStyle",value:function(t,n,r,a){var l={};n.parentPath?l=this.getOrSetStylesInCache(n,t,a,[].concat(babelHelpers.toConsumableArray(n.parentPath),[e],babelHelpers.toConsumableArray(a))):(l=this.resolveStyle(n,t,a),b[e]=l);var s=(function(e){return y.pickBy(e,function(e,t){return!/^\./.test(t)&&!(function(e){return/(^[^\.].*\.)|^\*$/.test(e)})(t)})})(y.merge({},l));return y.isArray(r)?[s].concat(babelHelpers.toConsumableArray(r)):"number"==typeof r||"object"==typeof r?[s,r]:s}},{key:"getStyleNames",value:function(e){var t=y.map(e,function(e,t){return"object"!=typeof e&&!0===e&&"."+t});return y.remove(t,function(e,t){return!1===e}),t}},{key:"getParentPath",value:function(){return this.context.parentPath?[].concat(babelHelpers.toConsumableArray(this.context.parentPath),[e],babelHelpers.toConsumableArray(this.getStyleNames(this.props))):[e]}},{key:"getChildContext",value:function(){return{parentPath:this.getParentPath()}}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.getStyleNames(e),r=e.style;if(this.shouldRebuildStyle(e,t,n)){var a=this.getFinalStyle(e,t,r,n);this.setState({style:a,styleNames:n})}}},{key:"setNativeProps",value:function(e){this.wrappedInstance.setNativeProps&&this.wrappedInstance.setNativeProps(e)}},{key:"setWrappedInstance",value:function(e){e&&e._root?this._root=e._root:this._root=e,this.wrappedInstance=this._root}},{key:"hasStyleNameChanged",value:function(e,t){return n&&this.props!==e&&!y.isEqual(this.state.styleNames,t)}},{key:"shouldRebuildStyle",value:function(e,t,n){return e.style!==this.props.style||e.styleName!==this.props.styleName||t.theme!==this.context.theme||!y.isEqual(t.parentPath,this.context.parentPath)||this.hasStyleNameChanged(e,n)}},{key:"resolveStyleNames",value:function(e){var t=e.styleName,r=t?t.split(/\s/g):[];return n?y.uniq(n(r,e)):r}},{key:"resolveAddedProps",value:function(){var e={};return r.withRef&&(e.ref="wrappedInstance"),e}},{key:"getOrSetStylesInCache",value:function(e,t,n,r){if(b&&b[r.join(">")])return b[r.join(">")];var a=this.resolveStyle(e,t,n);return Object.keys(b).length<1e4&&(b[r.join(">")]=a),a}},{key:"resolveStyle",value:function(n,r,a){var l={},s=(function(e){return e.theme||d.default.getDefaultTheme()})(n).createComponentStyle(e,t);return l=n.parentPath?b[n.parentPath.join(">")]:(0,f.resolveComponentStyle)(e,a,s,l),(0,f.resolveComponentStyle)(e,a,s,l)}},{key:"resolveConnectedComponentStyle",value:function(e){var t=this.resolveStyleNames(e);return this.resolveStyle(this.context,e,t).componentStyle}},{key:"render",value:function(){var e=this.state,t=e.addedProps,n=e.style;return l.default.createElement(a,babelHelpers.extends({},this.props,t,{style:n,ref:this.setWrappedInstance}))}}]),o})(l.default.Component);return i.contextTypes={theme:h.ThemeShape,parentPath:o.default.array},i.childContextTypes={parentPath:o.default.array},i.propTypes={style:o.default.oneOfType([o.default.object,o.default.number,o.default.array]),styleName:o.default.string,virtual:o.default.bool},i.defaultProps={virtual:r.virtual},i.displayName="Styled("+s+")",i.WrappedComponent=a,(0,u.default)(i,a)}}},853); +__d(function(t,e,r,o){'use strict';var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},s='function'==typeof Object.getOwnPropertySymbols;r.exports=function(t,e,r){if('string'!=typeof e){var o=Object.getOwnPropertyNames(e);s&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var y=0;y2&&void 0!==arguments[2]?arguments[2]:'';r.forEach(function(r){var t=e+r.type+i;if(a.normalizerExists(t))throw Error("Normalizer for '"+t+"' shorthand already exists");a.normalizers[t]=l.default.createNormalizer(e,r,i)})}},{key:"normalizerExists",value:function(e){return!!this.normalizers[e]}},{key:"canNormalize",value:function(e){return this.normalizerExists(e)}},{key:"normalize",value:function(e,r){return this.normalizers[e](r)}}]),e})();i.default=n},856); +__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.BOTTOM_LEFT=l.TOP_LEFT=l.BOTTOM_RIGHT=l.TOP_RIGHT=l.BOTTOM=l.TOP=l.RIGHT=l.LEFT=l.VERTICAL=l.HORIZONTAL=l.CORNERS=l.SIDES=void 0;var a=r(366),i=babelHelpers.interopRequireDefault(a),n=function(e,r){return{name:e,type:i.default.isUndefined(r)?e:r}},o=l.SIDES=n('Sides',''),s=l.CORNERS=n('Corners',''),p=l.HORIZONTAL=n('Horizontal'),b=l.VERTICAL=n('Vertical'),f=l.LEFT='Left',u=l.RIGHT='Right',T=l.TOP='Top',d=l.BOTTOM='Bottom',c=l.TOP_RIGHT='TopRight',H=l.BOTTOM_RIGHT='BottomRight',O=l.TOP_LEFT='TopLeft',y=l.BOTTOM_LEFT='BottomLeft',P=(function(){function e(){var r;babelHelpers.classCallCheck(this,e),this.createNormalizersMap=(r={},babelHelpers.defineProperty(r,o.name,this.createAllSidesNormalizer),babelHelpers.defineProperty(r,s.name,this.createAllCornersNormalizer),babelHelpers.defineProperty(r,p.name,this.createHorizontalSidesNormalizer),babelHelpers.defineProperty(r,b.name,this.createVerticalSidesNormalizer),r)}return babelHelpers.createClass(e,[{key:"createAllSidesNormalizer",value:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return function(r){var l;return l={},babelHelpers.defineProperty(l,e+f+t,r),babelHelpers.defineProperty(l,e+u+t,r),babelHelpers.defineProperty(l,e+T+t,r),babelHelpers.defineProperty(l,e+d+t,r),l}}},{key:"createAllCornersNormalizer",value:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return function(r){var l;return l={},babelHelpers.defineProperty(l,e+y+t,r),babelHelpers.defineProperty(l,e+H+t,r),babelHelpers.defineProperty(l,e+O+t,r),babelHelpers.defineProperty(l,e+c+t,r),l}}},{key:"createHorizontalSidesNormalizer",value:function(e){return function(r){var t;return t={},babelHelpers.defineProperty(t,e+f,r),babelHelpers.defineProperty(t,e+u,r),t}}},{key:"createVerticalSidesNormalizer",value:function(e){return function(r){var t;return t={},babelHelpers.defineProperty(t,e+T,r),babelHelpers.defineProperty(t,e+d,r),t}}},{key:"getNormalizerCreator",value:function(e){return this.createNormalizersMap[e.name]}},{key:"createNormalizer",value:function(e,r,t){return this.getNormalizerCreator(r)(e,r,t)}}]),e})();l.default=new P},857); +__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0}),u.ThemeShape=void 0;var r=t(105),a=t(859),n=babelHelpers.interopRequireDefault(a),i=t(860),s=babelHelpers.interopRequireDefault(i),h=t(855),o=babelHelpers.interopRequireDefault(h),f="@@shoutem.theme/themeStyle",p="@@shoutem.theme/themeCachedStyle",c=void 0,m=function(e,t){return(0,o.default)((0,n.default)(e,t))},b=(function(){function e(t){babelHelpers.classCallCheck(this,e),this[f]=m(t),this[p]={}}return babelHelpers.createClass(e,[{key:"createComponentStyle",value:function(e,t){if(this[p][e])return this[p][e];var l=m(t,this[f]);return this[p][e]=(0,s.default)(l,this[f][e],this[f]),this[p][e]}}],[{key:"setDefaultThemeStyle",value:function(t){c=new e(t)}},{key:"getDefaultTheme",value:function(){return c||(c=new e({})),c}}]),e})();u.default=b;u.ThemeShape=r.PropTypes.shape({createComponentStyle:r.PropTypes.func.isRequired})},858); +__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.INCLUDE=void 0,t.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(n){var t={},i=t,a=r[n];if(a){if(a[l])throw Error("Base style cannot have includes, unexpected include in "+n+".");i=babelHelpers.extends({},a)}var o=e[n];return o&&(i=babelHelpers.extends({},i,o)),i===t&&console.warn("Including unexisting style: "+n),i}var t=new Set;return(function e(r,t){if(!a.isPlainObject(r))return r;var i=r[l];var u={};if(i){if(!a.isArray(i))throw Error('Include should be array');for(var s=i,d=Array.isArray(s),f=0,s=d?s:s["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var c;if(d){if(f>=s.length)break;c=s[f++]}else{if((f=s.next()).done)break;c=f.value}var b=c;if(t.has(b))throw Error("Circular style include, including "+b);t.add(b),u=a.mergeWith({},u,e(n(b),t),o),t.delete(b)}}var v=a.mergeWith({},u,r,o);delete v[l];for(var y=a.keys(v),h=Array.isArray(y),m=0,y=h?y:y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var p;if(h){if(m>=y.length)break;p=y[m++]}else{if((m=y.next()).done)break;p=m.value}var g=p;v[g]=e(v[g],t)}return v})(e,t)};var i=r(366),a=babelHelpers.interopRequireWildcard(i),l=t.INCLUDE='@@shoutem.theme/include';function o(e,r){var n=e,t=void 0;if(r&&r[l]&&(t=n&&n[l]?[].concat(babelHelpers.toConsumableArray(n[l]),babelHelpers.toConsumableArray(r[l])):r[l]),a.isUndefined(n)&&a.isPlainObject(r)){var i=a.mergeWith({},r,function(e,r){return r});return t&&(i[l]=t),i}a.isPlainObject(n)&&t&&(n[l]=t)}},859); +__d(function(e,r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,r,i){var n=u.merge({},e,r),t=u.pick(i,u.keys(n));return u.merge({},t,n)};var t=r(366),u=babelHelpers.interopRequireWildcard(t)},860); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.resolveComponentStyle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=(arguments[4],(0,u.default)(n,o[e]));t.forEach(function(e,t){f=(0,u.default)(f,n[""+e])}),t.forEach(function(t,n){f=(0,u.default)(f,o[""+e+t])});var l=(0,u.default)(f,o[e]);return t.forEach(function(e,t){l=(0,u.default)(l,f[""+e])}),t.forEach(function(t,n){l=(0,u.default)(l,o[""+e+t])}),l};var f=t(366),l=(babelHelpers.interopRequireDefault(f),t(862)),u=babelHelpers.interopRequireDefault(l)},861); +__d(function(e,o,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(o,r){var t={};var i=void 0,f=void 0;if(!o)return r;if(!r)return o;for(i in o)for(f in r)i===f?"object"==typeof o[i]&&"object"==typeof r[i]&&r[i]&&o[i]?t[i]=e(o[i],r[i]):t[i]=r[i]:(void 0===t[i]&&(t[i]=o[i]),void 0===t[f]&&(t[f]=r[f]));return t}},862); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var s=t(51),n=babelHelpers.interopRequireDefault(s),a=t(105),i=babelHelpers.interopRequireDefault(a),u=t(858),o=babelHelpers.interopRequireDefault(u),p=t(855),h=(babelHelpers.interopRequireDefault(p),(function(e){function t(e,l){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,l));return r.state={theme:r.createTheme(e)},r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){return{theme:this.state.theme}}},{key:"componentWillReceiveProps",value:function(e){e.style!==this.props.style&&this.setState({theme:this.createTheme(e)})}},{key:"createTheme",value:function(e){return new o.default(e.style)}},{key:"render",value:function(){var e=this.props.children;return s.Children.only(e)}}]),t})(n.default.Component));h.propTypes={children:i.default.element.isRequired,style:i.default.object},h.defaultProps={style:{}},h.childContextTypes={theme:u.ThemeShape.isRequired},r.default=h},863); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createVariations=function(e,r,t,n){return a.default.reduce(r,function(r,u){var a=u?e+"-"+u:e,i=u?""+t+(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})(u):t;return r[a]=babelHelpers.defineProperty({},i,n),r},{})},n.createSharedStyle=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.default.reduce(e,function(e,n){return e[n]=babelHelpers.extends({},r,t[n]),e},{})};var u=r(366),a=babelHelpers.interopRequireDefault(u)},864); +__d(function(e,l,r,t){'use strict';Object.defineProperty(t,"__esModule",{value:!0}),t.Col=t.Grid=t.Row=void 0;var u=l(866),i=babelHelpers.interopRequireDefault(u),a=l(868),o=babelHelpers.interopRequireDefault(a),d=l(869),f=babelHelpers.interopRequireDefault(d);t.Row=i.default,t.Grid=o.default,t.Col=f.default},865); +__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=t(51),p=babelHelpers.interopRequireDefault(o),i=t(17),l=t(867),n=babelHelpers.interopRequireDefault(l),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"prepareRootProps",value:function(){var e={style:{flexDirection:'row',flex:this.props.size?this.props.size:this.props.style&&this.props.style.height?0:1}};return(0,n.default)(this.props,e)}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?p.default.createElement(i.TouchableOpacity,babelHelpers.extends({onPress:this.props.onPress},this.prepareRootProps()),p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)):p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)}}]),t})(o.Component);s.default=a},866); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),f=(babelHelpers.interopRequireDefault(a),t(17)),u=t(366),n=babelHelpers.interopRequireDefault(u);r.default=function(e,t){var l={};delete(e=n.default.clone(e)).children;var r=e.style;if(delete e.style,e?n.default.merge(l,t,e):l=t,r){var a={};l.style={},Array.isArray(r)?n.default.forEach(r,function(e){"number"==typeof e?n.default.merge(a,f.StyleSheet.flatten(e)):n.default.merge(a,e)}):a="number"==typeof r?f.StyleSheet.flatten(r):r,n.default.merge(l.style,t.style,a)}return l}},867); +__d(function(e,r,t,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=r(51),l=babelHelpers.interopRequireDefault(o),i=r(17),n=r(867),p=babelHelpers.interopRequireDefault(n),a=r(869),u=(babelHelpers.interopRequireDefault(a),r(866)),f=babelHelpers.interopRequireDefault(u),c=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"prepareRootProps",value:function(){var e={style:{flex:1,flexDirection:this.ifRow()?'column':'row'}};return(0,p.default)(this.props,e)}},{key:"ifRow",value:function(){var e=!1;return l.default.Children.forEach(this.props.children,function(r){r&&r.type==f.default&&(e=!0)}),e}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?l.default.createElement(i.TouchableOpacity,{onPress:this.props.onPress},l.default.createElement(i.View,babelHelpers.extends({ref:function(r){return e._root=r}},this.props,this.prepareRootProps()),this.props.children)):l.default.createElement(i.View,babelHelpers.extends({ref:function(r){return e._root=r}},this.props,this.prepareRootProps()),this.props.children)}}]),r})(o.Component);s.default=c},868); +__d(function(e,t,r,s){'use strict';Object.defineProperty(s,"__esModule",{value:!0});var o=t(51),p=babelHelpers.interopRequireDefault(o),i=t(17),l=t(867),n=babelHelpers.interopRequireDefault(l),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"prepareRootProps",value:function(){var e={style:{flexDirection:'column',flex:this.props.size?this.props.size:this.props.style&&this.props.style.width?0:1}};return(0,n.default)(this.props,e)}},{key:"setNativeProps",value:function(e){this._root.setNativeProps(e)}},{key:"render",value:function(){var e=this;return this.props.onPress?p.default.createElement(i.TouchableOpacity,babelHelpers.extends({onPress:this.props.onPress},this.prepareRootProps()),p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)):p.default.createElement(i.View,babelHelpers.extends({ref:function(t){return e._root=t}},this.props,this.prepareRootProps()),this.props.children)}}]),t})(o.Component);s.default=a},869); +__d(function(e,t,u,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(){var e=(0,_.default)();d.Theme.setDefaultThemeStyle(e)};var a,d=t(852),f=t(871),_=(a=f)&&a.__esModule?a:{default:a}},870); +__d(function(e,a,t,i){Object.defineProperty(i,"__esModule",{value:!0});var u=Object.assign||function(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:U.default,a={variables:e,"NativeBase.Left":u({},(0,d.default)(e)),"NativeBase.Right":u({},(0,s.default)(e)),"NativeBase.Body":u({},(0,l.default)(e)),"NativeBase.Header":u({},(0,B.default)(e)),"NativeBase.Button":u({},(0,r.default)(e)),"NativeBase.Title":u({},(0,c.default)(e)),"NativeBase.Subtitle":u({},(0,b.default)(e)),"NativeBase.InputGroup":u({},(0,T.default)(e)),"NativeBase.Input":u({},(0,E.default)(e)),"NativeBase.Badge":u({},(0,p.default)(e)),"NativeBase.CheckBox":u({},(0,h.default)(e)),"NativeBase.Radio":u({},(0,I.default)(e)),"NativeBase.Card":u({},(0,m.default)()),"NativeBase.CardItem":u({},(0,A.default)(e)),"NativeBase.Toast":u({},(0,F.default)(e)),"NativeBase.H1":u({},(0,C.default)(e)),"NativeBase.H2":u({},(0,x.default)(e)),"NativeBase.H3":u({},(0,g.default)(e)),"NativeBase.Form":u({},(0,J.default)(e)),"NativeBase.Container":u({},(0,n.default)(e)),"NativeBase.Content":u({},(0,o.default)(e)),"NativeBase.Footer":u({},(0,O.default)(e)),"NativeBase.Tabs":{flex:1},"NativeBase.FooterTab":u({},(0,S.default)(e)),"NativeBase.ListItem":u({},(0,D.default)(e)),"NativeBase.ListItem1":u({},(0,D.default)(e)),"NativeBase.Icon":u({},(0,V.default)(e)),"NativeBase.IconNB":u({},(0,V.default)(e)),"NativeBase.Text":u({},(0,j.default)(e)),"NativeBase.Spinner":u({},(0,z.default)(e)),"NativeBase.Fab":u({},(0,_.default)(e)),"NativeBase.Item":u({},(0,w.default)(e)),"NativeBase.Label":u({},(0,y.default)(e)),"NativeBase.Textarea":u({},(0,H.default)(e)),"NativeBase.PickerNB":u({},(0,Q.default)(e),{"NativeBase.Button":{"NativeBase.Text":{}}}),"NativeBase.Tab":u({},(0,L.default)(e)),"NativeBase.Segment":u({},(0,q.default)(e)),"NativeBase.TabBar":u({},(0,P.default)(e)),"NativeBase.ViewNB":u({},(0,k.default)(e)),"NativeBase.TabHeading":u({},(0,M.default)(e)),"NativeBase.TabContainer":u({},(0,R.default)(e)),"NativeBase.Switch":u({},(0,v.default)(e)),"NativeBase.Separator":u({},(0,K.default)(e)),"NativeBase.SwipeRow":u({},(0,G.default)(e)),"NativeBase.Thumbnail":u({},(0,N.default)(e))};return(function e(a,t,i){f.default.forEach(t,function(u,f){0===f.indexOf(".")&&i&&0===i.indexOf(".")&&a&&(a[f]?a[f][i]=u:a[f]={}),u&&"object"==typeof u&&"fontVariant"!==f&&"transform"!==f&&e(t,u,f)})})(null,a,null),a}},871); +__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var u,d=t(873),f=(u=d)&&u.__esModule?u:{default:u};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{flex:1,alignItems:'center',alignSelf:'center'}}},872); +__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var i,n=o(874),a=(i=n)&&i.__esModule?i:{default:i},s=o(17);var f=s.Dimensions.get("window").height,l=s.Dimensions.get("window").width,d=s.Platform.OS,g="ios"===d&&(812===f||812===l);r.default={platformStyle:void 0,platform:d,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:!0,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:!0,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:"ios"===d?3:0,btnFontFamily:"ios"===d?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary},get btnPrimaryColor(){return this.inverseTextColor},get btnInfoBg(){return this.brandInfo},get btnInfoColor(){return this.inverseTextColor},get btnSuccessBg(){return this.brandSuccess},get btnSuccessColor(){return this.inverseTextColor},get btnDangerBg(){return this.brandDanger},get btnDangerColor(){return this.inverseTextColor},get btnWarningBg(){return this.brandWarning},get btnWarningColor(){return this.inverseTextColor},get btnTextSize(){return"ios"===d?1.1*this.fontSizeBase:this.fontSizeBase-1},get btnTextSizeLarge(){return 1.5*this.fontSizeBase},get btnTextSizeSmall(){return.8*this.fontSizeBase},get borderRadiusLarge(){return 3.8*this.fontSizeBase},get iconSizeLarge(){return 1.5*this.iconFontSize},get iconSizeSmall(){return.6*this.iconFontSize},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:"ios"===d?10:12,CheckboxRadius:"ios"===d?13:0,CheckboxBorderWidth:"ios"===d?1:2,CheckboxPaddingLeft:"ios"===d?4:2,CheckboxPaddingBottom:"ios"===d?0:5,CheckboxIconSize:"ios"===d?21:16,CheckboxIconMarginTop:"ios"===d?void 0:1,CheckboxFontSize:"ios"===d?25.555555555555554:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:"ios"===d?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",containerBgColor:"#fff",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:"ios"===d?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return 1.8*this.fontSizeBase},get fontSizeH2(){return 1.6*this.fontSizeBase},get fontSizeH3(){return 1.4*this.fontSizeBase},footerHeight:55,footerDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:"ios"===d?"#6b6b6b":"#b3c7f9",tabBarTextSize:"ios"===d?14:11,activeTab:"ios"===d?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:"ios"===d?"#007aff":"#fff",tabActiveBgColor:"ios"===d?"#cde1f9":"#3F51B5",toolbarBtnColor:"ios"===d?"#007aff":"#fff",toolbarDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",toolbarHeight:"ios"===d?64:56,toolbarSearchIconSize:"ios"===d?20:23,toolbarInputColor:"ios"===d?"#CECDD2":"#fff",searchBarHeight:"ios"===d?30:40,searchBarInputHeight:"ios"===d?30:50,toolbarBtnTextColor:"ios"===d?"#007aff":"#fff",toolbarDefaultBorder:"ios"===d?"#a7a6ab":"#3F51B5",iosStatusbar:"ios"===d?"dark-content":"light-content",get statusBarColor(){return(0,a.default)(this.toolbarDefaultBg).darken(.2).hex()},get darkenHeader(){return(0,a.default)(this.tabBgColor).darken(.03).hex()},iconFamily:"Ionicons",iconFontSize:"ios"===d?30:28,iconHeaderSize:"ios"===d?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor},get inputColorPlaceholder(){return"#575757"},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:"ios"===d?20:24,listItemSelected:"ios"===d?"#007aff":"#3F51B5",listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:"ios"===d?10:12,listNoteColor:"#808080",listNoteSize:13,defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:"ios"===d?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:"ios"===d?29:24,get radioColor(){return this.brandPrimary},segmentBackgroundColor:"ios"===d?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:"ios"===d?"#007aff":"#fff",segmentTextColor:"ios"===d?"#007aff":"#fff",segmentActiveTextColor:"ios"===d?"#fff":"#3F51B5",segmentBorderColor:"ios"===d?"#007aff":"#fff",segmentBorderColorMain:"ios"===d?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:"ios"===d?"#F8F8F8":"#3F51B5",topTabBarTextColor:"ios"===d?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:"ios"===d?"#007aff":"#fff",topTabBarBorderColor:"ios"===d?"#a7a6ab":"#fff",topTabBarActiveBorderColor:"ios"===d?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor},titleFontfamily:"ios"===d?"System":"Roboto_medium",titleFontSize:"ios"===d?17:19,subTitleFontSize:"ios"===d?11:14,subtitleColor:"ios"===d?"#8e8e93":"#FFF",titleFontColor:"ios"===d?"#000":"#FFF",borderRadiusBase:"ios"===d?5:2,borderWidth:1/s.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:l,deviceHeight:f,isIphoneX:g,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}},873); +__d(function(r,t,o,n){'use strict';var e=t(875),a=t(879),i=[].slice,h=['keyword','gray','hex'],l={};Object.keys(a).forEach(function(r){l[i.call(a[r].labels).sort().join('')]=r});var s={};function c(r,t){if(!(this instanceof c))return new c(r,t);if(t&&t in h&&(t=null),t&&!(t in a))throw new Error('Unknown model: '+t);var o,n;if(r)if(r instanceof c)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if('string'==typeof r){var u=e.get(r);if(null===u)throw new Error('Unable to parse color from string: '+r);this.model=u.model,n=a[this.model].channels,this.color=u.value.slice(0,n),this.valpha='number'==typeof u.value[n]?u.value[n]:1}else if(r.length){this.model=t||'rgb',n=a[this.model].channels;var f=i.call(r,0,n);this.color=v(f,n),this.valpha='number'==typeof r[n]?r[n]:1}else if('number'==typeof r)r&=16777215,this.model='rgb',this.color=[r>>16&255,r>>8&255,255&r],this.valpha=1;else{this.valpha=1;var p=Object.keys(r);'alpha'in r&&(p.splice(p.indexOf('alpha'),1),this.valpha='number'==typeof r.alpha?r.alpha:0);var b=p.sort().join('');if(!(b in l))throw new Error('Unable to parse color from object: '+JSON.stringify(r));this.model=l[b];var m=a[this.model].labels,g=[];for(o=0;oo?(t+.05)/(o+.05):(o+.05)/(t+.05)},level:function(r){var t=this.contrast(r);return t>=7.1?'AAA':t>=4.5?'AA':''},dark:function(){var r=this.rgb().color;return(299*r[0]+587*r[1]+114*r[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var r=this.rgb(),t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten:function(r){var t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken:function(r){var t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate:function(r){var t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate:function(r){var t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten:function(r){var t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken:function(r){var t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale:function(){var r=this.rgb().color,t=.3*r[0]+.59*r[1]+.11*r[2];return c.rgb(t,t,t)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var t=this.hsl(),o=t.color[0];return o=(o=(o+r)%360)<0?360+o:o,t.color[0]=o,t},mix:function(r,t){var o=this.rgb(),n=r.rgb(),e=void 0===t?.5:t,a=2*e-1,i=o.alpha()-n.alpha(),h=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,l=1-h;return c.rgb(h*o.red()+l*n.red(),h*o.green()+l*n.green(),h*o.blue()+l*n.blue(),o.alpha()*e+n.alpha()*(1-e))}},Object.keys(a).forEach(function(r){if(-1===h.indexOf(r)){var t=a[r].channels;c.prototype[r]=function(){if(this.model===r)return new c(this);if(arguments.length)return new c(arguments,r);var o,n='number'==typeof arguments[t]?t:this.valpha;return new c((o=a[this.model][r].raw(this.color),Array.isArray(o)?o:[o]).concat(n),r)},c[r]=function(o){return'number'==typeof o&&(o=v(i.call(arguments),t)),new c(o,r)}}}),o.exports=c},874); +__d(function(r,t,a,n){var e=t(876),s=t(877),o={};for(var u in e)e.hasOwnProperty(u)&&(o[e[u]]=u);var l=a.exports={to:{},get:{}};function h(r,t,a){return Math.min(Math.max(t,r),a)}function d(r){var t=r.toString(16).toUpperCase();return t.length<2?'0'+t:t}l.get=function(r){var t,a;switch(r.substring(0,3).toLowerCase()){case'hsl':t=l.get.hsl(r),a='hsl';break;case'hwb':t=l.get.hwb(r),a='hwb';break;default:t=l.get.rgb(r),a='rgb'}return t?{model:a,value:t}:null},l.get.rgb=function(r){if(!r)return null;var t,a,n,s=[0,0,0,1];if(t=r.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var o=2*a;s[a]=parseInt(t.slice(o,o+2),16)}n&&(s[3]=Math.round(parseInt(n,16)/255*100)/100)}else if(t=r.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=Math.round(parseInt(n+n,16)/255*100)/100)}else if(t=r.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(s[3]=parseFloat(t[4]))}else{if(!(t=r.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=r.match(/(\D+)/))?'transparent'===t[1]?[0,0,0,0]:(s=e[t[1]])?(s[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=h(s[a],0,255);return s[3]=h(s[3],0,1),s},l.get.hsl=function(r){if(!r)return null;var t=r.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(r){if(!r)return null;var t=r.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var r=s(arguments);return'#'+d(r[0])+d(r[1])+d(r[2])+(r[3]<1?d(Math.round(255*r[3])):'')},l.to.rgb=function(){var r=s(arguments);return r.length<4||1===r[3]?'rgb('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+')':'rgba('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+', '+r[3]+')'},l.to.rgb.percent=function(){var r=s(arguments),t=Math.round(r[0]/255*100),a=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||1===r[3]?'rgb('+t+'%, '+a+'%, '+n+'%)':'rgba('+t+'%, '+a+'%, '+n+'%, '+r[3]+')'},l.to.hsl=function(){var r=s(arguments);return r.length<4||1===r[3]?'hsl('+r[0]+', '+r[1]+'%, '+r[2]+'%)':'hsla('+r[0]+', '+r[1]+'%, '+r[2]+'%, '+r[3]+')'},l.to.hwb=function(){var r=s(arguments),t='';return r.length>=4&&1!==r[3]&&(t=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+t+')'},l.to.keyword=function(r){return o[r.slice(0,3)]}},875); +__d(function(e,r,l,a){'use strict';l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},876); +__d(function(r,t,n,o){'use strict';var c=t(878),a=Array.prototype.concat,e=Array.prototype.slice,u=n.exports=function(r){for(var t=[],n=0,o=r.length;n=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},878); +__d(function(n,e,r,o){var t=e(880),c=e(881),i={};Object.keys(t).forEach(function(n){i[n]={},Object.defineProperty(i[n],'channels',{value:t[n].channels}),Object.defineProperty(i[n],'labels',{value:t[n].labels});var e=c(n);Object.keys(e).forEach(function(r){var o=e[r];i[n][r]=(function(n){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=n(e);if('object'==typeof r)for(var o=r.length,t=0;t1&&(e=Array.prototype.slice.call(arguments)),n(e))};return'conversion'in n&&(e.conversion=n.conversion),e})(o)})}),r.exports=i},879); +__d(function(r,n,a,t){var e=n(876),h={};for(var u in e)e.hasOwnProperty(u)&&(h[e[u]]=u);var o=a.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};for(var s in o)if(o.hasOwnProperty(s)){if(!('channels'in o[s]))throw new Error('missing channels property: '+s);if(!('labels'in o[s]))throw new Error('missing channel labels property: '+s);if(o[s].labels.length!==o[s].channels)throw new Error('channel and label counts mismatch: '+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],'channels',{value:c}),Object.defineProperty(o[s],'labels',{value:l})}o.rgb.hsl=function(r){var n,a,t=r[0]/255,e=r[1]/255,h=r[2]/255,u=Math.min(t,e,h),o=Math.max(t,e,h),s=o-u;return o===u?n=0:t===o?n=(e-h)/s:e===o?n=2+(h-t)/s:h===o&&(n=4+(t-e)/s),(n=Math.min(60*n,360))<0&&(n+=360),a=(u+o)/2,[n,100*(o===u?0:a<=.5?s/(o+u):s/(2-o-u)),100*a]},o.rgb.hsv=function(r){var n,a,t,e,h,u=r[0]/255,o=r[1]/255,s=r[2]/255,c=Math.max(u,o,s),l=c-Math.min(u,o,s),i=function(r){return(c-r)/6/l+.5};return 0===l?e=h=0:(h=l/c,n=i(u),a=i(o),t=i(s),u===c?e=t-a:o===c?e=.3333333333333333+n-t:s===c&&(e=.6666666666666666+a-n),e<0?e+=1:e>1&&(e-=1)),[360*e,100*h,100*c]},o.rgb.hwb=function(r){var n=r[0],a=r[1],t=r[2];return[o.rgb.hsl(r)[0],100*(.00392156862745098*Math.min(n,Math.min(a,t))),100*(t=1-.00392156862745098*Math.max(n,Math.max(a,t)))]},o.rgb.cmyk=function(r){var n,a=r[0]/255,t=r[1]/255,e=r[2]/255;return[100*((1-a-(n=Math.min(1-a,1-t,1-e)))/(1-n)||0),100*((1-t-n)/(1-n)||0),100*((1-e-n)/(1-n)||0),100*n]},o.rgb.keyword=function(r){var n=h[r];if(n)return n;var a,t,u,o=1/0;for(var s in e)if(e.hasOwnProperty(s)){var c=e[s],l=(t=r,u=c,Math.pow(t[0]-u[0],2)+Math.pow(t[1]-u[1],2)+Math.pow(t[2]-u[2],2));l.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*n+.7152*a+.0722*t),100*(.0193*n+.1192*a+.9505*t)]},o.rgb.lab=function(r){var n=o.rgb.xyz(r),a=n[0],t=n[1],e=n[2];return t/=100,e/=108.883,a=(a/=95.047)>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862,[116*(t=t>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862)-16,500*(a-t),200*(t-(e=e>.008856?Math.pow(e,.3333333333333333):7.787*e+.13793103448275862))]},o.hsl.rgb=function(r){var n,a,t,e,h,u=r[0]/360,o=r[1]/100,s=r[2]/100;if(0===o)return[h=255*s,h,h];n=2*s-(a=s<.5?s*(1+o):s+o-s*o),e=[0,0,0];for(var c=0;c<3;c++)(t=u+.3333333333333333*-(c-1))<0&&t++,t>1&&t--,h=6*t<1?n+6*(a-n)*t:2*t<1?a:3*t<2?n+(a-n)*(.6666666666666666-t)*6:n,e[c]=255*h;return e},o.hsl.hsv=function(r){var n=r[0],a=r[1]/100,t=r[2]/100,e=a,h=Math.max(t,.01);return a*=(t*=2)<=1?t:2-t,e*=h<=1?h:2-h,[n,100*(0===t?2*e/(h+e):2*a/(t+a)),100*((t+a)/2)]},o.hsv.rgb=function(r){var n=r[0]/60,a=r[1]/100,t=r[2]/100,e=Math.floor(n)%6,h=n-Math.floor(n),u=255*t*(1-a),o=255*t*(1-a*h),s=255*t*(1-a*(1-h));switch(t*=255,e){case 0:return[t,s,u];case 1:return[o,t,u];case 2:return[u,t,s];case 3:return[u,o,t];case 4:return[s,u,t];case 5:return[t,u,o]}},o.hsv.hsl=function(r){var n,a,t,e=r[0],h=r[1]/100,u=r[2]/100,o=Math.max(u,.01);return t=(2-h)*u,a=h*o,[e,100*(a=(a/=(n=(2-h)*o)<=1?n:2-n)||0),100*(t/=2)]},o.hwb.rgb=function(r){var n,a,t,e,h,u,o,s=r[0]/360,c=r[1]/100,l=r[2]/100,i=c+l;switch(i>1&&(c/=i,l/=i),a=1-l,t=6*s-(n=Math.floor(6*s)),0!=(1&n)&&(t=1-t),e=c+t*(a-c),n){default:case 6:case 0:h=a,u=e,o=c;break;case 1:h=e,u=a,o=c;break;case 2:h=c,u=a,o=e;break;case 3:h=c,u=e,o=a;break;case 4:h=e,u=c,o=a;break;case 5:h=a,u=c,o=e}return[255*h,255*u,255*o]},o.cmyk.rgb=function(r){var n=r[0]/100,a=r[1]/100,t=r[2]/100,e=r[3]/100;return[255*(1-Math.min(1,n*(1-e)+e)),255*(1-Math.min(1,a*(1-e)+e)),255*(1-Math.min(1,t*(1-e)+e))]},o.xyz.rgb=function(r){var n,a,t,e=r[0]/100,h=r[1]/100,u=r[2]/100;return a=-.9689*e+1.8758*h+.0415*u,t=.0557*e+-.204*h+1.057*u,n=(n=3.2406*e+-1.5372*h+-.4986*u)>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,.4166666666666667)-.055:12.92*a,t=t>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1))]},o.xyz.lab=function(r){var n=r[0],a=r[1],t=r[2];return a/=100,t/=108.883,n=(n/=95.047)>.008856?Math.pow(n,.3333333333333333):7.787*n+.13793103448275862,[116*(a=a>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862)-16,500*(n-a),200*(a-(t=t>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862))]},o.lab.xyz=function(r){var n,a,t,e=r[0],h=r[1],u=r[2];n=h/500+(a=(e+16)/116),t=a-u/200;var o=Math.pow(a,3),s=Math.pow(n,3),c=Math.pow(t,3);return a=o>.008856?o:(a-.13793103448275862)/7.787,n=s>.008856?s:(n-.13793103448275862)/7.787,t=c>.008856?c:(t-.13793103448275862)/7.787,[n*=95.047,a*=100,t*=108.883]},o.lab.lch=function(r){var n,a=r[0],t=r[1],e=r[2];return(n=360*Math.atan2(e,t)/2/Math.PI)<0&&(n+=360),[a,Math.sqrt(t*t+e*e),n]},o.lch.lab=function(r){var n,a=r[0],t=r[1];return n=r[2]/360*2*Math.PI,[a,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(r){var n=r[0],a=r[1],t=r[2],e=1 in arguments?arguments[1]:o.rgb.hsv(r)[2];if(0===(e=Math.round(e/50)))return 30;var h=30+(Math.round(t/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===e&&(h+=60),h},o.hsv.ansi16=function(r){return o.rgb.ansi16(o.hsv.rgb(r),r[2])},o.rgb.ansi256=function(r){var n=r[0],a=r[1],t=r[2];return n===a&&a===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(a/255*5)+Math.round(t/255*5)},o.ansi16.rgb=function(r){var n=r%10;if(0===n||7===n)return r>50&&(n+=3.5),[n=n/10.5*255,n,n];var a=.5*(1+~~(r>50));return[(1&n)*a*255,(n>>1&1)*a*255,(n>>2&1)*a*255]},o.ansi256.rgb=function(r){if(r>=232){var n=10*(r-232)+8;return[n,n,n]}var a;return r-=16,[Math.floor(r/36)/5*255,Math.floor((a=r%36)/6)/5*255,a%6/5*255]},o.rgb.hex=function(r){var n=(((255&Math.round(r[0]))<<16)+((255&Math.round(r[1]))<<8)+(255&Math.round(r[2]))).toString(16).toUpperCase();return'000000'.substring(n.length)+n},o.hex.rgb=function(r){var n=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var a=n[0];3===n[0].length&&(a=a.split('').map(function(r){return r+r}).join(''));var t=parseInt(a,16);return[t>>16&255,t>>8&255,255&t]},o.rgb.hcg=function(r){var n,a,t=r[0]/255,e=r[1]/255,h=r[2]/255,u=Math.max(Math.max(t,e),h),o=Math.min(Math.min(t,e),h),s=u-o;return n=s<1?o/(1-s):0,a=s<=0?0:u===t?(e-h)/s%6:u===e?2+(h-t)/s:4+(t-e)/s+4,a/=6,[360*(a%=1),100*s,100*n]},o.hsl.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=1,e=0;return(t=a<.5?2*n*a:2*n*(1-a))<1&&(e=(a-.5*t)/(1-t)),[r[0],100*t,100*e]},o.hsv.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=n*a,e=0;return t<1&&(e=(a-t)/(1-t)),[r[0],100*t,100*e]},o.hcg.rgb=function(r){var n=r[0]/360,a=r[1]/100,t=r[2]/100;if(0===a)return[255*t,255*t,255*t];var e,h=[0,0,0],u=n%1*6,o=u%1,s=1-o;switch(Math.floor(u)){case 0:h[0]=1,h[1]=o,h[2]=0;break;case 1:h[0]=s,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=o;break;case 3:h[0]=0,h[1]=s,h[2]=1;break;case 4:h[0]=o,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=s}return e=(1-a)*t,[255*(a*h[0]+e),255*(a*h[1]+e),255*(a*h[2]+e)]},o.hcg.hsv=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n),t=0;return a>0&&(t=n/a),[r[0],100*t,100*a]},o.hcg.hsl=function(r){var n=r[1]/100,a=r[2]/100*(1-n)+.5*n,t=0;return a>0&&a<.5?t=n/(2*a):a>=.5&&a<1&&(t=n/(2*(1-a))),[r[0],100*t,100*a]},o.hcg.hwb=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n);return[r[0],100*(a-n),100*(1-a)]},o.hwb.hcg=function(r){var n=r[1]/100,a=1-r[2]/100,t=a-n,e=0;return t<1&&(e=(a-t)/(1-t)),[r[0],100*t,100*e]},o.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]},o.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]},o.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]},o.gray.hsl=o.gray.hsv=function(r){return[0,0,r[0]]},o.gray.hwb=function(r){return[0,100,r[0]]},o.gray.cmyk=function(r){return[0,0,0,r[0]]},o.gray.lab=function(r){return[r[0],0,0]},o.gray.hex=function(r){var n=255&Math.round(r[0]/100*255),a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return'000000'.substring(a.length)+a},o.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}},880); +__d(function(n,t,r,e){var a=t(880);function u(n){var t=(function(){for(var n={},t=Object.keys(a),r=t.length,e=0;e0&&void 0!==arguments[0]?arguments[0]:a.default;return{flex:1,alignSelf:'center',alignItems:'flex-start'}}},882); +__d(function(e,l,n,t){Object.defineProperty(t,"__esModule",{value:!0});var u,a=l(873),f=(u=a)&&u.__esModule?u:{default:u};t.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'}}},883); +__d(function(t,o,e,a){Object.defineProperty(a,"__esModule",{value:!0});var i,n=o(17),l=o(873),r=(i=l)&&i.__esModule?i:{default:i};a.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default,o=t.platformStyle,e=t.platform;return{".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:t.titleFontSize-2,fontFamily:t.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:t.subTitleFontSize,fontFamily:t.titleFontfamily,color:t.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:"android"===e?n.StatusBar.currentHeight:void 0,height:"android"===e?t.toolbarHeight+n.StatusBar.currentHeight:t.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:.3},"NativeBase.Right":{flex:.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:"ios"===e?void 0:0,flex:"ios"===e?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:"ios"===e?void 0:10},"NativeBase.Subtitle":{paddingLeft:"ios"===e?void 0:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:t.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},paddingHorizontal:t.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:t.dropdownLinkColor,fontSize:t.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:t.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:t.searchBarHeight,borderColor:"transparent",backgroundColor:t.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:"ios"===e?10:null},paddingHorizontal:"ios"===e?void 0:null,width:"ios"===e?void 0:0,height:"ios"===e?void 0:0}},".rounded":{"NativeBase.Item":{borderRadius:"ios"===e&&"material"!==o?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:"ios"===e&&"material"!==o?-3:0,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize+1:t.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:"ios"===e&&"material"!==t.platformStyle?t.iconHeaderSize+1:t.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:0,top:"ios"===e?1:-1.5,paddingLeft:"ios"===e&&"material"!==o?2:5,paddingRight:"ios"===e&&"material"!==o?void 0:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},alignSelf:null,paddingRight:t.buttonPadding,paddingLeft:"ios"===e&&"material"!==o?4:8},flex:"ios"===e&&"material"!==o?1:.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"ios"===e&&"material"!==o?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:"ios"===e?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},"NativeBase.Text":{color:t.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:"ios"===e?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:t.toolbarBtnColor,fontSize:t.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:t.toolbarBtnTextColor,fontSize:"ios"===e?17:14,top:"ios"===e?1:-1.5,paddingRight:"ios"===e&&"material"!==t.platformStyle?0:void 0},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:t.toolbarBtnColor},"NativeBase.IconNB":{color:t.toolbarBtnColor},alignSelf:null,paddingHorizontal:t.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:t.toolbarDefaultBg,flexDirection:"row",paddingLeft:"ios"===e&&"material"!==t.platformStyle?6:10,paddingRight:10,justifyContent:"center",paddingTop:"ios"===e?18:0,borderBottomWidth:"ios"===e?1/n.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:t.toolbarDefaultBorder,height:"ios"===t.platform&&"material"===t.platformStyle?t.toolbarHeight+n.StatusBar.height:t.toolbarHeight,elevation:3,shadowColor:"material"===o?"#000":void 0,shadowOffset:"material"===o?{width:0,height:2}:void 0,shadowOpacity:"material"===o?.2:void 0,shadowRadius:"material"===o?1.2:void 0,top:0,left:0,right:0}}},884); +__d(function(e,t,u,d){Object.defineProperty(d,"__esModule",{value:!0});var l,n=t(873),a=(l=n)&&l.__esModule?l:{default:l};d.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{marginVertical:-5}}},885); +__d(function(e,d,r,i){Object.defineProperty(i,"__esModule",{value:!0});var a,u=d(873),t=(a=u)&&a.__esModule?a:{default:a};i.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.default;return{'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28}}},886); +__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,i=o(17),l=o(873),a=(r=l)&&r.__esModule?r:{default:r};var d=i.Dimensions.get("window").height;n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{flex:1,height:"ios"===i.Platform.OS?d:d-20,backgroundColor:e.containerBgColor}}},887); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a,o=t(873),d=(a=o)&&a.__esModule?a:{default:a};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}}}},888); +__d(function(r,o,e,a){Object.defineProperty(a,"__esModule",{value:!0});var n,t=Object.assign||function(r){for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:d.default,o=r.platformStyle,e=r.platform,a={"NativeBase.Text":{color:r.brandDark},"NativeBase.Icon":{color:r.brandDark},"NativeBase.IconNB":{color:r.brandDark}},n={"NativeBase.Text":{color:r.brandLight},"NativeBase.Icon":{color:r.brandLight},"NativeBase.IconNB":{color:r.brandLight}},i={"NativeBase.Text":{color:r.btnPrimaryBg},"NativeBase.Icon":{color:r.btnPrimaryBg},"NativeBase.IconNB":{color:r.btnPrimaryBg}},l={"NativeBase.Text":{color:r.btnSuccessBg},"NativeBase.Icon":{color:r.btnSuccessBg},"NativeBase.IconNB":{color:r.btnSuccessBg}},b={"NativeBase.Text":{color:r.btnInfoBg},"NativeBase.Icon":{color:r.btnInfoBg},"NativeBase.IconNB":{color:r.btnInfoBg}},g={"NativeBase.Text":{color:r.btnWarningBg},"NativeBase.Icon":{color:r.btnWarningBg},"NativeBase.IconNB":{color:r.btnWarningBg}},c={"NativeBase.Text":{color:r.btnDangerBg},"NativeBase.Icon":{color:r.btnDangerBg},"NativeBase.IconNB":{color:r.btnDangerBg}};return{".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:r.btnDisabledBg},"NativeBase.Icon":{color:r.btnDisabledBg},"NativeBase.IconNB":{color:r.btnDisabledBg}},"NativeBase.Icon":{color:r.brandLight},"NativeBase.IconNB":{color:r.brandLight},backgroundColor:r.btnDisabledBg},".bordered":t({".dark":t({},a,{backgroundColor:"transparent",borderColor:r.brandDark,borderWidth:2*r.borderWidth}),".light":t({},n,{backgroundColor:"transparent",borderColor:r.brandLight,borderWidth:2*r.borderWidth}),".primary":t({},i,{backgroundColor:"transparent",borderColor:r.btnPrimaryBg,borderWidth:2*r.borderWidth}),".success":t({},l,{backgroundColor:"transparent",borderColor:r.btnSuccessBg,borderWidth:2*r.borderWidth}),".info":t({},b,{backgroundColor:"transparent",borderColor:r.btnInfoBg,borderWidth:2*r.borderWidth}),".warning":t({},g,{backgroundColor:"transparent",borderColor:r.btnWarningBg,borderWidth:2*r.borderWidth}),".danger":t({},c,{backgroundColor:"transparent",borderColor:r.btnDangerBg,borderWidth:2*r.borderWidth}),".disabled":{backgroundColor:null,borderColor:r.btnDisabledBg,borderWidth:2*r.borderWidth,"NativeBase.Text":{color:r.btnDisabledBg}}},i,{borderWidth:2*r.borderWidth,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":t({},a),backgroundColor:r.brandDark},".light":t({".transparent":t({},n,{backgroundColor:null}),".bordered":t({},n)},a,{backgroundColor:r.brandLight}),".primary":{".bordered":t({},i),backgroundColor:r.btnPrimaryBg},".success":{".bordered":t({},l),backgroundColor:r.btnSuccessBg},".info":{".bordered":t({},b),backgroundColor:r.btnInfoBg},".warning":{".bordered":t({},g),backgroundColor:r.btnWarningBg},".danger":{".bordered":t({},c),backgroundColor:r.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:r.borderRadiusLarge},".transparent":t({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},i,{".dark":t({},a,{backgroundColor:null}),".danger":t({},c,{backgroundColor:null}),".warning":t({},g,{backgroundColor:null}),".info":t({},b,{backgroundColor:null}),".primary":t({},i,{backgroundColor:null}),".success":t({},l,{backgroundColor:null}),".light":t({},n,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:r.btnDisabledBg,borderWidth:2*r.borderWidth,"NativeBase.Text":{color:r.btnDisabledBg},"NativeBase.Icon":{color:r.btnDisabledBg},"NativeBase.IconNB":{color:r.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:r.btnFontFamily,marginLeft:0,marginRight:0,color:r.inverseTextColor,fontSize:r.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:r.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:"ios"===e?2:void 0},"NativeBase.IconNB":{color:r.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:"ios"===e?2:void 0},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:r.buttonPadding,backgroundColor:r.btnPrimaryBg,borderRadius:r.borderRadiusBase,borderColor:r.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:"material"===o?r.brandDark:void 0,shadowOffset:"material"===o?{width:0,height:2}:void 0,shadowOpacity:"material"===o?.2:void 0,shadowRadius:"material"===o?1.2:void 0,alignItems:"center",justifyContent:"space-between"}}},889); +__d(function(t,e,o,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=e(17),f=e(873),a=(l=f)&&l.__esModule?l:{default:l};i.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{fontSize:t.titleFontSize,fontFamily:t.titleFontfamily,color:t.titleFontColor,fontWeight:"ios"===n.Platform.OS?"700":void 0,textAlign:"center",paddingLeft:"ios"===n.Platform.OS?4:0,marginLeft:"ios"===n.Platform.OS?void 0:-3,paddingTop:1}}},890); +__d(function(t,e,o,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=e(17),f=e(873),a=(l=f)&&l.__esModule?l:{default:l};i.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{fontSize:t.subTitleFontSize,fontFamily:t.titleFontfamily,color:t.subtitleColor,textAlign:"center",paddingLeft:"ios"===n.Platform.OS?4:0,marginLeft:"ios"===n.Platform.OS?void 0:-3}}},891); +__d(function(r,o,e,d){Object.defineProperty(d,"__esModule",{value:!0});var t,i=o(873),n=(t=i)&&t.__esModule?t:{default:t};d.default=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{"NativeBase.Icon":{fontSize:24,color:r.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:r.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:r.inputHeightBase,color:r.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:r.inputFontSize,lineHeight:r.inputLineHeight},".underline":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputBorderColor},".regular":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderColor:r.inputBorderColor},".rounded":{".success":{borderColor:r.inputSuccessBorderColor},".error":{borderColor:r.inputErrorBorderColor},paddingLeft:5,borderWidth:r.borderWidth,borderRadius:r.inputGroupRoundedBorderRadius,borderColor:r.inputBorderColor},".success":{"NativeBase.Icon":{color:r.inputSuccessBorderColor},"NativeBase.IconNB":{color:r.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:r.inputSuccessBorderColor},".regular":{borderColor:r.inputSuccessBorderColor},".underline":{borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputSuccessBorderColor},borderColor:r.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:r.inputErrorBorderColor},"NativeBase.IconNB":{color:r.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:r.inputErrorBorderColor},".regular":{borderColor:r.inputErrorBorderColor},".underline":{borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputErrorBorderColor},borderColor:r.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:r.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:r.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"}}},892); +__d(function(n,e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a,t=e(873),d=(a=t)&&a.__esModule?a:{default:a};r.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{".primary":{backgroundColor:n.btnPrimaryBg},".warning":{backgroundColor:n.btnWarningBg},".info":{backgroundColor:n.btnInfoBg},".success":{backgroundColor:n.btnSuccessBg},".danger":{backgroundColor:n.btnDangerBg},"NativeBase.Text":{color:n.badgeColor,fontSize:n.fontSizeBase,lineHeight:n.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:n.badgeBg,padding:n.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:"ios"===n.platform?"center":void 0,borderRadius:13.5,height:27}}},893); +__d(function(e,o,c,i){Object.defineProperty(i,"__esModule",{value:!0});var n,t=o(873),a=(n=t)&&n.__esModule?n:{default:n};i.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;return{".checked":{"NativeBase.Icon":{color:e.checkboxTickColor},"NativeBase.IconNB":{color:e.checkboxTickColor}},"NativeBase.Icon":{color:"transparent",lineHeight:e.CheckboxIconSize,marginTop:e.CheckboxIconMarginTop,fontSize:e.CheckboxFontSize},"NativeBase.IconNB":{color:"transparent",lineHeight:e.CheckboxIconSize,marginTop:e.CheckboxIconMarginTop,fontSize:e.CheckboxFontSize},borderRadius:e.CheckboxRadius,overflow:"hidden",width:e.checkboxSize,height:e.checkboxSize,borderWidth:e.CheckboxBorderWidth,paddingLeft:e.CheckboxPaddingLeft-1,paddingBottom:e.CheckboxPaddingBottom,left:10}}},894); +__d(function(o,a,r,d){Object.defineProperty(d,"__esModule",{value:!0});var l,e=a(873),n=(l=e)&&l.__esModule?l:{default:l};d.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,borderWidth:o.borderWidth,borderRadius:o.cardBorderRadius,borderColor:o.cardBorderColor,flexWrap:"nowrap",backgroundColor:o.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.1,shadowRadius:1.5,elevation:3}}},895); +__d(function(o,e,i,t){Object.defineProperty(t,"__esModule",{value:!0});var r,a=e(17),d=e(873),l=(r=d)&&r.__esModule?r:{default:r};t.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default;return{".selected":{"NativeBase.IconNB":{color:"ios"===a.Platform.OS?o.radioColor:o.radioSelectedColorAndroid,lineHeight:"ios"===a.Platform.OS?25:o.radioBtnLineHeight,height:"ios"===a.Platform.OS?20:void 0}},"NativeBase.IconNB":{color:"ios"===a.Platform.OS?"transparent":void 0,lineHeight:"ios"===a.Platform.OS?void 0:o.radioBtnLineHeight,fontSize:"ios"===a.Platform.OS?void 0:o.radioBtnSize}}}},896); +__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(873),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH3,lineHeight:e.lineHeightH3}}},897); +__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(873),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH2,lineHeight:e.lineHeightH2}}},898); +__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,i=t(873),u=(n=i)&&n.__esModule?n:{default:n};l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default;return{color:e.textColor,fontSize:e.fontSizeH1,lineHeight:e.lineHeightH1}}},899); +__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var a,r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:i.default,t=e.platformStyle,o=e.platform,l={"NativeBase.Icon":{color:e.tabBarActiveTextColor}},a={"NativeBase.IconNB":{color:e.tabBarActiveTextColor}},n={"NativeBase.Text":{color:e.tabBarActiveTextColor}};return{"NativeBase.Left":{"NativeBase.Button":r({".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),alignSelf:null},l,a),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":r({alignSelf:"center",".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),".full":{height:e.footerHeight,paddingBottom:e.footerPaddingBottom,flex:1}},l,a)},"NativeBase.Right":{"NativeBase.Button":r({".transparent":r({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},l,a,n),alignSelf:null},l,a),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:e.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:"ios"===o&&"material"!==t?e.borderWidth:void 0,borderColor:"ios"===o&&"material"!==t?"#cbcbcb":void 0,height:e.footerHeight,paddingBottom:e.footerPaddingBottom,elevation:3,left:0,right:0}}},900); +__d(function(e,t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var l,i=t(17),r=t(873),n=(l=r)&&l.__esModule?l:{default:l};a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default,t=e.platform;return{"NativeBase.Button":{".active":{"NativeBase.Text":{color:e.tabBarActiveTextColor,fontSize:e.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:e.tabBarActiveTextColor},"NativeBase.IconNB":{color:e.tabBarActiveTextColor},backgroundColor:e.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:e.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:"ios"===t?"600":void 0,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:e.tabBarTextColor},"NativeBase.IconNB":{color:e.tabBarTextColor},"NativeBase.Text":{color:e.tabBarTextColor,fontSize:e.tabBarTextSize,lineHeight:16}},backgroundColor:"android"===i.Platform.OS?e.footerDefaultBg:void 0,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"}}},901); +__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i,l=t(873),f=(i=l)&&i.__esModule?i:{default:i};a.default=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default).platform;return{"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}}}},902); +__d(function(o,r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,d=r(17),n=r(873),l=(i=n)&&i.__esModule?i:{default:i};t.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default;return{".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:o.inputHeightBase,paddingTop:"ios"===d.Platform.OS?10:3,paddingBottom:"ios"===d.Platform.OS?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:o.inputFontSize},"NativeBase.Input":{flex:2,fontSize:o.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:o.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:"ios"===d.Platform.OS?"stretch":"flex-start",flex:1,width:"ios"===d.Platform.OS?null:o.deviceWidth-25,fontSize:o.inputFontSize,lineHeight:o.inputLineHeight-6,".secureTextEntry":{fontSize:o.inputFontSize-4},".multiline":{paddingTop:"ios"===d.Platform.OS?9:void 0,paddingBottom:"ios"===d.Platform.OS?9:void 0}},flexDirection:null,minHeight:o.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:o.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:o.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:o.inputFontSize,color:o.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:o.inputHeightBase,color:o.inputColor,flex:1,top:"ios"===d.Platform.OS?1.5:void 0,fontSize:o.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderColor:o.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:o.inputSuccessBorderColor},".error":{borderColor:o.inputErrorBorderColor},borderWidth:2*o.borderWidth,borderRadius:30,borderColor:o.inputBorderColor},".success":{"NativeBase.Icon":{color:o.inputSuccessBorderColor},"NativeBase.IconNB":{color:o.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:o.inputSuccessBorderColor},".regular":{borderColor:o.inputSuccessBorderColor},".underline":{borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputSuccessBorderColor},borderColor:o.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:o.inputErrorBorderColor},"NativeBase.IconNB":{color:o.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:o.inputErrorBorderColor},".regular":{borderColor:o.inputErrorBorderColor},".underline":{borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputErrorBorderColor},borderColor:o.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:2*o.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:o.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2}}},903); +__d(function(e,t,d,u){Object.defineProperty(u,"__esModule",{value:!0});var f,n=t(873),o=(f=n)&&f.__esModule?f:{default:f};u.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default;return{".focused":{width:0},fontSize:17}}},904); +__d(function(o,r,e,d){Object.defineProperty(d,"__esModule",{value:!0});var t,i=r(873),n=(t=i)&&t.__esModule?t:{default:t};d.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".underline":{borderBottomWidth:o.borderWidth,marginTop:5,borderColor:o.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:o.inputBorderColor},color:o.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"}}},905); +__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var l,a=o(873),f=(l=a)&&l.__esModule?l:{default:l};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{fontSize:e.DefaultFontSize,fontFamily:e.fontFamily,color:e.textColor,".note":{color:"#a7a7a7",fontSize:e.noteFontSize}}}},906); +__d(function(e,n,a,r){Object.defineProperty(r,"__esModule",{value:!0});var o,t=n(873),d=(o=t)&&o.__esModule?o:{default:o};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default,n=e.platform;return{".danger":{backgroundColor:e.brandDanger},".warning":{backgroundColor:e.brandWarning},".success":{backgroundColor:e.brandSuccess},backgroundColor:"rgba(0,0,0,0.8)",borderRadius:"ios"===n?5:0,flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,minHeight:50,"NativeBase.Text":{color:"#fff",flex:1},"NativeBase.Button":{backgroundColor:"transparent",height:30,elevation:0,"NativeBase.Text":{fontSize:14}}}}},907); +__d(function(e,u,d,l){Object.defineProperty(l,"__esModule",{value:!0});var o,t=u(873),n=(o=t)&&o.__esModule?o:{default:o};l.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{flex:1,backgroundColor:"#FFF"}}},908); +__d(function(t,e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a,i=e(873),n=(a=i)&&a.__esModule?a:{default:a};r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{".tabIcon":{height:void 0},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:t.tabFontSize,color:t.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:t.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:t.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:t.tabFontSize,color:t.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:t.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:t.tabBgColor}}},909); +__d(function(o,e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var r,d=e(873),i=(r=d)&&r.__esModule?r:{default:r},l=e(17);a.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.default,e=o.platformStyle;o.platform;return{elevation:3,height:50,flexDirection:"row",shadowColor:"material"===e?"#000":void 0,shadowOffset:"material"===e?{width:0,height:2}:void 0,shadowOpacity:"material"===e?.2:void 0,shadowRadius:"material"===e?1.2:void 0,justifyContent:"space-around",borderBottomWidth:"ios"===l.Platform.OS?o.borderWidth:0,borderColor:o.topTabBarBorderColor}}},910); +__d(function(e,d,n,t){Object.defineProperty(t,"__esModule",{value:!0});var u,a=d(873),l=(u=a)&&u.__esModule?u:{default:u};t.default=function(){return{".padder":{padding:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default).contentPadding}}}},911); +__d(function(o,e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var r,i=e(873),l=(r=i)&&r.__esModule?r:{default:r};a.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default,e=o.platform;return{flexDirection:"row",backgroundColor:o.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:"android"===e?0:1,minWidth:"android"===e?void 0:60},"NativeBase.Text":{color:o.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:o.topTabBarTextColor,fontSize:"ios"===e?26:void 0},".active":{"NativeBase.Text":{color:o.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:o.topTabBarActiveTextColor}}}}},912); +__d(function(e,o,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u,d=o(873),l=(u=d)&&u.__esModule?u:{default:u};n.default=function(){return{fontSize:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default).iconFontSize,color:"#000"}}},913); +__d(function(e,t,i,n){Object.defineProperty(n,"__esModule",{value:!0});var l,u=t(873),d=(l=u)&&l.__esModule?l:{default:l};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{'.multiline':{height:null},height:e.inputHeightBase,color:e.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:e.inputFontSize}}},914); +__d(function(e,t,l,n){Object.defineProperty(n,"__esModule",{value:!0});var a,i=t(873),s=(a=i)&&a.__esModule?a:{default:a};n.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default;return{"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}}}},915); +__d(function(o,e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var i,d=e(873),n=(i=d)&&i.__esModule?i:{default:i};r.default=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default,e=o.platform;return{height:45,borderColor:o.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:o.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:o.segmentBorderColor,elevation:0,".active":{backgroundColor:o.segmentActiveBackgroundColor,"NativeBase.Text":{color:o.segmentActiveTextColor},"NativeBase.Icon":{color:o.segmentActiveTextColor}},".first":{borderTopLeftRadius:"ios"===e?5:void 0,borderBottomLeftRadius:"ios"===e?5:void 0,borderLeftWidth:1},".last":{borderTopRightRadius:"ios"===e?5:void 0,borderBottomRightRadius:"ios"===e?5:void 0},"NativeBase.Text":{color:o.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:o.segmentTextColor}}}}},916); +__d(function(e,t,u,d){Object.defineProperty(d,"__esModule",{value:!0});var l,n=t(873),f=(l=n)&&l.__esModule?l:{default:l};d.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default;return{height:80}}},917); +__d(function(e,t,o,i){Object.defineProperty(i,"__esModule",{value:!0});var a,n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:d.default,t=e.platform,o={"NativeBase.Text":{fontSize:e.DefaultFontSize-3,color:e.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:e.iconFontSize-10,color:e.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:e.iconFontSize-10,color:e.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};return{"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:e.iconFontSize},"NativeBase.IconNB":{fontSize:e.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":n({},o,{paddingRight:e.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:"ios"===t?"#555":"#222",fontSize:e.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":n({},o,{paddingRight:e.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":n({},o),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:e.iconFontSize-8,color:e.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:e.iconFontSize-8,color:e.cardBorderColor},"NativeBase.Text":{fontSize:e.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:"ios"===t?"600":"500"},".bordered":{"NativeBase.Text":{color:e.brandPrimary,fontWeight:"ios"===t?"600":"500"},borderBottomWidth:e.borderWidth},borderBottomWidth:null,paddingVertical:e.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:"ios"===t?"600":"500"},".bordered":{"NativeBase.Text":{color:e.brandPrimary,fontWeight:"ios"===t?"600":"500"},borderTopWidth:e.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:e.iconFontSize+5,fontSize:e.iconFontSize-2},"NativeBase.IconNB":{width:e.iconFontSize+5,fontSize:e.iconFontSize-2},".bordered":{borderBottomWidth:r.StyleSheet.hairlineWidth,borderColor:e.cardBorderColor},".first":{borderTopLeftRadius:e.cardBorderRadius,borderTopRightRadius:e.cardBorderRadius},".last":{borderBottomLeftRadius:e.cardBorderRadius,borderBottomRightRadius:e.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:e.cardItemPadding+5,paddingVertical:e.cardItemPadding,backgroundColor:e.cardDefaultBg}}},918); +__d(function(e,t,i,o){Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:r.default,t=e.platform,i={"NativeBase.Text":{color:e.listItemSelected},"NativeBase.Icon":{color:e.listItemSelected}};return{"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:e.dropdownLinkColor,fontSize:"ios"===t?e.iconFontSize-10:e.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:"ios"===t?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:"ios"===t?10:null},paddingHorizontal:"ios"===t?void 0:null,width:"ios"===t?void 0:0,height:"ios"===t?void 0:0},backgroundColor:e.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:e.listItemPadding+3}},".itemHeader":{".first":{paddingTop:e.listItemPadding+3},borderBottomWidth:"ios"===t?e.borderWidth:null,marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+5,paddingTop:"ios"===t?e.listItemPadding+25:void 0,paddingBottom:"android"===t?e.listItemPadding+20:void 0,flexDirection:"row",borderColor:e.listBorderColor,"NativeBase.Text":{fontSize:14,color:"ios"===t?void 0:e.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+5,backgroundColor:e.listDividerBg,flexDirection:"row",borderColor:e.listBorderColor},".selected":n({"NativeBase.Left":n({},i),"NativeBase.Body":n({},i),"NativeBase.Right":n({},i)},i),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:e.iconFontSize-10,fontSize:e.iconFontSize-10},"NativeBase.IconNB":{width:e.iconFontSize-10,fontSize:e.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:e.listItemPadding,".note":{color:e.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:e.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:e.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:e.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:e.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:.28},"NativeBase.Text":{".note":{color:e.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(e.listItemPadding+5),paddingLeft:2*(e.listItemPadding+5),top:1},".avatar":{"NativeBase.Left":{flex:0,alignSelf:'flex-start',paddingTop:14},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:e.listItemPadding,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor,marginLeft:e.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:e.noteFontSize-2}},flex:0,paddingRight:e.listItemPadding+5,alignSelf:"stretch",paddingVertical:e.listItemPadding,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:e.listItemPadding+5,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor,marginLeft:e.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:e.listNoteSize,color:e.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:e.listItemPadding+5,paddingVertical:e.listItemPadding+5,borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:e.borderWidth,borderColor:e.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:e.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:e.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:e.iconFontSize-5,fontSize:e.iconFontSize-2},"NativeBase.IconNB":{width:e.iconFontSize-5,fontSize:e.iconFontSize-2},paddingRight:e.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:e.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:e.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:e.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:"ios"===a.Platform.OS?void 0:-5,alignSelf:null},"NativeBase.PickerNB":n({},(0,l.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:e.listBorderColor,paddingRight:e.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:e.listItemPadding,paddingLeft:e.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:e.listItemPadding+6,paddingVertical:e.listItemPadding+3,marginLeft:e.listItemPadding+6,borderBottomWidth:1/a.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:e.listBg,borderColor:e.listBorderColor}}},919); +__d(function(e,t,o,l){Object.defineProperty(l,"__esModule",{value:!0});var n,u=t(873),d=(n=u)&&n.__esModule?n:{default:n};l.default=function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default;return{".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1}}},920); +__d(function(e,a,t,i){Object.defineProperty(i,"__esModule",{value:!0});var l,n=a(873),f=(l=n)&&l.__esModule?l:{default:l};i.default=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default).platform;return{"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}}}},921); +__d(function(d,t,o,e){Object.defineProperty(e,"__esModule",{value:!0});var r,i=t(873),n=(r=i)&&r.__esModule?r:{default:r};e.default=function(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default;return{'.group':{height:50,paddingVertical:d.listItemPadding-8,paddingTop:d.listItemPadding+12,'.bordered':{height:50,paddingVertical:d.listItemPadding-8,paddingTop:d.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:d.listItemPadding+2,paddingBottom:d.listItemPadding,borderBottomWidth:d.borderWidth,borderTopWidth:d.borderWidth,borderColor:d.listBorderColor},'NativeBase.Text':{fontSize:d.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:d.listItemPadding+5}}},922); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0,i=Math.abs(o)>=Math.abs(n),p=r.isLeftOrTopSide()?s:a;return!(i||r._open&&!p||!r._open&&p)&&(r.terminateActiveTween(),!0)},r.processTapGestures=function(){if(r._activeTween)return!1;if(r.props.acceptTap||r.props.tapToClose&&r._open)return r._open?r.close():r.open(),!0;if(r.props.acceptDoubleTap){var e=(new Date).getTime(),t=e-r._lastPress;if(r._lastPress=e,tr.getOpenMask())&&!(!r._open&&s>r.getClosedMask())},r.terminateActiveTween=function(){r._activeTween&&(r._activeTween.terminate(),r._activeTween=null)},r.open=function(e,t){var n=r._length,o=r.getOpenLength();r._activeTween||'force'!==e&&n-o==0&&!0===r._open||(r.props.onOpenStart&&r.props.onOpenStart(),r.setInteractionHandle(),r._activeTween=(0,d.default)({start:r._length,end:r.getOpenLength(),duration:r.props.tweenDuration,easingType:r.props.tweenEasing,onFrame:function(e){r._length=e,r.updatePosition()},onEnd:function(){r._activeTween=null,r._open=!0,r._prevLength=r._length,r.adjustForCaptureGestures(),r.props.onOpen(),r.clearInteractionHandle(),'function'==typeof e?e():t&&t()}}))},r.close=function(e,t){var n=r._length,o=r.getClosedLength();r._activeTween||'force'!==e&&n-o==0&&!1===r._open||(r.props.onCloseStart&&r.props.onCloseStart(),r.setInteractionHandle(),r._activeTween=(0,d.default)({start:n,end:o,easingType:r.props.tweenEasing,duration:r.props.tweenDuration,onFrame:function(e){r._length=e,r.updatePosition()},onEnd:function(){r._activeTween=null,r._open=!1,r._prevLength=r._length,r.adjustForCaptureGestures(),r.props.onClose(),r.clearInteractionHandle(),'function'==typeof e?e():t&&t()}}))},r.toggle=function(){r._open?r.close():r.open()},r.handleSetViewport=function(e){var t=e.nativeEvent.layout,n=r.state.viewport;if(t.width!==n.width||t.height!==n.height){var o=t.width!==n.width;r.resync(t,null,o)}},r.resync=function(e,t,n){n&&(r._syncAfterUpdate=!0),e=e||r.state.viewport,t=t||r.props,r._offsetClosed=r.getClosedOffset(t,e),r._offsetOpen=r.getOpenOffset(t,e),r.setState({viewport:e})},r.requiresResync=function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.isLeftOrRightSide()?e.width:e.height},r.getOpenLength=function(){return r.getDeviceLength()-r._offsetOpen},r.getClosedLength=function(){return r._offsetClosed},r.getMainWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.isLeftOrRightSide()?e.width-r._offsetClosed:e.width},r.getMainHeight=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.isTopOrBottomSide()?e.height-r._offsetClosed:e.height},r.getDrawerWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.isLeftOrRightSide()?e.width-r._offsetOpen:e.width},r.getDrawerHeight=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.isTopOrBottomSide()?e.height-r._offsetOpen:e.height},r.getOpenMask=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.viewport;return r.props.panCloseMask&&r.props.panCloseMask%1==0?r.props.panCloseMask:r.props.panCloseMask?r.getDeviceLength(e)*r.props.panCloseMask:Math.max(.05,r._offsetOpen)},r.getClosedMask=function(){return r.props.panOpenMask&&r.props.panOpenMask%1==0?r.props.panOpenMask:r.props.panOpenMask?r.getDeviceLength()*r.props.panOpenMask:Math.max(.05,r._offsetClosed)},r.getOpenOffset=function(e,t){return'function'==typeof e.openDrawerOffset?e.openDrawerOffset(t):e.openDrawerOffset>1||e.openDrawerOffset<0?e.openDrawerOffset:e.openDrawerOffset*r.getDeviceLength(t)},r.getClosedOffset=function(e,t){return'function'==typeof e.closedDrawerOffset?e.closedDrawerOffset(t):e.closedDrawerOffset>1||e.closedDrawerOffset<0?e.closedDrawerOffset:e.closedDrawerOffset*r.getDeviceLength(t)},r.getGestureDelta=function(e){return r.isLeftOrRightSide()?e.dx:e.dy},r.getGestureDeltaOppositeAxis=function(e){return r.isLeftOrRightSide()?e.dy:e.dx},r.isLeftOrRightSide=function(){return p.I18nManager.isRTL?["right","left"].includes(r.props.side):["left","right"].includes(r.props.side)},r.isTopOrBottomSide=function(){return["top","bottom"].includes(r.props.side)},r.isLeftOrTopSide=function(){var e="left";return p.I18nManager.isRTL&&(e="right"),[e,"top"].includes(r.props.side)},r.isRightOrBottomSide=function(){var e="right";return p.I18nManager.isRTL&&(e="left"),[e,"bottom"].includes(r.props.side)},o=n,babelHelpers.possibleConstructorReturn(r,o)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_registerChildDrawer",value:function(e){this._childDrawer=e}},{key:"componentWillMount",value:function(){this.context.drawer&&this.context.drawer._registerChildDrawer(this),this.props.openDrawerThreshold,this.props.panStartCompensation,this.props.relativeDrag,this.initialize(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.requiresResync(e)&&this.resync(null,e),null!==e.open&&this._open!==e.open&&(this._syncAfterUpdate=!0,this._open=e.open)}},{key:"componentDidUpdate",value:function(){this._syncAfterUpdate&&(this._syncAfterUpdate=!1,this._open?this.open('force'):this.close('force'))}},{key:"shouldOpenDrawer",value:function(e){return this._open^e>0^this.isRightOrBottomSide()?this._open^Math.abs(e)>this.getDeviceLength()*this.props.panThreshold:this._open}},{key:"shouldCaptureGestures",value:function(){return!0===this.props.captureGestures||('closed'===this.props.captureGestures&&!1===this._open||'open'===this.props.captureGestures&&!0===this._open)}},{key:"adjustForCaptureGestures",value:function(){if(this.props.captureGestures){var e=this.shouldCaptureGestures();this.mainOverlay&&this.drawerOverlay&&(this.mainOverlay.setNativeProps({pointerEvents:e&&this._open?'auto':'none'}),this.drawerOverlay.setNativeProps({pointerEvents:e&&!this._open?'auto':'none'}))}}},{key:"setInteractionHandle",value:function(){this._interactionHandle&&p.InteractionManager.clearInteractionHandle(this._interactionHandle),this.props.useInteractionManager&&(this._interactionHandle=p.InteractionManager.createInteractionHandle())}},{key:"clearInteractionHandle",value:function(){this._interactionHandle&&p.InteractionManager.clearInteractionHandle(this._interactionHandle)}},{key:"render",value:function(){var e='overlay'===this.props.type?this.renderMain():this.renderDrawer(),t='overlay'===this.props.type?this.renderDrawer():this.renderMain();return s.default.createElement(p.View,{key:"drawerContainer",onLayout:this.handleSetViewport,style:this.stylesheet.container},e,t)}},{key:"renderMain",value:function(){var e=this;return s.default.createElement(p.View,babelHelpers.extends({},this.responder.panHandlers,{key:"main",ref:function(t){return e.main=t},style:[this.stylesheet.main,{height:this.getMainHeight(),width:this.getMainWidth()}]}),this.props.children,s.default.createElement(p.View,{pointerEvents:this._open&&this.shouldCaptureGestures()?'auto':'none',ref:function(t){return e.mainOverlay=t},style:[v.overlay,this.props.styles&&this.props.styles.mainOverlay]}))}},{key:"renderDrawer",value:function(){var e=this;return s.default.createElement(p.View,babelHelpers.extends({},this.responder.panHandlers,{key:"drawer",ref:function(t){return e.drawer=t},elevation:this.props.elevation,style:[this.stylesheet.drawer,{height:this.getDrawerHeight(),width:this.getDrawerWidth()}]}),this.props.content,s.default.createElement(p.View,{pointerEvents:!this._open&&this.shouldCaptureGestures()?'auto':'none',ref:function(t){return e.drawerOverlay=t},style:[v.overlay,this.props.styles&&this.props.styles.drawerOverlay]}))}}]),t})(o.Component);g.tweenPresets={parallax:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'left';return{drawer:babelHelpers.defineProperty({},t,-150*(1-e))}}},g.propTypes={acceptDoubleTap:i.default.bool,acceptPan:i.default.bool,acceptTap:i.default.bool,acceptPanOnDrawer:i.default.bool,captureGestures:i.default.oneOf([!0,!1,'open','closed']),children:i.default.node,closedDrawerOffset:i.default.oneOfType([i.default.number,i.default.func]),content:i.default.node,disabled:i.default.bool,elevation:i.default.number,initializeOpen:i.default.bool,open:i.default.bool,negotiatePan:i.default.bool,onClose:i.default.func,onCloseStart:i.default.func,onOpen:i.default.func,onOpenStart:i.default.func,openDrawerOffset:i.default.oneOfType([i.default.number,i.default.func]),panThreshold:i.default.number,panCloseMask:i.default.number,panOpenMask:i.default.number,side:i.default.oneOf(['left','right','top','bottom']),styles:i.default.object,tapToClose:i.default.bool,tweenDuration:i.default.number,tweenEasing:i.default.string,tweenHandler:i.default.func,type:i.default.oneOf(['overlay','static','displace']),useInteractionManager:i.default.bool,panStartCompensation:i.default.bool,openDrawerThreshold:i.default.any},g.defaultProps={open:null,initializeOpen:!1,type:'displace',closedDrawerOffset:0,openDrawerOffset:0,panThreshold:.25,panOpenMask:null,panCloseMask:null,tweenHandler:null,tweenDuration:250,tweenEasing:'linear',disabled:!1,negotiatePan:!1,captureGestures:'open',acceptDoubleTap:!1,acceptTap:!1,acceptPan:!0,acceptPanOnDrawer:!0,tapToClose:!1,styles:{},elevation:0,onOpen:function(){},onClose:function(){},side:'left',useInteractionManager:!1},g.contextTypes={drawer:i.default.object},g.childContextTypes={drawer:i.default.object},r.default=g;var v=p.StyleSheet.create({overlay:{right:0,left:0,top:0,bottom:0,position:'absolute',backgroundColor:'transparent'}})},924); +__d(function(t,i,n,o){var r=i(926);function e(t){this._rafLoop=this._rafLoop.bind(this),this.terminate=this.terminate.bind(this),this._t0=Date.now(),this._config=t,this._rafLoop()}n.exports=function(t){return new e(t)},e.prototype._rafLoop=function(){if(!this._break){var t=this._config,i=t.duration,n=t.start,o=t.end,e=t.easingType,a=Date.now()-this._t0;if(a>=i)return this._config.onFrame(o),void this._config.onEnd();var s=r[e](a,n,o,i);this._config.onFrame(s),requestAnimationFrame(this._rafLoop)}},e.prototype.terminate=function(){this._break=!0}},925); +__d(function(n,t,e,u){'use strict';var a={linear:function(n,t,e,u){return(e-t)*n/u+t},easeInQuad:function(n,t,e,u){return(e-t)*(n/=u)*n+t},easeOutQuad:function(n,t,e,u){return-(e-t)*(n/=u)*(n-2)+t},easeInOutQuad:function(n,t,e,u){var a=e-t;return(n/=u/2)<1?a/2*n*n+t:-a/2*(--n*(n-2)-1)+t},easeInCubic:function(n,t,e,u){return(e-t)*(n/=u)*n*n+t},easeOutCubic:function(n,t,e,u){return(e-t)*((n=n/u-1)*n*n+1)+t},easeInOutCubic:function(n,t,e,u){var a=e-t;return(n/=u/2)<1?a/2*n*n*n+t:a/2*((n-=2)*n*n+2)+t},easeInQuart:function(n,t,e,u){return(e-t)*(n/=u)*n*n*n+t},easeOutQuart:function(n,t,e,u){return-(e-t)*((n=n/u-1)*n*n*n-1)+t},easeInOutQuart:function(n,t,e,u){var a=e-t;return(n/=u/2)<1?a/2*n*n*n*n+t:-a/2*((n-=2)*n*n*n-2)+t},easeInQuint:function(n,t,e,u){return(e-t)*(n/=u)*n*n*n*n+t},easeOutQuint:function(n,t,e,u){return(e-t)*((n=n/u-1)*n*n*n*n+1)+t},easeInOutQuint:function(n,t,e,u){var a=e-t;return(n/=u/2)<1?a/2*n*n*n*n*n+t:a/2*((n-=2)*n*n*n*n+2)+t},easeInSine:function(n,t,e,u){var a=e-t;return-a*Math.cos(n/u*(Math.PI/2))+a+t},easeOutSine:function(n,t,e,u){return(e-t)*Math.sin(n/u*(Math.PI/2))+t},easeInOutSine:function(n,t,e,u){return-(e-t)/2*(Math.cos(Math.PI*n/u)-1)+t},easeInExpo:function(n,t,e,u){return 0==n?t:(e-t)*Math.pow(2,10*(n/u-1))+t},easeOutExpo:function(n,t,e,u){var a=e-t;return n==u?t+a:a*(1-Math.pow(2,-10*n/u))+t},easeInOutExpo:function(n,t,e,u){var a=e-t;return 0===n?t:n===u?t+a:(n/=u/2)<1?a/2*Math.pow(2,10*(n-1))+t:a/2*(2-Math.pow(2,-10*--n))+t},easeInCirc:function(n,t,e,u){return-(e-t)*(Math.sqrt(1-(n/=u)*n)-1)+t},easeOutCirc:function(n,t,e,u){return(e-t)*Math.sqrt(1-(n=n/u-1)*n)+t},easeInOutCirc:function(n,t,e,u){var a=e-t;return(n/=u/2)<1?-a/2*(Math.sqrt(1-n*n)-1)+t:a/2*(Math.sqrt(1-(n-=2)*n)+1)+t},easeInElastic:function(n,t,e,u){var a,r,i,s=e-t;return i=1.70158,r=0,a=s,0===n?t:1==(n/=u)?t+s:(r||(r=.3*u),athis.props.directionalDistanceChangeThreshold}},{key:"handlePanResponderMove",value:function(e,t){var n=t.dx,i=t.dy,r=Math.abs(n),s=Math.abs(i);if(r>this.props.directionalDistanceChangeThreshold||s>this.props.directionalDistanceChangeThreshold){if(s>r&&!this.horizontalSwipeGestureBegan)return;this.parentScrollEnabled&&(this.parentScrollEnabled=!1,this.props.setScrollEnabled&&this.props.setScrollEnabled(!1)),null===this.swipeInitialX&&(this.swipeInitialX=this._translateX._value),this.horizontalSwipeGestureBegan||(this.horizontalSwipeGestureBegan=!0,this.props.swipeGestureBegan&&this.props.swipeGestureBegan());var o=this.swipeInitialX+n;this.props.disableLeftSwipe&&o<0&&(o=0),this.props.disableRightSwipe&&o>0&&(o=0),this.props.stopLeftSwipe&&o>this.props.stopLeftSwipe&&(o=this.props.stopLeftSwipe),this.props.stopRightSwipe&&o=0?this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)&&(n=this.props.leftOpenValue):this._translateX._value0?this.props.activeOpacity:.5,__source:{fileName:n,lineNumber:67}}),o);if(this.props.rounded){var r=a({},this.prepareRootProps().style),i=this.props.full||this.props.block?1:r.flex;return u.default.createElement(s.View,{style:[{maxHeight:r.height},r,{paddingTop:void 0,paddingBottom:void 0}],__source:{fileName:n,lineNumber:82}},u.default.createElement(s.TouchableNativeFeedback,a({ref:function(t){return e._root=t},background:this.props.androidRippleColor?s.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,!0):s.TouchableNativeFeedback.Ripple(t.androidRippleColor,!0)},this.prepareRootProps(),{__source:{fileName:n,lineNumber:83}}),u.default.createElement(s.View,{style:[v.childContainer,{paddingTop:r.paddingTop,paddingBottom:r.paddingBottom,height:r.height,flexGrow:i}],__source:{fileName:n,lineNumber:92}},o)))}return u.default.createElement(s.TouchableNativeFeedback,a({ref:function(t){return e._root=t},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:n,lineNumber:100}}),u.default.createElement(s.View,a({},this.prepareRootProps(),{__source:{fileName:n,lineNumber:105}}),o))}}]),t})();m.contextTypes={theme:p.default.object},m.propTypes=a({},s.TouchableOpacity.propTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array]),block:p.default.bool,primary:p.default.bool,transparent:p.default.bool,success:p.default.bool,danger:p.default.bool,warning:p.default.bool,info:p.default.bool,bordered:p.default.bool,disabled:p.default.bool,rounded:p.default.bool,large:p.default.bool,small:p.default.bool,active:p.default.bool});var v=s.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}}),_=(0,d.connectStyle)("NativeBase.Button",{},h.default)(m);r.Button=_},935); +__d(function(e,t,l,r){"use_strict";var a,f=t(366),u=(a=f)&&a.__esModule?a:{default:a},n=t(17);l.exports=function(e,t){var l={};delete(e=u.default.clone(e)).children;var r=e.style;if(delete e.style,e?u.default.assign(l,t,e):l=t,r){var a={};l.style={},Array.isArray(r)?u.default.forEach(r,function(e){"number"==typeof e?u.default.merge(a,n.StyleSheet.flatten(e)):u.default.merge(a,e)}):a="number"==typeof r?n.StyleSheet.flatten(r):r,u.default.merge(l.style,t.style,a)}return l}},936); +__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DatePicker=void 0;var o="src/basic/DatePicker.js",r=(function(){function e(e,t){for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:m,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;d();var n=e[r]||'?';'number'==typeof n&&(n=String.fromCharCode(n));var l=(0,s.processColor)(a),i=n+":"+t+":"+l,u=s.PixelRatio.get();return new Promise(function(e,r){var a=f[i];void 0!==a?!a||a instanceof Error?r(a):e({uri:a,scale:u}):v.getImageForFont(o,n,t,l,function(t,o){var a='string'==typeof t?new Error(t):t;f[i]=o||a||!1,!a&&o?e({uri:o,scale:u}):r(a)})})}return u.Button=(0,c.default)(u),u.TabBarItem=(0,p.default)(l,y),u.TabBarItemIOS=u.TabBarItem,u.ToolbarAndroid=(0,b.default)(l,y),u.getImageSource=y,u.loadFont=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return'ios'===s.Platform.OS?(d(),e?v.loadFontWithFileName.apply(v,babelHelpers.toConsumableArray(e.split('.'))):Promise.reject(new Error('Unable to load font, because no file was specified. '))):Promise.resolve()},u.hasIcon=function(r){return Object.prototype.hasOwnProperty.call(e,r)},u};var a=r(51),n=babelHelpers.interopRequireDefault(a),l=r(105),i=babelHelpers.interopRequireDefault(l),s=r(943),u=r(944),c=babelHelpers.interopRequireDefault(u),f=r(1079),p=babelHelpers.interopRequireDefault(f),d=r(1093),b=babelHelpers.interopRequireDefault(d),v=s.NativeModules.RNVectorIconsManager||s.NativeModules.RNVectorIconsModule,m=12,h='black'},942); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(17);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},943); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){var t,r;return r=t=(function(t){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,t),babelHelpers.createClass(r,[{key:"render",value:function(){var t=this.props,r=t.style,l=t.iconStyle,a=t.children,n=babelHelpers.objectWithoutProperties(t,["style","iconStyle","children"]),i=(0,s.default)(n,Object.keys(f.Text.propTypes),'style','name','size','color'),d=(0,s.default)(n,Object.keys(f.TouchableHighlight.propTypes)),c=(0,u.default)(n,Object.keys(i),Object.keys(d),'iconStyle','borderRadius','backgroundColor');i.style=l?[y.icon,l]:y.icon;var p=(0,s.default)(this.props,'color'),h=(0,s.default)(this.props,'backgroundColor','borderRadius');return b.default.createElement(f.TouchableHighlight,babelHelpers.extends({style:[y.touchable,h]},d),b.default.createElement(f.View,babelHelpers.extends({style:[y.container,h,r]},c),b.default.createElement(e,i),(0,o.default)(a)?b.default.createElement(f.Text,{style:[y.text,p]},a):a))}}]),r})(d.PureComponent),t.propTypes={backgroundColor:p.default.oneOfType([p.default.string,p.default.number]),borderRadius:p.default.number,color:p.default.oneOfType([p.default.string,p.default.number]),size:p.default.number,iconStyle:p.default.any,style:p.default.any,children:p.default.node},t.defaultProps={backgroundColor:h,borderRadius:5,color:'white',size:20},r};var a=t(945),o=babelHelpers.interopRequireDefault(a),n=t(947),u=babelHelpers.interopRequireDefault(n),i=t(1072),s=babelHelpers.interopRequireDefault(i),d=t(51),b=babelHelpers.interopRequireDefault(d),c=t(105),p=babelHelpers.interopRequireDefault(c),f=t(943),y=f.StyleSheet.create({container:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center',padding:8},touchable:{overflow:'hidden'},icon:{marginRight:10},text:{fontWeight:'600',backgroundColor:'transparent'}}),h='#007AFF'},944); +__d(function(t,n,r,o){var e=n(311),i=n(946),c=n(319),f='[object String]';r.exports=function(t){return'string'==typeof t||!i(t)&&c(t)&&e(t)==f}},945); +__d(function(r,a,i,n){var o=Array.isArray;i.exports=o},946); +__d(function(n,r,t,u){var e=r(948),f=r(949),o=r(1046),a=r(1047),i=r(993),l=r(1060),v=r(1061),c=r(1026),g=v(function(n,r){var t={};if(null==n)return t;var u=!1;r=e(r,function(r){return r=a(r,n),u||(u=r.length>1),r}),i(n,c(n),t),u&&(t=f(t,7,l));for(var v=r.length;v--;)o(t,r[v]);return t});t.exports=g},947); +__d(function(n,r,t,o){t.exports=function(n,r){for(var t=-1,o=null==n?0:n.length,u=Array(o);++t-1}},957); +__d(function(t,i,s,_){var n=i(954);s.exports=function(t,i){var s=this.__data__,_=n(s,t);return _<0?(++this.size,s.push([t,i])):s[_][1]=i,this}},958); +__d(function(t,_,i,n){var s=_(951);i.exports=function(){this.__data__=new s,this.size=0}},959); +__d(function(t,e,i,_){i.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},960); +__d(function(t,_,n,e){n.exports=function(t){return this.__data__.get(t)}},961); +__d(function(t,_,n,a){n.exports=function(t){return this.__data__.has(t)}},962); +__d(function(t,i,s,_){var e=i(951),a=i(964),n=i(973),h=200;s.exports=function(t,i){var s=this.__data__;if(s instanceof e){var _=s.__data__;if(!a||_.length-1&&n%1==0&&n-1&&n%1==0&&n<=o}},1004); +__d(function(n,t,r,u){r.exports=function(n){return function(t){return n(t)}}},1005); +__d(function(e,t,r,n){var o=t(314),i='object'==typeof n&&n&&!n.nodeType&&n,p=i&&'object'==typeof r&&r&&!r.nodeType&&r,c=p&&p.exports===i&&o.process,u=(function(){try{var e=p&&p.require&&p.require('util').types;return e||c&&c.binding&&c.binding('util')}catch(e){}})();r.exports=u},1006); +__d(function(r,t,n,o){var c=t(1008),e=t(1009),u=Object.prototype.hasOwnProperty;n.exports=function(r){if(!c(r))return e(r);var t=[];for(var n in Object(r))u.call(r,n)&&'constructor'!=n&&t.push(n);return t}},1007); +__d(function(t,o,r,n){var c=Object.prototype;r.exports=function(t){var o=t&&t.constructor;return t===('function'==typeof o&&o.prototype||c)}},1008); +__d(function(e,t,c,b){var j=t(318)(Object.keys,Object);c.exports=j},1009); +__d(function(n,t,r,u){var e=t(967),l=t(1004);r.exports=function(n){return null!=n&&l(n.length)&&!e(n)}},1010); +__d(function(n,r,t,o){var u=r(993),c=r(1012);t.exports=function(n,r){return n&&u(r,c(r),n)}},1011); +__d(function(n,r,t,o){var u=r(995),c=r(1013),e=r(1010);t.exports=function(n){return e(n)?u(n,!0):c(n)}},1012); +__d(function(r,t,n,o){var c=t(968),e=t(1008),u=t(1014),a=Object.prototype.hasOwnProperty;n.exports=function(r){if(!c(r))return u(r);var t=e(r),n=[];for(var o in r)('constructor'!=o||!t&&a.call(r,o))&&n.push(o);return n}},1013); +__d(function(n,r,t,u){t.exports=function(n){var r=[];if(null!=n)for(var t in Object(n))r.push(t);return r}},1014); +__d(function(e,o,t,n){var r=o(313),c='object'==typeof n&&n&&!n.nodeType&&n,f=c&&'object'==typeof t&&t&&!t.nodeType&&t,p=f&&f.exports===c?r.Buffer:void 0,i=p?p.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,n=i?i(t):new e.constructor(t);return e.copy(n),n}},1015); +__d(function(r,n,t,o){t.exports=function(r,n){var t=-1,o=r.length;for(n||(n=Array(o));++ta?0:a+n),(t=t>a?a:t)<0&&(t+=a),a=n>t?0:t-n>>>0,n>>>=0;for(var e=Array(a);++o0&&e(g)?t>1?n(g,t-1,e,f,u):o(u,g):f||(u[u.length]=g)}return u}},1063); +__d(function(n,o,t,a){var e=o(312),i=o(997),r=o(946),c=e?"function"==typeof e?e.isConcatSpreadable:"@@isConcatSpreadable":void 0;t.exports=function(n){return r(n)||i(n)||!!(c&&n&&n[c])}},1064); +__d(function(r,n,t,a){var o=n(1066),e=Math.max;t.exports=function(r,n,t){return n=e(void 0===n?r.length-1:n,0),function(){for(var a=arguments,f=-1,i=e(a.length-n,0),u=Array(i);++f0){if(++r>=i)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},1071); +__d(function(n,r,t,u){var o=r(1073),c=r(1061)(function(n,r){return null==n?{}:o(n,r)});t.exports=c},1072); +__d(function(n,r,t,u){var o=r(1074),c=r(1076);t.exports=function(n,r){return o(n,r,function(r,t){return c(n,t)})}},1073); +__d(function(r,n,t,o){var a=n(1057),e=n(1075),f=n(1047);t.exports=function(r,n,t){for(var o=-1,u=n.length,v={};++os))return!1;var g=d.get(e);if(g&&d.get(r))return g==r;var b=-1,h=!0,k=t&o?new n:void 0;for(d.set(e,r),d.set(r,e);++b=t?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateHeight",value:function(e,t){var r=null;r=void 0!=t?t:h.default.Inset;var o="portrait"===e?r.portrait:r.landscape;return(void 0!=this.props.style.height?this.props.style.height:this.props.style[1]&&this.props.style[1].height?this.props.style[1].height:this.props.style[0].height)+o.topInset}},{key:"calculatePadder",value:function(e,t){var r=null;r=void 0!=t?t:h.default.Inset;var o="portrait"===e?r.portrait:r.landscape,a=p.StyleSheet.flatten(this.props.style);return void 0!==a.padding||void 0!==a.paddingTop?(a.paddingTop?a.paddingTop:a.padding)+o.topInset:o.topInset}},{key:"render",value:function(){var e=this,t=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:h.default,r=t.platformStyle;return l.default.createElement(p.View,{onLayout:function(t){return e.layoutChange(t.nativeEvent.layout)},__source:{fileName:n,lineNumber:67}},l.default.createElement(p.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:t.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:"material"===r?"light-content":t.iosStatusbar,translucent:!!this.props.transparent||this.props.translucent,__source:{fileName:n,lineNumber:68}}),h.default.isIphoneX?l.default.createElement(p.View,a({ref:function(t){return e._root=t}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,t.Inset),paddingTop:this.calculatePadder(this.state.orientation,t.Inset)}],__source:{fileName:n,lineNumber:84}})):l.default.createElement(p.View,a({ref:function(t){return e._root=t}},this.props,{__source:{fileName:n,lineNumber:102}})))}}]),t})();y.contextTypes={theme:u.default.object},y.propTypes=a({},p.ViewPropTypes,{style:u.default.oneOfType([u.default.object,u.default.number,u.default.array]),searchBar:u.default.bool,rounded:u.default.bool});var v=(0,c.connectStyle)("NativeBase.Header",{},f.default)(y);o.Header=v},1117); +__d(function(e,t,r,o){Object.defineProperty(o,"__esModule",{value:!0}),o.InputGroup=void 0;var n=Object.assign||function(e){for(var t=1;t0?e.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),o)}c.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start()}},{key:"closeModal",value:function(t){this.setState({modalVisible:!1});var e=this.state.onClose;e&&"function"==typeof e&&e(t)}},{key:"closeToast",value:function(t){clearTimeout(this.closeTimeout),c.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,t))}},{key:"render",value:function(){var t=this;return this.state.modalVisible?l.default.createElement(c.Animated.View,{style:this.getToastStyle(),__source:{fileName:a,lineNumber:105}},l.default.createElement(d.Toast,{style:this.state.style,danger:"danger"==this.state.type,success:"success"==this.state.type,warning:"warning"==this.state.type,__source:{fileName:a,lineNumber:106}},l.default.createElement(y.Text,{style:this.state.textStyle,__source:{fileName:a,lineNumber:112}},this.state.text),this.state.buttonText&&l.default.createElement(p.Button,{style:this.state.buttonStyle,onPress:function(){return t.closeToast('user')},__source:{fileName:a,lineNumber:114}},l.default.createElement(y.Text,{style:this.state.buttonTextStyle,__source:{fileName:a,lineNumber:118}},this.state.buttonText)))):null}}],[{key:"show",value:function(t){var e=(function(t,e){var o={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o})(t,[]);this.toastInstance._root.showToast({config:e})}},{key:"hide",value:function(){this.toastInstance._root.getModalState()&&this.toastInstance._root.closeToast("functionCall")}}]),e})();b.propTypes=i({},c.ViewPropTypes,{style:u.default.oneOfType([u.default.object,u.default.number,u.default.array])});var T=(0,f.connectStyle)("NativeBase.ToastContainer",{},h.default)(b);n.ToastContainer=T},1137); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Toast=void 0;var o=Object.assign||function(e){for(var t=1;t=e?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateLeft",value:function(t,e){var o=null;o=void 0!==e?e:u.default.Inset;var s="portrait"===t?o.portrait:o.landscape,r=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingLeft||(r=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+s.leftInset):r=void 0!==this.props.style.padding||void 0!==this.props.style.paddingLeft?(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+s.leftInset:s.leftInset,r}},{key:"calculateRight",value:function(t,e){var o=null;o=void 0!==e?e:u.default.Inset;var s="portrait"===t?o.portrait:o.landscape,r=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingRight||(r=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+s.rightInset):r=void 0!==this.props.style.padding||void 0!==this.props.style.paddingRight?(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+s.rightInset:s.rightInset,r}},{key:"render",value:function(){var t=this,e=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:u.default;return u.default.isIphoneX?a.default.createElement(p.KeyboardAwareScrollView,r({automaticallyAdjustContentInsets:!1,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function(e){t._scrollview=e,t._root=e}},this.props,{onLayout:function(e){return t.layoutChange(e.nativeEvent.layout)},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,e.Inset)}],contentContainerStyle:[{padding:this.props.padder?e.contentPadding:void 0},this.props.contentContainerStyle],__source:{fileName:"src/basic/Content.js",lineNumber:95}}),this.props.children):a.default.createElement(p.KeyboardAwareScrollView,r({automaticallyAdjustContentInsets:!1,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function(e){t._scrollview=e,t._root=e}},this.props,{contentContainerStyle:[{padding:this.props.padder?e.contentPadding:void 0},this.props.contentContainerStyle],__source:{fileName:"src/basic/Content.js",lineNumber:125}}),this.props.children)}}]),e})();f.contextTypes={theme:l.default.object},f.propTypes={style:l.default.oneOfType([l.default.object,l.default.number,l.default.array]),padder:l.default.bool,disableKBDismissScroll:l.default.bool,enableResetScrollToCoords:l.default.bool,keyboardShouldPersistTaps:l.default.string};var y=(0,d.connectStyle)("NativeBase.Content",{},h.default)(f);s.Content=y},1141); +__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardAwareScrollView=t.KeyboardAwareSectionList=t.KeyboardAwareFlatList=t.KeyboardAwareListView=t.listenToKeyboardEvents=void 0;var l=r(1143),i=babelHelpers.interopRequireDefault(l),o=r(1145),b=babelHelpers.interopRequireDefault(o),d=r(1146),u=babelHelpers.interopRequireDefault(d),s=r(1147),n=babelHelpers.interopRequireDefault(s),f=r(1148),w=babelHelpers.interopRequireDefault(f);t.listenToKeyboardEvents=i.default,t.KeyboardAwareListView=u.default,t.KeyboardAwareFlatList=n.default,t.KeyboardAwareSectionList=w.default,t.KeyboardAwareScrollView=b.default},1142); +__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=o(51),l=babelHelpers.interopRequireDefault(n),a=o(105),i=babelHelpers.interopRequireDefault(a),s=o(17),d=babelHelpers.interopRequireDefault(s),c=(0,o(1144).isIphoneX)()?83:49,u=250,p=75;r.default=function(e){var o,t,r;return t=o=(function(o){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.call(o),o.keyboardWillShowEvent=void 0,o.keyboardWillHideEvent=void 0,o.position={x:0,y:0},o.defaultResetScrollToCoords=null;var n=e.viewIsInsideTabBar?c:0;return o.state={keyboardSpace:n},o}return babelHelpers.inherits(t,o),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.mountedComponent=!0,'ios'===s.Platform.OS?(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardWillShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardWillHide',this._resetKeyboardSpace)):'android'===s.Platform.OS&&this.props.enableOnAndroid&&(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardDidShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardDidHide',this._resetKeyboardSpace))}},{key:"componentWillReceiveProps",value:function(e){if(e.viewIsInsideTabBar!==this.props.viewIsInsideTabBar){var o=e.viewIsInsideTabBar?c:0;this.state.keyboardSpace!==o&&this.setState({keyboardSpace:o})}}},{key:"componentWillUnmount",value:function(){this.mountedComponent=!1,this.keyboardWillShowEvent&&this.keyboardWillShowEvent.remove(),this.keyboardWillHideEvent&&this.keyboardWillHideEvent.remove()}},{key:"render",value:function(){var o=this.props,t=o.enableOnAndroid,r=o.contentContainerStyle,n=void 0;return'android'===s.Platform.OS&&t&&(n=[].concat(r).concat({paddingBottom:((r||{}).paddingBottom||0)+this.state.keyboardSpace})),l.default.createElement(e,babelHelpers.extends({ref:this._handleRef,keyboardDismissMode:"interactive",contentInset:{bottom:this.state.keyboardSpace},automaticallyAdjustContentInsets:!1,showsVerticalScrollIndicator:!0,scrollEventThrottle:1},this.props,{contentContainerStyle:n||r,keyboardSpace:this.state.keyboardSpace,getScrollResponder:this.getScrollResponder,scrollToPosition:this.scrollToPosition,scrollToEnd:this.scrollToEnd,scrollForExtraHeightOnAndroid:this.scrollForExtraHeightOnAndroid,scrollToFocusedInput:this.scrollToFocusedInput,resetKeyboardSpace:this._resetKeyboardSpace,handleOnScroll:this._handleOnScroll,onScroll:this._onScroll}))}}]),t})(l.default.Component),o.propTypes={viewIsInsideTabBar:i.default.bool,resetScrollToCoords:i.default.shape({x:i.default.number.isRequired,y:i.default.number.isRequired}),enableResetScrollToCoords:i.default.bool,enableAutomaticScroll:i.default.bool,extraHeight:i.default.number,extraScrollHeight:i.default.number,keyboardOpeningTime:i.default.number,onScroll:i.default.func,contentContainerStyle:i.default.any,enableOnAndroid:i.default.bool,innerRef:i.default.func},o.defaultProps={enableAutomaticScroll:!0,extraHeight:p,extraScrollHeight:0,enableResetScrollToCoords:!0,keyboardOpeningTime:u,viewIsInsideTabBar:!1},r=function(){var e=this;this.getScrollResponder=function(){return e._rnkasv_keyboardView&&e._rnkasv_keyboardView.getScrollResponder()},this.scrollToPosition=function(o,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.getScrollResponder();n&&n.scrollResponderScrollTo({x:o,y:t,animated:r})},this.scrollToEnd=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e.getScrollResponder();t&&t.scrollResponderScrollToEnd({animated:o})},this.scrollForExtraHeightOnAndroid=function(o){e.scrollToPosition(0,e.position.y+o,!0)},this.scrollToFocusedInput=function(o,t,r){void 0===t&&(t=e.props.extraHeight||0),void 0===r&&(r=e.props.keyboardOpeningTime||0),setTimeout(function(){if(e.mountedComponent){var r=e.getScrollResponder();r&&r.scrollResponderScrollNativeHandleToKeyboard(o,t,!0)}},r)},this.scrollIntoView=function(o){var t,r,n,l,a,i,s,d,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return regeneratorRuntime.async(function(p){for(;;)switch(p.prev=p.next){case 0:if(e._rnkasv_keyboardView&&o){p.next=2;break}return p.abrupt("return");case 2:return p.next=4,regeneratorRuntime.awrap(Promise.all([e._measureElement(e._rnkasv_keyboardView),e._measureElement(o)]));case 4:t=p.sent,r=babelHelpers.slicedToArray(t,2),n=r[0],l=r[1],a=u.getScrollPosition||e._defaultGetScrollPosition,i=a(n,l,e.position),s=i.x,d=i.y,c=i.animated,e.scrollToPosition(s,d,c);case 11:case"end":return p.stop()}},null,e)},this._defaultGetScrollPosition=function(e,o,t){return{x:0,y:Math.max(0,o.y-e.y+t.y),animated:!0}},this._measureElement=function(e){var o=(0,s.findNodeHandle)(e);return new Promise(function(e){s.UIManager.measureInWindow(o,function(o,t,r,n){e({x:o,y:t,width:r,height:n})})})},this._updateKeyboardSpace=function(o){if(e.props.enableAutomaticScroll){var t=o.endCoordinates.height+e.props.extraScrollHeight;e.props.viewIsInsideTabBar&&(t-=c),e.setState({keyboardSpace:t});var r=s.TextInput.State.currentlyFocusedField(),n=e.getScrollResponder();if(!r||!n)return;s.UIManager.viewIsDescendantOf(r,n.getInnerViewNode(),function(n){n&&s.UIManager.measureInWindow(r,function(n,l,a,i){var d=l+i,c=o.endCoordinates.screenY,u=e.props.extraScrollHeight+e.props.extraHeight;'ios'===s.Platform.OS?d>c-u&&e._scrollToFocusedInputWithNodeHandle(r):d>c?(t-=d-c,e.setState({keyboardSpace:t}),e.scrollForExtraHeightOnAndroid(u)):d>c-u&&e.scrollForExtraHeightOnAndroid(u-(c-d))})})}e.resetCoords||e.defaultResetScrollToCoords||(e.defaultResetScrollToCoords=e.position)},this._resetKeyboardSpace=function(){var o=e.props.viewIsInsideTabBar?c+e.props.extraScrollHeight||0:e.props.extraScrollHeight||0;e.setState({keyboardSpace:o}),!1!==e.props.enableResetScrollToCoords?e.resetCoords?e.scrollToPosition(e.resetCoords.x,e.resetCoords.y,!0):e.defaultResetScrollToCoords?(e.scrollToPosition(e.defaultResetScrollToCoords.x,e.defaultResetScrollToCoords.y,!0),e.defaultResetScrollToCoords=null):e.scrollToPosition(0,0,!0):e.defaultResetScrollToCoords=null},this._scrollToFocusedInputWithNodeHandle=function(o,t,r){void 0===t&&(t=e.props.extraHeight);var n=d.default.findNodeHandle(o);e.scrollToFocusedInput(n,t+e.props.extraScrollHeight,void 0!==r?r:e.props.keyboardOpeningTime||0)},this._handleOnScroll=function(o){e.position=o.nativeEvent.contentOffset},this._handleRef=function(o){e._rnkasv_keyboardView=o,e.props.innerRef&&e.props.innerRef(e._rnkasv_keyboardView)},this._onScroll=function(o){e._handleOnScroll(o),e.props.onScroll&&e.props.onScroll(o)}},t}},1143); +__d(function(t,e,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isIphoneX=o,n.ifIphoneX=a,n.getStatusBarHeight=function(t){return r.Platform.select({ios:a(t?44:30,20),android:r.StatusBar.currentHeight})};var r=e(17);function o(){var t=r.Dimensions.get('window');return!('ios'!==r.Platform.OS||r.Platform.isPad||r.Platform.isTVOS||812!==t.height&&812!==t.width)}function a(t,e){return o()?t:e}},1144); +__d(function(e,l,r,t){Object.defineProperty(t,"__esModule",{value:!0});var u=l(17),a=l(1143),d=babelHelpers.interopRequireDefault(a);t.default=(0,d.default)(u.ScrollView)},1145); +__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1143),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.ListView)},1146); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var u=t(17),r=t(1143),d=babelHelpers.interopRequireDefault(r);a.default=(0,d.default)(u.FlatList)},1147); +__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1143),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.SectionList)},1148); +__d(function(t,e,o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Footer=void 0;var n=Object.assign||function(t){for(var e=1;ec.default.deviceWidth?"portrait":"landscape"},o}return(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(e,a.Component),i(e,[{key:"layoutChange",value:function(t){var e=Math.max(c.default.deviceWidth,c.default.deviceHeight);t.width>=e?this.setState({orientation:"landscape"}):this.setState({orientation:"portrait"})}},{key:"calculateHeight",value:function(t,e){var o=null;o=void 0!=e?e:c.default.Inset;var r="portrait"===t?o.portrait:o.landscape;return(void 0!=this.props.style.height?this.props.style.height:this.props.style[1]&&this.props.style[1].height?this.props.style[1].height:this.props.style[0].height)+r.bottomInset}},{key:"calculatePadder",value:function(t,e){var o=null;o=void 0!=e?e:c.default.Inset;var r="portrait"===t?o.portrait:o.landscape,n=null;return void 0!==this.props.style[1]?void 0===this.props.style[1].padding&&void 0===this.props.style[1].paddingTop||(n=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+r.bottomInset):n=void 0!==this.props.style.padding&&void 0!==this.props.style.paddingTop?(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+r.bottomInset:r.bottomInset,n}},{key:"render",value:function(){var t=this,e=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:c.default;return c.default.isIphoneX?s.default.createElement(l.View,n({ref:function(e){return t._root=e}},this.props,{onLayout:function(e){return t.layoutChange(e.nativeEvent.layout)},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,e.Inset),paddingBottom:this.calculatePadder(this.state.orientation,e.Inset)}],__source:{fileName:"src/basic/Footer.js",lineNumber:85}})):s.default.createElement(l.View,n({ref:function(e){return t._root=e}},this.props,{__source:{fileName:"src/basic/Footer.js",lineNumber:104}}))}}]),e})();f.contextTypes={theme:p.default.object},f.propTypes=n({},l.ViewPropTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array])});var y=(0,u.connectStyle)("NativeBase.Footer",{},d.default)(f);r.Footer=y},1149); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FooterTab=void 0;var o=Object.assign||function(e){for(var t=1;tthis.props.dataSource.length-1&&t===this.props.dataSource.length-1?[t,0]:t>this.props.dataSource.length-1?[0,1]:[t,n]}},{key:"selectNext",value:function(){var e=this,t=this.props.dataSource,n=t.indexOf(this.state.selectedItem);if(!this.state.looping){if(n===t.length-1)return this.setState({disabled:!0});if(n===t.length-2)return setTimeout(function(){e.setState({selectedItem:t[n+1]}),setTimeout(function(){e.setState({lastCard:!0})},350)},50)}var a=this.findNextIndexes(n);setTimeout(function(){e.setState({selectedItem:e.props.dataSource[a[0]]}),setTimeout(function(){e.setState({selectedItem2:e.props.dataSource[a[1]]})},350)},50)}},{key:"swipeRight",value:function(){var e=this;this.props.onSwiping&&this.props.onSwiping("right"),setTimeout(function(){u.Animated.timing(e.state.fadeAnim,{toValue:1}).start(),u.Animated.spring(e.state.enter,{toValue:1,friction:7}).start(),e.selectNext(),u.Animated.decay(e.state.pan,{velocity:{x:8,y:1},deceleration:.98}).start(e._resetState.bind(e))},300)}},{key:"swipeLeft",value:function(){var e=this;this.props.onSwiping&&this.props.onSwiping("left"),setTimeout(function(){u.Animated.timing(e.state.fadeAnim,{toValue:1}).start(),u.Animated.spring(e.state.enter,{toValue:1,friction:7}).start(),e.selectNext(),u.Animated.decay(e.state.pan,{velocity:{x:-8,y:1},deceleration:.98}).start(e._resetState.bind(e))},300)}},{key:"componentWillMount",value:function(){var e=this;this._panResponder=u.PanResponder.create({onMoveShouldSetResponderCapture:function(){return!0},onMoveShouldSetPanResponderCapture:function(e,t){return Math.abs(t.dx)>5},onPanResponderGrant:function(t,n){e.state.pan.setOffset({x:e.state.pan.x._value,y:e.state.pan.y._value}),e.state.pan.setValue({x:0,y:0})},onPanResponderMove:function(t,n){n.dx>20?e.props.onSwiping&&e.props.onSwiping("right",n.dx):n.dx<-20&&e.props.onSwiping&&e.props.onSwiping("left",n.dx);var a=Math.abs(.0013*n.dx);Math.abs(.0022*n.dx);a>.2&&(a=.2),u.Animated.timing(e.state.fadeAnim,{toValue:.8+a}).start(),u.Animated.spring(e.state.enter,{toValue:.8+a,friction:7}).start(),u.Animated.event([null,{dx:e.state.pan.x}])(t,n)},onPanResponderRelease:function(t,n){var a=n.vx,i=n.vy;e.props.onSwiping&&e.props.onSwiping(null);var r=void 0;a>=0?r=(0,d.default)(a,4.5,10):a<0&&(r=-1*(0,d.default)(-1*a,4.5,10)),Math.abs(e.state.pan.x._value)>120?(r>0?(e.props.onSwipeRight&&e.props.onSwipeRight(e.state.selectedItem),e.selectNext()):(e.props.onSwipeLeft&&e.props.onSwipeLeft(e.state.selectedItem),e.selectNext()),u.Animated.decay(e.state.pan,{velocity:{x:r,y:i},deceleration:.98}).start(e._resetState.bind(e))):u.Animated.spring(e.state.pan,{toValue:{x:0,y:0},friction:4}).start()}})}},{key:"_resetState",value:function(){this.state.pan.setValue({x:0,y:0}),this.state.enter.setValue(.8),this.state.fadeAnim.setValue(.8),this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top}),this.props.onSwiping&&this.props.onSwiping(null)}},{key:"getCardStyles",value:function(){var e=this.state,t=e.pan,n=(e.pan2,e.enter),a=[t.x,t.y];return[{transform:[{translateX:a[0]},{translateY:a[1]},{rotate:t.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]})}],opacity:t.x.interpolate({inputRange:[-320,0,320],outputRange:[.9,1,.9]})},{transform:[{scale:n}]}]}},{key:"render",value:function(){return this.state.disabled?l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:258}},l.default.createElement(u.View,{__source:{fileName:i,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())):this.state.lastCard?l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:265}},void 0===this.state.selectedItem?l.default.createElement(u.View,{__source:{fileName:i,lineNumber:267}}):l.default.createElement(u.View,{__source:{fileName:i,lineNumber:269}},l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:280}}),this.props.renderItem(this.state.selectedItem)))):l.default.createElement(u.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:i,lineNumber:295}},void 0===this.state.selectedItem?l.default.createElement(u.View,{__source:{fileName:i,lineNumber:297}}):l.default.createElement(u.View,{__source:{fileName:i,lineNumber:299}},l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),l.default.createElement(u.Animated.View,r({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:i,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))))}}]),t})();h.propTypes=r({},u.ViewPropTypes,{style:p.default.oneOfType([p.default.object,p.default.number,p.default.array]),dataSource:p.default.array});var y=(0,c.connectStyle)("NativeBase.DeckSwiper",{},f.default)(h);a.DeckSwiper=y},1155); +__d(function(n,t,o,r){o.exports=function(n,t,o){return to?o:n:nt?t:n}},1156); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Item=void 0;var i="src/basic/Item.js",r=Object.assign||function(e){for(var t=1;t=0&&e.page!==this.state.currentPage&&this.goToPage(e.page)},goToPage:function(e){var t=e*this.state.containerWidth;this.scrollView&&this.scrollView.scrollTo({x:t,y:0,animated:!this.props.scrollWithoutAnimation});var n=this.state.currentPage;this.updateSceneKeys({page:e,callback:this._onChangeTab.bind(this,n,e)})},renderTabBar:function(e){return!1===this.props.renderTabBar?null:this.props.renderTabBar?h.cloneElement(this.props.renderTabBar(e),e):h.createElement(_,o({},e,{__source:{fileName:a,lineNumber:116}}))},updateSceneKeys:function(e){var t=e.page,n=e.children,r=void 0===n?this.props.children:n,o=e.callback,a=void 0===o?function(){}:o,i=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:t,children:r});this.setState({currentPage:t,sceneKeys:i},a)},newSceneKeys:function(e){var t=this,n=e.previousKeys,r=void 0===n?[]:n,o=e.currentPage,a=void 0===o?0:o,i=e.children,s=void 0===i?this.props.children:i,l=[];return this._children(s).forEach(function(e,n){var o=t._makeSceneKey(e,n);(t._keyExists(r,o)||t._shouldRenderSceneKey(n,a))&&l.push(o)}),l},_shouldRenderSceneKey:function(e,t){var n=this.props.prerenderingSiblingsNumber;return et-n-1},_keyExists:function(e,t){return e.find(function(e){return t===e})},_makeSceneKey:function(e,t){return e.props.heading+"_"+t},renderScrollableContent:function(){var e=this,t=this._composeScenes();return h.createElement(y,o({horizontal:!0,pagingEnabled:!0,automaticallyAdjustContentInsets:!1,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function(t){e.scrollView=t},onScroll:function(t){var n=t.nativeEvent.contentOffset.x;e._updateScrollValue(n/e.state.containerWidth)},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,scrollEnabled:!this.props.locked,directionalLockEnabled:!0,alwaysBounceVertical:!1,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:a,lineNumber:170}}),t)},_composeScenes:function(){var e=this;return this._children().map(function(t,n){var r=e._makeSceneKey(t,n);return h.createElement(S,{key:t.key,shouldUpdated:e._shouldRenderSceneKey(n,e.state.currentPage),style:{width:e.state.containerWidth},__source:{fileName:a,lineNumber:205}},e._keyExists(e.state.sceneKeys,r)?t:h.createElement(f,{heading:t.props.heading,__source:{fileName:a,lineNumber:216}}))})},_onMomentumScrollBeginAndEnd:function(e){var t=e.nativeEvent.contentOffset.x,n=Math.round(t/this.state.containerWidth);this.state.currentPage!==n&&this._updateSelectedPage(n)},_updateSelectedPage:function(e){var t=e;"object"==typeof t&&(t=e.nativeEvent.position);var n=this.state.currentPage;this.updateSceneKeys({page:t,callback:this._onChangeTab.bind(this,n,t)})},_onChangeTab:function(e,t){this.props.onChangeTab({i:t,ref:this._children()[t],from:e})},_updateScrollValue:function(e){this.state.scrollValue.setValue(e),this.props.onScroll(e)},_handleLayout:function(e){var t=this,n=e.nativeEvent.layout.width;Math.round(n)!==Math.round(this.state.containerWidth)&&(this.setState({containerWidth:n}),this.requestAnimationFrame(function(){t.goToPage(t.state.currentPage)}))},_children:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children;return h.Children.map(e,function(e){return e})},render:function(){var e,t="overlayTop"===this.props.tabBarPosition||"overlayBottom"===this.props.tabBarPosition,n={goToPage:this.goToPage,tabs:this._children().map(function(e){return e.props.heading}),tabStyle:this._children().map(function(e){return e.props.tabStyle}),activeTabStyle:this._children().map(function(e){return e.props.activeTabStyle}),textStyle:this._children().map(function(e){return e.props.textStyle}),activeTextStyle:this._children().map(function(e){return e.props.activeTextStyle}),tabHeaderStyle:this._children().map(function(e){return l.default.get(e.props.heading.props,"style",void 0)}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};(this.props.tabBarBackgroundColor&&(n.backgroundColor=this.props.tabBarBackgroundColor),this.props.tabBarActiveTextColor&&(n.activeTextColor=this.props.tabBarActiveTextColor),this.props.tabBarInactiveTextColor&&(n.inactiveTextColor=this.props.tabBarInactiveTextColor),this.props.tabBarTextStyle&&(n.textStyle=this.props.tabBarTextStyle),this.props.tabBarUnderlineStyle&&(n.underlineStyle=this.props.tabBarUnderlineStyle),this.props.tabContainerStyle&&(n.tabContainerStyle=this.props.tabContainerStyle),t)&&(n.style=(p(e={position:"absolute",left:0,right:0},"overlayTop"===this.props.tabBarPosition?"top":"bottom",0),p(e,"backgroundColor","rgba(255, 255, 255, 0.7)"),e));return h.createElement(f,{style:[B.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:a,lineNumber:322}},("top"===this.props.tabBarPosition||"overlayTop"===this.props.tabBarPosition)&&this.renderTabBar(n),this.renderScrollableContent(),("bottom"===this.props.tabBarPosition||"overlayBottom"===this.props.tabBarPosition)&&this.renderTabBar(n))}});r.default=P;var B=m.create({container:{flex:1},scrollableContentAndroid:{flex:1}})},1162); +__d(function(e,r,n,t){var o=Object.assign||function(e){for(var r=1;r=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n})(e,["shouldUpdated"]);return a.createElement(s,o({},n,{__source:{fileName:"src/basic/Tabs/SceneComponent.js",lineNumber:11}}),a.createElement(i,{shouldUpdate:r,__source:{fileName:"src/basic/Tabs/SceneComponent.js",lineNumber:12}},n.children))}},1163); +__d(function(e,t,n,r){var o=(function(){function e(e,t){for(var n=0;nr||this.necessarilyMeasurementsCompleted(t,t===r)&&(this.updateTabPanel(t,a),this.updateTabUnderline(t,a,n))},necessarilyMeasurementsCompleted:function(e,t){return this._tabsMeasurements[e]&&(t||this._tabsMeasurements[e+1])&&this._tabContainerMeasurements&&this._containerMeasurements},updateTabPanel:function(e,t){var a=this._containerMeasurements.width,n=this._tabsMeasurements[e].width,r=this._tabsMeasurements[e+1],i=r&&r.width||0,s=this._tabsMeasurements[e].left+t*n;s=(s-=(a-(1-t)*n-t*i)/2)>=0?s:0,this._scrollView.scrollTo({x:s,y:0,animated:!1})},updateTabUnderline:function(e,t,a){var n=this._tabsMeasurements[e].left,r=this._tabsMeasurements[e].right;if(e0}),n.default.createElement(P.default,{title:H.default.t('screens.confirmKey.process.nextButton'),onPress:this.onNextPressed,style:o.default.button})))))}}]),t})(N.default);x.navigatorButtons=babelHelpers.extends({},u.androidNavigationButtons),l.default=x},1185); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(17),i=t(798),l=babelHelpers.interopRequireDefault(i),u=a.StyleSheet.create(babelHelpers.extends({},l.default,{gridView:{flex:1},gridContainer:babelHelpers.extends({},l.default.privateKeyGridViewContainer),buttonContainer:babelHelpers.extends({},l.default.buttonContainerMultiple,{marginTop:15}),button:{width:90},textInput:{marginLeft:10},firstTextInput:{marginLeft:0}}));r.default=u},1186); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),l=babelHelpers.interopRequireWildcard(a),s=t(17),o=t(366),i=babelHelpers.interopRequireDefault(o),u=t(1188),p=babelHelpers.interopRequireDefault(u),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderItems",value:function(e,t){var r=this.props.renderItem;return i.default.map(i.default.range(0,t),function(t){return r(e+t)})}},{key:"renderRows",value:function(e){var t=this,r=this.props,n=r.activeRow,a=r.disableInactiveRows,o=r.itemsPerRow;return i.default.map(i.default.range(0,e),function(e){return l.createElement(s.View,{style:[p.default.row,e>0&&p.default.rowMargin,a&&n!==e&&p.default.rowInactive],key:e},t.renderItems(e*o,o))})}},{key:"render",value:function(){var e=this.props,t=e.style,r=e.rowsCount;return l.createElement(s.View,{style:[p.default.container,t]},this.renderRows(r))}}]),t})(l.Component);c.defaultProps={rowsCount:0,itemsPerRow:1,disableInactiveRows:!1,activeRow:0},n.default=c},1187); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(17).StyleSheet.create({container:{},row:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',flex:1},rowMargin:{marginTop:14},rowInactive:{opacity:.1}});r.default=o},1188); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(51),l=babelHelpers.interopRequireWildcard(o),u=t(17),i=t(1190),a=babelHelpers.interopRequireDefault(i),s=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textInput=null,n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=t.editable,o=t.isLast,s=t.value,c=t.index,b=t.label,p=t.onFocus,d=t.onSubmit,f=t.onChange;return l.createElement(u.View,{style:[a.default.container,n]},l.createElement(u.TextInput,{underlineColorAndroid:"transparent",editable:r,autoCorrect:!1,autoCapitalize:"none",returnKeyType:o?'done':'next',style:a.default.textInput,value:s,blurOnSubmit:o,selectionColor:i.cursorColor,onFocus:(function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(e){return p(c,(0,u.findNodeHandle)(e.target))}),onChangeText:function(e){return f(c,e)},onSubmitEditing:function(){return d(c)},ref:function(t){return e.textInput=t}}),l.createElement(u.Text,{style:a.default.text},b))}}]),t})(l.Component);s.defaultProps={editable:!0,label:'',value:'',isLast:!0,index:0,onFocus:function(){},onSubmit:function(){},onChange:function(){},style:{}},r.default=s},1189); +__d(function(e,t,o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.cursorColor=void 0;var i=t(17),l=t(515),n=babelHelpers.interopRequireDefault(l),a=(r.cursorColor=n.default.BitnationLightColor,i.StyleSheet.create({container:{height:44,flex:1},textInput:{backgroundColor:n.default.white,color:n.default.BitnationLightColor,fontSize:16,paddingTop:2,paddingBottom:2,paddingLeft:5,height:24},text:{color:n.default.privateKeyTextInputLabelColor,fontSize:12,textAlign:'center',marginTop:4}}));r.default=a},1190); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),n=babelHelpers.interopRequireDefault(a),u=t(17),s=t(1192),o=babelHelpers.interopRequireDefault(s),i=t(627),p=t(797),f=babelHelpers.interopRequireDefault(p),b=t(780),d=babelHelpers.interopRequireDefault(b),c=t(804),H=babelHelpers.interopRequireDefault(c),E=t(516),y=t(1183),R=babelHelpers.interopRequireDefault(y),_=t(665),v=babelHelpers.interopRequireDefault(_),C=t(801),h=(function(e){function t(){var e,l,r,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,u=Array(n),s=0;s0}),this.state.currentPage<_.KEY_PAGE_COUNT-1?i.createElement(M.default,{title:w.default.t('screens.enterPrivateKey.nextButton'),onPress:this.onNextPressed,style:p.default.button}):i.createElement(M.default,{title:w.default.t('screens.enterPrivateKey.doneButton'),onPress:this.onDonePressed,style:p.default.button,enabled:t.doneShouldBeEnabled(this.props)}))))))}}],[{key:"doneShouldBeEnabled",value:function(e){return s.default.reduce(e.enteredMnemonic,function(e,t){return e&&!s.default.isEmpty(t)},!0)&&!e.mnemonicValidationInProgress||!1}}]),t})(V.default);G.defaultProps={isVerification:!1,isOnResetPassProcess:!1};r.default=(0,c.connect)(function(e){return babelHelpers.extends({},e.key,{testingModeActive:e.testingMode.isActive})},function(e){return{validateMnemonic:function(){e((0,x.validateEnteredMnemonic)())},changeMnemonic:function(t){e((0,x.changeEnteredMnemonic)(t))},mnemonicConfirmed:function(t){e((0,k.mnemonicConfirmed)(t))},validateMnemonicWithAccount:function(t,n){e((0,k.validateMnemonicWithAccount)(t,n))}}})(G)},1193); +__d(function(e,r,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardAwareScrollView=t.KeyboardAwareSectionList=t.KeyboardAwareFlatList=t.KeyboardAwareListView=t.listenToKeyboardEvents=void 0;var l=r(1195),i=babelHelpers.interopRequireDefault(l),o=r(1196),b=babelHelpers.interopRequireDefault(o),d=r(1197),u=babelHelpers.interopRequireDefault(d),s=r(1198),n=babelHelpers.interopRequireDefault(s),f=r(1199),w=babelHelpers.interopRequireDefault(f);t.listenToKeyboardEvents=i.default,t.KeyboardAwareListView=u.default,t.KeyboardAwareFlatList=n.default,t.KeyboardAwareSectionList=w.default,t.KeyboardAwareScrollView=b.default},1194); +__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var l=o(51),n=babelHelpers.interopRequireDefault(l),a=o(105),i=babelHelpers.interopRequireDefault(a),s=o(17),d=babelHelpers.interopRequireDefault(s),c=(0,o(1144).isIphoneX)()?83:49,p=250,u=75;r.default=function(e){var o,t,r;return t=o=(function(o){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.call(o),o.keyboardWillShowEvent=void 0,o.keyboardWillHideEvent=void 0,o.position={x:0,y:0},o.defaultResetScrollToCoords=null;var l=e.viewIsInsideTabBar?c:0;return o.state={keyboardSpace:l},o}return babelHelpers.inherits(t,o),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.mountedComponent=!0,'ios'===s.Platform.OS?(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardWillShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardWillHide',this._resetKeyboardSpace)):'android'===s.Platform.OS&&this.props.enableOnAndroid&&(this.keyboardWillShowEvent=s.Keyboard.addListener('keyboardDidShow',this._updateKeyboardSpace),this.keyboardWillHideEvent=s.Keyboard.addListener('keyboardDidHide',this._resetKeyboardSpace))}},{key:"componentWillReceiveProps",value:function(e){if(e.viewIsInsideTabBar!==this.props.viewIsInsideTabBar){var o=e.viewIsInsideTabBar?c:0;this.state.keyboardSpace!==o&&this.setState({keyboardSpace:o})}}},{key:"componentWillUnmount",value:function(){this.mountedComponent=!1,this.keyboardWillShowEvent&&this.keyboardWillShowEvent.remove(),this.keyboardWillHideEvent&&this.keyboardWillHideEvent.remove()}},{key:"render",value:function(){var o=this.props,t=o.enableOnAndroid,r=o.contentContainerStyle,l=void 0;return'android'===s.Platform.OS&&t&&(l=[].concat(r).concat({paddingBottom:((r||{}).paddingBottom||0)+this.state.keyboardSpace})),n.default.createElement(e,babelHelpers.extends({ref:this._handleRef,keyboardDismissMode:"interactive",contentInset:{bottom:this.state.keyboardSpace},automaticallyAdjustContentInsets:!1,showsVerticalScrollIndicator:!0,scrollEventThrottle:1},this.props,{contentContainerStyle:l||r,keyboardSpace:this.state.keyboardSpace,getScrollResponder:this.getScrollResponder,scrollToPosition:this.scrollToPosition,scrollToEnd:this.scrollToEnd,scrollForExtraHeightOnAndroid:this.scrollForExtraHeightOnAndroid,scrollToFocusedInput:this.scrollToFocusedInput,resetKeyboardSpace:this._resetKeyboardSpace,handleOnScroll:this._handleOnScroll,onScroll:this._onScroll}))}}]),t})(n.default.Component),o.propTypes={viewIsInsideTabBar:i.default.bool,resetScrollToCoords:i.default.shape({x:i.default.number.isRequired,y:i.default.number.isRequired}),enableResetScrollToCoords:i.default.bool,enableAutomaticScroll:i.default.bool,extraHeight:i.default.number,extraScrollHeight:i.default.number,keyboardOpeningTime:i.default.number,onScroll:i.default.func,contentContainerStyle:i.default.any,enableOnAndroid:i.default.bool,innerRef:i.default.func},o.defaultProps={enableAutomaticScroll:!0,extraHeight:u,extraScrollHeight:0,enableResetScrollToCoords:!0,keyboardOpeningTime:p,viewIsInsideTabBar:!1},r=function(){var e=this;this.getScrollResponder=function(){return e._rnkasv_keyboardView&&e._rnkasv_keyboardView.getScrollResponder()},this.scrollToPosition=function(o,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=e.getScrollResponder();l&&l.scrollResponderScrollTo({x:o,y:t,animated:r})},this.scrollToEnd=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e.getScrollResponder();t&&t.scrollResponderScrollToEnd({animated:o})},this.scrollForExtraHeightOnAndroid=function(o){e.scrollToPosition(0,e.position.y+o,!0)},this.scrollToFocusedInput=function(o,t,r){void 0===t&&(t=e.props.extraHeight||0),void 0===r&&(r=e.props.keyboardOpeningTime||0),setTimeout(function(){if(e.mountedComponent){var r=e.getScrollResponder();r&&r.scrollResponderScrollNativeHandleToKeyboard(o,t,!0)}},r)},this._updateKeyboardSpace=function(o){if(e.props.enableAutomaticScroll){var t=o.endCoordinates.height+e.props.extraScrollHeight;e.props.viewIsInsideTabBar&&(t-=c),e.setState({keyboardSpace:t});var r=s.TextInput.State.currentlyFocusedField(),l=e.getScrollResponder();if(!r||!l)return;s.UIManager.viewIsDescendantOf(r,l.getInnerViewNode(),function(l){l&&s.UIManager.measureInWindow(r,function(l,n,a,i){var d=n+i,c=o.endCoordinates.screenY,p=e.props.extraScrollHeight+e.props.extraHeight;'ios'===s.Platform.OS?d>c-p&&e._scrollToFocusedInputWithNodeHandle(r):d>c?(t-=d-c,e.setState({keyboardSpace:t}),e.scrollForExtraHeightOnAndroid(p)):d>c-p&&e.scrollForExtraHeightOnAndroid(p-(c-d))})})}e.resetCoords||e.defaultResetScrollToCoords||(e.defaultResetScrollToCoords=e.position)},this._resetKeyboardSpace=function(){var o=e.props.viewIsInsideTabBar?c+e.props.extraScrollHeight||0:e.props.extraScrollHeight||0;e.setState({keyboardSpace:o}),!1!==e.props.enableResetScrollToCoords?e.resetCoords?e.scrollToPosition(e.resetCoords.x,e.resetCoords.y,!0):e.defaultResetScrollToCoords?(e.scrollToPosition(e.defaultResetScrollToCoords.x,e.defaultResetScrollToCoords.y,!0),e.defaultResetScrollToCoords=null):e.scrollToPosition(0,0,!0):e.defaultResetScrollToCoords=null},this._scrollToFocusedInputWithNodeHandle=function(o,t,r){void 0===t&&(t=e.props.extraHeight);var l=d.default.findNodeHandle(o);e.scrollToFocusedInput(l,t+e.props.extraScrollHeight,void 0!==r?r:e.props.keyboardOpeningTime||0)},this._handleOnScroll=function(o){e.position=o.nativeEvent.contentOffset},this._handleRef=function(o){e._rnkasv_keyboardView=o,e.props.innerRef&&e.props.innerRef(e._rnkasv_keyboardView)},this._onScroll=function(o){e._handleOnScroll(o),e.props.onScroll&&e.props.onScroll(o)}},t}},1195); +__d(function(e,l,r,t){Object.defineProperty(t,"__esModule",{value:!0});var u=l(17),a=l(1195),d=babelHelpers.interopRequireDefault(a);t.default=(0,d.default)(u.ScrollView)},1196); +__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1195),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.ListView)},1197); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var u=t(17),r=t(1195),d=babelHelpers.interopRequireDefault(r);a.default=(0,d.default)(u.FlatList)},1198); +__d(function(e,t,l,u){Object.defineProperty(u,"__esModule",{value:!0});var a=t(17),i=t(1195),r=babelHelpers.interopRequireDefault(i);u.default=(0,r.default)(a.SectionList)},1199); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(17),i=t(798),l=babelHelpers.interopRequireDefault(i),u=a.StyleSheet.create(babelHelpers.extends({},l.default,{gridView:{flex:1},gridContainer:babelHelpers.extends({},l.default.privateKeyGridViewContainer),buttonContainer:babelHelpers.extends({},l.default.buttonContainerMultiple,{marginTop:15}),button:{width:90},textInput:{marginLeft:10},firstTextInput:{marginLeft:0}}));r.default=u},1200); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),i=t(297),s=t(1202),o=babelHelpers.interopRequireDefault(s),f=t(780),c=babelHelpers.interopRequireDefault(f),d=t(797),b=babelHelpers.interopRequireDefault(d),p=t(804),R=babelHelpers.interopRequireDefault(p),v=t(1187),_=babelHelpers.interopRequireDefault(v),E=t(802),m=babelHelpers.interopRequireDefault(E),w=t(1189),y=babelHelpers.interopRequireDefault(w),P=t(516),C=t(1183),h=babelHelpers.interopRequireDefault(C),H=t(665),O=babelHelpers.interopRequireDefault(H),T=t(801),q=babelHelpers.interopRequireDefault(T),D=t(586),N=babelHelpers.interopRequireDefault(D),K=t(763),x=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.activePage=function(e){return Math.floor(e.activeRow/P.KEY_PAGE_ROW_COUNT)},a.onNextPressed=function(){a.setState(function(e){return{activeRow:Math.min(e.activeRow+1,P.KEY_ROW_COUNT-1)}})},a.onPreviousPressed=function(){a.setState(function(e){return{activeRow:Math.max(e.activeRow-1,0)}})},a.renderText=function(e){var t=e+a.activePage(a.state)*P.KEY_PAGE_LENGTH;return n.default.createElement(y.default,{editable:!1,index:t,value:a.state.mnemonic[t],label:(t+1).toString(),key:t,style:t%P.KEY_COLUMN_COUNT==0?o.default.firstTextInput:o.default.textInput})},a.state={activeRow:0,mnemonic:[]},N.default.getMnemonic().then(function(e){a.setState({mnemonic:e})}).catch(function(e){(0,K.errorAlert)(e)}),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(u.View,{style:o.default.screenContainer},n.default.createElement(c.default,null),n.default.createElement(b.default,null),n.default.createElement(u.View,{style:o.default.bodyContainer},n.default.createElement(u.View,{style:o.default.bodyTopSpacer}),n.default.createElement(R.default,{style:o.default.panelViewTransparent,childrenContainerStyle:o.default.noflex},n.default.createElement(h.default,{paragraphs:O.default.t('screens.viewPrivateKey.instructions')}),n.default.createElement(u.View,{style:o.default.gridContainer},n.default.createElement(_.default,{itemsPerRow:P.KEY_COLUMN_COUNT,rowsCount:P.KEY_PAGE_ROW_COUNT,renderItem:this.renderText,activeRow:this.state.activeRow%P.KEY_PAGE_ROW_COUNT,disableInactiveRows:!0,style:o.default.gridView})),n.default.createElement(u.View,{style:o.default.buttonContainer},n.default.createElement(m.default,{title:O.default.t('screens.viewPrivateKey.previousButton'),onPress:this.onPreviousPressed,style:o.default.button,enabled:this.state.activeRow>0}),n.default.createElement(m.default,{title:O.default.t('screens.viewPrivateKey.nextButton'),onPress:this.onNextPressed,style:o.default.button,enabled:this.state.activeRow1){var r=n.state.index;n.props.loop&&r++,i[n.state.dir]='y'===n.state.dir?l*r:o*r}n.state.offset&&o===n.state.width&&l===n.state.height||(a.offset=i),'ios'===s.Platform.OS&&n.initialRender&&n.state.total>1&&(n.scrollView.scrollTo(babelHelpers.extends({},i,{animated:!1})),n.initialRender=!1),n.setState(a)},n.loopJump=function(){if(n.state.loopJump){var t=n.state.index+(n.props.loop?1:0),e=n.scrollView;n.loopJumpTimer=setTimeout(function(){return e.setPageWithoutAnimation&&e.setPageWithoutAnimation(t)},50)}},n.autoplay=function(){Array.isArray(n.props.children)&&n.props.autoplay&&!n.internals.isScrolling&&!n.state.autoplayEnd&&(n.autoplayTimer&&clearTimeout(n.autoplayTimer),n.autoplayTimer=setTimeout(function(){if(!n.props.loop&&(n.props.autoplayDirection?n.state.index===n.state.total-1:0===n.state.index))return n.setState({autoplayEnd:!0});n.scrollBy(n.props.autoplayDirection?1:-1)},1e3*n.props.autoplayTimeout))},n.onScrollBegin=function(t){n.internals.isScrolling=!0,n.props.onScrollBeginDrag&&n.props.onScrollBeginDrag(t,n.fullState(),n)},n.onScrollEnd=function(t){n.internals.isScrolling=!1,t.nativeEvent.contentOffset||('x'===n.state.dir?t.nativeEvent.contentOffset={x:t.nativeEvent.position*n.state.width}:t.nativeEvent.contentOffset={y:t.nativeEvent.position*n.state.height}),n.updateIndex(t.nativeEvent.contentOffset,n.state.dir,function(){n.autoplay(),n.loopJump(),n.props.onMomentumScrollEnd&&n.props.onMomentumScrollEnd(t,n.fullState(),n)})},n.onScrollEndDrag=function(t){var e=t.nativeEvent.contentOffset,o=n.props,l=o.horizontal,i=o.children,a=n.state.index,r=n.internals.offset;(l?r.x:r.y)!==(l?e.x:e.y)||0!==a&&a!==i.length-1||(n.internals.isScrolling=!1)},n.updateIndex=function(t,e,o){var l=n.state,i=l.index,a=t[e]-n.internals.offset[e],r='x'===e?l.width:l.height,s=!1;if(a){i=parseInt(i+Math.round(a/r)),n.props.loop&&(i<=-1?(i=l.total-1,t[e]=r*l.total,s=!0):i>=l.total&&(i=0,t[e]=r,s=!0));var u={};u.index=i,u.loopJump=s,n.internals.offset=t,s?t[e]===n.internals.offset[e]?(u.offset={x:0,y:0},u.offset[e]=t[e]+1,n.setState(u,function(){n.setState({offset:t},o)})):(u.offset=t,n.setState(u,o)):n.setState(u,o)}},n.scrollBy=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!(n.internals.isScrolling||n.state.total<2)){var o=n.state,l=(n.props.loop?1:0)+t+n.state.index,i=0,a=0;'x'===o.dir&&(i=l*o.width),'y'===o.dir&&(a=l*o.height),'ios'!==s.Platform.OS?n.scrollView&&n.scrollView[e?'setPage':'setPageWithoutAnimation'](l):n.scrollView&&n.scrollView.scrollTo({x:i,y:a,animated:e}),n.internals.isScrolling=!0,n.setState({autoplayEnd:!1}),e&&'ios'===s.Platform.OS||setImmediate(function(){n.onScrollEnd({nativeEvent:{position:l}})})}},n.scrollViewPropOverrides=function(){var t=n.props,e={};for(var o in t)'function'==typeof t[o]&&'onMomentumScrollEnd'!==o&&'renderPagination'!==o&&'onScrollBeginDrag'!==o&&(function(){var l=t[o];e[o]=function(t){return l(t,n.fullState(),n)}})();return e},n.renderPagination=function(){if(n.state.total<=1)return null;for(var t=[],e=n.props.activeDot||i.default.createElement(s.View,{style:[{backgroundColor:n.props.activeDotColor||'#007aff',width:8,height:8,borderRadius:4,marginLeft:3,marginRight:3,marginTop:3,marginBottom:3},n.props.activeDotStyle]}),o=n.props.dot||i.default.createElement(s.View,{style:[{backgroundColor:n.props.dotColor||'rgba(0,0,0,.2)',width:8,height:8,borderRadius:4,marginLeft:3,marginRight:3,marginTop:3,marginBottom:3},n.props.dotStyle]}),l=0;l1&&void 0!==arguments[1]&&arguments[1],o=this.state||{width:0,height:0,offset:{x:0,y:0}},n={autoplayEnd:!1,loopJump:!1,offset:{}};n.total=t.children?t.children.length||1:0,o.total!==n.total||e?n.index=n.total>1?Math.min(t.index,n.total-1):0:n.index=o.index;var l=s.Dimensions.get('window'),i=l.width,a=l.height;return n.dir=!1===t.horizontal?'y':'x',t.width?n.width=t.width:this.state&&this.state.width?n.width=this.state.width:n.width=i,t.height?n.height=t.height:this.state&&this.state.height?n.height=this.state.height:n.height=a,n.offset[n.dir]='y'===n.dir?a*t.index:i*t.index,this.internals=babelHelpers.extends({},this.internals,{isScrolling:!1}),n}},{key:"fullState",value:function(){return babelHelpers.extends({},this.state,this.internals)}},{key:"render",value:function(){this.state,this.props;var t=this.state,e=t.index,o=t.total,n=t.width,l=t.height,a=this.props,r=a.children,d=a.containerStyle,p=a.loop,c=a.loadMinimal,f=a.loadMinimalSize,h=a.loadMinimalLoader,m=a.renderPagination,y=a.showsButtons,g=a.showsPagination,b=p?1:0,w=[],S=[{width:n,height:l},u.slide],x={width:n,height:l,flex:1,justifyContent:'center',alignItems:'center'};return o>1?(w=Object.keys(r),p&&(w.unshift(o-1+''),w.push('0')),w=w.map(function(t,o){return c?o>=e+b-f&&o<=e+b+f?i.default.createElement(s.View,{style:S,key:o},r[t]):i.default.createElement(s.View,{style:x,key:o},h||i.default.createElement(s.ActivityIndicator,null)):i.default.createElement(s.View,{style:S,key:o},r[t])})):w=i.default.createElement(s.View,{style:S,key:0},r),i.default.createElement(s.View,{style:[u.container,d],onLayout:this.onLayout},this.renderScrollView(w),g&&(m?m(e,o,this):this.renderPagination()),this.renderTitle(),y&&this.renderButtons())}}]),e})(l.Component);d.propTypes={horizontal:r.default.bool,children:r.default.node.isRequired,containerStyle:r.default.oneOfType([r.default.object,r.default.number]),style:r.default.oneOfType([r.default.object,r.default.number]),scrollViewStyle:r.default.oneOfType([r.default.object,r.default.number]),pagingEnabled:r.default.bool,showsHorizontalScrollIndicator:r.default.bool,showsVerticalScrollIndicator:r.default.bool,bounces:r.default.bool,scrollsToTop:r.default.bool,removeClippedSubviews:r.default.bool,automaticallyAdjustContentInsets:r.default.bool,showsPagination:r.default.bool,showsButtons:r.default.bool,disableNextButton:r.default.bool,loadMinimal:r.default.bool,loadMinimalSize:r.default.number,loadMinimalLoader:r.default.element,loop:r.default.bool,autoplay:r.default.bool,autoplayTimeout:r.default.number,autoplayDirection:r.default.bool,index:r.default.number,renderPagination:r.default.func,dotStyle:r.default.oneOfType([r.default.object,r.default.number]),activeDotStyle:r.default.oneOfType([r.default.object,r.default.number]),dotColor:r.default.string,activeDotColor:r.default.string,onIndexChanged:r.default.func},d.defaultProps={horizontal:!0,pagingEnabled:!0,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,bounces:!1,scrollsToTop:!1,removeClippedSubviews:!0,automaticallyAdjustContentInsets:!1,showsPagination:!0,showsButtons:!1,disableNextButton:!1,loop:!0,loadMinimal:!1,loadMinimalSize:1,autoplay:!1,autoplayTimeout:2.5,autoplayDirection:!0,index:0,onIndexChanged:function(){return null}},n.default=d},1207); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),u=t(17),o=t(297),s=t(366),i=babelHelpers.interopRequireDefault(s),d=t(628),f=babelHelpers.interopRequireDefault(d),c=t(515),p=babelHelpers.interopRequireDefault(c),m=t(1209),y=babelHelpers.interopRequireDefault(m),b=t(780),h=babelHelpers.interopRequireDefault(b),E=t(797),g=babelHelpers.interopRequireDefault(E),v=t(523),S=t(522),C=t(627),x=t(809),T=babelHelpers.interopRequireDefault(x),w=t(816),H=t(665),D=babelHelpers.interopRequireDefault(H),R=t(763),V=t(804),q=babelHelpers.interopRequireDefault(V),I=t(801),B=babelHelpers.interopRequireDefault(I),N=t(806),P=babelHelpers.interopRequireDefault(N),k=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var l=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.onSendPress=function(){!1!==l.validateSendData()&&l.props.onSendMoney(l.state.amountString,l.state.toEthAddress)},l.state={amountString:'',toEthAddress:''},l.updateNavigation(),l}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavBarButtonPress",value:function(e){"SEND_BUTTON"===e&&this.onSendPress()}}]),babelHelpers.createClass(t,[{key:"updateNavigation",value:function(){this.props.navigator.setButtons({rightButtons:[{title:D.default.t('common.send'),id:"SEND_BUTTON",buttonColor:p.default.navigationButtonColor,disabled:!this.validateSendData()}]})}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.moneySendingError!==e.moneySendingError&&null!==this.props.moneySendingError&&!0!==this.props.moneySendingError.isCancelled?(0,R.errorAlert)(this.props.moneySendingError):this.props.moneySendingInProgress!==e.moneySendingInProgress&&this.props.moneySendingSuccess&&(0,R.alert)('successTransaction',[{name:'confirm',onPress:function(){return t.props.navigator.pop()}}]),this.updateNavigation()}},{key:"resolveWallet",value:function(){return(0,v.resolveWallet)(this.props.wallets||[],this.props.selectedWalletCurrency||'')}},{key:"validateSendData",value:function(){var e=this.resolveWallet();if(null===e)return!1;var l=t.parseAmount(this.state.amountString),a=t.parseAmount(e.balance||'0');return l>1e-17&&l<=a&&!i.default.isEmpty(this.state.toEthAddress)}},{key:"render",value:function(){var e=this,t=this.resolveWallet();return t?r.default.createElement(u.View,{style:y.default.screenContainer},r.default.createElement(h.default,null),r.default.createElement(g.default,null),r.default.createElement(u.View,{style:y.default.bodyContainer},r.default.createElement(P.default,{title:D.default.t('screens.sendMoney.title')}),r.default.createElement(u.ScrollView,{style:y.default.scrollView,contentContainerStyle:y.default.noflex},r.default.createElement(q.default,{style:y.default.panelView,childrenContainerStyle:y.default.noflex},r.default.createElement(u.View,{style:y.default.row},r.default.createElement(u.Image,{style:y.default.icon,source:'ETH'===t.currency?f.default.ethereumLogo:f.default.patLogo,resizeMode:"contain"}),r.default.createElement(u.View,{style:y.default.textColumn},r.default.createElement(u.Text,{style:y.default.bodyBold},'ETH'===t.currency?D.default.t('common.ethereum'):D.default.t('common.bitnationPat')),r.default.createElement(u.Text,{style:y.default.currencyMedium},(0,w.prettyWalletBalance)(t,t.currency))))),r.default.createElement(q.default,{style:[y.default.panelViewTransparent,y.default.pannelViewRow],childrenContainerStyle:y.default.noflex},r.default.createElement(u.View,{style:y.default.formRow},r.default.createElement(u.View,{style:y.default.fieldsContainer},r.default.createElement(u.Text,{style:y.default.amountLabelText},D.default.t('common.amount')),r.default.createElement(u.View,{style:y.default.formRow},r.default.createElement(u.View,{style:y.default.textInputContainer},r.default.createElement(u.Text,{style:y.default.currencyPlaceholder},t.currency),r.default.createElement(u.TextInput,{style:[y.default.textInputInContainer,y.default.currencyLarge,y.default.currencyNumber],placeholder:"0.00000",placeholderTextColor:p.default.placeholderTextColor,onChangeText:function(t){return e.setState({amountString:t})},value:this.state.amountString,keyboardType:"decimal-pad"}))),r.default.createElement(u.Text,{style:y.default.toLabelText},D.default.t('common.to')),r.default.createElement(u.View,{style:y.default.textInputContainer},r.default.createElement(u.TextInput,{style:[y.default.textInputInContainer,y.default.currencyLarge,y.default.currencyNumber],placeholder:"0x",placeholderTextColor:p.default.placeholderTextColor,keyboardType:"default",autoCapitalize:"none",autoCorrect:!1,onChangeText:function(t){return e.setState({toEthAddress:t})},value:this.state.toEthAddress}))))))),this.props.moneySendingInProgress?r.default.createElement(T.default,null):null):r.default.createElement(u.View,null)}}],[{key:"parseAmount",value:function(e){return parseFloat(e)||0}}]),t})(B.default);k.navigatorButtons=babelHelpers.extends({},C.androidNavigationButtons);a.default=(0,o.connect)(function(e){return babelHelpers.extends({},e.wallet)},function(e){return{onSendMoney:function(t,l){e((0,S.sendMoney)(t,l))}}})(k)},1208); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(781),o=t(515),l=babelHelpers.interopRequireDefault(o),i=t(798),d=babelHelpers.interopRequireDefault(i),u=a.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default,{row:{flexDirection:'row',justifyContent:'flex-start',alignItems:'stretch'},textColumn:{flex:1,justifyContent:'flex-start'},icon:{marginLeft:-5,width:35,marginRight:20,marginTop:10},textInputContainer:{backgroundColor:l.default.white,borderRadius:5,flexDirection:'row',alignItems:'center',justifyContent:'flex-end',paddingLeft:25},pannelViewRow:{paddingLeft:0,paddingRight:0},textInputInContainer:babelHelpers.extends({},d.default.textInput,{marginBottom:0,marginTop:0,borderBottomWidth:0}),currencyNumber:{fontWeight:'normal',color:l.default.BitnationDarkGrayColor},currencyPlaceholder:babelHelpers.extends({},d.default.currencyLarge,{color:l.default.placeholderTextColor,marginTop:6,fontSize:15,marginRight:12}),amountLabelText:babelHelpers.extends({},d.default.footnote,{marginLeft:5}),toLabelText:babelHelpers.extends({},d.default.footnote,{marginLeft:5,marginTop:10}),toTextInput:babelHelpers.extends({},d.default.textInput,{marginTop:0})}));r.default=u},1209); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),n=babelHelpers.interopRequireDefault(a),s=t(17),u=t(297),o=t(1211),i=babelHelpers.interopRequireDefault(o),d=t(797),c=babelHelpers.interopRequireDefault(d),f=t(780),b=babelHelpers.interopRequireDefault(f),p=t(804),h=babelHelpers.interopRequireDefault(p),y=t(627),H=t(665),v=babelHelpers.interopRequireDefault(H),m=t(806),A=babelHelpers.interopRequireDefault(m),C=(function(e){function t(){var e,l,r,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,u=Array(n),o=0;o=0&&e.zoom<=100&&(t.zoom=parseInt(e.zoom)),'string'==typeof e.orientation&&(t.orientation=f.constants.Orientation[e.orientation]),'string'==typeof e.torchMode&&(t.torchMode=f.constants.TorchMode[e.torchMode]),'string'==typeof e.type&&(t.type=f.constants.Type[e.type]),'string'==typeof e.captureQuality&&(t.captureQuality=f.constants.CaptureQuality[e.captureQuality]),'string'==typeof e.captureMode&&(t.captureMode=f.constants.CaptureMode[e.captureMode]),'string'==typeof e.captureTarget&&(t.captureTarget=f.constants.CaptureTarget[e.captureTarget]),'function'!=typeof e.onBarCodeRead&&(t.barCodeTypes=[]),t.barcodeScannerEnabled='function'==typeof e.onBarCodeRead,t}var f=(function(e){function t(){babelHelpers.classCallCheck(this,t);var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._setReference=function(t){t?(e._cameraRef=t,e._cameraHandle=(0,d.findNodeHandle)(t)):(e._cameraRef=null,e._cameraHandle=null)},e._onBarCodeRead=function(t){e.props.onBarCodeRead&&e.props.onBarCodeRead(t)},e.state={isAuthorized:!1,isAuthorizationChecked:!1,isRecording:!1},e._cameraRef=null,e._cameraHandle=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setNativeProps",value:function(e){this._cameraRef.setNativeProps(e)}}]),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){var e,a,o,r;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return this._addOnBarCodeReadListener(),this._addOnFocusChanged(),this._addOnZoomChanged(),e=c({captureMode:this.props.captureMode}),a=e.captureMode,o=this.props.captureAudio&&a===t.constants.CaptureMode.video,n.next=7,regeneratorRuntime.awrap((0,u.requestPermissions)(o,t,this.props.permissionDialogTitle,this.props.permissionDialogMessage));case 7:r=n.sent,this.setState({isAuthorized:r,isAuthorizationChecked:!0});case 9:case"end":return n.stop()}},null,this)}},{key:"componentWillUnmount",value:function(){this._removeOnBarCodeReadListener(),this._removeOnFocusChanged(),this._removeOnZoomChanged(),this.state.isRecording&&this.stopCapture()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.onBarCodeRead,o=t.onFocusChanged,r=t.onZoomChanged;a!==e.onBarCodeRead&&this._addOnBarCodeReadListener(e),o!==!e.onFocusChanged&&this._addOnFocusChanged(e),r!==!e.onZoomChanged&&this._addOnZoomChanged(e)}},{key:"_addOnBarCodeReadListener",value:function(e){var t=(e||this.props).onBarCodeRead;this._removeOnBarCodeReadListener(),t&&(this.cameraBarCodeReadListener=d.Platform.select({ios:d.NativeAppEventEmitter.addListener('CameraBarCodeRead',this._onBarCodeRead),android:d.DeviceEventEmitter.addListener('CameraBarCodeReadAndroid',this._onBarCodeRead)}))}},{key:"_addOnFocusChanged",value:function(e){if('ios'===d.Platform.OS){var t=(e||this.props).onFocusChanged;this.focusListener=d.NativeAppEventEmitter.addListener('focusChanged',t)}}},{key:"_addOnZoomChanged",value:function(e){if('ios'===d.Platform.OS){var t=(e||this.props).onZoomChanged;this.zoomListener=d.NativeAppEventEmitter.addListener('zoomChanged',t)}}},{key:"_removeOnBarCodeReadListener",value:function(){var e=this.cameraBarCodeReadListener;e&&e.remove()}},{key:"_removeOnFocusChanged",value:function(){var e=this.focusListener;e&&e.remove()}},{key:"_removeOnZoomChanged",value:function(){var e=this.zoomListener;e&&e.remove()}},{key:"render",value:function(){l.base,this.props.style;var e=c(this.props);return this.state.isAuthorized?n.default.createElement(h,babelHelpers.extends({ref:this._setReference},e)):this.state.isAuthorizationChecked?this.props.notAuthorizedView:this.props.pendingAuthorizationView}},{key:"capture",value:function(e){var a=c(this.props);return(e=babelHelpers.extends({audio:a.captureAudio,barCodeTypes:a.barCodeTypes,mode:a.captureMode,playSoundOnCapture:a.playSoundOnCapture,target:a.captureTarget,quality:a.captureQuality,type:a.type,title:'',description:'',mirrorImage:a.mirrorImage,fixOrientation:a.fixOrientation,cropToPreview:a.cropToPreview},e)).mode===t.constants.CaptureMode.video&&(e.totalSeconds=e.totalSeconds>-1?e.totalSeconds:-1,e.preferredTimeScale=e.preferredTimeScale||30,e.cropToPreview=!1,this.setState({isRecording:!0})),p.capture(e)}},{key:"startPreview",value:function(){'android'===d.Platform.OS?d.UIManager.dispatchViewManagerCommand(this._cameraHandle,d.UIManager.RCTCamera.Commands.startPreview,[]):p.startPreview()}},{key:"stopPreview",value:function(){'android'===d.Platform.OS?d.UIManager.dispatchViewManagerCommand(this._cameraHandle,d.UIManager.RCTCamera.Commands.stopPreview,[]):p.stopPreview()}},{key:"stopCapture",value:function(){return this.state.isRecording?(this.setState({isRecording:!1}),p.stopCapture()):Promise.resolve('Not Recording.')}},{key:"getFOV",value:function(){return p.getFOV()}},{key:"hasFlash",value:function(){if('android'===d.Platform.OS){var e=c(this.props);return p.hasFlash({type:e.type})}return p.hasFlash()}},{key:"setZoom",value:function(e){if('android'===d.Platform.OS){var t=c(this.props);return p.setZoom({type:t.type},e)}return p.setZoom(e)}}]),t})(r.Component);f.constants={Aspect:p.Aspect,BarCodeType:p.BarCodeType,Type:p.Type,CaptureMode:p.CaptureMode,CaptureTarget:p.CaptureTarget,CaptureQuality:p.CaptureQuality,Orientation:p.Orientation,FlashMode:p.FlashMode,Zoom:p.Zoom,TorchMode:p.TorchMode},f.propTypes=babelHelpers.extends({},d.ViewPropTypes,{aspect:s.default.oneOfType([s.default.string,s.default.number]),captureAudio:s.default.bool,captureMode:s.default.oneOfType([s.default.string,s.default.number]),captureQuality:s.default.oneOfType([s.default.string,s.default.number]),captureTarget:s.default.oneOfType([s.default.string,s.default.number]),defaultOnFocusComponent:s.default.bool,flashMode:s.default.oneOfType([s.default.string,s.default.number]),zoom:s.default.oneOfType([s.default.string,s.default.number]),keepAwake:s.default.bool,onBarCodeRead:s.default.func,barcodeScannerEnabled:s.default.bool,cropToPreview:s.default.bool,clearWindowBackground:s.default.bool,onFocusChanged:s.default.func,onZoomChanged:s.default.func,mirrorImage:s.default.bool,fixOrientation:s.default.bool,barCodeTypes:s.default.array,orientation:s.default.oneOfType([s.default.string,s.default.number]),playSoundOnCapture:s.default.bool,torchMode:s.default.oneOfType([s.default.string,s.default.number]),type:s.default.oneOfType([s.default.string,s.default.number]),permissionDialogTitle:s.default.string,permissionDialogMessage:s.default.string,notAuthorizedView:s.default.element,pendingAuthorizationView:s.default.element}),f.defaultProps={aspect:p.Aspect.fill,type:p.Type.back,orientation:p.Orientation.auto,fixOrientation:!1,captureAudio:!1,captureMode:p.CaptureMode.still,captureTarget:p.CaptureTarget.cameraRoll,captureQuality:p.CaptureQuality.high,defaultOnFocusComponent:!0,flashMode:p.FlashMode.off,zoom:0,playSoundOnCapture:!0,torchMode:p.TorchMode.off,mirrorImage:!1,cropToPreview:!1,clearWindowBackground:!1,barCodeTypes:Object.values(p.BarCodeType),permissionDialogTitle:'',permissionDialogMessage:'',notAuthorizedView:n.default.createElement(d.View,{style:l.authorizationContainer},n.default.createElement(d.Text,{style:l.notAuthorizedText},"Camera not authorized")),pendingAuthorizationView:n.default.createElement(d.View,{style:l.authorizationContainer},n.default.createElement(d.ActivityIndicator,{size:"small"}))},f.checkDeviceAuthorizationStatus=p.checkDeviceAuthorizationStatus,f.checkVideoAuthorizationStatus=p.checkVideoAuthorizationStatus,f.checkAudioAuthorizationStatus=p.checkAudioAuthorizationStatus,o.default=f;o.constants=f.constants;var h=(0,d.requireNativeComponent)('RCTCamera',f,{nativeOnly:{testID:!0,renderToHardwareTextureAndroid:!0,accessibilityLabel:!0,importantForAccessibility:!0,accessibilityLiveRegion:!0,accessibilityComponentType:!0,onLayout:!0}})},1216); +__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.requestPermissions=void 0;var s=this,i=r(17);n.requestPermissions=function(e,r,t,n){var a,o,u,c;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if('ios'!==i.Platform.OS){s.next=9;break}if(!(a=e?r.checkDeviceAuthorizationStatus:r.checkVideoAuthorizationStatus)){s.next=7;break}return s.next=5,regeneratorRuntime.awrap(a());case 5:return o=s.sent,s.abrupt("return",o);case 7:s.next=15;break;case 9:if('android'!==i.Platform.OS){s.next=15;break}return s.next=12,regeneratorRuntime.awrap(i.PermissionsAndroid.request(i.PermissionsAndroid.PERMISSIONS.CAMERA,{title:t,message:n}));case 12:return u=s.sent,c=i.Platform.Version>=23?u===i.PermissionsAndroid.RESULTS.GRANTED:!0===u,s.abrupt("return",c);case 15:return s.abrupt("return",!0);case 16:case"end":return s.stop()}},null,s)}},1217); +__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Constants=void 0;var a=t(51),r=babelHelpers.interopRequireDefault(a),i=t(105),s=babelHelpers.interopRequireDefault(i),c=t(366),u=t(17),l=t(1217),d=u.StyleSheet.create({authorizationContainer:{flex:1,alignItems:'center',justifyContent:'center'},notAuthorizedText:{textAlign:'center',fontSize:16}}),p={READY:'READY',PENDING_AUTHORIZATION:'PENDING_AUTHORIZATION',NOT_AUTHORIZED:'NOT_AUTHORIZED'},f=u.NativeModules.RNCameraManager||u.NativeModules.RNCameraModule||{stubbed:!0,Type:{back:1},AutoFocus:{on:1},FlashMode:{off:1},WhiteBalance:{},BarCodeType:{},FaceDetection:{fast:1,Mode:{},Landmarks:{none:0},Classifications:{none:0}},GoogleVisionBarcodeDetection:{BarcodeType:0}},h=500,y=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o._onMountError=function(e){var t=e.nativeEvent;o.props.onMountError&&o.props.onMountError(t)},o._onCameraReady=function(){o.props.onCameraReady&&o.props.onCameraReady()},o._onObjectDetected=function(e){return function(t){var n=t.nativeEvent,a=n.type;o._lastEvents[a]&&o._lastEventsTimes[a]&&JSON.stringify(n)===o._lastEvents[a]&&new Date-o._lastEventsTimes[a]=0&&(e.setState({joined:!0}),e.connection.on('msg',function(t){var n=(0,D.default)([t]);e.setState(function(e){return{messages:c.GiftedChat.append(e.messages,n)}})}))})}}},{key:"componentWillUnmount",value:function(){null!==this.connection&&void 0!==this.connection&&this.connection.disconnect()}},{key:"onSend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!0===this.props.isBot){var t=[{_id:this.state.messages.length+1,text:R.default.reply(e[0].text),createdAt:new Date,user:{_id:2,name:'Dr. FreudBot'}}];this.setState(function(t){return{messages:c.GiftedChat.append(t.messages,e)}}),this.setState(function(e){return{messages:c.GiftedChat.append(e.messages,t)}})}else if(!0===this.state.joined){var n={nation_id:this.nationId,msg:e[0].text,from:this.props.user?this.props.user.name:'anonymous',userId:this.props.user?this.props.user.id:'anonymous'};this.connection.emit('room:msg',n)}}},{key:"render",value:function(){var e=this,t={_id:this.props.user?this.props.user.id:'anonymous',name:this.props.user?this.props.user.name:'anonymous'};return o.default.createElement(i.View,{style:h.default.container},o.default.createElement(g.default,null),o.default.createElement(v.default,{navBarHidden:!1}),o.default.createElement(c.GiftedChat,{messages:this.state.messages,onSend:function(t){return e.onSend(t)},user:t,bottomOffset:'ios'===i.Platform.OS?48.5:0,renderComposer:function(e){return o.default.createElement(c.Composer,babelHelpers.extends({},e,{textInputStyle:h.default.composer}))},renderInputToolbar:function(e){return o.default.createElement(c.InputToolbar,babelHelpers.extends({},e,{containerStyle:h.default.inputToolbar}))},renderBubble:function(e){return o.default.createElement(c.Bubble,babelHelpers.extends({},e,{customTextStyle:h.default.customTextStyle,wrapperStyle:{left:h.default.leftBubbleWrapper,right:h.default.rightBubbleWrapper},textStyle:{left:h.default.leftTextStyle,right:h.default.rightTextStyle}}))}}),this.props.isFetching&&o.default.createElement(y.default,null))}}]),t})(s.Component);r.default=(0,a.connect)(function(e){return{nations:e.nations.nations,nationId:e.nations.openedNationId,user:(0,T.getCurrentAccount)(e.accounts),isFetching:e.chat.isFetching}},function(e){return{showSpinner:function(){return e((0,m.showSpinner)())},hideSpinner:function(){return e((0,m.hideSpinner)())}}})(I)},1221); +__d(function(o,e,n,c){var r=e(1223),t=e(1228),i=e(1235),a=e(1225)('socket.io-client');n.exports=c=u;var s=c.managers={};function u(o,e){'object'==typeof o&&(e=o,o=void 0),e=e||{};var n,c=r(o),t=c.source,u=c.id,p=c.path,f=s[u]&&p in s[u].nsps;return e.forceNew||e['force new connection']||!1===e.multiplex||f?(a('ignoring socket cache for %s',t),n=i(t,e)):(s[u]||(a('new io instance for %s',t),s[u]=i(t,e)),n=s[u]),c.query&&!e.query&&(e.query=c.query),n.socket(c.path,e)}c.protocol=t.protocol,c.connect=u,c.Manager=e(1235),c.Socket=e(1260)},1222); +__d(function(t,o,r,p){var s=o(1224),c=o(1225)('socket.io-client:url');r.exports=function(o,r){var p=o;r=r||t.location,null==o&&(o=r.protocol+'//'+r.host);'string'==typeof o&&('/'===o.charAt(0)&&(o='/'===o.charAt(1)?r.protocol+o:r.host+o),/^(https?|wss?):\/\//.test(o)||(c('protocol-less url %s',o),o=void 0!==r?r.protocol+'//'+o:'https://'+o),c('parse %s',o),p=s(o));p.port||(/^(http|ws)$/.test(p.protocol)?p.port='80':/^(http|ws)s$/.test(p.protocol)&&(p.port='443'));p.path=p.path||'/';var l=-1!==p.host.indexOf(':')?'['+p.host+']':p.host;return p.id=p.protocol+'://'+l+':'+p.port,p.href=p.protocol+'://'+l+(r&&r.port===p.port?'':':'+p.port),p}},1223); +__d(function(r,t,e,s){var o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];e.exports=function(r){var t=r,e=r.indexOf('['),s=r.indexOf(']');-1!=e&&-1!=s&&(r=r.substring(0,e)+r.substring(e,s).replace(/:/g,';')+r.substring(s,r.length));for(var i=o.exec(r||''),u={},n=14;n--;)u[a[n]]=i[n]||'';return-1!=e&&-1!=s&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,':'),u.authority=u.authority.replace('[','').replace(']','').replace(/;/g,':'),u.ipv6uri=!0),u}},1224); +__d(function(e,C,o,n){function t(){var e;try{e=n.storage.debug}catch(e){}return!e&&'undefined'!=typeof process&&'env'in process&&(e=process.env.DEBUG),e}(n=o.exports=C(1226)).log=function(){return'object'==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var C=this.useColors;if(e[0]=(C?'%c':'')+this.namespace+(C?' %c':' ')+e[0]+(C?'%c ':' ')+'+'+n.humanize(this.diff),!C)return;var o='color: '+this.color;e.splice(1,0,o,'color: inherit');var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){'%%'!==e&&'%c'===e&&(r=++t)}),e.splice(r,0,o)},n.save=function(e){try{null==e?n.storage.removeItem('debug'):n.storage.debug=e}catch(e){}},n.load=t,n.useColors=function(){if('undefined'!=typeof window&&window.process&&'renderer'===window.process.type)return!0;if('undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return'undefined'!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||'undefined'!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1225); +__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i0)return(function(e){if((e=String(e)).length>100)return;var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!s)return;var r=parseFloat(s[1]);switch((s[2]||'ms').toLowerCase()){case'years':case'year':case'yrs':case'yr':case'y':return r*u;case'days':case'day':case'd':return r*i;case'hours':case'hour':case'hrs':case'hr':case'h':return r*t;case'minutes':case'minute':case'mins':case'min':case'm':return r*c;case'seconds':case'second':case'secs':case'sec':case's':return r*a;case'milliseconds':case'millisecond':case'msecs':case'msec':case'ms':return r;default:return}})(e);if('number'===n&&!1===isNaN(e))return s.long?o(r=e,i,'day')||o(r,t,'hour')||o(r,c,'minute')||o(r,a,'second')||r+' ms':(function(e){if(e>=i)return Math.round(e/i)+'d';if(e>=t)return Math.round(e/t)+'h';if(e>=c)return Math.round(e/c)+'m';if(e>=a)return Math.round(e/a)+'s';return e+'ms'})(e);throw new Error('val is not a non-empty string or a valid number. val='+JSON.stringify(e))}},1227); +__d(function(t,r,e,n){var o=r(1229)('socket.io-parser'),c=r(1231),i=r(1232),a=r(1233),s=r(1234);function u(){}n.protocol=4,n.types=['CONNECT','DISCONNECT','EVENT','ACK','ERROR','BINARY_EVENT','BINARY_ACK'],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=u,n.Decoder=p;var f=n.ERROR+'"encode error"';function h(t){var r=''+t.type;if(n.BINARY_EVENT!==t.type&&n.BINARY_ACK!==t.type||(r+=t.attachments+'-'),t.nsp&&'/'!==t.nsp&&(r+=t.nsp+','),null!=t.id&&(r+=t.id),null!=t.data){var e=(function(t){try{return JSON.stringify(t)}catch(t){return!1}})(t.data);if(!1===e)return f;r+=e}return o('encoded %j as %s',t,r),r}function p(){this.reconstructor=null}function d(t){this.reconPack=t,this.buffers=[]}function N(t){return{type:n.ERROR,data:'parser error: '+t}}u.prototype.encode=function(t,r){(o('encoding packet %j',t),n.BINARY_EVENT===t.type||n.BINARY_ACK===t.type)?(function(t,r){i.removeBlobs(t,function(t){var e=i.deconstructPacket(t),n=h(e.packet),o=e.buffers;o.unshift(n),r(o)})})(t,r):r([h(t)])},c(p.prototype),p.prototype.add=function(t){var r;if('string'==typeof t)r=(function(t){var r=0,e={type:Number(t.charAt(0))};if(null==n.types[e.type])return N('unknown packet type '+e.type);if(n.BINARY_EVENT===e.type||n.BINARY_ACK===e.type){for(var c='';'-'!==t.charAt(++r)&&(c+=t.charAt(r),r!=t.length););if(c!=Number(c)||'-'!==t.charAt(r))throw new Error('Illegal attachments');e.attachments=Number(c)}if('/'===t.charAt(r+1))for(e.nsp='';++r;){var i=t.charAt(r);if(','===i)break;if(e.nsp+=i,r===t.length)break}else e.nsp='/';var s=t.charAt(r+1);if(''!==s&&Number(s)==s){for(e.id='';++r;){var i=t.charAt(r);if(null==i||Number(i)!=i){--r;break}if(e.id+=t.charAt(r),r===t.length)break}e.id=Number(e.id)}if(t.charAt(++r)){var u=(function(t){try{return JSON.parse(t)}catch(t){return!1}})(t.substr(r)),f=!1!==u&&(e.type===n.ERROR||a(u));if(!f)return N('invalid payload');e.data=u}return o('decoded %s as %j',t,e),e})(t),n.BINARY_EVENT===r.type||n.BINARY_ACK===r.type?(this.reconstructor=new d(r),0===this.reconstructor.reconPack.attachments&&this.emit('decoded',r)):this.emit('decoded',r);else{if(!s(t)&&!t.base64)throw new Error('Unknown type: '+t);if(!this.reconstructor)throw new Error('got binary data when not reconstructing a packet');(r=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit('decoded',r))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var r=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},1228); +__d(function(e,C,o,n){function t(){var e;try{e=n.storage.debug}catch(e){}return!e&&'undefined'!=typeof process&&'env'in process&&(e=process.env.DEBUG),e}(n=o.exports=C(1230)).log=function(){return'object'==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var C=this.useColors;if(e[0]=(C?'%c':'')+this.namespace+(C?' %c':' ')+e[0]+(C?'%c ':' ')+'+'+n.humanize(this.diff),!C)return;var o='color: '+this.color;e.splice(1,0,o,'color: inherit');var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){'%%'!==e&&'%c'===e&&(r=++t)}),e.splice(r,0,o)},n.save=function(e){try{null==e?n.storage.removeItem('debug'):n.storage.debug=e}catch(e){}},n.load=t,n.useColors=function(){if('undefined'!=typeof window&&window.process&&'renderer'===window.process.type)return!0;if('undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return'undefined'!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||'undefined'!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1229); +__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},d.prototype.cleanup=function(){p('cleanup');for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)p('reconnect failed'),this.backoff.reset(),this.emitAll('reconnect_failed'),this.reconnecting=!1;else{var e=this.backoff.duration();p('will wait %dms before reconnect attempt',e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(p('attempting reconnect'),t.emitAll('reconnect_attempt',t.backoff.attempts),t.emitAll('reconnecting',t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(p('reconnect attempt error'),t.reconnecting=!1,t.reconnect(),t.emitAll('reconnect_error',e.data)):(p('reconnect success'),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},d.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll('reconnect',t)}},1235); +__d(function(r,e,o,p){o.exports=e(1237),o.exports.parser=e(1244)},1236); +__d(function(e,t,r,s){var o=t(1238),i=t(1231),n=t(1256)('engine.io-client:socket'),a=t(483),p=t(1244),h=t(1224),c=t(1253);function u(t,r){if(!(this instanceof u))return new u(t,r);r=r||{},t&&'object'==typeof t&&(r=t,t=null),t?(t=h(t),r.hostname=t.host,r.secure='https'===t.protocol||'wss'===t.protocol,r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=h(r.host).host),this.secure=null!=r.secure?r.secure:e.location&&'https:'===location.protocol,r.hostname&&!r.port&&(r.port=this.secure?'443':'80'),this.agent=r.agent||!1,this.hostname=r.hostname||(e.location?location.hostname:'localhost'),this.port=r.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=r.query||{},'string'==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==r.upgrade,this.path=(r.path||'/engine.io').replace(/\/$/,'')+'/',this.forceJSONP=!!r.forceJSONP,this.jsonp=!1!==r.jsonp,this.forceBase64=!!r.forceBase64,this.enablesXDR=!!r.enablesXDR,this.timestampParam=r.timestampParam||'t',this.timestampRequests=r.timestampRequests,this.transports=r.transports||['polling','websocket'],this.transportOptions=r.transportOptions||{},this.readyState='',this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=r.policyPort||843,this.rememberUpgrade=r.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=r.onlyBinaryUpgrades,this.perMessageDeflate=!1!==r.perMessageDeflate&&(r.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=r.pfx||null,this.key=r.key||null,this.passphrase=r.passphrase||null,this.cert=r.cert||null,this.ca=r.ca||null,this.ciphers=r.ciphers||null,this.rejectUnauthorized=void 0===r.rejectUnauthorized||r.rejectUnauthorized,this.forceNode=!!r.forceNode;var s='object'==typeof e&&e;s.global===s&&(r.extraHeaders&&Object.keys(r.extraHeaders).length>0&&(this.extraHeaders=r.extraHeaders),r.localAddress&&(this.localAddress=r.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}r.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=p.protocol,u.Socket=u,u.Transport=t(1243),u.transports=t(1238),u.parser=t(1244),u.prototype.createTransport=function(e){n('creating transport "%s"',e);var t=(function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t})(this.query);t.EIO=p.protocol,t.transport=e;var r=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new o[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf('websocket'))e='websocket';else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit('error','No transports available')},0)}e=this.transports[0]}this.readyState='opening';try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){n('setting transport %s',e.name);var t=this;this.transport&&(n('clearing existing transport %s',this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on('drain',function(){t.onDrain()}).on('packet',function(e){t.onPacket(e)}).on('error',function(e){t.onError(e)}).on('close',function(){t.onClose('transport close')})},u.prototype.probe=function(e){n('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,s=this;function o(){if(s.onlyBinaryUpgrades){var o=!this.supportsBinary&&s.transport.supportsBinary;r=r||o}r||(n('probe transport "%s" opened',e),t.send([{type:'ping',data:'probe'}]),t.once('packet',function(o){if(!r)if('pong'===o.type&&'probe'===o.data){if(n('probe transport "%s" pong',e),s.upgrading=!0,s.emit('upgrading',t),!t)return;u.priorWebsocketSuccess='websocket'===t.name,n('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){r||'closed'!==s.readyState&&(n('changing transport and sending upgrade packet'),l(),s.setTransport(t),t.send([{type:'upgrade'}]),s.emit('upgrade',t),t=null,s.upgrading=!1,s.flush())})}else{n('probe transport "%s" failed',e);var i=new Error('probe error');i.transport=t.name,s.emit('upgradeError',i)}}))}function i(){r||(r=!0,l(),t.close(),t=null)}function a(r){var o=new Error('probe error: '+r);o.transport=t.name,i(),n('probe transport "%s" failed because of error: %s',e,r),s.emit('upgradeError',o)}function p(){a('transport closed')}function h(){a('socket closed')}function c(e){t&&e.name!==t.name&&(n('"%s" works - aborting "%s"',e.name,t.name),i())}function l(){t.removeListener('open',o),t.removeListener('error',a),t.removeListener('close',p),s.removeListener('close',h),s.removeListener('upgrading',c)}u.priorWebsocketSuccess=!1,t.once('open',o),t.once('error',a),t.once('close',p),this.once('close',h),this.once('upgrading',c),t.open()},u.prototype.onOpen=function(){if(n('socket open'),this.readyState='open',u.priorWebsocketSuccess='websocket'===this.transport.name,this.emit('open'),this.flush(),'open'===this.readyState&&this.upgrade&&this.transport.pause){n('starting upgrade probes');for(var e=0,t=this.upgrades.length;e1?{type:s[a],data:e.substring(1)}:{type:s[a]}:h}a=new Uint8Array(e)[0];var o=i(e,1);return v&&'blob'===r&&(o=new v([o])),{type:s[a],data:o}},t.decodeBase64Packet=function(e,r){var n=s[e.charAt(0)];if(!a)return{type:n,data:{base64:!0,data:e.substr(1)}};var t=a.decode(e.substr(1));return'blob'===r&&v&&(t=new v([t])),{type:n,data:t}},t.encodePayload=function(e,r,n){'function'==typeof r&&(n=r,r=null);var a=f(e);if(r&&a)return v&&!y?t.encodePayloadAsBlob(e,n):t.encodePayloadAsArrayBuffer(e,n);if(!e.length)return n('0:');p(e,function(e,n){t.encodePacket(e,!!a&&r,!1,function(e){n(null,(function(e){return e.length+':'+e})(e))})},function(e,r){return n(r.join(''))})},t.decodePayload=function(e,r,n){if('string'!=typeof e)return t.decodePayloadAsBinary(e,r,n);var a;if('function'==typeof r&&(n=r,r=null),''===e)return n(h,0,1);for(var o,f,i='',u=0,c=e.length;u0;){for(var f=new Uint8Array(a),u=0===f[0],c='',d=1;255!==f[d];d++){if(c.length>310)return n(h,0,1);c+=f[d]}a=i(a,2+c.length),c=parseInt(c);var l=i(a,0,c);if(u)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(e){var y=new Uint8Array(l);l='';for(d=0;dt&&(n=t),e>=t||e>=n||0===t)return new ArrayBuffer(0);for(var f=new Uint8Array(r),i=new Uint8Array(n-e),u=e,a=0;u=55296&&t<=56319&&o=55296&&r<=57343){if(t)throw Error('Lone surrogate U+'+r.toString(16).toUpperCase()+' is not a scalar value');return!1}return!0}function l(r,t){return d(r>>t&63|128)}function s(r,t){if(0==(4294967168&r))return d(r);var n='';return 0==(4294965248&r)?n=d(r>>6&31|192):0==(4294901760&r)?(h(r,t)||(r=65533),n=d(r>>12&15|224),n+=l(r,6)):0==(4292870144&r)&&(n=d(r>>18&7|240),n+=l(r,12),n+=l(r,6)),n+=d(63&r|128)}function p(){if(c>=a)throw Error('Invalid byte index');var r=255&u[c];if(c++,128==(192&r))return 63&r;throw Error('Invalid continuation byte')}function y(r){var t,n;if(c>a)throw Error('Invalid byte index');if(c==a)return!1;if(t=255&u[c],c++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|p())>=128)return n;throw Error('Invalid continuation byte')}if(224==(240&t)){if((n=(15&t)<<12|p()<<6|p())>=2048)return h(n,r)?n:65533;throw Error('Invalid continuation byte')}if(240==(248&t)&&(n=(7&t)<<18|p()<<12|p()<<6|p())>=65536&&n<=1114111)return n;throw Error('Invalid UTF-8 detected')}var b={version:'2.1.2',encode:function(r,t){for(var n=!1!==(t=t||{}).strict,e=v(r),o=e.length,i=-1,f='';++i65535&&(o+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=d(t);return o})(o)}};if('function'==typeof define&&'object'==typeof define.amd&&define.amd)define(function(){return b});else if(o&&!o.nodeType)if(i)i.exports=b;else{var w={}.hasOwnProperty;for(var g in b)w.call(b,g)&&(o[g]=b[g])}else t.utf8=b})(this)},1250); +__d(function(n,r,t,e){!(function(){"use strict";for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),t=0;t>2],a+=n[(3&e[t])<<4|e[t+1]>>4],a+=n[(15&e[t+1])<<2|e[t+2]>>6],a+=n[63&e[t+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},e.decode=function(n){var t,e,o,a,h,c=.75*n.length,g=n.length,i=0;"="===n[n.length-1]&&(c--,"="===n[n.length-2]&&c--);var u=new ArrayBuffer(c),d=new Uint8Array(u);for(t=0;t>4,d[i++]=(15&o)<<4|a>>2,d[i++]=(3&a)<<6|63&h;return u}})()},1251); +__d(function(e,t,r,n){var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,f=(function(){try{return 2===new Blob(['hi']).size}catch(e){return!1}})(),i=f&&(function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}})(),b=o&&o.prototype.append&&o.prototype.getBlob;function u(e){for(var t=0;t0);return t}function h(){var r=d(+new Date);return r!==o?(f=0,o=r):r+'.'+d(f++)}for(;i=31||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage='undefined'!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:(function(){try{return window.localStorage}catch(e){}})(),n.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'],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},n.enable(t())},1256); +__d(function(e,n,r,t){function s(e){var n;function r(){if(r.enabled){var e=r,s=+new Date,a=s-(n||s);e.diff=a,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),i=0;i';i=document.createElement(e)}catch(e){(i=document.createElement('iframe')).name=r.iframeId,i.src='javascript:0'}i.id=r.iframeId,r.form.appendChild(i),r.iframe=i}this.form.action=this.uri(),d(),e=e.replace(c,'\\\n'),this.area.value=e.replace(s,'\\n');try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){'complete'===r.iframe.readyState&&m()}:this.iframe.onload=m}},1258); +__d(function(e,t,s,o){var i,r=t(1243),n=t(1244),h=t(1253),a=t(1254),p=t(1255),c=t(1256)('engine.io-client:websocket'),u=e.WebSocket||e.MozWebSocket;if('undefined'==typeof window)try{i=t(381)}catch(e){}var f=u;function d(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=i),r.call(this,e)}f||'undefined'!=typeof window||(f=i),s.exports=d,a(d,r),d.prototype.name='websocket',d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,s={agent:this.agent,perMessageDeflate:this.perMessageDeflate};s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(s.headers=this.extraHeaders),this.localAddress&&(s.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new f(e,t):new f(e):new f(e,t,s)}catch(e){return this.emit('error',e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType='nodebuffer'):this.ws.binaryType='arraybuffer',this.addEventListeners()}},d.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError('websocket error',t)}},d.prototype.write=function(t){var s=this;this.writable=!1;for(var o=t.length,i=0,r=o;i0&&t.jitter<=1?t.jitter:0,this.attempts=0}o.exports=s,s.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),o=Math.floor(i*this.jitter*t);t=0==(1&Math.floor(10*i))?t-o:t+o}return 0|Math.min(t,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(t){this.ms=t},s.prototype.setMax=function(t){this.max=t},s.prototype.setJitter=function(t){this.jitter=t}},1264); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(1266);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},1265); +__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.utils=a.GiftedAvatar=a.Time=a.Send=a.MessageContainer=a.Message=a.LoadEarlier=a.InputToolbar=a.Day=a.Composer=a.MessageText=a.MessageImage=a.SystemMessage=a.Bubble=a.Avatar=a.Actions=a.GiftedChat=void 0;var i=t(1267),s=babelHelpers.interopRequireDefault(i),r=t(51),o=babelHelpers.interopRequireDefault(r),l=t(17),u=t(1270),d=babelHelpers.interopRequireDefault(u),h=t(1274),p=babelHelpers.interopRequireDefault(h),g=t(1275),f=babelHelpers.interopRequireDefault(g),c=t(1280),b=babelHelpers.interopRequireWildcard(c),y=t(1281),m=babelHelpers.interopRequireDefault(y),v=t(1282),H=babelHelpers.interopRequireDefault(v),I=t(1284),x=babelHelpers.interopRequireDefault(I),T=t(1293),C=babelHelpers.interopRequireDefault(T),M=t(1289),S=babelHelpers.interopRequireDefault(M),k=t(1285),L=babelHelpers.interopRequireDefault(k),D=t(1294),P=babelHelpers.interopRequireDefault(D),A=t(1295),w=babelHelpers.interopRequireDefault(A),K=t(1296),_=babelHelpers.interopRequireDefault(K),R=t(1298),F=babelHelpers.interopRequireDefault(R),q=t(1299),V=babelHelpers.interopRequireDefault(q),O=t(1300),W=babelHelpers.interopRequireDefault(O),E=t(1297),B=babelHelpers.interopRequireDefault(E),G=t(1292),z=babelHelpers.interopRequireDefault(G),j=t(1283),U=babelHelpers.interopRequireDefault(j),J=t(1308),N=(babelHelpers.interopRequireDefault(J),l.Platform.select({ios:33,android:41})),Q=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._isMounted=!1,n._keyboardHeight=0,n._bottomOffset=0,n._maxHeight=null,n._isFirstLayout=!0,n._locale='en',n._messages=[],n.state={isInitialized:!1,composerHeight:N,messagesContainerHeight:null,typingDisabled:!1},n.onKeyboardWillShow=n.onKeyboardWillShow.bind(n),n.onKeyboardWillHide=n.onKeyboardWillHide.bind(n),n.onKeyboardDidShow=n.onKeyboardDidShow.bind(n),n.onKeyboardDidHide=n.onKeyboardDidHide.bind(n),n.onSend=n.onSend.bind(n),n.getLocale=n.getLocale.bind(n),n.onInputSizeChanged=n.onInputSizeChanged.bind(n),n.onInputTextChanged=n.onInputTextChanged.bind(n),n.onMainViewLayout=n.onMainViewLayout.bind(n),n.onInitialLayoutViewLayout=n.onInitialLayoutViewLayout.bind(n),n.invertibleScrollViewProps={inverted:!0,keyboardShouldPersistTaps:n.props.keyboardShouldPersistTaps,onKeyboardWillShow:n.onKeyboardWillShow,onKeyboardWillHide:n.onKeyboardWillHide,onKeyboardDidShow:n.onKeyboardDidShow,onKeyboardDidHide:n.onKeyboardDidHide},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){var e=this;return{actionSheet:function(){return e._actionSheetRef},getLocale:this.getLocale}}},{key:"componentWillMount",value:function(){var e=this.props,t=e.messages,n=e.text;this.setIsMounted(!0),this.initLocale(),this.setMessages(t||[]),this.setTextFromProp(n)}},{key:"componentWillUnmount",value:function(){this.setIsMounted(!1)}},{key:"componentWillReceiveProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.messages,n=e.text;this.setMessages(t||[]),this.setTextFromProp(n)}},{key:"initLocale",value:function(){null===this.props.locale||-1===p.default.locales().indexOf(this.props.locale)?this.setLocale('en'):this.setLocale(this.props.locale)}},{key:"setLocale",value:function(e){this._locale=e}},{key:"getLocale",value:function(){return this._locale}},{key:"setTextFromProp",value:function(e){void 0!==e&&e!==this.state.text&&this.setState({text:e})}},{key:"getTextFromProp",value:function(e){return void 0===this.props.text?e:this.props.text}},{key:"setMessages",value:function(e){this._messages=e}},{key:"getMessages",value:function(){return this._messages}},{key:"setMaxHeight",value:function(e){this._maxHeight=e}},{key:"getMaxHeight",value:function(){return this._maxHeight}},{key:"setKeyboardHeight",value:function(e){this._keyboardHeight=e}},{key:"getKeyboardHeight",value:function(){return'android'!==l.Platform.OS||this.props.forceGetKeyboardHeight?this._keyboardHeight:0}},{key:"setBottomOffset",value:function(e){this._bottomOffset=e}},{key:"getBottomOffset",value:function(){return this._bottomOffset}},{key:"setIsFirstLayout",value:function(e){this._isFirstLayout=e}},{key:"getIsFirstLayout",value:function(){return this._isFirstLayout}},{key:"setIsTypingDisabled",value:function(e){this.setState({typingDisabled:e})}},{key:"getIsTypingDisabled",value:function(){return this.state.typingDisabled}},{key:"setIsMounted",value:function(e){this._isMounted=e}},{key:"getIsMounted",value:function(){return this._isMounted}},{key:"getMinInputToolbarHeight",value:function(){return this.props.renderAccessory?2*this.props.minInputToolbarHeight:this.props.minInputToolbarHeight}},{key:"calculateInputToolbarHeight",value:function(e){return e+(this.getMinInputToolbarHeight()-N)}},{key:"getBasicMessagesContainerHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.composerHeight;return this.getMaxHeight()-this.calculateInputToolbarHeight(e)}},{key:"getMessagesContainerHeightWithKeyboard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.composerHeight;return this.getBasicMessagesContainerHeight(e)-this.getKeyboardHeight()+this.getBottomOffset()}},{key:"prepareMessagesContainerHeight",value:function(e){return!0===this.props.isAnimated?new l.Animated.Value(e):e}},{key:"onKeyboardWillShow",value:function(e){this.setIsTypingDisabled(!0),this.setKeyboardHeight(e.endCoordinates?e.endCoordinates.height:e.end.height),this.setBottomOffset(this.props.bottomOffset);var t=this.getMessagesContainerHeightWithKeyboard();!0===this.props.isAnimated?l.Animated.timing(this.state.messagesContainerHeight,{toValue:t,duration:210}).start():this.setState({messagesContainerHeight:t})}},{key:"onKeyboardWillHide",value:function(){this.setIsTypingDisabled(!0),this.setKeyboardHeight(0),this.setBottomOffset(0);var e=this.getBasicMessagesContainerHeight();!0===this.props.isAnimated?l.Animated.timing(this.state.messagesContainerHeight,{toValue:e,duration:210}).start():this.setState({messagesContainerHeight:e})}},{key:"onKeyboardDidShow",value:function(e){'android'===l.Platform.OS&&this.onKeyboardWillShow(e),this.setIsTypingDisabled(!1)}},{key:"onKeyboardDidHide",value:function(e){'android'===l.Platform.OS&&this.onKeyboardWillHide(e),this.setIsTypingDisabled(!1)}},{key:"scrollToBottom",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==this._messageContainerRef&&this._messageContainerRef.scrollTo({y:0,animated:e})}},{key:"renderMessages",value:function(){var e=this,t=!0===this.props.isAnimated?l.Animated.View:l.View;return o.default.createElement(t,{style:{height:this.state.messagesContainerHeight}},o.default.createElement(W.default,babelHelpers.extends({},this.props,{invertibleScrollViewProps:this.invertibleScrollViewProps,messages:this.getMessages(),ref:function(t){return e._messageContainerRef=t}})),this.renderChatFooter())}},{key:"onSend",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(t)||(t=[t]),t=t.map(function(t){return babelHelpers.extends({},t,{user:e.props.user,createdAt:new Date,_id:e.props.messageIdGenerator()})}),!0===n&&(this.setIsTypingDisabled(!0),this.resetInputToolbar()),this.props.onSend(t),this.scrollToBottom(),!0===n&&setTimeout(function(){!0===e.getIsMounted()&&e.setIsTypingDisabled(!1)},100)}},{key:"resetInputToolbar",value:function(){this.textInput&&this.textInput.clear(),this.notifyInputTextReset();var e=N,t=this.getMessagesContainerHeightWithKeyboard(e);this.setState({text:this.getTextFromProp(''),composerHeight:e,messagesContainerHeight:this.prepareMessagesContainerHeight(t)})}},{key:"focusTextInput",value:function(){this.textInput&&this.textInput.focus()}},{key:"onInputSizeChanged",value:function(e){var t=Math.max(N,Math.min(100,e.height)),n=this.getMessagesContainerHeightWithKeyboard(t);this.setState({composerHeight:t,messagesContainerHeight:this.prepareMessagesContainerHeight(n)})}},{key:"onInputTextChanged",value:function(e){this.getIsTypingDisabled()||(this.props.onInputTextChanged&&this.props.onInputTextChanged(e),void 0===this.props.text&&this.setState({text:e}))}},{key:"notifyInputTextReset",value:function(){this.props.onInputTextChanged&&this.props.onInputTextChanged('')}},{key:"onInitialLayoutViewLayout",value:function(e){var t=e.nativeEvent.layout;if(!(t.height<=0)){this.notifyInputTextReset(),this.setMaxHeight(t.height);var n=N,a=this.getMessagesContainerHeightWithKeyboard(n);this.setState({isInitialized:!0,text:this.getTextFromProp(''),composerHeight:n,messagesContainerHeight:this.prepareMessagesContainerHeight(a)})}}},{key:"onMainViewLayout",value:function(e){var t=e.nativeEvent.layout;this.getMaxHeight()===t.height&&!0!==this.getIsFirstLayout()||(this.setMaxHeight(t.height),this.setState({messagesContainerHeight:this.prepareMessagesContainerHeight(this.getBasicMessagesContainerHeight())})),!0===this.getIsFirstLayout()&&this.setIsFirstLayout(!1)}},{key:"renderInputToolbar",value:function(){var e=this,t=babelHelpers.extends({},this.props,{text:this.getTextFromProp(this.state.text),composerHeight:Math.max(N,this.state.composerHeight),onSend:this.onSend,onInputSizeChanged:this.onInputSizeChanged,onTextChanged:this.onInputTextChanged,textInputProps:babelHelpers.extends({},this.props.textInputProps,{ref:function(t){return e.textInput=t},maxLength:this.getIsTypingDisabled()?0:this.props.maxInputLength})});return this.getIsTypingDisabled()&&(t.textInputProps.maxLength=0),this.props.renderInputToolbar?this.props.renderInputToolbar(t):o.default.createElement(_.default,t)}},{key:"renderChatFooter",value:function(){if(this.props.renderChatFooter){var e=babelHelpers.extends({},this.props);return this.props.renderChatFooter(e)}return null}},{key:"renderLoading",value:function(){return this.props.renderLoading?this.props.renderLoading():null}},{key:"render",value:function(){var e=this;return!0===this.state.isInitialized?o.default.createElement(d.default,{ref:function(t){return e._actionSheetRef=t}},o.default.createElement(l.View,{style:X.container,onLayout:this.onMainViewLayout},this.renderMessages(),this.renderInputToolbar())):o.default.createElement(l.View,{style:X.container,onLayout:this.onInitialLayoutViewLayout},this.renderLoading())}}],[{key:"append",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return Array.isArray(t)||(t=[t]),t.concat(e)}},{key:"prepend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return Array.isArray(t)||(t=[t]),e.concat(t)}}]),t})(o.default.Component),X=l.StyleSheet.create({container:{flex:1}});Q.childContextTypes={actionSheet:s.default.func,getLocale:s.default.func},Q.defaultProps={messages:[],text:void 0,placeholder:'Type a message...',messageIdGenerator:function(){return f.default.v4()},user:{},onSend:function(){},locale:null,timeFormat:'LT',dateFormat:'ll',isAnimated:l.Platform.select({ios:!0,android:!1}),loadEarlier:!1,onLoadEarlier:function(){},isLoadingEarlier:!1,renderLoading:null,renderLoadEarlier:null,renderAvatar:void 0,showUserAvatar:!1,onPressAvatar:null,renderAvatarOnTop:!1,renderBubble:null,renderSystemMessage:null,onLongPress:null,renderMessage:null,renderMessageText:null,renderMessageImage:null,imageProps:{},lightboxProps:{},renderCustomView:null,renderDay:null,renderTime:null,renderFooter:null,renderChatFooter:null,renderInputToolbar:null,renderComposer:null,renderActions:null,renderSend:null,renderAccessory:null,onPressActionButton:null,bottomOffset:0,minInputToolbarHeight:44,listViewProps:{},keyboardShouldPersistTaps:l.Platform.select({ios:'never',android:'always'}),onInputTextChanged:null,maxInputLength:null,forceGetKeyboardHeight:!1},Q.propTypes={messages:s.default.array,text:s.default.string,placeholder:s.default.string,messageIdGenerator:s.default.func,user:s.default.object,onSend:s.default.func,locale:s.default.string,timeFormat:s.default.string,dateFormat:s.default.string,isAnimated:s.default.bool,loadEarlier:s.default.bool,onLoadEarlier:s.default.func,isLoadingEarlier:s.default.bool,renderLoading:s.default.func,renderLoadEarlier:s.default.func,renderAvatar:s.default.func,showUserAvatar:s.default.bool,onPressAvatar:s.default.func,renderAvatarOnTop:s.default.bool,renderBubble:s.default.func,renderSystemMessage:s.default.func,onLongPress:s.default.func,renderMessage:s.default.func,renderMessageText:s.default.func,renderMessageImage:s.default.func,imageProps:s.default.object,lightboxProps:s.default.object,renderCustomView:s.default.func,renderDay:s.default.func,renderTime:s.default.func,renderFooter:s.default.func,renderChatFooter:s.default.func,renderInputToolbar:s.default.func,renderComposer:s.default.func,renderActions:s.default.func,renderSend:s.default.func,renderAccessory:s.default.func,onPressActionButton:s.default.func,bottomOffset:s.default.number,minInputToolbarHeight:s.default.number,listViewProps:s.default.object,keyboardShouldPersistTaps:s.default.oneOf(['always','never','handled']),onInputTextChanged:s.default.func,maxInputLength:s.default.number,forceGetKeyboardHeight:s.default.bool},a.GiftedChat=Q,a.Actions=m.default,a.Avatar=H.default,a.Bubble=x.default,a.SystemMessage=C.default,a.MessageImage=S.default,a.MessageText=L.default,a.Composer=P.default,a.Day=w.default,a.InputToolbar=_.default,a.LoadEarlier=F.default,a.Message=V.default,a.MessageContainer=W.default,a.Send=B.default,a.Time=z.default,a.GiftedAvatar=U.default,a.utils=b},1266); +__d(function(n,o,t,_){t.exports=o(1268)()},1267); +__d(function(e,r,t,o){'use strict';var p=r(33),n=r(18),s=r(1269);t.exports=function(){function e(e,r,t,o,p,c){c!==s&&n(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r};return t.checkPropTypes=p,t.PropTypes=t,t}},1268); +__d(function(_,t,E,O){'use strict';E.exports='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'},1269); +__d(function(e,t,o,n){o.exports=t(1271),o.exports.ActionSheetProvider=t(1272).default,o.exports.connectActionSheet=t(1273).default},1270); +__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0});var i=t(51),r=babelHelpers.interopRequireDefault(i),s=t(105),l=babelHelpers.interopRequireDefault(s),o=t(17),u=195,c=o.Easing.bezier(.25,.46,.45,.94),p=o.Easing.out(c),d=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){for(var e=this.props,t=e.options,a=e.icons,n=e.destructiveButtonIndex,i=e.onSelect,s=e.startIndex,l=e.length,u=e.textStyle,c=[],p=b.Ripple('rgba(180, 180, 180, 1)',!1),d=function(e){var d='#212121';e===n&&(d='#d32f2f');var h=void 0;if(a&&a[e]){var f=[y.icon];void 0!==u.color&&null!==u.color&&f.push({tintColor:u.color}),h=r.default.createElement(o.Image,{source:a[e],resizeMode:"contain",style:f})}c.push(r.default.createElement(b,{key:e,pressInDelay:0,background:p,onPress:function(){return i(e)},style:y.button},h,r.default.createElement(o.Text,{style:[y.text,{color:d},u]},t[e]))),e>>0,s=0;s0)for(n=0;n=0?n?'+':'':'-')+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},A={};function j(e,t,n,s){var i=s;'string'==typeof s&&(i=function(){return this[s]()}),e&&(A[e]=i),t&&(A[t[0]]=function(){return G(i.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Z(e,t){return e.isValid()?(t=z(t,e.localeData()),I[t]=I[t]||(function(e){var t,n,s,i=e.match(V);for(t=0,n=i.length;t=0&&E.test(e);)e=e.replace(E,s),E.lastIndex=0,n-=1;return e}var $=/\d/,J=/\d\d/,q=/\d{3}/,B=/\d{4}/,Q=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,se=/[+-]?\d{1,6}/,ie=/\d+/,re=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function de(e,t,n){le[e]=P(t)?t:function(e,s){return e&&n?n:t}}function he(e,t){return h(le,e)?le[e](t._strict,t._locale):new RegExp(ce(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}var fe={};function me(e,t){var n,s=t;for('string'==typeof e&&(e=[e]),u(t)&&(s=function(e,n){n[t]=D(e)}),n=0;n68?1900:2e3)};var xe,be=Pe('FullYear',!0);function Pe(e,t){return function(n){return null!=n?(He(this,e,n),i.updateOffset(this,t),this):We(this,e)}}function We(e,t){return e.isValid()?e._d['get'+(e._isUTC?'UTC':'')+t]():NaN}function He(e,t,n){e.isValid()&&!isNaN(n)&&('FullYear'===t&&Te(e.year())&&1===e.month()&&29===e.date()?e._d['set'+(e._isUTC?'UTC':'')+t](n,e.month(),Re(n,e.month())):e._d['set'+(e._isUTC?'UTC':'')+t](n))}function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?Te(e)?29:28:31-s%7%2}xe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ae(e,t,n){var s=7+t-n;return-((7+Ie(e,0,s).getUTCDay()-t)%7)+s-1}function je(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ae(e,s,i);return o<=0?a=Oe(r=e-1)+o:o>Oe(e)?(r=e+1,a=o-Oe(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ze(e,t,n){var s,i,r=Ae(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+ze(i=e.year()-1,t,n):a>ze(e.year(),t,n)?(s=a-ze(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function ze(e,t,n){var s=Ae(e,t,n),i=Ae(e+1,t,n);return(Oe(e)-s+i)/7}j('w',['ww',2],'wo','week'),j('W',['WW',2],'Wo','isoWeek'),C('week','w'),C('isoWeek','W'),N('week',5),N('isoWeek',5),de('w',X),de('ww',X,J),de('W',X),de('WW',X,J),_e(['w','ww','W','WW'],function(e,t,n,s){t[s.substr(0,1)]=D(e)});j('d',0,'do','day'),j('dd',0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j('ddd',0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j('dddd',0,0,function(e){return this.localeData().weekdays(this,e)}),j('e',0,0,'weekday'),j('E',0,0,'isoWeekday'),C('day','d'),C('weekday','e'),C('isoWeekday','E'),N('day',11),N('weekday',11),N('isoWeekday',11),de('d',X),de('e',X),de('E',X),de('dd',function(e,t){return t.weekdaysMinRegex(e)}),de('ddd',function(e,t){return t.weekdaysShortRegex(e)}),de('dddd',function(e,t){return t.weekdaysRegex(e)}),_e(['dd','ddd','dddd'],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),_e(['d','e','E'],function(e,t,n,s){t[s]=D(e)});var $e='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');var Je='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');var qe='Su_Mo_Tu_We_Th_Fr_Sa'.split('_');var Be=ue;var Qe=ue;var Xe=ue;function Ke(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),s=this.weekdaysMin(n,''),i=this.weekdaysShort(n,''),r=this.weekdays(n,''),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=ce(o[t]),u[t]=ce(u[t]),l[t]=ce(l[t]);this._weekdaysRegex=new RegExp('^('+l.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+u.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+o.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+a.join('|')+')','i')}function et(){return this.hours()%12||12}function tt(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}j('H',['HH',2],0,'hour'),j('h',['hh',2],0,et),j('k',['kk',2],0,function(){return this.hours()||24}),j('hmm',0,0,function(){return''+et.apply(this)+G(this.minutes(),2)}),j('hmmss',0,0,function(){return''+et.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),j('Hmm',0,0,function(){return''+this.hours()+G(this.minutes(),2)}),j('Hmmss',0,0,function(){return''+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),tt('a',!0),tt('A',!1),C('hour','h'),N('hour',13),de('a',nt),de('A',nt),de('H',X),de('h',X),de('k',X),de('HH',X,J),de('hh',X,J),de('kk',X,J),de('hmm',K),de('hmmss',ee),de('Hmm',K),de('Hmmss',ee),me(['H','HH'],we),me(['k','kk'],function(e,t,n){var s=D(e);t[we]=24===s?0:s}),me(['a','A'],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(['h','hh'],function(e,t,n){t[we]=D(e),m(n).bigHour=!0}),me('hmm',function(e,t,n){var s=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s)),m(n).bigHour=!0}),me('hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s,2)),t[Se]=D(e.substr(i)),m(n).bigHour=!0}),me('Hmm',function(e,t,n){var s=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s))}),me('Hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[we]=D(e.substr(0,s)),t[Me]=D(e.substr(s,2)),t[Se]=D(e.substr(i))});var st,it=Pe('Hours',!0),rt={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},at={},ot={};function ut(e){return e?e.toLowerCase().replace('_','-'):e}function lt(e){var s=null;if(!at[e]&&void 0!==n&&n&&n.exports)try{s=st._abbr,t('./locale/'+e),dt(s)}catch(e){}return at[e]}function dt(e,t){var n;return e&&((n=o(t)?ct(e):ht(e,t))?st=n:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+e+' not found. Did you forget to load it?')),st._abbr}function ht(e,t){if(null!==t){var n,s=rt;if(t.abbr=e,null!=at[e])b('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])s=at[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;s=n._config}return at[e]=new H(W(s,t)),ot[e]&&ot[e].forEach(function(e){ht(e.name,e.config)}),dt(e),at[e]}return delete at[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!r(e)){if(t=lt(e))return t;e=[e]}return(function(e){for(var t,n,s,i,r=0;r0;){if(s=lt(i.slice(0,t).join('-')))return s;if(n&&n.length>=t&&k(i,n,!0)>=t-1)break;t--}r++}return st})(e)}function ft(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ve]<0||n[ve]>11?ve:n[pe]<1||n[pe]>Re(n[ge],n[ve])?pe:n[we]<0||n[we]>24||24===n[we]&&(0!==n[Me]||0!==n[Se]||0!==n[De])?we:n[Me]<0||n[Me]>59?Me:n[Se]<0||n[Se]>59?Se:n[De]<0||n[De]>999?De:-1,m(e)._overflowDayOfYear&&(tpe)&&(t=pe),m(e)._overflowWeeks&&-1===t&&(t=ke),m(e)._overflowWeekday&&-1===t&&(t=Ye),m(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,s,r,a,o=[];if(!e._d){for(s=(function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]})(e),e._w&&null==e._a[pe]&&null==e._a[ve]&&(function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=mt(t.GG,e._a[ge],Ze(Pt(),1,4).year),s=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ze(Pt(),r,a);n=mt(t.gg,e._a[ge],l.year),s=mt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r}s<1||s>ze(n,r,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,s,i,r,a),e._a[ge]=o.year,e._dayOfYear=o.dayOfYear)})(e),null!=e._dayOfYear&&(a=mt(e._a[ge],s[ge]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[pe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[Me]&&0===e._a[Se]&&0===e._a[De]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ie:function(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/]],wt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Mt=/^\/?Date\((\-?\d+)/i;function St(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o);if(u){for(m(e).iso=!0,t=0,n=pt.length;t0&&m(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),A[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),ye(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=u-l,o.length>0&&m(e).unusedInput.push(o),e._a[we]<=12&&!0===m(e).bigHour&&e._a[we]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[we]=(function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t})(e._locale,e._a[we],e._meridiem),_t(e),ft(e)}else Ot(e);else St(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&''===t?y({nullInput:!0}):('string'==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(ft(t)):(l(t)?e._d=t:r(n)?(function(e){var t,n,s,i,r;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()});function Rt(e,t){var n,s;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],s=1;s(r=ze(e,s,i))&&(t=r),function(e,t,n,s,i){var r=je(e,t,n,s,i),a=Ie(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}j(0,['gg',2],0,function(){return this.weekYear()%100}),j(0,['GG',2],0,function(){return this.isoWeekYear()%100}),sn('gggg','weekYear'),sn('ggggg','weekYear'),sn('GGGG','isoWeekYear'),sn('GGGGG','isoWeekYear'),C('weekYear','gg'),C('isoWeekYear','GG'),N('weekYear',1),N('isoWeekYear',1),de('G',re),de('g',re),de('GG',X,J),de('gg',X,J),de('GGGG',ne,B),de('gggg',ne,B),de('GGGGG',se,Q),de('ggggg',se,Q),_e(['gggg','ggggg','GGGG','GGGGG'],function(e,t,n,s){t[s.substr(0,2)]=D(e)}),_e(['gg','GG'],function(e,t,n,s){t[s]=i.parseTwoDigitYear(e)}),j('Q',0,'Qo','quarter'),C('quarter','Q'),N('quarter',7),de('Q',$),me('Q',function(e,t){t[ve]=3*(D(e)-1)}),j('D',['DD',2],'Do','date'),C('date','D'),N('date',9),de('D',X),de('DD',X,J),de('Do',function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(['D','DD'],pe),me('Do',function(e,t){t[pe]=D(e.match(X)[0])});var an=Pe('Date',!0);j('DDD',['DDDD',3],'DDDo','dayOfYear'),C('dayOfYear','DDD'),N('dayOfYear',4),de('DDD',te),de('DDDD',q),me(['DDD','DDDD'],function(e,t,n){n._dayOfYear=D(e)}),j('m',['mm',2],0,'minute'),C('minute','m'),N('minute',14),de('m',X),de('mm',X,J),me(['m','mm'],Me);var on=Pe('Minutes',!1);j('s',['ss',2],0,'second'),C('second','s'),N('second',15),de('s',X),de('ss',X,J),me(['s','ss'],Se);var un,ln=Pe('Seconds',!1);for(j('S',0,0,function(){return~~(this.millisecond()/100)}),j(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),j(0,['SSS',3],0,'millisecond'),j(0,['SSSS',4],0,function(){return 10*this.millisecond()}),j(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),j(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),j(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),j(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),j(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),C('millisecond','ms'),N('millisecond',16),de('S',te,$),de('SS',te,J),de('SSS',te,q),un='SSSS';un.length<=9;un+='S')de(un,ie);function dn(e,t){t[De]=D(1e3*('0.'+e))}for(un='S';un.length<=9;un+='S')me(un,dn);var hn=Pe('Milliseconds',!1);j('z',0,0,'zoneAbbr'),j('zz',0,0,'zoneName');var cn=w.prototype;function fn(e){return e}cn.add=Qt,cn.calendar=function(e,t){var n=e||Pt(),s=Et(n,this).startOf('day'),r=i.calendarFormat(this,s)||'sameElse',a=t&&(P(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Pt(n)))},cn.clone=function(){return new w(this)},cn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Et(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=F(t)){case'year':r=Kt(this,s)/12;break;case'month':r=Kt(this,s);break;case'quarter':r=Kt(this,s)/3;break;case'second':r=(this-s)/1e3;break;case'minute':r=(this-s)/6e4;break;case'hour':r=(this-s)/36e5;break;case'day':r=(this-s-i)/864e5;break;case'week':r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:S(r)},cn.endOf=function(e){return void 0===(e=F(e))||'millisecond'===e?this:('date'===e&&(e='day'),this.startOf(e).add(1,'isoWeek'===e?'week':e).subtract(1,'ms'))},cn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)},cn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Pt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.fromNow=function(e){return this.from(Pt(),e)},cn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Pt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.toNow=function(e){return this.to(Pt(),e)},cn.get=function(e){return P(this[e=F(e)])?this[e]():this},cn.invalidAt=function(){return m(this).overflow},cn.isAfter=function(e,t){var n=M(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&('millisecond'===(t=F(o(t)?'millisecond':t))?this.valueOf()>n.valueOf():n.valueOf()9999?Z(n,t?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',Z(n,'Z')):Z(n,t?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},cn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var e='moment',t='';this.isLocal()||(e=0===this.utcOffset()?'moment.utc':'moment.parseZone',t='Z');var n='['+e+'("]',s=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',i=t+'[")]';return this.format(n+s+'-MM-DD[T]HH:mm:ss.SSS'+i)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=be,cn.isLeapYear=function(){return Te(this.year())},cn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},cn.month=Ne,cn.daysInMonth=function(){return Re(this.year(),this.month())},cn.week=cn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),'d')},cn.isoWeek=cn.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),'d')},cn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},cn.isoWeeksInYear=function(){return ze(this.year(),1,4)},cn.date=an,cn.day=cn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=(function(e,t){return'string'!=typeof e?e:isNaN(e)?'number'==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)})(e,this.localeData()),this.add(e-t,'d')):t},cn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,'d')},cn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(function(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e})(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},cn.dayOfYear=function(e){var t=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==e?t:this.add(e-t,'d')},cn.hour=cn.hours=it,cn.minute=cn.minutes=on,cn.second=cn.seconds=ln,cn.millisecond=cn.milliseconds=hn,cn.utcOffset=function(e,t,n){var s,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if('string'==typeof e){if(null===(e=Vt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=It(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,'m'),r!==e&&(!t||this._changeInProgress?Bt(this,zt(e-r,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:It(this)},cn.utc=function(e){return this.utcOffset(0,e)},cn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),'m')),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var e=Vt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=At,cn.isUTC=At,cn.zoneAbbr=function(){return this._isUTC?'UTC':''},cn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},cn.dates=O('dates accessor is deprecated. Use date instead.',an),cn.months=O('months accessor is deprecated. Use month instead',Ne),cn.years=O('years accessor is deprecated. Use year instead',be),cn.zone=O('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(e,t){return null!=e?('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),cn.isDSTShifted=O('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=xt(e))._a){var t=e._isUTC?f(e._a):Pt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var mn=H.prototype;function _n(e,t,n,s){var i=ct(),r=f().set(s,t);return i[n](r,e)}function yn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||'',null!=t)return _n(e,t,n,'month');var s,i=[];for(s=0;s<12;s++)i[s]=_n(e,s,n,'month');return i}function gn(e,t,n,s){'boolean'==typeof e?(u(t)&&(n=t,t=void 0),t=t||''):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||'');var i,r=ct(),a=e?r._week.dow:0;if(null!=n)return _n(t,(n+a)%7,s,'day');var o=[];for(i=0;i<7;i++)o[i]=_n(t,(i+a)%7,s,'day');return o}mn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return P(s)?s.call(t,n):s},mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn.invalidDate=function(){return this._invalidDate},mn.ordinal=function(e){return this._ordinal.replace('%d',e)},mn.preparse=fn,mn.postformat=fn,mn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return P(i)?i(e,t,n,s):i.replace(/%d/i,e)},mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?'future':'past'];return P(n)?n(t):n.replace(/%s/i,t)},mn.set=function(e){var t,n;for(n in e)P(t=e[n])?this[n]=t:this['_'+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},mn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?'format':'standalone'][e.month()]:r(this._months)?this._months:this._months.standalone},mn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?'format':'standalone'][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,'').toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,'').toLocaleLowerCase();return n?'MMM'===t?-1!==(i=xe.call(this._shortMonthsParse,a))?i:null:-1!==(i=xe.call(this._longMonthsParse,a))?i:null:'MMM'===t?-1!==(i=xe.call(this._shortMonthsParse,a))?i:-1!==(i=xe.call(this._longMonthsParse,a))?i:null:-1!==(i=xe.call(this._longMonthsParse,a))?i:-1!==(i=xe.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp('^'+this.months(i,'').replace('.','')+'$','i'),this._shortMonthsParse[s]=new RegExp('^'+this.monthsShort(i,'').replace('.','')+'$','i')),n||this._monthsParse[s]||(r='^'+this.months(i,'')+'|^'+this.monthsShort(i,''),this._monthsParse[s]=new RegExp(r.replace('.',''),'i')),n&&'MMMM'===t&&this._longMonthsParse[s].test(e))return s;if(n&&'MMM'===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},mn.monthsRegex=function(e){return this._monthsParseExact?(h(this,'_monthsRegex')||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,'_monthsRegex')||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},mn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,'_monthsRegex')||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,'_monthsShortRegex')||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},mn.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?'format':'standalone'][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},mn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},mn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},mn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,'').toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,'').toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,'').toLocaleLowerCase();return n?'dddd'===t?-1!==(i=xe.call(this._weekdaysParse,a))?i:null:'ddd'===t?-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:'dddd'===t?-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:'ddd'===t?-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:null:-1!==(i=xe.call(this._minWeekdaysParse,a))?i:-1!==(i=xe.call(this._weekdaysParse,a))?i:-1!==(i=xe.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp('^'+this.weekdays(i,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[s]=new RegExp('^'+this.weekdaysShort(i,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[s]=new RegExp('^'+this.weekdaysMin(i,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[s]||(r='^'+this.weekdays(i,'')+'|^'+this.weekdaysShort(i,'')+'|^'+this.weekdaysMin(i,''),this._weekdaysParse[s]=new RegExp(r.replace('.',''),'i')),n&&'dddd'===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&'ddd'===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&'dd'===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,'_weekdaysRegex')||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,'_weekdaysRegex')||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mn.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},mn.meridiem=function(e,t,n){return e>11?n?'pm':'PM':n?'am':'AM'},dt('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?'th':1===t?'st':2===t?'nd':3===t?'rd':'th')}}),i.lang=O('moment.lang is deprecated. Use moment.locale instead.',dt),i.langData=O('moment.langData is deprecated. Use moment.localeData instead.',ct);var vn=Math.abs;function pn(e,t,n,s){var i=zt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var kn=Dn('ms'),Yn=Dn('s'),On=Dn('m'),Tn=Dn('h'),xn=Dn('d'),bn=Dn('w'),Pn=Dn('M'),Wn=Dn('y');function Hn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rn=Hn('milliseconds'),Cn=Hn('seconds'),Fn=Hn('minutes'),Ln=Hn('hours'),Un=Hn('days'),Nn=Hn('months'),Gn=Hn('years');var Vn=Math.round,En={ss:44,s:45,m:45,h:22,d:26,M:11};var In=Math.abs;function An(e){return(e>0)-(e<0)||+e}function jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=In(this._milliseconds)/1e3,s=In(this._days),i=In(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,''):'',h=this.asSeconds();if(!h)return'P0D';var c=h<0?'-':'',f=An(this._months)!==An(h)?'-':'',m=An(this._days)!==An(h)?'-':'',_=An(this._milliseconds)!==An(h)?'-':'';return c+'P'+(r?f+r+'Y':'')+(a?f+a+'M':'')+(o?m+o+'D':'')+(u||l||d?'T':'')+(u?_+u+'H':'')+(l?_+l+'M':'')+(d?_+d+'S':'')}var Zn=Ft.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Zn.add=function(e,t){return pn(this,e,t,1)},Zn.subtract=function(e,t){return pn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if('month'===(e=F(e))||'year'===e)return t=this._days+s/864e5,n=this._months+Mn(t),'month'===e?n:n/12;switch(t=this._days+Math.round(Sn(this._months)),e){case'week':return t/7+s/6048e5;case'day':return t+s/864e5;case'hour':return 24*t+s/36e5;case'minute':return 1440*t+s/6e4;case'second':return 86400*t+s/1e3;case'millisecond':return Math.floor(864e5*t)+s;default:throw new Error('Unknown unit '+e)}},Zn.asMilliseconds=kn,Zn.asSeconds=Yn,Zn.asMinutes=On,Zn.asHours=Tn,Zn.asDays=xn,Zn.asWeeks=bn,Zn.asMonths=Pn,Zn.asYears=Wn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},Zn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*wn(Sn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Mn(a+=S(n/24))),a-=wn(Sn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},Zn.clone=function(){return zt(this)},Zn.get=function(e){return e=F(e),this.isValid()?this[e+'s']():NaN},Zn.milliseconds=Rn,Zn.seconds=Cn,Zn.minutes=Fn,Zn.hours=Ln,Zn.days=Un,Zn.weeks=function(){return S(this.days()/7)},Zn.months=Nn,Zn.years=Gn,Zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=(function(e,t,n){var s=zt(e).abs(),i=Vn(s.as('s')),r=Vn(s.as('m')),a=Vn(s.as('h')),o=Vn(s.as('d')),u=Vn(s.as('M')),l=Vn(s.as('y')),d=i<=En.ss&&['s',i]||i0,d[4]=n,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,d)})(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Zn.toISOString=jn,Zn.toString=jn,Zn.toJSON=jn,Zn.locale=en,Zn.localeData=nn,Zn.toIsoString=O('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',jn),Zn.lang=tn,j('X',0,0,'unix'),j('x',0,0,'valueOf'),de('x',re),de('X',/[+-]?\d+(\.\d{1,3})?/),me('X',function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),me('x',function(e,t,n){n._d=new Date(D(e))}),i.version='2.22.2',e=Pt,i.fn=cn,i.min=function(){return Rt('isBefore',[].slice.call(arguments,0))},i.max=function(){return Rt('isAfter',[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Pt(1e3*e)},i.months=function(e,t){return yn(e,t,'months')},i.isDate=l,i.locale=dt,i.invalid=y,i.duration=zt,i.isMoment=M,i.weekdays=function(e,t,n){return gn(e,t,n,'weekdays')},i.parseZone=function(){return Pt.apply(null,arguments).parseZone()},i.localeData=ct,i.isDuration=Lt,i.monthsShort=function(e,t){return yn(e,t,'monthsShort')},i.weekdaysMin=function(e,t,n){return gn(e,t,n,'weekdaysMin')},i.defineLocale=ht,i.updateLocale=function(e,t){if(null!=t){var n,s,i=rt;null!=(s=lt(e))&&(i=s._config),(n=new H(t=W(i,t))).parentLocale=at[e],at[e]=n,dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return T(at)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,'weekdaysShort')},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?Vn:'function'==typeof e&&(Vn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==En[e]&&(void 0===t?En[e]:(En[e]=t,'s'===e&&(En.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,'days',!0);return n<-6?'sameElse':n<-1?'lastWeek':n<0?'lastDay':n<1?'sameDay':n<2?'nextDay':n<7?'nextWeek':'sameElse'},i.prototype=cn,i.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'YYYY-[W]WW',MONTH:'YYYY-MM'},i})},1274); +__d(function(v,n,o,r){var t=n(1276),_=n(1279),a=_;a.v1=t,a.v4=_,o.exports=a},1275); +__d(function(e,o,s,c){var r=o(1277),n=o(1278),i=r(),v=[1|i[0],i[1],i[2],i[3],i[4],i[5]],t=16383&(i[6]<<8|i[7]),a=0,d=0;s.exports=function(e,o,s){var c=o&&s||0,r=o||[],i=void 0!==(e=e||{}).clockseq?e.clockseq:t,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:d+1,m=u-a+(f-d)/1e4;if(m<0&&void 0===e.clockseq&&(i=i+1&16383),(m<0||u>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');a=u,d=f,t=i;var k=(1e4*(268435455&(u+=122192928e5))+f)%4294967296;r[c++]=k>>>24&255,r[c++]=k>>>16&255,r[c++]=k>>>8&255,r[c++]=255&k;var l=u/4294967296*1e4&268435455;r[c++]=l>>>8&255,r[c++]=255&l,r[c++]=l>>>24&15|16,r[c++]=l>>>16&255,r[c++]=i>>>8|128,r[c++]=255&i;for(var q=e.node||v,w=0;w<6;++w)r[c+w]=q[w];return o||n(r)}},1276); +__d(function(r,n,a,t){var o,e=r.crypto||r.msCrypto;if(e&&e.getRandomValues){var u=new Uint8Array(16);o=function(){return e.getRandomValues(u),u}}if(!o){var f=new Array(16);o=function(){for(var r,n=0;n<16;n++)0==(3&n)&&(r=4294967296*Math.random()),f[n]=r>>>((3&n)<<3)&255;return f}}a.exports=o},1277); +__d(function(r,t,n,o){for(var u=[],f=0;f<256;++f)u[f]=(f+256).toString(16).substr(1);n.exports=function(r,t){var n=t||0,o=u;return o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+'-'+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]+o[r[n++]]}},1278); +__d(function(r,n,a,o){var t=n(1277),f=n(1278);a.exports=function(r,n,a){var o=n&&a||0;'string'==typeof r&&(n='binary'==r?new Array(16):null,r=null);var i=(r=r||{}).random||(r.rng||t)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n)for(var u=0;u<16;++u)n[o+u]=i[u];return n||f(i)}},1279); +__d(function(e,r,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSameDay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.createdAt)return!1;var t=(0,a.default)(e.createdAt),i=(0,a.default)(r.createdAt);if(!t.isValid()||!i.isValid())return!1;return t.isSame(i,'day')},i.isSameUser=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!r.user||!e.user||r.user._id!==e.user._id)},i.warnDeprecated=function(e){return function(){return console.warn(u),e.apply(void 0,arguments)}};var n=r(1274),a=babelHelpers.interopRequireDefault(n),u='isSameUser and isSameDay should be imported from the utils module instead of using the props functions'},1280); +__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0});var r=t(1267),i=babelHelpers.interopRequireDefault(r),s=t(51),p=babelHelpers.interopRequireDefault(s),l=t(17),c=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.onActionsPress=o.onActionsPress.bind(o),o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onActionsPress",value:function(){var e=this,t=Object.keys(this.props.options),o=Object.keys(this.props.options).length-1;this.context.actionSheet().showActionSheetWithOptions({options:t,cancelButtonIndex:o,tintColor:this.props.optionTintColor},function(t){var o=0;for(var n in e.props.options)if(e.props.options.hasOwnProperty(n)){if(t===o)return void e.props.options[n](e.props);o++}})}},{key:"renderIcon",value:function(){return this.props.icon?this.props.icon():p.default.createElement(l.View,{style:[a.wrapper,this.props.wrapperStyle]},p.default.createElement(l.Text,{style:[a.iconText,this.props.iconTextStyle]},"+"))}},{key:"render",value:function(){return p.default.createElement(l.TouchableOpacity,{style:[a.container,this.props.containerStyle],onPress:this.props.onPressActionButton||this.onActionsPress},this.renderIcon())}}]),t})(p.default.Component);n.default=c;var a=l.StyleSheet.create({container:{width:26,height:26,marginLeft:10,marginBottom:10},wrapper:{borderRadius:13,borderColor:'#b2b2b2',borderWidth:2,flex:1},iconText:{color:'#b2b2b2',fontWeight:'bold',fontSize:16,backgroundColor:'transparent',textAlign:'center'}});c.contextTypes={actionSheet:i.default.func},c.defaultProps={onSend:function(){},options:{},optionTintColor:'#007AFF',icon:null,containerStyle:{},iconTextStyle:{}},c.propTypes={onSend:i.default.func,options:i.default.object,optionTintColor:i.default.string,icon:i.default.func,onPressActionButton:i.default.func,containerStyle:l.ViewPropTypes.style,iconTextStyle:l.Text.propTypes.style}},1281); +__d(function(e,t,r,s){Object.defineProperty(s,"__esModule",{value:!0});var a=t(1267),i=babelHelpers.interopRequireDefault(a),o=t(51),n=babelHelpers.interopRequireDefault(o),p=t(17),l=t(1283),u=babelHelpers.interopRequireDefault(l),h=t(1280),f=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderAvatar",value:function(){var e=this;if(this.props.renderAvatar){var t=this.props,r=(t.renderAvatar,babelHelpers.objectWithoutProperties(t,["renderAvatar"]));return this.props.renderAvatar(r)}return n.default.createElement(u.default,{avatarStyle:p.StyleSheet.flatten([c[this.props.position].image,this.props.imageStyle[this.props.position]]),user:this.props.currentMessage.user,onPress:function(){return e.props.onPressAvatar&&e.props.onPressAvatar(e.props.currentMessage.user)}})}},{key:"render",value:function(){var e=this.props.renderAvatarOnTop,t=e?this.props.previousMessage:this.props.nextMessage,r=e?"onTop":"onBottom";return null===this.props.renderAvatar?null:(0,h.isSameUser)(this.props.currentMessage,t)&&(0,h.isSameDay)(this.props.currentMessage,t)?n.default.createElement(p.View,{style:[c[this.props.position].container,this.props.containerStyle[this.props.position]]},n.default.createElement(u.default,{avatarStyle:p.StyleSheet.flatten([c[this.props.position].image,this.props.imageStyle[this.props.position]])})):n.default.createElement(p.View,{style:[c[this.props.position].container,c[this.props.position][r],this.props.containerStyle[this.props.position]]},this.renderAvatar())}}]),t})(n.default.Component);s.default=f;var c={left:p.StyleSheet.create({container:{marginRight:8},onTop:{alignSelf:"flex-start"},onBottom:{},image:{height:36,width:36,borderRadius:18}}),right:p.StyleSheet.create({container:{marginLeft:8},onTop:{alignSelf:"flex-start"},onBottom:{},image:{height:36,width:36,borderRadius:18}})};f.defaultProps={renderAvatarOnTop:!1,position:'left',currentMessage:{user:null},nextMessage:{},containerStyle:{},imageStyle:{},isSameDay:(0,h.warnDeprecated)(h.isSameDay),isSameUser:(0,h.warnDeprecated)(h.isSameUser)},f.propTypes={renderAvatarOnTop:i.default.bool,position:i.default.oneOf(['left','right']),currentMessage:i.default.object,nextMessage:i.default.object,onPressAvatar:i.default.func,containerStyle:i.default.shape({left:p.ViewPropTypes.style,right:p.ViewPropTypes.style}),imageStyle:i.default.shape({left:p.ViewPropTypes.style,right:p.ViewPropTypes.style}),isSameDay:i.default.func,isSameUser:i.default.func}},1282); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1267),o=babelHelpers.interopRequireDefault(s),l=t(51),n=babelHelpers.interopRequireDefault(l),i=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setAvatarColor",value:function(){var e=this.props.user.name||'',t=e.toUpperCase().split(' ');1===t.length?this.avatarName=""+t[0].charAt(0):t.length>1?this.avatarName=""+t[0].charAt(0)+t[1].charAt(0):this.avatarName='';for(var a=0,r=0;r0&&(i+=encodeURIComponent(s.join(',')))}if(i+='?',p('Array',arguments[1])){var c=u(arguments[1],'String');c.length>0&&(a=!0,i+='cc='+encodeURIComponent(c.join(',')))}if(p('Array',arguments[2])){a&&(i+='&');var g=u(arguments[2],'String');g.length>0&&(a=!0,i+='bcc='+encodeURIComponent(g.join(',')))}p('String',arguments[3])&&(a&&(i+='&'),a=!0,i+='subject='+encodeURIComponent(arguments[3])),p('String',arguments[4])&&(a&&(i+='&'),i+='body='+encodeURIComponent(arguments[4])),d(i)},a=t.text=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(arguments.length>2)console.log('you supplied too many arguments. You can either supply 0 or 1 or 2');else{var n='sms:';e&&(p('String',e)?n+=e:console.log('the phone number should be provided as a string. It was provided as '+Object.prototype.toString.call(e).slice(8,-1)+',ignoring the value provided')),o&&(p('String',o)?('android'===r.Platform.OS&&(o=encodeURIComponent(o)),n+='ios'===r.Platform.OS?"&body="+encodeURIComponent(o):"?body="+encodeURIComponent(o)):console.log('the body should be provided as a string. It was provided as '+Object.prototype.toString.call(o).slice(8,-1)+',ignoring the value provided')),d(n)}},s=t.textWithoutEncoding=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(arguments.length>2)console.log('you supplied too many arguments. You can either supply 0 or 1 or 2');else{var n='sms:';e&&(p('String',e)?n+=e:console.log('the phone number should be provided as a string. It was provided as '+Object.prototype.toString.call(e).slice(8,-1)+',ignoring the value provided')),o&&(p('String',o)?n+='ios'===r.Platform.OS?"&body="+o:"?body="+o:console.log('the body should be provided as a string. It was provided as '+Object.prototype.toString.call(o).slice(8,-1)+',ignoring the value provided')),d(n)}},c=t.web=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e?p('String',e)?d(e):console.log('address was not provided as a string, it was provided as '+Object.prototype.toString.call(e).slice(8,-1)):console.log('Missing address argument')},d=function(e){r.Linking.canOpenURL(e).then(function(o){o?r.Linking.openURL(e).catch(function(o){e.includes('telprompt')||console.warn('openURL error',o)}):console.log('Can\'t handle url: '+e)}).catch(function(e){return console.warn('An unexpected error happened',e)})},u=function(e,o){var n=[];return e.forEach(function(e){p(o,e)&&n.push(e)}),n},p=function(e,o){return Object.prototype.toString.call(o).slice(8,-1)===e};t.default={phonecall:i,text:a,textWithoutEncoding:s,email:l,web:c}},1288); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(1267),s=babelHelpers.interopRequireDefault(l),i=t(51),o=babelHelpers.interopRequireDefault(i),n=t(17),p=t(1290),u=babelHelpers.interopRequireDefault(p),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return o.default.createElement(n.View,{style:[b.container,this.props.containerStyle]},o.default.createElement(u.default,babelHelpers.extends({activeProps:{style:b.imageActive}},this.props.lightboxProps),o.default.createElement(n.Image,babelHelpers.extends({},this.props.imageProps,{style:[b.image,this.props.imageStyle],source:{uri:this.props.currentMessage.image}}))))}}]),t})(o.default.Component);a.default=c;var b=n.StyleSheet.create({container:{},image:{width:150,height:100,borderRadius:13,margin:3,resizeMode:'cover'},imageActive:{flex:1,resizeMode:'contain'}});c.defaultProps={currentMessage:{image:null},containerStyle:{},imageStyle:{}},c.propTypes={currentMessage:s.default.object,containerStyle:n.ViewPropTypes.style,imageStyle:n.Image.propTypes.style,imageProps:s.default.object,lightboxProps:s.default.object}},1289); +__d(function(e,t,o,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireDefault(n),i=t(105),a=babelHelpers.interopRequireDefault(i),p=t(17),l=t(1291),u=babelHelpers.interopRequireDefault(l),c=(function(e){function t(){var e,o,r,s;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,a=Array(i),l=0;l150?(e.setState({isPanning:!1,target:{y:n.dy,x:n.dx,opacity:1-Math.abs(n.dy/p)}}),e.close()):l.Animated.spring(e.state.pan,babelHelpers.extends({toValue:0},e.props.springConfig)).start(function(){e.setState({isPanning:!1})})}})}},{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentWillReceiveProps",value:function(e){this.props.isOpen!=e.isOpen&&e.isOpen&&this.open()}},{key:"render",value:function(){var e=this,t=this.props,n=t.isOpen,a=t.renderHeader,i=t.swipeToDismiss,s=t.origin,r=t.backgroundColor,c=this.state,g=c.isPanning,h=(c.isAnimating,c.openVal),b=c.target,m={opacity:h.interpolate({inputRange:[0,1],outputRange:[0,b.opacity]})},y=void 0;i&&(y=this._panResponder.panHandlers);var R=void 0;g&&(R={top:this.state.pan},m.opacity=this.state.pan.interpolate({inputRange:[-p,0,p],outputRange:[0,1,0]}));var w=[f.open,{left:h.interpolate({inputRange:[0,1],outputRange:[s.x,b.x]}),top:h.interpolate({inputRange:[0,1],outputRange:[s.y+d,b.y+d]}),width:h.interpolate({inputRange:[0,1],outputRange:[s.width,u]}),height:h.interpolate({inputRange:[0,1],outputRange:[s.height,p]})}],C=o.default.createElement(l.Animated.View,{style:[f.background,{backgroundColor:r},m]}),S=o.default.createElement(l.Animated.View,{style:[f.header,m]},a?a(this.close):o.default.createElement(l.TouchableOpacity,{onPress:this.close},o.default.createElement(l.Text,{style:f.closeButton},"\xd7"))),v=o.default.createElement(l.Animated.View,babelHelpers.extends({style:[w,R]},y),this.props.children);return this.props.navigator?o.default.createElement(l.View,null,C,v,S):o.default.createElement(l.Modal,{visible:n,transparent:!0,onRequestClose:function(){return e.close()}},C,v,S)}}]),t})(i.Component);g.propTypes={origin:r.default.shape({x:r.default.number,y:r.default.number,width:r.default.number,height:r.default.number}),springConfig:r.default.shape({tension:r.default.number,friction:r.default.number}),backgroundColor:r.default.string,isOpen:r.default.bool,renderHeader:r.default.func,onOpen:r.default.func,onClose:r.default.func,swipeToDismiss:r.default.bool},g.defaultProps={springConfig:{tension:30,friction:7},backgroundColor:'black'},a.default=g},1291); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var s=t(1267),o=babelHelpers.interopRequireDefault(s),a=t(51),n=babelHelpers.interopRequireDefault(a),i=t(17),p=t(1274),u=babelHelpers.interopRequireDefault(p),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(i.View,{style:[h[this.props.position].container,this.props.containerStyle[this.props.position]]},n.default.createElement(i.Text,{style:[h[this.props.position].text,this.props.textStyle[this.props.position]]},(0,u.default)(this.props.currentMessage.createdAt).locale(this.context.getLocale()).format(this.props.timeFormat)))}}]),t})(n.default.Component);l.default=c;var f={marginLeft:10,marginRight:10,marginBottom:5},b={fontSize:10,backgroundColor:'transparent',textAlign:'right'},h={left:i.StyleSheet.create({container:babelHelpers.extends({},f),text:babelHelpers.extends({color:'#aaa'},b)}),right:i.StyleSheet.create({container:babelHelpers.extends({},f),text:babelHelpers.extends({color:'#fff'},b)})};c.contextTypes={getLocale:o.default.func},c.defaultProps={position:'left',currentMessage:{createdAt:null},containerStyle:{},textStyle:{}},c.propTypes={position:o.default.oneOf(['left','right']),currentMessage:o.default.object,containerStyle:o.default.shape({left:i.ViewPropTypes.style,right:i.ViewPropTypes.style}),textStyle:o.default.shape({left:i.Text.propTypes.style,right:i.Text.propTypes.style}),timeFormat:o.default.string}},1292); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),s=babelHelpers.interopRequireDefault(n),a=t(17),p=t(1267),o=babelHelpers.interopRequireDefault(p),i=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.currentMessage;return s.default.createElement(a.View,{style:[u.container,this.props.containerStyle]},s.default.createElement(a.View,{style:[u.wrapper,this.props.wrapperStyle]},s.default.createElement(a.Text,{style:[u.text,this.props.textStyle]},e.text)))}}]),t})(s.default.Component);l.default=i;var u=a.StyleSheet.create({container:{alignItems:"center",justifyContent:"center",flex:1,marginTop:5,marginBottom:10},text:{backgroundColor:"transparent",color:"#b2b2b2",fontSize:12,fontWeight:"300"}});i.defaultProps={currentMessage:{system:!1},containerStyle:{},wrapperStyle:{},textStyle:{}},i.propTypes={currentMessage:o.default.object,containerStyle:a.ViewPropTypes.style,wrapperStyle:a.ViewPropTypes.style,textStyle:a.Text.propTypes.style}},1293); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var l=t(1267),r=babelHelpers.interopRequireDefault(l),i=t(51),p=babelHelpers.interopRequireDefault(i),a=t(17),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onContentSizeChange",value:function(e){var t=e.nativeEvent.contentSize;t&&(this.contentSize&&this.contentSize.width===t.width&&this.contentSize.height===t.height||(this.contentSize=t,this.props.onInputSizeChanged(this.contentSize)))}},{key:"onChangeText",value:function(e){this.props.onTextChanged(e)}},{key:"render",value:function(){var e=this;return p.default.createElement(a.TextInput,babelHelpers.extends({placeholder:this.props.placeholder,placeholderTextColor:this.props.placeholderTextColor,multiline:this.props.multiline,onChange:function(t){return e.onContentSizeChange(t)},onContentSizeChange:function(t){return e.onContentSizeChange(t)},onChangeText:function(t){return e.onChangeText(t)},style:[u.textInput,this.props.textInputStyle,{height:this.props.composerHeight}],autoFocus:this.props.textInputAutoFocus,value:this.props.text,accessibilityLabel:this.props.text||this.props.placeholder,enablesReturnKeyAutomatically:!0,underlineColorAndroid:"transparent"},this.props.textInputProps))}}]),t})(p.default.Component);o.default=s;var u=a.StyleSheet.create({textInput:{flex:1,marginLeft:10,fontSize:16,lineHeight:16,marginTop:a.Platform.select({ios:6,android:0}),marginBottom:a.Platform.select({ios:5,android:3})}});s.defaultProps={composerHeight:a.Platform.select({ios:33,android:41}),text:'',placeholderTextColor:'#b2b2b2',textInputProps:null,multiline:!0,textInputStyle:{},textInputAutoFocus:!1,onTextChanged:function(){},onInputSizeChanged:function(){}},s.propTypes={composerHeight:r.default.number,text:r.default.string,placeholder:r.default.string,placeholderTextColor:r.default.string,textInputProps:r.default.object,onTextChanged:r.default.func,onInputSizeChanged:r.default.func,multiline:r.default.bool,textInputStyle:a.TextInput.propTypes.style,textInputAutoFocus:r.default.bool}},1294); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var s=t(1267),l=babelHelpers.interopRequireDefault(s),p=t(51),n=babelHelpers.interopRequireDefault(p),o=t(17),i=t(1274),u=babelHelpers.interopRequireDefault(i),c=t(1280),y=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.dateFormat;return(0,c.isSameDay)(this.props.currentMessage,this.props.previousMessage)?null:n.default.createElement(o.View,{style:[f.container,this.props.containerStyle]},n.default.createElement(o.View,{style:[f.wrapper,this.props.wrapperStyle]},n.default.createElement(o.Text,{style:[f.text,this.props.textStyle]},(0,u.default)(this.props.currentMessage.createdAt).locale(this.context.getLocale()).format(e).toUpperCase())))}}]),t})(n.default.Component);a.default=y;var f=o.StyleSheet.create({container:{alignItems:'center',justifyContent:'center',marginTop:5,marginBottom:10},wrapper:{},text:{backgroundColor:'transparent',color:'#b2b2b2',fontSize:12,fontWeight:'600'}});y.contextTypes={getLocale:l.default.func},y.defaultProps={currentMessage:{createdAt:null},previousMessage:{},containerStyle:{},wrapperStyle:{},textStyle:{},isSameDay:(0,c.warnDeprecated)(c.isSameDay),isSameUser:(0,c.warnDeprecated)(c.isSameUser)},y.propTypes={currentMessage:l.default.object,previousMessage:l.default.object,containerStyle:o.ViewPropTypes.style,wrapperStyle:o.ViewPropTypes.style,textStyle:o.Text.propTypes.style,isSameDay:l.default.func,isSameUser:l.default.func,dateFormat:l.default.string}},1295); +__d(function(e,r,t,o){Object.defineProperty(o,"__esModule",{value:!0});var s=r(1267),n=babelHelpers.interopRequireDefault(s),i=r(51),l=babelHelpers.interopRequireDefault(i),a=r(17),p=r(1294),d=babelHelpers.interopRequireDefault(p),u=r(1297),c=babelHelpers.interopRequireDefault(u),y=r(1281),h=babelHelpers.interopRequireDefault(y),f=(function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t._keyboardWillShow=function(){t.setState({position:'relative'})},t._keyboardWillHide=function(){t.setState({position:'absolute'})},t.state={position:'absolute'},t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"componentWillMount",value:function(){this.keyboardWillShowListener=a.Keyboard.addListener('keyboardWillShow',this._keyboardWillShow),this.keyboardWillHideListener=a.Keyboard.addListener('keyboardWillHide',this._keyboardWillHide)}},{key:"componentWillUnmount",value:function(){this.keyboardWillShowListener.remove(),this.keyboardWillHideListener.remove()}},{key:"renderActions",value:function(){return this.props.renderActions?this.props.renderActions(this.props):this.props.onPressActionButton?l.default.createElement(h.default,this.props):null}},{key:"renderSend",value:function(){return this.props.renderSend?this.props.renderSend(this.props):l.default.createElement(c.default,this.props)}},{key:"renderComposer",value:function(){return this.props.renderComposer?this.props.renderComposer(this.props):l.default.createElement(d.default,this.props)}},{key:"renderAccessory",value:function(){return this.props.renderAccessory?l.default.createElement(a.View,{style:[b.accessory,this.props.accessoryStyle]},this.props.renderAccessory(this.props)):null}},{key:"render",value:function(){return l.default.createElement(a.View,{style:[b.container,this.props.containerStyle,{position:this.state.position}]},l.default.createElement(a.View,{style:[b.primary,this.props.primaryStyle]},this.renderActions(),this.renderComposer(),this.renderSend()),this.renderAccessory())}}]),r})(l.default.Component);o.default=f;var b=a.StyleSheet.create({container:{borderTopWidth:a.StyleSheet.hairlineWidth,borderTopColor:'#b2b2b2',backgroundColor:'#FFFFFF',bottom:0,width:a.Dimensions.get('window').width},primary:{flexDirection:'row',alignItems:'flex-end'},accessory:{height:44}});f.defaultProps={renderAccessory:null,renderActions:null,renderSend:null,renderComposer:null,containerStyle:{},primaryStyle:{},accessoryStyle:{}},f.propTypes={renderAccessory:n.default.func,renderActions:n.default.func,renderSend:n.default.func,renderComposer:n.default.func,onPressActionButton:n.default.func,containerStyle:a.ViewPropTypes.style,primaryStyle:a.ViewPropTypes.style,accessoryStyle:a.ViewPropTypes.style}},1296); +__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(1267),a=babelHelpers.interopRequireDefault(n),o=t(51),i=babelHelpers.interopRequireDefault(o),s=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this;return this.props.text.trim().length>0?i.default.createElement(s.TouchableOpacity,{style:[u.container,this.props.containerStyle],onPress:function(){e.props.onSend({text:e.props.text.trim()},!0)},accessibilityTraits:"button"},i.default.createElement(s.View,null,this.props.children||i.default.createElement(s.Text,{style:[u.text,this.props.textStyle]},this.props.label))):i.default.createElement(s.View,null)}}]),t})(i.default.Component);l.default=p;var u=s.StyleSheet.create({container:{height:44,justifyContent:'flex-end'},text:{color:'#0084ff',fontWeight:'600',fontSize:17,backgroundColor:'transparent',marginBottom:12,marginLeft:10,marginRight:10}});p.defaultProps={text:'',onSend:function(){},label:'Send',containerStyle:{},textStyle:{}},p.propTypes={text:a.default.string,onSend:a.default.func,label:a.default.string,containerStyle:s.ViewPropTypes.style,textStyle:s.Text.propTypes.style}},1297); +__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var i=t(1267),l=babelHelpers.interopRequireDefault(i),o=t(51),n=babelHelpers.interopRequireDefault(o),s=t(17),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"renderLoading",value:function(){return!1===this.props.isLoadingEarlier?n.default.createElement(s.Text,{style:[c.text,this.props.textStyle]},this.props.label):n.default.createElement(s.View,null,n.default.createElement(s.Text,{style:[c.text,this.props.textStyle,{opacity:0}]},this.props.label),n.default.createElement(s.ActivityIndicator,{color:"white",size:"small",style:[c.activityIndicator,this.props.activityIndicatorStyle]}))}},{key:"render",value:function(){var e=this;return n.default.createElement(s.TouchableOpacity,{style:[c.container,this.props.containerStyle],onPress:function(){e.props.onLoadEarlier&&e.props.onLoadEarlier()},disabled:!0===this.props.isLoadingEarlier,accessibilityTraits:"button"},n.default.createElement(s.View,{style:[c.wrapper,this.props.wrapperStyle]},this.renderLoading()))}}]),t})(n.default.Component);a.default=p;var c=s.StyleSheet.create({container:{alignItems:'center',marginTop:5,marginBottom:10},wrapper:{alignItems:'center',justifyContent:'center',backgroundColor:'#b2b2b2',borderRadius:15,height:30,paddingLeft:10,paddingRight:10},text:{backgroundColor:'transparent',color:'#fff',fontSize:12},activityIndicator:{marginTop:s.Platform.select({ios:-14,android:-16})}});p.defaultProps={onLoadEarlier:function(){},isLoadingEarlier:!1,label:'Load earlier messages',containerStyle:{},wrapperStyle:{},textStyle:{},activityIndicatorStyle:{}},p.propTypes={onLoadEarlier:l.default.func,isLoadingEarlier:l.default.bool,label:l.default.string,containerStyle:s.ViewPropTypes.style,wrapperStyle:s.ViewPropTypes.style,textStyle:s.Text.propTypes.style,activityIndicatorStyle:s.ViewPropTypes.style}},1298); +__d(function(e,t,r,s){Object.defineProperty(s,"__esModule",{value:!0});var n=t(1267),a=babelHelpers.interopRequireDefault(n),l=t(51),i=babelHelpers.interopRequireDefault(l),o=t(17),u=t(1282),p=babelHelpers.interopRequireDefault(u),f=t(1284),d=babelHelpers.interopRequireDefault(f),c=t(1293),b=babelHelpers.interopRequireDefault(c),h=t(1295),y=babelHelpers.interopRequireDefault(h),g=t(1280),m=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getInnerComponentProps",value:function(){var e=this.props,t=(e.containerStyle,babelHelpers.objectWithoutProperties(e,["containerStyle"]));return babelHelpers.extends({},t,{isSameUser:g.isSameUser,isSameDay:g.isSameDay})}},{key:"renderDay",value:function(){if(this.props.currentMessage.createdAt){var e=this.getInnerComponentProps();return this.props.renderDay?this.props.renderDay(e):i.default.createElement(y.default,e)}return null}},{key:"renderBubble",value:function(){var e=this.getInnerComponentProps();return this.props.renderBubble?this.props.renderBubble(e):i.default.createElement(d.default,e)}},{key:"renderSystemMessage",value:function(){var e=this.getInnerComponentProps();return this.props.renderSystemMessage?this.props.renderSystemMessage(e):i.default.createElement(b.default,e)}},{key:"renderAvatar",value:function(){if(this.props.user._id===this.props.currentMessage.user._id&&!this.props.showUserAvatar)return null;var e=this.getInnerComponentProps();return null===e.currentMessage.user.avatar?null:i.default.createElement(p.default,e)}},{key:"render",value:function(){return i.default.createElement(o.View,null,this.renderDay(),this.props.currentMessage.system?this.renderSystemMessage():i.default.createElement(o.View,{style:[v[this.props.position].container,{marginBottom:(0,g.isSameUser)(this.props.currentMessage,this.props.nextMessage)?2:10},this.props.containerStyle[this.props.position]]},"left"===this.props.position?this.renderAvatar():null,this.renderBubble(),"right"===this.props.position?this.renderAvatar():null))}}]),t})(i.default.Component);s.default=m;var v={left:o.StyleSheet.create({container:{flexDirection:'row',alignItems:'flex-end',justifyContent:'flex-start',marginLeft:8,marginRight:0}}),right:o.StyleSheet.create({container:{flexDirection:'row',alignItems:'flex-end',justifyContent:'flex-end',marginLeft:0,marginRight:8}})};m.defaultProps={renderAvatar:void 0,renderBubble:null,renderDay:null,renderSystemMessage:null,position:'left',currentMessage:{},nextMessage:{},previousMessage:{},user:{},containerStyle:{}},m.propTypes={renderAvatar:a.default.func,showUserAvatar:a.default.bool,renderBubble:a.default.func,renderDay:a.default.func,renderSystemMessage:a.default.func,position:a.default.oneOf(['left','right']),currentMessage:a.default.object,nextMessage:a.default.object,previousMessage:a.default.object,user:a.default.object,containerStyle:a.default.shape({left:o.ViewPropTypes.style,right:o.ViewPropTypes.style})}},1299); +__d(function(e,r,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=r(1267),a=babelHelpers.interopRequireDefault(n),o=r(51),l=babelHelpers.interopRequireDefault(o),i=r(17),u=r(1301),d=babelHelpers.interopRequireDefault(u),p=r(1302),f=babelHelpers.interopRequireDefault(p),c=r(1304),b=babelHelpers.interopRequireDefault(c),h=r(1298),g=babelHelpers.interopRequireDefault(h),m=r(1299),v=babelHelpers.interopRequireDefault(m),y=(function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));t.renderRow=t.renderRow.bind(t),t.renderFooter=t.renderFooter.bind(t),t.renderLoadEarlier=t.renderLoadEarlier.bind(t),t.renderScrollComponent=t.renderScrollComponent.bind(t);var s=new i.ListView.DataSource({rowHasChanged:function(e,r){return e.hash!==r.hash}}),n=t.prepareMessages(e.messages);return t.state={dataSource:s.cloneWithRows(n.blob,n.keys)},t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"prepareMessages",value:function(e){return{keys:e.map(function(e){return e._id}),blob:e.reduce(function(r,t,s){var n=e[s+1]||{},a=e[s-1]||{},o=JSON.stringify(t)+n._id+a._id;return r[t._id]=babelHelpers.extends({},t,{previousMessage:n,nextMessage:a,hash:(0,b.default)(o)}),r},{})}}},{key:"shouldComponentUpdate",value:function(e,r){return!(0,d.default)(this.props,e)||!(0,d.default)(this.state,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.messages!==e.messages){var r=this.prepareMessages(e.messages);this.setState({dataSource:this.state.dataSource.cloneWithRows(r.blob,r.keys)})}}},{key:"renderFooter",value:function(){if(this.props.renderFooter){var e=babelHelpers.extends({},this.props);return this.props.renderFooter(e)}return null}},{key:"renderLoadEarlier",value:function(){if(!0===this.props.loadEarlier){var e=babelHelpers.extends({},this.props);return this.props.renderLoadEarlier?this.props.renderLoadEarlier(e):l.default.createElement(g.default,e)}return null}},{key:"scrollTo",value:function(e){this._invertibleScrollViewRef.scrollTo(e)}},{key:"renderRow",value:function(e,r,t){e._id||0===e._id||console.warn('GiftedChat: `_id` is missing for message',JSON.stringify(e)),e.user||(e.system||console.warn("GiftedChat: `user` is missing for message",JSON.stringify(e)),e.user={});var s=babelHelpers.extends({},this.props,{key:e._id,currentMessage:e,previousMessage:e.previousMessage,nextMessage:e.nextMessage,position:e.user._id===this.props.user._id?'right':'left'});return this.props.renderMessage?this.props.renderMessage(s):l.default.createElement(v.default,s)}},{key:"renderScrollComponent",value:function(e){var r=this,t=this.props.invertibleScrollViewProps;return l.default.createElement(f.default,babelHelpers.extends({},e,t,{ref:function(e){return r._invertibleScrollViewRef=e}}))}},{key:"render",value:function(){return l.default.createElement(i.View,{ref:"container",style:S.container},l.default.createElement(i.ListView,babelHelpers.extends({enableEmptySections:!0,automaticallyAdjustContentInsets:!1,initialListSize:20,pageSize:20},this.props.listViewProps,{dataSource:this.state.dataSource,renderRow:this.renderRow,renderHeader:this.renderFooter,renderFooter:this.renderLoadEarlier,renderScrollComponent:this.renderScrollComponent})))}}]),r})(l.default.Component);s.default=y;var S=i.StyleSheet.create({container:{flex:1}});y.defaultProps={messages:[],user:{},renderFooter:null,renderMessage:null,onLoadEarlier:function(){}},y.propTypes={messages:a.default.array,user:a.default.object,renderFooter:a.default.func,renderMessage:a.default.func,onLoadEarlier:a.default.func,listViewProps:a.default.object}},1300); +__d(function(r,t,e,n){e.exports=function(r,t,e,n){var o=e?e.call(n,r,t):void 0;if(void 0!==o)return!!o;if(r===t)return!0;if('object'!=typeof r||!r||'object'!=typeof t||!t)return!1;var i=Object.keys(r),f=Object.keys(t);if(i.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u>>24)|4278255360&(e[y]<<24|e[y]>>>8);e[g>>>5]|=128<>>9<<4)]=g;var _=r._ff,v=r._gg,h=r._hh,d=r._ii;for(y=0;y>>0,f=f+T>>>0,c=c+B>>>0,l=l+S>>>0}return i.endian([u,f,c,l])})._ff=function(r,n,t,e,i,o,s){var a=r+(n&t|~n&e)+(i>>>0)+s;return(a<>>32-o)+n},g._gg=function(r,n,t,e,i,o,s){var a=r+(n&e|t&~e)+(i>>>0)+s;return(a<>>32-o)+n},g._hh=function(r,n,t,e,i,o,s){var a=r+(n^t^e)+(i>>>0)+s;return(a<>>32-o)+n},g._ii=function(r,n,t,e,i,o,s){var a=r+(t^(n|~e))+(i>>>0)+s;return(a<>>32-o)+n},g._blocksize=16,g._digestsize=16,t.exports=function(r,n){if(void 0===r||null===r)throw new Error('Illegal argument '+r);var t=i.wordsToBytes(g(r,n));return n&&n.asBytes?t:n&&n.asString?a.bytesToString(t):i.bytesToHex(t)}},1304); +__d(function(r,t,n,o){var e,u;e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u={rotl:function(r,t){return r<>>32-t},rotr:function(r,t){return r<<32-t|r>>>t},endian:function(r){if(r.constructor==Number)return 16711935&u.rotl(r,8)|4278255360&u.rotl(r,24);for(var t=0;t0;r--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(r){for(var t=[],n=0,o=0;n>>5]|=r[n]<<24-o%32;return t},wordsToBytes:function(r){for(var t=[],n=0;n<32*r.length;n+=8)t.push(r[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(r){for(var t=[],n=0;n>>4).toString(16)),t.push((15&r[n]).toString(16));return t.join('')},hexToBytes:function(r){for(var t=[],n=0;n>>6*(3-u)&63)):t.push('=');return t.join('')},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,'');for(var t=[],n=0,o=0;n>>6-2*o);return t}},n.exports=u},1305); +__d(function(n,t,e,o){var r={utf8:{stringToBytes:function(n){return r.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(r.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var t=[],e=0;eo[1]?-1:e[1]o[3]?1:e[3]\/\\\t/g,' ')).replace(/\s+-+\s+/g,'.')).replace(/\s*[,\.\?!;]+\s*/g,'.')).replace(/\s*\bbut\b\s*/g,'.')).replace(/\s{2,}/g,' ')).split('.'),a=0;a=0&&(o=this._execRule(h)),''!=o)return o}}if(''==(o=this._memGet())){this.sentence=' ';var y=this._getRuleIndexByKey('xnone');y>=0&&(o=this._execRule(y))}return''!=o?o:'I am at a loss for words.'},n.prototype._execRule=function(e){for(var o=this.elizaKeywords[e][2],t=/\(([0-9]+)\)/,a=0;ar||this.lastchoice[e][a]==r?(r=++this.lastchoice[e][a])>=s.length&&(r=0,this.lastchoice[e][a]=-1):this.lastchoice[e][a]=r;var u=s[r];if(this.debug&&alert('match:\nkey: '+this.elizaKeywords[e][0]+'\nrank: '+this.elizaKeywords[e][1]+'\ndecomp: '+o[a][0]+'\nreasmb: '+u+'\nmemflag: '+n),0==u.search('^goto ','i')&&(ki=this._getRuleIndexByKey(u.substring(5)),ki>=0))return this._execRule(ki);var h=t.exec(u);if(h){for(var y='',l=u;h;){var d=i[parseInt(h[1])],m=this.postExp.exec(d);if(m){for(var p='',f=d;m;)p+=f.substring(0,m.index)+this.posts[m[1]],f=f.substring(m.index+m[0].length),m=this.postExp.exec(f);d=p+f}y+=l.substring(0,h.index)+d,l=l.substring(h.index+h[0].length),h=t.exec(l)}u=y+l}if(u=this._postTransform(u),!n)return u;this._memSave(u)}}return''},n.prototype._postTransform=function(e){if(e=(e=e.replace(/\s{2,}/g,' ')).replace(/\s+\./g,'.'),this.elizaPostTransforms&&this.elizaPostTransforms.length)for(var o=0;othis.memSize&&this.mem.shift()},n.prototype._memGet=function(){if(this.mem.length){if(this.noRandom)return this.mem.shift();for(var e=Math.floor(Math.random()*this.mem.length),o=this.mem[e],t=e+1;t0&&e[t]?e[t]:void 0})(w,n);return b.default.createElement(s,{key:n,index:n,badge:!(!r||!r[n])&&r[n],isTabActive:t?l.includes(n):a===n,text:e,textNumberOfLines:m,onTabPress:function(e){return(function(e,t,a,l){t?l(e):a!==e&&l(e)})(e,t,a,B)},firstTabStyle:0===n?[{borderRightWidth:0},R]:{},lastTabStyle:n===i.length-1?[{borderLeftWidth:0},F]:{},tabStyle:[T,0!==n&&n!==i.length-1?{marginLeft:-1}:{}],activeTabStyle:u,tabTextStyle:S,activeTabTextStyle:g,tabBadgeContainerStyle:p,activeTabBadgeContainerStyle:f,tabBadgeStyle:v,activeTabBadgeStyle:x,allowFontScaling:C,activeTabOpacity:L,accessible:h,accessibilityLabel:o||e,enabled:O})}))};c.propTypes={values:o.default.array,badges:o.default.array,multiple:o.default.bool,onTabPress:o.default.func,selectedIndex:o.default.number,selectedIndices:o.default.arrayOf(o.default.number),tabsContainerStyle:n.ViewPropTypes.style,tabsContainerDisableStyle:n.ViewPropTypes.style,tabStyle:n.ViewPropTypes.style,activeTabStyle:n.ViewPropTypes.style,tabTextStyle:n.Text.propTypes.style,activeTabTextStyle:n.Text.propTypes.style,tabBadgeContainerStyle:n.Text.propTypes.style,activeTabBadgeContainerStyle:n.Text.propTypes.style,tabBadgeStyle:n.Text.propTypes.style,activeTabBadgeStyle:n.Text.propTypes.style,borderRadius:o.default.number,textNumberOfLines:o.default.number,allowFontScaling:o.default.bool,accessible:o.default.bool,accessibilityLabels:o.default.array,activeTabOpacity:o.default.number,enabled:o.default.bool},c.defaultProps={values:['One','Two','Three'],accessible:!0,accessibilityLabels:[],badges:['','',''],multiple:!1,selectedIndex:0,selectedIndices:[0],onTabPress:function(){},tabsContainerStyle:{},tabsContainerDisableStyle:{opacity:.6},tabStyle:{},activeTabStyle:{},tabTextStyle:{},activeTabTextStyle:{},tabBadgeContainerStyle:{},activeTabBadgeContainerStyle:{},tabBadgeStyle:{},activeTabBadgeStyle:{},borderRadius:5,textNumberOfLines:1,allowFontScaling:!0,activeTabOpacity:1,enabled:!0};var d=n.StyleSheet.create({tabsContainerStyle:{backgroundColor:'transparent',flexDirection:'row'},tabStyle:{paddingVertical:5,flex:1,justifyContent:'center',alignItems:'center',borderColor:'#0076FF',borderWidth:1,backgroundColor:'white'},activeTabStyle:{backgroundColor:'#0076FF'},tabTextStyle:{color:'#0076FF'},activeTabTextStyle:{color:'white'},tabBadgeContainerStyle:{borderRadius:20,backgroundColor:'red',paddingLeft:5,paddingRight:5,marginLeft:5,marginBottom:3},activeTabBadgeContainerStyle:{backgroundColor:'white'},tabBadgeStyle:{color:'white',fontSize:11,fontWeight:'bold'},activeTabBadgeStyle:{color:'black'}});l.default=c},1313); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(51),i=babelHelpers.interopRequireDefault(a),n=t(17),u=t(781),d=t(798),s=babelHelpers.interopRequireDefault(d);r.default=function(e){var t=e.title,l=u.MediaQueryStyleSheet.create(babelHelpers.extends({},s.default));return i.default.createElement(n.View,{style:l.sectionListHeaderContainer},i.default.createElement(n.Text,{style:l.sectionListHeaderText},t))}},1314); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var c=t(51),i=babelHelpers.interopRequireDefault(c),r=t(297),a=t(17),u=t(1316),s=babelHelpers.interopRequireDefault(u),l=t(1319),p=babelHelpers.interopRequireDefault(l),d=t(508),g=t(780),f=babelHelpers.interopRequireDefault(g),A=t(532),b=t(797),C=babelHelpers.interopRequireDefault(b),E=t(1329),h=babelHelpers.interopRequireDefault(E),v=t(365),S=t(511),H=t(627),D=t(665),F=babelHelpers.interopRequireDefault(D),T=(function(e){function t(){var e,n,o,c;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,r=Array(i),u=0;u1&&void 0!==arguments[1]?arguments[1]:'image/jpg';return null!=e&&e.length>0?{uri:"data:"+u+";base64,"+e}:null};var n=u(366),t=babelHelpers.interopRequireDefault(n)},1318); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),o=babelHelpers.interopRequireDefault(n),r=t(17),i=t(1194),u=t(801),s=babelHelpers.interopRequireDefault(u),d=t(804),c=babelHelpers.interopRequireDefault(d),f=t(1318),p=t(628),h=babelHelpers.interopRequireDefault(p),b=t(515),v=babelHelpers.interopRequireDefault(b),g=t(665),C=babelHelpers.interopRequireDefault(g),m=t(1320),y=babelHelpers.interopRequireDefault(m),E=t(806),B=babelHelpers.interopRequireDefault(E),A=t(627),T=t(1321),w=babelHelpers.interopRequireDefault(T),H=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.onNewAvatarChosen=function(e){a.props.onAccountChanged('avatar',e)},a.onChange=function(e,t){a.props.onAccountChanged(e,t)},a.onEditAvatar=function(){null!=a.photoActionSheet&&a.photoActionSheet.show()},a.photoActionSheet=null,a.setNavigationButtons((0,f.saveShouldBeEnabled)(a.props.account,a.props.editingAccount)),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"setNavigationButtons",value:function(e){var t=babelHelpers.extends({leftButtons:void 0,rightButtons:[{title:C.default.t('screens.profile.edit.doneButton'),id:"DONE_BUTTON",disabled:!e,buttonColor:v.default.BitnationLinkOrangeColor}]},A.androidNavigationButtons);!1===this.props.isCreating&&(t.leftButtons=[{title:C.default.t('screens.profile.edit.cancelButton'),id:'cancel',buttonColor:v.default.BitnationLinkOrangeColor}]),this.props.navigator.setButtons(t)}},{key:"componentWillReceiveProps",value:function(e){var t=(0,f.saveShouldBeEnabled)(this.props.account,this.props.editingAccount),a=(0,f.saveShouldBeEnabled)(e.account,e.editingAccount);t!==a&&this.setNavigationButtons(a)}},{key:"onNavBarButtonPress",value:function(e){'cancel'===e&&this.props.onCancelEditing(),"DONE_BUTTON"===e&&this.props.onDoneEditing()}},{key:"render",value:function(){return o.default.createElement(r.View,{style:y.default.bodyContainer},o.default.createElement(i.KeyboardAwareScrollView,{style:y.default.scrollView},o.default.createElement(B.default,{title:this.props.isCreating?C.default.t('screens.accounts.create.identityTitle'):C.default.t('screens.profile.edit.editPhoto')}),this._buildPicturePanel(),this._buildProfileForm()))}},{key:"_buildPicturePanel",value:function(){var e=this.props.editingAccount,t=(0,f.imageSource)(e.avatar)||h.default.avatarIcon;return o.default.createElement(r.View,{style:y.default.avatarContainerLarge},o.default.createElement(r.TouchableOpacity,{onPress:this.onEditAvatar},o.default.createElement(r.View,{style:y.default.avatarChangeContainer},o.default.createElement(r.Image,{source:t,style:y.default.avatarLarge}),o.default.createElement(r.Text,{style:y.default.editItemLabel},C.default.t('screens.profile.edit.editPhoto')))))}},{key:"_buildProfileForm",value:function(){var e=this;return o.default.createElement(c.default,{style:y.default.panelViewTransparent,title:''},o.default.createElement(r.View,{style:y.default.formRow},o.default.createElement(r.View,{style:y.default.fieldsContainer},o.default.createElement(r.View,{style:y.default.formRow},o.default.createElement(r.TextInput,{value:this.props.editingAccount.name,onChangeText:function(t){return e.onChange('name',t)},style:y.default.textInput,placeholder:C.default.t('screens.profile.edit.name'),placeholderTextColor:v.default.placeholderTextColor,keyboardType:"default"})),o.default.createElement(r.View,{style:y.default.formRow},o.default.createElement(r.TextInput,{value:this.props.editingAccount.location,onChangeText:function(t){return e.onChange('location',t)},style:y.default.textInput,placeholder:C.default.t('screens.profile.edit.location'),placeholderTextColor:v.default.placeholderTextColor,keyboardType:"default"}))),o.default.createElement(w.default,{ref:function(t){return e.photoActionSheet=t},onImageChosen:this.onNewAvatarChosen,circleCropping:!0,title:C.default.t('screens.profile.edit.editPhotoActionSheet.title')})))}}]),t})(s.default);l.default=H},1319); +__d(function(e,t,a,r){Object.defineProperty(r,"__esModule",{value:!0});var l=t(781),n=t(798),i=babelHelpers.interopRequireDefault(n),u=l.MediaQueryStyleSheet.create(babelHelpers.extends({},i.default,{avatarChangeContainer:{alignItems:'center',flexDirection:'row'}}));r.default=u},1320); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=t(51),a=babelHelpers.interopRequireWildcard(o),i=t(1322),l=babelHelpers.interopRequireDefault(i),c=t(1328),s=babelHelpers.interopRequireDefault(c),p=t(17),u=t(665),h=babelHelpers.interopRequireDefault(u),f=(function(e){function t(){var e,r,n,o,a=this;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,l=Array(i),c=0;ch?(this.scrollEnabled=!0,l=h):this.scrollEnabled=!1,l}},{key:"_renderTitle",value:function(){var e=this.props.title,t=this.styles;return e?a.default.createElement(i.View,{style:t.titleBox},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:t.titleText},e)):null}},{key:"_renderMessage",value:function(){var e=this.props.message,t=this.styles;return e?a.default.createElement(i.View,{style:t.messageBox},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:t.messageText},e)):null}},{key:"_renderCancelButton",value:function(){var e=this.props,t=e.options,n=e.cancelButtonIndex;return o.isset(n)?this._createButton(t[n],n):null}},{key:"_createButton",value:function(e,t){var n=this,l=this.styles,s=this.props,r=s.buttonUnderlayColor,o=s.cancelButtonIndex,u=s.destructiveButtonIndex,c=s.tintColor,h=u===t?"#FF3B30":c,d=o===t?l.cancelButtonBox:l.buttonBox;return a.default.createElement(i.TouchableHighlight,{key:t,activeOpacity:1,underlayColor:r,style:d,onPress:function(){return n.hide(t)}},a.default.isValidElement(e)?e:a.default.createElement(i.Text,{style:[l.buttonText,{color:h}]},e))}},{key:"_renderOptions",value:function(){var e=this,t=this.props.cancelButtonIndex;return this.props.options.map(function(n,l){return t===l?null:e._createButton(n,l)})}},{key:"render",value:function(){var e=this.styles,t=this.state,n=t.visible,l=t.sheetAnim;return a.default.createElement(i.Modal,{visible:n,animationType:"none",transparent:!0,onRequestClose:this._cancel},a.default.createElement(i.View,{style:[e.wrapper]},a.default.createElement(i.Text,{style:[e.overlay],onPress:this._cancel}),a.default.createElement(i.Animated.View,{style:[e.body,{height:this.translateY,transform:[{translateY:l}]}]},this._renderTitle(),this._renderMessage(),a.default.createElement(i.ScrollView,{scrollEnabled:this.scrollEnabled},this._renderOptions()),this._renderCancelButton())))}},{key:"styles",get:function(){var e=this.props.styles,t={};return Object.keys(c.default).forEach(function(n){var l=[c.default[n]];e[n]&&l.push(e[n]),t[n]=l}),t}}]),t})(a.default.Component);d.defaultProps={tintColor:'#007AFF',buttonUnderlayColor:'#F4F4F4',onPress:function(){},styles:{}},l.default=d},1325); +__d(function(e,t,n,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isset=function(e){return void 0!==e},c.merge=function e(t,n){Object.keys(n).forEach(function(c){'Object'===Object.prototype.toString.call(n).slice(8,-1)?t[c]=e(t[c]||{},n[c]):t[c]=n[c]});return t}},1326); +__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hairlineWidth=void 0;var i=t(17),r=n.hairlineWidth=i.StyleSheet.hairlineWidth;n.default={overlay:{position:'absolute',top:0,right:0,bottom:0,left:0,opacity:.4,backgroundColor:'#000'},wrapper:{flex:1,flexDirection:'row'},body:{flex:1,alignSelf:'flex-end',backgroundColor:'#e5e5e5'},titleBox:{height:40,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},titleText:{color:'#757575',fontSize:14},messageBox:{height:30,paddingLeft:10,paddingRight:10,paddingBottom:10,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},messageText:{color:'#9a9a9a',fontSize:12},buttonBox:{height:50,marginTop:r,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'},buttonText:{fontSize:18},cancelButtonBox:{height:50,marginTop:6,alignItems:'center',justifyContent:'center',backgroundColor:'#fff'}}},1327); +__d(function(e,r,a,l){Object.defineProperty(l,"__esModule",{value:!0});var t=r(51),u=(babelHelpers.interopRequireDefault(t),r(17));l.default=u.NativeModules.ImageCropPicker},1328); +__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(781),a=t(798),i=babelHelpers.interopRequireDefault(a),u=n.MediaQueryStyleSheet.create(babelHelpers.extends({},i.default,{bottomSpacer:{width:'100%',flex:1,flexDirection:'column',justifyContent:'center',alignItems:'center'}}));r.default=u},1329); +__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(51),a=babelHelpers.interopRequireDefault(r),i=t(297),l=t(17),s=t(366),u=babelHelpers.interopRequireDefault(s),p=t(1331),f=babelHelpers.interopRequireDefault(p),c=t(513),d=t(627),b=t(665),N=babelHelpers.interopRequireDefault(b),v=t(515),D=babelHelpers.interopRequireDefault(v),h=t(519),m=t(512);t(521),t(518);var E=t(801),H=babelHelpers.interopRequireDefault(E),g=t(763),C=t(514),R='EDIT_BUTTON',y=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onDeleteDraft=function(){(0,g.alert)('deleteForm',[{name:'cancel',style:'cancel'},{name:'delete',style:'destructive',onPress:function(){null!==n.props.openedNationId&&n.props.onDeleteDraft(n.props.openedNationId,function(){n.props.latestError?(0,g.errorAlert)(n.props.latestError):n.props.navigator.pop()})}}])},n.onSubmitDraft=function(){(0,g.alert)('submitForm',[{name:'cancel',style:'cancel'},{name:'confirm',onPress:function(){if(null!==n.props.openedNationId){var e=(0,m.openedNation)(n.props);null!==e&&n.props.onSubmitDraft(e,function(){n.props.latestError?(0,g.errorAlert)(n.props.latestError):n.props.navigator.pop()})}}}])},n.onJoinNation=function(){n.performIfHasWallet(n.props.joinNation)},n.onLeaveNation=function(){n.performIfHasWallet(n.props.leaveNation)},n.openNationChat=function(){var e=n.props.openedNationId;n.props.navigator.push(babelHelpers.extends({},(0,d.screen)('CHAT_SCREEN'),{passProps:{isBot:!1,id:e}}))},n.props.navigator.setButtons({rightButtons:n.props.isDraft?[{title:'Edit',id:R,buttonColor:D.default.navigationButtonColor}]:[]}),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavBarButtonPress",value:function(e){if(e===R){var t=(0,m.openedNation)(this.props);if(null===t)return;this.props.onStartNationEditing(t),this.props.navigator.showModal((0,d.screen)('NATION_CREATE_SCREEN'))}}},{key:"showCreatePrivateKeyAlert",value:function(){var e=this;l.Alert.alert(N.default.t('alerts.walletRequired.title'),N.default.t('alerts.walletRequired.subtitle'),[{text:N.default.t('alerts.walletRequired.cancel'),style:'cancel'},{text:N.default.t('alerts.walletRequired.confirm'),onPress:function(){return e.props.navigator.switchToTab({tabIndex:3})}}],{cancelable:!1})}},{key:"performIfHasWallet",value:function(e){u.default.isEmpty(this.props.wallets)?this.showCreatePrivateKeyAlert():e()}},{key:"render",value:function(){return a.default.createElement(f.default,babelHelpers.extends({},this.props,{joinNation:this.onJoinNation,leaveNation:this.onLeaveNation,deleteDraft:this.onDeleteDraft,submitDraft:this.onSubmitDraft,openNationChat:this.openNationChat}))}}]),t})(H.default);y.navigatorButtons=babelHelpers.extends({},d.androidNavigationButtons),y.defaultProps={latestError:null,onSelectTab:function(){return null},joinNation:function(){return null},leaveNation:function(){return null},onStartNationEditing:function(){return null},onDeleteDraft:function(){return null},onSubmitDraft:function(){return null}};o.default=(0,i.connect)(function(e){return babelHelpers.extends({},e.nations,e.wallet,{isDraft:(t=(0,m.openedNation)(e.nations),null===t||void 0===t||(0,C.nationIsDraft)(t))});var t},function(e){return{onSelectTab:function(t){e((0,c.switchNationTab)(t))},joinNation:function(){e((0,c.joinNation)())},leaveNation:function(){e((0,c.leaveNation)())},onStartNationEditing:function(t){e((0,h.startNationEditing)(t))},onDeleteDraft:function(t,n){e((0,h.deleteNationDraft)(t,n))},onSubmitDraft:function(t,n){e((0,h.submitNation)(t,n))}}})(y)},1330); +__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(51),i=babelHelpers.interopRequireDefault(l),u=t(17),o=t(780),r=babelHelpers.interopRequireDefault(o),s=t(1332),f=babelHelpers.interopRequireDefault(s),d=t(1333),c=babelHelpers.interopRequireDefault(d),p=t(628),b=babelHelpers.interopRequireDefault(p),m=t(804),y=babelHelpers.interopRequireDefault(m),D=t(797),E=babelHelpers.interopRequireDefault(D),v=t(665),h=babelHelpers.interopRequireDefault(v),w=t(512),S=t(1334),C=babelHelpers.interopRequireDefault(S),N=t(1335),k=babelHelpers.interopRequireDefault(N),x=t(514),H=t(806),P=babelHelpers.interopRequireDefault(H),V=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"buildTabBar",value:function(){var e=(0,w.openedNation)(this.props);return null===e?null:this.props.isDraft?i.default.createElement(u.View,{style:f.default.fakeBottomBar},i.default.createElement(c.default,{iconSource:b.default.Actions.delete,title:h.default.t('screens.nations.toolbar.delete'),disable:!1,onPress:this.props.deleteDraft}),i.default.createElement(c.default,{iconSource:b.default.Actions.submit,title:h.default.t('screens.nations.toolbar.submit'),disable:!(0,x.nationIsValid)(e),onPress:this.props.submitDraft})):i.default.createElement(u.View,{style:f.default.fakeBottomBar},i.default.createElement(c.default,{iconSource:b.default.Actions.chat,title:h.default.t('screens.nations.toolbar.chat'),disable:!1,onPress:this.props.openNationChat}),i.default.createElement(c.default,{iconSource:b.default.Actions.map,title:h.default.t('screens.nations.toolbar.map'),disable:!0,onPress:function(){}}),i.default.createElement(c.default,{iconSource:b.default.Actions.join,title:h.default.t('screens.nations.toolbar.join'),disable:t.disableJoinButton(e),onPress:this.props.joinNation}),i.default.createElement(c.default,{iconSource:b.default.Actions.leave,title:h.default.t('screens.nations.toolbar.leave'),disable:t.disableLeaveButton(e),onPress:this.props.leaveNation}))}},{key:"render",value:function(){var e=(0,w.openedNation)(this.props);if(!e)return this.props.navigator.pop(),i.default.createElement(r.default,null);var n=(0,x.resolveStatus)(e),a=null!==n?h.default.ifExists("screens.nationDetails.statusDescription."+n.key):'';return i.default.createElement(u.View,{style:f.default.screenContainer},i.default.createElement(r.default,null),i.default.createElement(E.default,null),i.default.createElement(u.View,{style:f.default.bodyContainer},i.default.createElement(P.default,{title:e.nationName}),i.default.createElement(u.ScrollView,null,''!==a&&t.buildStatusPanel(a),t.buildAboutView(e),t.buildCitizenPanel(e),t.buildGovernmentalStructureView(e),t.buildFactsView(e))),this.buildTabBar())}}],[{key:"disableJoinButton",value:function(e){return!(!e.tx||200!==e.tx.status)||!0===e.joined}},{key:"disableLeaveButton",value:function(e){return!(!e.tx||200!==e.tx.status)||!1===e.joined}},{key:"buildAboutView",value:function(e){return i.default.createElement(y.default,{style:f.default.panelView,childrenContainerStyle:f.default.noflex,title:h.default.t('screens.nationDetails.aboutInfo',{name:e.nationName})},i.default.createElement(u.Text,{style:f.default.panelSubTitle},h.default.t('screens.nationDetails.description')+":"),i.default.createElement(u.Text,{style:f.default.body},e.nationDescription?e.nationDescription+"\n":'',h.default.t('screens.nationDetails.locationInfo',{name:e.nationName,locationType:e.exists?h.default.t('enums.nation.locationType.geographical'):h.default.t('enums.nation.locationType.virtual')})+"\n"),i.default.createElement(u.Text,{style:f.default.panelSubTitle},h.default.t('screens.nationDetails.ethereumAddress')),i.default.createElement(u.Text,{style:f.default.footnote},e.ethAddress))}},{key:"buildGovernmentalStructureView",value:function(e){return i.default.createElement(y.default,{style:f.default.panelView,childrenContainerStyle:f.default.noflex,title:h.default.t('common.governmentalStructure')},i.default.createElement(u.Text,{style:f.default.body},h.default.t('screens.nationDetails.legalSystemInfo',{name:e.nationName,code:e.nationCode}),' ',h.default.t('screens.nationDetails.lawEnforcementInfo',{lawEnforcementMechanism:e.lawEnforcementMechanism}),' ',h.default.t('screens.nationDetails.governmentInfo',{decisionMakingProcess:e.decisionMakingProcess})))}},{key:"buildFactsView",value:function(e){return i.default.createElement(y.default,{style:f.default.panelView,childrenContainerStyle:f.default.noflex,title:h.default.t('screens.nationDetails.funFacts')},i.default.createElement(u.Text,{style:f.default.body},e.diplomaticRecognition?h.default.t('screens.nationDetails.diplomaticRecognitionInfo',{name:e.nationName})+"\n\n":'',h.default.t('screens.nationDetails.serviceUsageInfo',{allowance:e.nonCitizenUse?h.default.t('enums.nation.usageAllowance.may'):h.default.t('enums.nation.usageAllowance.mayNot')}),'\n\n',h.default.t('screens.nationDetails.profitInfo',{profit:e.profit?h.default.t('enums.nation.profit.for'):h.default.t('enums.nation.profit.non')})))}},{key:"buildStatusPanel",value:function(e){return i.default.createElement(C.default,{status:e})}},{key:"buildCitizenPanel",value:function(e){return e.joined?i.default.createElement(k.default,{nationName:e.nationName}):null}}]),t})(l.Component);V.defaultProps={joinNation:function(){return null},leaveNation:function(){return null},deleteDraft:function(){return null},submitDraft:function(){return null},openNationChat:function(){return null}},a.default=V},1331); +__d(function(e,l,t,r){Object.defineProperty(r,"__esModule",{value:!0});var a=l(781),u=l(798),d=babelHelpers.interopRequireDefault(u),f=a.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default,{scrollView:{flex:1}}));r.default=f},1332); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),i=t(781),o=t(798),c=babelHelpers.interopRequireDefault(o),s=function(e){var t=e.title,a=e.disable,l=e.iconSource,r=e.onPress,o=i.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default));return n.default.createElement(u.View,{style:o.tabBarButton,opacity:a?.4:1},n.default.createElement(u.TouchableOpacity,{style:[o.tabBarContainer],onPress:r,disabled:a,activeOpacity:a?1:.4},n.default.createElement(u.Image,{source:l}),n.default.createElement(u.Text,{style:o.tabBarTitle},t)))};s.defaultProps={disable:!0,title:'',iconSource:void 0,onPress:function(){return null}},l.default=s},1333); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(51),u=babelHelpers.interopRequireDefault(r),s=t(17),n=t(781),i=t(798),d=babelHelpers.interopRequireDefault(i),f=t(665),p=babelHelpers.interopRequireDefault(f),o=function(e){var t=e.status,l=n.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default));return u.default.createElement(s.View,{style:l.panelViewAlert},u.default.createElement(s.Text,{style:l.panelAlertBold},p.default.t('screens.nationDetails.status')),u.default.createElement(s.Text,{style:l.panelAlertStatus},t))};o.defaultProps={status:''},a.default=o},1334); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),i=t(17),u=t(781),o=t(798),s=babelHelpers.interopRequireDefault(o),f=t(665),d=babelHelpers.interopRequireDefault(f),p=t(628),b=babelHelpers.interopRequireDefault(p),c=u.MediaQueryStyleSheet.create(babelHelpers.extends({},s.default)),y=function(e){var t=e.nationName;return r.default.createElement(i.View,{style:c.panelViewCitizen},r.default.createElement(i.Text,{style:c.body},d.default.t('screens.nationDetails.citizen')," ",t),r.default.createElement(i.Image,{source:b.default.userCitizenIcon,style:c.panelViewCitizenIcon}))};y.defaultProps={nationName:''},l.default=y},1335); +__d(function(n,t,e,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(51),a=babelHelpers.interopRequireDefault(r),i=t(297),s=t(1337),l=babelHelpers.interopRequireDefault(s),u=t(519),p=t(763),c=t(518),f=(function(n){function t(){var n,e,o,r;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,i=Array(a),s=0;s-1?e[f?r[v]:v]:void 0}}},1359); +__d(function(n,r,t,u){var a=r(1361),l=r(1346),e=r(1362),f=Math.max;t.exports=function(n,r,t){var u=null==n?0:n.length;if(!u)return-1;var i=null==t?0:e(t);return i<0&&(i=f(u+i,0)),a(n,l(r,3),i)}},1360); +__d(function(n,r,t,e){t.exports=function(n,r,t,e){for(var f=n.length,o=t+(e?1:-1);e?o--:++o=0}):o.default.filter(a,function(e){return-1!==o.default.indexOf(r,e.id)&&e.idInSmartContract>=0}),f=o.default.sortBy(i,function(e){return e.nationName.toUpperCase()}),s=o.default.groupBy(f,function(e){return e.nationName.toUpperCase().charAt(0)}),p=o.default.map(s,function(e,t){return{title:t,data:e}});return p=[{title:'Bots',data:[{name:'Dr. FreudBot',isBot:!0,id:0}]}].concat(p),l.default.createElement(u.View,{style:c.default.nationsScreenContainer},l.default.createElement(d.default,null),l.default.createElement(q.default,null),l.default.createElement(y.default,{title:I.default.t('screens.chat.title')}),l.default.createElement(u.SectionList,{renderItem:function(e){var t=e.item;return!0===t.isBot?l.default.createElement(m.default,{name:t.name,avatar:S.default.ChatUI.botIcon,onPress:function(e){return n(e,!0)},id:t.id,unreadMessages:!1}):l.default.createElement(m.default,{name:t.nationName,avatar:S.default.avatarIcon,onPress:function(e){return n(e,!1)},id:t.id,unreadMessages:!1})},keyExtractor:function(e){return e.id},renderSectionHeader:function(e){var t=e.section;return l.default.createElement(D.default,{title:t.title})},sections:p,style:c.default.sectionList,ItemSeparatorComponent:function(){return l.default.createElement(u.View,{style:c.default.itemSeparator})}}))}},1368); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(781),u=t(798),d=babelHelpers.interopRequireDefault(u),b=r.MediaQueryStyleSheet.create(babelHelpers.extends({},d.default));a.default=b},1369); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),r=babelHelpers.interopRequireDefault(n),u=t(17),s=t(822),i=babelHelpers.interopRequireDefault(s),d=t(798),o=babelHelpers.interopRequireDefault(d),f=t(628),c=babelHelpers.interopRequireDefault(f),b=function(e){var t=e.name,a=e.id,l=e.onPress,n=e.avatar,s=e.lastMessage,d=e.unreadMessages;return r.default.createElement(i.default,{id:a,text:t,textStyle:o.default.detailedItemTitle,onPress:l,iconSource:n,style:o.default.detailedItemContainer,subtitle:s,AdditionalLeftView:function(){return r.default.createElement(u.Image,{source:d?c.default.ChatUI.newMsgIcon:null,style:o.default.sectionListNewMessage})}})};b.defaultProps={name:'',onPress:function(){return null},avatar:null,lastMessage:void 0},l.default=b},1370); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),u=babelHelpers.interopRequireDefault(n),r=t(297),s=t(17),c=t(851),f=t(801),o=babelHelpers.interopRequireDefault(f),i=t(665),d=babelHelpers.interopRequireDefault(i),b=t(534),p=t(1372),y=babelHelpers.interopRequireDefault(p),h=t(780),m=babelHelpers.interopRequireDefault(h),E=t(797),C=babelHelpers.interopRequireDefault(E),H=t(806),q=babelHelpers.interopRequireDefault(H),B=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var l=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.state={key:''},l}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this;return u.default.createElement(s.View,{style:y.default.screenContainer},u.default.createElement(m.default,null),u.default.createElement(C.default,null),u.default.createElement(q.default,{title:d.default.t('screens.chat.newConversation')}),u.default.createElement(s.View,{style:y.default.bodyContainer},u.default.createElement(c.Item,{inlineLabel:!0},u.default.createElement(c.Label,{style:y.default.textInput},"To: "),u.default.createElement(c.Input,{onChangeText:function(t){return e.setState({key:t})},value:this.state.key,style:y.default.textInput,placeholder:d.default.t('screens.chat.pubKeyPlaceholder')})),u.default.createElement(s.View,{style:y.default.buttonContainer},u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.scanQrCode'))),u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.pasteClipboard'))),u.default.createElement(c.Button,{onPress:function(){},style:y.default.chatActionButton},u.default.createElement(c.Text,null,d.default.t('screens.chat.qrCodeLibrary'))))))}}]),t})(o.default);a.default=(0,r.connect)(null,function(e){return{findUserByPublicKey:function(t){e((0,b.findUserByPublicKey)(t))}}})(B)},1371); +__d(function(e,t,n,i){Object.defineProperty(i,"__esModule",{value:!0});var l=t(781),r=t(798),a=babelHelpers.interopRequireDefault(r),o=t(515),u=babelHelpers.interopRequireDefault(o),c=l.MediaQueryStyleSheet.create(babelHelpers.extends({},a.default,{submitButton:{width:80,marginTop:40,alignSelf:'center'},textInput:{color:u.default.white},buttonContainer:{marginTop:50,width:'100%',flexDirection:'column',justifyContent:'center',alignItems:'center'},chatActionButton:{color:u.default.white,width:260,height:50,marginTop:10,alignContent:'center',justifyContent:'center',alignSelf:'center'}}));i.default=c},1372); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),s=babelHelpers.interopRequireDefault(a),l=t(17),o=t(297),i=t(780),u=babelHelpers.interopRequireDefault(i),c=t(1374),p=babelHelpers.interopRequireDefault(c),f=t(797),d=babelHelpers.interopRequireDefault(f),b=t(665),E=babelHelpers.interopRequireDefault(b),g=t(806),R=babelHelpers.interopRequireDefault(g),_=t(1375),m=babelHelpers.interopRequireDefault(_),v=t(801),y=babelHelpers.interopRequireDefault(v),C=t(627),H=t(802),D=babelHelpers.interopRequireDefault(H),S=t(508),h=t(365),P=t(1314),T=babelHelpers.interopRequireDefault(P),I=(function(e){function t(){var e,r,n,a;babelHelpers.classCallCheck(this,t);for(var s=arguments.length,l=Array(s),o=0;o0,title:f.default.t('common.ok'),onPress:function(){return e.props.onSubmit(e.state.password)},style:u.default.submitButton})),t&&l.default.createElement(h.default,{style:u.default.forgetButton,styleTitle:u.default.forgetButtonText,title:f.default.t('screens.password.forgetInstruction'),onPress:function(){return e.props.onForget()}}))}}]),t})(p.default);g.defaultProps={shouldShowCancel:!1,shouldShowForget:!1},n.default=g},1387); +__d(function(e,t,i,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(781),r=t(798),l=babelHelpers.interopRequireDefault(r),o=t(515),u=babelHelpers.interopRequireDefault(o),d=n.MediaQueryStyleSheet.create(babelHelpers.extends({},l.default,{submitButton:{width:80,marginTop:40,alignSelf:'center'},textInput:{color:u.default.BitnationGrayColor,fontSize:16,paddingTop:2,paddingBottom:2,height:50,marginTop:16,marginLeft:30,marginRight:30,textAlign:'center'}}));a.default=d},1388); +__d(function(e,t,n,s){Object.defineProperty(s,"__esModule",{value:!0});var r=t(51),a=babelHelpers.interopRequireDefault(r),o=t(297),i=t(17),l=t(1385),c=babelHelpers.interopRequireDefault(l);t(536);var u=t(801),d=babelHelpers.interopRequireDefault(u),f=t(665),p=babelHelpers.interopRequireDefault(f),y=t(508),v=t(763),b=t(1387),h=babelHelpers.interopRequireDefault(b),C=t(1386),P=babelHelpers.interopRequireDefault(C),R=t(780),S=babelHelpers.interopRequireDefault(R),m=t(797),g=babelHelpers.interopRequireDefault(m),K=t(806),H=babelHelpers.interopRequireDefault(K),w=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onSaveFinished=function(e){if(!0===e)return n.setState({enteredPasscode:void 0}),void n.props.onSuccess();(0,v.errorAlert)(p.default.t('error.passcodeCreationFailed'))},n.showVerificationFailedAlert=function(){(0,v.alert)('passcodeVerificationFailed',[{name:'tryAgain',onPress:function(){n.setState(function(e){return{verifyResetKey:e.verifyResetKey+1}})}},{name:'startOver',onPress:function(){n.setState(function(e){return{createResetKey:e.createResetKey+1,verifyResetKey:e.verifyResetKey+1,enteredPasscode:void 0}})}}])},n.onSubmitPasscode=function(e){n.state.enteredPasscode===e?'pinCode'===n.props.passcodeType.type?n.props.savePinCode(e,n.props.accountId,n.onSaveFinished):n.props.savePassword(e,n.props.accountId,n.onSaveFinished):n.showVerificationFailedAlert()},n.onCreatePasscode=function(e){n.setState({enteredPasscode:e})},n.onCancelVerificationPasscode=function(){n.setState(function(e){return{verifyResetKey:e.verifyResetKey+1,enteredPasscode:void 0}})},n.state={enteredPasscode:void 0,verifyResetKey:0,createResetKey:0},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.title;return a.default.createElement(i.View,{style:P.default.screenContainer},a.default.createElement(S.default,null),a.default.createElement(g.default,null),a.default.createElement(i.View,{style:P.default.bodyAccountContainer},a.default.createElement(H.default,{title:e}),this.renderPasscodeScreen()))}},{key:"renderPasscodeScreen",value:function(){var e=this.props,t=e.navigator,n=e.passcodeType,s=e.onCancel;return'pinCode'===n.type?null==this.state.enteredPasscode?a.default.createElement(c.default,{key:"create "+this.state.createResetKey,navigator:t,pinCodeLength:n.length,instruction:p.default.t('screens.pinCode.createInstruction'),shouldShowCancel:!0,onCancel:s,onSubmit:this.onCreatePasscode,onForget:s}):a.default.createElement(c.default,{key:"verify "+this.state.verifyResetKey,resetKey:this.state.verifyResetKey,navigator:t,pinCodeLength:n.length,instruction:p.default.t('screens.pinCode.verifyInstruction'),shouldShowCancel:!0,onCancel:this.onCancelVerificationPasscode,onSubmit:this.onSubmitPasscode,onForget:s}):null==this.state.enteredPasscode?a.default.createElement(h.default,{key:"create "+this.state.createResetKey,navigator:t,instruction:p.default.t('screens.password.createInstruction'),shouldShowCancel:!0,onCancel:s,onSubmit:this.onCreatePasscode,onForget:s}):a.default.createElement(h.default,{key:"verify "+this.state.verifyResetKey,navigator:t,instruction:p.default.t('screens.password.verifyInstruction'),shouldShowCancel:!0,onCancel:this.onCancelVerificationPasscode,onSubmit:this.onSubmitPasscode,onForget:s})}}]),t})(d.default);w.defaultProps={onCancel:function(){},onSuccess:function(){},title:''};s.default=(0,o.connect)(function(e){return babelHelpers.extends({},e.settings)},function(e){return{savePinCode:function(t,n,s){e((0,y.savePinCode)(t,n,s))},savePassword:function(t,n,s){e((0,y.savePassword)(t,n,s))}}})(w)},1389); +__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t(51),s=babelHelpers.interopRequireDefault(a),l=t(297),i=t(17),o=t(366),u=babelHelpers.interopRequireDefault(o),c=t(851),f=t(1322),p=babelHelpers.interopRequireDefault(f),d=t(534),b=t(780),h=babelHelpers.interopRequireDefault(b),m=t(1391),g=babelHelpers.interopRequireDefault(m),y=t(627),S=t(1370),v=babelHelpers.interopRequireDefault(S),R=t(1314),w=babelHelpers.interopRequireDefault(R),C=t(797),P=babelHelpers.interopRequireDefault(C),E=t(809),H=babelHelpers.interopRequireDefault(E),M=t(801),K=babelHelpers.interopRequireDefault(M),x=t(665),q=babelHelpers.interopRequireDefault(x),D=t(515),T=babelHelpers.interopRequireDefault(D),_=t(806),B=babelHelpers.interopRequireDefault(_),I=t(1392),k=babelHelpers.interopRequireDefault(I),A=t(1393),N=babelHelpers.interopRequireDefault(A),O=t(1394),F=babelHelpers.interopRequireDefault(O),U=t(545),V=t(1318),j=t(628),L=babelHelpers.interopRequireDefault(j),z=t(1395),G=babelHelpers.interopRequireDefault(z),J='newChat',Q='invalidKey',W=(function(e){function t(e){var r=this;babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChatAction=function(e){var t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next=0===r.t0?3:18;break;case 3:return r.prev=3,n.setState({loading:!0}),r.next=7,regeneratorRuntime.awrap(n.getPublicKeyFromClipboard());case 7:t=r.sent,n.setState({publicKey:t.identityKey,profile:t,showModal:J}),r.next=14;break;case 11:r.prev=11,r.t1=r.catch(3),n.setState({publicKey:'',profile:null,showModal:Q});case 14:return r.prev=14,n.setState({loading:!1}),r.finish(14);case 17:case 18:return r.abrupt("break",19);case 19:case"end":return r.stop()}},null,r,[[3,11,14,17]])},n.getPublicKeyFromClipboard=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(i.Clipboard.getString());case 2:return e=t.sent,t.abrupt("return",n.getUserProfile(e));case 4:case"end":return t.stop()}},null,r)},n.getUserProfile=function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){n.props.getProfile(e,function(e,n){null==e?(null!=n&&console.log("[TEST] Profile fetch error: "+n.message),r(n)):t(e)})}));case 1:case"end":return t.stop()}},null,r)},n.startChat=function(){var e,t;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!=(e=n.state.profile)){r.next=4;break}return console.log('[TEST] No partner profile selected'),r.abrupt("return");case 4:if(null==(t=u.default.find(n.props.chatSessions,function(t){return t.publicKey===e.identityKey}))){r.next=9;break}return n.onChatSelect(t.publicKey),n.setState({showModal:''}),r.abrupt("return");case 9:n.props.createNewSession(e,function(t){'success'===t.status?(n.setState({showModal:''}),n.props.navigator.push(babelHelpers.extends({},(0,y.screen)('PRIVATE_CHAT_SCREEN'),{passProps:{userPublicKey:t.userPublicKey,recipientPublicKey:e.identityKey}}))):console.log('[TEST] create session error: ',t)});case 10:case"end":return r.stop()}},null,r)},n.onChatSelect=function(e){n.props.onItemSelect(e,function(t){'success'===t.status&&n.props.navigator.push(babelHelpers.extends({},(0,y.screen)('PRIVATE_CHAT_SCREEN'),{passProps:{userPublicKey:t.userPublicKey,recipientPublicKey:e}}))})},n.dismissModal=function(){n.setState({publicKey:'',profile:null,showModal:''})},n.sharePublicKey=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap((0,U.panthalassaIdentityPublicKey)());case 2:e=t.sent,i.Share.share({message:e||''}).then(function(){n.dismissModal()});case 4:case"end":return t.stop()}},null,r)},n.showActionSheet=function(){n.actionSheet.show()},n.state={publicKey:'',profile:null,showModal:'',loading:!1},n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onNavBarButtonPress",value:function(e){"MORE_BUTTON"===e&&this.setState({showModal:"moreMenu"})}},{key:"render",value:function(){var e=this,t=u.default.sortBy(this.props.chatSessions,function(e){return e.profile.name}),r=u.default.groupBy(t,function(e){return e.profile.name.charAt(0)}),n=u.default.map(r,function(e,t){return{title:t,data:e}}),a=[q.default.t('screens.chat.keyFromClipboard'),q.default.t('screens.chat.cancel')];return s.default.createElement(i.View,{style:g.default.nationsScreenContainer},s.default.createElement(h.default,null),s.default.createElement(P.default,null),s.default.createElement(B.default,{title:q.default.t('screens.chat.title')}),s.default.createElement(i.SectionList,{renderItem:function(t){var r=t.item,n=(0,V.imageSource)(r.profile.image)||L.default.avatarIcon;return s.default.createElement(v.default,{name:r.profile.name,lastMessage:0===r.messages.length?null:r.messages[r.messages.length-1].text,avatar:n,onPress:e.onChatSelect,unreadMessages:r.unreadMessages,id:r.publicKey})},keyExtractor:function(e){return e.publicKey},renderSectionHeader:function(e){var t=e.section;return s.default.createElement(w.default,{title:t.title})},sections:n,style:g.default.sectionList,ItemSeparatorComponent:function(){return s.default.createElement(i.View,{style:g.default.itemSeparator})}}),s.default.createElement(c.Fab,{style:g.default.floatingButton,position:"bottomRight",onPress:this.showActionSheet},s.default.createElement(c.Text,null,"+")),s.default.createElement(p.default,{ref:function(t){e.actionSheet=t},options:a,cancelButtonIndex:a.length-1,onPress:this.onChatAction}),s.default.createElement(G.default,{visible:"moreMenu"===this.state.showModal,onCancel:this.dismissModal,options:[{text:q.default.t('screens.chat.menu.shareIdentityKey'),onPress:this.sharePublicKey}]}),s.default.createElement(k.default,{profile:this.state.profile,visible:this.state.showModal===J,onStartChat:this.startChat,onCancel:this.dismissModal}),s.default.createElement(N.default,{done:this.dismissModal,visible:this.state.showModal===Q}),s.default.createElement(F.default,{done:this.dismissModal,visible:"invite"===this.state.showModal}),!0===this.state.loading&&s.default.createElement(H.default,null))}}]),t})(K.default);W.navigatorButtons={leftButtons:[],rightButtons:[{id:"MORE_BUTTON",icon:L.default.moreMenuIcon,buttonColor:T.default.navigationButtonColor}]};n.default=(0,l.connect)(function(e){return{chatSessions:e.chat.chats}},function(e){return{getProfile:function(t,r){return e((0,d.getProfile)(t,r))},createNewSession:function(t,r){return e((0,d.newChatSession)(t,r))},onItemSelect:function(t,r){return e((0,d.openChat)(t,r))}}})(W)},1390); +__d(function(e,t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(781),i=t(798),l=babelHelpers.interopRequireDefault(i),r=t(515),d=babelHelpers.interopRequireDefault(r),f=n.MediaQueryStyleSheet.create(babelHelpers.extends({},l.default,{modalContainer:{flex:1,alignItems:'center',justifyContent:'center',backgroundColor:'rgba(51, 51, 51, 0.4)'},modalContent:{width:327,backgroundColor:'white',padding:20,display:'flex',flexDirection:'column',justifyContent:'space-between'},newChatModal:{height:471},invalidKeyModal:{height:393},inviteSuccessModal:{height:248},modalTitle:{fontSize:19,fontWeight:'bold'},modalBody:{marginTop:17,fontSize:16,color:'rgba(0, 0, 0, 0.54)'},userName:{fontSize:28,color:d.default.BitnationDarkGrayColor,marginTop:13},profileArea:{},buttonArea:{flexDirection:'row',justifyContent:'flex-end'},modalMoreContainer:{flex:1,backgroundColor:d.default.lightFade,paddingLeft:100,paddingRight:8,paddingTop:l.default.statusBar.height+8},modalMoreContent:{backgroundColor:'white'},modalMenuItem:{height:48,alignItems:'center',flexDirection:'row',justifyContent:'space-between'},modalMenuText:{paddingLeft:15,fontSize:16,color:d.default.BitnationBlackAlphaColor},iconForward:{fontSize:17,color:d.default.BitnationBlackAlphaColor,paddingTop:5,paddingLeft:4,paddingRight:15}}));a.default=f},1391); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(51),n=babelHelpers.interopRequireDefault(r),u=t(17),d=t(851),f=t(802),s=babelHelpers.interopRequireDefault(f),i=t(1391),o=babelHelpers.interopRequireDefault(i),c=t(665),m=babelHelpers.interopRequireDefault(c),p=t(628),b=babelHelpers.interopRequireDefault(p),y=t(1318);l.default=function(e){var t=e.profile,a=e.onStartChat,l=e.onCancel,r=e.visible;return n.default.createElement(u.Modal,{animationType:"fade",transparent:!0,visible:r,onRequestClose:l},n.default.createElement(u.View,{style:o.default.modalContainer},n.default.createElement(u.View,{style:[o.default.modalContent,o.default.newChatModal]},n.default.createElement(u.View,{style:o.default.profileArea},n.default.createElement(d.Text,{style:o.default.modalTitle},m.default.t('screens.chat.newChat')),n.default.createElement(u.Image,{source:(0,y.imageSource)(t?t.image:null)||b.default.avatarIcon,style:o.default.avatarLarge}),n.default.createElement(d.Text,{style:o.default.userName},t?t.name:'')),n.default.createElement(u.View,{style:o.default.buttonArea},n.default.createElement(s.default,{enabled:!0,styleTitle:o.default.newAccountText,title:m.default.t('screens.chat.cancel').toUpperCase(),onPress:l}),n.default.createElement(s.default,{enabled:!0,styleTitle:o.default.newAccountText,title:m.default.t('screens.chat.startChat').toUpperCase(),onPress:a})))))}},1392); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),i=babelHelpers.interopRequireDefault(n),r=t(17),d=t(851),o=t(802),u=babelHelpers.interopRequireDefault(o),f=t(1391),s=babelHelpers.interopRequireDefault(f),y=t(665),c=babelHelpers.interopRequireDefault(y);l.default=function(e){var t=e.done,a=e.visible;return i.default.createElement(r.Modal,{animationType:"fade",transparent:!0,visible:a,onRequestClose:t},i.default.createElement(r.View,{style:s.default.modalContainer},i.default.createElement(r.View,{style:[s.default.modalContent,s.default.invalidKeyModal]},i.default.createElement(r.View,{style:s.default.profileArea},i.default.createElement(d.Text,{style:s.default.modalTitle},c.default.t('screens.chat.invalidKey')),i.default.createElement(d.Text,{style:s.default.modalBody},"Your clipboard does not have a valid public key on it.",'\n','\n',"Ask the person you want to chat with to share their Identity Key with you. They can find their Identity Key in the app identity setting, or in the menu on the chat screen.",'\n','\n',"Copy the key they send you and return here.")),i.default.createElement(r.View,{style:s.default.buttonArea},i.default.createElement(u.default,{enabled:!0,styleTitle:s.default.newAccountText,title:c.default.t('common.ok').toUpperCase(),onPress:t})))))}},1393); +__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var n=t(51),u=babelHelpers.interopRequireDefault(n),d=t(17),r=t(851),i=t(802),o=babelHelpers.interopRequireDefault(i),f=t(1391),s=babelHelpers.interopRequireDefault(f),c=t(665),p=babelHelpers.interopRequireDefault(c);a.default=function(e){var t=e.done,l=e.visible;return u.default.createElement(d.Modal,{animationType:"fade",transparent:!0,visible:l,onRequestClose:t},u.default.createElement(d.View,{style:s.default.modalContainer},u.default.createElement(d.View,{style:[s.default.modalContent,s.default.inviteSuccessModal]},u.default.createElement(d.View,{style:s.default.profileArea},u.default.createElement(r.Text,{style:s.default.modalTitle},p.default.t('screens.chat.inviteSent')),u.default.createElement(r.Text,{style:s.default.modalBody},"You have invited Sandy Apples to chat.")),u.default.createElement(d.View,{style:s.default.buttonArea},u.default.createElement(o.default,{enabled:!0,styleTitle:s.default.newAccountText,title:p.default.t('common.ok').toUpperCase(),onPress:t})))))}},1394); +__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var n=t(51),o=babelHelpers.interopRequireDefault(n),r=t(17),i=t(781),d=t(515),u=babelHelpers.interopRequireDefault(d),s=t(798),c=babelHelpers.interopRequireDefault(s),f=i.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default,{modalMoreContainer:{flex:1,backgroundColor:u.default.lightFade,paddingLeft:100,paddingRight:8,paddingTop:c.default.statusBar.height+8},modalMoreContent:{backgroundColor:'white'},modalMenuItem:{height:48,alignItems:'center',flexDirection:'row',justifyContent:'space-between'},modalMenuText:{paddingLeft:15,fontSize:16,color:u.default.BitnationBlackAlphaColor}}));l.default=function(e){var t=e.onCancel,a=e.visible,l=e.options;return o.default.createElement(r.Modal,{animationType:"fade",transparent:!0,visible:a,onRequestClose:t},o.default.createElement(r.TouchableOpacity,{style:f.modalMoreContainer,activeOpacity:1,onPress:t},o.default.createElement(r.View,{style:f.modalMoreContent},l.map(function(e){return o.default.createElement(r.TouchableOpacity,{style:f.modalMenuItem,onPress:e.onPress,key:e.text},o.default.createElement(r.Text,{style:f.modalMenuText},e.text))}))))}},1395); +__d(function(e,t,n,s){Object.defineProperty(s,"__esModule",{value:!0});var r=t(51),l=babelHelpers.interopRequireDefault(r),a=t(17),p=t(297),o=t(1265),i=t(1322),u=babelHelpers.interopRequireDefault(i),c=t(1397),d=babelHelpers.interopRequireDefault(c),f=t(534),b=t(780),h=babelHelpers.interopRequireDefault(b),m=t(797),g=babelHelpers.interopRequireDefault(m),A=t(809),y=babelHelpers.interopRequireDefault(A),S=t(365),M=t(535),v=t(763),x=t(538),C=t(539),D=t(665),H=babelHelpers.interopRequireDefault(D),P=t(1398),E=babelHelpers.interopRequireDefault(P),w=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onSelectDAppToOpen=function(e){e0&&void 0!==arguments[0]?arguments[0]:[])[0].text;null!=(0,M.getSelectedSession)(this.props.sessions,this.props.recipientPublicKey)?this.props.sendMessage(this.props.recipientPublicKey,e):this.showSessionClosedAlert()}},{key:"buildContext",value:function(){return{partner:{name:this.props.partner.name,identityKey:this.props.partner.identityKey,ethereumAddress:this.props.partner.ethereumAddress},account:{name:this.props.user.name,identityKey:this.props.userPublicKey,ethereumAddress:this.props.wallets[0].ethAddress}}}},{key:"render",value:function(){var e=this,t=[].concat(babelHelpers.toConsumableArray(this.props.availableDApps.map(function(e){return e.name})),[H.default.t('screens.chat.cancel')]),n=(0,M.getSelectedSession)(this.props.sessions,this.props.recipientPublicKey);if(null==n)return l.default.createElement(a.View,null);var s=n.messages;s=s.map(function(t){if(null==t.dAppMessage)return t;var n=t.dAppMessage,s=(0,x.getDApp)(e.props.dAppsState,n.dAppPublicKey);return null==s?babelHelpers.extends({},t,{user:{_id:n.dAppPublicKey,name:'??'}}):babelHelpers.extends({},t,{user:{_id:s.publicKey,name:s.name}})});var r={_id:this.props.userPublicKey,name:this.props.user?this.props.user.name:'anonymous'},p=s[0]&&s[0]._id||'0';return l.default.createElement(a.View,{style:d.default.container},l.default.createElement(h.default,null),l.default.createElement(g.default,{navBarHidden:!1}),l.default.createElement(o.GiftedChat,{messages:s.reverse(),onSend:function(t){return e.onSend(t)},user:r,bottomOffset:'ios'===a.Platform.OS?48.5:0,renderComposer:function(e){return l.default.createElement(o.Composer,babelHelpers.extends({},e,{textInputStyle:d.default.composer}))},renderInputToolbar:function(e){return l.default.createElement(o.InputToolbar,babelHelpers.extends({},e,{containerStyle:d.default.inputToolbar}))},renderCustomView:function(e){var t=e.currentMessage.dAppMessage;return null==t?null:l.default.createElement(E.default,{message:t})},renderMessageText:function(e){return null==e.currentMessage.dAppMessage?l.default.createElement(o.MessageText,e):null},renderBubble:function(e){return l.default.createElement(o.Bubble,babelHelpers.extends({},e,{customTextStyle:d.default.customTextStyle,wrapperStyle:{left:d.default.leftBubbleWrapper,right:d.default.rightBubbleWrapper},textStyle:{left:d.default.leftTextStyle,right:d.default.rightTextStyle}}))},onLongPress:function(t,n){e.setState({selectedMessage:n})},onPressActionButton:function(){return e.dAppsActionSheet&&e.dAppsActionSheet.show()},renderActions:function(e){return l.default.createElement(o.Actions,babelHelpers.extends({},e,{containerStyle:d.default.actionContainerStyle}))},loadEarlier:!0,onLoadEarlier:function(){return e.props.loadMessages(e.props.recipientPublicKey,p)}}),this.props.isFetching&&l.default.createElement(y.default,null),l.default.createElement(u.default,{ref:function(t){e.dAppsActionSheet=t},options:t,cancelButtonIndex:t.length-1,onPress:this.onSelectDAppToOpen}),l.default.createElement(u.default,{ref:function(t){e.messageActionSheet=t},options:['Copy Text','Cancel'],cancelButtonIndex:1,onPress:this.onMessageAction}))}}]),t})(r.Component);s.default=(0,p.connect)(function(e){return{user:(0,S.getCurrentAccount)(e.accounts),isFetching:e.chat.isFetching,sessions:e.chat.chats,partner:e.chat.chatProfile,wallets:e.wallet.wallets,availableDApps:e.dApps.availableDApps,dAppsState:e.dApps}},function(e){return{showSpinner:function(){return e((0,f.showSpinner)())},hideSpinner:function(){return e((0,f.hideSpinner)())},sendMessage:function(t,n){return e((0,f.sendMessage)(t,n))},openDApp:function(t){return e((0,C.openDApp)(t))},setDAppContext:function(t){return e((0,C.setDAppContext)(t))},loadMessages:function(t,n){return e((0,f.loadChatMessages)(t,n))},markMessagesAsRead:function(t){return e((0,f.changeUnreadStatus)(t,!1))}}})(w)},1396); +__d(function(o,t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var l=t(781),a=t(515),i=babelHelpers.interopRequireDefault(a),n=l.MediaQueryStyleSheet.create({container:{flex:1},composer:{backgroundColor:i.default.shadeOfBitnationLightColor(.2),borderWidth:1,borderColor:i.default.borderColor,color:i.default.BitnationDarkGrayColor,paddingLeft:4,marginRight:5},inputToolbar:{backgroundColor:'transparent',borderTopWidth:0,paddingRight:5},customTextStyle:{fontFamily:'Roboto',fontWeight:'normal',color:i.default.BitnationDarkGrayColor},leftBubbleWrapper:{flex:1,backgroundColor:i.default.white},rightBubbleWrapper:{flex:1,backgroundColor:i.default.BitnationHighlightYellowColor},leftTextStyle:{color:i.default.BitnationDarkGrayColor},rightTextStyle:{color:i.default.BitnationDarkGrayColor},actionContainerStyle:{width:26,height:26}});r.default=n},1397); +__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(51),r=babelHelpers.interopRequireDefault(l),s=t(17),i=t(781),p=t(297),u=t(1399),o=babelHelpers.interopRequireDefault(u),d=t(798),c=babelHelpers.interopRequireDefault(d),f=t(539),g=t(665),b=babelHelpers.interopRequireDefault(g),y=t(538),h=i.MediaQueryStyleSheet.create(babelHelpers.extends({},c.default,{dAppMessageRootView:{flex:1,alignItems:'center',justifyContent:'center'},dAppMessageContainer:{paddingTop:6,flexGrow:1,alignItems:'stretch',justifyContent:'center',flex:0},loadingContainer:{flex:1,height:50,alignItems:'center',justifyContent:'center'},fallbackUIContainer:{paddingLeft:6,paddingRight:6}})),A=(function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isRendering:!0,layout:null},n.props.renderDAppMessage(e.message,function(e){n.setState(function(){return{isRendering:!1,layout:e}})}),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidCatch",value:function(){this.setState({isRendering:!1,layout:null})}},{key:"renderFallbackUI",value:function(){var e=(0,y.getDApp)(this.props.dAppsState,this.props.message.dAppPublicKey),t=b.default.t('dApps.unknownDAppMessage');return null!=e&&(t=b.default.t('dApps.failedDAppMessageRender',{dAppName:e.name})),r.default.createElement(s.View,{style:h.fallbackUIContainer},r.default.createElement(s.Text,{style:h.body},t))}},{key:"renderLoading",value:function(){return r.default.createElement(s.View,{style:h.loadingContainer},r.default.createElement(s.ActivityIndicator,{size:"small"}))}},{key:"render",value:function(){return r.default.createElement(s.View,{style:h.dAppMessageRootView},r.default.createElement(s.View,{style:h.dAppMessageContainer},null!=this.state.layout&&r.default.createElement(o.default,{dAppPublicKey:this.props.message.dAppPublicKey,layout:this.state.layout}),!1===this.state.isRendering&&null==this.state.layout&&this.renderFallbackUI()),!0===this.state.isRendering&&this.renderLoading())}}]),t})(r.default.Component);a.default=(0,p.connect)(function(e){return{dAppsState:e.dApps}},function(e){return{renderDAppMessage:function(t,n){e((0,f.renderDAppMessage)(t,n))}}})(A)},1398); +__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});var n=r(51),a=babelHelpers.interopRequireDefault(n),o=r(17),s=r(297),u=r(1400),i=r(539),c=r(798),p=babelHelpers.interopRequireDefault(c),b=(function(e){function r(){var e,t,l,n;babelHelpers.classCallCheck(this,r);for(var a=arguments.length,o=Array(a),s=0;s0&&r.default.createElement(_.default,{title:l}),r.default.createElement(h.default,{layout:t,dAppPublicKey:e.dAppPublicKey}),a&&r.default.createElement(C.default,null))}},{key:"modalInfo",get:function(){return this.props.dApps.modals[this.props.modalID]}}]),t})(p.default);k.navigatorButtons={leftButtons:[{id:'cancel',title:c.default.t('common.cancel'),buttonColor:d.default.navigationButtonColor}],rightButtons:[]};a.default=(0,o.connect)(function(e){return{dApps:e.dApps}},function(e){return{closeDApp:function(t){e((0,E.dAppLaunchStateChanged)(t,'started'))},cleanDAppModal:function(t){e((0,E.cleanDAppModal)(t))}}})(k)},1408); +__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(51),l=babelHelpers.interopRequireDefault(o),a=t(297),u=t(17),i=t(851),s=t(801),c=babelHelpers.interopRequireDefault(s),p=t(780),d=babelHelpers.interopRequireDefault(p),f=t(627),m=t(1410),b=babelHelpers.interopRequireDefault(m),h=t(797),D=babelHelpers.interopRequireDefault(h),C=t(806),E=babelHelpers.interopRequireDefault(C),H=t(665),g=babelHelpers.interopRequireDefault(H),R=t(542),v=t(809),y=babelHelpers.interopRequireDefault(v),S=t(1411),_=babelHelpers.interopRequireDefault(S),q=t(541),w=t(1321),M=babelHelpers.interopRequireDefault(w),N=(function(e){function t(){var e,n,r,o;babelHelpers.classCallCheck(this,t);for(var l=arguments.length,a=Array(l),u=0;uPy5<4Ht8RCodHoCkbV#rDUOkOC=S2)zfXQ3UA_5l}!yQ7Iw@R1iTx5d_~uP%J?O zX)5p(1*C(7o<I_vb#w(8sGo(XFi|1Gk509nVBlz2y8M6)^Jovk9&g|K<-?V*qm<|XC=wlX?D_1VBnYPBCeDcW# z^Cg{Nrf=T7X-%7X9(Ub!SEThNW1?clSIgVgt5*#y`Sa&rqO84p_s(|+Xl4cl1--a) z=guK{^X7fe%yTQwLoH9$ELgDM8!0I%8>dg7zTw!hW5v##In$&?ix!P9UcA_l{3Bbp zZhcySdaNT34i0|e!i5X5g$fm_3{mc(tT^%F^XJc>C7m&>S+nK^u)Lcw*Y1sO^fj|W zLPDmR=?pPs`al_)2nD6di&g9}fOU;6=G%aJ_3BkjnYZx$IlZ?5GSWC@(zm&cK3wSn z1q!^a__jckqeqPzb^m|<^Pfkl7;zgwmNJG89l8jHI5~d&_;t@b^GujoiRK$A{rTsg zH{8E}f1>)-lgxX`3sM2iH-{C=Ds2gViZz8!gDBwX>Df}qh((d>Nl8iXrlqCr@$&L= zS@$-iS{)!NX%?(szy7n-)YSB!fByM~gCh!_ zK7D$RZJyFz_8C9@^iv1>yx)KS{hEEA-Y;FcbpDS&{%}}k5AV;~$uKNLQ|k8Z+sB#9 z-K=2Wb2Hy*3^T=oJf&H)W(DklgbXf-w$IP*yPxPsrQ68m6cNm6^rl3K68=q^H1WRY zo_hjqfDPW`-B)>!J@#0BJtWNr?1iqk;Jjwcn6Zah58AO~N1`%z@7_IBaj{~>+W+?3 zZ)s|X*P>gtY?()FEXYQU8cl}n9)`_!3?DvRg1ahgHhlT=<(){o4uuOB4y59YBS(%z zvv8}rhIX-<#*7(rf0Zg#dOiE>vo~2e#aK;V%+1cxqeriVG!eCH*Y1`Xa%=gD6)Oh& z`T1#x{?<%O0{K&(;eC$Oy<}hJ^c@y4wi**aY@=YlD`r=m`2PFvm$S`tm}Y}WwJRvp zr%#`iaKvuA{J<+$uGqs`S-=X*EFZJJ+)7k#+O+8m7~kLmo3iBU)vH^DiA{dSrAyDY%~#sn+uPap{U_+DQ>V87`F1O{diCnw^XAQKZ=cUTnxS#~a^oF@ z_EM$#x^?UR)vjH;+jIf@iE@ZgJL1P5e{9_^&=ne~;`Qs-Gt9Co1N)&vBzBnrUAuOD z#U?K=%Pav_T5Xf(k&uvZ(e~YC8pdts>+2ha&aurNaO1{}k*xh0fq{XA?aN%gqaGEa zXNv&}frdRm)Sq-M*e9OYlsGPNI4zW1gnjOE3h;Lq_}Mn#K#*FCYt^ddVKBRL`O$=Ro*-AymL1y$U*4WW8AoLYm_%^ z*subtR;}6#?CS`L{OqC&$Zq1r#uUsJsja{eRcH>o(I8fkR|cD{mV}JPJhqc?bZA+?Cr;b`+R0Vs?@cHa4|U$MXoCUZGY9R%+Mp<; z888!w7gE-U0n9pk_H2?n?PjUYkRd~=qU5Eqg)L<1RCiSAi!Z*Yh1?$&6&3Z6gK|%% zt}oA=@4owP63n>50gU@u^XJchdBK7O7uZW{Im061`OP=qobvbgpZnp5A8ygRGgvx0 zyh4Qv!&nSi-;@f*x1Rj*My;r^R$}7uV)lnJB$n4AL8fgja;VR)UAqit0xNwTEYj9h9hEVj^%y-jGlR>t+{edfYGzXh5-F7F zEQr2}J9X+5tvEB}ix)3mgA^Z_8C<56WFbsNddEW1LoSdtP#I#U2pX^_19Jg-s|bs> zC5l4C;K9dO zJf)q%xRtMtAeiF@4jkA{on=AUdyMkY=p(>Hu#n0*YJ}N1!XiAz0A^BtYnOKfXqRX1 z5O&$lU$v6+cH+(de5FcUnn-i zzJ2@70AEG#D4Bt(i)-Oavu=ERe3&#_m18xGz-7>4=FFL8srQ@m6i{TvE(R;2Id@T> zXIxy|S+vy(7>^^r|NeU^rlskGSxK_A9q&U0%j1DfIK4=bB9W-gBhbkYC{F<&(SapP zmYib|$c#`vI|0SN;t;FFl|L_0JGXz831% zX~XkqsbdIlb&N9804_+KNR@*_YG83BMs4z9Nar<1r^1{BRJ59C<84s)Yao6CP>PRX zT*o(W-h2^w%@yxf6Pa#_&an3A(W3~*7yA(}>1aQ1GtEDa9Xoaq?y2tZ&;(eaI`T5< z#*G{4@L)%0c>b1rIU@}Oh=TageRJ*TckAc6n2yjbfC~Lzx)y-A0`4n zdv>`Sz4uf@P-!xJG*z8|Z=OUKlo4xc5@MTtOm{{2v=5z)BOVeS9a*RNlH4vj`x7&D&iY^mbGk zbG9Ga&LGMpYBB@{RF=An$!sf15@%VN$biVv3)=MaxMnUhRs9{6D^HEuhE}aw86E{& zczo z2=4M`zOy(}F@y5i=*J&_Ou=*Z9!S)Q+X5C{D`nykSPq<=03NJvV{22|HXwQq0~hne z6HhGd)~#EnhX)RM$rd3x-lr(9lVEORd$KJv(}KipbPsI#6Jm9rCJKH?t1fpC_61GQ_C*Z$J0kb75p&$0WGX zuV23%OrJ~V06cgZ;q8OmypRD|c3u!IbT#ZDPs_;ds%R$z)3vj9%W2NV+%^K2$< z`9MM8_Hza2l7cXDDhuQcei|vWu0k6XGHrgW_7HhLaDp~-Re`bqjw1x(zLAAO5E2?1 z`W>EFm;ChBTW@`DvzSUr#lobJ&~_R)qwB?y+kU42SuF5GbVOk;tveAaI%Vea<;%yagNT?d7+Qu;5hLlgb1t(% z989kvV&p<8V&=IWv$+Sc$;Y!x{G|H>jt~L!Et<{`2Msi*Y3AO!MT97PQ0 z;HMKEz`*-;7S!Fs3Qhs0BGcHG!=Q$E!wz6vjb;Ho3Exei-a;4nZ!5}f2Mq*JvK0jE z&dXsMoPJ&miAK*gQ5z^J! z_C^sK0mMoD`}c37&Qq_r>N4=1)YVC-_T~}{;Fy3nY}n9)s0X5I0E$IjI(ta@5Mer< zuFoyc`sj;?y|_GF0aI~X=gytS)u>TpoPf~PLKPz}4zf#pgg#h+9pV$RQh5TF9Mm_ncBTy); z$|`kxnROXd80mU?2X=sPC=JZ(lo^YKJi|dn`B|C9uOT%EQRtD|qah0P>D1tu2s7Q<!8{H>AC zKmU9jFu4+Pg^1iy>&%6$&sd)Y5b0}hjZWwI+Yh-=gC(JBw{j$3AQpknAfPTlyR*dC zMFrA%C=cNY21b_@it3%%2bfEM{DMlnns_(8SR}C=5?!1Mfc%%0;yZI)C%z$&)D!8Z?MU5bL;X90Y6u;j~=;uHa7_ z^=WGe1l43sqoL*~J|9TNa@cv2k4CgB{!a%V)WK!qKJK4s_tH6If4EJa*M!Fm?4Idpddu)p30J0p-M27Ae4b}M?ayGxZHLDAqwt~C-R8~76k%=vAcykf z@Ys)PklwOo%dMyxkrrJj%gu8_b2nP$6%CZ#H<{?`nVwTxL9o zez+V?N`Q-2ae05ot&((o^fWOuWOn6VNRcKGau#xV8fU}_!iCHpYzOzxy>b*WT%F?L z_Evh)fG0~!*RIFa@PV%s9t8}$ce&zH7`vx2JMBO|pfT>+s!V#NUEM6bvaIh#W=>#I z=HXgA$*M`?qKKjSX9>aI1%wTCA8y0T=zG_=Ff230-JLf4)mLBLC?YB74ltiE#VO71 zehDi#0d+>N>3oAW+1>GQ=x{$veDb4@KKg_3aTmnpNlI4Qad*HbZg0MWi{O@FAU=Zc zd15IrtY{M;t1+gR7shNN_u&oQQ1zgfly48jgn<*iP=~-b`EJ7PfpfyRiw!RxnRp(K zzKWl?G2crSRXgs6oD#7(GOLCfXK8FA`orChU~SyM?7PYmUe6{q6@Seh25Z=*lzHM< zx^n;h_iu-jKL6^gueQ6}4)sz|-Zx=J9y)&f_%)VxLGI!h-U)Yc=9GxV;0#0WV<)z9 zkUO1W_x*|G^$q6U2|RN9@xbkY6HVjZ3vrQz`V`NuKMmMZ?zCan!I6*zcS{9J*OF!o zZmk{@UrveW$&xS*;Ng&aO{8wdHz3YZ6!qgQxsUliuR8-w5iWM=-}yQ&0WZxU%*IIU zW#c^B&307n20qj@WOxwvdm`@698F3N`eFF5>a*L;MUGw5Z3WzvSyF_ZHHtkQp^ZZU zg}9F{BPh-1)n_<-8!R1EfsIAyVmS%E*zaS7i^+=02_n_a5ho((&)|_fjmPt6EQCO= zG<}qV4i!P|c-pMbvh~!?$<7?Zd2uXDx#lg04j;|=`{zi8arxrzu3fuEu&h(DtlZw| z&A#R|_Jb2&X26S3V2%5)4EPNKoNe^22Xh=Xud9YC?GRu*py{A=?f>X z6CMuB!MG749JsNzVqpYX@Z8P! z%i3s+z^TV5H}I>9FV>DhK)&ITWmVTrJb!&P2w59KPDd4)$f?O3jg-!=##x%>4FI$3 zL0J+nyzs&=?3TBv<=_|fMpjXU?2ZD*MRhi=^SH&*AA0DawbXCL^N)GM9rhnW)`E~z z@#THXe;K@n6?0PVCwzK3Kg%>g#B$UhgLqhrMG?<45`A$XUq+0Qh$G-pBFLL zu3f9MK9^1j5eFi+=lKd8i-m`08P5XpMzOq`g2UxiKy$QQmMh0fQjg2BV#jZ`hTQY9j4>0d8Y7aIetjjs-vHUbCA10 z-(@JE10F_!9x-j&w8ngVl;xcg?@mch3frRW&qUN+5-#E-&i-fN_4ye2I+s2~VFYxQ zPx0?0OKz~WHw3H#M?S_l8}Rs|U+!V^SjjTq$({TB?8=R~EcOW8TL&Gm46@JVn9=J~ zaN6!e?ruaW-@qM&^H@1mk#+SEBl@~gT0$&D)h2Y+C9=PuFgJ*3+f8ohd5}qu#0K7Ma;nd;~MaQQ_AZB6W3>yeU(uMi6)H_4^G!BH*s8nY; zPLSSp1b!?D9Q0KW=Wei@R(eZSUcXXDj{R&MmPTCOqv`;5=m||I}(aGt43{E?4#E zsCNf-e&%Ape%e}!H%gjAhQQbUPXf0Y3#_Qm(r-;Y-5W zTw7bjA7;(8spN@gB^d3$9I&Pp;mftqZTRP!@`Q6eZVOj6mMhKm&-xs^n-_^ZxxrAF zUD&H^*|I~hDyCWR=E3_@8nvg8O*_^kO85+P!JR1P*Xi)5)&i`Uh=_mvHve*HV@jCB7`af*>K*({j_MP4!SW8sc&qf|E5`E_$95Twe>cR4T=v z@bo~33$R>I)xQ`hJiyZu-A}IjrVOSW@cOUQD#WIjqzt#UdZHi~<1cCkFd1_&15eZG zHz7_qI-hjC41u=Z!x7tztJI~q&l8I}Qx7k6HvvHueTAeyXL*!%do$<;tbkC8nv-9F z*i_vrawDxLljqAsn0cNI{zbShMSs?cA<&3AwRn1hcLaa-au{ppUXCL|)D|I({{ZNK z4m#x@vb;ZWa2KCXPzyyR0BAhPzl6$++Qt@qikEUt&!1Z z25;z+a87O9ZJt~>&}Y`=>F;al{!2xi5mc{7M0ST%t2k(Jz#-pTBo<2?|LEQTv;00T5GOF~pnI5P#m+!$un zzNendq7N6US0a~8f?G#HnHLjtk!vDDsXL89x1sQL{CYEKV}g5YTahsM(O z9}r$nh(wg@yOGD8Im8!tYtoDpIyl~sTMTi?G)-oPfY(N+gqQfvcLaE^s1QP=g42_~ z!sx(?+K$=SoQbUlw_av!7aw@wfibwt5==x8%9}qU*~j_Lc#ME;5VR}u{Q=sXz?pjp zB4nf3$_E0qg;O2^NN2~FXs9f4N#5g`Ss}a$Od0Zfkf*!L@#NWB33*sr&yZIMB7MoS zm1SWK5V1TR*B^!@fNwbk`aih(aCJAHlMLW9PTe#yzBnt|16PT5Cc(`oEJ%E5za4$7 z1Tpos<8c!?@DI_iFmTMo9=~AbE2fPw$~sdgnmX$&WnT2BCjDv6yCz~kebCMKilhUH z<7jt1X=8OTN!5XE4vr{GyXxcPly{`w23F&Eb8Tu_%hzYV>*j&I?W!`ts4TaT4bqmUor rQ@Mg*G-mrC9BRYtqgk%H3fKP&7~4Kgue^uz00000NkvXXu0mjfZyyB$ literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-mdpi/src_assets_images_bitnationlogobig.png b/android/app/src/main/res/drawable-mdpi/src_assets_images_bitnationlogobig.png new file mode 100644 index 0000000000000000000000000000000000000000..d5ee94845eac1ebb165cd3d048e7f976442f90ef GIT binary patch literal 35076 zcmZ5|Q*>oruyt&!W1Scs+qT)UZL5=xZQHi(6RTreoeny7a{hb|cZ~nuhrRcx*IH{; z%~f;G9jUA+g^YlY00stzEF&$h`t{xTddA>jz`(%aRDZ&K1>ml#QlemWvxH}0V8UQB z;v(u^;1{{DUg{F7W1fqcyoFE7CBa66K}Bl~M$qTBBVou>wqtQoYY)xjK_*(fGzH`| zqy-DU|9YQkuHO6wEC#dt^&mQJ9G_SURs$r>g8a^o<)RyMvKYgCB_bWRDZf>;Ba7P=^hF*#T)sbZ#Oo_Cqy?`b%=^^%<- z!ObrB^H89G5o=Pvd@_~7U+<5F$VDCwj@G$Cv2amvizc{tfyXsd%hzx{w|NQFJdX|Q z=81Pp?7t)ioi4{Lf$txO=5Im)pYI=~vZ+;nNu1tq#+1hXrL@^^3S!b6E|kh?;R*UZ zTY%hnK2cLLF*Is*9xMeFu)br`6eD2My zi+X&D0wWMMGh0wMj!NXfdw%yXL8Pjkxwj!ZQlH)AAo9u(3; zAU*_whr$RQTJxM4s3J$f>rQI`?oB|vUgee`Idp# zhx6P^N2UTTefMP+g9zDkKI5T~ex#7U?4vUsJzE_QKcBWeTVHieRSj`0>978aBJrfI zIPEw5iU!u!v||BWL`MhScPH*i*~Ay3Tn&AJ;|hr|*s}XuJOW>jw!! zm-F%Pynv3hiX~&4;e=RNSZ-85412s9qhD5o6&etrw4ZG2dp%kqdPgDEi)FYYLBw$7 z`fpGFK#u9(^=qIr*H6*pe$y`5O~(=ONpd=DX{QA0AJW%#kk>ly_T?LRteY!kA^li@ zT0)0p|EFAh`g}V25xB}1=$N!+(62onPW_y{m)nJrxkpb+m|R41&|A;s-5b`M1^?;x zQGUV!&xdG9`!N?kG4U7!v?UE}o zkxW5vTp7Z#|KpK*aDRgRkcKr6oVdCf#Q~_Fs_4e`DJ0_1GZcXO`BK#gJ>2`Wvxzx* zZtvuzKvO_-k8t2u10gnoi1&Cq#pGDpFgYu2=yx;XXHIu`uQgT(K)QeO9EJa@Nsf{K zhh*?vDDLE*R{o|!U-u&S)7s^IuE1@URnw1^u6W4j@#5uTFc`KOyG$C0H%N!h%wSZw z;e!5qLkJCYOD8|7tKEh&c(EY5|7jikX_@8~GGI3xv@Yy6jb;uLCvI#>kJO)G6q@P1 zP;N91ZBNn6aag91{iw1hE7NQZE6?xC@De0CDorvSHQzk_-CCT)yrB!%vg$(G!{ z<6{d29oZ-E_IkRZ(7a5!7})=QJGBz<`C@6=5CRe5_0gyhG%`^eV9koBP;MQts_&Uw z853KWd{LY>Mw>G|d6ZJ9lpP)=kGX8pAS9QQwc{lp|HIb#X`}Dw8-BgvL^+zSu(X!* zX`Zh`8*!`Su3-MU$$XInUZAk=+hu!wx)4$jea?OYw)?$M*x+W1SU5@;UqV7=W~Q(u zcPQ;CfzO^bFf!cE_qr_G!DrFT=^&CCrA)1&n@d4P#yg&jyonJ7LYiG+#4zAPL%v(< z?csbi{9o<;#thJRwRFfI^zoz*i$aKY4{w?4u1Rl>Fmj*Rhijj&2$;WlRqOS6DD#^% zIX@R#%p#LMH2C?joE`bpqXRFyu|dpMxeKMt1iBtZeG`{$KboTyUvRln%Apg&PLt2c zdmYvSR={m|KIFS8okgqEs*d-tdkbE~mOpdRCDdD_M`Y4fYt`?R>x8lD2q+4^9NB$P z5Go)0U`!|&SA`sCRH~LTw%8&o2jCdElNz>CDrex}GoBoHSvzY>96SNXO}>4+9@lqfB- znJkXCgcP#w0vDXj&96P;Ejw(OeUl$PNlWkz+b`k@6w5_2#dIMw?f=aS@i%#TvC8ql zQoLPclg8B$A`{j(YU=51)|RWEBomXJ>ySN(V-QQVUEmpU;5B&4XO-7*?~2R`rzdh* z;dj~|4o$6x9jyV=O5n1t56fEZi&~Pt@_2lwdfd3@?LLb~+=TKTotHRKOkw*vC|q38 zQ&z0w`vk)*2TD2<9pR9h1eY(SqPq^=6#GW9cM^ICn!*!$OdZYuG~7l2PICW zF;0OIkb$covlqfK2SCD%L{BuHUTk$P9tw1H(O#s&r;r^jhYpb%*Fv!)-G74^8CF_) zKU{N;iYK~o2MviY(n{k`y~Xieb;x-)o8yUjuZBetJTiBsujS<%!zOssf@4JJo-t}C z3l}j@Xz6AZNcM_IX0zb$RSQ$!i(rQH{c_MEdP7ge3Lo9btJ7{Af>0L9|7t1}lQsAS zTXg?=?q<0$otLXLHW+hc42CDF`%zFKN+y!E>dKe(j{b(#uP1B|GTQx!gZ|U&SKj#W zg6KcRYO(e~h1#|y^Sn%bK>-)s_M8rTe)r-(>ER1*sL?V&m6M7HCC`u{U5HVseV!qe zSg}P+*9ckuXqTleD=&k{tur8KW`y~IlvBuN%*K(&?|myoHH&ANgRWI?&>KasRo5~a z6Q{Aqm~YIGQ+gA%+2ef&Rd#_uSgn1NG3glYYI|yW+x=C#lyn-50=;t5;M4LUco-aJ zUM|Z3EVaApM=77Oa&q)fVPM3ruAedIw(#z-;@7Yk{Ox;qN`!0^S6SYuX|jV|BEiyO51iwqW1c9G`{kzklh zp0BjA7e~2LqG+f&`saQ@vquE_kuxvdmm7Q7_;;9*WONO&zEjncm!#bUlGOGJ;#)LP z{%+5IoZ=%gp1VJv%yB}&cr>sVMg?q^D(3x^`cJZKr;7;3?8=6%!4HiwGN$+M=bm#> z0~`^cKgj~@7@Ch-(c0%$>h!y363E0fFE?7N2|q`*yPYT3k-$H0?#~uI>A@J7Nc&Yv z`07-OC0z?7{l|1)MjEj6=8$Y381VNc852{4(pUpbL^r(7YumrSKW;h(XbMhGmjBUh zci858Q9s{kJs+Fy(}awQ>PXxOfZ|XNozyr4>Bq6Vth}4tIniRtBL359m7j7sr{apkzOwdTWI9 zki$Y(gdy_6!4R8hBy^@ES>=?Bwj z)zHPHavP2vb*}ZK(<|jbhz$d7qhR>hc-C1zZVzkYfL?w*TP-%)1c`>C{&Jle1!A=J z4pZOr!CP1j!h-~qg&*)2oaLx)n_c7I!gUPmDAx%-#ciqW?akwA=EWb$@=sUWO02%T z|G*{IgyD7De*yTjGb@iH&;gux0;w#8$>uEj^vuE5TUq}3q5XeG^q=Q~un4B6x&LK5 z_GM1F?Raft%~n-?Rsv4*(F z9kdKrqwHRW1i(Mm#MT@naxyf~*8Ac8x+P8V$*AmPV%t&j%fFp1TggfiD{Gv#F-aAQ zSPz0spJNf~^AgVr|WZT_r}0!TXB-w7eSt`e-As z%z=7tVS~YKgu5yhogLxVwOy$<>_=hG!_l>Mp269V2!{*a9CvKFT@p`$b)bM!GC&H-b(qfr7!z5U!5(G#ikrjo^!Fxg(H z0up7G==tPq=uCEUCn;jjEoVcT_=HewW@bfb;k6w(!LLR$S=j2XGQk@4UnlREAL&b$ za-b{Yuh{yzX6K@WfS6r)?0}`*Ihck3UC@nf2!pP8&W!fY;FUyvZ=OUuEy2cUMyKNo zW`BPF+#mcTV5QdXSTtn(Bu@^EMn1;36eix*OvmSS`_r{mVmkTlrt`kO|5LVqF9@+^ zcQSQCZUlp8v^LUg!@>oH283B5ZZ*0K`LgSMnwtyx0((6b()Ajed#5=&B32tHDC4Tn zLUZ55VY}is*!(g=9gY@I0P>KA%a%D}#f)X_gZf7qVl^K(Dzuay95Vu^c8Q8TCd9Cc zUA#=!fIVNzPHi|WB$N+QM($5=VCzZrvIO&IyIsh&4!JCuv-WnvF?OW%;}8B2fuoNW zd&LY6eR~`J*g(P#AR)is&19~K`-CfQKLQyarZ0YDAh}qoRHNe}bcxD(a=IbpzTZsH z+CZNEy(idQMClft5Yr*o$;v=r&Jm7;%S=k}k5vmVB&sCJ`5p6m#WKRJO*qE1tNo9> zqJxV7I7?r3g)?_p7q|EiL6J^k)1&U-k!7&t!-E=Ct22u-_Kxut4$`jWvs*FM1*c*8 zlmf%9mf1Z$HwpUq0`xmPBmH$T6H+*#nHDt7bVYsm=MA= zMtXG#WIl2PYe@}w7Y3!qO_;((`_-)~9VdT_q3r|O_nU`ZybnO4M#u_L%o&9_Hzorr zV=rJ{S@d=1Ev7S^GeAO%++>S%O?079!;1LEP=qylv9^$MbrxKh>u(C+nEwuUIDGE^ zba%v)z*3?!lQ*) z!GNVK=1J{0fggbw@>aXw%dI>(dId0+fUB;^L`kJ^WKFxMl3Z=QiGP;MtaQz|TX}{# z&CBt)RW;CPqBh@Re5%1TW1;?Hw;v=_MMz!B1U(@fer*mXHwXi)TiEuyn|Y!o0T#5; zIxgsaqw8A`9|C@zc<_M%9B(s2v+koLIk($P+r>uHv9_uNq(dc)DwBQzQJ7BSu9L2u z9&z>K5FYSbPVAatZ?|{=sSp48O6`>2pTh9($SGvmD~jWvB#9H0;N_`vNn`Zd!Ik9I zDS=vgTbf`LDy8V!`u+711q5fg{qmF_{YgDycK-Y~5e7G!UE9(N{(%B2){W4t(6a+7 zKD1yLKyrUdfAh+5mkX~82&#nG=S=v~na3IgkS=RsPLREH&c{2+s60=|KS8@d1#Wta zUozmqV=9Ap(Cm3x?C-HO5dzb7MRcRgkh2HXlc6)>MJ6!Z$GN0w5Yf(*ZBLp%)HPE# zh8+A*4edFRshra?l5l9O1Cwwf(r^;YvKX$_U5Dz&t8ua`%Y5}m7da^F*=;ijZ_i^+1GVnbwytYap$~r z_&of5D1zV-@Qe7+tcn~z$h7B0IT?GX+NUC_xwhl8^Ozg%uwNShvg`^o2!O;8SNI7~ zA})8XsV>zNk6wh_hA7(qu+%cy8!xbjfC*ss-!ic9saK@4C#j{YO^u9<$XKVh5<4Tf zfZHx&q0qL8!N?HH-jp&@hArZvw`%ggOufI~%|)xsxxjlfnKPn+=MCGJ(4a10vo+(a4PYfi>WLy=r9-t?QDf$ zPXFM0;bH5vSj{8M_hxf1b5CVkB3gpGBpcs>`Qv0GEAXUa4Cp0`w-mDIjrWk;)u&DJ_XED~|5fZw9N~)5I**gDh*GKSD)|}b z@Q8SZ0#NK${&nb?-Ck6+CWN*!cCZQyKF3xQ6*x4xbWhJOk!oxC4(CwaeRBx}$@SoA zle|Oinfv>n?s@X~tD2G9OFCw3qB;4E0Or$9C@&D#07vK&uzswEOtm<;OGP+kp6%)sX?g9Ytg=Q;rOG;{vkeAx-mNiE$*s zw*WyY|DW%K&W|kPBRw)~i4*5opP*T=0E{>Gw}!qL%lsK?f2yvRjbmAK#QorjCyBjo zgaMMVT*v& zpV#;MBMx;PW>DFPo~nyjv_iNRA8Agpz#^h&K}=omUg|eJu^C0|A%k|2QdemUenCr zYnqiV{B&k^$ZhwtrZw*O9xrwxXMZrMG;2GoaFoN9{n!Qt$|r9Dy%J%p^0xM>RyhSc z5R;6mFFzz*>o#`^1WkxvV=7)wcEyV*y0JkoLe(jJaSV`(BNXi+=THe`uK)$w34)5# z67*nQD4&=iRILVZ*lSuDhZxNmOj8&Z(n05q-PU`M6qtCX(s(2YGTtWg0-*!i5rN{j zG{LoD_HaWj#g*Z@P*O-BiD@RFBIJ7WT473HodHy3c=}W*)y!E$B%$TUOZ!K`w_{!W z9acM(g&(eYA(L<5)ok(q3Ul(XFQaS4HYrRM4#T@EQ|gzRt1K6DkFejk5eo!{HgK!b2kcZPFJf4~n&QhL(QFUP0Z*8UE5;ch=HE`QGLn!P> za1^-tCh8z@{eb5c#NAUrN3c9P>Hf8F6Z!1iXt2>CdW^ilRz^)nbL4DsK+FhAfpOhK zT!mjg1o_TywRRE+yeq>f*P{6>tzyi%EYe2AUDSrIU!)W}8EI)AS+s~04pX+HBjkb< zts{Z+{_tr*SU$*Re>-LE5a|;BRVsyll-;l2AkoiALn{(N=$iS2Q4uob!0;dWgkihZYP5`<2p%w2{w=JHmq2Zw z3Q22<6mdQyxX^VqrUvsuG$S%aKmALavwSyuwCF~#JjoL5*BpGU zrL!#|38=zRC?{;_itQ17Mdf-#)9=WQ$phKB#z-sIsL-Hrrr8$=33(=uPfLTY2_-6L zC}wo*Z~*JEds7M>S|&e{8akACj#CVcUu|~DE^%xlNS%RBSxAx_K3=H=+}?0&&O;j7 zfsfLIzkZz&pzb+$i3!hnIAivcIS&g=vT6g$S*lj&yXQvQjzBvtEiC|n5pY7RZB8S6 zNE2#rXrrGi+)_&rJb}ir=CyXe3q-UdYK;cOO-g>4i&%^ml>w7bEF6T$aKWJO=R)AL zXAJBSiH-zUQc3VstUtY3A$Ih-+^k6+Ba=J$T6cu_^*|z7ORg487Mf~#glwVR#X1F& zNY?V04o6QX)mU-tE&1r>f)_B@%Zwd4oa%UsR^NSm3Rt%WOkV(L%8y^OoEGy^2#MKx z61DnlbRyrAOiP{eg9wsdaRXz=!v@O=1h&bVVHq3{qro7@>Z)OY07ri;Iz=v4VM^!# zI;9nXWcIRA+Zg&-@+^qmM*LCf0(y$9>^Wo71laldH9%SY;n1;_D4gYn6nWT-btS%1 zS)TWr{7b^G0N>}^cZ6?yM}VW8Anu?WLrDNE^WppiMS$z;Vi8`aq z`T49aV@YvWngW{5Ul4Qv?BhDXxCvNMpk>$n>llF9zDT>s?J@tFdyxkfDYF>uwTwdrg&VFdVLb>o<{)e>v z3|O3JX540yr}$%kqKL|#9`b3HU`bL*WP+&npH* z$5HW!F5Xdf(1?wS3iLtIEV4^pyYL??^MogavaLFZTN6$TCLla>aiLl;nkj@~A~PYl z{YLxGkUBATqen*O+-m&R8BI#}IUptHNXY@|Y1${?c7i&d?z`%=53U1Jk5X?DKYY{+ z0gy%$1Ixok<(MZn06Nz=(J8%bwcQd*PZDyq80>5aKhp1mNj|lDv(?rTeqSz-;b60f z&;`Iy%nM{Ypj&X_n5d^4PvkF#Qf(I|wF9p_r!fWGuoInP|Cq=jw=+LC8I+`+ve|6A z)VgM)gz6;b3z>Z)*o{z*IwHUxow?U0I@%un^A=}4f{{=-Uk}kGi$?P#<~_e7g|uYM z>yxJRU4HzGIkpqFVQip)iI-c7`J)%IC#`~H_pL(Aeh&drL@nciUiycm@QDY$@Ocux zDcYk-jaO zHFs)Uz#rbu(=`Xp-r9nS|sS5$q(Eo;cF89}j@8w_%$a`PRISFpjq&^l{LDfOqq?53%&>KGxpo%P9xxIt(`D0e-XGfij$u6{ohG;WnFw(SylW% zZlczRP_hGK9uH#V&X}+rpufCrinc^!!WM@Sar@9ua*Q7{5y>Mdn>jP@dbh4*6a4Y) znCQOR;4Dp%UR@%U)U}IF=PQlkH!X^h!A9@J!8<|dCEyR*Dk~|v;lACLiwh{=7 zYVL56I34b%ZQ!w)vWI^mLe(9JfQ~}Q{fLAzj38o3)ixF3;qDtHG6l*5X}5ZI2f2;4 z?C`pwI-pX!1rCeO$o6j;;kKS@dKb(Y={rZlLHsdvB?K2->iQec54mB z={4+FG{i5LEdC8~9xoK!x8*GdgKvl(na7{&hJjcmFQ>sC9pNdcahiR|rZtwPWabN*f;VmL zE%QoL_%9{h`uw4f3AbY{k(a`PV~3xe>}$kAcq6gk)&Zv>?23q4w2U{HXfnG%+BS-u zTuJZ9d~>5kE*#F(@Zv&{*GKT+DM}bSly8lPXu}_iTQtXoqk1;Z>biv^(lBmN?r2c> zrXUIEE<$C9u$`e8CP!2;#tKFI@;6?4EL&(<#@&!^wz7>+!T7?3%H`O>ZK zZ%}+%x6#bgD-1d-ttyEDBK>umT}t)9gcS>=BtJ4CvS;|wbmZ*y>tMIGFtIOOpn@N| z0EI)zV%V3_;ajXgc8i0gDNH&B7wPRb3jBUHH%ui8)4UDX2%?cH&q?MO-ZsseHfrE| zTgeYOOF#5jUnM%h&(gJwe5uDSw%YW;L!(GaggLm39Vp*wfq9C~cS!4R`zt5>C?L!P z+a9#`=j`>2jQlTBIG^9R<@AfLPMU1vvc`<8tH$T0+6c@Yjd7nt=GwX@;Z-G>JtbB# z2nuhA7FnXrVFnIWIBd>WJ7i5?u zOGe=i+C(7LY!_ScKgc_C>XH88RLq@1>u0EH_g$F$qu-eEX+qPjJH>BQRg@feUrB~JVb&cd0?#f zTH0RH3K$vVC*EJeouq{%C*3EXTGDi9r%0Ej5LKji%gtZxf~7EBH;3>-%?wYcybSqGLa*=zQ;E9nP39L&EE z6Mfx@3th<+ybaVh?@6IQykZ%xaZar7sLXCu_5dHsjZ_0rh5;w+No{l@^@J7Tf|NHbCN7I2 zv*JXHaAnd0a?B*1V|Ql^#n|W>tsY7y8$Awt1A*J#@ehb~VzF8o!)C0)K(JM?HDvw; zOzt#~`lt+VlCmRWsydOZy!G!R<~n6{cDlJ>(vhT8O)4zZi z@qIW4gpC^89Q*_41TO&po_SnQ*t^m#ZWHvj3z~&V|E%?&*lrOBa;T;3el1ZlF zFpGT=tZNlbZhwEHmS_I-X&#US1##4!r4DTZvcs4`oNG z$xrq%+{HmZ-qd=91Ns-)%Xw;~k5C}`!hMsKRA17`2Rw+SgM;XqV1zH2JBxS>;~#Zj z;DL3NO3xHLXdP(!vCv9e3ph2B1D`TUCrI5JSpWvQ)%U(acL1^0z8`bf?l-Rzd~{OZVepc43U;HdJ{xi|(vIz!3V zB#7jvVC9k-z||>C4}OR3t92+lLsnnL(|(a0cIT=c4W9Zp2#WgQTH8T|fylB;&ZBBP zBeY9aaezXq+DY?x1KBRV`jtAJFT$1AJ4&Jvi`pUuloq>^ZtS2I^c964G{7YMNhsfr zDw=yTfbyp8j^o#>)KXNf*QC-7ySofmcto0G1|2)ZECk9n$VG8+Vqi0b{cO$ADkc-y zJZufcu|aivHO;;j#9!UR*z`sORuw4&ba_a_9&XhT$hg2Ie9r4D+oaM58;U5rQ*t8s&T zu`}Zq1owk3Jiig~`p&Zq6-P>D2z&16&`^^(fVzWcWP+Bz|ACqLdD!lKhD-g0O5WLZ za_mTpq2D}EXYm-6<80EfrV)23OvGO0DbaJOlaf#_av=@h82vC&{#~B_d)bfmpB01K z0|s{7MNU5p*;@tEGo;(W2tdv2sEm-{dqqZJ9J9lmMgngG-M{#jKA9GlC)GYj%u6&R zsmIc_41YfGph*j2hx~S`{n2cJ7%N1=hC^=539zRuX?^4+ev~`bK2p2kOXND@ZSr=Q zIce*XEa?x-ZiM1oguZx6dks&0pZkfZ9*ElhJAi)>VH5InUjtuoCR@YW9+`Ba+BDv{ ze_bA@e^fb_<3-ctZ;kZUg0_ka>vE^q@8sAn@drPo+ZWw6)HZGm##jGhkCMTg&&-*t z^|Fbz^v(o1!pThrfor~jKGg%qR41)pdg;I7ITy%5^apKFGB5dozI?jiGIrK;o!I@C z9qpoBj-lre8urfglLHh1*cLSgEX)#Jzm0ncy?>DX`*n#29akZS&)ZESrn121(o zgsYBLC@cjUqXluAa`3uUIOfMI7w!jzN_{ac(;*97>z zo|PkJ#N`DgaHqo5M3QiWpZCq}olan@-!($V^XD^$6VGaxzY0>-DPx*w3y@3UVvrb$uojA%O zDZ$yfiHmH5`c3LvFb`sO;GK3&87rABa<4xXTsAnS2Xe$lY`#}Cj12dkx%v|nns(S( z3zhVOx0bG*za)L|06iSGB7U!M-k+c>M%cTQu~&;UWioF;4DkCg8L>^oB3E7^bW9} zmSkHvem;u-UX2W6EYGJVoG}}99~0q#76Y}B zW_?5|e$IC#seTYK?^a|^=m_hE;tA`)H*ea4HQ=#w16A)TtLm|^xs)hJ+<@TN#!8$c z9$oS-Z8rllbrEIud^VVq)@OEn7zP7v!&DrspguiuOsY<-*18`_G}v!hwG1tGW)cZ; z@1%)j>T|5E;fN&vPZm+!Xb_tXnDA;Ck0D&Jpj9cqD=U8^FGs#Y3Ruk;*tr;~J=|5I zpKqcTJvXOjqqIDBO4bau6}mhOPe8S``m^^`)d(IpBIzZ|3{14!qEPqqj}Pd3%Lq~|20$lKXf zyTUH<)Iv`oJN&rxoD#9WYG@v0sp-$ykI%Va-G;01P)@lw z=^D=Wn|{tlh^4fSK~;1{4R5v9h@3r2RRE z2E+5|hVKeb+;0jhVrjo_O|X<20%w3Gg3okIST=irefTlgj-=*9`{<~di))WgDNP>R z!tExztP(tEw>|U98f+jKJ&FBHkujQ-mLE2`i7R;{Qno!OqA4`_f^`%#T5COJDSr4Z z&ZoTjB@OP?PV$b-Od0=rw30VEI-3{!Wo@zTeaLzU+>hDIB#X<@A3n8dh-W85{P;7F zU+dqKHP8qzs3;+j?)mDr2QB0yn=?aGH`r&-b#`lTHa=+a`{RWw(B>9^Lo5vNOA85NHD! zP-~9&2c6iIH5@H-Y;-l85~nP&jGUEJHf`uKovs`|rVVRlj)CS7_lU)}fS{>A5RkJg z9oMq3MJOOQ;DWt6tiy(AqXLv#LyB5ReZ zV5)InVHmZBTis}PvDauc7w3@T_^%O~gG-(JXOw&hjg>=^YT_CDHPvT$>zG&s&QT{zw~W;JP+}E#~%7~CCM{%)HC+4o;O%4F}VseRdn|s|aW|=Z` z)bXUFrf`A+O%E%~r}ZSP1|&Xj3Tgjb(e%K~zffyM6&I?ASIPjQf}CEn(%HSRY!K@0 z(>8=TvTC}G0`z>i^%`T1h%se^I#o?=uzWay6EVzpM5OON(k1*CR2TrpG?=Psth0-U zeFqBE1r=U#UB&2#Zj)F-+(B>xIIkKN8B+(y_45d<$Vwf$SxPXo)0u#Lg`dKExBGbT zC1)?yX0tOnA>nf;oFq;bazpABw4QY4j6-FX(R=5G(YOoqOgpEtK|{P6zR{BQIB+yq_A(?6jelp0k7{CQc;Nn_6Uw zE)06~je(`M5V{z?de+bPpqkN8V zOnaq82Z!--E4~pRjJ+%Zmm<8@rD8m@Y``hNTX_FW*?YnJfb7OSbC`7_vZ1{BDPdHI z&~SyFs|qEXhKXDF6^p5arM+8u!yG)8S?T98DF%!)Om=sn%M z36&?qW`Y?I(w46O%V-fvf|n?Q9x2~!#jjsBzLznCZ_^O#hF4!jhbdVcJnf?#L)LtB z--VS^mo_WyMpJE^>u>BdHndnX6Snb}+o~j6I8PCQ7fFI}f*eD7s)Wp)x0eJPop-(! zDTt{a&oiTsmar-hY9x)3kByQ3*A#KUe57BTbb*D0MA#;ziUQ6lej4>H%{Ue!8-XSC? zPLJ;am1YeT0!!j|&1+7k&_eiZlhz1d5M+Lt&5I$OEWM7xqO@%HC3}ArlUPV#>FFt{ zZrW!~i-CiivIbW8uZNKvS=%6&tKh|wb}-EIw*aOK4KD_n?zeK4;J!GhN@uhI-U$JQ z+QS$)M1J*)xM}K~^(2+BvL3$)rXm{;i8ds}6ZG(~YY^LyFIm_g-wGFelO#|a%9`PQ zfwjt3>TSP9OSo~8P$VAX_|=atteQ%`KaIb1BEBg{-sX@IT$Ln%SEa+d@c8OWaCfLd zD!cHgvLi~-y5t;tnMXAq-K9|b8YvE<~oQi7BU zWYcvrdHuZ-i~u%?edhLGt}H3IERzlw=xfe!3NCDT?C_??YOsW35l#!-hu)-TP7sUw zh85DH+%2+5#zPYSt`eR(Q#Q`gI;!vFH0(9!g78lL1*}3Fk3Y}$)tE)UpWx(lTF9xy z4mwXOtgu-zm11tlOFZXNBE*>5FfD=ISveqEC(MsWuc-qeJ0^P!v&wFH$MGrxR( zxm$3`&0)}ux6xfenSnc=AWb7kd5GzPWz#!g93NDlNvFd{I1bCMdn ziML33?JrsJr6b6+2SC4no>Z72=s~Ld_|A^n;YA@*9_Fpn!NXTADae&j2he=uC^dxT z5K3emv)STU$7mr_6o7-QHO4?)edEj@ddQy!`2kQ=dKhq_H8-8bEO6X^hI<`#&k}ev z0huA^#5fwi57@{vc zAtUe<6n;^KY$O5JhWaFbm)0lMQ{+d7c3qbF!_c4nFW+gqbv9CTVv)x5@Ew;%=E7IIES~$Y9QGCRnf2MO#-;w)8Lt}5Frc=rmERA-7IuXSz zKEczjzi6N@!IT;l*J7!-Jlp!!wV}x3M0UqFC0A2v^)>=BeDY!XjJ0Xm-rzRZyG1~& zr1F<_lWAoKM0@1-Wh`Nc-hQQ{y@)|v?r=&W%83=f;*BSDWW+p_srH#0@)h^6ch+YU zOCb_(v_(F(z!&)j9swQ{j~aXDz?y;&i$t=TafC-rUOXVt@cO3ryJPsW>xAx)^D?$B zD&Yg^HjO5I{!gph=n@Jm@`1iY#sK?FJ%L68LPiF+)CjF-F$`OFe&;ErCt zkfpH_P_r};m}MB2TN2BYt*K&39H(y}u{^9FI6DL9d1io1?%LJcL?V85a&C-T0sAd! z-D>O&AZ=~7wpD)DB^gk**ZxO*MmUW)oBt5&>|-^=Kk@jXAGk23LGhL~ua2 zWqj{uicQnP8PkQru4+0YUU~`a#d;F*8{ygl^Je5!;V>BKfHgQ|96!~voN+cwZBAC) zJ1{ds#!$<56@H_oMPZ?AFXN9rvGC*gfag&i;z|66)rNG?bCjJdy3vqng=<~L8bleI zw}S@El{IZGys6qRr~dAFw>;_%eibU8Ym0~MV_}BsPkyR4@1_L_Y!9Baonc&}i>b-7 z>l^9Xh(y7xRcg-Mu<*a1m+EThPd=;1Z{vI+8U~%DXod5;n*o|ssINAH70QYkTvLKQ z=d-Ouv#gP6hiky*8pvWj_>tFwMr%g3=6Iq@mZTSl5vDSDxvsZ|UfVE7uN^qo!KEOq z|G+ky*vd>Pacs5TRF8o0*VJnyTW@!wbZaX6Bg>`q+xIo|BzTEb`{E-dOW=hEu`Ls% zAlpoU>}AHb#u7Exjl{1!()_Wav=dt=4~O;jWDF?P)N<@elg4V#_2>*C5loepN{j#e z(7Ixfn-fwkui&i_M#SkCgQ z4)73Iszp-rM1BlbY>(?uLq%~}9~{OAVqQwSwq-n*z$^dqaU#P$(l9=fzU(TSz3q6| zNFMp^PL-7HB=8BKu(sKjhFyb5YTMg^X{8mnR=2iiz$xP4) z7xniXzC)Z86rFz6GUNYrD(ikZ$?kSd_^~1+G$O*}0+9~qdwZ~dN0Wd9Vy+M|I;AT~ z(|x?!?zSwDt`LhltlL;*&I)FYnwM%qdPxbKy{8ekT`dp^o{gY_nqCD;jJIMo(V&va zst`GcVSiz%x8|G_km(TQPZHmYMuVkGxr6W5sHZ8P40T$qrzIae`OH^{h7ep^!}|5h z3$g=?0|bY+0HfkzF_PdVRknr8q+^R|#kg}+XX#AJ_8TeUPqKXR z_x)T2_}^Z_vl^eq?@YzaA(HVCZ!i%?Jv2%x0$VbC6VER{la-4)HwT6=4Z3I!!25_s z{|%!G5niN^hT;VK8uP+lM&#saot9N=a9(zxSes=zUuk+5Kr2yS3Z_5izPM(b&+9rq zzaUYKcz=093?Ozch^9$rG84CYa`Gb4&KLp$K2XEhK^W~pVvd@j`V=<}f@ zb*EUogC+;Npnwg^GtT|_|5!Vx_Q=|9jmEZZys>Sk#9{%&zf`G<3_FLH$?{-KdxgvsoQ$NAHAe5b||e7ITDPciqR04Ik3$a;;K; zP*KdgqnS}i&sW|aaVaT266-^#b>`;qD5?hV?^anY*XguN^*CXar+DCNl#?ED6V{LE z)nM&LdJ8Tf26j{QhFd?zpziw4HIPiubCw6Wh2F699#zAGAZjwzO0IT|rjl9FMK$Gx z@R#gHYDvuLONzS0j7%ovXN!WHx7n=K(?+EEc%C#8D{}6Z^Ct~k7Y3i}&W^gKUz6$k z?K6z9ujG8Lku9Z&Fnwinls9t~=X9xq^qvxwS|4kBHT{$BmpY}tsCU;I!st$IK$12? zQ!_|ZJ{#Y=>f3g<^Zj~S6ACk3vkFb83gB`}-;l{$V~uVj)nrHLoYWEC&f6u}?$^!l zT3HQ9?834`xN)RAOY{GF_lsU5y0<}~e=cN^PJvrng~+WAC2>gYwYDYNQ|JJOkiWy3 zJEZ(a&mnM2b3v7BGNXNl4lNVIJLbw3WKpTp9pJpy%F%~a;`7gx#XjSgm+@B7;H{1| z!aFQPUsIuJ(4c0-2QTV@xz*kTxWN};Zw4ebMGainRKveJGio~xiGMZ3^5o5s|M!g( zNSe7pTufD!WD_%+ys5ltZskgQZ%V5Ep;>qzs*zrw+?QNm`oEoI2z0o52`mAi zBrSk|bJ#l<^R;cFB<`xp%W44HHlhR$_<<6-%s*9_%6O$<} z8B02psYhfAjY(M0&N!vl<-iBOO3sGA&zoaF&x4G^Bl9lw{oa70nXF4ky)f)I#H9VN zPpZkBKM}#)Zg8Y>_Y~>B{hU%yFLNdT7OkpoX$FkfU=;w?A^SU1x-$-gscjdLCuz?y*btA?zfYi4guSGq`5BBS*7R6*+u>1g;B34zQ@5oar~$ zNrlWrkuu{8?#P?ILrmnG7LB{^Mv)Oprpk13*|?#BWEG_ZDP`rG2iTX7nLBkJa)hv( zL!*kTG_tTK4xh1uyDDix)xm1 zU(rbO8%$az_azjuX%gbV{eivB70+(64X8I-_CpkD-NxO}-?m(LzRF@$CHXrrR3~-4 zMj?(KgD|QtZG`P0)$T-vbf6vvDbB01LmKEtCS`On@cyo3lbZG`VX6=mIi+0i*|bgw z7*GDr((S60ID_TnNJ^UmS1u5BXsoBa9{QI|9hWtj_eTPlzK*eg;7lf#Jh9eRs1PG4 z<_9c$43fPrH!28yL$R~8C}Nh+Nlr^|6^Y(}7@jQ|Sf4 zuT0YI`OyaQM3_~#!mFoNk;%vsXHE}>UdKxYHtuSnHY!~nH{T@9(}AR7;q*le9D3Qa z*&{9OIjFBVkuD;df2A`M&B?*qTicd4D8Tl>*7+9yZFx?-&@;x_hW&EviE<#1i?sKS zZS8N)?EOW?)h~UipbM0EpbxxjOWzhz#C8;&$!@-I!F7Q_cyMBUXu=!i zw54c0GBEUka6%v!^d(A2VM0K&^;#Ndtf&7HqoiiDn=xyVUF{7CwAfjX3C`$!+@~;X z@-8E9P(J>l*4Aw;%pjH5sV(QW;!)bkzJ0%usvNk6{HPYlbM7IpJ24H{8nS%e6MBLboSXSs>Z zA{(3r#X2iW;@6zI2hNG{=$;*6erkdGgsuMq<}caa!7v_^dh^lpR|2q?cbdHr-_`OAh|+rpB1glBwFwo`?qC^J~OiY z*U1LKHiCZu-ybR!8yhoLXnX7uO&!9N_6YB*WpBxB?NUHtM@OAw96K(A z6ZMzwyeE?xF>EM^5#6lRHD_D}gFSO1OX{N9u(cDGAT5M=d0BNc34ozHXPTbEu`DhC|E*sXqVRFd94t6V@v&bM@prU3*djiiIJ~NS98Qq|mr`q8$dTpsf}j zJ7(!0imMd~1U59ME^*QfYCl%CsKHOvVs6&E*w@Kp)G_bUcc|!!EMYhh+Qt5fS`qtA zMZAaSBuSNG$xP(ISEdwE9d(Lb{c=_6LyUBBC9^?e7?nUq7)CSj_Y-ey|aj_po63JJErCbn|a+HYO)*JNVMU?aH|P zv&mdl4f8$qERIfu=Gez5zzp~`^b$Kc?1C+EDT*Qaw>``lxbBWNv{8$qE^Zsn7Ea!! z5*GF0lm#KfChhl!3=^(pSj+?KRnperFFqu}ktq6RY8M$5Xh=j}R9XyR8l=8VHp9Ge zSiuCcAawVtPcnh%3)?p>Eex!`uO%@#2#a)>{LGD26xyP!tV|Dyyav(s$~SE|+O(== zAp=w19*a3apC3hwyxsD`w09HGxxRYYu{u&tF?Ujh;QDiIK9BegL^q|J5;@}KS{(jk zfwT=u4pQ%jdZcO?7tzOtTC>YVCY4+8R9eNsjY*Rkgy81X z(u@eYqKKl2J8sR*q`8guv(KQ!Iv?CFUzzARjLUcudFDhEYA05Kh==X<8#~0BNQ&(! z9Ep%O9{n6v9E)1w5CJwZ_O=Bb?I53`$(ZsFEADTes@ya=X&PHNqtU&6IbE#F@$i;I zA0mqU`0zi54`!$a6?f44L``md6f}VdhlJ*aF^DvDocZb_ny29@iC>*4alRIgu5PSn z{+`gBhe^(#t$8I~?MfhP37G2iooFdy@HnL>D0LK>Se1hVuYX;~KfIK?T??^-$^eH1 zZsZ^N#Hg3^S4=^*7}A}85X#{Y$nN&1hPvowE0|(*HjCLaO-H8MpzuOO!N5P=V!oH6 zGNH8S?Wud&rCp252g;V%*&L@Y(&K+bCKtK#99hJkmHyd(4sT-o>d0|^z7HU7jIpE7 zZ*?OAN$5hgIA|w3^PyZry@1S-!=l&RH%{P!DGJ9kpUwNd3>q_A z$l#2^rN8Pg3qHK*ap#6aa+x@RA3 z{}BKE=39ex9&DeOYP3_=_9Jr2@aZ#zbVyg1a5FIXUCOnZnBnl=h0rWYa>@*;OGZ4nzxc=H<0Fw z_q3A9I7)(R6)!4BXNe1z!KU~Rn{JyY=3uHeS_Pu5)D7f{5F{07zqK3!^wSl5+{o&W zK=tspX8M=*r$b#fPr~u-J<~CJaiNnu-|(K@x|5#0<7MM+(2OCxe96CJzS9s|O2!qA zf8U*XF`o1R4M4H2a0G~l>EkzjH^objM;FV|<}WhS=V%z!l4EjZ;1_7o>eZUxHfm^Z zWdo%v!h_1mbxFCAW*cJH#y>5{eP12O*61UJi}@GKxk53WpdUi;EE3IdG;@ZM+^({) zTxbX894Qc@1a!&I0kFR4St!Z4EqJkA`(&)@oND$Lq_3@q)+=q}s)w*hh@JyX6D)b@ zm$*1K`>2c@!(>7)tfYD~`A?Yog|+emx4hOANk}iw6zw`U$Ns}zC8R%$YkmHO3#2Mu zi_J`UM@&bfX~@qjzdCMMk}PC}Dw;>hPLm`dqBb-ulNqu2ZM1Xv)w6V>} zCGrN`%-Ye%#F>u8f^LDb907ymL-l1z=L`~un(6PAKdgl1_4~S3X zpEoX~7H<2wzFAuLf*&|etHn~WZApTmtOfpOy+u+7M8@7nI$1b(u75KZn!5^RYsT#; zg_fU1AI_Y0Zxn)){suwzWKW=ZUCpA$OVD^NmW49~2D(DHNE*h-T z8EhN1fq!)4W)o97o$duaS{9{E@c+^ct(2iMYjzy~mV*t)-VB^SYoInIu=SR+=;RE7 zeXgZ!hqTs;hy=W2O^DlolA(}54EnFpuHn8A1q!V}OjoiEx9kzvy^xmH*&zhn$cKQ% z%7kH=Utq^Y(i1Ya9~2&132pO*OCa*wS6SUhgjWJdgC)7aC&|4*>*IGc> z(PT~xeshA60qMV=+P8LumT1co9QU(4kG2Z2_3_f94#PltQN<~CbGtmJC~|7f+~ZtM z6OF?PDVE2bagePrG^ji-TxXQCzRAkFmND5ty#Hpto6+odo@@i{B6U(yD?vt3#iXav z>b|G6-ZBQywPy7ubk@h7#6?FU4u%=dMl4Y}K?H=Rq#uMV;-9;II;#n*64hCdvZ2YJ z_M3Su3K|mxhQ)b>q1YPN4|sL{@Io0R2~K5oY7C)lPX=PVDETCdQo?p-sDwymF`cHn zRR9f+gc0Ye41@&uJd*zoIy&%=gRPpQZ;rFrEaHRMc=5Qo2&??W1L{P^2HG-dHzT5I zQx6l~JKV_UbkniURAb2yxdn1L!C8H{lqn0C&lQT|>_`?;jz#yxkl9CjOnlP0i+drB zI|sgboBumHtrRid3DNE95LTpV)Uo-Z(o0J z;9hH~RS-$PUt)arzU>giSQ2dq2yKbDsEWd;A)pR-60$e%fpf)iAR^7w4$=eFRq9(AHA zrYL<)hQMQA%*U>2m;GsHGO|`=hy>^XJkvenkJ}%pL_go(NX)J9)?L};r8NRZ(%>qi zA)lqt3@StvUkr7_r0AaDNv2v^>FHFX5=JBEMli zNTdZb5dS`-qoFW9Vov|AqZsZi{X<`Q;614z-JGx=DG1~B43aWL==(GD!+7ihipRVc z7*&|FDuM`oBZSV?9as#W$jryFZftd=+~Q`p*#myPNBF_%j^Z8*MQCJjK4olPFQs{O+=ymhOOP37@9_sGCIg_c}Sl+^MvGjB`;DfM*l|1 zELctg$F7F&@@#XD9@DFoMWFw>jH*{z`!}%LRse^81B%bIG{)uc6Oe~M>%m0%NG@N1 za-AIQ$Qh8foG`S3WTU_eTV(4vTtsn}Ep^}=>aPXQ@nf$!*t88wdPpqKL)i3T(%rFJ z7P)2^jf_R=HIrCPU(+JYP@rzCnB9N>%|_lbt=Hu_JjH0y|1~b+*(BgF6|PIGw;juC z%i4T^qWaM043>cPZ>QFLNjN*y#KN!@I(snRmL^vmb~YMPPc=mDs!f$UVr-}rp8J47 zw}bf-n7!GA`9wol1yRO>rMsM#(Xe%;AjR_0ySEbFmOm7SV%5D*MKEa=HbQ+?`7mdd zer9c`0}JmXMWx=S_A^{$qzfGJtcKTD2s`2?qFRM{&hR8;sSKzbG-XSTqF8ywY;QoG z>h1tV?!hy40s=n1^*{~Bb>6KDW6JlkilTf`%7v~uBTRmf56_vQTs9v^fAl1bIqaKE zeIseHc3d#1s3sJlD&7I*x=*G;6*&}uX+90-7eJOmjyqLd6tT4Ml|qjCR)VDp#uT^d z4Oyu`KJgA(GwVfoRo2N{_VdzMVsOpW0DCU$3`4z18wRz7l)xe5vbv_;dN}$M(p!P) zuwj-ZCJi<^(^v`KZ5@YV)XVtrK7usPHqi|iHQ9-_`H*0|rjx`5i|vaxv6hZV-J+Eo zyO%tDRyAD209)OiPF<6b5;#a7c9m}6N&M>)*_iZ$=g4Z-m@JY?P|oe53|+sXV28Gx zD2Vr8rkETFUu9oC{53cgjZ&)4CX?H`9wsaAGf>a_nsgM^g}|(%jyCe0hhw|rNqu}& zm=?Pjc*sA$Y-RoMr~kpR{OS}FF#Lcbi&~Qnvm+D(Vg+bXZ9HJS$Wmgyl!&}{WhT6k z5x7{u9jqTgg$74R>i;r{dZ7ka2$2h(WW`g((?#rncc)K@%3r7){Yj)#Peoww=NFZ^ z*8>-WX#7LpW7&A1k?ue_K7~LOh7W1qVD@8|w8|{63q#bi0QB&%R4(e2#YV?Oh2t^` z*_FYPh1D>$4?6LUW`SlPzL2{KWnU7z+!eqtu385Kc2`1YK~kN$;aPSiR@KmC4}>^_ z;R=&EWw4BM{;@XT^tw0ILt7!2c)y^X74N8R7~GI8HL#}?+QEXcKA#7D2^K*Y=M*k2 zRcEVG$OpRey!1u`oD|DuJMeBU2;YG+R&3CAMA*TJvc|a$qLJa>1kl-r3gNR3BUEpk z=HlH|q;$HG>hhse9Qbo1wWj#DDXL$;sXG{yv8~eSP{LPb zPE9=Rsk1EB;-y-C(VmMcP^IEl(--){0~E1}O+E&a^oz6N@)Ue(3$OkzQ-)s)W5#o0 z6*3M+425X!NJ!5UP@2HOt_NeNY(r)9M&p2-09-TXC#t#W=E4T`5;0OVXHJ`hbihqm ztkqemb4O=rj}HU&qA%kz<}%``mFLNz0fB->vqHO|=2rdA?|eICRWwYSP}#!Erp|%C zoXBq(if7@Q@GF-@dVlG*MwzMUT-L%9EUShN%(=Zwba!_kws4#C=n2-&YROWsAG&|A zmUJt<^F)Ahg3hfF_(uCNDbso)x2j;riGd@G#$lvO5`g4C3m~A2(mz?UXCeFtkXkU* z87%#i9MqQAKr}5IYN}sx$v)cn;x5AIaS-5cMoFcd>KC&l+$=4bm^5i9MzccGnrHXR zVn!5y#S{mIOpJY8+*#t91pSJDf2@$lhV4+QD~q8a5=R|g;ObkT=F1o^Qa$$)Hdz3H zu}(i&Ld44-GhcLL4GItXy>Ce$dF|+_)6S-s*xi-Fl(!;PQ+C|#Qq+^k`qnWra z*Op^PcZQY|7{%hO<#xtK;5!euq6_H?3-Rg`o}L$M`+^Kej4uxToyG)THZ{>eIkjwsHC<~dHlqWF@ziiFJ@bhUvOF+z&FnTU5Ld&1TaJ6+94VUCNYtu)V zdSf-6XcdpK;^;ThS5e%K82ixZ45bF4d8$?h~vW zrspuh0+BqnrVXeE+?*1j@z%bvjp5nkaE*=p$RI{UP&q25Y()}(ZW&hG)@a&in!B@= zMxJbqmNXXEfrJ(R^m;@hAmy3TyuPH!*T0gC^}eRLJ_K!j;-Eb}v@$O=P<}KdQkR$R)_!}d3GHl+QXuRN=Wtz_ToCm4 zYXvs~JBJQIvlbkizZdUstqu#uB-BGe+@aX|6_GQB4HjcE%&)c02qow$In7a$#Aic* zTxuUi_WRM0$Hpw-r}Ab4Xc?vvq&uixd$x#qM`Pzy*|~8Q18WwyxadF72HxVN;0;^P zGW|EJ0$Z`NL?&zBrm<}yUZd#C_K?h#Br(d@$f|5Qv=Nf{#x}9L&b(Lel)H2 zFol)SLCOQNuc!-t2s876^``O3Z4gPpY)f%o8{uD+yJ)qurRt6yeQ^_2mG$5!P`*Fh zSqNlRq8a8E*K5@_#Ikz6homIE<74E}KNuB3<{acT**O|?$b&|Y+*~h>pG(CZd3l9e zDWG}c&N0wQwi}=}24|8kS*@4z1Cw_`kVXLb4zDjVY~GvW*7UnsgwLJLC1CFN8g(pm zDfBrDx!sBWuFbfW3B42N8XbjXb9Csq_Xz5o}IXYn+9h@eBm07Pa>7iw<7XC zX!U(7^AI|ZL^Tn%4m-oQjI+E33%nZ$$JlRafG4(GyXoWy~Hy$Nhet zF86Egn6KP~*Caioh>%~BK3S;z{7tD_n|jx1RTw|#u$`C zMybA)grok;VF>5CTjZ03Qltsa!ib*iT{&6-OwsP~y9gAGKuXL^WYmgE-|3yxVYdfv z($YL0kE5DtaHvX|W^BJn+GM<(02;QY2kOXZ)39Rp#B`a)3s6P{?tTmuu?P{~v#h}V zXD*aDmk*rrry9GxB!L}lyVBM8O$f(e2m*vRhfKeK#x$MG)@$Q^;a?2>Bc7({J+0&t zMc~RzQTQVzT7R!r)_GjcpiHIdV`xC$a2yYhajQA~-XGt>du(UT?eF8lxvxfcfGh9S zrG9lnM7i7?1yi*p|K+j0P^m30660b-=>X5dy&Y+|TCGhGHJIj3OEBx^$xo~nA@*91d zg-UaB`E!dzs$)DnZ3%geFoYvu(yhoAvc)T{p=Q>j7K$#0K*4_v3HkM@7(F%73A^GZ z(ZcooMe?9vNm3~%SkQ%DRs3_KaMCR~avrr_aQPmRNO1=qhjnT{gqv;S?SBtz2Y##; zktaY!t*_usD6zm8s8XpVmSQHe5vxM0e0-@JJJ5R;Tms50gu|M(^UO8{sAKti?u=3e zg6)&Q0gP)`{L9&ZLc0Q+#%z;% z<&Xn8t?=EsaRVu*`9CcWvl@w7wJj6t;Hov+n)jO;(Nlt(CrjAFF+Lyr&tEzD_|4`a@nVywqsC@a@zaBa*VE zd9eXx0DE9gNPMjv6I1d= zwqAk;9+3c7^L+EsP?P-W+PczX^hln_q}=q3OWM4Z>a+sBXGJNL%=6_yMo!(RO@u*f zErQtpRbq==hCm^Y)b@7d50VVpDcG?tGC@*&?wSN&R@pZW^wKHbZd3QF5{)%pX-j6A8`WA8=`2-nGlZ*wh?`~PBFbgu!Ed{%xP>sHtmKHmJCLh)PY z=!M3QhJUG6jGKj2B%+sumu#os%(_ZR)SI*G4!T1esKDzGJQkk!fOPd98766v_7sWY zd2p$30-ruIZl5JkJ2bq4rFVb~gN2ZSF`I}7iSYPfN;0y@qw;kF$g*rnVU&^N=v@GH z;n^$`It|?1ZE?QbgcLI+`uKB4(A5C7mSglS{=tB_boIpvpFJvqL}q|RYP(P78_)AkB5+4@pT^)-G`8fup1KAxf(DwU6+I{il)Z<e+iw4lXRc1`AmW)hE}6Xm#(kF^E!fUfDl+( z8;b|<4u3)ho6-Yb+RK3E2DB)po>J!Mj2g0AI$VE=)N0KG1AHx`c=T%Ff9#-sX=Yj{ zgJ9_QfsCrWuW2C8Tt1%uG&bk+mwNCfyS0v;+mdQ4&_Jx7BQOD@20X z!@dJ@)20PKRWUVpupTl8H@0oiOv;$$5NaCpb*iCjuLBh$rX_!RFOGsXTwt6V!7QW^ z6MGfSsOHdh59fkZ z0@^Y~MwuIRdx)Be)-Bk0E*M%R)&u&l`Qs@$(Hpq+bU9Z3^o@8GR-vsLhQ!j(d1;eN zCvuWhVCGfx8sVva08DM}awfpq@V=s$?&CM_6vBgc$&NXu8`i;hM10)_rSS%G#yRDu zI??tQ zG!vVVzx2HYbt7Z3-FJEX!(V3XOOf(ytd}73i$Vb%FZ027SH?OthSyaHqhISouDpbf zOb}KoNyZM-DGClw`sB(>oQYaQUMOWo|Pvkaa_niT>z%GnKbHC^Z8_>OLPi8`zJP?036n+~!NdB=m zE!Yw6-5m${5DM*8liKQseR6#Kle)&Q!TkF|veiD6>9|IU{A_4{WAMjVXk68Z+W4uj zBb)x&HsZWTJIQ@%U=fh&T|2kgaK`|C$d01&Tc<5J;-9``m=169H}wLbZUU-2wA*AX z-eT8r2vL#6a)%@U%}XM5*tmc~ZS6vsw>mN2i)ML2P^Bi@ku393zF#q~nascmVFV?y zE;#L(9+A83w{KnOq*NCtr^(ZJgtVmF=1QV@m;x(VjVC%-e}FKR{)CzO1e10+sHp(% z^xHay00ON3GL}tavt@!+tvNiY6UTV8^;7FU!db$~#9)>Y>SV**d49NT(PF$lzVp2=pR+x?2aWnmFHE9DGP-(GLU`dhMh%N8eh5DDbI-z>8KfKSj zd`>YKapR>Tz2D^+tmS_b)vg9s2*4XKBVb2IP^Y}FTrY5;YXi@*s{YHPad{QO-nLSn zpS*Ngo9|0JeBP@djmEzf*;mU$GbAew?s+F^;efG)Vzn_W+m$C&ShG{V&x5}|YYfnt zE4e~$%od2|g;=VB6*T5%)*EqAO86fVxQE-v>|X~OQ9sFg^$Ws9%`ly_R&^4^L-|G{ zCMG+ypp|w%eK9*kQpT>WG9lr-;yqP^Y->~>{m_4b`PJJBqKHddkF6Q(C+H)>LmY| zX#2Q?)X1rd8IdSDq^6ok4cdV_WNgr(&UHLwcB5WxQ6% z09-8^76}=GQt_aOES|_ZqSA z=-Fl|6wMq322VC)z*}R~nP$h*g^9jPqoUHPvAl3cQ;2YM5s6L@xDtZeqq)iKIDTPZ zS;_tmb3izR>pLE#Tev99ZKo9b(J+2qD>;^@`NpYz7UNxWM(RlWGzk6y@_O@5oGwi* z0{Ac3N@wnW*j3-~dE;YzoO~80A8{>Qz)^nQw}cd&z7h~lSb)y=F*jYjzai}))$f<; zs((rT>YY1iJ-uHxBpmZj(PAC2Z+7Bclg0lh55VH-$Z}r+edHg+I@%p4S<3I6?<`E! zIzQcGo|h}Bu5Y^9N#20B>i-JxIRn!*bECe^flj#fM<;^<4<46oq7}4hwXQL%?x@q& zZP#pXJF2(QTXT}=u4{g+xpikjGtMp^Dm3%#rNf7_95WA!DaU4>xc5wV@N#D0%d`V{XVjqldrQc>XKvl z#BsMZx7`a$Z3gQJVEbz?j4(!)IcT&_47^&&c(=#PjXNhZN~>qjxaLmYxzp`S0$J}C z+3y=zWyL6_Eq@BWSwFL;;{?LHD_qQUDmIOq=}%`?;SN!K-PAut4!vg7t8tPP+8tpN z84x_KUWDWzJ`JxYrG{tmbSu*T^Vl#NYNWNE~pfpYHc$r+jlg1!-ZRrM-q`SKc z5AS;DQfEgi0qd@MjbypUcrx~QXTnIjk_af**7mml%cd?DpalBzP`BNUvO)}0z~AAu zKk%p$Ef&JQvIaUVdQ|A;xh_8#@Gif6U4&d0-99UAb2caA7Gn#31 zcnftnphmJnlr99uUvg6#?5~rgo~g_5#zEK}cGmlHDJen%)Mprk>FWh_GdlWjV)WMN zJd@r;^~>JTRzoAw9L=S^_}_iO{a%KaAn^I7NNe9TW%6gVFB!aB@q@3%xC{r2GMze; zO1*btY!dK&afJ_)J8eBab-Ua2X1<n zWG>-u=L>6{_l#_S_{EOlW=nEeEV`oP*WdIUwZW$Fd!Ypx%{G(-cZvt}KMB_KqPFze zd;uRp+AC!kBSK8t-7ePEeCg`%*ao4me~Nw3C~2BRxgKZvHjFEx$fIAg4bc|(69%Jf zGcxOvl*!H6?uST+zsvBz64b@g=d~f{2H5JLiZA12*il01gB??y!$>rR7W2iCQ^^nB z@RkKp=AR98;0B6mWMNy}}YZHf~$N!pYxXED8h56tJOc8fQ{tqImjSVKyTZStLn zoW{{M4?>vJZo9~Ez55S*LK6S=SNS7C{Q6M-yR~x>fL2hQtxTmcNRkF8;Yb-|BcwMj zlUV+=oYE9psCQWso$EVUeNom+ZDoMCYT=V~PDu+}k#`JF+{@WHj=G^*rJzT`ud);b})=P$PQ_R^{{ zHJZd38;+$Yz{^S!ZG5^P)Ma1sY#sP#!J;mXdfM&$ZsBY|m&%0j2jo$81F zwTkUTgupE`@$p7m8I&lj#i~od zwzU{EvHOty5$okpr2-oCBeJOyl{p~3E&-W7hBV*Wx8SY(8x@j&k|5+IZS>cGz!E(z z5Jz|p4F=9gT=KtolLJpqH?r8H7MTa;dM_gX<0Pqn{iAzd4C=n; zA+MkZpu5a3luxKAz5s$f-P;h#*6@^rf*4~Mx@h2Hd%gc_zuV^x zDlI}Ff3(EBsmc~Us@$TwwfY2r6>rZsdJ2 zD3bGjY)qyl12+?`4vi!(78!}{8fML>sHoQt#IGb9f*bq;IMt+DPY_jH)l|UmM2^ix6Mbm?~PVG z*U3O7a!)*|UDp?Cf#TfA`{w1Teuxz7ZCyFV1SA;-z~@35py4ND_B$BIWG(Ucf1e70 z)CBfT8%gjvvfcrA&|lrx##oI+U^>AQQ54S_$;^cS_LDUL161bi-}Er|i!xF+&J0Uu zzqk*rB=pLV9unA0C7~#$VOC|q-*gJlAiJQkJ(eniOm2LlUqynvs$q!2ecSTbwTl1N zVNDnbo6?G0p!@h&r?rp>3Zsti1dEysaB65s6a^RAGv+Rk1-~9O&~5WTWK1b); zym}xXYzWUAp7}pht1&^?}Eh{gwyQ`jqM6y1kra%OfD# zm%aBxiMx$4(5v9I3b3mof7r_Ea!!oBZetEz{-!Ghpl6Tg2>QMM9Oj)Wm(e~eMk{|X zFpl~M`ETl5eeNO|dm%`2o&B$M7ART$*Xuk0iJdF5*H-S{aj+?PcGOz~vOS+J+fRBi zJ>aoRnL@4Diz2^YRi#qlk6e+MQ6i!nnza2w<1+3ENWjV#i+s(MvBWx;ws45^kC(kp*A()lhUK#B^rR zqvV8U#zbm|I*I!GDZ+&Y-Ap^=$cjpg6;LrA>-If=tIZZGrXdc+AkA*p-R6@9ZpP@)mt*H=4`DLaXGZbg$#dk5P zS98M>jdZU$!H+Ab<ZdTg)LM>ni?BKA0e*vCyBuW)N0&Y{n4~NAlMBs2HQVNu3ojRdpGGi2qDhtwyT6 zFLCHunuEp}&K$)IqGI&l6&b>HO8g`*YWLDv{iBwO3u$2EDW-opTB^;K?mocX^*$LygK=O0Y)L zmVTVpH1xhxlpbIAzxwNP?1f9Z@LZnW+}46W2&UePWm?4DgrkgY<<1wYqDIOvbcW`V zL+gEMkSz9beqxhs3eX2{<&E!0kW=!Krz-}3=tk4Bp;G(HYOU!(M5JAo!K)UagXaA6 z>aqCv08PIrFyDME!BiU~;MNm_Sc>pRsOWV9(M)lyMs|+-O7*fjnM{jG9Q8VOk%J!Z zrj~fJI*x4;QPy~Ga(HVwYeoAL_=_7|yxO8zsObA%$G-D~RW-6EjY>L0_BY+EMaUs2 zm3k=#4>A|U!7O^_w1LSTH}+En)XIt5dn-PUrUTbI2SUf%{Hkw{wf-36KEi6L!Xv!r zKxZg_Qp$S9U+F@)NLM~HT^G2aLP%z$C|eL|mSoLAoEYPZrVjoHr=RpTUa8l+?XFbQ z!Hq6t*k!97(C|_QR5NRy2lpUcgwmg}CjAD;blBM0=Me5{k>@vlx`++6CEh1VlNon)DDEsWOKO@ZN1F5)GE@&|NCQW8laicbW_XEk_zd2#{n9l^I^a=tu zvmqP=!Juq5biH82ngdK-Zp})!99R8s{=mM%uO`)uJi*r2tybp<3-55L`(~d(GzDn)B^jq?6g!`)TTnLK|4oQ5 zlEJ>1z=+!m?4lUq+!!*>70*g$9T61caQ%S~(gBTU@OK`;)bK3k1c`RLnyin=q{Ybz|LqY%U;kG$aJ}8Ri3ihvbwD7hgW)xdm-V%& zATP7VKh_6h+7M&Bhv-m-tPH*K%wqnO;M802$Ur23E787{xHJv%wK3MeZ>Z-Jbu+K13dlq{`7pmUnW@irHB{L zfCZH=?ux$`i%I;oRw&=`iRuI4aX8zR7#7TZ5RlK__dNQrE&P;)visID%n<3W(z?fq zuwhcOzy3hh?e%>#c6YN7R)uW|Z~mXNyYmXVqg)8cr=Q_m^snLFx{`-Jqn=>>@mhI# zS~KWFb12P|_7H32Vk4GmQH2`bQv`Rh`C`qH+=g7GJI~NpkGQ+iJw2q4w4w0(H(-C` zwk%{d5Ddxp`v9J&peO%BOsMW|Url=@3G_y4>?gDZ8scal4S|2cO9t(CZLdF3oEz1O zcFJXzE z_dyDf?5UFr0P4Y~)<=6I^7=c}r!gRcnw#&Oh`VhKB&;dt;jkJD4TQgHEL|`knvyaV z4el*<#OkTRevG-@(d@HLoBX*hI|p)8{PLpu;EN4{OZ`}ukbD*1bRVn+fBss5fWVah z5*Ja$ZzeWzzTO4p-USrhXVnTM_=qtrs5`rO^Q7?o>sesv_nT z_HkvV6uHWQ!v`IH;k$R_{(yzz6t*(?-!dm`Rp=?jnR1r$Y~F}B?UJtBf4AE%bAD0q zCYynpFU(HFIiT?Q{_g-O+(KxdI>hoOB3@z&x~j_}tWJ58AWlZ%-v6qOsHE{JwSm70 z;6&!Spz|L6ma1xFx3!u61=FoIp_nKK3Zsp{ZT;*2n&5Gv%S!eg(`Cb2f0n{1x+8uN zf<6hAX$Q1D5M_g2M7r{p9b5%A;mM|oklh|Dk~wQE8!{*3P3oV6F!)4ji3etWpjXV< z@i~|p!*iHzR%_n?cyb;IylP29Ms;g|`<63(YroVOm!(p;d*)bg4rp>Q`3uQvc-b(C zE8%#mXVE`9p={$cYx@5eKL^10d+iM{@f(^{kn#sSOw5@xXA$b>`|QA00YA4~_u2sS zl};k2lsjJ=4s1zr1H$}Hl!Tkf%bF53(pLCSsrQly_i zpNl|3T`A3{z7HrZ$7@f09b$cqYXW^chOt+%uCYG*XMOcJq0s#IQ0|Rm%)-pg32p7W z`J;`+{`AEi&@zx^0rx&4Rudc7KU}AV4lLOFpau`8|EJRSD43oTscCRwuGbdV4Uu^% z(F(ZNi?kPQxpTOMbSZs$kM+w6^6n&N5(=36A_({->Ka4zY-%ad@w&#f-PAd3t6l2hk>>A200RAh0p)e43spa^a z=w4V@*q2uY#ZA}e?lKp$vEjU&N_2z7d3ley_y8@zd~W2V)*~Hsr%bW!GyY-3YH)H9 zbFqYH+sv=32#g%hX#OkRlxlm4GCWg{PkKTx+Z`+Yevf?R#65CZ8_5GWU6|aUBlEwI z=)gUk)_u=VDhZnb5Z-=}&dGLAwIJLcIaga~K|)75ng@}kxd%y4*m=8Mm3f;0=FdX#C_cc6I{_kMyNHeapJfo9GOsF#?Gun#wOCW;K}F-4URlM# za+upDka#;|+r|GnnE}tcG2XDfPkJo>CAI=mao6LZrAU`G?pkwCBDKB433c>Qha|OV zA3MQwwVSQL5^wf^V`>w= z$0+`Ziz2y8Als3^mU3?;{qPv763G&oOiP!bI zYPWBPDAn{K*93l%(8wEt?=Nm+5Pu>%*q#o=CjhNU2dUKCPJ{!{*`AcGCz2g>A|R$2 z(u6uDz6MpI6hx|{9bF2!grC4pX-FwAY4={Jk#03xziTvF?NPg8}UqUWRndsEA5?VcZeUqVryiRn! zu(S+>TM3~BB1$dP?AmuycY&N`^tYC}BvShp#Qzg5qIe#`Y{ z?#Vcsk2j@Q+Dku&*^T7UkD9xQtLTgFs?>-wsjrUlhzGlPb6-!QODLz5*0*>cuGO+Y z$FMQwQYA$0iP$y5j=Wm|MHL%EH4v@@BeJ$Mb{>ULtL6Y6dH&`Rfg6Dp;HvOw&Ty=& z4hFlEjgqxUS6@pjrEN6}otH>xK9c=+6weBxkeZtIf1ttazg-0Bl{cb+C2xH3x?4gWs zu#9D!=jT@1ARH_oU}_HPiS4#EFA;{8KZwBx=fd{e(+8WiE<}1B`7dRB=YP{JuTD_VlTk$(5e>G)uolv;-$r~ z@^=J}M@o~CP{9p>^DZZN4OqDgPUy2}Ggv)iJYlEsuR(>g=n0dPnE?Zf1cUiZfuIFB S#c@ER89ZJ6T-G@yGywpJ+%bj# literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-mdpi/src_assets_images_closeicon.png b/android/app/src/main/res/drawable-mdpi/src_assets_images_closeicon.png new file mode 100644 index 0000000000000000000000000000000000000000..aa98b8105ae05e98700b42c4b4f2a8b2b481dc0e GIT binary patch literal 413 zcmV;O0b>4%P)Px$S4l)cR7ef&Q!!4%KoFcWmS2EG5ebls@P`NmenCM)MU7B?0R&z^hj>Q<;s+FI z0z#rd$_s+wvO6ReoY%e-bjeAM;_>W^cXte|&uUJl}mbiE1_R+xe(H^rE(3$cw59r$Z+7!@KF{8e;N&xJ2x4y z6W~RlOs*Ei6YRSlCd#WjQ3EaHqIH?N69RZfg2R}&Qq3Jur211-p*Rxl;LnIWUMcCY z`!6F3maI|i(4b&Ems)b|i0Yyki*PtJb40S#omdou?#9wx*ZLOh4m|G5oNE+~oD<9V zF^+_rqrhGG_Ihs{Bsh_0LwVYmbD9W87XE+@oT}jZtl$J@%*l*NZhQYP00000NkvXX Hu0mjfwdu1Z literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-mdpi/src_assets_images_disclosure.png b/android/app/src/main/res/drawable-mdpi/src_assets_images_disclosure.png index 3232ad55cec451633edd6028df2802dd6719d8eb..35ba5aa55227bbcd19c8f4c7c2ad46e11b057769 100644 GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJz0U{m4&*%Xu#^NA%Cx&(BWL^R};hrvzArg|g z=P&X$DDbdcSl!*_ZNb8)xZ2|8%|)J1m&mu=IlWY~VnL!&ce=K=-&TeL0V47<5}FqL zEOImBxp>U&)mQeU&9Tz?5=V1t4zY0l*0NvorQgQ9{gW);w*!7jKr0wLUHx3vIVCg! E0K3~X)&Kwi literal 2895 zcmai02{=^i8$T%3kfp^g)5vx$GYm0f%uS3eGmN#7(j81pV-_=GOD-{plDgUA7G=4r z5lL#2WXnH={EBY7Bb8NvK)aF-Y-oic@HpK!$z~RAGbS4RGVqk0lgP=iR zFc`)3JAibtwpoD-pDZ8&Y&HW4g@%TP8ic|P=uCg8Ap(Jb!i=CsM*6}CeO5S)O$^hg zvD813eB!Ytv3!|i2AfQ$ftPrRKJ;L=1q8Ar^!ZrHlghy1K1h8|fggd`hcEr_})MH@KaIapNp>Wet~`^`f<(fr!K+&jrJ?(x3owrCW*+V zGu`O)K(ysj(}D2;bT*w8KxcrhT(^U@aYSD-ZD~Shx%O`WUvVw%3#1d1EcBYV)EQ_) z6!g2fm3S0%scpV$qmMnhJS%KcG)SoQso~L}hlN4m03beMXKm>guzEbp3%hxjLZkeP zw%iN0&t3OtO+7N!KgTjFH*tvs^Tp~Pm#39GuL4=pEFrk|%+Acm4r`P1Pcl!LYjZA< zt+&_@Sm|yLaHmnr$;IR+pvcm_Am(ntqHBU)0_)w_*y_WKKL#F7w9GWq7hgxhD~}~j z=cAnOR*PzAXuQwL%9>u7DX-oY-6;d~%F4-w%=OnLG~G*9o*92uU5&Y1-P?7z*2CSs zL8Oe*dn*`3oRg52b`qb`sXTvpPWnyA`GNussi8_yF|o9`xYZh9@D5@`U?6wy4Zr>U z?QZTp-saNc;^GqE(lPr>5=Sl?T{$btC=)z6cs--0;`;S*6-7l}ea*#u|E;j7yu3Ud zMdbFTYng(5(X$>{o>q~7P(M|O%XX2iOCF(wRLB#vv$Hp9X=)L}2M^sIa^F z5n2cY?;kI<%dM+BySgT;q85MGU*nG*(TBu0Ha3nju8|LoKYZimR#8#$?r$EC=ZJ)G zu(BXu)fO{G-;Uzr#evTn^z5CS7B#iC1LTttH?ht-dt>t*GOnhLS7Pr8Jv#gP_3LN< zO>~Ys#Xe(u>!7EM#X?3+8?aS2;pDK-`yerI5r_Z8$H%L-x3_0B1M2bDWb4x25Zyg_ z({-$a2S;WIiWRP&p26KYmqF>Zps{$K$C0*_-J}Mfpr8Pnz~Qi2jMnkpZ(g~>oz;rF zd1ua?8N4I7|L4plF5_fQPSk43RESidHStOR3??Wj=-d>!u#;0TP+ME8o7t9eoU>}2 zEU&2O>EY()r$p#V|GT?8+!T%eFxuDGC+Qit?qM0RE}m0VRMbB)F`@S1SM|k`{iL`D zF)=ZhPoF*wohD4ajx8nK_FeF(p!M!K^y)dLuEh2h5dn)X!QpVcIY8Y@p*q`??jbHN zj-DJJ*FSmPKT3z7q=IA*-y0j_O6YQ)-jVc*m)U8@A0F1`kB*vSql_>tejBsn@#A4m zlPLfmjP3P5a9|cF8SB0_#9*`8iJfL6l(r_&Kx%5LHz!u2(Z#Tav3C7>cL)TM`g*7} zC%QJS_OI$EFg?|wmoMLK4SI@qP*TWlhD^mt$fHLmC!@O5v`eyM3dBSQ5D@X^@H0nq zYejEXRaGh2&1_j9Z@w7T&UEwk-jbYODb@E|%&`7#%Wd2kd3VyxMDL`z$_dE+iu4+0 zbW&2%&{c6bf9G*PT3UMJ?9q1qe1~!=ABHz?ZfW_juC>-6xmZ}%Wb;rH!Z zFy7*4aDGlQ<*l4_Us7gfW(qYyLj|3)J=dP-RVb6`L?JXT+625WqG$ z`Fm;SJ**0oFD{Bb_)}d=%fCMREU5`%Lpgqy%>msbL#ZP>bYm_oH#nB>{W5U&Y zH!r>|w*Txp*G1*Be~xrrSQj&_a|^8&j;z(is=FCVf}(DSjHHTa#Fm%Y7HVo|NfKHk z9!1RSB9WzWjw2>A3;8~B=IuJz9K}cbr`82$%i={x)7L~%0%~*{du%p0;65BrQFcUG z;3NwCDEmq?1#;Mhte6oOx%(YS2}w8n++`LFH{O`?9yH1;nkrDdHd{&1?R2ioRd^wH zZW@QH0!ZUyR!ck6=WoK)+ zRKUwHj6!N!+S!I3@s=WRn3>sdnNq4L59>Mhc8D<%>HaTvF$cI`B)_0xYGdBaMSW}ny74EpRrVuv<$7jsH2N6 z0(ONq=ska{t8hot_xPPEAQ@+GU#6P6*P#>zOnJJ|ON;aNCS+Yj3OqYWih5NetL}*4 zZ;&=2Rg0qwR6|POdnu8#H^m<{{CZ4qlh(s8C~&Y4{SbB6TP4RiC!)g}jz2NEIbA;2 zdqc;Px&G)Y83R7ef2RXuA|K@>f+W`h>dw00{Z3SvG{1PeF6z%<h+2s4Hrh$FvvcjV z(oLbDtrmiyTL?D!QUpcC7!li5iHIK=&%N&>@9mq}_g<2L*}3n|x#!NE^X^-q#IOsP zlvyGKrYM-igRodoyuqj$MW;w?r3gqdYiMw-=?rXj=lv9_fTyqV^dD1X276e=a?0m; zC{}^RolLC7?TpXi$W0K6dfX9PFCuu)D++~`s~L185Z5walb(Y2u3!yUNa7=x1T_R0 zv7N(P0Z%^?zn0F>gfpmOG2w|#e+3rJ7?o#OT=zko33&Rm3~&kS;}O9nCNnZuR6y7a zN$BWMaOsUs5|FJRU)W@P(jIgPo~nSSuT$8k$*9t{!33*#7R9A2C?jmd(7kpE9w)GK z`Y{{s#&6(xB;?Xiy`oJB>&qVt9#jxqO|Opi5&8V`-=TeEwnSK88WG&itKwyv%17t& zw<~OpN$#{wm1VgOG0AJVx4~0uOh1)~~vDg-W z=xd@6S9x_+&IX?wB-s^Vbq$g?Nz}v+{KG0Phqx-&wpKzT?qm{8^TgjtROP(LkPqCS z#26D*SW)^#XsJ*3fD`zM_ZlOy!XaGYh%1n1Rv{aA!@Xd!n4@vQjAM>HBZ&W09N^3qMHu@U{rJTOG}s^coU3IYZO4!~NM#(uS%Kg*ph~eV{yO3Um+TSa zBNvc2foz%~yy7w=wr9+Q7|*uImNTs7A?ER%$fGH!#S1p!F=Nd8<}_9v;gq!`D{^%rETeQh0*@1Kda97nh~q Q6aWAK07*qoM6N<$f-jJnHNo9`Izk{NN zOmCf-ZPx(PDw;TR9FeEm|KWdWfaH%-B5Dc)pQ@K2q7aMh zr7|Ua>Owbr>!BWspvWjgd`arb!mKfEz$gr{u}r#}&6xA`Ti-c*`<-+4KKp_T_F3y& z-+!&W*7~mdI8`A3jTY#*?!x3Yd5y^F9OSvk|03^$?}P7ApSHLw;T6c0!TPUs121_I z?6qa^0ps;OLA|GGJ@2m3uSIq}1EB)vQi11ia&M8N+F%YdqPh!5sxQ2l30oS7S=No zT_*Qf_GyK?imJCLeIX^g0Nq}m)055~{C#(|?zVnErt4rwljTY<4--gRwwZps{v?=7 z2y5yRew@z4?&$;;0wJr5P~4L!3-~0} z_%>j?9%^CDPnd*M<|uORGHu}#cE8`PMb-#`5ZU@vP9XU_ofAN2N3i}#E+;w$=f7rE z8vcNWn4q?8*P#K7#&|wuUidl=uv+Q&>a>QA=nk9=)pFuEW0q(sL$w_HpKAJ;rAgh| z;4HYkqJshNnUY2k1E z@blreYMSJ9Mk3bXHZ&7;49R|iB;u8F3_pL@^5t}>ULZCEGqjkO?vGx4kb~Z;^lqdp zD^A!P`JpU2#W_9dF73|VEs#}ZLy9Xej9W!MDvxg>*}!Z!&7^P+c{c7U zmPvK;8ua6u!xnuWKF&@ZIQ^2!#ljTBysZ(+X}9e<Iy!hr5_)9$q`V_(|Uu2K-?8fSf@A3*|nj5j9THQ)oPbJM7=gA^Q~DC zvmOXl`6F_iE3%be7&`m(3fvC6-+0!V&hOMrlA3FBPioG~ClgE>h`U?|aA5b);+=L{ zkC+2)W1nkK!`Lk%vz@_dL-z&V`^SP`#Z7)Zfw@FTIN7ct$Cr|J5B@rRPY}Ri!(ca? z6dpj_NMI+oe(UU}b=Yl;)m?#DXZQ&6dKHKLF}O=^PVn#0Pl3G*o>sUEYYNY&htpbu zupw=u%s>pmt^9h7K18%Hv{OMp6XqzN4_{}1B`7dRB=YP{JuTD_VlTk$(5e>G)uolv;-$r~ z@^=J}M@o~CP{9p>^DZZN4OqDgPUy2}Ggv)iJYlEsuR(>g=n0dPnE?Zf1cUiZfuIFB S#c@ER89ZJ6T-G@yGywpJ+%bj# literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xhdpi/src_assets_images_closeicon.png b/android/app/src/main/res/drawable-xhdpi/src_assets_images_closeicon.png new file mode 100644 index 0000000000000000000000000000000000000000..08ed60ab5dba2a35142d5be6c7b1564a3defad75 GIT binary patch literal 660 zcmV;F0&D$=P)Px%PDw;TRA>e5Sj$QSF%&(iuU-F25JZcV;#vgt3v}yN|3Ejc6)IFI2!53=glb{D zcP2^GAv4Wus*6M<=}dC(Ip^kaCqOP)fviAQAS;j+$O`a02afdB@;0XmD#1&qA z#;)pH+~5!bC-}lhTw}hfzk2UXK!Tr=lU*V(r~hFp5)%BFY;O{Zt1$IK}Z)^J%se!n}n||idkhWgSXsZ4Jw%j8?P9(@dEfP#-A^|BVt+gQp&-tnZ zfaif;5sGY+pcpn$8oToZI2(3)5r zJkeBirtDSu|2ga8|~k^p8D9YKHQf=zmgCnL~8 zVj)=K6od^YC7?<4@J#Iu{;f*~;MsQ6BG%yQje;i5no80LG^~RKl@6kij6ehUnMA*% zStKTrgn$*i%xxs_|GSO4oW@-qWKoOQ0M?pSrpjXVG&CB)Q^){s9#Z_l)A(%=GRDAa zZ3YpD0TMIT#=x6E3INiEQxbJr}^1lrVgjz9zWsI0PW`*qD!-6J4y zVa+N%Kjuv(%X=l;_k_Ti*{`kbPN0twWjODpv4p3og#=%09k+ot-#Jeq9<+w5#Z$Uk u9Qs@>nq+c2E07h)3S)!zcgWbUT!>{F$M-ZF7!A#A1em4?0x` z_@^**7C9`Cl32mZwu0X(gGcHF8*9jJim-2`^8*HvN zY`r`9tqP@i9!W_Q@^x4+8ih4f{QUdZ$xiPwm$h2Nl|+7^dl)=j{an^LB{Ts5lvhK} literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xhdpi/src_assets_images_ethereumlogo.png b/android/app/src/main/res/drawable-xhdpi/src_assets_images_ethereumlogo.png new file mode 100644 index 0000000000000000000000000000000000000000..c75bc563e5e0fae106fea1e996b0faed7357af1c GIT binary patch literal 2060 zcmV+n2=n)eP)Px+#z{m$RA>d&T3?7(MHD~txwg{gQeZ+4iV316YU-jPzGM$76b2<~5oz^cfr*u* z#S*n;gp!qzK9m^}J%o@Dqz`5fA}Q;dE1Dr$6cK13Xo{P<)9*Lmo$ueBd+*$T?KW_C z?mctn%Hjr>lTq$bHg8Dmw-5Nc#zl8u<2 zapvKBNu?AE=o2zoZpsN@ZVzw|$OxICX2?%P>rsvcZpiiq@Wk9MRa(*brEmpwpDc&l zJP<+(nrRC)3ShTg3Gm^-jZ%gI%{~Q`+%BYh zWemXoh-XYHJX-z|E%&G{)HzCi3smH-)Zhu23bSv{lFI^E*Sj!_-vdmt@4J99pq1RO zW=XHB*@u?d0$Ll;et{c>q^kJ#Kvoo2EIqRV(kE*mxhqz>Ut?Dw%a6N-E0YTafqM?- zAKfA^+o#6PtYu=BfX-%tifkziJXPjIP-cdb+5-9qtoMWRZHBRuyHsR>x=#)!GuAm$ zS-=F_O>n(lN;{R85ckx8SJ|C(I)q6KeqzxYtc`%BDwLb5$m7Kt>`d78B6%7N`c( zP=V*fv?m30qyj-sb4i)g>nVFlTz=K*LW$`S&yfpbi%G}0EpSy{LlBKC3_xB%#6nDt z60(3Juj%MEBqV2kHEe-!UUNv$ItF#-SDO?_ogQ(FQYy)jj;Xm&5V*W$rAv>Lir68X z>6i}O-h%vU-2&CT=I{njeK^4l`Bh_q-02a=M3qWvNXJ+Uc`P+1MWZvUA>I zA$G>VAGq`O<5|E4GC-j+;Q*el3Ko`H6|@Em|fUz%GO z6#*Tc7NawtGbI9ai{_ZT*aL&X2rgnHMq(vqgOR5X=J?C&-xXMC|w*#*e_>FP}u5&MD|2KZr z6yOIowWlCt7vF0|%hynBjhYFCf};CnBIbtHSb?WWhUH07Yw&&n8+WVe^`#tGCIBdt zX%98YQnC_QKC`sY;PA1p(Aatx9sq5#+#zqPyXBhgj1_Ax6!`#y%(b*swU#3Qz81lG z#P-v_$SApJZeQy`Yqj!T#6;8oAB7d@2h1Dhze?`3LTj~#*_6BpA$u$>h@VGcxp&bv z(b8jUZbV96fgkUoA6s5b9_74;w(*wMP+x$ulVPQc4K%PiO5k_VOQ^>018wp=X0G<{ zGbYfIHbTcn#NmTq`9A_0vy?j^fk_rM#-rtNDqw{6$;YUlv5cWwBV!|QpHcFLnks+W zcIQSIwGo|?+u)F|qwiXPA8BPc>Q7+xXB~961;_{>9dM=7;Bc9y_L0MZNsWF1FMgtL|TBn7=-%*_lH=%K<;7i zJ_j@R2j9*L?l~RO_zzL@oD9uG?ojhFIft9c^{-0(HT-5eYVRN42&fN%xDATm-YShW zwvh*q4|w|hmN@VnBXMT+Dg0h?4gde9;1d4j0$4X!9LFv$@(!Nx%4QfGe|VG_ zh4lJV{4Nwz5*1)yY+Tb253#NhF~-q=J}06*n%pMSv1Fc%W~jErx{&Q02-;x3Q`7{W z9=yl~AMnKCWdSla9r#Enuhb4|K0|m}fP&19IcUy4&gIN!Fb^Ic)K)a^&Pjc|6`&w< z0#vwmmQ^6zo-%!h@OGg_fmqA;!TA<8(sI9R*^fPBQCc~vEKn1!IWS-$*De3@dvO284i z6Tjs$DG+}kvmIJ%9t1mO3hv&QTAO^oGh2WIn1L(uxbI*gKJ?84p7L@jKmjoScQ|yt z&-YXXeN5j}ox;qyT*!(`ec#BTc8GX q5F4Dv4$Ft{|Hp#aU(TmY?EeCompW=?53bJu0000Px#?MXyIR9FdPU>F6XAut*OjKl=N|1Jgzpt{*WYzb9=97v}!mNC45@^MlGE%@Kg zAjrVNa205RB$_GD8GbY9GgdLYMiWQjGNJIWaab7ofx_s9gH%c~url;w(}FBU*a8Ly zZ)6Q>k2A8k}{~3N^=zS{9AAi-37xv|TjP3xZMqkA?s+1OWR!Rj6|{%$5KE002ovPDHLk FV1h`nae literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xhdpi/src_assets_images_xpatlogo.png b/android/app/src/main/res/drawable-xhdpi/src_assets_images_xpatlogo.png new file mode 100644 index 0000000000000000000000000000000000000000..f37f5116e160565d206189247e60198b8c6d6643 GIT binary patch literal 2341 zcmV+=3EK9FP)Px--$_J4RCodHoC&N{)fvaXGs8nGiXvK9R0yEdpgd49YTQaJY7Dg0HLZD1-Vx(6FWIWIDs2wX-M)Dj*N`;kNme$?lEF~$+mCH599+miAo=Vj)SS-_62plgRFlc<1yJ(?l*hN#|7m@vX>5s zT_h9GbSA%(0bz?stwl4ftVi}!05ne~%RR=>hDr*h0b-ZR?wENccAdblG`St?X=Mf4 zuBJ2o0btg5r0+mb*l_!zjH1V1i=JQbt8~!kuh_~<0CS3&EH4yMk{b~Ff@~>OT7-4o zV{kw$Voh=00YuEju8YmyvO15rT!7eRGLc@p5QU@jDD48za$3s_(<}X1b!BeiOrO65 zjORCEFcgCcwA>{O@IUhk2nsGi!90GOWL2~Q=!elt9^eIDlSOyxE`#9P5qwq_;TsX{ zLKz_^n9=f8C!11r8Nj&iTMUL`FoR{>d~0bl9YRMy>=OAEGA`~QCr@!7{rpsBgi%bD zh9&(lgzQP|*F5|32u$QLGE)}IjfpfACL%`5n1<00Lsji0C`0+z$UMic z<2Xe2XPvS*iaxT-*nVaaBY!O!3~i5Rr3FKcH523`jGsnyO_cGu@{IJbz<-dTV5=zp zNI>LsnT_!iqZkV0_0d%CZslhWG?lJ7k1leTc9YhDk2m=yU963-RZhnAj>wFhj@!D7 z+oY{?`+^}Em2@IMiPkYcAaWI7A`3_#8|2lWbD%pnoM-!-A0@Jhhv_oKb;m5S2V>bA zVZQbjvW@}A&``?`1M+B-$UZrdbSoH2a*i9n!o+*ai{WG`ah)iP%xRU?1PE{92#5}9 zB`Tb@@)aJh51ZszIl3twPE_S5;bh(4@lH6er1+6^*Mq~dngC%faA~-(#P}x>vUZNh zt7Q#DxDl*;9ZO%V;HEHp0}vhDC}=_}Oz0t=G@V-y`r<_H=hj>G(gq;xU{8zV@RZ-< zNp5zr)~&`Jp96$JtcS7V=h-C{;IO5xehV1lSZ6t>IMG@QsmPJUM--Kslm8-K#$oO! zasx8D*9Mjy zA^tSXRhgn)Mo-#&2g9cOsJu!TR}P_l6mMmn3>c6fbqf$-6%W=W^z8Bu*3k}Uih@` z!nVnYgk=`u9W=ZFy;jieMVW5)EdK`ZM{FCe6F@veT361Kcm~UYFp1CjN>v!?O7p1| z+4=&uj@40X72O6y%^9vr*Tx$5-78qDfT$<@`=AI|S*3t{{yiFX1WXN(C~uZejPwqN z9#TD+pyVyeo=YhAQ)K1C3eDtoKhh(mu4dkthF5(SdS8pA&`ippnF{UUq~49CE5G0k z?J~>Dmm4c_hM6Rf$CkDfINBM+JkTi=DpdnBzZKdAh;{*#D!c-@CTq?$T{OHN6~E=^?e>@Cj!}uj&}0 zgIMZ*o!2HaF8_fwUbO+bjgNz>aCQE!i5egxe-4*y(0JTk6e}ye+GXS~D!&HEWOwe` z?e&OWkJyF-vc_(f_|CM}-6Jb*ye=SDv!iq4lmmn&xgJCQ7-@*_%=NN}9kJ zarfhWjv@D&`h~op%jki`9lq;cNPdb7bGhYL2dDK0Ak6nK@s1wJEz~!ok1HB#vz5QO zy4US*0OHcdUB9dsd442+xv(xmyPvb*syi)gsA~d*mE@C(SfkWu#BzTuE*Qp=_OMxd zR>2&4MC(?f2@of~M}Et5O+i&@*q6l;8CeujRyH7O7&lLE)zb!u*-QQdQ6}$rtI()4 zvq+QgREEnF(7hQ!yAngATm!pA(B{wL(j8+*+hVT`5T~J6uBYp$v$wop2iF@a)U8}= z=c#=mB_FfdoNgw{d!anR@vMhw<$Z8qO3N6_TYI)mmyxsE^73X_7I;JDShpRBkdb(R%)!zDv=rUv42|H;o@M1c zK)5vvBduc!i#7G0MZUZ&vY^$~%<-mI?u+9~R089_5uqOy+BgB3@{QcWSaOBCv6O<5 z7cz+oJOpW?ohd}sNQ_*N1cnkNwva#(mAH`j4MDo_v-TzBWptJWG~Fh!>lbRKsb))s6ukvnSaMv zbw+!3droRVloe2PjWU;CCO+leKtYd7FQjEO-9=5ZC3D3XcYwJ(&T~iZa-ZL)k*2x<1$#!%|+_Oa{=mvKp6b^hQxXPQ86lIvZfV%&OEQy^<`ON$WxUD}eeuW5cJ!y@ziAM-2;I2YqXd00000 LNkvXXu0mjfkeha# literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xxhdpi/src_assets_images_chat_indicator.png b/android/app/src/main/res/drawable-xxhdpi/src_assets_images_chat_indicator.png new file mode 100644 index 0000000000000000000000000000000000000000..f9837004ebf7a646c4d431cffd3b13077cc20f1a GIT binary patch literal 213 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&k$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1G<(@8%Ar-fh5)=dtl#0Jh(-me2Vsu!;AX>$6L|V_)wf4XT zhL9YFCD)WS(;O~|a9k;2T*sL8sZytFqN!w4PEr#W%Y(o(3{#m`CMGxuDX@H*Xez)v zW5OK|ju@9~8yXvyu?GMJE)?(`S;#52M*c*X#Uw_D21bTW3aarl%{K1=I)TB{)z4*} HQ$iB}U~5AC literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xxhdpi/src_assets_images_closeicon.png b/android/app/src/main/res/drawable-xxhdpi/src_assets_images_closeicon.png new file mode 100644 index 0000000000000000000000000000000000000000..84e845812b5024aff9b6091d767ce9414300996f GIT binary patch literal 900 zcmV-~1AF|5P)Px&K1oDDRCodHn$2nyK@fmzBzjOto=OlF|A=`2@u0qdUUStq*pv5o&_n`Co+^SK zR2ZvzwwKMOr?+P6r(vnS^zO`b{d`kB{Z{}{fi2m(PM2n2y3 zuvY{+EpPe{@B}(|3BTc_JB5E*a;M1YPvHRW!)NH>Q}-S&rnDVr40r&%7ZeI1k_}>R%urdO?r7ckmr+QMn^(jg41u&R1|q+ycX&erx-#lsjOr)b4&h|pcZr5R?_R^- z$}{X+ES&`B2o_SEVnF1Tr@@}O$Tt;0UXZ-ur~J)%RJskZKfPxIV#DYUh8->wo!~`2aq)ZBl4Tsi!O4ElDB(+hjB%H3X z9Nn6;u-Z5+ip>G7A^n6e_`5#qrEW=uGx2oVF>nDyKJQ#NrH5AA6J6Rqp(~~0vIx$K z-2jn77Nl%hxpsv^Cb$A3g#t+KaGC&`38@L3W`HI_Y6gewG?^%p;C(6X-yi}v<2%$W zirfLsfRlr<2_#oQ0yxbexqX9}aDLzdw|16gw#S{{z;^8tL1}FjOO0*z!++MobM9hQ z@gSgVz41(X4xDVLq-~a=QJZx!4F@%3NFkX3(sWEy)*M*sfGixckjaIm3dqtCOW8G8 zYV#nL1A+~9=^l3tLhYUkAT}J~273!g;x0A`j#6qKOXt?ysum@+d!h(p8ESC)u#O~> zJysa!ZevY1uZsZT>BHI1v=^h(hXe^_qcgi8oozZi^|uTVz!Ddil;&0{=Gzk~QM3kW zux(i~j(bi14Z4}(n)RB)$%?2h?i48GCz5Pw1VKuW?BN(ADd$GJ!XYPaMbco4D0!3Q zQV~bcAO_#!kVyUt6UmRgbEMZc7$lNs*-;09AP@wCKoAH5K_CbOfglhBfb_1t;>mb50aJu00009aYW=ogtN^FK*Xcpd%BVIzMM|Dk^Z zEl(#%u69&g!@6>#+>%3X6C@@(DEV;l8uDH_x+Oq(vqR_^E>Q_4)f>m8CH6_Rn03jf zIXvGq*?D0@fi6oI2a{@tsFnbCh$~R-MTb}yE?z-S6(^u6FCDd(u&$gamEu%%qQ}5x hvz%^QjKIM{=1a%D+brTE9{^p<;OXk;vd$@?2>|s>QCa{1 literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xxhdpi/src_assets_images_ethereumlogo.png b/android/app/src/main/res/drawable-xxhdpi/src_assets_images_ethereumlogo.png new file mode 100644 index 0000000000000000000000000000000000000000..b670b82ab98865901e88089b293358ee6c7efaa2 GIT binary patch literal 3043 zcmV<93mo)`P)Px=ok>JNRCodHTx+ZzMHzngYiWsulb8@AKQLN3S|!ky9)*~g6#XHDADEbUL{k*B z8cpCxf)pe*O-r~ZEtjNSaugkSVk!uhdq;|`P<*@7qC`%Jy4#*-|5v`Da^$pZ8H0Y3Q z%Yj2omP(w~H$KukKx&tK0n_Td2_%rF^CmLFCiFVRGQ&*UQx=r`M^2J6qUG{NS$2rD zel=*nY}Q8EG*SY`GChXgGzimYMwC1bfEHDbU%`AYh8Fc?u=~`YZMEPKIRe^lD{im`$UMSG;XWTc%Q8(}MvdyX106 zZf}^)!<>;PWt}K!1p59i6R;{d)(+fz1Pg#-R69Q1ppi~LV9QZ}K%Azno29?k^Wq<1~(+>Q035bsF$|GImM}tycJv0!e{zw;5CJ&*t1`WV4n_%$5@3+^WNnYI~aOiX| z{C+EdG!;|EtA~cd)Sm}_-+789hMA{?&FCA`V7f|gX|UZjDCX6N4GuwX$?rR9P;2_8 zD{V2g+k!4~)u49tjcFiVr6+WeOY@BZN;q;K^o@(WZR*S?)Xz%?p+TtXk7MGZQxhsRs8e3OMzCPn zHT=F2px)@4V8|pL)zC%eDfWh3si~CE0*CI8bP>mD2&Ecy%o=6`2-;v9`2BJX3dO6N z1P+~E!S7FKkfuzO{4TVNgXph>-!A}^80LNYkZBMS2Nt5lU>B!Y%&V7wniN>pUb-vc z_cIL|Fntpms{&oLph5lf>Y;%!^+&ph?-=Ny0n&zf7`%EaSHE{)p)r9J(cpOXexX_D zJ)w(6`jbb~H=_&1kH1(#7mcu^ee?Jmz2%63jb6pn9$5y%#E)k$#+9vXmdzY%#S{kg zOMEB0Av#N*FMxri{v2(=BixV2pyUYvGlvg|pGb#a0Eme=e~$3E(dV#%yBV=%X~ARq zu7vLxtd~{t+bF`wb76$#?ESfCVF8@@{|2wreiZ4~>YZ-Bz_AqPu`9=jv2x7g;1HV; zkoyo`{QfDX*L(6~=ljN}bQ4tWbfo_n*O7ewQ5{z>BqDclY#ihGyVb-3G}m@wGs5RY z4~|DFX<-vN7iLVoa=k1wN^GB_W3GJ4)`mF}7<=pDSQGU5NZG7|S&7 z&q2HR^E~@ABaH%|K*pa@Al{!T`6G1c3NCfy0Kkwh2CsA(K%#3 zaJRe*_DO*jl41OuR!&4l4`|sSBV`>2hhxInZpDk|dr>w8hvU961&57f8pMZ0Gv<+c z7N4`Av}gFlzGBrTNPl~%iNW($ z696#>_Gk`;w`Qe^5rw>;!3wP(Uj=mCJ{-*oM^DQ{7v`|sg7_u4O2>@!IV?&3ESMu2oDyY%k{jT>COTPVMO!$U z)s9~5>~2J#bC9918z_?_NxKJ{|D}q2G*uH|OQxWNoNA}m6kW(xP}c}zDwfY{i8>aPVQ$|pjn`rZ%G`!f?J?Z5Dv*kM|L6gt$7qq#=lXm9i`YIg4pX3v4F3Ovj$4|x z=>;Hms%ay^3lDvVG1{iBI9{e$Dg>N75{i?wQCgtudkJmRwo7jsL_zc}J@&G#cFJvq zFVv4|n^`SGA*0=cSAZyrJ}U+X-cBrs+IYXmbWZKiT2{sD6iZv>ehMc?594`Fn%42% zNZYjS*SiK$AgH;*=J1R7zw*4dt?;@&`(R%kg-!sXtWftCaWL|&j^tiwc9E>peJ!MT zjde1`@)F`0OiV1%e*q%1B8I>h%W7AYsna-wI+9_VZ zdJR*}zl}hfb(~fzLz{c&08zMvf4ZxUpoO}mZ7evgLLJA4&Zk%^S3(>815@pTX`0i$ zA#LN-N3K#34Pt-M2k?RtHj!BRv$wZ$a@a-Vy0f;NmR+OOrGf!OF>pS^ecGmKkt%W> zXq$@Gtg?blu~Zs(*{-ya6K#|B>v|8WK@?I`FWk^_b7>!(X&d`4%1Z_Zh+@F=eGWIi z8fP2kQ0E2P!amCdpJI98t!Sf`v`xN0mv}E4lnGi-8?~lwvc4Q6y#iEA8+o8@9C692 z^$HNBfJb~U4EFX+qBP=(wn>|Fz4vN^QlTekBagIA+K21CcMYQ8W3-W1+Qt=_LDs_? lBRAu^evrbwBUCv8{|Ao)T&Z2WXW0M%002ovPDHLkV1f?+z*GPL literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xxhdpi/src_assets_images_moreicon.png b/android/app/src/main/res/drawable-xxhdpi/src_assets_images_moreicon.png new file mode 100644 index 0000000000000000000000000000000000000000..dd150d73796fb748f0e8dd101090be183e1e3dcc GIT binary patch literal 453 zcmV;$0XqJPP)Px$e@R3^RA>e5m@!I2K@f(&O%t!6rBzUDti)D4h$2>EVdEJ@QLqex9zahZ*yaK% zR)UQ;P!xjeyhnI3#pLZSL=^tlWOrtE=Fj&Y%P^ov1VlgtL_h@oH-S(pKc3U&gB?46 zKwz=X6M44ZQ|7n``+Szam}khH73?`hpZH=U9P;Y;U316vIF1;N$B=7tdt$1S zJ&U@jW1T#nIa?6NY+15(FJWU3tZ~A2vrk;)3kvKe=7yLNJ4%`_D6*0)D6pIyTP!Hp z|DNHKPYCXl^+X<$V@HAcf+GFoA|WHTSkOCHc6N{;YQP(p32_r4Wf$WS3v{@(OiL5l z#+ygG7&m|AVytS`g}SWT=e=j!m$438S2pvNi20F6OA!!(nGq#<&@E1`XqYpPx?W=TXrRCodHoeQv4RT;;>b+`xv2tsO(k3bE?NW6eXIiW~ena?q;85u{Sbg-$( z@|B~a#+Wu!ia92uFk@*pg<=yrYAQZ6GkJ)a3O+EEOiL-TK)9@a-#+Kud+xnw@4NOn zYwx`d*EO@x-e*0&?_2A?*4p3t)?*t9+*vCFWVwuyl8h6>wXJd&86j47#BUf`&}%sV zE%%N1y~k7a{tkXG;@?F?Qmq9!8MIS9pYKe_o4SF zbRPilWinA#g$7g*z*NBa0yX;UTt`x1J9-A9FLE1*a5ubvPL;SX1ds{^#;%Z0P#Ci) zl&=BC&V7|$PT_CB=Vs(uWTwys7UT*6#;%f2(N$eao{uUh->z(zN}F70CdxCe34F!N z6&U+89mQ6;jMj0CuMFfu$I2Zj4VUBzP%gj#$esXlEr6VmOF?GGBub*UAe3 zbcUHMk7OZ7$v06|ebKhA1eD)Hd;0`M3(d%W{60utFDB34E4WvJ_F36YHp}e@e2B{4 zkKFxq+F#|}qgDnl&KoeOz@J40UV>D+c#*92h`d2BaXe$6jE>J+34;pDz9 zQyH7jCf;d87*sb>_MSRbXJjLP^Is2CGK3nfHH>6JqskhXA@mzT@UY>W|BPQnxHmb#csC%8nbHs zb9~-Fh1%cM0O|w`Bl;Z}(f^4|wC9+SE>;#(sFkVaAbGyaGyM~$laj1NwHG-qeQFOW ztUSiV$6+orq;Bf+CixL!6$6TvM@dd;78E5D7095dJJw2;zcW}zR>)iz#(lP!%1HJ; z7h)O3S;&j?bf2{CQ!*Z~pYusG1+8s#r_<O++?5$QuP{(l zVk5ta1BLfR8?AXUael{j0@rX-e3WZC&yS<5BoBTKD`JXsV|i!mSTNSbwix@2>?K=d zEh&rA|5fNy;`Dz&`3d3Q(?~HcvCBY98_u%8f5)WF-dlTv0n*Mm?AdzE;#)z6HLG`-j2!ZY_btiS1qw+Pe)hT3=_f}NPTa7hfT zY@)TOxuv(;B46q4S;xo7kx|R26BKzF`Bz*}F8*j~41N!<$Ez+dM7*+I3Z&@by8OXzN=&;?8>-^D%ScLN4%?A}E1GBw(hk=OqQ6VdkNj*S*Y z*5s)hFmxWXYr;Z)92l~24alaubxy5K*BzMh2)Z^r%xB%qw7t1)@{QUobpnHlVj2Ov z*9Hds9KuW6Z}DLEs#O9yfk8i+>6cSZ)C|hXBq=fGG1ZHq0o7kYr1YNr8TqAL+Vl)i)vRE-q;1Reh-oR$6wtXjH?1u*N|3lN#wCvc0|E> z?9JYkjhdxs>xAJjgU}okU%dPF$W$y_(9CRdrgjCBVI`DGS4(X&xhz6Ekm*h$EJf#^rIi%gGgy}+;{e3-qMgKYczMIk(R^ z;YApsFaOqPG2sf zktDCDOqPB0Qu*Ci2BuwB!%+q8U(RyyTv+Z^6q9u-QUpw8d~kPIGCD|;w1L)T==8bPG7jpI z!kfE~b99p_yW_q^Mf-F;yn6VBvsJ^&%jQ51&8oOgU@G0&qG~`3-Op!%hOJ&$)m{UX zYaQj!Ou2C6UmNY_+CQDZM4kiWhT6b>@Epptx_*x^9vGU^D}d2@NXVT6TRvBe~AHbZ7t1}57db81|fL$s1 zkB421vaY-By)H131ctGIzHvfy+vH_u*-BB|xLgd03&`BxVh0=;zcDKo7;H9w29|}H z3)lbyWZQsjEBj2UYXycT9@{>&Pa4@pm~SS=SDIL0B6&)jB3s}jTC{ODzF=;T52}P1 zSsa~x86UBjvvYK2cGvjxI#t|6V4|8?x z(Lq3Qq1pLcxu&9ACGv3E%EOMVA=IwrT;mg|`3}@&Mw4Y9?06kXq}jqZ2`~;~-@;bD z61KQ936_*ZPb$Bc{Cqw!lK;S`k?~-c2|y=cR6a8DaWbMW++qIZO{DmJYM6fX!J7j} z{WRnw5OmIe)68`#a!DrA1FdtRl}a$cIhL&a7Q%gYfiBD)<9q8a_*k%zlniKQxF%r#5tGR|}*?kV05@LXnB^Ubj)9a`QfK+%?xCnzfQ z8EHV#1gU`01b}k`=wGeRIl7U&J^o0GJuCV+PXmn6!lq)#d4i8H3W<@ zvag{3yc>O6`KU%1dq}eu8uw5+)EZu$5+4Foqw&-4sg1#Z3eWp;&)-?O5sh+AWo9@v z|Av84PEohALViK!XQt-7{U*>^(R1m(u4*QWO#xG7Om{Jl=ZmWU`|Vv1PZc?t?(5EG z%fJgTDg?)goKE*~9j#|zvqH6K`gL@pCjrWGAM$$xMumw+;2n%}O!*{K9|E=n4NIN} z%c(9F2iN>~1xA@h$4-?Z+u9MXLbPx^wacANE4j{h9=rpi0!HfeN;w~)FQN4e_APWE z^mOynX@H{ZzP-ClfT>CuoiSF52BRld{aXHRBXj+wsKP&PR26n9gG_;`3c!ec2G43S zC}vDi6{Oj_Wz1xFmrQ1^Cu5fjFq#Ltw>E6k`gQYj$=sxj^W~GgS{HP2%2fdJfKS3n zv~mNcRtUyDhXK$z0CY6|g~(7VPu*wjvJ8V~OP4i8UaT7@L(f7B1%O7Ax6||`N+Il% zVLshS+sM#)6BEz3n(@UQfK(_j)zYeHank^3762WC|1QKUi0|K*c0mO*1R~0000