diff --git a/build/cors b/build/cors new file mode 100644 index 000000000..f59ec20aa --- /dev/null +++ b/build/cors @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/client/build/.DS_Store b/client/build/.DS_Store new file mode 100644 index 000000000..7e7d4e28e Binary files /dev/null and b/client/build/.DS_Store differ diff --git a/client/build/CORS b/client/build/CORS new file mode 100644 index 000000000..00a6aa5d6 --- /dev/null +++ b/client/build/CORS @@ -0,0 +1 @@ +https://api.yelp.com diff --git a/client/build/asset-manifest.json b/client/build/asset-manifest.json new file mode 100644 index 000000000..204858eb6 --- /dev/null +++ b/client/build/asset-manifest.json @@ -0,0 +1,17 @@ +{ + "main.css": "/static/css/main.05f84c33.css", + "main.js": "/static/js/main.7cfa9d7d.js", + "static/css/1.3e300833.chunk.css": "/static/css/1.3e300833.chunk.css", + "static/js/1.9d8792cd.chunk.js": "/static/js/1.9d8792cd.chunk.js", + "static/css/2.3e300833.chunk.css": "/static/css/2.3e300833.chunk.css", + "static/js/2.30ad2cf6.chunk.js": "/static/js/2.30ad2cf6.chunk.js", + "static/css/3.998d6f3c.chunk.css": "/static/css/3.998d6f3c.chunk.css", + "static/js/3.ba687a6a.chunk.js": "/static/js/3.ba687a6a.chunk.js", + "static/css/4.6d26fcfa.chunk.css": "/static/css/4.6d26fcfa.chunk.css", + "static/js/4.e0fea478.chunk.js": "/static/js/4.e0fea478.chunk.js", + "static/css/5.697be1f3.chunk.css": "/static/css/5.697be1f3.chunk.css", + "static/js/5.8c9872ef.chunk.js": "/static/js/5.8c9872ef.chunk.js", + "index.html": "/index.html", + "precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js": "/precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js", + "service-worker.js": "/service-worker.js" +} \ No newline at end of file diff --git a/client/build/favicon.ico b/client/build/favicon.ico new file mode 100644 index 000000000..72e04495b Binary files /dev/null and b/client/build/favicon.ico differ diff --git a/client/build/index.html b/client/build/index.html new file mode 100644 index 000000000..9d60a06c6 --- /dev/null +++ b/client/build/index.html @@ -0,0 +1 @@ +BiteChoice
\ No newline at end of file diff --git a/client/build/manifest.json b/client/build/manifest.json new file mode 100755 index 000000000..1f2f141fa --- /dev/null +++ b/client/build/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/client/build/precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js b/client/build/precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js new file mode 100644 index 000000000..f9901dd7e --- /dev/null +++ b/client/build/precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js @@ -0,0 +1,54 @@ +self.__precacheManifest = [ + { + "revision": "d6d95ceb44faa8915c30", + "url": "/static/css/main.05f84c33.css" + }, + { + "revision": "d6d95ceb44faa8915c30", + "url": "/static/js/main.7cfa9d7d.js" + }, + { + "revision": "a5a60f7e3174a322aaf4", + "url": "/static/css/1.3e300833.chunk.css" + }, + { + "revision": "a5a60f7e3174a322aaf4", + "url": "/static/js/1.9d8792cd.chunk.js" + }, + { + "revision": "71d98610fe631ae6c54a", + "url": "/static/css/2.3e300833.chunk.css" + }, + { + "revision": "71d98610fe631ae6c54a", + "url": "/static/js/2.30ad2cf6.chunk.js" + }, + { + "revision": "70255fae209f91c47274", + "url": "/static/css/3.998d6f3c.chunk.css" + }, + { + "revision": "70255fae209f91c47274", + "url": "/static/js/3.ba687a6a.chunk.js" + }, + { + "revision": "ed91093dcf566ae6672f", + "url": "/static/css/4.6d26fcfa.chunk.css" + }, + { + "revision": "ed91093dcf566ae6672f", + "url": "/static/js/4.e0fea478.chunk.js" + }, + { + "revision": "ea6f9a3a851828ff2877", + "url": "/static/css/5.697be1f3.chunk.css" + }, + { + "revision": "ea6f9a3a851828ff2877", + "url": "/static/js/5.8c9872ef.chunk.js" + }, + { + "revision": "ebd67aaedfb109926909614a2f45528e", + "url": "/index.html" + } +]; \ No newline at end of file diff --git a/client/build/service-worker.js b/client/build/service-worker.js new file mode 100644 index 000000000..4f2b62b91 --- /dev/null +++ b/client/build/service-worker.js @@ -0,0 +1,34 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); + +importScripts( + "/precache-manifest.2a96820a197ad4c1968dbf2c0cf5e770.js" +); + +workbox.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.suppressWarnings(); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute("/index.html", { + + blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/], +}); diff --git a/client/build/static/css/1.3e300833.chunk.css b/client/build/static/css/1.3e300833.chunk.css new file mode 100644 index 000000000..bdf898b13 --- /dev/null +++ b/client/build/static/css/1.3e300833.chunk.css @@ -0,0 +1,203 @@ +/* Results */ +.resultView { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; +} + +.resultView__watermark { + position: fixed; + bottom: 0; + width: 100%; + height: 3rem; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; + font-size: 15px; +} + +.resultView__watermark a { + color: black; + opacity: 0.2; + text-decoration: none; +} + +/* Result Header */ +.resultHeader { + height: 5rem; + background: #f8f8f8; + width: 100%; + display: flex; + align-items: center; + font-size: 1.3rem; + padding-left: 1rem; + -webkit-animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.resultHeader--custom { + flex-direction: column; + padding-left: 0; + justify-content: space-between; + height: 11rem; +} + +.resultHeader--custom i { + position: fixed; + left: 0; + top: 0; + padding: 1.75rem 1rem; +} + +.resultHeader--custom__searchTerms { + display: flex; +} + +.resultHeader--custom__searchTerms__searchItem { + background: #dadada; + font-weight: 500; + height: 1.6rem; + display: flex; + align-items: center; + border-radius: 0.8rem; + padding: 0 0.7rem; + font-size: 0.9rem; + margin: 0 0.3rem; +} + +.resultHeader--custom__sortDisplay { + display: flex; + font-weight: 600; + font-size: 1rem; + margin-bottom: 1rem; +} + +.resultHeader--custom__sortDisplay p:last-of-type { + color: #ffaa15; + font-weight: 700; + margin-left: 0.3rem; +} + +.resultHeader__title { + position: fixed; + width: 9rem; + text-align: center; + left: 50%; + transform: translate(-50%, 0); + color: #ffaa15; + font-size: 1.1rem; +} + +.resultHeader--custom .resultHeader__title { + position: static; + transform: none; + margin-top: 1rem; +} + +.resultHeader__title h4 { + color: #333333; + font-size: 1rem; +} + +.resultHeader i { + font-size: 1.3rem; + color: #333333; +} + +/* Result List */ +.resultList { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.resultList__fetching { + display: flex; + flex-direction: column; + align-items: center; + font-size: 6rem; + opacity: 0.1; +} + +.resultList__fetching h1 { + font-size: 1.5rem; + margin-top: 2rem; +} +/* List Item */ +.listItem { + width: 260px; + height: 23%; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + justify-content: space-evenly; + border-radius: 14px; + background: #FFCA58; + padding: 0 0.4rem; + box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.15); + -webkit-animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + margin-top: 0.6rem; + margin-bottom: 0.6rem; +} + +.listItem > div:first-of-type > p:first-of-type { + font-weight: 700; + color: #333333; + font-size: 0.8rem; +} + +.listItem > div:first-of-type > p:last-of-type { + font-size: 0.73rem; +} + +.listItem__btnRow { + display: flex; +} + +.listItem__btn { + background: #FFAA15; + color: #333333; + height: 1.5rem; + border-radius: 0.9rem; + display: flex; + align-items: center; + justify-content: center; + width: 3.5rem; + font-weight: 600; + font-size: 0.75rem; +} + +.listItem__btnRow a { + margin-right: 0.8rem; + text-decoration: none; + background: #6e6e6e4d; +} + + @-webkit-keyframes fade-in-bck { + 0% { + transform: translateZ(80px); + opacity: 0; + } + 100% { + transform: translateZ(0); + opacity: 1; + } +} +@keyframes fade-in-bck { + 0% { + transform: translateZ(80px); + opacity: 0; + } + 100% { + transform: translateZ(0); + opacity: 1; + } +} + diff --git a/client/build/static/css/2.3e300833.chunk.css b/client/build/static/css/2.3e300833.chunk.css new file mode 100644 index 000000000..bdf898b13 --- /dev/null +++ b/client/build/static/css/2.3e300833.chunk.css @@ -0,0 +1,203 @@ +/* Results */ +.resultView { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; +} + +.resultView__watermark { + position: fixed; + bottom: 0; + width: 100%; + height: 3rem; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; + font-size: 15px; +} + +.resultView__watermark a { + color: black; + opacity: 0.2; + text-decoration: none; +} + +/* Result Header */ +.resultHeader { + height: 5rem; + background: #f8f8f8; + width: 100%; + display: flex; + align-items: center; + font-size: 1.3rem; + padding-left: 1rem; + -webkit-animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.resultHeader--custom { + flex-direction: column; + padding-left: 0; + justify-content: space-between; + height: 11rem; +} + +.resultHeader--custom i { + position: fixed; + left: 0; + top: 0; + padding: 1.75rem 1rem; +} + +.resultHeader--custom__searchTerms { + display: flex; +} + +.resultHeader--custom__searchTerms__searchItem { + background: #dadada; + font-weight: 500; + height: 1.6rem; + display: flex; + align-items: center; + border-radius: 0.8rem; + padding: 0 0.7rem; + font-size: 0.9rem; + margin: 0 0.3rem; +} + +.resultHeader--custom__sortDisplay { + display: flex; + font-weight: 600; + font-size: 1rem; + margin-bottom: 1rem; +} + +.resultHeader--custom__sortDisplay p:last-of-type { + color: #ffaa15; + font-weight: 700; + margin-left: 0.3rem; +} + +.resultHeader__title { + position: fixed; + width: 9rem; + text-align: center; + left: 50%; + transform: translate(-50%, 0); + color: #ffaa15; + font-size: 1.1rem; +} + +.resultHeader--custom .resultHeader__title { + position: static; + transform: none; + margin-top: 1rem; +} + +.resultHeader__title h4 { + color: #333333; + font-size: 1rem; +} + +.resultHeader i { + font-size: 1.3rem; + color: #333333; +} + +/* Result List */ +.resultList { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.resultList__fetching { + display: flex; + flex-direction: column; + align-items: center; + font-size: 6rem; + opacity: 0.1; +} + +.resultList__fetching h1 { + font-size: 1.5rem; + margin-top: 2rem; +} +/* List Item */ +.listItem { + width: 260px; + height: 23%; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + justify-content: space-evenly; + border-radius: 14px; + background: #FFCA58; + padding: 0 0.4rem; + box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.15); + -webkit-animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + margin-top: 0.6rem; + margin-bottom: 0.6rem; +} + +.listItem > div:first-of-type > p:first-of-type { + font-weight: 700; + color: #333333; + font-size: 0.8rem; +} + +.listItem > div:first-of-type > p:last-of-type { + font-size: 0.73rem; +} + +.listItem__btnRow { + display: flex; +} + +.listItem__btn { + background: #FFAA15; + color: #333333; + height: 1.5rem; + border-radius: 0.9rem; + display: flex; + align-items: center; + justify-content: center; + width: 3.5rem; + font-weight: 600; + font-size: 0.75rem; +} + +.listItem__btnRow a { + margin-right: 0.8rem; + text-decoration: none; + background: #6e6e6e4d; +} + + @-webkit-keyframes fade-in-bck { + 0% { + transform: translateZ(80px); + opacity: 0; + } + 100% { + transform: translateZ(0); + opacity: 1; + } +} +@keyframes fade-in-bck { + 0% { + transform: translateZ(80px); + opacity: 0; + } + 100% { + transform: translateZ(0); + opacity: 1; + } +} + diff --git a/client/build/static/css/3.998d6f3c.chunk.css b/client/build/static/css/3.998d6f3c.chunk.css new file mode 100644 index 000000000..82af1e490 --- /dev/null +++ b/client/build/static/css/3.998d6f3c.chunk.css @@ -0,0 +1,192 @@ +/* Custom Form */ +.customForm { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; +} + +/* Header */ +.customForm__header { + width: 100%; + height: 4rem; + background: #f8f8f8; + display: flex; + align-items: center; + font-size: 1.3rem; + padding-left: 1rem; + color: #333333; + -webkit-animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.customForm__header i { + font-size: 1.3rem; + color: #333333; +} + +.customForm__header h3 { + position: fixed; + width: 9rem; + text-align: center; + left: 50%; + transform: translate(-50%, 0); + color: #ffaa15; + font-size: 1.1rem; +} + +/* Form */ +.customForm__form { + height: 84%; + display: flex; + flex-direction: column; + align-items: center; +} + +.customForm__form__select { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + /* margin-top: 2rem; */ + height: 20%; + /* border: 1px solid red; */ +} + +select { + font-size: 0.9rem; + font-weight: 600; + padding: 0.4rem; + border: 2px solid #ffaa15; + background: #f8f8f8; + border-radius: 0.4rem; + margin-top: 0.4rem; +} + +.customForm__form { + -webkit-animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.customForm__form__txtInput { + width: 14rem; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + /* margin-top: 2rem; */ + height: 30%; + /* border: 1px solid red; */ +} + +.customForm__form__txtInput form { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; +} + +.customForm__form__txtInput input { + margin-top: 0.6rem; + border: none; + width: 100%; + font-size: 1rem; + text-align: center; + padding: 0.6rem; + border-bottom: 1px solid black; + opacity: 0.6; + font-weight: 600; +} + +.customForm__form__txtInput__addItemBtn { + border: 2px solid #ffaa15; + height: 2rem; + padding: 0 1rem; + border-radius: 1rem; + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + margin-top: 0.8rem; + font-size: 0.9rem; + color: #333333; +} + +.customForm__form__txtInput__addItemBtn--delete { + background: #333333; + border: none; + color: white; + opacity: 0.2; +} + +.customForm__form__txtInput input:focus { + border: 1px solid #ffaa15; + opacity: 1; +} + +.customForm__form label { + font-weight: 500; +} + +.customForm__form__searchItems { + /* height: 100%; */ + /* border: 1px solid black; */ + height: 50%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.customForm__form__searchItems__item { + background: #f2f2f2; + font-weight: 500; + height: 2rem; + display: flex; + align-items: center; + border-radius: 1rem; + padding: 0 1rem; + margin: 0.5rem 0; + -webkit-animation: findBtnFade 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: findBtnFade 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.customForm__form__searchItems__item p { + margin-right: 0.7rem; +} + +.customForm__form__searchItems__item i { + color: #ffaa15; +} + +.customForm__findBtn { + width: 100%; + height: 16%; + background: #ffaa15; + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 0.9rem; + -webkit-animation: findBtnFade 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: findBtnFade 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + opacity: 0.8; +} + +@-webkit-keyframes findBtnFade { + 0% { + transform: translateY(50px); + } + 100% { + transform: translateY(0); + } +} + +@keyframes findBtnFade { + 0% { + transform: translateY(50px); + } + 100% { + transform: translateY(0); + } +} diff --git a/client/build/static/css/4.6d26fcfa.chunk.css b/client/build/static/css/4.6d26fcfa.chunk.css new file mode 100644 index 000000000..d7a3335aa --- /dev/null +++ b/client/build/static/css/4.6d26fcfa.chunk.css @@ -0,0 +1,56 @@ +/* Choice View */ +.choiceView { + background: #FFCA58; + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-around; + color: #333333; + -webkit-animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fade-in-bck 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.choiceView__placeInfo { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + padding: 0 1rem; +} + +.choiceView__placeInfo > h2 { + margin-bottom: 1rem; + font-size: 1.4rem; +} + +.choiceView__placeInfo__address { + font-weight: 500; +} + +.choiceView__placeInfo__address > p:first-of-type { + font-weight: 700; +} + +.choiceView__btn { + height: 2.2rem; + border-radius: 1.1rem; + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 1rem; + width: 70%; + background: #333333; + color: #FFCA58; + box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.15); +} + +.choiceView a { + text-decoration: none; + background: #6e6e6e4d; + width: 5rem; + margin-top: 2rem; + color: #333333; +} diff --git a/client/build/static/css/5.697be1f3.chunk.css b/client/build/static/css/5.697be1f3.chunk.css new file mode 100644 index 000000000..89e205bb0 --- /dev/null +++ b/client/build/static/css/5.697be1f3.chunk.css @@ -0,0 +1,36 @@ +/* Error Screen */ +.errorScreen { + width: 100%; + height: 100%; + background: #FF4040; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 0 2rem; + font-weight: 600; +} + +.errorScreen i { + font-size: 3rem; + margin-bottom: 0.5rem; + opacity: 0.4; +} + +.errorScreen h1 { + opacity: 0.4; +} + +.errorScreen p { + text-align: justify; + text-justify: distribute; + margin-top: 1rem; + opacity: 0.6; +} + +.errorScreen ul { + margin-top: 1rem; + opacity: 0.6; + text-align: center; + list-style-type: none; +} diff --git a/client/build/static/css/main.05f84c33.css b/client/build/static/css/main.05f84c33.css new file mode 100644 index 000000000..ad93557e7 --- /dev/null +++ b/client/build/static/css/main.05f84c33.css @@ -0,0 +1,269 @@ +/* Landing View Containter */ +.landingView { + display: flex; + flex-direction: column; + height: 100%; + -webkit-animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +@-webkit-keyframes fadeInBottom { + 0% { + transform: translateY(50px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } +} + +@keyframes fadeInBottom { + 0% { + transform: translateY(50px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } +} + +.inputLocation__header { + height: 15%; + background: #f8f8f8; + -webkit-animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTop 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +@-webkit-keyframes fadeInTop { + 0% { + transform: translateY(-50px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } +} + +@keyframes fadeInTop { + 0% { + transform: translateY(-50px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } +} + +/* Landing Header */ +.landingHeader { + width: 100%; + height: 60%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 1rem; +} + +#landingHeader--big { + padding-top: 4rem; +} + +.landingHeader__banner--city { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + -webkit-animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInBottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.landingHeader__banner--city h1:first-child { + color: #333333; + font-size: 1.3rem; +} + +.landingHeader__banner--city h1:last-child { + color: #ffaa15; + font-size: 2rem; +} + +.landingHeader__banner--inputLocation { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; +} + +.landingHeader__banner--inputLocation h3 { + font-weight: 500; + font-size: 0.9rem; + margin-top: 0.3rem; +} + +.landingHeader__banner--inputLocation__textInput { + font-size: 1.1rem; + border: none; + padding: 0.6rem; + font-weight: 600; + text-align: center; +} + +.landingHeader__banner--inputLocation__textInput:placeholder-shown { + opacity: 0.5; +} + +.landingHeader__banner--inputLocation__textInput:focus { + color: black; + border: 2px solid #ffaa15; + border-radius: 0.4rem; +} + +/* Error view banner */ +.landingHeader__banner--error { + display: flex; + flex-direction: column; + align-items: center; + align-content: center; + justify-content: center; + justify-items: center; + color: #dadada; + -webkit-animation: fadeInTop 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTop 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +.landingHeader__banner--error i { + font-size: 5rem; + margin: 2rem 0; +} + +.landingHeader__banner--error h1 { + color: #555555; + text-align: center; + font-size: 1.3rem; + margin-bottom: 0.4rem; +} + +.landingHeader__banner--error h3 { + color: #555555; + text-align: center; + font-size: 0.9rem; +} + +/* Landing Buttons */ +.landingButtons { + height: 40%; +} + +.landingBtns__btn--findPlaces { + background: #ffaa15; + height: 50%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 0.9rem; + opacity: 0.8; +} + +.landingBtns__btn--custom { + width: 100%; + height: 30%; + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 0.9rem; + background: #FFCA58; + opacity: 0.8; +} + +.landingBtns__btn--custom--invalid, +.landingBtns__btn--findPlaces--invalid { + opacity: 0.4; +} + +.landingButtons__btn--fixLocation { + height: 20%; + display: flex; + align-items: center; + justify-content: center; + background: #333333; + color: white; + font-weight: 600; + font-size: 0.74rem; + -webkit-animation: fadeInBottom 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInBottom 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +#btn--locationInput { + height: 50%; + -webkit-animation: fadeInTopBtn 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; + animation: fadeInTopBtn 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both; +} + +@-webkit-keyframes fadeInTopBtn { + 0% { + transform: translateY(-50px); + } + 100% { + transform: translateY(0); + } +} + +@keyframes fadeInTopBtn { + 0% { + transform: translateY(-50px); + } + 100% { + transform: translateY(0); + } +} + +.inputLocation__header { + display: block; + position: fixed; + width: 100%; + left: 0; + top: 0; + height: 4rem; + background: #f8f8f8; + display: flex; + align-items: center; + font-size: 1.3rem; + padding-left: 1rem; + color: #333333; +} +* { + margin: 0; + padding: 0; + box-sizing: inherit; +} + +html{ + font-size: 20px; + box-sizing: border-box; + font-family: "Avenir Next", sans-serif; +} + +body { + margin: 0; + padding: 0; + width: 100vw; + height: 100vh; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", + monospace; +} diff --git a/client/build/static/js/1.9d8792cd.chunk.js b/client/build/static/js/1.9d8792cd.chunk.js new file mode 100644 index 000000000..88a6c90cf --- /dev/null +++ b/client/build/static/js/1.9d8792cd.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1,2],{385:function(e,t,n){},386:function(e,t,n){"use strict";function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t pgast")))}},392:function(e,t,n){"use strict";n.r(t);var l=n(0),s=n.n(l),i=n(388),o=n(37);t.default=function(e){var t=e.location,n=e.toggleUi,a=e.data,r=Object(l.useContext)(o.a).dispatch;Object(l.useEffect)(function(){return c()},[]);var c=function(){return r({type:"FETCH_RANDOM_DATA",payload:t})};return s.a.createElement(i.default,{data:a,randomSorting:!0,isCustom:!1,toggleUi:n,location:t})}}}]); \ No newline at end of file diff --git a/client/build/static/js/2.30ad2cf6.chunk.js b/client/build/static/js/2.30ad2cf6.chunk.js new file mode 100644 index 000000000..a242dda7a --- /dev/null +++ b/client/build/static/js/2.30ad2cf6.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{385:function(e,t,a){},387:function(e,t,a){},388:function(e,t,a){"use strict";a.r(t);var E=a(0),p=a.n(E),b=a(386),n=a(30),_=a.n(n),k=a(63),w=a(52),N=(a(385),a(387),p.a.memo(function(e){var t=e.item,a=e.removeItem;return p.a.createElement("div",{className:"listItem"},p.a.createElement("div",null,p.a.createElement("p",null,t.name),p.a.createElement("p",null,t.categories[0].hasOwnProperty("title")?t.categories[0].title:"")),p.a.createElement("div",{className:"listItem__btnRow"},p.a.createElement("a",{className:"listItem__btn",href:t.url,target:"_blank",rel:"noopener noreferrer"},"Info"),p.a.createElement("div",{className:"listItem__btn listItem__btn--delete",onClick:function(){return a()}},"Delete")))})),x=p.a.lazy(function(){return a.e(4).then(a.bind(null,393))}),y=p.a.lazy(function(){return a.e(5).then(a.bind(null,394))});function O(e){var t=[];if(e.length<=3)t.push(0,2);else if(0!==e.length)for(;t.length<3;){var a=Math.floor(Math.random()*Math.floor(e.length));t.includes(a)||t.push(a)}return t}function C(t){return O(t).map(function(e){return t[e]})}function i(e){var t=e.data,c=e.randomSorting,a=e.isCustom,n=e.toggleUi,s=e.customSearchTerms,r=Object(E.useState)([{name:"Fetching",categories:[{title:""}]}]),l=Object(w.a)(r,2),i=l[0],u=l[1],o=Object(E.useState)([]),m=Object(w.a)(o,2),f=m[0],h=m[1];Object(E.useEffect)(function(){(a?g:v)(t)},[t,h]);var g=function(){var t=Object(k.a)(_.a.mark(function e(t){var a;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:a=e.sent,0===s.searchTerms.length?v(a):1===s.searchTerms.length?v(a[0]):d(a);case 4:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),d=function(){var t=Object(k.a)(_.a.mark(function e(t){var a,n,r,l;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:if(a=e.sent,n=[],!c){e.next=10;break}r=[],a.forEach(function(e){r=[].concat(Object(b.a)(r),Object(b.a)(e))}),v(r),e.next=26;break;case 10:if(!(n.length<3)){e.next=24;break}if(a.every(function(e){return 0===e.length}))return e.abrupt("break",24);e.next=14;break;case 14:l=0;case 15:if(!(l pgast")))}}}]); \ No newline at end of file diff --git a/client/build/static/js/3.ba687a6a.chunk.js b/client/build/static/js/3.ba687a6a.chunk.js new file mode 100644 index 000000000..ea0abb833 --- /dev/null +++ b/client/build/static/js/3.ba687a6a.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{386:function(e,t,a){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t + * @license MIT + */ +var a=t(188),i=t(189),o=t(69);function r(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function d(e,t){if(p.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(a)return M(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function m(e,t,r,a,n){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):2147483647=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=p.from(t,a)),p.isBuffer(t))return 0===t.length?-1:g(e,t,r,a,n);if("number"==typeof t)return t&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,a,n){var i,o=1,s=e.length,c=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;s/=o=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var l=-1;for(i=r;i>8,n=r%256,i.push(n),i.push(a);return i}(t,e.length-r),e,r,a)}function w(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var a=[],n=t;n>>10&1023|55296),l=56320|1023&l),a.push(l),n+=p}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",a=0;for(;athis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}.apply(this,arguments)},p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){var e="",t=q.INSPECT_MAX_BYTES;return 0t&&(e+=" ... ")),""},p.prototype.compare=function(e,t,r,a,n){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(n<=a&&r<=t)return 0;if(n<=a)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(n>>>=0)-(a>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(a,n),u=e.slice(t,r),l=0;lthis.length)throw new RangeError("Attempt to write outside buffer bounds");a=a||"utf8";for(var i,o,s,c,u,l,p=!1;;)switch(a){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return u=t,l=r,D(M(e,(c=this).length-u),c,u,l);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return i=this,o=t,s=r,D(R(e),i,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,r);default:if(p)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),p=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function _(e,t,r){var a="";r=Math.min(e.length,r);for(var n=t;ne.length)throw new RangeError("Index out of range")}function z(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function T(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function F(e,t,r,a){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,a,n){return n||F(e,0,r,4),i.write(e,t,r,a,23,4),r+4}function O(e,t,r,a,n){return n||F(e,0,r,8),i.write(e,t,r,a,52,8),r+8}p.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):a>>8):z(this,e,t,!0),t+2},p.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},p.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},p.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},p.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},p.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var i=r-1,o=1,s=0;for(this[t+i]=255&e;0<=--i&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},p.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),p.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},p.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},p.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},p.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},p.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},p.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},p.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},p.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},p.prototype.copy=function(e,t,r,a){if(r=r||0,a||0===a||(a=this.length),t>=e.length&&(t=e.length),t=t||0,0=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(i=t;i>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function R(e){return a.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,t(12))},function(n,e,o){(function(t){var s=o(29),r=o(18).Stream,i=o(6),a=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e,t,r,a,n){throw new s.AssertionError({message:i.format("%s (%s) is required",e,t),actual:void 0===n?typeof a:n(a),expected:t,operator:r||"===",stackStartFunction:u.caller})}function e(e){return Object.prototype.toString.call(e).slice(8,-1)}function l(){}var p={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"==typeof e&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return t.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof r},operator:"instanceof",actual:e},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:e},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:e},uuid:{check:function(e){return"string"==typeof e&&a.test(e)},operator:"isUUID"}};n.exports=function e(i){var o,t=Object.keys(p);return o=Object({NODE_ENV:"production",PUBLIC_URL:""}).NODE_NDEBUG?l:function(e,t){e||u(t,"true",e)},t.forEach(function(r){if(i)o[r]=l;else{var a=p[r];o[r]=function(e,t){a.check(e)||u(t,r,a.operator,e,a.actual)}}}),t.forEach(function(r){var e="optional"+c(r);if(i)o[e]=l;else{var a=p[r];o[e]=function(e,t){null!=e&&(a.check(e)||u(t,r,a.operator,e,a.actual))}}}),t.forEach(function(e){var t="arrayOf"+c(e);if(i)o[t]=l;else{var a=p[e],n="["+e+"]";o[t]=function(e,t){var r;for(Array.isArray(e)||u(t,n,a.operator,e,a.actual),r=0;r>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);else if("le"===r)for(n=a=0;a>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);return this.strip()},b.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r>>26-i&4194303,26<=(i+=24)&&(i-=26,a++);r+6!==t&&(n=o(e,t,r+6),this.words[a]|=n<>>26-i&4194303),this.strip()},b.prototype._parseBase=function(e,t,r){this.words=[0];for(var a=0,n=this.length=1;n<=67108863;n*=t)a++;a--,n=n/t|0;for(var i=e.length-r,o=i%a,s=Math.min(i,i-o)+r,c=0,u=r;u"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function n(e,t,r){r.negative=t.negative^e.negative;var a=e.length+t.length|0;a=(r.length=a)-1|0;var n=0|e.words[0],i=0|t.words[0],o=n*i,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,p=67108863&c,f=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=f;d++){var h=u-d|0;l+=(o=(n=0|e.words[h])*(i=0|t.words[d])+p)/67108864|0,p=67108863&o}r.words[u]=0|p,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}b.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var a=0,n=0,i=0;i>>24-a&16777215)||i!==this.length-1?f[6-s.length]+s+r:s+r,26<=(a+=2)&&(a-=26,i--)}for(0!==n&&(r=n.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var c=d[e],u=h[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var p=l.modn(u).toString(e);r=(l=l.idivn(u)).isZero()?p+r:f[c-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}g(!1,"Base should be between 2 and 36")},b.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},b.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},b.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},b.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},b.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},b.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},b.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var a=0;ae.length?this.clone().ixor(e):e.clone().ixor(this)},b.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},b.prototype.inotn=function(e){g("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0>26-r),this.strip()},b.prototype.notn=function(e){return this.clone().inotn(e)},b.prototype.setn=function(e,t){g("number"==typeof e&&0<=e);var r=e/26|0,a=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<e.length?(r=this,e):(r=e,this);for(var n=0,i=0;i>>26;for(;0!==n&&i>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},b.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,a,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;a=0>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,d=0|o[1],h=8191&d,m=d>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,k=y>>>13,x=0|o[4],_=8191&x,j=x>>>13,S=0|o[5],E=8191&S,A=S>>>13,P=0|o[6],z=8191&P,T=P>>>13,F=0|o[7],C=8191&F,O=F>>>13,I=0|o[8],B=8191&I,M=I>>>13,R=0|o[9],D=8191&R,q=R>>>13,N=0|s[0],L=8191&N,U=N>>>13,H=0|s[1],K=8191&H,$=H>>>13,V=0|s[2],Z=8191&V,W=V>>>13,Q=0|s[3],Y=8191&Q,G=Q>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ae=te>>>13,ne=0|s[6],ie=8191&ne,oe=ne>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],pe=8191&le,fe=le>>>13,de=0|s[9],he=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(u+(a=Math.imul(p,L))|0)+((8191&(n=(n=Math.imul(p,U))+Math.imul(f,L)|0))<<13)|0;u=((i=Math.imul(f,U))+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,a=Math.imul(h,L),n=(n=Math.imul(h,U))+Math.imul(m,L)|0,i=Math.imul(m,U);var be=(u+(a=a+Math.imul(p,K)|0)|0)+((8191&(n=(n=n+Math.imul(p,$)|0)+Math.imul(f,K)|0))<<13)|0;u=((i=i+Math.imul(f,$)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,a=Math.imul(b,L),n=(n=Math.imul(b,U))+Math.imul(v,L)|0,i=Math.imul(v,U),a=a+Math.imul(h,K)|0,n=(n=n+Math.imul(h,$)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,$)|0;var ve=(u+(a=a+Math.imul(p,Z)|0)|0)+((8191&(n=(n=n+Math.imul(p,W)|0)+Math.imul(f,Z)|0))<<13)|0;u=((i=i+Math.imul(f,W)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,a=Math.imul(w,L),n=(n=Math.imul(w,U))+Math.imul(k,L)|0,i=Math.imul(k,U),a=a+Math.imul(b,K)|0,n=(n=n+Math.imul(b,$)|0)+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,a=a+Math.imul(h,Z)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(m,Z)|0,i=i+Math.imul(m,W)|0;var ye=(u+(a=a+Math.imul(p,Y)|0)|0)+((8191&(n=(n=n+Math.imul(p,G)|0)+Math.imul(f,Y)|0))<<13)|0;u=((i=i+Math.imul(f,G)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,a=Math.imul(_,L),n=(n=Math.imul(_,U))+Math.imul(j,L)|0,i=Math.imul(j,U),a=a+Math.imul(w,K)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,$)|0,a=a+Math.imul(b,Z)|0,n=(n=n+Math.imul(b,W)|0)+Math.imul(v,Z)|0,i=i+Math.imul(v,W)|0,a=a+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(m,Y)|0,i=i+Math.imul(m,G)|0;var we=(u+(a=a+Math.imul(p,J)|0)|0)+((8191&(n=(n=n+Math.imul(p,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((i=i+Math.imul(f,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,a=Math.imul(E,L),n=(n=Math.imul(E,U))+Math.imul(A,L)|0,i=Math.imul(A,U),a=a+Math.imul(_,K)|0,n=(n=n+Math.imul(_,$)|0)+Math.imul(j,K)|0,i=i+Math.imul(j,$)|0,a=a+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(k,Z)|0,i=i+Math.imul(k,W)|0,a=a+Math.imul(b,Y)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(v,Y)|0,i=i+Math.imul(v,G)|0,a=a+Math.imul(h,J)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,ee)|0;var ke=(u+(a=a+Math.imul(p,re)|0)|0)+((8191&(n=(n=n+Math.imul(p,ae)|0)+Math.imul(f,re)|0))<<13)|0;u=((i=i+Math.imul(f,ae)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,a=Math.imul(z,L),n=(n=Math.imul(z,U))+Math.imul(T,L)|0,i=Math.imul(T,U),a=a+Math.imul(E,K)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,$)|0,a=a+Math.imul(_,Z)|0,n=(n=n+Math.imul(_,W)|0)+Math.imul(j,Z)|0,i=i+Math.imul(j,W)|0,a=a+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(k,Y)|0,i=i+Math.imul(k,G)|0,a=a+Math.imul(b,J)|0,n=(n=n+Math.imul(b,ee)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,ee)|0,a=a+Math.imul(h,re)|0,n=(n=n+Math.imul(h,ae)|0)+Math.imul(m,re)|0,i=i+Math.imul(m,ae)|0;var xe=(u+(a=a+Math.imul(p,ie)|0)|0)+((8191&(n=(n=n+Math.imul(p,oe)|0)+Math.imul(f,ie)|0))<<13)|0;u=((i=i+Math.imul(f,oe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,a=Math.imul(C,L),n=(n=Math.imul(C,U))+Math.imul(O,L)|0,i=Math.imul(O,U),a=a+Math.imul(z,K)|0,n=(n=n+Math.imul(z,$)|0)+Math.imul(T,K)|0,i=i+Math.imul(T,$)|0,a=a+Math.imul(E,Z)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,Z)|0,i=i+Math.imul(A,W)|0,a=a+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(j,Y)|0,i=i+Math.imul(j,G)|0,a=a+Math.imul(w,J)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,ee)|0,a=a+Math.imul(b,re)|0,n=(n=n+Math.imul(b,ae)|0)+Math.imul(v,re)|0,i=i+Math.imul(v,ae)|0,a=a+Math.imul(h,ie)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,oe)|0;var _e=(u+(a=a+Math.imul(p,ce)|0)|0)+((8191&(n=(n=n+Math.imul(p,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((i=i+Math.imul(f,ue)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,a=Math.imul(B,L),n=(n=Math.imul(B,U))+Math.imul(M,L)|0,i=Math.imul(M,U),a=a+Math.imul(C,K)|0,n=(n=n+Math.imul(C,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,a=a+Math.imul(z,Z)|0,n=(n=n+Math.imul(z,W)|0)+Math.imul(T,Z)|0,i=i+Math.imul(T,W)|0,a=a+Math.imul(E,Y)|0,n=(n=n+Math.imul(E,G)|0)+Math.imul(A,Y)|0,i=i+Math.imul(A,G)|0,a=a+Math.imul(_,J)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(j,J)|0,i=i+Math.imul(j,ee)|0,a=a+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ae)|0,a=a+Math.imul(b,ie)|0,n=(n=n+Math.imul(b,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,a=a+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(m,ce)|0,i=i+Math.imul(m,ue)|0;var je=(u+(a=a+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,fe)|0)+Math.imul(f,pe)|0))<<13)|0;u=((i=i+Math.imul(f,fe)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,a=Math.imul(D,L),n=(n=Math.imul(D,U))+Math.imul(q,L)|0,i=Math.imul(q,U),a=a+Math.imul(B,K)|0,n=(n=n+Math.imul(B,$)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,$)|0,a=a+Math.imul(C,Z)|0,n=(n=n+Math.imul(C,W)|0)+Math.imul(O,Z)|0,i=i+Math.imul(O,W)|0,a=a+Math.imul(z,Y)|0,n=(n=n+Math.imul(z,G)|0)+Math.imul(T,Y)|0,i=i+Math.imul(T,G)|0,a=a+Math.imul(E,J)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,a=a+Math.imul(_,re)|0,n=(n=n+Math.imul(_,ae)|0)+Math.imul(j,re)|0,i=i+Math.imul(j,ae)|0,a=a+Math.imul(w,ie)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,a=a+Math.imul(b,ce)|0,n=(n=n+Math.imul(b,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,a=a+Math.imul(h,pe)|0,n=(n=n+Math.imul(h,fe)|0)+Math.imul(m,pe)|0,i=i+Math.imul(m,fe)|0;var Se=(u+(a=a+Math.imul(p,he)|0)|0)+((8191&(n=(n=n+Math.imul(p,me)|0)+Math.imul(f,he)|0))<<13)|0;u=((i=i+Math.imul(f,me)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,a=Math.imul(D,K),n=(n=Math.imul(D,$))+Math.imul(q,K)|0,i=Math.imul(q,$),a=a+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,W)|0)+Math.imul(M,Z)|0,i=i+Math.imul(M,W)|0,a=a+Math.imul(C,Y)|0,n=(n=n+Math.imul(C,G)|0)+Math.imul(O,Y)|0,i=i+Math.imul(O,G)|0,a=a+Math.imul(z,J)|0,n=(n=n+Math.imul(z,ee)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,ee)|0,a=a+Math.imul(E,re)|0,n=(n=n+Math.imul(E,ae)|0)+Math.imul(A,re)|0,i=i+Math.imul(A,ae)|0,a=a+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,oe)|0)+Math.imul(j,ie)|0,i=i+Math.imul(j,oe)|0,a=a+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,a=a+Math.imul(b,pe)|0,n=(n=n+Math.imul(b,fe)|0)+Math.imul(v,pe)|0,i=i+Math.imul(v,fe)|0;var Ee=(u+(a=a+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;u=((i=i+Math.imul(m,me)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,a=Math.imul(D,Z),n=(n=Math.imul(D,W))+Math.imul(q,Z)|0,i=Math.imul(q,W),a=a+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(M,Y)|0,i=i+Math.imul(M,G)|0,a=a+Math.imul(C,J)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,ee)|0,a=a+Math.imul(z,re)|0,n=(n=n+Math.imul(z,ae)|0)+Math.imul(T,re)|0,i=i+Math.imul(T,ae)|0,a=a+Math.imul(E,ie)|0,n=(n=n+Math.imul(E,oe)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,oe)|0,a=a+Math.imul(_,ce)|0,n=(n=n+Math.imul(_,ue)|0)+Math.imul(j,ce)|0,i=i+Math.imul(j,ue)|0,a=a+Math.imul(w,pe)|0,n=(n=n+Math.imul(w,fe)|0)+Math.imul(k,pe)|0,i=i+Math.imul(k,fe)|0;var Ae=(u+(a=a+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,me)|0)+Math.imul(v,he)|0))<<13)|0;u=((i=i+Math.imul(v,me)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,a=Math.imul(D,Y),n=(n=Math.imul(D,G))+Math.imul(q,Y)|0,i=Math.imul(q,G),a=a+Math.imul(B,J)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(M,J)|0,i=i+Math.imul(M,ee)|0,a=a+Math.imul(C,re)|0,n=(n=n+Math.imul(C,ae)|0)+Math.imul(O,re)|0,i=i+Math.imul(O,ae)|0,a=a+Math.imul(z,ie)|0,n=(n=n+Math.imul(z,oe)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,oe)|0,a=a+Math.imul(E,ce)|0,n=(n=n+Math.imul(E,ue)|0)+Math.imul(A,ce)|0,i=i+Math.imul(A,ue)|0,a=a+Math.imul(_,pe)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(j,pe)|0,i=i+Math.imul(j,fe)|0;var Pe=(u+(a=a+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,me)|0)+Math.imul(k,he)|0))<<13)|0;u=((i=i+Math.imul(k,me)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(D,J),n=(n=Math.imul(D,ee))+Math.imul(q,J)|0,i=Math.imul(q,ee),a=a+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(M,re)|0,i=i+Math.imul(M,ae)|0,a=a+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,a=a+Math.imul(z,ce)|0,n=(n=n+Math.imul(z,ue)|0)+Math.imul(T,ce)|0,i=i+Math.imul(T,ue)|0,a=a+Math.imul(E,pe)|0,n=(n=n+Math.imul(E,fe)|0)+Math.imul(A,pe)|0,i=i+Math.imul(A,fe)|0;var ze=(u+(a=a+Math.imul(_,he)|0)|0)+((8191&(n=(n=n+Math.imul(_,me)|0)+Math.imul(j,he)|0))<<13)|0;u=((i=i+Math.imul(j,me)|0)+(n>>>13)|0)+(ze>>>26)|0,ze&=67108863,a=Math.imul(D,re),n=(n=Math.imul(D,ae))+Math.imul(q,re)|0,i=Math.imul(q,ae),a=a+Math.imul(B,ie)|0,n=(n=n+Math.imul(B,oe)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,oe)|0,a=a+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,a=a+Math.imul(z,pe)|0,n=(n=n+Math.imul(z,fe)|0)+Math.imul(T,pe)|0,i=i+Math.imul(T,fe)|0;var Te=(u+(a=a+Math.imul(E,he)|0)|0)+((8191&(n=(n=n+Math.imul(E,me)|0)+Math.imul(A,he)|0))<<13)|0;u=((i=i+Math.imul(A,me)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(D,ie),n=(n=Math.imul(D,oe))+Math.imul(q,ie)|0,i=Math.imul(q,oe),a=a+Math.imul(B,ce)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,a=a+Math.imul(C,pe)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(O,pe)|0,i=i+Math.imul(O,fe)|0;var Fe=(u+(a=a+Math.imul(z,he)|0)|0)+((8191&(n=(n=n+Math.imul(z,me)|0)+Math.imul(T,he)|0))<<13)|0;u=((i=i+Math.imul(T,me)|0)+(n>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,a=Math.imul(D,ce),n=(n=Math.imul(D,ue))+Math.imul(q,ce)|0,i=Math.imul(q,ue),a=a+Math.imul(B,pe)|0,n=(n=n+Math.imul(B,fe)|0)+Math.imul(M,pe)|0,i=i+Math.imul(M,fe)|0;var Ce=(u+(a=a+Math.imul(C,he)|0)|0)+((8191&(n=(n=n+Math.imul(C,me)|0)+Math.imul(O,he)|0))<<13)|0;u=((i=i+Math.imul(O,me)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(D,pe),n=(n=Math.imul(D,fe))+Math.imul(q,pe)|0,i=Math.imul(q,fe);var Oe=(u+(a=a+Math.imul(B,he)|0)|0)+((8191&(n=(n=n+Math.imul(B,me)|0)+Math.imul(M,he)|0))<<13)|0;u=((i=i+Math.imul(M,me)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ie=(u+(a=Math.imul(D,he))|0)+((8191&(n=(n=Math.imul(D,me))+Math.imul(q,he)|0))<<13)|0;return u=((i=Math.imul(q,me))+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=be,c[2]=ve,c[3]=ye,c[4]=we,c[5]=ke,c[6]=xe,c[7]=_e,c[8]=je,c[9]=Se,c[10]=Ee,c[11]=Ae,c[12]=Pe,c[13]=ze,c[14]=Te,c[15]=Fe,c[16]=Ce,c[17]=Oe,c[18]=Ie,0!==u&&(c[19]=u,r.length++),r};function s(e,t,r){return(new c).mulp(e,t,r)}function c(e,t){this.x=e,this.y=t}Math.imul||(i=n),b.prototype.mulTo=function(e,t){var r=this.length+e.length;return(10===this.length&&10===e.length?i:r<63?n:r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var a=0,n=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=s,a=o,o=n}return 0!==a?r.words[i]=a:r.length--,r.strip()}:s)(this,e,t)},c.prototype.makeRBT=function(e){for(var t=new Array(e),r=b.prototype._countBits(e)-1,a=0;a>=1;return a},c.prototype.permute=function(e,t,r,a,n,i){for(var o=0;o>>=1)n++;return 1<>>=13,r[2*i+1]=8191&n,n>>>=13;for(i=2*t;i>=26,t+=a/67108864|0,t+=n>>>26,this.words[r]=67108863&n}return 0!==t&&(this.words[r]=t,this.length++),this},b.prototype.muln=function(e){return this.clone().imuln(e)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new b(1);for(var r=this,a=0;a>>26-r<<26-r;if(0!=r){var i=0;for(t=0;t>>26-r}i&&(this.words[t]=i,this.length++)}if(0!=a){for(t=this.length-1;0<=t;t--)this.words[t+a]=this.words[t];for(t=0;t>>n<i)for(this.length-=i,c=0;c>>n,u=l&o}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(e,t,r){return g(0===this.negative),this.iushrn(e,t,r)},b.prototype.shln=function(e){return this.clone().ishln(e)},b.prototype.ushln=function(e){return this.clone().iushln(e)},b.prototype.shrn=function(e){return this.clone().ishrn(e)},b.prototype.ushrn=function(e){return this.clone().iushrn(e)},b.prototype.testn=function(e){g("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,a=1<>>t<>26)-(s/67108864|0),this.words[a+r]=67108863&n}for(;a>26,this.words[a+r]=67108863&n;if(0===o)return this.strip();for(g(-1===o),a=o=0;a>26,this.words[a]=67108863&n;return this.negative=1,this.strip()},b.prototype._wordDiv=function(e,t){var r=(this.length,e.length),a=this.clone(),n=e,i=0|n.words[n.length-1];0!=(r=26-this._countBits(i))&&(n=n.ushln(r),a.iushln(r),i=0|n.words[n.length-1]);var o,s=a.length-n.length;if("mod"!==t){(o=new b(null)).length=1+s,o.words=new Array(o.length);for(var c=0;cthis.length||this.cmp(e)<0?{div:new b(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new b(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new b(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,n,i},b.prototype.div=function(e){return this.divmod(e,"div",!1).div},b.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},b.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},b.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,a=e.ushrn(1),n=e.andln(1),i=r.cmp(a);return i<0||1===n&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},b.prototype.modn=function(e){g(e<=67108863);for(var t=(1<<26)%e,r=0,a=this.length-1;0<=a;a--)r=(t*r+(0|this.words[a]))%e;return r},b.prototype.idivn=function(e){g(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var a=(0|this.words[r])+67108864*t;this.words[r]=a/e|0,t=a%e}return this.strip()},b.prototype.divn=function(e){return this.clone().idivn(e)},b.prototype.egcd=function(e){g(0===e.negative),g(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new b(1),n=new b(0),i=new b(0),o=new b(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(0>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1e.length)return 1;if(this.lengththis.n;);var a=t>>22,n=i}n>>>=22,0===(e.words[a-10]=n)&&10>>=26,e.words[r]=n,t=a}return 0!==t&&(e.words[e.length++]=t),e},b._prime=function(e){if(u[e])return u[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new v;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return u[e]=t},k.prototype._verify1=function(e){g(0===e.negative,"red works only with positives"),g(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){g(0==(e.negative|t.negative),"red works only with positives"),g(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(g(t%2==1),3===t){var r=this.m.add(new b(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),n=0;!a.isZero()&&0===a.andln(1);)n++,a.iushrn(1);g(!a.isZero());var i=new b(1).toRed(this),o=i.redNeg(),s=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new b(2*c*c).toRed(this);0!==this.pow(c,s).cmp(o);)c.redIAdd(o);for(var u=this.pow(c,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),f=n;0!==p.cmp(i);){for(var d=p,h=0;0!==d.cmp(i);h++)d=d.redSqr();g(h>u&1;n!==r[0]&&(n=this.sqr(n)),0!=l||0!==i?(i<<=1,i|=l,(4===++o||0===a&&0===u)&&(n=this.mul(n,r[i]),i=o=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},b.mont=function(e){return new x(e)},r(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),a=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(a).iushrn(this.shift),i=n;return 0<=n.cmp(this.m)?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new b(0)._forceRed(this);var r=e.mul(t),a=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(a).iushrn(this.shift),i=n;return 0<=n.cmp(this.m)?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,_(97)(e))},function(s,e,g){(function(c){s.exports=r;var u,l=g(4),p=g(14),f=g(8),a=g(45),d=g(22),e=g(87).DiffieHellman,t=g(20),h=g(11),n=g(13);try{u=g(149)}catch(e){}var m=t.InvalidAlgorithmError,i=t.KeyParseError,o={};function r(e){l.object(e,"options"),l.arrayOfObject(e.parts,"options.parts"),l.string(e.type,"options.type"),l.optionalString(e.comment,"options.comment");var t=p.info[e.type];if("object"!=typeof t)throw new m(e.type);for(var r,a={},n=0;n=t.length){var o=i+1;r.push(e.slice(a,o-n)),a=o,n=0}a<=e.length&&r.push(e.slice(a,e.length));return r},addRSAMissing:function(e){p.object(e),u(e,s,[1,1]);var t,r=new b(e.part.d.data);if(!e.part.dmodp){var a=new b(e.part.p.data),n=r.mod(a.subtract(1));t=w(n),e.part.dmodp={name:"dmodp",data:t},e.parts.push(e.part.dmodp)}if(!e.part.dmodq){var i=new b(e.part.q.data),o=r.mod(i.subtract(1));t=w(o),e.part.dmodq={name:"dmodq",data:t},e.parts.push(e.part.dmodq)}},calculateDSAPublic:function(e,t,r){return p.buffer(e),p.buffer(t),p.buffer(r),e=new b(e),t=new b(t),r=new b(r),w(e.modPow(r,t))},calculateED25519Public:function(e){p.buffer(e);var t=a.sign.keyPair.fromSeed(new Uint8Array(e));return f.from(t.publicKey)},calculateX25519Public:function(e){p.buffer(e);var t=a.box.keyPair.fromSeed(new Uint8Array(e));return f.from(t.publicKey)},mpNormalize:y,mpDenormalize:function(e){p.buffer(e);for(;1c)return!1;if(a.constructor.name!==t.name)return!1;var i=a._sshpkApiVersion;void 0===i&&(i=t._oldVersionDetect(e));return!(i[0]!=r[0]||i[1]t;)p.equal(e[0],0),e=e.slice(1);for(;e.length=r[1],a+" must be compatible with "+t.name+" klass version "+r[0]+"."+r[1])}}var l={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}},v=8;function y(e){for(p.buffer(e);1>1)-1>1)-c:c,i.isubn(s)):s=0,a[o]=s,i.iushrn(1)}return a},a.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var a=0,n=0;0>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function n(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r,a,n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192,n[i++]=63&s|128):(a=o,55296!=(64512&(r=e).charCodeAt(a))||a<0||a+1>=r.length||56320!=(64512&r.charCodeAt(a+1))?n[i++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[i++]=s>>18|240,n[i++]=s>>12&63|128),n[i++]=s>>6&63|128,n[i++]=63&s|128)}else for(o=0;o>>0}return i},t.split32=function(e,t){for(var r=new Array(4*e.length),a=0,n=0;a>>24,r[n+1]=i>>>16&255,r[n+2]=i>>>8&255,r[n+3]=255&i):(r[n+3]=i>>>24,r[n+2]=i>>>16&255,r[n+1]=i>>>8&255,r[n]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,a){return e+t+r+a>>>0},t.sum32_5=function(e,t,r,a,n){return e+t+r+a+n>>>0},t.sum64=function(e,t,r,a){var n=e[t],i=a+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,a){return(t+a>>>0>>0},t.sum64_lo=function(e,t,r,a){return t+a>>>0},t.sum64_4_hi=function(e,t,r,a,n,i,o,s){var c=0,u=t;return c+=(u=u+a>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,a,n,i,o,s){return t+a+i+s>>>0},t.sum64_5_hi=function(e,t,r,a,n,i,o,s,c,u){var l=0,p=t;return l+=(p=p+a>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,a,n,i,o,s,c,u){return t+a+i+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){r(4);var a=r(6);function n(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="FingerprintFormatError",this.fingerprint=e,this.format=t,this.message="Fingerprint format is not supported, or is invalid: ",void 0!==e&&(this.message+=" fingerprint = "+e),void 0!==t&&(this.message+=" format = "+t)}function i(e){Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="InvalidAlgorithmError",this.algorithm=e,this.message='Algorithm "'+e+'" is not supported'}function o(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="KeyParseError",this.format=t,this.keyName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format key: "+r.message}function s(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="SignatureParseError",this.type=e,this.format=t,this.innerErr=r,this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+r.message}function c(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,c),this.name="CertificateParseError",this.format=t,this.certName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+r.message}function u(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.name="KeyEncryptedError",this.format=t,this.keyName=e,this.message="The "+t+" format key "+e+" is encrypted (password-protected), and no passphrase was provided in `options`"}a.inherits(n,Error),a.inherits(i,Error),a.inherits(o,Error),a.inherits(s,Error),a.inherits(c,Error),a.inherits(u,Error),e.exports={FingerprintFormatError:n,InvalidAlgorithmError:i,KeyParseError:o,SignatureParseError:s,KeyEncryptedError:u,CertificateParseError:c}},function(e,t,r){"use strict";var O=r(66),I=r(177);function A(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=i,t.resolve=function(e,t){return i(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?i(e,!1,!0).resolveObject(t):t},t.format=function(e){I.isString(e)&&(e=i(e));return e instanceof A?e.format():A.prototype.format.call(e)},t.Url=A;var B=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),R=["'"].concat(n),D=["%","/","?",";","#"].concat(R),q=["/","?","#"],N=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,U={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},K={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},$=r(53);function i(e,t,r){if(e&&I.isObject(e)&&e instanceof A)return e;var a=new A;return a.parse(e,t,r),a}A.prototype.parse=function(e,t,r){if(!I.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),n=-1!==a&&ao.length&&(p=o.length),u+=c.write(o.slice(l,p),u),c[u++]=10,l=p}return u+=c.write("-----END "+a+"-----\n",u),c.slice(0,u)}};var F=r(4),C=r(23),O=r(8),I=r(5).Buffer,B=(r(14),r(11)),f=r(10),d=r(13),M=r(88),R=r(49),D=r(61),q=r(27),N=r(20),L="1.2.840.113549.1.5.13",U="1.2.840.113549.1.5.12",H={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"},a={};Object.keys(H).forEach(function(e){a[H[e]]=e});var K={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},n={};Object.keys(K).forEach(function(e){n[K[e]]=e})},function(e,t,r){e.exports={read:a.bind(void 0,!1,void 0),readType:a.bind(void 0,!1),write:function(e,t){g.object(e);var r,a=c(e),n=v.info[e.type];k.isPrivateKey(e)&&(n=v.privInfo[e.type]);var i=n.parts,o=new x({});for(o.writeString(a),r=0;r + * @license MIT + */function i(e,t){if(e===t)return 0;for(var r=e.length,a=t.length,n=0,i=Math.min(r,a);nn&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(a);return n.listener=r,a.wrapFn=n}function d(e,t,r){var a=e._events;if(void 0===a)return[];var n=a[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var a=(4294967295&r)>>>0,n=(r-a)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},function(e,t,r){"use strict";var a=r(24),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var i=Object.create(r(17));i.inherits=r(1);var o=r(142),s=r(145);i.inherits(p,o);for(var c=n(s.prototype),u=0;u>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var a=0;a>>24&255,a[n++]=e>>>16&255,a[n++]=e>>>8&255,a[n++]=255&e}else for(a[n++]=255&e,a[n++]=e>>>8&255,a[n++]=e>>>16&255,a[n++]=e>>>24&255,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,i=8;i>15;0<=--i;){var c=32767&this[e],u=this[e++]>>15,l=s*c+u*o;n=((c=o*c+((32767&l)<<15)+r[a]+(1073741823&n))>>>30)+(l>>>15)+s*u+(n>>>30),r[a++]=1073741823&c}return n},30):t&&"Netscape"!=navigator.appName?(y.prototype.am=function(e,t,r,a,n,i){for(;0<=--i;){var o=t*this[e++]+r[a]+n;n=Math.floor(o/67108864),r[a++]=67108863&o}return n},26):(y.prototype.am=function(e,t,r,a,n,i){for(var o=16383&t,s=t>>14;0<=--i;){var c=16383&this[e],u=this[e++]>>14,l=s*c+u*o;n=((c=o*c+((16383&l)<<14)+r[a]+n)>>28)+(l>>14)+s*u,r[a++]=268435455&c}return n},28),y.prototype.DB=e,y.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function b(e){this.m=e}function v(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function d(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function h(){}function m(e){return e}function x(e){this.r2=w(),this.q3=w(),y.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}b.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},b.prototype.revert=function(e){return e},b.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},b.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},b.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},v.prototype.convert=function(e){var t=w();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,a,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},v.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},v.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},y.prototype.copyTo=function(e){for(var t=this.t-1;0<=t;--t)e[t]=this[t];e.t=this.t,e.s=this.s},y.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,0this.DB?(this[this.t-1]|=(o&(1<>this.DB-i):this[this.t-1]|=o<=this.DB&&(i-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,0>n|s,s=(this[r]&i)<=this.t)t.t=0;else{var a=e%this.DB,n=this.DB-a,i=(1<>a;for(var o=r+1;o>a;0>=this.DB;if(e.t>=this.DB;a+=this.s}else{for(a+=this.s;r>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t[r++]=this.DV+a:0=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}0>this.F2:0),f=this.FV/p,d=(1<>s)&&(n=!0,i=c(r));0<=o;)s>(s+=this.DB-t)):(r=this[o]>>(s-=t)&a,s<=0&&(s+=this.DB,--o)),02*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=w();return e.copyTo(t),this.reduce(t),t},x.prototype.revert=function(e){return e},x.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);0<=e.compareTo(this.m);)e.subTo(this.m,e)},x.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var _,j,S,E=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],A=(1<<26)/E[E.length-1];function P(){var e;e=(new Date).getTime(),j[S++]^=255&e,j[S++]^=e>>8&255,j[S++]^=e>>16&255,j[S++]^=e>>24&255,B<=S&&(S-=B)}if(y.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},y.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||36=r&&(this.dMultiply(a),this.dAddOffset(o,0),o=i=0))}0e&&this.subTo(y.ONE.shiftLeft(e-1),this);else{var a=new Array,n=7&e;a.length=1+(e>>3),t.nextBytes(a),0>=this.DB;if(e.t>=this.DB;a+=this.s}else{for(a+=this.s;r>=this.DB;a+=e.s}t.s=a<0?-1:0,0=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},y.prototype.multiplyLowerTo=function(e,t,r){var a,n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;0>1)&&(e=E.length);for(var n=w(),i=0;i>24},y.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},y.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},y.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,a=this.DB-e*this.DB%8,n=0;if(0>a)!=(this.s&this.DM)>>a&&(t[n++]=r|this.s<>(a+=this.DB-8)):(r=this[e]>>(a-=8)&255,a<=0&&(a+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==n&&(128&this.s)!=(128&r)&&++n,(0=this.t?0!=this.s:0!=(this[t]&1<>n-c&u:(p=(e[d]&(1<>this.DB+n-c)),s=r;0==(1&p);)p>>=1,--s;if((n-=s)<0&&(n+=this.DB,--d),h)o[p].copyTo(i),h=!1;else{for(;1>>8,j[S++]=255&z;S=0,P()}function C(){if(null==_){for(P(),(_=new I).init(j),S=0;S>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=a>>24&255,e[t+5]=a>>16&255,e[t+6]=a>>8&255,e[t+7]=255&a}function h(e,t,r,a,n){var i,o=0;for(i=0;i>>8)-1}function b(e,t,r,a){return h(e,t,r,a,16)}function v(e,t,r,a){return h(e,t,r,a,32)}function y(e,t,r,a){!function(e,t,r,a){for(var n,i=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,b=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,k=i,x=o,_=s,j=c,S=u,E=l,A=p,P=f,z=d,T=h,F=m,C=g,O=b,I=v,B=y,M=w,R=0;R<20;R+=2)k^=(n=(O^=(n=(z^=(n=(S^=(n=k+O|0)<<7|n>>>25)+k|0)<<9|n>>>23)+S|0)<<13|n>>>19)+z|0)<<18|n>>>14,E^=(n=(x^=(n=(I^=(n=(T^=(n=E+x|0)<<7|n>>>25)+E|0)<<9|n>>>23)+T|0)<<13|n>>>19)+I|0)<<18|n>>>14,F^=(n=(A^=(n=(_^=(n=(B^=(n=F+A|0)<<7|n>>>25)+F|0)<<9|n>>>23)+B|0)<<13|n>>>19)+_|0)<<18|n>>>14,M^=(n=(C^=(n=(P^=(n=(j^=(n=M+C|0)<<7|n>>>25)+M|0)<<9|n>>>23)+j|0)<<13|n>>>19)+P|0)<<18|n>>>14,k^=(n=(j^=(n=(_^=(n=(x^=(n=k+j|0)<<7|n>>>25)+k|0)<<9|n>>>23)+x|0)<<13|n>>>19)+_|0)<<18|n>>>14,E^=(n=(S^=(n=(P^=(n=(A^=(n=E+S|0)<<7|n>>>25)+E|0)<<9|n>>>23)+A|0)<<13|n>>>19)+P|0)<<18|n>>>14,F^=(n=(T^=(n=(z^=(n=(C^=(n=F+T|0)<<7|n>>>25)+F|0)<<9|n>>>23)+C|0)<<13|n>>>19)+z|0)<<18|n>>>14,M^=(n=(B^=(n=(I^=(n=(O^=(n=M+B|0)<<7|n>>>25)+M|0)<<9|n>>>23)+O|0)<<13|n>>>19)+I|0)<<18|n>>>14;k=k+i|0,x=x+o|0,_=_+s|0,j=j+c|0,S=S+u|0,E=E+l|0,A=A+p|0,P=P+f|0,z=z+d|0,T=T+h|0,F=F+m|0,C=C+g|0,O=O+b|0,I=I+v|0,B=B+y|0,M=M+w|0,e[0]=k>>>0&255,e[1]=k>>>8&255,e[2]=k>>>16&255,e[3]=k>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=j>>>0&255,e[13]=j>>>8&255,e[14]=j>>>16&255,e[15]=j>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=P>>>0&255,e[29]=P>>>8&255,e[30]=P>>>16&255,e[31]=P>>>24&255,e[32]=z>>>0&255,e[33]=z>>>8&255,e[34]=z>>>16&255,e[35]=z>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=F>>>0&255,e[41]=F>>>8&255,e[42]=F>>>16&255,e[43]=F>>>24&255,e[44]=C>>>0&255,e[45]=C>>>8&255,e[46]=C>>>16&255,e[47]=C>>>24&255,e[48]=O>>>0&255,e[49]=O>>>8&255,e[50]=O>>>16&255,e[51]=O>>>24&255,e[52]=I>>>0&255,e[53]=I>>>8&255,e[54]=I>>>16&255,e[55]=I>>>24&255,e[56]=B>>>0&255,e[57]=B>>>8&255,e[58]=B>>>16&255,e[59]=B>>>24&255,e[60]=M>>>0&255,e[61]=M>>>8&255,e[62]=M>>>16&255,e[63]=M>>>24&255}(e,t,r,a)}function w(e,t,r,a){!function(e,t,r,a){for(var n,i=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,b=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,k=0;k<20;k+=2)i^=(n=(b^=(n=(d^=(n=(u^=(n=i+b|0)<<7|n>>>25)+i|0)<<9|n>>>23)+u|0)<<13|n>>>19)+d|0)<<18|n>>>14,l^=(n=(o^=(n=(v^=(n=(h^=(n=l+o|0)<<7|n>>>25)+l|0)<<9|n>>>23)+h|0)<<13|n>>>19)+v|0)<<18|n>>>14,m^=(n=(p^=(n=(s^=(n=(y^=(n=m+p|0)<<7|n>>>25)+m|0)<<9|n>>>23)+y|0)<<13|n>>>19)+s|0)<<18|n>>>14,w^=(n=(g^=(n=(f^=(n=(c^=(n=w+g|0)<<7|n>>>25)+w|0)<<9|n>>>23)+c|0)<<13|n>>>19)+f|0)<<18|n>>>14,i^=(n=(c^=(n=(s^=(n=(o^=(n=i+c|0)<<7|n>>>25)+i|0)<<9|n>>>23)+o|0)<<13|n>>>19)+s|0)<<18|n>>>14,l^=(n=(u^=(n=(f^=(n=(p^=(n=l+u|0)<<7|n>>>25)+l|0)<<9|n>>>23)+p|0)<<13|n>>>19)+f|0)<<18|n>>>14,m^=(n=(h^=(n=(d^=(n=(g^=(n=m+h|0)<<7|n>>>25)+m|0)<<9|n>>>23)+g|0)<<13|n>>>19)+d|0)<<18|n>>>14,w^=(n=(y^=(n=(v^=(n=(b^=(n=w+y|0)<<7|n>>>25)+w|0)<<9|n>>>23)+b|0)<<13|n>>>19)+v|0)<<18|n>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=p>>>0&255,e[17]=p>>>8&255,e[18]=p>>>16&255,e[19]=p>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=d>>>0&255,e[25]=d>>>8&255,e[26]=d>>>16&255,e[27]=d>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,r,a)}var k=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(e,t,r,a,n,i,o){var s,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=i[c];for(;64<=n;){for(y(l,u,o,k),c=0;c<64;c++)e[t+c]=r[a+c]^l[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;n-=64,t+=64,a+=64}if(0>>=8;r-=64,t+=64}if(0>>13|r<<3),a=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|a<<6),n=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(a>>>7|n<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(n>>>4|i<<12),this.r[5]=i>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|o<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,r,a,n,i){var o=new E(i);return o.update(r,a,n),o.finish(e,t),0}function P(e,t,r,a,n,i){var o=new Uint8Array(16);return A(o,0,r,a,n,i),b(e,t,o,0)}function z(e,t,r,a,n){var i;if(r<32)return-1;for(S(e,0,t,0,r,a,n),A(e,16,e,32,r-32,e),i=0;i<16;i++)e[i]=0;return 0}function T(e,t,r,a,n){var i,o=new Uint8Array(32);if(r<32)return-1;if(j(o,0,32,a,n),0!==P(t,16,t,32,r-32,o))return-1;for(S(e,0,t,0,r,a,n),i=0;i<32;i++)e[i]=0;return 0}function F(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function C(e){var t,r,a=1;for(t=0;t<16;t++)r=e[t]+a+65535,a=Math.floor(r/65536),e[t]=r-65536*a;e[0]+=a-1+37*(a-1)}function O(e,t,r){for(var a,n=~(r-1),i=0;i<16;i++)a=n&(e[i]^t[i]),e[i]^=a,t[i]^=a}function I(e,t){var r,a,n,i=m(),o=m();for(r=0;r<16;r++)o[r]=t[r];for(C(o),C(o),C(o),a=0;a<2;a++){for(i[0]=o[0]-65517,r=1;r<15;r++)i[r]=o[r]-65535-(i[r-1]>>16&1),i[r-1]&=65535;i[15]=o[15]-32767-(i[14]>>16&1),n=i[15]>>16&1,i[14]&=65535,O(o,i,1-n)}for(r=0;r<16;r++)e[2*r]=255&o[r],e[2*r+1]=o[r]>>8}function B(e,t){var r=new Uint8Array(32),a=new Uint8Array(32);return I(r,e),I(a,t),v(r,0,a,0)}function M(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function R(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function D(e,t,r){for(var a=0;a<16;a++)e[a]=t[a]+r[a]}function q(e,t,r){for(var a=0;a<16;a++)e[a]=t[a]-r[a]}function N(e,t,r){var a,n,i=0,o=0,s=0,c=0,u=0,l=0,p=0,f=0,d=0,h=0,m=0,g=0,b=0,v=0,y=0,w=0,k=0,x=0,_=0,j=0,S=0,E=0,A=0,P=0,z=0,T=0,F=0,C=0,O=0,I=0,B=0,M=r[0],R=r[1],D=r[2],q=r[3],N=r[4],L=r[5],U=r[6],H=r[7],K=r[8],$=r[9],V=r[10],Z=r[11],W=r[12],Q=r[13],Y=r[14],G=r[15];i+=(a=t[0])*M,o+=a*R,s+=a*D,c+=a*q,u+=a*N,l+=a*L,p+=a*U,f+=a*H,d+=a*K,h+=a*$,m+=a*V,g+=a*Z,b+=a*W,v+=a*Q,y+=a*Y,w+=a*G,o+=(a=t[1])*M,s+=a*R,c+=a*D,u+=a*q,l+=a*N,p+=a*L,f+=a*U,d+=a*H,h+=a*K,m+=a*$,g+=a*V,b+=a*Z,v+=a*W,y+=a*Q,w+=a*Y,k+=a*G,s+=(a=t[2])*M,c+=a*R,u+=a*D,l+=a*q,p+=a*N,f+=a*L,d+=a*U,h+=a*H,m+=a*K,g+=a*$,b+=a*V,v+=a*Z,y+=a*W,w+=a*Q,k+=a*Y,x+=a*G,c+=(a=t[3])*M,u+=a*R,l+=a*D,p+=a*q,f+=a*N,d+=a*L,h+=a*U,m+=a*H,g+=a*K,b+=a*$,v+=a*V,y+=a*Z,w+=a*W,k+=a*Q,x+=a*Y,_+=a*G,u+=(a=t[4])*M,l+=a*R,p+=a*D,f+=a*q,d+=a*N,h+=a*L,m+=a*U,g+=a*H,b+=a*K,v+=a*$,y+=a*V,w+=a*Z,k+=a*W,x+=a*Q,_+=a*Y,j+=a*G,l+=(a=t[5])*M,p+=a*R,f+=a*D,d+=a*q,h+=a*N,m+=a*L,g+=a*U,b+=a*H,v+=a*K,y+=a*$,w+=a*V,k+=a*Z,x+=a*W,_+=a*Q,j+=a*Y,S+=a*G,p+=(a=t[6])*M,f+=a*R,d+=a*D,h+=a*q,m+=a*N,g+=a*L,b+=a*U,v+=a*H,y+=a*K,w+=a*$,k+=a*V,x+=a*Z,_+=a*W,j+=a*Q,S+=a*Y,E+=a*G,f+=(a=t[7])*M,d+=a*R,h+=a*D,m+=a*q,g+=a*N,b+=a*L,v+=a*U,y+=a*H,w+=a*K,k+=a*$,x+=a*V,_+=a*Z,j+=a*W,S+=a*Q,E+=a*Y,A+=a*G,d+=(a=t[8])*M,h+=a*R,m+=a*D,g+=a*q,b+=a*N,v+=a*L,y+=a*U,w+=a*H,k+=a*K,x+=a*$,_+=a*V,j+=a*Z,S+=a*W,E+=a*Q,A+=a*Y,P+=a*G,h+=(a=t[9])*M,m+=a*R,g+=a*D,b+=a*q,v+=a*N,y+=a*L,w+=a*U,k+=a*H,x+=a*K,_+=a*$,j+=a*V,S+=a*Z,E+=a*W,A+=a*Q,P+=a*Y,z+=a*G,m+=(a=t[10])*M,g+=a*R,b+=a*D,v+=a*q,y+=a*N,w+=a*L,k+=a*U,x+=a*H,_+=a*K,j+=a*$,S+=a*V,E+=a*Z,A+=a*W,P+=a*Q,z+=a*Y,T+=a*G,g+=(a=t[11])*M,b+=a*R,v+=a*D,y+=a*q,w+=a*N,k+=a*L,x+=a*U,_+=a*H,j+=a*K,S+=a*$,E+=a*V,A+=a*Z,P+=a*W,z+=a*Q,T+=a*Y,F+=a*G,b+=(a=t[12])*M,v+=a*R,y+=a*D,w+=a*q,k+=a*N,x+=a*L,_+=a*U,j+=a*H,S+=a*K,E+=a*$,A+=a*V,P+=a*Z,z+=a*W,T+=a*Q,F+=a*Y,C+=a*G,v+=(a=t[13])*M,y+=a*R,w+=a*D,k+=a*q,x+=a*N,_+=a*L,j+=a*U,S+=a*H,E+=a*K,A+=a*$,P+=a*V,z+=a*Z,T+=a*W,F+=a*Q,C+=a*Y,O+=a*G,y+=(a=t[14])*M,w+=a*R,k+=a*D,x+=a*q,_+=a*N,j+=a*L,S+=a*U,E+=a*H,A+=a*K,P+=a*$,z+=a*V,T+=a*Z,F+=a*W,C+=a*Q,O+=a*Y,I+=a*G,w+=(a=t[15])*M,o+=38*(x+=a*D),s+=38*(_+=a*q),c+=38*(j+=a*N),u+=38*(S+=a*L),l+=38*(E+=a*U),p+=38*(A+=a*H),f+=38*(P+=a*K),d+=38*(z+=a*$),h+=38*(T+=a*V),m+=38*(F+=a*Z),g+=38*(C+=a*W),b+=38*(O+=a*Q),v+=38*(I+=a*Y),y+=38*(B+=a*G),i=(a=(i+=38*(k+=a*R))+(n=1)+65535)-65536*(n=Math.floor(a/65536)),o=(a=o+n+65535)-65536*(n=Math.floor(a/65536)),s=(a=s+n+65535)-65536*(n=Math.floor(a/65536)),c=(a=c+n+65535)-65536*(n=Math.floor(a/65536)),u=(a=u+n+65535)-65536*(n=Math.floor(a/65536)),l=(a=l+n+65535)-65536*(n=Math.floor(a/65536)),p=(a=p+n+65535)-65536*(n=Math.floor(a/65536)),f=(a=f+n+65535)-65536*(n=Math.floor(a/65536)),d=(a=d+n+65535)-65536*(n=Math.floor(a/65536)),h=(a=h+n+65535)-65536*(n=Math.floor(a/65536)),m=(a=m+n+65535)-65536*(n=Math.floor(a/65536)),g=(a=g+n+65535)-65536*(n=Math.floor(a/65536)),b=(a=b+n+65535)-65536*(n=Math.floor(a/65536)),v=(a=v+n+65535)-65536*(n=Math.floor(a/65536)),y=(a=y+n+65535)-65536*(n=Math.floor(a/65536)),w=(a=w+n+65535)-65536*(n=Math.floor(a/65536)),i=(a=(i+=n-1+37*(n-1))+(n=1)+65535)-65536*(n=Math.floor(a/65536)),o=(a=o+n+65535)-65536*(n=Math.floor(a/65536)),s=(a=s+n+65535)-65536*(n=Math.floor(a/65536)),c=(a=c+n+65535)-65536*(n=Math.floor(a/65536)),u=(a=u+n+65535)-65536*(n=Math.floor(a/65536)),l=(a=l+n+65535)-65536*(n=Math.floor(a/65536)),p=(a=p+n+65535)-65536*(n=Math.floor(a/65536)),f=(a=f+n+65535)-65536*(n=Math.floor(a/65536)),d=(a=d+n+65535)-65536*(n=Math.floor(a/65536)),h=(a=h+n+65535)-65536*(n=Math.floor(a/65536)),m=(a=m+n+65535)-65536*(n=Math.floor(a/65536)),g=(a=g+n+65535)-65536*(n=Math.floor(a/65536)),b=(a=b+n+65535)-65536*(n=Math.floor(a/65536)),v=(a=v+n+65535)-65536*(n=Math.floor(a/65536)),y=(a=y+n+65535)-65536*(n=Math.floor(a/65536)),w=(a=w+n+65535)-65536*(n=Math.floor(a/65536)),i+=n-1+37*(n-1),e[0]=i,e[1]=o,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=p,e[7]=f,e[8]=d,e[9]=h,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=y,e[15]=w}function L(e,t){N(e,t,t)}function U(e,t){var r,a=m();for(r=0;r<16;r++)a[r]=t[r];for(r=253;0<=r;r--)L(a,a),2!==r&&4!==r&&N(a,a,t);for(r=0;r<16;r++)e[r]=a[r]}function H(e,t,r){var a,n,i=new Uint8Array(32),o=new Float64Array(80),s=m(),c=m(),u=m(),l=m(),p=m(),f=m();for(n=0;n<31;n++)i[n]=t[n];for(i[31]=127&t[31]|64,i[0]&=248,R(o,r),n=0;n<16;n++)c[n]=o[n],l[n]=s[n]=u[n]=0;for(s[0]=l[0]=1,n=254;0<=n;--n)O(s,c,a=i[n>>>3]>>>(7&n)&1),O(u,l,a),D(p,s,u),q(s,s,u),D(u,c,l),q(c,c,l),L(l,p),L(f,s),N(s,u,s),N(u,c,p),D(p,s,u),q(s,s,u),L(c,s),q(u,l,f),N(s,u,g),D(s,s,l),N(u,u,s),N(s,l,f),N(l,c,o),L(c,p),O(s,c,a),O(u,l,a);for(n=0;n<16;n++)o[n+16]=s[n],o[n+32]=u[n],o[n+48]=c[n],o[n+64]=l[n];var d=o.subarray(32),h=o.subarray(16);return U(d,d),N(h,h,d),I(e,h),0}function K(e,t){return H(e,t,r)}function $(e,t){return o(t,32),K(e,t)}function V(e,t,r){var a=new Uint8Array(32);return H(a,r,t),w(e,n,a,k)}E.prototype.blocks=function(e,t,r){for(var a,n,i,o,s,c,u,l,p,f,d,h,m,g,b,v,y,w,k,x=this.fin?0:2048,_=this.h[0],j=this.h[1],S=this.h[2],E=this.h[3],A=this.h[4],P=this.h[5],z=this.h[6],T=this.h[7],F=this.h[8],C=this.h[9],O=this.r[0],I=this.r[1],B=this.r[2],M=this.r[3],R=this.r[4],D=this.r[5],q=this.r[6],N=this.r[7],L=this.r[8],U=this.r[9];16<=r;)f=p=0,f+=(_+=8191&(a=255&e[t+0]|(255&e[t+1])<<8))*O,f+=(j+=8191&(a>>>13|(n=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*U),f+=(S+=8191&(n>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*L),f+=(E+=8191&(i>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*N),p=(f+=(A+=8191&(o>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*q))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*D),f+=(z+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*R),f+=(T+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*M),f+=(F+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*B),d=p+=(f+=(C+=l>>>5|x)*(5*I))>>>13,d+=_*I,d+=j*O,d+=S*(5*U),d+=E*(5*L),p=(d+=A*(5*N))>>>13,d&=8191,d+=P*(5*q),d+=z*(5*D),d+=T*(5*R),d+=F*(5*M),p+=(d+=C*(5*B))>>>13,d&=8191,h=p,h+=_*B,h+=j*I,h+=S*O,h+=E*(5*U),p=(h+=A*(5*L))>>>13,h&=8191,h+=P*(5*N),h+=z*(5*q),h+=T*(5*D),h+=F*(5*R),m=p+=(h+=C*(5*M))>>>13,m+=_*M,m+=j*B,m+=S*I,m+=E*O,p=(m+=A*(5*U))>>>13,m&=8191,m+=P*(5*L),m+=z*(5*N),m+=T*(5*q),m+=F*(5*D),g=p+=(m+=C*(5*R))>>>13,g+=_*R,g+=j*M,g+=S*B,g+=E*I,p=(g+=A*O)>>>13,g&=8191,g+=P*(5*U),g+=z*(5*L),g+=T*(5*N),g+=F*(5*q),b=p+=(g+=C*(5*D))>>>13,b+=_*D,b+=j*R,b+=S*M,b+=E*B,p=(b+=A*I)>>>13,b&=8191,b+=P*O,b+=z*(5*U),b+=T*(5*L),b+=F*(5*N),v=p+=(b+=C*(5*q))>>>13,v+=_*q,v+=j*D,v+=S*R,v+=E*M,p=(v+=A*B)>>>13,v&=8191,v+=P*I,v+=z*O,v+=T*(5*U),v+=F*(5*L),y=p+=(v+=C*(5*N))>>>13,y+=_*N,y+=j*q,y+=S*D,y+=E*R,p=(y+=A*M)>>>13,y&=8191,y+=P*B,y+=z*I,y+=T*O,y+=F*(5*U),w=p+=(y+=C*(5*L))>>>13,w+=_*L,w+=j*N,w+=S*q,w+=E*D,p=(w+=A*R)>>>13,w&=8191,w+=P*M,w+=z*B,w+=T*I,w+=F*O,k=p+=(w+=C*(5*U))>>>13,k+=_*U,k+=j*L,k+=S*N,k+=E*q,p=(k+=A*D)>>>13,k&=8191,k+=P*R,k+=z*M,k+=T*B,k+=F*I,_=f=8191&(p=(p=((p+=(k+=C*O)>>>13)<<2)+p|0)+(f&=8191)|0),j=d+=p>>>=13,S=h&=8191,E=m&=8191,A=g&=8191,P=b&=8191,z=v&=8191,T=y&=8191,F=w&=8191,C=k&=8191,t+=16,r-=16;this.h[0]=_,this.h[1]=j,this.h[2]=S,this.h[3]=E,this.h[4]=A,this.h[5]=P,this.h[6]=z,this.h[7]=T,this.h[8]=F,this.h[9]=C},E.prototype.finish=function(e,t){var r,a,n,i,o=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,i=1;i<10;i++)o[i]=this.h[i]+r,r=o[i]>>>13,o[i]&=8191;for(o[9]-=8192,a=(1^r)-1,i=0;i<10;i++)o[i]&=a;for(a=~a,i=0;i<10;i++)this.h[i]=this.h[i]&a|o[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,i=1;i<8;i++)n=(this.h[i]+this.pad[i]|0)+(n>>>16)|0,this.h[i]=65535&n;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,r){var a,n;if(this.leftover){for(r<(n=16-this.leftover)&&(n=r),a=0;a>>16,E=65535&(x=R),A=x>>>16,j+=65535&(_=((h=U)>>>14|(s=I)<<18)^(U>>>18|I<<14)^(I>>>9|U<<23)),S+=_>>>16,E+=65535&(x=(I>>>14|U<<18)^(I>>>18|U<<14)^(U>>>9|I<<23)),A+=x>>>16,j+=65535&(_=U&(m=H)^~U&(g=K)),S+=_>>>16,E+=65535&(x=I&(c=B)^~I&(u=M)),A+=x>>>16,x=Q[2*w],j+=65535&(_=Q[2*w+1]),S+=_>>>16,E+=65535&x,A+=x>>>16,x=P[w%16],S+=(_=z[w%16])>>>16,E+=65535&x,A+=x>>>16,E+=(S+=(j+=65535&_)>>>16)>>>16,j=65535&(_=y=65535&j|S<<16),S=_>>>16,E=65535&(x=v=65535&E|(A+=E>>>16)<<16),A=x>>>16,j+=65535&(_=(D>>>28|T<<4)^(T>>>2|D<<30)^(T>>>7|D<<25)),S+=_>>>16,E+=65535&(x=(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)),A+=x>>>16,S+=(_=D&q^D&N^q&N)>>>16,E+=65535&(x=T&F^T&C^F&C),A+=x>>>16,l=65535&(E+=(S+=(j+=65535&_)>>>16)>>>16)|(A+=E>>>16)<<16,b=65535&j|S<<16,j=65535&(_=d),S=_>>>16,E=65535&(x=o),A=x>>>16,S+=(_=y)>>>16,E+=65535&(x=v),A+=x>>>16,F=T,C=n,O=i,I=o=65535&(E+=(S+=(j+=65535&_)>>>16)>>>16)|(A+=E>>>16)<<16,B=s,M=c,R=u,T=l,q=D,N=p,L=f,U=d=65535&j|S<<16,H=h,K=m,$=g,D=b,w%16==15)for(k=0;k<16;k++)x=P[k],j=65535&(_=z[k]),S=_>>>16,E=65535&x,A=x>>>16,x=P[(k+9)%16],j+=65535&(_=z[(k+9)%16]),S+=_>>>16,E+=65535&x,A+=x>>>16,v=P[(k+1)%16],j+=65535&(_=((y=z[(k+1)%16])>>>1|v<<31)^(y>>>8|v<<24)^(y>>>7|v<<25)),S+=_>>>16,E+=65535&(x=(v>>>1|y<<31)^(v>>>8|y<<24)^v>>>7),A+=x>>>16,v=P[(k+14)%16],S+=(_=((y=z[(k+14)%16])>>>19|v<<13)^(v>>>29|y<<3)^(y>>>6|v<<26))>>>16,E+=65535&(x=(v>>>19|y<<13)^(y>>>29|v<<3)^v>>>6),A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,P[k]=65535&E|A<<16,z[k]=65535&j|S<<16;j=65535&(_=D),S=_>>>16,E=65535&(x=T),A=x>>>16,x=e[0],S+=(_=t[0])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[0]=T=65535&E|A<<16,t[0]=D=65535&j|S<<16,j=65535&(_=q),S=_>>>16,E=65535&(x=F),A=x>>>16,x=e[1],S+=(_=t[1])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[1]=F=65535&E|A<<16,t[1]=q=65535&j|S<<16,j=65535&(_=N),S=_>>>16,E=65535&(x=C),A=x>>>16,x=e[2],S+=(_=t[2])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[2]=C=65535&E|A<<16,t[2]=N=65535&j|S<<16,j=65535&(_=L),S=_>>>16,E=65535&(x=O),A=x>>>16,x=e[3],S+=(_=t[3])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[3]=O=65535&E|A<<16,t[3]=L=65535&j|S<<16,j=65535&(_=U),S=_>>>16,E=65535&(x=I),A=x>>>16,x=e[4],S+=(_=t[4])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[4]=I=65535&E|A<<16,t[4]=U=65535&j|S<<16,j=65535&(_=H),S=_>>>16,E=65535&(x=B),A=x>>>16,x=e[5],S+=(_=t[5])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[5]=B=65535&E|A<<16,t[5]=H=65535&j|S<<16,j=65535&(_=K),S=_>>>16,E=65535&(x=M),A=x>>>16,x=e[6],S+=(_=t[6])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[6]=M=65535&E|A<<16,t[6]=K=65535&j|S<<16,j=65535&(_=$),S=_>>>16,E=65535&(x=R),A=x>>>16,x=e[7],S+=(_=t[7])>>>16,E+=65535&x,A+=x>>>16,A+=(E+=(S+=(j+=65535&_)>>>16)>>>16)>>>16,e[7]=R=65535&E|A<<16,t[7]=$=65535&j|S<<16,V+=128,a-=128}return a}function G(e,t,r){var a,n=new Int32Array(8),i=new Int32Array(8),o=new Uint8Array(256),s=r;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Y(n,i,t,r),r%=128,a=0;a>(7&n)&1),X(t,e),X(e,e),J(e,t,a)}function re(e,t){var r=[m(),m(),m(),m()];F(r[0],a),F(r[1],s),F(r[2],l),N(r[3],a,s),te(e,r,t)}function ae(e,t,r){var a,n=new Uint8Array(64),i=[m(),m(),m(),m()];for(r||o(t,32),G(n,t,32),n[0]&=248,n[31]&=127,n[31]|=64,re(i,n),ee(e,i),a=0;a<32;a++)t[a+32]=e[a];return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var r,a,n,i;for(a=63;32<=a;--a){for(r=0,n=a-32,i=a-12;n>8,t[n]-=256*r;t[n]+=r,t[a]=0}for(n=r=0;n<32;n++)t[n]+=r-(t[31]>>4)*ne[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=r*ne[n];for(a=0;a<32;a++)t[a+1]+=t[a]>>8,e[a]=255&t[a]}function oe(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function se(e,t,r,a){var n,i,o=new Uint8Array(64),s=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),l=[m(),m(),m(),m()];G(o,a,32),o[0]&=248,o[31]&=127,o[31]|=64;var p=r+64;for(n=0;n>7&&q(e[0],u,e[0]),N(e[3],e[0],e[1])}function ue(e,t,r,a){var n,i=new Uint8Array(32),o=new Uint8Array(64),s=[m(),m(),m(),m()],c=[m(),m(),m(),m()];if(r<64)return-1;if(ce(c,a))return-1;for(n=0;n=this._buffer.length},i.prototype.remainder=function(){return this._buffer.slice(this._offset)},i.prototype.skip=function(e){this._offset+=e},i.prototype.expand=function(){this._size*=2;var e=n.alloc(this._size);this._buffer.copy(e,0),this._buffer=e},i.prototype.readPart=function(){return{data:this.readBuffer()}},i.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4,a.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);return this._offset+=e,t},i.prototype.readString=function(){return this.readBuffer().toString()},i.prototype.readCString=function(){for(var e=this._offset;ethis._size;)this.expand();this._buffer.writeUInt32BE(e.length,this._offset),this._offset+=4,e.copy(this._buffer,this._offset),this._offset+=e.length},i.prototype.writeString=function(e){this.writeBuffer(n.from(e,"utf8"))},i.prototype.writeCString=function(e){for(;this._offset+1+e.length>this._size;)this.expand();this._buffer.write(e,this._offset),this._offset+=e.length,this._buffer[this._offset++]=0},i.prototype.writeInt=function(e){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(e,this._offset),this._offset+=4},i.prototype.writeInt64=function(e){if(a.buffer(e,"value"),8this._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=8},i.prototype.writeChar=function(e){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=e},i.prototype.writePart=function(e){this.writeBuffer(e.data)},i.prototype.write=function(e){for(;this._offset+e.length>this._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=e.length}},function(e,t,r){e.exports={read:function(e,t){return a.read(e,t,"pkcs8")},readPkcs8:function(e,t,r){r.peek()===g.Ber.Integer&&(m.strictEqual(t,"private","unexpected Integer at start of public key"),r.readString(g.Ber.Integer,!0));r.readSequence();var a=r.offset+r.length,n=r.readOID();switch(n){case"1.2.840.113549.1.1.1":return r._offset=a,("public"===t?function(e){e.readSequence(g.Ber.BitString),e.readByte(),e.readSequence();var t=l(e,"modulus"),r=l(e,"exponent"),a={type:"rsa",source:e.originalInput,parts:[{name:"e",data:r},{name:"n",data:t}]};return new i(a)}:function(e){e.readSequence(g.Ber.OctetString),e.readSequence();var t=l(e,"version");m.equal(t[0],0,"unknown RSA private key version");var r=l(e,"modulus"),a=l(e,"public exponent"),n=l(e,"private exponent"),i=l(e,"prime1"),o=l(e,"prime2"),s=l(e,"exponent1"),c=l(e,"exponent2"),u=l(e,"iqmp");return new p({type:"rsa",parts:[{name:"n",data:r},{name:"e",data:a},{name:"d",data:n},{name:"iqmp",data:u},{name:"p",data:i},{name:"q",data:o},{name:"dmodp",data:s},{name:"dmodq",data:c}]})})(r);case"1.2.840.10040.4.1":return("public"===t?function(e){e.readSequence();var t=l(e,"p"),r=l(e,"q"),a=l(e,"g");e.readSequence(g.Ber.BitString),e.readByte();var n=l(e,"y");return new i({type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:a},{name:"y",data:n}]})}:function(e){e.readSequence();var t=l(e,"p"),r=l(e,"q"),a=l(e,"g");e.readSequence(g.Ber.OctetString);var n=l(e,"x"),i=y.calculateDSAPublic(a,t,n);return new p({type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:a},{name:"y",data:i},{name:"x",data:n}]})})(r);case"1.2.840.10045.2.1":return("public"===t?function(e){var t=s(e);m.string(t,"a known elliptic curve");var r=e.readString(g.Ber.BitString,!0);r=y.ecNormalize(r);var a={type:"ecdsa",parts:[{name:"curve",data:b.from(t)},{name:"Q",data:r}]};return new i(a)}:function(e){var t=s(e);m.string(t,"a known elliptic curve"),e.readSequence(g.Ber.OctetString),e.readSequence();var r=l(e,"version");m.equal(r[0],1,"unknown version of ECDSA key");var a,n=e.readString(g.Ber.OctetString,!0);160==e.peek()&&(e.readSequence(160),e._offset+=e.length);161==e.peek()&&(e.readSequence(161),a=e.readString(g.Ber.BitString,!0),a=y.ecNormalize(a));if(void 0===a){var i=y.publicFromPrivateECDSA(t,n);a=i.part.Q.data}var o={type:"ecdsa",parts:[{name:"curve",data:b.from(t)},{name:"Q",data:a},{name:"d",data:n}]};return new p(o)})(r);case"1.3.101.112":return("public"===t?function(e){0===e.peek()&&e.readByte();var t=y.readBitString(e),r={type:"ed25519",parts:[{name:"A",data:y.zeroPadToLength(t,32)}]};return new i(r)}:function(e){0===e.peek()&&e.readByte();e.readSequence(g.Ber.OctetString);var t,r=e.readString(g.Ber.OctetString,!0);r=y.zeroPadToLength(r,32),t=e.peek()===g.Ber.BitString?(t=y.readBitString(e),y.zeroPadToLength(t,32)):y.calculateED25519Public(r);var a={type:"ed25519",parts:[{name:"A",data:y.zeroPadToLength(t,32)},{name:"k",data:y.zeroPadToLength(r,32)}]};return new p(a)})(r);case"1.3.101.110":return("public"===t?function(e){var t=y.readBitString(e),r={type:"curve25519",parts:[{name:"A",data:y.zeroPadToLength(t,32)}]};return new i(r)}:function(e){0===e.peek()&&e.readByte();e.readSequence(g.Ber.OctetString);var t=e.readString(g.Ber.OctetString,!0);t=y.zeroPadToLength(t,32);var r=y.calculateX25519Public(t),a={type:"curve25519",parts:[{name:"A",data:y.zeroPadToLength(r,32)},{name:"k",data:y.zeroPadToLength(t,32)}]};return new p(a)})(r);default:throw new Error("Unknown key type OID "+n)}},write:function(e,t){return a.write(e,t,"pkcs8")},writePkcs8:n,pkcs8ToBuffer:function(e){var t=new g.BerWriter;return n(t,e),t.buffer},readECDSACurve:s,writeECDSACurve:f};var m=r(4),g=r(23),b=r(5).Buffer,v=r(14),y=r(11),i=r(10),p=r(13),a=r(26);function l(e,t){return m.strictEqual(e.peek(),g.Ber.Integer,t+" is not an Integer"),y.mpNormalize(e.readString(g.Ber.Integer,!0))}function s(e){var t,r,a,n,i;if(e.peek()===g.Ber.OID){var o=e.readOID();for(r=Object.keys(v.curves),a=0;a=this.validFrom.getTime()&&e.getTime()>>24]^l[h>>>16&255]^p[m>>>8&255]^f[255&g]^t[b++],o=u[h>>>24]^l[m>>>16&255]^p[g>>>8&255]^f[255&d]^t[b++],s=u[m>>>24]^l[g>>>16&255]^p[d>>>8&255]^f[255&h]^t[b++],c=u[g>>>24]^l[d>>>16&255]^p[h>>>8&255]^f[255&m]^t[b++],d=i,h=o,m=s,g=c;return i=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[m>>>8&255]<<8|a[255&g])^t[b++],o=(a[h>>>24]<<24|a[m>>>16&255]<<16|a[g>>>8&255]<<8|a[255&d])^t[b++],s=(a[m>>>24]<<24|a[g>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^t[b++],c=(a[g>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&m])^t[b++],[i>>>=0,o>>>=0,s>>>=0,c>>>=0]}var p=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],a=[],n=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99;var l=e[a[r[o]=u]=o],p=e[l],f=e[p],d=257*e[u]^16843008*u;n[0][o]=d<<24|d>>>8,n[1][o]=d<<16|d>>>16,n[2][o]=d<<8|d>>>24,n[3][o]=d,d=16843009*f^65537*p^257*l^16843008*o,i[0][u]=d<<24|d>>>8,i[1][u]=d<<16|d>>>16,i[2][u]=d<<8|d>>>24,i[3][u]=d,0===o?o=s=1:(o=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:a,SUB_MIX:n,INV_SUB_MIX:i}}();function s(e){this._key=i(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,a=4*(r+1),n=[],i=0;i>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=p[i/t|0]<<24):6>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]),n[i]=n[i-t]^o}for(var s=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[l>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[l>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&l]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},s.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},s.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=s},function(e,t,r){var d=r(2).Buffer,h=r(70);e.exports=function(e,t,r,a){if(d.isBuffer(e)||(e=d.from(e,"binary")),t&&(d.isBuffer(t)||(t=d.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,i=d.alloc(n),o=d.alloc(a||0),s=d.alloc(0);0>1]):o.mixedAdd(n[-c-1>>1].neg()):0>1]):o.add(n[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},i.prototype._wnafMulAdd=function(e,t,r,a,n){for(var i=this._wnafT1,o=this._wnafT2,s=this._wnafT3,c=0,u=0;u>1]:j<0&&(_=o[g][-j-1>>1].neg()),y="affine"===_.type?y.mixedAdd(_):y.add(_))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,n=0;nr.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var n=this.curve.getInfinity(),i=this.add(t);0<=a;)n=n.twice(),e.testBit(a)?n=r.testBit(a)?n.add(i):n.add(this):r.testBit(a)&&(n=n.add(t)),--a;return n},n.prototype.getQ=function(){return this.q},n.prototype.getA=function(){return this.a},n.prototype.getB=function(){return this.b},n.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},n.prototype.getInfinity=function(){return this.infinity},n.prototype.fromBigInteger=function(e){return new l(this.q,e)},n.prototype.reduce=function(e){this.reducer.reduce(e)},n.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),a=this.getQ().toString(16).length;for(a%2!=0&&a++;t.lengtht+1;){var r=e.shiftRight(t),a=e.subtract(r.shiftLeft(t));this.getR().equals(d.ONE)||(r=r.multiply(this.getR())),e=r.add(a)}for(;0<=e.compareTo(q);)e=e.subtract(q)}else e=e.mod(q);return e},l.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new l(this.q,this.x.modPow(this.q.shiftRight(2).add(d.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(d.ONE),r=t.shiftRight(1);if(!this.x.modPow(r,this.q).equals(d.ONE))return null;var a,n,i=t.shiftRight(2).shiftLeft(1).add(d.ONE),o=this.x,s=modDouble(modDouble(o));do{for(var c;0<=(c=new d(this.q.bitLength(),new SecureRandom)).compareTo(this.q)||!c.multiply(c).subtract(s).modPow(r,this.q).equals(t););var u=this.lucasSequence(c,o,i);if(a=u[0],n=u[1],this.modMult(n,n).equals(s))return n.testBit(0)&&(n=n.add(q)),n=n.shiftRight(1),new l(q,n)}while(a.equals(d.ONE)||a.equals(t));return null},l.prototype.lucasSequence=function(e,t,r){for(var a=r.bitLength(),n=r.getLowestSetBit(),i=d.ONE,o=d.TWO,s=e,c=d.ONE,u=d.ONE,l=a-1;n+1<=l;--l)c=this.modMult(c,u),r.testBit(l)?(u=this.modMult(c,t),i=this.modMult(i,s),o=this.modReduce(s.multiply(o).subtract(e.multiply(c))),s=this.modReduce(s.multiply(s).subtract(u.shiftLeft(1)))):(u=c,i=this.modReduce(i.multiply(o).subtract(c)),s=this.modReduce(s.multiply(o).subtract(e.multiply(c))),o=this.modReduce(o.multiply(o).subtract(c.shiftLeft(1))));c=this.modMult(c,u),u=this.modMult(c,t),i=this.modReduce(i.multiply(o).subtract(c)),o=this.modReduce(s.multiply(o).subtract(e.multiply(c))),c=this.modMult(c,u);for(l=1;l<=n;++l)i=this.modMult(i,o),o=this.modReduce(o.multiply(o).subtract(c.shiftLeft(1))),c=this.modMult(c,c);return[i,o]};t={ECCurveFp:n,ECPointFp:h,ECFieldElementFp:l};e.exports=t},function(e,t,P){e.exports={read:function(e,t){return r.read(e,t)},readSSHPrivate:function(e,t,r){var a=(t=new B({buffer:t})).readCString();T.strictEqual(a,M,"bad magic string");var n=t.readString(),i=t.readString(),o=t.readBuffer();if(1!==t.readInt())throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var s=t.readBuffer();if("public"===e)return T.ok(t.atEnd(),"excess bytes left after key"),E.read(s);var c=t.readBuffer();T.ok(t.atEnd(),"excess bytes left after key");var u=new B({buffer:o});switch(i){case"none":if("none"!==n)throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var l=u.readBuffer(),p=u.readInt(),f=C.opensshCipherInfo(n);if(void 0===z&&(z=P(151)),"string"==typeof r.passphrase&&(r.passphrase=F.from(r.passphrase,"utf-8")),!F.isBuffer(r.passphrase))throw new A.KeyEncryptedError(r.filename,"OpenSSH");var d=new Uint8Array(r.passphrase),h=new Uint8Array(l),m=new Uint8Array(f.keySize+f.blockSize);if(0!==z.pbkdf(d,d.length,h,h.length,m,m.length,p))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var g=(m=F.from(m)).slice(0,f.keySize),b=m.slice(f.keySize,f.keySize+f.blockSize),v=O.createDecipheriv(f.opensslName,g,b);v.setAutoPadding(!1);var y,w=[];for(v.once("error",function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e}),v.write(c),v.end();null!==(y=v.read());)w.push(y);c=F.concat(w);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+i+'"')}var k=(t=new B({buffer:c})).readInt(),x=t.readInt();if(k!==x)throw new Error("Incorrect passphrase supplied, could not decrypt key");var _={},j=E.readInternal(_,"private",t.remainder());t.skip(_.consumed);var S=t.readString();return j.comment=S,j},write:function(e,t){var r;r=I.isPrivateKey(e)?e.toPublic():e;var a,n,i="none",o="none",s=F.alloc(0),c={blockSize:8};void 0!==t&&("string"==typeof(a=t.passphrase)&&(a=F.from(a,"utf-8")),void 0!==a&&(T.buffer(a,"options.passphrase"),T.optionalString(t.cipher,"options.cipher"),void 0===(i=t.cipher)&&(i="aes128-ctr"),c=C.opensshCipherInfo(i),o="bcrypt"));if(I.isPrivateKey(e)){n=new B({});var u=O.randomBytes(4).readUInt32BE(0);n.writeInt(u),n.writeInt(u),n.write(e.toBuffer("rfc4253")),n.writeString(e.comment||"");for(var l=1;n._offset%c.blockSize!=0;)n.writeChar(l++);n=n.toBuffer()}switch(o){case"none":break;case"bcrypt":var p=O.randomBytes(16),f=new B({});f.writeBuffer(p),f.writeInt(16),s=f.toBuffer(),void 0===z&&(z=P(151));var d=new Uint8Array(a),h=new Uint8Array(p),m=new Uint8Array(c.keySize+c.blockSize);if(0!==z.pbkdf(d,d.length,h,h.length,m,m.length,16))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var g=(m=F.from(m)).slice(0,c.keySize),b=m.slice(c.keySize,c.keySize+c.blockSize),v=O.createCipheriv(c.opensslName,g,b);v.setAutoPadding(!1);var y,w=[];for(v.once("error",function(e){throw e}),v.write(n),v.end();null!==(y=v.read());)w.push(y);n=F.concat(w);break;default:throw new Error("Unsupported kdf "+o)}var k,x=new B({});x.writeCString(M),x.writeString(i),x.writeString(o),x.writeBuffer(s),x.writeInt(1),x.writeBuffer(r.toBuffer("rfc4253")),n&&x.writeBuffer(n);x=x.toBuffer(),k=I.isPrivateKey(e)?"OPENSSH PRIVATE KEY":"OPENSSH PUBLIC KEY";var _=x.toString("base64"),j=_.length+_.length/70+18+16+2*k.length+10;x=F.alloc(j);var S=0;S+=x.write("-----BEGIN "+k+"-----\n",S);for(var E=0;E<_.length;){var A=E+70;A>_.length&&(A=_.length),S+=x.write(_.slice(E,A),S),x[S++]=10,E=A}return S+=x.write("-----END "+k+"-----\n",S),x.slice(0,S)}};var z,T=P(4),F=(P(23),P(5).Buffer),C=(P(14),P(11)),O=P(8),I=(P(10),P(13)),r=P(26),E=P(27),B=P(48),A=P(20);var M="openssh-key-v1"},function(e,t,r){},function(e,t,r){"use strict";function c(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(a,n)}function a(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var a=s.apply(e,o);function n(e){c(a,t,r,n,i,"next",e)}function i(e){c(a,t,r,n,i,"throw",e)}n(void 0)})}}r.d(t,"a",function(){return a})},function(e,t,r){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},a)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,a,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=v-y,j=Math.floor,S=String.fromCharCode;function E(e){throw new RangeError(s[e])}function u(e,t){for(var r=e.length,a=[];r--;)a[r]=t(e[r]);return a}function l(e,t){var r=e.split("@"),a="";return 1>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function z(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var a=0;for(e=r?j(e/i):e>>1,e+=j(e/t);c*w>>1j((b-h)/o))&&E("overflow"),h+=c*o,!(c<(u=s<=g?y:g+w<=s?w:s-g));s+=v)o>j(b/(l=v-u))&&E("overflow"),o*=l;g=T(h-i,t=f.length+1,0==i),j(h/t)>b-m&&E("overflow"),m+=j(h/t),h%=t,f.splice(h++,0,m)}return P(f)}function f(e){var t,r,a,n,i,o,s,c,u,l,p,f,d,h,m,g=[];for(f=(e=A(e)).length,t=x,i=k,o=r=0;oj((b-r)/(d=a+1))&&E("overflow"),r+=(s-t)*d,t=s,o=0;ob&&E("overflow"),p==t){for(c=r,u=v;!(c<(l=u<=i?y:i+w<=u?w:u-i));u+=v)m=c-l,h=v-l,g.push(S(z(l+m%h,0))),c=j(m/h);g.push(S(z(c,0))),i=T(r,d,a==n),r=0,++a}++r,++t}return g.join("")}t={version:"1.4.1",ucs2:{decode:A,encode:P},decode:p,encode:f,toASCII:function(e){return l(e,function(e){return a.test(e)?"xn--"+f(e):e})},toUnicode:function(e){return l(e,function(e){return r.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0===(m=function(){return t}.call(g,F,g,d))||(d.exports=m)}()}).call(this,F(97)(e),F(12))},function(e,o,s){"use strict";(function(e,t){var n=s(187),r=s(8),a=s(2).Buffer,i=void 0===e?t.nextTick:e;o.paramsHaveRequestBody=function(e){return e.body||e.requestBodyStream||e.json&&"boolean"!=typeof e.json||e.multipart},o.safeStringify=function(t,r){var a;try{a=JSON.stringify(t,r)}catch(e){a=n(t,r)}return a},o.md5=function(e){return r.createHash("md5").update(e).digest("hex")},o.isReadStream=function(e){return e.readable&&e.path&&e.mode},o.toBase64=function(e){return a.from(e||"","utf8").toString("base64")},o.copy=function(t){var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),r},o.version=function(){var e=t.version.replace("v","").split(".");return{major:parseInt(e[0],10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}},o.defer=i}).call(this,s(68).setImmediate,s(7))},function(e,n,i){(function(e){var t=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new a(r.call(setTimeout,t,arguments),clearTimeout)},n.setInterval=function(){return new a(r.call(setInterval,t,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(t,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(186),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i(12))},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var a=r(1),n=r(102),i=r(2).Buffer,o=new Array(16);function s(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,r,a,n,i,o){return c(e+(t&r|~t&a)+n+i|0,o)+t|0}function l(e,t,r,a,n,i,o){return c(e+(t&a|r&~a)+n+i|0,o)+t|0}function p(e,t,r,a,n,i,o){return c(e+(t^r^a)+n+i|0,o)+t|0}function f(e,t,r,a,n,i,o){return c(e+(r^(t|~a))+n+i|0,o)+t|0}a(s,n),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,a=this._b,n=this._c,i=this._d;r=u(r,a,n,i,e[0],3614090360,7),i=u(i,r,a,n,e[1],3905402710,12),n=u(n,i,r,a,e[2],606105819,17),a=u(a,n,i,r,e[3],3250441966,22),r=u(r,a,n,i,e[4],4118548399,7),i=u(i,r,a,n,e[5],1200080426,12),n=u(n,i,r,a,e[6],2821735955,17),a=u(a,n,i,r,e[7],4249261313,22),r=u(r,a,n,i,e[8],1770035416,7),i=u(i,r,a,n,e[9],2336552879,12),n=u(n,i,r,a,e[10],4294925233,17),a=u(a,n,i,r,e[11],2304563134,22),r=u(r,a,n,i,e[12],1804603682,7),i=u(i,r,a,n,e[13],4254626195,12),n=u(n,i,r,a,e[14],2792965006,17),r=l(r,a=u(a,n,i,r,e[15],1236535329,22),n,i,e[1],4129170786,5),i=l(i,r,a,n,e[6],3225465664,9),n=l(n,i,r,a,e[11],643717713,14),a=l(a,n,i,r,e[0],3921069994,20),r=l(r,a,n,i,e[5],3593408605,5),i=l(i,r,a,n,e[10],38016083,9),n=l(n,i,r,a,e[15],3634488961,14),a=l(a,n,i,r,e[4],3889429448,20),r=l(r,a,n,i,e[9],568446438,5),i=l(i,r,a,n,e[14],3275163606,9),n=l(n,i,r,a,e[3],4107603335,14),a=l(a,n,i,r,e[8],1163531501,20),r=l(r,a,n,i,e[13],2850285829,5),i=l(i,r,a,n,e[2],4243563512,9),n=l(n,i,r,a,e[7],1735328473,14),r=p(r,a=l(a,n,i,r,e[12],2368359562,20),n,i,e[5],4294588738,4),i=p(i,r,a,n,e[8],2272392833,11),n=p(n,i,r,a,e[11],1839030562,16),a=p(a,n,i,r,e[14],4259657740,23),r=p(r,a,n,i,e[1],2763975236,4),i=p(i,r,a,n,e[4],1272893353,11),n=p(n,i,r,a,e[7],4139469664,16),a=p(a,n,i,r,e[10],3200236656,23),r=p(r,a,n,i,e[13],681279174,4),i=p(i,r,a,n,e[0],3936430074,11),n=p(n,i,r,a,e[3],3572445317,16),a=p(a,n,i,r,e[6],76029189,23),r=p(r,a,n,i,e[9],3654602809,4),i=p(i,r,a,n,e[12],3873151461,11),n=p(n,i,r,a,e[15],530742520,16),r=f(r,a=p(a,n,i,r,e[2],3299628645,23),n,i,e[0],4096336452,6),i=f(i,r,a,n,e[7],1126891415,10),n=f(n,i,r,a,e[14],2878612391,15),a=f(a,n,i,r,e[5],4237533241,21),r=f(r,a,n,i,e[12],1700485571,6),i=f(i,r,a,n,e[3],2399980690,10),n=f(n,i,r,a,e[10],4293915773,15),a=f(a,n,i,r,e[1],2240044497,21),r=f(r,a,n,i,e[8],1873313359,6),i=f(i,r,a,n,e[15],4264355552,10),n=f(n,i,r,a,e[6],2734768916,15),a=f(a,n,i,r,e[13],1309151649,21),r=f(r,a,n,i,e[4],4149444226,6),i=f(i,r,a,n,e[11],3174756917,10),n=f(n,i,r,a,e[2],718787259,15),a=f(a,n,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+a|0,this._c=this._c+n|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-t}function j(e,t,r,a,n,i,o,s){return _(e+(t^r^a)+i+o|0,s)+n|0}function S(e,t,r,a,n,i,o,s){return _(e+(t&r|~t&a)+i+o|0,s)+n|0}function E(e,t,r,a,n,i,o,s){return _(e+((t|~r)^a)+i+o|0,s)+n|0}function A(e,t,r,a,n,i,o,s){return _(e+(t&a|r&~a)+i+o|0,s)+n|0}function P(e,t,r,a,n,i,o,s){return _(e+(t^(r|~a))+i+o|0,s)+n|0}n(o,i),o.prototype._update=function(){for(var e=g,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,a=0|this._b,n=0|this._c,i=0|this._d,o=0|this._e,s=0|this._a,c=0|this._b,u=0|this._c,l=0|this._d,p=0|this._e,f=0;f<80;f+=1){var d,h;h=f<16?(d=j(r,a,n,i,o,e[b[f]],k[0],y[f]),P(s,c,u,l,p,e[v[f]],x[0],w[f])):f<32?(d=S(r,a,n,i,o,e[b[f]],k[1],y[f]),A(s,c,u,l,p,e[v[f]],x[1],w[f])):f<48?(d=E(r,a,n,i,o,e[b[f]],k[2],y[f]),E(s,c,u,l,p,e[v[f]],x[2],w[f])):f<64?(d=A(r,a,n,i,o,e[b[f]],k[3],y[f]),S(s,c,u,l,p,e[v[f]],x[3],w[f])):(d=P(r,a,n,i,o,e[b[f]],k[4],y[f]),j(s,c,u,l,p,e[v[f]],x[4],w[f])),r=o,o=i,i=_(n,10),n=a,a=d,s=p,p=l,l=_(u,10),u=c,c=h}var m=this._b+n+l|0;this._b=this._c+i+p|0,this._c=this._d+o+s|0,this._d=this._e+r+c|0,this._e=this._a+a+u|0,this._a=m},o.prototype._digest=function(){this._block[this._blockOffset++]=128,56=this._blockSize;){for(var n=this._blockOffset;nt.highWaterMark&&(t.highWaterMark=(m<=(r=e)?r=m:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b.nextTick(_,e):_(e))}function _(e){w("emit readable"),e.emit("readable"),P(e)}function j(e,t){t.readingMore||(t.readingMore=!0,b.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var a;ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++a}return t.length-=a,n}:function(e,t){var r=u.allocUnsafe(e),a=t.head,n=1;a.data.copy(r),e-=a.data.length;for(;a=a.next;){var i=a.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++n,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a).data=i.slice(o);break}++n}return t.length-=n,r})(e,t);return a}(e,t.buffer,t.decoder),r);var r}function T(e){var t=e._readableState;if(0=t.highWaterMark||t.ended))return w("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?T:x)(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&T(this),null;var a,n=t.needReadable;return w("need readable",n),(0===t.length||t.length-e>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+c[b-7]+(((t=c[b-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+c[b-16];for(var v=0;v<64;++v){var y=g+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((o=m)^d&(h^o))+k[v]+c[v]|0,w=0|(((i=u)>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+((a=u)&(n=l)|p&(a|n));g=m,m=h,h=d,d=f+y|0,f=p,p=l,l=u,u=y+w|0}this._a=u+this._a|0,this._b=l+this._b|0,this._c=p+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,r){var a=r(1),n=r(34),i=r(2).Buffer,J=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function ee(e,t,r){return r^e&(t^r)}function te(e,t,r){return e&t|r&(e|t)}function re(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ae(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ne(e,t){return e>>>0>>0?1:0}a(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t,r,a,n,i,o,s,c,u=this._w,l=0|this._ah,p=0|this._bh,f=0|this._ch,d=0|this._dh,h=0|this._eh,m=0|this._fh,g=0|this._gh,b=0|this._hh,v=0|this._al,y=0|this._bl,w=0|this._cl,k=0|this._dl,x=0|this._el,_=0|this._fl,j=0|this._gl,S=0|this._hl,E=0;E<32;E+=2)u[E]=e.readInt32BE(4*E),u[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A=u[E-30],P=u[E-30+1],z=((s=A)>>>1|(c=P)<<31)^(s>>>8|c<<24)^s>>>7,T=((i=P)>>>1|(o=A)<<31)^(i>>>8|o<<24)^(i>>>7|o<<25);A=u[E-4],P=u[E-4+1];var F=((a=A)>>>19|(n=P)<<13)^(n>>>29|a<<3)^a>>>6,C=((t=P)>>>19|(r=A)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),O=u[E-14],I=u[E-14+1],B=u[E-32],M=u[E-32+1],R=T+I|0,D=z+O+ne(R,T)|0;D=(D=D+F+ne(R=R+C|0,C)|0)+B+ne(R=R+M|0,M)|0,u[E]=D,u[E+1]=R}for(var q=0;q<160;q+=2){D=u[q],R=u[q+1];var N=te(l,p,f),L=te(v,y,w),U=re(l,v),H=re(v,l),K=ae(h,x),$=ae(x,h),V=J[q+1],Z=ee(h,m,g),W=ee(x,_,j),Q=S+$|0,Y=b+K+ne(Q,S)|0;Y=(Y=(Y=Y+Z+ne(Q=Q+W|0,W)|0)+J[q]+ne(Q=Q+V|0,V)|0)+D+ne(Q=Q+R|0,R)|0;var G=H+L|0,X=U+N+ne(G,H)|0;b=g,S=j,g=m,j=_,m=h,_=x,h=d+Y+ne(x=k+Q|0,k)|0,d=f,k=w,f=p,w=y,p=l,y=v,l=Y+X+ne(v=Q+G|0,Q)|0}this._al=this._al+v|0,this._bl=this._bl+y|0,this._cl=this._cl+w|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+_|0,this._gl=this._gl+j|0,this._hl=this._hl+S|0,this._ah=this._ah+l+ne(this._al,v)|0,this._bh=this._bh+p+ne(this._bl,y)|0,this._ch=this._ch+f+ne(this._cl,w)|0,this._dh=this._dh+d+ne(this._dl,k)|0,this._eh=this._eh+h+ne(this._el,x)|0,this._fh=this._fh+m+ne(this._fl,_)|0,this._gh=this._gh+g+ne(this._gl,j)|0,this._hh=this._hh+b+ne(this._hl,S)|0},s.prototype._hash=function(){var a=i.allocUnsafe(64);function e(e,t,r){a.writeInt32BE(e,r),a.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),a},e.exports=s},function(e,t,r){"use strict";var a=r(1),n=r(203),o=r(25),s=r(2).Buffer,i=r(111),c=r(73),u=r(74),l=s.alloc(128);function p(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengthi?t=n(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,a){for(var n=0,i=0,o=6;0<=o;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+o&1}for(o=6;0<=o;o-=2){for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}r[a+0]=n>>>0,r[a+1]=i>>>0},t.rip=function(e,t,r,a){for(var n=0,i=0,o=0;o<4;o++)for(var s=24;0<=s;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;0<=s;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;r[a+0]=n>>>0,r[a+1]=i>>>0},t.pc1=function(e,t,r,a){for(var n=0,i=0,o=7;5<=o;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;r[a+0]=n>>>0,r[a+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,a){for(var n=0,i=0,o=c.length>>>1,s=0;s>>c[s]&1;for(s=o;s>>c[s]&1;r[a+0]=n>>>0,r[a+1]=i>>>0},t.expand=function(e,t,r){var a=0,n=0;a=(1&e)<<5|e>>>27;for(var i=23;15<=i;i-=4)a<<=6,a|=e>>>i&63;for(i=11;3<=i;i-=4)n|=e>>>i&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=a>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,a=0;a<4;a++){r<<=4,r|=n[64*a+(e>>>18-6*a&63)]}for(a=0;a<4;a++){r<<=4,r|=n[256+64*a+(t>>>18-6*a&63)]}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var a=e.toString(2);a.length>>1];r=f.r28shl(r,i),a=f.r28shl(a,i),f.pc2(r,a,e.keys,n)}},s.prototype._update=function(e,t,r,a){var n=this._desState,i=f.readUInt32BE(e,t),o=f.readUInt32BE(e,t+4);f.ip(i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,i,o,n.tmp,0):this._decrypt(n,i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],f.writeUInt32BE(r,i,a),f.writeUInt32BE(r,o,a+4)},s.prototype._pad=function(e,t){for(var r=e.length-t,a=t;a>>0,i=p}f.rip(o,i,a,n)},s.prototype._decrypt=function(e,t,r,a,n){for(var i=r,o=t,s=e.keys.length-2;0<=s;s-=2){var c=e.keys[s],u=e.keys[s+1];f.expand(i,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var l=f.substitute(c,u),p=i;i=(o^f.permute(l))>>>0,o=p}f.rip(i,o,a,n)}},function(e,t,r){var l=r(40),p=r(2).Buffer,f=r(120);t.encrypt=function(e,t){var r,a,n=Math.ceil(t.length/16),i=e._cache.length;e._cache=p.concat([e._cache,p.allocUnsafe(16*n)]);for(var o=0;oe;)r.ishrn(1);if(r.isEven()&&r.iadd(c),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(l))for(;r.mod(p).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(g(a=r.shrn(1))&&g(r)&&b(a)&&b(r)&&s.test(a)&&s.test(r))return r}}},function(e,t,r){var d=r(9),a=r(78);function n(e){this.rand=e||new a.Rand}(e.exports=n).create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var a=new d(this.rand.generate(r))}while(0<=a.cmp(e));return a},n.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},n.prototype.test=function(e,t,r){var a=e.bitLength(),n=d.mont(e),i=new d(1).toRed(n);t=t||Math.max(1,a/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),u=o.toRed(n);0>8,o=255&n;i?r.push(i,o):r.push(o)}return r},a.zero2=n,a.toHex=i,a.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,r){"use strict";var a=t;a.base=r(56),a.short=r(229),a.mont=r(230),a.edwards=r(231)},function(e,t,r){"use strict";var a=r(19).rotr32;function n(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,a){return 0===e?n(t,r,a):1===e||3===e?o(t,r,a):2===e?i(t,r,a):void 0},t.ch32=n,t.maj32=i,t.p32=o,t.s0_256=function(e){return a(e,2)^a(e,13)^a(e,22)},t.s1_256=function(e){return a(e,6)^a(e,11)^a(e,25)},t.g0_256=function(e){return a(e,7)^a(e,18)^e>>>3},t.g1_256=function(e){return a(e,17)^a(e,19)^e>>>10}},function(e,t,r){"use strict";var a=r(19),n=r(41),i=r(128),h=r(15),m=a.sum32,g=a.sum32_4,b=a.sum32_5,v=i.ch32,y=i.maj32,w=i.s0_256,k=i.s1_256,x=i.g0_256,_=i.g1_256,o=n.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}a.inherits(c,o),(e.exports=c).blockSize=512,c.outSize=256,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a>6],n=0==(32&r);if(31==(31&r)){var i=r;for(r=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;r<<=7,r|=127&i}}else r&=31;return{cls:a,primitive:n,tag:r,tagStr:s.tag[r]}}function p(e,t,r){var a=e.readUInt8(r);if(e.isError(a))return a;if(!t&&128===a)return null;if(0==(128&a))return a;var n=127&a;if(4>=8)o++;(n=new u(2+o))[0]=i,n[1]=128|o;s=1+o;for(var c=a.length;0>=8)n[s]=255&c;return this._createEncoderBuffer([n,a])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=new u(2*e.length),a=0;a>=7)n++}var o=new u(n),s=o.length-1;for(a=e.length-1;0<=a;a--){i=e[a];for(o[s--]=127&i;0<(i>>=7);)o[s--]=128|127&i}return this._createEncoderBuffer(o)},s.prototype._encodeTime=function(e,t){var r,a=new Date(e);return"gentime"===t?r=[c(a.getFullYear()),c(a.getUTCMonth()+1),c(a.getUTCDate()),c(a.getUTCHours()),c(a.getUTCMinutes()),c(a.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(a.getFullYear()%100),c(a.getUTCMonth()+1),c(a.getUTCDate()),c(a.getUTCHours()),c(a.getUTCMinutes()),c(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!u.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new u(r)}if(u.isBuffer(e)){var a=e.length;0===e.length&&a++;var n=new u(a);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);a=1;for(var i=e;256<=i;i>>=8)a++;for(i=(n=new Array(a)).length-1;0<=i;i--)n[i]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new u(n))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){var a,n=this._baseState;if(null===n.default)return!1;var i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),i.length!==n.defaultBuffer.length)return!1;for(a=0;at._pos){var a=r.substr(t._pos);if("x-user-defined"===t._charset){for(var n=new p(a.length),i=0;it._pos&&(t.push(new p(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(r)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,a(7),a(12),a(3).Buffer)},function(e,t,r){(((t=e.exports=r(142)).Stream=t).Readable=t).Writable=r(145),t.Duplex=r(35),t.Transform=r(146),t.PassThrough=r(270)},function(O,e,I){"use strict";(function(e,g){var b=I(24);O.exports=f;var o,v=I(69);f.ReadableState=i;function y(e,t){return e.listeners(t).length}I(33).EventEmitter;var n=I(143),u=I(2).Buffer,l=e.Uint8Array||function(){};var t=Object.create(I(17));t.inherits=I(1);var r=I(267),w=void 0;w=r&&r.debuglog?r.debuglog("stream"):function(){};var s,c=I(268),a=I(144);t.inherits(f,n);var p=["error","close","destroy","pause","resume"];function i(e,t){e=e||{};var r=t instanceof(o=o||I(35));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,n=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s=s||I(39).StringDecoder,this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(o=o||I(35),!(this instanceof f))return new f(e);this._readableState=new i(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),n.call(this)}function d(e,t,r,a,n){var i,o,s,c=e._readableState;null===t?(c.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,c)):(n||(i=function(e,t){var r;(function(e){return u.isBuffer(e)||e instanceof l})(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(c,t)),i?e.emit("error",i):c.objectMode||t&&0t.highWaterMark&&(t.highWaterMark=(m<=(r=e)?r=m:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b.nextTick(_,e):_(e))}function _(e){w("emit readable"),e.emit("readable"),P(e)}function j(e,t){t.readingMore||(t.readingMore=!0,b.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var a;ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++a}return t.length-=a,n}:function(e,t){var r=u.allocUnsafe(e),a=t.head,n=1;a.data.copy(r),e-=a.data.length;for(;a=a.next;){var i=a.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++n,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a).data=i.slice(o);break}++n}return t.length-=n,r})(e,t);return a}(e,t.buffer,t.decoder),r);var r}function T(e){var t=e._readableState;if(0=t.highWaterMark||t.ended))return w("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?T:x)(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&T(this),null;var a,n=t.needReadable;return w("need readable",n),(0===t.length||t.length-e>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,a){var n=s,i=a+r;e^=-1;for(var o=a;o>>8^n[255&(e^t[o])];return-1^e}},function(e,t,r){e.exports={Verifier:u,Signer:l};var a=r(47),n=r(18),i=r(6),o=r(4),s=r(5).Buffer,c=r(22);function u(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],n.Writable.call(this,{})}function l(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],n.Writable.call(this,{})}i.inherits(u,n.Writable),u.prototype._write=function(e,t,r){this.chunks.push(e),r()},u.prototype.update=function(e){"string"==typeof e&&(e=s.from(e,"binary")),this.chunks.push(e)},u.prototype.verify=function(e,t){var r;if(c.isSignature(e,[2,0])){if("ed25519"!==e.type)return!1;r=e.toBuffer("raw")}else if("string"==typeof e)r=s.from(e,"base64");else if(c.isSignature(e,[1,0]))throw new Error("signature was created by too old a version of sshpk and cannot be verified");return o.buffer(r),a.sign.detached.verify(new Uint8Array(s.concat(this.chunks)),new Uint8Array(r),new Uint8Array(this.key.part.A.data))},i.inherits(l,n.Writable),l.prototype._write=function(e,t,r){this.chunks.push(e),r()},l.prototype.update=function(e){"string"==typeof e&&(e=s.from(e,"binary")),this.chunks.push(e)},l.prototype.sign=function(){var e=a.sign.detached(new Uint8Array(s.concat(this.chunks)),new Uint8Array(s.concat([this.key.part.k.data,this.key.part.A.data]))),t=s.from(e),r=c.parse(t,"ed25519","raw");return r.hashAlgorithm="sha512",r}},function(e,t,r){e.exports={read:function(e,t){if("string"==typeof e){if(e.trim().match(/^[-]+[ ]*BEGIN/))return i.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return o.read(e,t);if(e.match(/^\s*ecdsa-/))return o.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return u.read(e,t);if(p(e))return c.read(e,t);e=n.from(e,"binary")}else{if(a.buffer(e),function(e){var t=0;for(;te.length||"BEGIN"!==e.slice(t,t+5).toString("ascii"))}(e))return i.read(e,t);if(function(e){var t=0;for(;t>>24,r[4*a+2]=i[a]>>>16,r[4*a+1]=i[a]>>>8,r[4*a+0]=i[a]}e.exports={BLOCKS:l,HASHSIZE:32,hash:w,pbkdf:function(e,t,r,a,n,i,o){var s,c,u,l,p,f,d=new Uint8Array(64),h=new Uint8Array(64),m=new Uint8Array(32),g=new Uint8Array(32),b=new Uint8Array(a+4),v=i;if(o<1)return-1;if(0===t||0===a||0===i||i>m.byteLength*m.byteLength||1<<20>>24,b[a+1]=f>>>16,b[a+2]=f>>>8,b[a+3]=f,y(h,b,a+4),w(d,h,g),s=m.byteLength;s--;)m[s]=g[s];for(s=1;sa.length)throw new Error("Invalid public-lines count");var u=d.from(a.slice(i,i+c).join(""),"base64"),l=h.algToKeyType(o),p=h.read(u);if(p.type===l)return p.comment=s,p;throw new Error("Outer key algorithm mismatch")},write:function(e,t){if(f.object(e),!o.isKey(e))throw new Error("Must be a public key");var r=h.keyTypeToAlg(e),a=h.write(e),n=e.comment||"",i=function(e){var t=[],r=0;for(;r>6]+i[128|63&n]:n<55296||57344<=n?r+=i[224|n>>12]+i[128|n>>6&63]+i[128|63&n]:(a+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(a)),r+=i[240|n>>18]+i[128|n>>12&63]+i[128|n>>6&63]+i[128|63&n])}return r},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function a(r,n,i){if(!n)return r;if("object"!=typeof n){if(Array.isArray(r))r.push(n);else{if("object"!=typeof r)return[r,n];!i.plainObjects&&!i.allowPrototypes&&s.call(Object.prototype,n)||(r[n]=!0)}return r}if("object"!=typeof r)return[r].concat(n);var e=r;return Array.isArray(r)&&!Array.isArray(n)&&(e=o(r,i)),Array.isArray(r)&&Array.isArray(n)?(n.forEach(function(e,t){s.call(r,t)?r[t]&&"object"==typeof r[t]?r[t]=a(r[t],e,i):r.push(e):r[t]=e}),r):Object.keys(n).reduce(function(e,t){var r=n[t];return s.call(e,t)?e[t]=a(e[t],r,i):e[t]=r,e},e)}}},function(e,t,r){"use strict";var a=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return a.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var a=r(36);e.exports=function(e){a.copy(e,this)}},function(e,t,r){"use strict";e.exports=function(e,t){"function"==typeof(t=t||{})&&(t={cmp:t});var i,c="boolean"==typeof t.cycles&&t.cycles,u=t.cmp&&(i=t.cmp,function(n){return function(e,t){var r={key:e,value:n[e]},a={key:t,value:n[t]};return i(r,a)}}),l=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r",b=f?">":"<",v=void 0;if(m){var y=e.util.getData(h.$data,i,e.dataPathArr),w="exclusive"+n,k="exclType"+n,x="exclIsNumber"+n,_="' + "+(E="op"+n)+" + '";a+=" var schemaExcl"+n+" = "+y+"; ";var j;v=d;(j=j||[]).push(a+=" var "+w+"; var "+k+" = typeof "+(y="schemaExcl"+n)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { "),a="",!1!==e.createErrors?(a+=" { keyword: '"+(v||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";var S=a;a=j.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+k+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+y+" "+g+"= "+r+") ? "+l+" "+b+"= "+y+" : "+l+" "+b+" "+r+" ) : ( ("+w+" = "+y+" === true) ? "+l+" "+b+"= "+r+" : "+l+" "+b+" "+r+" ) || "+l+" !== "+l+") { var op"+n+" = "+w+" ? '"+g+"' : '"+g+"='; ",void 0===o&&(v=d,c=e.errSchemaPath+"/"+d,r=y,p=m)}else{_=g;if((x="number"==typeof h)&&p){var E="'"+_+"'";a+=" if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" ( "+r+" === undefined || "+h+" "+g+"= "+r+" ? "+l+" "+b+"= "+h+" : "+l+" "+b+" "+r+" ) || "+l+" !== "+l+") { "}else{x&&void 0===o?(w=!0,v=d,c=e.errSchemaPath+"/"+d,r=h,b+="="):(x&&(r=Math[f?"min":"max"](h,o)),h===(!x||r)?(w=!0,v=d,c=e.errSchemaPath+"/"+d,b+="="):(w=!1,_+="="));E="'"+_+"'";a+=" if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+l+" "+b+" "+r+" || "+l+" !== "+l+") { "}}v=v||t,(j=j||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(v||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+E+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+_+" ",a+=p?"' + "+r:r+"'"),e.opts.verbose&&(a+=" , schema: ",a+=p?"validate.schema"+s:""+o,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";S=a;return a=j.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",u&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t){var r,a=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),p=e.opts.$data&&o&&o.$data;r=p?(a+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ","schema"+n):o,a+="if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+l+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var f=t,d=d||[];d.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=p?"' + "+r+" + '":""+o,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=p?"validate.schema"+s:""+o,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";var h=a;return a=d.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+h+"]); ":a+=" validate.errors = ["+h+"]; return false; ":a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t){var r,a=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),p=e.opts.$data&&o&&o.$data;r=p?(a+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ","schema"+n):o;var f="maxLength"==t?">":"<";a+="if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?a+=" "+l+".length ":a+=" ucs2length("+l+") ",a+=" "+f+" "+r+") { ";var d=t,h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=p?"' + "+r+" + '":""+o,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=p?"validate.schema"+s:""+o,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t){var r,a=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),p=e.opts.$data&&o&&o.$data;r=p?(a+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ","schema"+n):o,a+="if ( ",p&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" Object.keys("+l+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var f=t,d=d||[];d.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=p?"' + "+r+" + '":""+o,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=p?"validate.schema"+s:""+o,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";var h=a;return a=d.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+h+"]); ":a+=" validate.errors = ["+h+"]; return false; ":a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}},function(e,t,r){"use strict";(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),e.exports=r(170)},function(e,t,r){e.exports=r(384)},function(e,t,r){"use strict"; +/** @license React v16.13.1 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n=r(0),b=r(64),a=r(172);function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r