diff --git a/.node-persist/storage/0c83f57c786a0b4a39efab23731c7ebc b/.node-persist/storage/0c83f57c786a0b4a39efab23731c7ebc new file mode 100644 index 0000000000..f4c39504e5 --- /dev/null +++ b/.node-persist/storage/0c83f57c786a0b4a39efab23731c7ebc @@ -0,0 +1 @@ +{"key":"email","value":"acunniffe@gmail.com"} \ No newline at end of file diff --git a/.node-persist/storage/c4755f318c6fdb260c47f26d0a24f0ca b/.node-persist/storage/c4755f318c6fdb260c47f26d0a24f0ca new file mode 100644 index 0000000000..dc3ec7f1ed --- /dev/null +++ b/.node-persist/storage/c4755f318c6fdb260c47f26d0a24f0ca @@ -0,0 +1 @@ +{"key":"firstRun","value":true} \ No newline at end of file diff --git a/build.sbt b/build.sbt index 91997ca447..ac5e361f0b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,13 +1,10 @@ import sbtbuildinfo.BuildInfoPlugin.autoImport.buildInfoPackage -import scala.io.Source -import scala.util.Try - name := "optic-core" organization := "com.opticdev" -val appVersion = "1.0.5" +val appVersion = Constants.cliVersion version := appVersion @@ -31,8 +28,9 @@ lazy val common = (project in file("common")). .settings( libraryDependencies ++= Dependencies.commonDependencies, buildInfoKeys := Seq[BuildInfoKey]( - "opticMDVersion" -> Constants.opticMDVersion, + "skillsSDKVersion" -> Constants.supportedSdks.last, "currentOpticVersion" -> appVersion, + "supportedSdks" -> Constants.supportedSdks, ), buildInfoPackage := "com.opticdev.common" ) @@ -43,7 +41,7 @@ lazy val sdk = (project in file("sdk")). .settings( libraryDependencies ++= Dependencies.sdkDependencies, buildInfoKeys := Seq[BuildInfoKey]( - "opticMDVersion" -> Constants.opticMDVersion, + "skillsSDKVersion" -> Constants.supportedSdks.last, ), buildInfoPackage := "com.opticdev.sdk" ) @@ -55,19 +53,6 @@ lazy val opm = (project in file("opm")). .dependsOn(common) .dependsOn(sdk) -lazy val cli = (project in file("cli")). - settings(commonSettings: _*) - .settings( - libraryDependencies ++= Dependencies.cliDependencies, - buildInfoKeys := Seq[BuildInfoKey]( - "opticVersion" -> appVersion, - ), - buildInfoPackage := "com.opticdev.cli" - ) - .dependsOn(common) - .dependsOn(core) - .dependsOn(core % "compile->compile;test->test") - lazy val core = (project in file("core")). settings(commonSettings: _*) .settings(libraryDependencies ++= Dependencies.coreDependencies) @@ -83,7 +68,6 @@ lazy val server = (project in file("server")). .dependsOn(sdk) .dependsOn(common) .dependsOn(core) - .dependsOn(cli) .dependsOn(core % "compile->compile;test->test") .settings( test in assembly := {}, diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000..27949904ce --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +sbt project clean compile assembly +output='server/target/scala-2.12/server-assembly.jar' + +echo $output + +dest='cli/jars/server-assembly.jar' + +echo $dest + +yes | cp -rf $output $dest \ No newline at end of file diff --git a/cli/.babelrc b/cli/.babelrc new file mode 100644 index 0000000000..fe2d60e3dc --- /dev/null +++ b/cli/.babelrc @@ -0,0 +1,9 @@ +{ + "presets": [ + "@babel/preset-env", + "@babel/preset-react" + ], + "plugins": [ + + ] +} diff --git a/cli/.gitignore b/cli/.gitignore new file mode 100644 index 0000000000..a43f07a55e --- /dev/null +++ b/cli/.gitignore @@ -0,0 +1,7 @@ +node_modules +lib/ +.idea +jars/* +*.log +.node-persist/ +package-lock.json diff --git a/cli/.npmignore b/cli/.npmignore new file mode 100644 index 0000000000..8473552508 --- /dev/null +++ b/cli/.npmignore @@ -0,0 +1 @@ +.node-persist diff --git a/cli/LICENSE b/cli/LICENSE new file mode 100644 index 0000000000..6754106e10 --- /dev/null +++ b/cli/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Optic + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/cli/README.md b/cli/README.md new file mode 100644 index 0000000000..56a8c05dbc --- /dev/null +++ b/cli/README.md @@ -0,0 +1,4 @@ +Still SUPER EARLY +Test using `npm run build && node lib/interactive/Interactive.js` + +See [spec here](Optic-CLI-Spec.pdf) diff --git a/cli/build.sbt b/cli/build.sbt deleted file mode 100644 index 5bbd180df8..0000000000 --- a/cli/build.sbt +++ /dev/null @@ -1,2 +0,0 @@ -name := "cli" -organization := "com.opticdev" diff --git a/cli/features.json b/cli/features.json new file mode 100644 index 0000000000..54be507f42 --- /dev/null +++ b/cli/features.json @@ -0,0 +1,5 @@ +{ + "json-form": { + "default-input-is-last-value": false + } +} diff --git a/cli/package.json b/cli/package.json new file mode 100644 index 0000000000..9ee0b7ba93 --- /dev/null +++ b/cli/package.json @@ -0,0 +1,77 @@ +{ + "name": "optic-cli", + "version": "2.0.0rc1", + "description": "", + "main": "./lib/Cli.js", + "scripts": { + "build": "rm -rf ./lib && babel src --out-dir lib", + "build-server": "cd ../ && sh ./build.sh", + "test": "npm run build && find ./lib -name '*.test.js' | xargs mocha -R spec", + "interactive-test": "npm run build && node ./lib/interactive/Interactive.js interactive-test-protocol", + "jre-install": "npm run build && node ./lib/jre/install.js", + "cli-test": "npm run build && node ./lib/Cli.js", + "first-run-test": "npm run build && node lib/Cli.js force-first-time" + }, + "bin": { + "optic": "lib/Cli.js" + }, + "license": "MIT", + "devDependencies": { + "@babel/cli": "^7.1.0", + "@babel/core": "^7.1.0", + "@babel/preset-env": "^7.1.0", + "@babel/preset-react": "^7.0.0", + "mocha": "^3.4.2" + }, + "dependencies": { + "ajv": "^5.2.3", + "app-root-path": "^2.1.0", + "assert": "^1.4.1", + "blessed": "^0.1.81", + "body-parser": "^1.18.3", + "cli-autocomplete": "^0.4.1", + "clipboardy": "^1.2.3", + "cmdify": "^0.0.4", + "colors": "^1.3.2", + "commander": "^2.18.0", + "deep-freeze": "^0.0.1", + "deepcopy": "^1.0.0", + "email-validator": "^2.0.4", + "equals": "^1.0.5", + "express": "^4.16.4", + "fs": "0.0.1-security", + "fuzzy": "^0.1.3", + "hashcode": "1.0.3", + "inquirer": "^6.2.0", + "kill-port": "^1.3.2", + "lodash.isnumber": "^3.0.3", + "lodash.isobject": "^3.0.2", + "lodash.sortby": "^4.7.0", + "mixpanel": "^0.9.2", + "nice-try": "^1.0.5", + "node-persist": "^3.0.1", + "object-path": "^0.11.4", + "opn": "^5.4.0", + "optic-editor-sdk": "^0.3.0", + "os": "^0.1.1", + "platform": "^1.3.5", + "progress": "^1.1.8", + "regenerator-runtime": "^0.12.1", + "request": "^2.75.0", + "rmdir": "^1.2.0", + "tar-fs": "^1.13.2", + "update-notifier": "^2.5.0" + }, + "files": [ + "jars/server-assembly.jar", + "resources/Smoketest.class", + "resources/Smoketest.java", + "react-diff-view/*" + ], + "jreConfig": { + "major_version": "8", + "update_number": "191", + "build_number": "12", + "hash": "2787e4a523244c269598db4e85c51e0c" + } +} diff --git a/cli/react-diff-view/asset-manifest.json b/cli/react-diff-view/asset-manifest.json new file mode 100644 index 0000000000..7d826f8ad7 --- /dev/null +++ b/cli/react-diff-view/asset-manifest.json @@ -0,0 +1,14 @@ +{ + "main.css": "/static/css/main.00d31530.chunk.css", + "main.js": "/static/js/main.bbe92b14.chunk.js", + "main.js.map": "/static/js/main.bbe92b14.chunk.js.map", + "static/js/1.2d9cc5d7.chunk.js": "/static/js/1.2d9cc5d7.chunk.js", + "static/js/1.2d9cc5d7.chunk.js.map": "/static/js/1.2d9cc5d7.chunk.js.map", + "runtime~main.js": "/static/js/runtime~main.229c360f.js", + "runtime~main.js.map": "/static/js/runtime~main.229c360f.js.map", + "static/media/logo.svg": "/static/media/logo.5d5d9eef.svg", + "static/css/main.00d31530.chunk.css.map": "/static/css/main.00d31530.chunk.css.map", + "index.html": "/index.html", + "precache-manifest.9a45d7536728328acf203f96b0cbab56.js": "/precache-manifest.9a45d7536728328acf203f96b0cbab56.js", + "service-worker.js": "/service-worker.js" +} \ No newline at end of file diff --git a/cli/react-diff-view/favicon.ico b/cli/react-diff-view/favicon.ico new file mode 100644 index 0000000000..a11777cc47 Binary files /dev/null and b/cli/react-diff-view/favicon.ico differ diff --git a/cli/react-diff-view/index.html b/cli/react-diff-view/index.html new file mode 100644 index 0000000000..7e3b3d70c2 --- /dev/null +++ b/cli/react-diff-view/index.html @@ -0,0 +1 @@ +React App
\ No newline at end of file diff --git a/cli/react-diff-view/manifest.json b/cli/react-diff-view/manifest.json new file mode 100644 index 0000000000..1f2f141faf --- /dev/null +++ b/cli/react-diff-view/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/cli/react-diff-view/precache-manifest.9a45d7536728328acf203f96b0cbab56.js b/cli/react-diff-view/precache-manifest.9a45d7536728328acf203f96b0cbab56.js new file mode 100644 index 0000000000..ea61ced8f8 --- /dev/null +++ b/cli/react-diff-view/precache-manifest.9a45d7536728328acf203f96b0cbab56.js @@ -0,0 +1,26 @@ +self.__precacheManifest = [ + { + "revision": "5d5d9eefa31e5e13a6610d9fa7a283bb", + "url": "/static/media/logo.5d5d9eef.svg" + }, + { + "revision": "229c360febb4351a89df", + "url": "/static/js/runtime~main.229c360f.js" + }, + { + "revision": "bbe92b14c2861aead78f", + "url": "/static/js/main.bbe92b14.chunk.js" + }, + { + "revision": "2d9cc5d70a099ff2e93e", + "url": "/static/js/1.2d9cc5d7.chunk.js" + }, + { + "revision": "bbe92b14c2861aead78f", + "url": "/static/css/main.00d31530.chunk.css" + }, + { + "revision": "d13d8c41e8338eafe39dfdb257357ee3", + "url": "/index.html" + } +]; \ No newline at end of file diff --git a/cli/react-diff-view/service-worker.js b/cli/react-diff-view/service-worker.js new file mode 100644 index 0000000000..db2f44ca2b --- /dev/null +++ b/cli/react-diff-view/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.2/workbox-sw.js"); + +importScripts( + "/precache-manifest.9a45d7536728328acf203f96b0cbab56.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/cli/react-diff-view/static/css/main.00d31530.chunk.css b/cli/react-diff-view/static/css/main.00d31530.chunk.css new file mode 100644 index 0000000000..1e36d76996 --- /dev/null +++ b/cli/react-diff-view/static/css/main.00d31530.chunk.css @@ -0,0 +1,2 @@ +body{margin:0;padding:0;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}.App{text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:40vmin}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.syncPanel{width:100%;height:100%}.navigationWrapper{float:right}.navigationItem{height:10px;padding-right:30px;display:table-cell;vertical-align:middle}.toolbarIcon{background-repeat:no-repeat;width:35px;height:40px;background-size:contain;background-position:50%}.number{color:#dcdcdc;font-size:12px;margin-top:5px;margin-left:30px;position:absolute}.errorList,.number{font-family:Inconsolata}.errorList{list-style:decimal;font-size:14px;padding-left:5px}.disabledNavigationItem{pointer-events:none;opacity:.2}.fileList{list-style:none}.li{color:#dcdcdc;font-family:Inconsolata;padding:8px 8px 8px 13px;cursor:pointer}li:hover{-webkit-transition:all .2s;transition:all .2s;word-wrap:break-word}.liActive,li:hover{background-color:#b9bfbb;-webkit-transform:scale(1.05);transform:scale(1.05);cursor:pointer}.codeViewer{background-color:#fff;margin:5px;overflow:scroll;height:calc(100% - 40px);cursor:text}.codeTextEditor{background-color:#f6f6f6;margin:15px;min-width:calc(100% - 40px);min-height:calc(100% - 70px);position:absolute;font-family:Inconsolata;font-size:16px;outline:none;resize:none;border:none}.codeEditNav{margin-left:20px}.codeEditNavItem{display:table-cell;height:20px;font-weight:700;color:#3cb8fe;text-transform:uppercase;font-family:Inconsolata;padding-right:30px;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.codeEditNavItem:hover{-webkit-transition:all .2s;transition:all .2s;-webkit-transform:scale(1.05);transform:scale(1.05)}.panelWrapper{text-align:left}h1,h2,h3{font-family:Inconsolata;color:#dcdcdc;padding-bottom:10px}h1{font-size:50px}h2{font-size:30px}h3{font-size:15px}.Difference{font-family:Inconsolata;white-space:pre;width:100%;margin:0;padding:0;min-width:100%}.Difference>del{background-color:#ffe0e0}.Difference>del,.Difference>ins{text-decoration:none;display:block;min-width:100%}.Difference>ins{background-color:#c9eed3}.Difference>same{display:block;white-space:pre;min-width:100%} +/*# sourceMappingURL=main.00d31530.chunk.css.map */ \ No newline at end of file diff --git a/cli/react-diff-view/static/css/main.00d31530.chunk.css.map b/cli/react-diff-view/static/css/main.00d31530.chunk.css.map new file mode 100644 index 0000000000..f692c93c51 --- /dev/null +++ b/cli/react-diff-view/static/css/main.00d31530.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["/Users/aidancunniffe/Desktop/optic-diff-view/src/index.css","/Users/aidancunniffe/Desktop/optic-diff-view/src/App.css","/Users/aidancunniffe/Desktop/optic-diff-view/src/components/Sync.css","/Users/aidancunniffe/Desktop/optic-diff-view/src/components/DiffStyles.css","main.00d31530.chunk.css"],"names":[],"mappings":"AAAA,KACE,SAAU,AACV,UAAW,AACX,oIAEa,AACb,mCAAoC,AACpC,iCAAmC,CACpC,AAED,KACE,uEACY,CACb,ACbD,KACE,iBAAmB,CACpB,AAED,UACE,oDAA6C,AAA7C,4CAA6C,AAC7C,aAAe,CAChB,AAED,YACE,yBAA0B,AAC1B,iBAAkB,AAClB,aAAc,AACd,sBAAuB,AACvB,mBAAoB,AACpB,uBAAwB,AACxB,6BAA8B,AAC9B,UAAa,CACd,AAED,UACE,aAAe,CAChB,AAED,iCACE,GACE,+BAAwB,AAAxB,sBAAwB,CACzB,AACD,GACE,gCAA0B,AAA1B,uBAA0B,CAC3B,CACF,AAPD,yBACE,GACE,+BAAwB,AAAxB,sBAAwB,CACzB,AACD,GACE,gCAA0B,AAA1B,uBAA0B,CAC3B,CACF,AC/BD,WACC,WAAY,AACZ,WAAa,CACb,AAED,mBACC,WAAa,CACb,AACD,gBACC,YAAa,AACb,mBAAoB,AACpB,mBAAoB,AACpB,qBAAuB,CACvB,AAED,aACC,4BAA6B,AAC7B,WAAY,AACZ,YAAa,AACb,wBAAyB,AACzB,uBAA4B,CAC5B,AACD,QACC,cAAe,AACf,eAAgB,AAChB,eAAgB,AAChB,iBAAkB,AAClB,iBAAmB,CAEnB,AAED,mBAHC,uBAAyB,CAQzB,AALD,WACC,mBAAoB,AAEpB,eAAgB,AAChB,gBAAkB,CAClB,AAED,wBACC,oBAAqB,AACrB,UAAa,CACb,AAED,UACC,eAAiB,CACjB,AAED,IACC,cAAe,AACf,wBAAyB,AAEzB,yBAAmB,AACnB,cAAgB,CAChB,AAED,SAEC,2BAAsB,AAAtB,mBAAsB,AAEtB,oBAAsB,CAEtB,AAGD,mBARC,yBAA0B,AAE1B,8BAAuB,AAAvB,sBAAuB,AAEvB,cAAgB,CAQhB,AAED,YACC,sBAAwB,AACxB,WAAY,AACZ,gBAAiB,AACjB,yBAA0B,AAC1B,WAAa,CACb,AAED,gBACC,yBAA0B,AAC1B,YAAa,AACb,4BAA6B,AAC7B,6BAA8B,AAC9B,kBAAmB,AACnB,wBAAyB,AACzB,eAAgB,AAChB,aAAc,AACd,YAAa,AACb,WAAa,CACb,AAED,aACC,gBAAkB,CAClB,AAED,iBACC,mBAAoB,AACpB,YAAa,AACb,gBAAkB,AAClB,cAAe,AACf,yBAA0B,AAC1B,wBAAyB,AACzB,mBAAoB,AACpB,sBAAuB,AACvB,eAAgB,AAChB,yBAAkB,AAAlB,sBAAkB,AAAlB,qBAAkB,AAAlB,gBAAkB,CAClB,AAED,uBACC,2BAAsB,AAAtB,mBAAsB,AACtB,8BAAuB,AAAvB,qBAAuB,CACvB,AAED,cACC,eAAiB,CACjB,AAGD,SACC,wBAAyB,AACzB,cAAe,AACf,mBAAqB,CACrB,AACD,GACC,cAAgB,CAChB,AAED,GACC,cAAgB,CAChB,AAED,GACC,cAAgB,CAChB,ACrID,YACI,wBAAyB,AACzB,gBAAiB,AACjB,WAAY,AACZ,SAAY,AACZ,UAAa,AACb,cAAgB,CACnB,AAED,gBACI,wBAAqC,CAIxC,AAED,gCALI,qBAAsB,AACtB,cAAe,AACf,cAAgB,CAQnB,AALD,gBACI,wBAAqC,CAIxC,AAED,iBACI,cAAe,AACf,gBAAiB,AACjB,cAAgB,CC8MnB","file":"main.00d31530.chunk.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\n monospace;\n}\n",".App {\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 40vmin;\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",".syncPanel {\n\twidth: 100%;\n\theight: 100%;\n}\n\n.navigationWrapper {\n\tfloat: right;\n}\n.navigationItem {\n\theight: 10px;\n\tpadding-right: 30px;\n\tdisplay: table-cell;\n\tvertical-align: middle;\n}\n\n.toolbarIcon {\n\tbackground-repeat: no-repeat;\n\twidth: 35px;\n\theight: 40px;\n\tbackground-size: contain;\n\tbackground-position: center;\n}\n.number {\n\tcolor: #dcdcdc;\n\tfont-size: 12px;\n\tmargin-top: 5px;\n\tmargin-left: 30px;\n\tposition: absolute;\n\tfont-family: Inconsolata;\n}\n\n.errorList {\n\tlist-style: decimal;\n\tfont-family: Inconsolata;\n\tfont-size: 14px;\n\tpadding-left: 5px;\n}\n\n.disabledNavigationItem {\n\tpointer-events: none;\n\topacity: 0.2;\n}\n\n.fileList {\n\tlist-style: none;\n}\n\n.li {\n\tcolor: #dcdcdc;\n\tfont-family: Inconsolata;\n\tpadding: 8px;\n\tpadding-left: 13px;\n\tcursor: pointer;\n}\n\nli:hover {\n\tbackground-color: #b9bfbb;\n\ttransition: 200ms all;\n\ttransform: scale(1.05);\n\tword-wrap: break-word;\n\tcursor: pointer;\n}\n\n\n.liActive {\n\tbackground-color: #b9bfbb;\n\ttransform: scale(1.05);\n\tcursor: pointer;\n}\n\n.codeViewer {\n\tbackground-color: white;\n\tmargin: 5px;\n\toverflow: scroll;\n\theight: calc(100% - 40px);\n\tcursor: text;\n}\n\n.codeTextEditor {\n\tbackground-color: #f6f6f6;\n\tmargin: 15px;\n\tmin-width: calc(100% - 40px);\n\tmin-height: calc(100% - 70px);\n\tposition: absolute;\n\tfont-family: Inconsolata;\n\tfont-size: 16px;\n\toutline: none;\n\tresize: none;\n\tborder: none;\n}\n\n.codeEditNav {\n\tmargin-left: 20px;\n}\n\n.codeEditNavItem {\n\tdisplay: table-cell;\n\theight: 20px;\n\tfont-weight: bold;\n\tcolor: #3CB8FE;\n\ttext-transform: uppercase;\n\tfont-family: Inconsolata;\n\tpadding-right: 30px;\n\tvertical-align: middle;\n\tcursor: pointer;\n\tuser-select: none;\n}\n\n.codeEditNavItem:hover {\n\ttransition: 200ms all;\n\ttransform: scale(1.05);\n}\n\n.panelWrapper {\n\ttext-align: left;\n}\n\n\nh1, h2, h3 {\n\tfont-family: Inconsolata;\n\tcolor: #dcdcdc;\n\tpadding-bottom: 10px;\n}\nh1 {\n\tfont-size: 50px;\n}\n\nh2 {\n\tfont-size: 30px;\n}\n\nh3 {\n\tfont-size: 15px;\n}\n",".Difference {\n font-family: Inconsolata;\n white-space: pre;\n width: 100%;\n margin: 0px;\n padding: 0px;\n min-width: 100%;\n}\n\n.Difference > del {\n background-color: rgb(255, 224, 224);\n text-decoration: none;\n display: block;\n min-width: 100%;\n}\n\n.Difference > ins {\n background-color: rgb(201, 238, 211);\n text-decoration: none;\n display: block;\n min-width: 100%;\n}\n\n.Difference > same {\n display: block;\n white-space: pre;\n min-width: 100%;\n}","body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\n monospace;\n}\n\n.App {\n text-align: center;\n}\n\n.App-logo {\n -webkit-animation: App-logo-spin infinite 20s linear;\n animation: App-logo-spin infinite 20s linear;\n height: 40vmin;\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@-webkit-keyframes App-logo-spin {\n from {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes App-logo-spin {\n from {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n.syncPanel {\n\twidth: 100%;\n\theight: 100%;\n}\n\n.navigationWrapper {\n\tfloat: right;\n}\n.navigationItem {\n\theight: 10px;\n\tpadding-right: 30px;\n\tdisplay: table-cell;\n\tvertical-align: middle;\n}\n\n.toolbarIcon {\n\tbackground-repeat: no-repeat;\n\twidth: 35px;\n\theight: 40px;\n\tbackground-size: contain;\n\tbackground-position: center;\n}\n.number {\n\tcolor: #dcdcdc;\n\tfont-size: 12px;\n\tmargin-top: 5px;\n\tmargin-left: 30px;\n\tposition: absolute;\n\tfont-family: Inconsolata;\n}\n\n.errorList {\n\tlist-style: decimal;\n\tfont-family: Inconsolata;\n\tfont-size: 14px;\n\tpadding-left: 5px;\n}\n\n.disabledNavigationItem {\n\tpointer-events: none;\n\topacity: 0.2;\n}\n\n.fileList {\n\tlist-style: none;\n}\n\n.li {\n\tcolor: #dcdcdc;\n\tfont-family: Inconsolata;\n\tpadding: 8px;\n\tpadding-left: 13px;\n\tcursor: pointer;\n}\n\nli:hover {\n\tbackground-color: #b9bfbb;\n\t-webkit-transition: 200ms all;\n\ttransition: 200ms all;\n\t-webkit-transform: scale(1.05);\n\t transform: scale(1.05);\n\tword-wrap: break-word;\n\tcursor: pointer;\n}\n\n\n.liActive {\n\tbackground-color: #b9bfbb;\n\t-webkit-transform: scale(1.05);\n\t transform: scale(1.05);\n\tcursor: pointer;\n}\n\n.codeViewer {\n\tbackground-color: white;\n\tmargin: 5px;\n\toverflow: scroll;\n\theight: calc(100% - 40px);\n\tcursor: text;\n}\n\n.codeTextEditor {\n\tbackground-color: #f6f6f6;\n\tmargin: 15px;\n\tmin-width: calc(100% - 40px);\n\tmin-height: calc(100% - 70px);\n\tposition: absolute;\n\tfont-family: Inconsolata;\n\tfont-size: 16px;\n\toutline: none;\n\tresize: none;\n\tborder: none;\n}\n\n.codeEditNav {\n\tmargin-left: 20px;\n}\n\n.codeEditNavItem {\n\tdisplay: table-cell;\n\theight: 20px;\n\tfont-weight: bold;\n\tcolor: #3CB8FE;\n\ttext-transform: uppercase;\n\tfont-family: Inconsolata;\n\tpadding-right: 30px;\n\tvertical-align: middle;\n\tcursor: pointer;\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t -ms-user-select: none;\n\t user-select: none;\n}\n\n.codeEditNavItem:hover {\n\t-webkit-transition: 200ms all;\n\ttransition: 200ms all;\n\t-webkit-transform: scale(1.05);\n\t transform: scale(1.05);\n}\n\n.panelWrapper {\n\ttext-align: left;\n}\n\n\nh1, h2, h3 {\n\tfont-family: Inconsolata;\n\tcolor: #dcdcdc;\n\tpadding-bottom: 10px;\n}\nh1 {\n\tfont-size: 50px;\n}\n\nh2 {\n\tfont-size: 30px;\n}\n\nh3 {\n\tfont-size: 15px;\n}\n\n.Difference {\n font-family: Inconsolata;\n white-space: pre;\n width: 100%;\n margin: 0px;\n padding: 0px;\n min-width: 100%;\n}\n\n.Difference > del {\n background-color: rgb(255, 224, 224);\n text-decoration: none;\n display: block;\n min-width: 100%;\n}\n\n.Difference > ins {\n background-color: rgb(201, 238, 211);\n text-decoration: none;\n display: block;\n min-width: 100%;\n}\n\n.Difference > same {\n display: block;\n white-space: pre;\n min-width: 100%;\n}\n"]} \ No newline at end of file diff --git a/cli/react-diff-view/static/js/1.2d9cc5d7.chunk.js b/cli/react-diff-view/static/js/1.2d9cc5d7.chunk.js new file mode 100644 index 0000000000..f303f0f072 --- /dev/null +++ b/cli/react-diff-view/static/js/1.2d9cc5d7.chunk.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,r){"use strict";e.exports=r(182)},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(3),a=i.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(n(i,t),t.Buffer=o),n(a,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=a(e);return void 0!==t?"string"===typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(e){var i=r(201),a=r(202),n=r(112);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(i)return L(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function g(e,t,r,i,a){if(0===e.length)return-1;if("string"===typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,i,a);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,i,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,i,a){var n,o=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var l=-1;for(n=r;ns&&(r=s-c),n=r;n>=0;n--){for(var p=!0,f=0;fa&&(i=a):i=a;var n=t.length;if(n%2!==0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var o=0;o>8,a=r%256,n.push(a),n.push(i);return n}(t,e.length-r),e,r,i)}function j(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var i=[],a=t;a239?4:u>223?3:u>191?2:1;if(a+p<=r)switch(p){case 1:u<128&&(l=u);break;case 2:128===(192&(n=e[a+1]))&&(c=(31&u)<<6|63&n)>127&&(l=c);break;case 3:n=e[a+1],o=e[a+2],128===(192&n)&&128===(192&o)&&(c=(15&u)<<12|(63&n)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:n=e[a+1],o=e[a+2],s=e[a+3],128===(192&n)&&128===(192&o)&&128===(192&s)&&(c=(15&u)<<18|(63&n)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),a+=p}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.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 z(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,i,a){if(!c.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===i&&(i=0),void 0===a&&(a=this.length),t<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=r)return 0;if(i>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var n=(a>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(n,o),u=this.slice(i,a),l=e.slice(t,r),p=0;pa)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var n=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),n=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function A(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;ai)&&(r=i);for(var a="",n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,i,a,n){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var a=0,n=Math.min(e.length-r,2);a>>8*(i?a:1-a)}function B(e,t,r,i){t<0&&(t=4294967295+t+1);for(var a=0,n=Math.min(e.length-r,4);a>>8*(i?a:3-a)&255}function I(e,t,r,i,a,n){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,i,n){return n||I(e,0,r,4),a.write(e,t,r,i,23,4),r+4}function D(e,t,r,i,n){return n||I(e,0,r,8),a.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(a*=256);)i+=this[e+--t]*a;return i},c.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var i=this[e],a=1,n=0;++n=(a*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var i=t,a=1,n=this[e+--i];i>0&&(a*=256);)n+=this[e+--i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,n=0;for(this[t]=255&e;++n=0&&(n*=256);)this[t+a]=e/n&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);F(this,e,t,r,a-1,-a)}var n=0,o=1,s=0;for(this[t]=255&e;++n>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);F(this,e,t,r,a-1,-a)}var n=r-1,o=1,s=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else if(n<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(n=t;n55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&n.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&n.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.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;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function N(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,t,r,i){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}}).call(this,r(11))},function(e,t,r){(function(t){var i=r(26),a=r(19).Stream,n=r(6),o=/^[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 s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t,r,a,o){throw new i.AssertionError({message:n.format("%s (%s) is required",e,t),actual:void 0===o?typeof a:o(a),expected:t,operator:r||"===",stackStartFunction:c.caller})}function u(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 a},operator:"instanceof",actual:u},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:u},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:u},uuid:{check:function(e){return"string"===typeof e&&o.test(e)},operator:"isUUID"}};e.exports=function e(t){var r,a=Object.keys(p);return r=Object({NODE_ENV:"production",PUBLIC_URL:""}).NODE_NDEBUG?l:function(e,t){e||c(t,"true",e)},a.forEach(function(e){if(t)r[e]=l;else{var i=p[e];r[e]=function(t,r){i.check(t)||c(r,e,i.operator,t,i.actual)}}}),a.forEach(function(e){var i="optional"+s(e);if(t)r[i]=l;else{var a=p[e];r[i]=function(t,r){void 0!==t&&null!==t&&(a.check(t)||c(r,e,a.operator,t,a.actual))}}}),a.forEach(function(e){var i="arrayOf"+s(e);if(t)r[i]=l;else{var a=p[e],n="["+e+"]";r[i]=function(e,t){var r;for(Array.isArray(e)||c(t,n,a.operator,e,a.actual),r=0;r=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=n(e);return t&&0!==t.length?"string"===typeof r?i.fill(t,r):i.fill(t):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(c){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),e.exports=o}).call(this,r(8))},function(e,t,r){(function(e,i){var a=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return e}}),c=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),h(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),l(i,e,i.depth)}function c(e,t){var r=s.styles[t];return r?"\x1b["+s.colors[r][0]+"m"+e+"\x1b["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,i){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(i,e);return b(a)||(a=l(e,a,i)),a}var n=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(n)return n;var o=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(r);if(0===o.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return p(r)}var u,w="",j=!1,S=["{","}"];(d(r)&&(j=!0,S=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),k(r)&&(w=" "+Date.prototype.toUTCString.call(r)),_(r)&&(w=" "+p(r)),0!==o.length||j&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=j?function(e,t,r,i,a){for(var n=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,S)):S[0]+w+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,i,a,n){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(i,a)||(o="["+a+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=n?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(n&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function m(e){return null===e}function g(e){return"number"===typeof e}function b(e){return"string"===typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===j(e)}function w(e){return"object"===typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===j(e)}function _(e){return w(e)&&("[object Error]"===j(e)||e instanceof Error)}function x(e){return"function"===typeof e}function j(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(n)&&(n=Object({NODE_ENV:"production",PUBLIC_URL:""}).NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(n)){var r=i.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,i)}}else o[e]=function(){};return o[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=k,t.isError=_,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=r(244);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),E[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(1),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this,r(11),r(8))},function(e,t,r){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",function(){return i})},function(e,t){var r,i,a=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===n||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:n}catch(e){r=n}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++p1)for(var r=1;r=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return i}function c(e,t,r,i){for(var a=0,n=Math.min(e.length,r),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}n.isBN=function(e){return e instanceof n||null!==e&&"object"===typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},n.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},n.prototype._initArray=function(e,t,r){if(i("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[n]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,n++);else if("le"===r)for(a=0,n=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,n++);return this.strip()},n.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)a=s(e,r,r+6),this.words[i]|=a<>>26-n&4194303,(n+=24)>=26&&(n-=26,i++);r+6!==t&&(a=s(e,t,r+6),this.words[i]|=a<>>26-n&4194303),this.strip()},n.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,a=1;a<=67108863;a*=t)i++;i--,a=a/t|0;for(var n=e.length-r,o=n%i,s=Math.min(n,n-o)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var u=["","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"],l=[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],p=[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 f(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var a=0|e.words[0],n=0|t.words[0],o=a*n,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=(a=0|e.words[h])*(n=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()}n.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,o=0;o>>24-a&16777215)||o!==this.length-1?u[6-c.length]+c+r:c+r,(a+=2)>=26&&(a-=26,o--)}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)&&e>=2&&e<=36){var f=l[e],d=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(d).toString(e);r=(h=h.idivn(d)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return i("undefined"!==typeof o),this.toArrayLike(o,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,r){var a=this.byteLength(),n=r||Math.max(1,a);i(a<=n,"byte array longer than desired length"),i(n>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(n),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},n.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},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.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)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){i("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-r),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){i("number"===typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var a=0,n=0;n>>26;for(;0!==a&&n>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ne.length?this.clone().iadd(e):e.clone().iadd(this)},n.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,i,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==n&&o>26,this.words[o]=67108863&t;if(0===n&&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,_=0|o[4],x=8191&_,j=_>>>13,S=0|o[5],E=8191&S,A=S>>>13,P=0|o[6],z=8191&P,T=P>>>13,C=0|o[7],F=8191&C,O=C>>>13,B=0|o[8],I=8191&B,q=B>>>13,D=0|o[9],M=8191&D,R=D>>>13,L=0|s[0],N=8191&L,U=L>>>13,H=0|s[1],K=8191&H,V=H>>>13,$=0|s[2],W=8191&$,Z=$>>>13,G=0|s[3],Y=8191&G,Q=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ae=0|s[6],ne=8191&ae,oe=ae>>>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+(i=Math.imul(p,N))|0)+((8191&(a=(a=Math.imul(p,U))+Math.imul(f,N)|0))<<13)|0;u=((n=Math.imul(f,U))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(h,N),a=(a=Math.imul(h,U))+Math.imul(m,N)|0,n=Math.imul(m,U);var be=(u+(i=i+Math.imul(p,K)|0)|0)+((8191&(a=(a=a+Math.imul(p,V)|0)+Math.imul(f,K)|0))<<13)|0;u=((n=n+Math.imul(f,V)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,i=Math.imul(b,N),a=(a=Math.imul(b,U))+Math.imul(v,N)|0,n=Math.imul(v,U),i=i+Math.imul(h,K)|0,a=(a=a+Math.imul(h,V)|0)+Math.imul(m,K)|0,n=n+Math.imul(m,V)|0;var ve=(u+(i=i+Math.imul(p,W)|0)|0)+((8191&(a=(a=a+Math.imul(p,Z)|0)+Math.imul(f,W)|0))<<13)|0;u=((n=n+Math.imul(f,Z)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,N),a=(a=Math.imul(w,U))+Math.imul(k,N)|0,n=Math.imul(k,U),i=i+Math.imul(b,K)|0,a=(a=a+Math.imul(b,V)|0)+Math.imul(v,K)|0,n=n+Math.imul(v,V)|0,i=i+Math.imul(h,W)|0,a=(a=a+Math.imul(h,Z)|0)+Math.imul(m,W)|0,n=n+Math.imul(m,Z)|0;var ye=(u+(i=i+Math.imul(p,Y)|0)|0)+((8191&(a=(a=a+Math.imul(p,Q)|0)+Math.imul(f,Y)|0))<<13)|0;u=((n=n+Math.imul(f,Q)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(x,N),a=(a=Math.imul(x,U))+Math.imul(j,N)|0,n=Math.imul(j,U),i=i+Math.imul(w,K)|0,a=(a=a+Math.imul(w,V)|0)+Math.imul(k,K)|0,n=n+Math.imul(k,V)|0,i=i+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Z)|0)+Math.imul(v,W)|0,n=n+Math.imul(v,Z)|0,i=i+Math.imul(h,Y)|0,a=(a=a+Math.imul(h,Q)|0)+Math.imul(m,Y)|0,n=n+Math.imul(m,Q)|0;var we=(u+(i=i+Math.imul(p,J)|0)|0)+((8191&(a=(a=a+Math.imul(p,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((n=n+Math.imul(f,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(E,N),a=(a=Math.imul(E,U))+Math.imul(A,N)|0,n=Math.imul(A,U),i=i+Math.imul(x,K)|0,a=(a=a+Math.imul(x,V)|0)+Math.imul(j,K)|0,n=n+Math.imul(j,V)|0,i=i+Math.imul(w,W)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(k,W)|0,n=n+Math.imul(k,Z)|0,i=i+Math.imul(b,Y)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(v,Y)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(h,J)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(m,J)|0,n=n+Math.imul(m,ee)|0;var ke=(u+(i=i+Math.imul(p,re)|0)|0)+((8191&(a=(a=a+Math.imul(p,ie)|0)+Math.imul(f,re)|0))<<13)|0;u=((n=n+Math.imul(f,ie)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(z,N),a=(a=Math.imul(z,U))+Math.imul(T,N)|0,n=Math.imul(T,U),i=i+Math.imul(E,K)|0,a=(a=a+Math.imul(E,V)|0)+Math.imul(A,K)|0,n=n+Math.imul(A,V)|0,i=i+Math.imul(x,W)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(j,W)|0,n=n+Math.imul(j,Z)|0,i=i+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,Q)|0)+Math.imul(k,Y)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(b,J)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(v,J)|0,n=n+Math.imul(v,ee)|0,i=i+Math.imul(h,re)|0,a=(a=a+Math.imul(h,ie)|0)+Math.imul(m,re)|0,n=n+Math.imul(m,ie)|0;var _e=(u+(i=i+Math.imul(p,ne)|0)|0)+((8191&(a=(a=a+Math.imul(p,oe)|0)+Math.imul(f,ne)|0))<<13)|0;u=((n=n+Math.imul(f,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(F,N),a=(a=Math.imul(F,U))+Math.imul(O,N)|0,n=Math.imul(O,U),i=i+Math.imul(z,K)|0,a=(a=a+Math.imul(z,V)|0)+Math.imul(T,K)|0,n=n+Math.imul(T,V)|0,i=i+Math.imul(E,W)|0,a=(a=a+Math.imul(E,Z)|0)+Math.imul(A,W)|0,n=n+Math.imul(A,Z)|0,i=i+Math.imul(x,Y)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(j,Y)|0,n=n+Math.imul(j,Q)|0,i=i+Math.imul(w,J)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(k,J)|0,n=n+Math.imul(k,ee)|0,i=i+Math.imul(b,re)|0,a=(a=a+Math.imul(b,ie)|0)+Math.imul(v,re)|0,n=n+Math.imul(v,ie)|0,i=i+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(m,ne)|0,n=n+Math.imul(m,oe)|0;var xe=(u+(i=i+Math.imul(p,ce)|0)|0)+((8191&(a=(a=a+Math.imul(p,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((n=n+Math.imul(f,ue)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(I,N),a=(a=Math.imul(I,U))+Math.imul(q,N)|0,n=Math.imul(q,U),i=i+Math.imul(F,K)|0,a=(a=a+Math.imul(F,V)|0)+Math.imul(O,K)|0,n=n+Math.imul(O,V)|0,i=i+Math.imul(z,W)|0,a=(a=a+Math.imul(z,Z)|0)+Math.imul(T,W)|0,n=n+Math.imul(T,Z)|0,i=i+Math.imul(E,Y)|0,a=(a=a+Math.imul(E,Q)|0)+Math.imul(A,Y)|0,n=n+Math.imul(A,Q)|0,i=i+Math.imul(x,J)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(j,J)|0,n=n+Math.imul(j,ee)|0,i=i+Math.imul(w,re)|0,a=(a=a+Math.imul(w,ie)|0)+Math.imul(k,re)|0,n=n+Math.imul(k,ie)|0,i=i+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(v,ne)|0,n=n+Math.imul(v,oe)|0,i=i+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,ue)|0)+Math.imul(m,ce)|0,n=n+Math.imul(m,ue)|0;var je=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,fe)|0)+Math.imul(f,pe)|0))<<13)|0;u=((n=n+Math.imul(f,fe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,i=Math.imul(M,N),a=(a=Math.imul(M,U))+Math.imul(R,N)|0,n=Math.imul(R,U),i=i+Math.imul(I,K)|0,a=(a=a+Math.imul(I,V)|0)+Math.imul(q,K)|0,n=n+Math.imul(q,V)|0,i=i+Math.imul(F,W)|0,a=(a=a+Math.imul(F,Z)|0)+Math.imul(O,W)|0,n=n+Math.imul(O,Z)|0,i=i+Math.imul(z,Y)|0,a=(a=a+Math.imul(z,Q)|0)+Math.imul(T,Y)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(E,J)|0,a=(a=a+Math.imul(E,ee)|0)+Math.imul(A,J)|0,n=n+Math.imul(A,ee)|0,i=i+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ie)|0)+Math.imul(j,re)|0,n=n+Math.imul(j,ie)|0,i=i+Math.imul(w,ne)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(k,ne)|0,n=n+Math.imul(k,oe)|0,i=i+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(v,ce)|0,n=n+Math.imul(v,ue)|0,i=i+Math.imul(h,pe)|0,a=(a=a+Math.imul(h,fe)|0)+Math.imul(m,pe)|0,n=n+Math.imul(m,fe)|0;var Se=(u+(i=i+Math.imul(p,he)|0)|0)+((8191&(a=(a=a+Math.imul(p,me)|0)+Math.imul(f,he)|0))<<13)|0;u=((n=n+Math.imul(f,me)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(M,K),a=(a=Math.imul(M,V))+Math.imul(R,K)|0,n=Math.imul(R,V),i=i+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(q,W)|0,n=n+Math.imul(q,Z)|0,i=i+Math.imul(F,Y)|0,a=(a=a+Math.imul(F,Q)|0)+Math.imul(O,Y)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(z,J)|0,a=(a=a+Math.imul(z,ee)|0)+Math.imul(T,J)|0,n=n+Math.imul(T,ee)|0,i=i+Math.imul(E,re)|0,a=(a=a+Math.imul(E,ie)|0)+Math.imul(A,re)|0,n=n+Math.imul(A,ie)|0,i=i+Math.imul(x,ne)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(j,ne)|0,n=n+Math.imul(j,oe)|0,i=i+Math.imul(w,ce)|0,a=(a=a+Math.imul(w,ue)|0)+Math.imul(k,ce)|0,n=n+Math.imul(k,ue)|0,i=i+Math.imul(b,pe)|0,a=(a=a+Math.imul(b,fe)|0)+Math.imul(v,pe)|0,n=n+Math.imul(v,fe)|0;var Ee=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;u=((n=n+Math.imul(m,me)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(M,W),a=(a=Math.imul(M,Z))+Math.imul(R,W)|0,n=Math.imul(R,Z),i=i+Math.imul(I,Y)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(q,Y)|0,n=n+Math.imul(q,Q)|0,i=i+Math.imul(F,J)|0,a=(a=a+Math.imul(F,ee)|0)+Math.imul(O,J)|0,n=n+Math.imul(O,ee)|0,i=i+Math.imul(z,re)|0,a=(a=a+Math.imul(z,ie)|0)+Math.imul(T,re)|0,n=n+Math.imul(T,ie)|0,i=i+Math.imul(E,ne)|0,a=(a=a+Math.imul(E,oe)|0)+Math.imul(A,ne)|0,n=n+Math.imul(A,oe)|0,i=i+Math.imul(x,ce)|0,a=(a=a+Math.imul(x,ue)|0)+Math.imul(j,ce)|0,n=n+Math.imul(j,ue)|0,i=i+Math.imul(w,pe)|0,a=(a=a+Math.imul(w,fe)|0)+Math.imul(k,pe)|0,n=n+Math.imul(k,fe)|0;var Ae=(u+(i=i+Math.imul(b,he)|0)|0)+((8191&(a=(a=a+Math.imul(b,me)|0)+Math.imul(v,he)|0))<<13)|0;u=((n=n+Math.imul(v,me)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(M,Y),a=(a=Math.imul(M,Q))+Math.imul(R,Y)|0,n=Math.imul(R,Q),i=i+Math.imul(I,J)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(q,J)|0,n=n+Math.imul(q,ee)|0,i=i+Math.imul(F,re)|0,a=(a=a+Math.imul(F,ie)|0)+Math.imul(O,re)|0,n=n+Math.imul(O,ie)|0,i=i+Math.imul(z,ne)|0,a=(a=a+Math.imul(z,oe)|0)+Math.imul(T,ne)|0,n=n+Math.imul(T,oe)|0,i=i+Math.imul(E,ce)|0,a=(a=a+Math.imul(E,ue)|0)+Math.imul(A,ce)|0,n=n+Math.imul(A,ue)|0,i=i+Math.imul(x,pe)|0,a=(a=a+Math.imul(x,fe)|0)+Math.imul(j,pe)|0,n=n+Math.imul(j,fe)|0;var Pe=(u+(i=i+Math.imul(w,he)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(k,he)|0))<<13)|0;u=((n=n+Math.imul(k,me)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(M,J),a=(a=Math.imul(M,ee))+Math.imul(R,J)|0,n=Math.imul(R,ee),i=i+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ie)|0)+Math.imul(q,re)|0,n=n+Math.imul(q,ie)|0,i=i+Math.imul(F,ne)|0,a=(a=a+Math.imul(F,oe)|0)+Math.imul(O,ne)|0,n=n+Math.imul(O,oe)|0,i=i+Math.imul(z,ce)|0,a=(a=a+Math.imul(z,ue)|0)+Math.imul(T,ce)|0,n=n+Math.imul(T,ue)|0,i=i+Math.imul(E,pe)|0,a=(a=a+Math.imul(E,fe)|0)+Math.imul(A,pe)|0,n=n+Math.imul(A,fe)|0;var ze=(u+(i=i+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(j,he)|0))<<13)|0;u=((n=n+Math.imul(j,me)|0)+(a>>>13)|0)+(ze>>>26)|0,ze&=67108863,i=Math.imul(M,re),a=(a=Math.imul(M,ie))+Math.imul(R,re)|0,n=Math.imul(R,ie),i=i+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(q,ne)|0,n=n+Math.imul(q,oe)|0,i=i+Math.imul(F,ce)|0,a=(a=a+Math.imul(F,ue)|0)+Math.imul(O,ce)|0,n=n+Math.imul(O,ue)|0,i=i+Math.imul(z,pe)|0,a=(a=a+Math.imul(z,fe)|0)+Math.imul(T,pe)|0,n=n+Math.imul(T,fe)|0;var Te=(u+(i=i+Math.imul(E,he)|0)|0)+((8191&(a=(a=a+Math.imul(E,me)|0)+Math.imul(A,he)|0))<<13)|0;u=((n=n+Math.imul(A,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(M,ne),a=(a=Math.imul(M,oe))+Math.imul(R,ne)|0,n=Math.imul(R,oe),i=i+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(q,ce)|0,n=n+Math.imul(q,ue)|0,i=i+Math.imul(F,pe)|0,a=(a=a+Math.imul(F,fe)|0)+Math.imul(O,pe)|0,n=n+Math.imul(O,fe)|0;var Ce=(u+(i=i+Math.imul(z,he)|0)|0)+((8191&(a=(a=a+Math.imul(z,me)|0)+Math.imul(T,he)|0))<<13)|0;u=((n=n+Math.imul(T,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(M,ce),a=(a=Math.imul(M,ue))+Math.imul(R,ce)|0,n=Math.imul(R,ue),i=i+Math.imul(I,pe)|0,a=(a=a+Math.imul(I,fe)|0)+Math.imul(q,pe)|0,n=n+Math.imul(q,fe)|0;var Fe=(u+(i=i+Math.imul(F,he)|0)|0)+((8191&(a=(a=a+Math.imul(F,me)|0)+Math.imul(O,he)|0))<<13)|0;u=((n=n+Math.imul(O,me)|0)+(a>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,i=Math.imul(M,pe),a=(a=Math.imul(M,fe))+Math.imul(R,pe)|0,n=Math.imul(R,fe);var Oe=(u+(i=i+Math.imul(I,he)|0)|0)+((8191&(a=(a=a+Math.imul(I,me)|0)+Math.imul(q,he)|0))<<13)|0;u=((n=n+Math.imul(q,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Be=(u+(i=Math.imul(M,he))|0)+((8191&(a=(a=Math.imul(M,me))+Math.imul(R,he)|0))<<13)|0;return u=((n=Math.imul(R,me))+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=ge,c[1]=be,c[2]=ve,c[3]=ye,c[4]=we,c[5]=ke,c[6]=_e,c[7]=xe,c[8]=je,c[9]=Se,c[10]=Ee,c[11]=Ae,c[12]=Pe,c[13]=ze,c[14]=Te,c[15]=Ce,c[16]=Fe,c[17]=Oe,c[18]=Be,0!==u&&(c[19]=u,r.length++),r};function h(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(d=f),n.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,a=0,n=0;n>>26)|0)>>>26,o&=67108863}r.words[n]=s,i=o,o=a}return 0!==i?r.words[n]=i:r.length--,r.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=n.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,a,n){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&n,n>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=n>>>26,this.words[r]=67108863&n}return 0!==t&&(this.words[r]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new n(1);for(var r=this,i=0;i=0);var t,r=e%26,a=(e-r)/26,n=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var n=e%26,o=Math.min((e-n)/26,this.length),s=67108863^67108863>>>n<o)for(this.length-=o,u=0;u=0&&(0!==l||u>=a);u--){var p=0|this.words[u];this.words[u]=l<<26-n|p>>>n,l=p&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){i("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,a=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(i("number"===typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+r]=67108863&n}for(;a>26,this.words[a+r]=67108863&n;if(0===s)return this.strip();for(i(-1===s),s=0,a=0;a>26,this.words[a]=67108863&n;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),a=e,o=0|a.words[a.length-1];0!==(r=26-this._countBits(o))&&(a=a.ushln(r),i.iushln(r),o=0|a.words[a.length-1]);var s,c=i.length-a.length;if("mod"!==t){(s=new n(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;p--){var f=67108864*(0|i.words[a.length+p])+(0|i.words[a.length+p-1]);for(f=Math.min(f/o|0,67108863),i._ishlnsubmul(a,f,p);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,p),i.isZero()||(i.negative^=1);s&&(s.words[p]=f)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},n.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.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,i=e.ushrn(1),a=e.andln(1),n=r.cmp(i);return n<0||1===a&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,a=this.length-1;a>=0;a--)r=(t*r+(0|this.words[a]))%e;return r},n.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var a=(0|this.words[r])+67108864*t;this.words[r]=a/e|0,t=a%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new n(1),o=new n(0),s=new n(0),c=new n(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),p=t.clone();!t.isZero();){for(var f=0,d=1;0===(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(l),o.isub(p)),a.iushrn(1),o.iushrn(1);for(var h=0,m=1;0===(r.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(u)}},n.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new n(1),s=new n(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var p=0,f=1;0===(r.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(r.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var n=t;t=r,r=n}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0===(1&this.words[0])},n.prototype.isOdd=function(){return 1===(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){i("number"===typeof e);var t=e%26,r=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==n&&(this.words[o]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.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(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var i=0|this.words[r],a=0|e.words[r];if(i!==a){ia&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new _(e)},n.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"===typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},a(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,a=n}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=i}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return g[e]=t,t},_.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.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)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2===1),3===t){var r=this.m.add(new n(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new n(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var p=this.pow(l,a),f=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),h=o;0!==d.cmp(s);){for(var m=d,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g=0;i--){for(var u=t.words[i],l=c-1;l>=0;l--){var p=u>>l&1;a!==r[0]&&(a=this.sqr(a)),0!==p||0!==o?(o<<=1,o|=p,(4===++s||0===i&&0===l)&&(a=this.mul(a,r[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},a(x,_),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),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(i).iushrn(this.shift),n=a;return a.cmp(this.m)>=0?n=a.isub(this.m):a.cmpn(0)<0&&(n=a.iadd(this.m)),n._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(i).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof e||e,this)}).call(this,r(119)(e))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(i){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){e.exports={bufferSplit:function(e,t){i.buffer(e),i.string(t);for(var r=[],a=0,n=0,o=0;o=t.length){var s=o+1;r.push(e.slice(a,s-n)),a=s,n=0}a<=e.length&&r.push(e.slice(a,e.length));return r},addRSAMissing:function(e){i.object(e),h(e,n,[1,1]);var t,r=new p(e.part.d.data);if(!e.part.dmodp){var a=new p(e.part.p.data),o=r.mod(a.subtract(1));t=v(o),e.part.dmodp={name:"dmodp",data:t},e.parts.push(e.part.dmodp)}if(!e.part.dmodq){var s=new p(e.part.q.data),c=r.mod(s.subtract(1));t=v(c),e.part.dmodq={name:"dmodq",data:t},e.parts.push(e.part.dmodq)}},calculateDSAPublic:function(e,t,r){return i.buffer(e),i.buffer(t),i.buffer(r),e=new p(e),t=new p(t),r=new p(r),v(e.modPow(r,t))},calculateED25519Public:function(e){i.buffer(e);var t=f.sign.keyPair.fromSeed(new Uint8Array(e));return a.from(t.publicKey)},calculateX25519Public:function(e){i.buffer(e);var t=f.box.keyPair.fromSeed(new Uint8Array(e));return a.from(t.publicKey)},mpNormalize:b,mpDenormalize:function(e){i.buffer(e);for(;e.length>1&&0===e[0];)e=e.slice(1);return e},ecNormalize:function(e,t){if(i.buffer(e),0===e[0]&&4===e[1])return t?e:e.slice(1);if(4===e[0]){if(!t)return e}else{for(;0===e[0];)e=e.slice(1);if(2===e[0]||3===e[0])throw new Error("Compressed elliptic curve points are not supported");if(4!==e[0])throw new Error("Not a valid elliptic curve point");if(!t)return e}var r=a.alloc(e.length+1);return r[0]=0,e.copy(r,1),r},countZeros:function(e){var t=0,r=8;for(;td)return!1;if(i.constructor.name!==t.name)return!1;var n=i._sshpkApiVersion;void 0===n&&(n=t._oldVersionDetect(e));return!(n[0]!=r[0]||n[1]t;)i.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 m={"des-ede3-cbc":{key:7,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}},g=8;function b(e){for(i.buffer(e);e.length>1&&0===e[0]&&0===(128&e[1]);)e=e.slice(1);if(128===(128&e[0])){var t=a.alloc(e.length+1);t[0]=0,e.copy(t,1),e=t}return e}function v(e){var t=a.from(e.toByteArray());return t=b(t)}},function(e,t,r){(function(t){e.exports=g;var i,a=r(4),n=r(14),o=r(9),s=r(52),c=r(23),u=r(90).DiffieHellman,l=r(22),p=r(12),f=r(15);try{i=r(158)}catch(b){}var d=l.InvalidAlgorithmError,h=l.KeyParseError,m={};function g(e){a.object(e,"options"),a.arrayOfObject(e.parts,"options.parts"),a.string(e.type,"options.type"),a.optionalString(e.comment,"options.comment");var t=n.info[e.type];if("object"!==typeof t)throw new d(e.type);for(var r,i={},o=0;o1024&&(e="sha256"),"ed25519"===this.type&&(e="sha512"),"ecdsa"===this.type&&(e=this.size<=256?"sha256":this.size<=384?"sha384":"sha512"),e},g.prototype.createVerify=function(e){if(void 0===e&&(e=this.defaultHashAlgorithm()),a.string(e,"hash algorithm"),"ed25519"===this.type&&void 0!==i)return new i.Verifier(this,e);if("curve25519"===this.type)throw new Error("Curve25519 keys are not suitable for signing or verification");var r,n,s;try{n=e.toUpperCase(),r=o.createVerify(n)}catch(b){s=b}(void 0===r||s instanceof Error&&s.message.match(/Unknown message digest/))&&(n="RSA-",n+=e.toUpperCase(),r=o.createVerify(n)),a.ok(r,"failed to create verifier");var u=r.verify.bind(r),l=this.toBuffer("pkcs8"),p=this.curve,f=this;return r.verify=function(r,i){if(c.isSignature(r,[2,0]))return r.type===f.type&&((!r.hashAlgorithm||r.hashAlgorithm===e)&&((!r.curve||"ecdsa"!==f.type||r.curve===p)&&u(l,r.toBuffer("asn1"))));if("string"===typeof r||t.isBuffer(r))return u(l,r,i);throw c.isSignature(r,[1,0])?new Error("signature was created by too old a version of sshpk and cannot be verified"):new TypeError("signature must be a string, Buffer, or Signature object")},r},g.prototype.createDiffieHellman=function(){if("rsa"===this.type)throw new Error("RSA keys do not support Diffie-Hellman");return new u(this)},g.prototype.createDH=g.prototype.createDiffieHellman,g.parse=function(e,t,r){"string"!==typeof e&&a.buffer(e,"data"),void 0===t&&(t="auto"),a.string(t,"format"),"string"===typeof r&&(r={filename:r}),a.optionalObject(r,"options"),void 0===r&&(r={}),a.optionalString(r.filename,"options.filename"),void 0===r.filename&&(r.filename="(unnamed)"),a.object(m[t],"formats[format]");try{var i=m[t].read(e,r);return i instanceof f&&(i=i.toPublic()),i.comment||(i.comment=r.filename),i}catch(b){if("KeyEncryptedError"===b.name)throw b;throw new h(r.filename,t,b)}},g.isKey=function(e,t){return p.isCompatible(e,g,t)},g.prototype._sshpkApiVersion=[1,6],g._oldVersionDetect=function(e){return a.func(e.toBuffer),a.func(e.fingerprint),e.createDH?[1,4]:e.defaultHashAlgorithm?[1,3]:e.formats.auto?[1,2]:e.formats.pkcs1?[1,1]:[1,0]}}).call(this,r(3).Buffer)},function(e,t,r){var i=r(5).Buffer,a={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};a.curve25519=a.ed25519;var n={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};n.curve25519=n.ed25519;var o={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:i.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:i.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:i.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:i.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:i.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:i.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:i.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:i.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:i.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:i.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:i.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};e.exports={info:a,privInfo:n,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:o}},function(e,t,r){e.exports=y;var i=r(4),a=r(5).Buffer,n=r(14),o=r(9),s=(r(52),r(23)),c=r(22),u=r(6),l=r(12),p=r(90),f=p.generateECDSA,d=p.generateED25519,h=r(158),m=r(54),g=r(13),b=(c.InvalidAlgorithmError,c.KeyParseError),v=(c.KeyEncryptedError,{});function y(e){i.object(e,"options"),g.call(this,e),this._pubCache=void 0}v.auto=r(159),v.pem=r(27),v.pkcs1=r(93),v.pkcs8=r(56),v.rfc4253=r(34),v["ssh-private"]=r(69),v.openssh=v["ssh-private"],v.ssh=v["ssh-private"],v.dnssec=r(94),u.inherits(y,g),y.formats=v,y.prototype.toBuffer=function(e,t){return void 0===e&&(e="pkcs1"),i.string(e,"format"),i.object(v[e],"formats[format]"),i.optionalObject(t,"options"),v[e].write(this,t)},y.prototype.hash=function(e){return this.toPublic().hash(e)},y.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var e=n.info[this.type],t=[],r=0;r",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),p=["%","/","?",";","#"].concat(l),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(61);function y(e,t,r){if(e&&a.isObject(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),s=-1!==n&&n127?O+="x":O+=F[B];if(!O.match(d)){var q=T.slice(0,A),D=T.slice(A+1),M=F.match(h);M&&(q.push(M[1]),D.unshift(M[2])),D.length&&(y="/"+D.join(".")+y),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=i.toASCII(this.hostname));var R=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+R,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[_])for(A=0,C=l.length;A0)&&r.host.split("@"))&&(r.auth=z.shift(),r.host=r.hostname=z.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=x.slice(-1)[0],E=(r.host||e.host||x.length>1)&&("."===S||".."===S)||""===S,A=0,P=x.length;P>=0;P--)"."===(S=x[P])?x.splice(P,1):".."===S?(x.splice(P,1),A++):A&&(x.splice(P,1),A--);if(!k&&!_)for(;A--;A)x.unshift("..");!k||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var z,T=""===x[0]||x[0]&&"/"===x[0].charAt(0);j&&(r.hostname=r.host=T?"":x.length?x.shift():"",(z=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=z.shift(),r.host=r.hostname=z.shift()));return(k=k||r.host&&x.length)&&!T&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";var i=r(18),a=r(1);function n(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(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=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>8,o=255&a;n?r.push(n,o):r.push(o)}else for(i=0;i>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,a=0;i>>24,r[a+1]=n>>>16&255,r[a+2]=n>>>8&255,r[a+3]=255&n):(r[a+3]=n>>>24,r[a+2]=n>>>16&255,r[a+1]=n>>>8&255,r[a]=255&n)}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,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,a){return e+t+r+i+a>>>0},t.sum64=function(e,t,r,i){var a=e[t],n=i+e[t+1]>>>0,o=(n>>0,e[t+1]=n},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,a,n,o,s){var c=0,u=t;return c+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,a,n,o,s){return t+i+n+s>>>0},t.sum64_5_hi=function(e,t,r,i,a,n,o,s,c,u){var l=0,p=t;return l+=(p=p+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,a,n,o,s,c,u){return t+i+n+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 i=r(6);function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,a),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 n(e){Error.captureStackTrace&&Error.captureStackTrace(this,n),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`"}i.inherits(a,Error),i.inherits(n,Error),i.inherits(o,Error),i.inherits(s,Error),i.inherits(c,Error),i.inherits(u,Error),e.exports={FingerprintFormatError:a,InvalidAlgorithmError:n,KeyParseError:o,SignatureParseError:s,KeyEncryptedError:u,CertificateParseError:c}},function(e,t,r){e.exports=p;var i=r(4),a=r(5).Buffer,n=(r(14),r(9),r(22)),o=r(12),s=r(24),c=r(57),u=n.InvalidAlgorithmError,l=n.SignatureParseError;function p(e){i.object(e,"options"),i.arrayOfObject(e.parts,"options.parts"),i.string(e.type,"options.type");for(var t={},r=0;r20&&0===n[0]&&(n=n.slice(1)),(u=this.part.s.data).length>20&&0===u[0]&&(u=u.slice(1)),this.hashAlgorithm&&"sha1"!==this.hashAlgorithm||n.length+u.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return t.writeBuffer(a.concat([n,u])),t.toBuffer()}if("ssh"===e&&"ecdsa"===this.type){var p,f=new c({});n=this.part.r.data,f.writeBuffer(n),f.writePart(this.part.s),t=new c({}),0===n[0]&&(n=n.slice(1));var d=8*n.length;return 256===d?p="nistp256":384===d?p="nistp384":528===d&&(p="nistp521"),t.writeString("ecdsa-sha2-"+p),t.writeBuffer(f.toBuffer()),t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}},p.prototype.toString=function(e){return i.optionalString(e,"format"),this.toBuffer(e).toString("base64")},p.parse=function(e,t,r){"string"===typeof e&&(e=a.from(e,"base64")),i.buffer(e,"data"),i.string(r,"format"),i.string(t,"type");var n={};n.type=t.toLowerCase(),n.parts=[];try{switch(i.ok(e.length>0,"signature must not be empty"),n.type){case"rsa":case"ed25519":return f(e,t,r,n);case"dsa":case"ecdsa":return"asn1"===r?function(e,t,r,i){var a=new s.BerReader(e);a.readSequence();var n=a.readString(s.Ber.Integer,!0),c=a.readString(s.Ber.Integer,!0);return i.parts.push({name:"r",data:o.mpNormalize(n)}),i.parts.push({name:"s",data:o.mpNormalize(c)}),new p(i)}(e,0,0,n):"dsa"===n.type?function(e,t,r,a){if(40!=e.length){var n=new c({buffer:e}),o=n.readBuffer();"ssh-dss"===o.toString("ascii")&&(o=n.readBuffer()),i.ok(n.atEnd(),"extra trailing bytes"),i.strictEqual(o.length,40,"invalid inner length"),e=o}return a.parts.push({name:"r",data:e.slice(0,20)}),a.parts.push({name:"s",data:e.slice(20,40)}),new p(a)}(e,0,0,n):function(e,t,r,a){var n,o,s=new c({buffer:e}),u=s.readBuffer(),l=u.toString("ascii");if("ecdsa-"===l.slice(0,6)){var f=l.split("-");switch(i.strictEqual(f[0],"ecdsa"),i.strictEqual(f[1],"sha2"),a.curve=f[2],a.curve){case"nistp256":a.hashAlgo="sha256";break;case"nistp384":a.hashAlgo="sha384";break;case"nistp521":a.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+a.curve)}u=s.readBuffer(),i.ok(s.atEnd(),"extra trailing bytes on outer"),s=new c({buffer:u}),n=s.readPart()}else n={data:u};return o=s.readPart(),i.ok(s.atEnd(),"extra trailing bytes"),n.name="r",o.name="s",a.parts.push(n),a.parts.push(o),new p(a)}(e,0,0,n);default:throw new u(t)}}catch(d){if(d instanceof u)throw d;throw new l(t,r,d)}},p.isSignature=function(e,t){return o.isCompatible(e,p,t)},p.prototype._sshpkApiVersion=[2,1],p._oldVersionDetect=function(e){return i.func(e.toBuffer),e.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]}},function(e,t,r){var i=r(344);e.exports={Ber:i,BerReader:i.Reader,BerWriter:i.Writer}},function(e,t,r){var i=r(2).Buffer,a=r(19).Transform,n=r(60).StringDecoder;function o(e){a.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(1)(o,a),o.prototype.update=function(e,t,r){"string"===typeof e&&(e=i.from(e,t));var a=this._update(e);return this.hashMode?this:(r&&(a=this._toString(a,r)),a)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(a){i=a}finally{r(i)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new n(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=o},function(e,t,r){"use strict";(function(t){function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,a=0,n=Math.min(r,i);a=0;u--)if(l[u]!==p[u])return!1;for(u=l.length-1;u>=0;u--)if(c=l[u],!v(e[c],t[c],r,i))return!1;return!0}(e,t,r,o))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,r,i){var a;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(i=r,r=null),a=function(e){var t;try{e()}catch(r){t=r}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!a&&g(a,r,"Missing expected exception"+i);var o="string"===typeof i,s=!e&&a&&!r;if((!e&&n.isError(a)&&o&&w(a,r)||s)&&g(a,r,"Got unwanted exception"+i),e&&a&&r&&!w(a,r)||!e&&a)throw a}p.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=h(m((t=this).actual),128)+" "+t.operator+" "+h(m(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var a=i.stack,n=d(r),o=a.indexOf("\n"+n);if(o>=0){var s=a.indexOf("\n",o+1);a=a.substring(s+1)}this.stack=a}}},n.inherits(p.AssertionError,Error),p.fail=g,p.ok=b,p.equal=function(e,t,r){e!=t&&g(e,t,r,"==",p.equal)},p.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",p.notEqual)},p.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&g(t,r,i,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",p.strictEqual)},p.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",p.notStrictEqual)},p.throws=function(e,t,r){k(!0,e,t,r)},p.doesNotThrow=function(e,t,r){k(!1,e,t,r)},p.ifError=function(e){if(e)throw e};var _=Object.keys||function(e){var t=[];for(var r in e)o.call(e,r)&&t.push(r);return t}}).call(this,r(11))},function(e,t,r){e.exports={read:function(e,t,r){var c=e;"string"!==typeof e&&(i.buffer(e,"buf"),e=e.toString("ascii"));var u=e.trim().split("\n"),m=u[0].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);i.ok(m,"invalid PEM header");var g=u[u.length-1].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);i.ok(g,"invalid PEM footer"),i.equal(m[2],g[2]);var b,v=m[2].toLowerCase();m[1]&&(i.equal(m[1],g[1],"PEM header and footer mismatch"),b=m[1].trim());var y,w,k,_={};for(;u=u.slice(1),m=u[0].match(/^([A-Za-z0-9-]+): (.+)$/);)_[m[1].toLowerCase()]=m[2];if(_["proc-type"]){var x=_["proc-type"].split(",");if("4"===x[0]&&"ENCRYPTED"===x[1]){if("string"===typeof t.passphrase&&(t.passphrase=o.from(t.passphrase,"utf-8")),!o.isBuffer(t.passphrase))throw new h.KeyEncryptedError(t.filename,"PEM");x=_["dek-info"].split(","),i.ok(2===x.length),y=x[0].toLowerCase(),k=o.from(x[1],"hex"),w=s.opensslKeyDeriv(y,k,t.passphrase,1).key}}if(u=u.slice(0,-1).join(""),e=o.from(u,"base64"),y&&w&&k){var j,S=n.createDecipheriv(y,w,k),E=[];for(S.once("error",function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e}),S.write(e),S.end();null!==(j=S.read());)E.push(j);e=o.concat(E)}if(b&&"openssh"===b.toLowerCase())return f.readSSHPrivate(v,e,t);if(b&&"ssh2"===b.toLowerCase())return d.readType(v,e,t);var A=new a.BerReader(e);return A.originalInput=c,A.readSequence(),b?(r&&i.strictEqual(r,"pkcs1"),l.readPkcs1(b,v,A)):(r&&i.strictEqual(r,"pkcs8"),p.readPkcs8(b,v,A))},write:function(e,t,r){i.object(e);var n,s={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[e.type],f=new a.BerWriter;if(u.isPrivateKey(e))r&&"pkcs8"===r?(n="PRIVATE KEY",p.writePkcs8(f,e)):(r&&i.strictEqual(r,"pkcs1"),n=s+" PRIVATE KEY",l.writePkcs1(f,e));else{if(!c.isKey(e))throw new Error("key is not a Key or PrivateKey");r&&"pkcs1"===r?(n=s+" PUBLIC KEY",l.writePkcs1(f,e)):(r&&i.strictEqual(r,"pkcs8"),n="PUBLIC KEY",p.writePkcs8(f,e))}var d=f.buffer.toString("base64"),h=d.length+d.length/64+18+16+2*n.length+10,m=o.alloc(h),g=0;g+=m.write("-----BEGIN "+n+"-----\n",g);for(var b=0;bd.length&&(v=d.length),g+=m.write(d.slice(b,v),g),m[g++]=10,b=v}return g+=m.write("-----END "+n+"-----\n",g),m.slice(0,g)}};var i=r(4),a=r(24),n=r(9),o=r(5).Buffer,s=(r(14),r(12)),c=r(13),u=r(15),l=r(93),p=r(56),f=r(69),d=r(34),h=r(22)},function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",function(){return i})},function(e,t,r){"use strict";function i(e,t){for(var r=0;r=1,"key must have at least one part"),i.ok(e||h.atEnd(),"leftover bytes at end of key");var b=s,v=n.info[f.type];if("private"!==t&&v.parts.length===d.length||(v=n.privInfo[f.type],b=c),i.strictEqual(v.parts.length,d.length),"ecdsa"===f.type){var y=/^ecdsa-sha2-(.+)$/.exec(m);i.ok(null!==y),i.strictEqual(y[1],d[0].data.toString())}for(var w=!0,k=0;k65536)throw new Error("requested too many random bytes");var o=new t.Uint8Array(e);e>0&&n.getRandomValues(o);var s=a.from(o.buffer);if("function"===typeof r)return i.nextTick(function(){r(null,s)});return s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(11),r(8))},function(e,t,r){var i=r(2).Buffer;function a(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,a=this._blockSize,n=e.length,o=this._len,s=0;s=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 i=(4294967295&r)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},function(e,t,r){"use strict";function i(e,t,r){var i=r?" !== ":" === ",a=r?" || ":" && ",n=r?"!":"",o=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return n+"Array.isArray("+t+")";case"object":return"("+n+t+a+"typeof "+t+i+'"object"'+a+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+a+o+"("+t+" % 1)"+a+t+i+t+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:i,checkDataTypes:function(e,t){switch(e.length){case 1:return i(e[0],t,!0);default:var r="",a=n(e);for(var o in a.array&&a.object&&(r=a.null?"(":"(!"+t+" || ",r+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)r+=(r?" && ":"")+i(o,t,!0);return r}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],i=0;i=t)throw new Error("Cannot access property/index "+i+" levels up, current level is "+t);return r[t-i]}if(i>t)throw new Error("Cannot access data "+i+" levels up, current level is "+t);if(n="data"+(t-i||""),!a)return n}for(var s=n,u=a.split("/"),l=0;le.length?r:e}),u.value=e.join(p)}else u.value=e.join(r.slice(s,s+u.count));s+=u.count,u.added||(c+=u.count)}}var f=t[o-1];return o>1&&"string"===typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[o-2].value+=f.value,t.pop()),t}t.__esModule=!0,t.default=r,r.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.callback;"function"===typeof r&&(a=r,r={}),this.options=r;var n=this;function o(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,u=1,l=s+c,p=[{newPos:-1,components:[]}],f=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=s&&f+1>=c)return o([{value:this.join(t),count:t.length}]);function d(){for(var r=-1*u;r<=u;r+=2){var a=void 0,l=p[r-1],f=p[r+1],d=(f?f.newPos:0)-r;l&&(p[r-1]=void 0);var h=l&&l.newPos+1=s&&d+1>=c)return o(i(n,a.components,t,e,n.useLongestToken));p[r]=a}else p[r]=void 0}var g;u++}if(a)!function e(){setTimeout(function(){if(u>l)return a();d()||e()},0)}();else for(;u<=l;){var h=d();if(h)return h}},pushComponent:function(e,t,r){var i=e[e.length-1];i&&i.added===t&&i.removed===r?e[e.length-1]={count:i.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,i){for(var a=t.length,n=r.length,o=e.newPos,s=o-i,c=0;o+12&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=(0,a.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,c=r.compareLine||function(e,t,r,i){return t===i},u=0,l=r.fuzzFactor||0,p=0,f=0,d=void 0,h=void 0;function m(e,t){for(var r=0;r0?a[0]:" ",o=a.length>0?a.substr(1):a;if(" "===n||"-"===n){if(!c(t+1,i[t],n,o)&&++u>l)return!1;t++}}return!0}for(var g=0;g0?A[0]:" ",z=A.length>0?A.substr(1):A,T=j.linedelimiters[E];if(" "===P)S++;else if("-"===P)i.splice(S,1),n.splice(S,1);else if("+"===P)i.splice(S,0,z),n.splice(S,0,T),S++;else if("\\"===P){var C=j.lines[E-1]?j.lines[E-1][0]:null;"+"===C?d=!0:"-"===C&&(h=!0)}}}if(d)for(;!i[i.length-1];)i.pop(),n.pop();else h&&(i.push(""),n.push("\n"));for(var F=0;F1&&void 0!==arguments[1]?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],n=0;function o(){var e={};for(a.push(e);n0?l(s.lines.slice(-c.context)):[],f-=h.length,d-=h.length)}(o=h).push.apply(o,a(i.map(function(e){return(t.added?"+":"-")+e}))),t.added?g+=i.length:m+=i.length}else{if(f)if(i.length<=2*c.context&&e=u.length-2&&i.length<=c.context){var k=/\n$/.test(r),_=/\n$/.test(n);0!=i.length||k?k&&_||h.push("\\ No newline at end of file"):h.splice(w.oldLines,0,"\\ No newline at end of file")}p.push(w),f=0,d=0,h=[]}m+=i.length,g+=i.length}},v=0;ve.length)return!1;for(var r=0;r/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],i=0;i"):a.removed&&t.push(""),t.push(r(a.value)),a.added?t.push(""):a.removed&&t.push("")}return t.join("")}}])},e.exports=i()},function(e,t,r){var i=r(105),a=r(197);function n(t,r){return delete e.exports[t],e.exports[t]=r,r}e.exports={Parser:i,Tokenizer:r(106),ElementType:r(44),DomHandler:a,get FeedHandler(){return n("FeedHandler",r(199))},get Stream(){return n("Stream",r(200))},get WritableStream(){return n("WritableStream",r(110))},get ProxyHandler(){return n("ProxyHandler",r(214))},get DomUtils(){return n("DomUtils",r(215))},get CollectingHandler(){return n("CollectingHandler",r(227))},DefaultHandler:a,get RssHandler(){return n("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var r=new a(t);return new i(r,t).end(e),r.dom},parseFeed:function(t,r){var a=new e.exports.FeedHandler(r);return new i(a,r).end(t),a.dom},createDomStream:function(e,t,r){var n=new a(e,t,r);return new i(n,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"===typeof e}function a(e){return"object"===typeof e&&null!==e}function n(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,o,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n(r=this._events[e]))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(a(r))for(s=Array.prototype.slice.call(arguments,1),o=(u=r.slice()).length,c=0;c0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=!1;function a(){this.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},r.prototype.removeListener=function(e,t){var r,n,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(r=this._events[e]).length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){n=s;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,r){(t=e.exports=r(111)).Stream=t,t.Readable=t,t.Writable=r(75),t.Duplex=r(33),t.Transform=r(115),t.PassThrough=r(208)},function(e,t,r){"use strict";var i=r(1),a=r(80),n=r(81),o=r(82),s=r(25);function c(e){s.call(this,"digest"),this._hash=e}i(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new n:new c(o(e))}},function(e,t,r){(function(t){e.exports=function(e,r){for(var i=Math.min(e.length,r.length),a=new t(i),n=0;n=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=i.join32(e,0,e.length-r,this.endian);for(var a=0;a>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=255&e}else for(i[a++]=255&e,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,n=8;n2){r="md5","md5"===c[0].toLowerCase()&&(c=c.slice(1)),c=(c=c.map(function(t){for(;t.length<2;)t="0"+t;if(t.length>2)throw new p(e);return t})).join("");if(!/^[a-fA-F0-9]+$/.test(c)||c.length%2!==0)throw new p(e);try{o=a.from(c,"hex")}catch(u){throw new p(e)}}if(void 0===r)throw new p(e);if(void 0===n.hashAlgs[r])throw new f(r);if(void 0!==s&&-1===(s=s.map(function(e){return e.toLowerCase()})).indexOf(r))throw new f(r);return new d({algorithm:r,hash:o,type:t.type||"key"})},d.isFingerprint=function(e,t){return l.isCompatible(e,d,t)},d.prototype._sshpkApiVersion=[1,1],d._oldVersionDetect=function(e){return i.func(e.toString),i.func(e.matches),[1,0]}},function(e,t,r){e.exports=g;var i=r(4),a=r(5).Buffer,n=r(14),o=r(9),s=r(52),c=(r(23),r(22)),u=(r(6),r(12)),l=r(13),p=r(15),f=r(58),d={};d.openssh=r(347),d.x509=r(162),d.pem=r(348);var h=c.CertificateParseError,m=c.InvalidAlgorithmError;function g(e){i.object(e,"options"),i.arrayOfObject(e.subjects,"options.subjects"),u.assertCompatible(e.subjects[0],f,[1,0],"options.subjects"),u.assertCompatible(e.subjectKey,l,[1,0],"options.subjectKey"),u.assertCompatible(e.issuer,f,[1,0],"options.issuer"),void 0!==e.issuerKey&&u.assertCompatible(e.issuerKey,l,[1,0],"options.issuerKey"),i.object(e.signatures,"options.signatures"),i.buffer(e.serial,"options.serial"),i.date(e.validFrom,"options.validFrom"),i.date(e.validUntil,"optons.validUntil"),i.optionalArrayOfString(e.purposes,"options.purposes"),this._hashCache={},this.subjects=e.subjects,this.issuer=e.issuer,this.subjectKey=e.subjectKey,this.issuerKey=e.issuerKey,this.signatures=e.signatures,this.serial=e.serial,this.validFrom=e.validFrom,this.validUntil=e.validUntil,this.purposes=e.purposes}g.formats=d,g.prototype.toBuffer=function(e,t){return void 0===e&&(e="x509"),i.string(e,"format"),i.object(d[e],"formats[format]"),i.optionalObject(t,"options"),d[e].write(this,t)},g.prototype.toString=function(e,t){return void 0===e&&(e="pem"),this.toBuffer(e,t).toString()},g.prototype.fingerprint=function(e){void 0===e&&(e="sha256"),i.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new s(t)},g.prototype.hash=function(e){if(i.string(e,"algorithm"),e=e.toLowerCase(),void 0===n.hashAlgs[e])throw new m(e);if(this._hashCache[e])return this._hashCache[e];var t=o.createHash(e).update(this.toBuffer("x509")).digest();return this._hashCache[e]=t,t},g.prototype.isExpired=function(e){return void 0===e&&(e=new Date),!(e.getTime()>=this.validFrom.getTime()&&e.getTime()0&&-1===this.issuer.purposes.indexOf("ca"))&&this.isSignedByKey(e.subjectKey))},g.prototype.getExtension=function(e){return i.string(e,"keyOrOid"),this.getExtensions().filter(function(t){return"x509"===t.format?t.oid===e:"openssh"===t.format&&t.name===e})[0]},g.prototype.getExtensions=function(){var e=[],t=this.signatures.x509;t&&t.extras&&t.extras.exts&&t.extras.exts.forEach(function(t){t.format="x509",e.push(t)});var r=this.signatures.openssh;return r&&r.exts&&r.exts.forEach(function(t){t.format="openssh",e.push(t)}),e},g.prototype.isSignedByKey=function(e){if(u.assertCompatible(e,l,[1,2],"issuerKey"),void 0!==this.issuerKey)return this.issuerKey.fingerprint("sha512").matches(e);var t=Object.keys(this.signatures)[0],r=d[t].verify(this,e);return r&&(this.issuerKey=e),r},g.prototype.signWith=function(e){u.assertCompatible(e,p,[1,2],"key");for(var t=Object.keys(d),r=!1,i=0;i0&&-1===d.indexOf("serverAuth")&&d.push("serverAuth"),m.length>0&&-1===d.indexOf("clientAuth")&&d.push("clientAuth"),(m.length>0||h.length>0)&&(-1===d.indexOf("keyAgreement")&&d.push("keyAgreement"),"rsa"===t.type&&-1===d.indexOf("encryption")&&d.push("encryption"))}var b=new g({subjects:n,issuer:n[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:l,validFrom:o,validUntil:s,purposes:d});return b.signWith(t),b},g.create=function(e,t,r,n,o){var s;s=Array.isArray(e)?e:[e],i.arrayOfObject(s),s.forEach(function(e){u.assertCompatible(e,f,[1,0],"subject")}),u.assertCompatible(t,l,[1,0],"key"),p.isPrivateKey(t)&&(t=t.toPublic()),u.assertCompatible(r,f,[1,0],"issuer"),u.assertCompatible(n,p,[1,2],"issuer key"),i.optionalObject(o,"options"),void 0===o&&(o={}),i.optionalObject(o.validFrom,"options.validFrom"),i.optionalObject(o.validUntil,"options.validUntil");var c=o.validFrom,d=o.validUntil;if(void 0===c&&(c=new Date),void 0===d){i.optionalNumber(o.lifetime,"options.lifetime");var h=o.lifetime;void 0===h&&(h=31536e4),(d=new Date).setTime(d.getTime()+1e3*h)}i.optionalBuffer(o.serial,"options.serial");var m=o.serial;void 0===m&&(m=a.from("0000000000000001","hex"));var b=o.purposes;void 0===b&&(b=[]),-1===b.indexOf("signature")&&b.push("signature"),!0===o.ca&&(-1===b.indexOf("ca")&&b.push("ca"),-1===b.indexOf("crl")&&b.push("crl"));var v=s.filter(function(e){return"host"===e.type}),y=s.filter(function(e){return"user"===e.type});v.length>0&&-1===b.indexOf("serverAuth")&&b.push("serverAuth"),y.length>0&&-1===b.indexOf("clientAuth")&&b.push("clientAuth"),(y.length>0||v.length>0)&&(-1===b.indexOf("keyAgreement")&&b.push("keyAgreement"),"rsa"===t.type&&-1===b.indexOf("encryption")&&b.push("encryption"));var w=new g({subjects:s,issuer:r,subjectKey:t,issuerKey:n.toPublic(),signatures:{},serial:m,validFrom:c,validUntil:d,purposes:b});return w.signWith(n),w},g.parse=function(e,t,r){"string"!==typeof e&&i.buffer(e,"data"),void 0===t&&(t="auto"),i.string(t,"format"),"string"===typeof r&&(r={filename:r}),i.optionalObject(r,"options"),void 0===r&&(r={}),i.optionalString(r.filename,"options.filename"),void 0===r.filename&&(r.filename="(unnamed)"),i.object(d[t],"formats[format]");try{return d[t].read(e,r)}catch(a){throw new h(r.filename,t,a)}},g.isCertificate=function(e,t){return u.isCompatible(e,g,t)},g.prototype._sshpkApiVersion=[1,1],g._oldVersionDetect=function(e){return[1,0]}},function(e,t,r){!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=i>>24&255,e[t+5]=i>>16&255,e[t+6]=i>>8&255,e[t+7]=255&i}function m(e,t,r,i,a){var n,o=0;for(n=0;n>>8)-1}function g(e,t,r,i){return m(e,t,r,i,16)}function b(e,t,r,i){return m(e,t,r,i,32)}function v(e,t,r,i){!function(e,t,r,i){for(var a,n=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[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&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[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&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[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&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,k=n,_=o,x=s,j=c,S=u,E=l,A=p,P=f,z=d,T=h,C=m,F=g,O=b,B=v,I=y,q=w,D=0;D<20;D+=2)k^=(a=(O^=(a=(z^=(a=(S^=(a=k+O|0)<<7|a>>>25)+k|0)<<9|a>>>23)+S|0)<<13|a>>>19)+z|0)<<18|a>>>14,E^=(a=(_^=(a=(B^=(a=(T^=(a=E+_|0)<<7|a>>>25)+E|0)<<9|a>>>23)+T|0)<<13|a>>>19)+B|0)<<18|a>>>14,C^=(a=(A^=(a=(x^=(a=(I^=(a=C+A|0)<<7|a>>>25)+C|0)<<9|a>>>23)+I|0)<<13|a>>>19)+x|0)<<18|a>>>14,q^=(a=(F^=(a=(P^=(a=(j^=(a=q+F|0)<<7|a>>>25)+q|0)<<9|a>>>23)+j|0)<<13|a>>>19)+P|0)<<18|a>>>14,k^=(a=(j^=(a=(x^=(a=(_^=(a=k+j|0)<<7|a>>>25)+k|0)<<9|a>>>23)+_|0)<<13|a>>>19)+x|0)<<18|a>>>14,E^=(a=(S^=(a=(P^=(a=(A^=(a=E+S|0)<<7|a>>>25)+E|0)<<9|a>>>23)+A|0)<<13|a>>>19)+P|0)<<18|a>>>14,C^=(a=(T^=(a=(z^=(a=(F^=(a=C+T|0)<<7|a>>>25)+C|0)<<9|a>>>23)+F|0)<<13|a>>>19)+z|0)<<18|a>>>14,q^=(a=(I^=(a=(B^=(a=(O^=(a=q+I|0)<<7|a>>>25)+q|0)<<9|a>>>23)+O|0)<<13|a>>>19)+B|0)<<18|a>>>14;k=k+n|0,_=_+o|0,x=x+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,C=C+m|0,F=F+g|0,O=O+b|0,B=B+v|0,I=I+y|0,q=q+w|0,e[0]=k>>>0&255,e[1]=k>>>8&255,e[2]=k>>>16&255,e[3]=k>>>24&255,e[4]=_>>>0&255,e[5]=_>>>8&255,e[6]=_>>>16&255,e[7]=_>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>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]=C>>>0&255,e[41]=C>>>8&255,e[42]=C>>>16&255,e[43]=C>>>24&255,e[44]=F>>>0&255,e[45]=F>>>8&255,e[46]=F>>>16&255,e[47]=F>>>24&255,e[48]=O>>>0&255,e[49]=O>>>8&255,e[50]=O>>>16&255,e[51]=O>>>24&255,e[52]=B>>>0&255,e[53]=B>>>8&255,e[54]=B>>>16&255,e[55]=B>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=q>>>0&255,e[61]=q>>>8&255,e[62]=q>>>16&255,e[63]=q>>>24&255}(e,t,r,i)}function y(e,t,r,i){!function(e,t,r,i){for(var a,n=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[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&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[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&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[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&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,k=0;k<20;k+=2)n^=(a=(b^=(a=(d^=(a=(u^=(a=n+b|0)<<7|a>>>25)+n|0)<<9|a>>>23)+u|0)<<13|a>>>19)+d|0)<<18|a>>>14,l^=(a=(o^=(a=(v^=(a=(h^=(a=l+o|0)<<7|a>>>25)+l|0)<<9|a>>>23)+h|0)<<13|a>>>19)+v|0)<<18|a>>>14,m^=(a=(p^=(a=(s^=(a=(y^=(a=m+p|0)<<7|a>>>25)+m|0)<<9|a>>>23)+y|0)<<13|a>>>19)+s|0)<<18|a>>>14,w^=(a=(g^=(a=(f^=(a=(c^=(a=w+g|0)<<7|a>>>25)+w|0)<<9|a>>>23)+c|0)<<13|a>>>19)+f|0)<<18|a>>>14,n^=(a=(c^=(a=(s^=(a=(o^=(a=n+c|0)<<7|a>>>25)+n|0)<<9|a>>>23)+o|0)<<13|a>>>19)+s|0)<<18|a>>>14,l^=(a=(u^=(a=(f^=(a=(p^=(a=l+u|0)<<7|a>>>25)+l|0)<<9|a>>>23)+p|0)<<13|a>>>19)+f|0)<<18|a>>>14,m^=(a=(h^=(a=(d^=(a=(g^=(a=m+h|0)<<7|a>>>25)+m|0)<<9|a>>>23)+g|0)<<13|a>>>19)+d|0)<<18|a>>>14,w^=(a=(y^=(a=(v^=(a=(b^=(a=w+y|0)<<7|a>>>25)+w|0)<<9|a>>>23)+b|0)<<13|a>>>19)+v|0)<<18|a>>>14;e[0]=n>>>0&255,e[1]=n>>>8&255,e[2]=n>>>16&255,e[3]=n>>>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,i)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function k(e,t,r,i,a,n,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]=n[c];for(;a>=64;){for(v(l,u,o,w),c=0;c<64;c++)e[t+c]=r[i+c]^l[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;a-=64,t+=64,i+=64}if(a>0)for(v(l,u,o,w),c=0;c=64;){for(v(c,s,a,w),o=0;o<64;o++)e[t+o]=c[o];for(n=1,o=8;o<16;o++)n=n+(255&s[o])|0,s[o]=255&n,n>>>=8;r-=64,t+=64}if(r>0)for(v(c,s,a,w),o=0;o>>13|r<<3),i=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|i<<6),a=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(i>>>7|a<<9),n=255&e[8]|(255&e[9])<<8,this.r[4]=255&(a>>>4|n<<12),this.r[5]=n>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(n>>>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 E(e,t,r,i,a,n){var o=new S(n);return o.update(r,i,a),o.finish(e,t),0}function A(e,t,r,i,a,n){var o=new Uint8Array(16);return E(o,0,r,i,a,n),g(e,t,o,0)}function P(e,t,r,i,a){var n;if(r<32)return-1;for(j(e,0,t,0,r,i,a),E(e,16,e,32,r-32,e),n=0;n<16;n++)e[n]=0;return 0}function z(e,t,r,i,a){var n,o=new Uint8Array(32);if(r<32)return-1;if(x(o,0,32,i,a),0!==A(t,16,t,32,r-32,o))return-1;for(j(e,0,t,0,r,i,a),n=0;n<32;n++)e[n]=0;return 0}function T(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function C(e){var t,r,i=1;for(t=0;t<16;t++)r=e[t]+i+65535,i=Math.floor(r/65536),e[t]=r-65536*i;e[0]+=i-1+37*(i-1)}function F(e,t,r){for(var i,a=~(r-1),n=0;n<16;n++)i=a&(e[n]^t[n]),e[n]^=i,t[n]^=i}function O(e,r){var i,a,n,o=t(),s=t();for(i=0;i<16;i++)s[i]=r[i];for(C(s),C(s),C(s),a=0;a<2;a++){for(o[0]=s[0]-65517,i=1;i<15;i++)o[i]=s[i]-65535-(o[i-1]>>16&1),o[i-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),n=o[15]>>16&1,o[14]&=65535,F(s,o,1-n)}for(i=0;i<16;i++)e[2*i]=255&s[i],e[2*i+1]=s[i]>>8}function B(e,t){var r=new Uint8Array(32),i=new Uint8Array(32);return O(r,e),O(i,t),b(r,0,i,0)}function I(e){var t=new Uint8Array(32);return O(t,e),1&t[0]}function q(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 i=0;i<16;i++)e[i]=t[i]+r[i]}function M(e,t,r){for(var i=0;i<16;i++)e[i]=t[i]-r[i]}function R(e,t,r){var i,a,n=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,_=0,x=0,j=0,S=0,E=0,A=0,P=0,z=0,T=0,C=0,F=0,O=0,B=0,I=0,q=r[0],D=r[1],M=r[2],R=r[3],L=r[4],N=r[5],U=r[6],H=r[7],K=r[8],V=r[9],$=r[10],W=r[11],Z=r[12],G=r[13],Y=r[14],Q=r[15];n+=(i=t[0])*q,o+=i*D,s+=i*M,c+=i*R,u+=i*L,l+=i*N,p+=i*U,f+=i*H,d+=i*K,h+=i*V,m+=i*$,g+=i*W,b+=i*Z,v+=i*G,y+=i*Y,w+=i*Q,o+=(i=t[1])*q,s+=i*D,c+=i*M,u+=i*R,l+=i*L,p+=i*N,f+=i*U,d+=i*H,h+=i*K,m+=i*V,g+=i*$,b+=i*W,v+=i*Z,y+=i*G,w+=i*Y,k+=i*Q,s+=(i=t[2])*q,c+=i*D,u+=i*M,l+=i*R,p+=i*L,f+=i*N,d+=i*U,h+=i*H,m+=i*K,g+=i*V,b+=i*$,v+=i*W,y+=i*Z,w+=i*G,k+=i*Y,_+=i*Q,c+=(i=t[3])*q,u+=i*D,l+=i*M,p+=i*R,f+=i*L,d+=i*N,h+=i*U,m+=i*H,g+=i*K,b+=i*V,v+=i*$,y+=i*W,w+=i*Z,k+=i*G,_+=i*Y,x+=i*Q,u+=(i=t[4])*q,l+=i*D,p+=i*M,f+=i*R,d+=i*L,h+=i*N,m+=i*U,g+=i*H,b+=i*K,v+=i*V,y+=i*$,w+=i*W,k+=i*Z,_+=i*G,x+=i*Y,j+=i*Q,l+=(i=t[5])*q,p+=i*D,f+=i*M,d+=i*R,h+=i*L,m+=i*N,g+=i*U,b+=i*H,v+=i*K,y+=i*V,w+=i*$,k+=i*W,_+=i*Z,x+=i*G,j+=i*Y,S+=i*Q,p+=(i=t[6])*q,f+=i*D,d+=i*M,h+=i*R,m+=i*L,g+=i*N,b+=i*U,v+=i*H,y+=i*K,w+=i*V,k+=i*$,_+=i*W,x+=i*Z,j+=i*G,S+=i*Y,E+=i*Q,f+=(i=t[7])*q,d+=i*D,h+=i*M,m+=i*R,g+=i*L,b+=i*N,v+=i*U,y+=i*H,w+=i*K,k+=i*V,_+=i*$,x+=i*W,j+=i*Z,S+=i*G,E+=i*Y,A+=i*Q,d+=(i=t[8])*q,h+=i*D,m+=i*M,g+=i*R,b+=i*L,v+=i*N,y+=i*U,w+=i*H,k+=i*K,_+=i*V,x+=i*$,j+=i*W,S+=i*Z,E+=i*G,A+=i*Y,P+=i*Q,h+=(i=t[9])*q,m+=i*D,g+=i*M,b+=i*R,v+=i*L,y+=i*N,w+=i*U,k+=i*H,_+=i*K,x+=i*V,j+=i*$,S+=i*W,E+=i*Z,A+=i*G,P+=i*Y,z+=i*Q,m+=(i=t[10])*q,g+=i*D,b+=i*M,v+=i*R,y+=i*L,w+=i*N,k+=i*U,_+=i*H,x+=i*K,j+=i*V,S+=i*$,E+=i*W,A+=i*Z,P+=i*G,z+=i*Y,T+=i*Q,g+=(i=t[11])*q,b+=i*D,v+=i*M,y+=i*R,w+=i*L,k+=i*N,_+=i*U,x+=i*H,j+=i*K,S+=i*V,E+=i*$,A+=i*W,P+=i*Z,z+=i*G,T+=i*Y,C+=i*Q,b+=(i=t[12])*q,v+=i*D,y+=i*M,w+=i*R,k+=i*L,_+=i*N,x+=i*U,j+=i*H,S+=i*K,E+=i*V,A+=i*$,P+=i*W,z+=i*Z,T+=i*G,C+=i*Y,F+=i*Q,v+=(i=t[13])*q,y+=i*D,w+=i*M,k+=i*R,_+=i*L,x+=i*N,j+=i*U,S+=i*H,E+=i*K,A+=i*V,P+=i*$,z+=i*W,T+=i*Z,C+=i*G,F+=i*Y,O+=i*Q,y+=(i=t[14])*q,w+=i*D,k+=i*M,_+=i*R,x+=i*L,j+=i*N,S+=i*U,E+=i*H,A+=i*K,P+=i*V,z+=i*$,T+=i*W,C+=i*Z,F+=i*G,O+=i*Y,B+=i*Q,w+=(i=t[15])*q,o+=38*(_+=i*M),s+=38*(x+=i*R),c+=38*(j+=i*L),u+=38*(S+=i*N),l+=38*(E+=i*U),p+=38*(A+=i*H),f+=38*(P+=i*K),d+=38*(z+=i*V),h+=38*(T+=i*$),m+=38*(C+=i*W),g+=38*(F+=i*Z),b+=38*(O+=i*G),v+=38*(B+=i*Y),y+=38*(I+=i*Q),n=(i=(n+=38*(k+=i*D))+(a=1)+65535)-65536*(a=Math.floor(i/65536)),o=(i=o+a+65535)-65536*(a=Math.floor(i/65536)),s=(i=s+a+65535)-65536*(a=Math.floor(i/65536)),c=(i=c+a+65535)-65536*(a=Math.floor(i/65536)),u=(i=u+a+65535)-65536*(a=Math.floor(i/65536)),l=(i=l+a+65535)-65536*(a=Math.floor(i/65536)),p=(i=p+a+65535)-65536*(a=Math.floor(i/65536)),f=(i=f+a+65535)-65536*(a=Math.floor(i/65536)),d=(i=d+a+65535)-65536*(a=Math.floor(i/65536)),h=(i=h+a+65535)-65536*(a=Math.floor(i/65536)),m=(i=m+a+65535)-65536*(a=Math.floor(i/65536)),g=(i=g+a+65535)-65536*(a=Math.floor(i/65536)),b=(i=b+a+65535)-65536*(a=Math.floor(i/65536)),v=(i=v+a+65535)-65536*(a=Math.floor(i/65536)),y=(i=y+a+65535)-65536*(a=Math.floor(i/65536)),w=(i=w+a+65535)-65536*(a=Math.floor(i/65536)),n=(i=(n+=a-1+37*(a-1))+(a=1)+65535)-65536*(a=Math.floor(i/65536)),o=(i=o+a+65535)-65536*(a=Math.floor(i/65536)),s=(i=s+a+65535)-65536*(a=Math.floor(i/65536)),c=(i=c+a+65535)-65536*(a=Math.floor(i/65536)),u=(i=u+a+65535)-65536*(a=Math.floor(i/65536)),l=(i=l+a+65535)-65536*(a=Math.floor(i/65536)),p=(i=p+a+65535)-65536*(a=Math.floor(i/65536)),f=(i=f+a+65535)-65536*(a=Math.floor(i/65536)),d=(i=d+a+65535)-65536*(a=Math.floor(i/65536)),h=(i=h+a+65535)-65536*(a=Math.floor(i/65536)),m=(i=m+a+65535)-65536*(a=Math.floor(i/65536)),g=(i=g+a+65535)-65536*(a=Math.floor(i/65536)),b=(i=b+a+65535)-65536*(a=Math.floor(i/65536)),v=(i=v+a+65535)-65536*(a=Math.floor(i/65536)),y=(i=y+a+65535)-65536*(a=Math.floor(i/65536)),w=(i=w+a+65535)-65536*(a=Math.floor(i/65536)),n+=a-1+37*(a-1),e[0]=n,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){R(e,t,t)}function N(e,r){var i,a=t();for(i=0;i<16;i++)a[i]=r[i];for(i=253;i>=0;i--)L(a,a),2!==i&&4!==i&&R(a,a,r);for(i=0;i<16;i++)e[i]=a[i]}function U(e,r,i){var a,n,o=new Uint8Array(32),s=new Float64Array(80),u=t(),l=t(),p=t(),f=t(),d=t(),h=t();for(n=0;n<31;n++)o[n]=r[n];for(o[31]=127&r[31]|64,o[0]&=248,q(s,i),n=0;n<16;n++)l[n]=s[n],f[n]=u[n]=p[n]=0;for(u[0]=f[0]=1,n=254;n>=0;--n)F(u,l,a=o[n>>>3]>>>(7&n)&1),F(p,f,a),D(d,u,p),M(u,u,p),D(p,l,f),M(l,l,f),L(f,d),L(h,u),R(u,p,u),R(p,l,d),D(d,u,p),M(u,u,p),L(l,u),M(p,f,h),R(u,p,c),D(u,u,f),R(p,p,u),R(u,f,h),R(f,l,s),L(l,d),F(u,l,a),F(p,f,a);for(n=0;n<16;n++)s[n+16]=u[n],s[n+32]=p[n],s[n+48]=l[n],s[n+64]=f[n];var m=s.subarray(32),g=s.subarray(16);return N(m,m),R(g,g,m),O(e,g),0}function H(e,t){return U(e,t,n)}function K(e,t){return i(t,32),H(e,t)}function V(e,t,r){var i=new Uint8Array(32);return U(i,r,t),y(e,a,i,w)}S.prototype.blocks=function(e,t,r){for(var i,a,n,o,s,c,u,l,p,f,d,h,m,g,b,v,y,w,k,_=this.fin?0:2048,x=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],C=this.h[8],F=this.h[9],O=this.r[0],B=this.r[1],I=this.r[2],q=this.r[3],D=this.r[4],M=this.r[5],R=this.r[6],L=this.r[7],N=this.r[8],U=this.r[9];r>=16;)f=p=0,f+=(x+=8191&(i=255&e[t+0]|(255&e[t+1])<<8))*O,f+=(j+=8191&(i>>>13|(a=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*U),f+=(S+=8191&(a>>>10|(n=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*N),f+=(E+=8191&(n>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*L),p=(f+=(A+=8191&(o>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*R))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*M),f+=(z+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),f+=(T+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*q),f+=(C+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),d=p+=(f+=(F+=l>>>5|_)*(5*B))>>>13,d+=x*B,d+=j*O,d+=S*(5*U),d+=E*(5*N),p=(d+=A*(5*L))>>>13,d&=8191,d+=P*(5*R),d+=z*(5*M),d+=T*(5*D),d+=C*(5*q),p+=(d+=F*(5*I))>>>13,d&=8191,h=p,h+=x*I,h+=j*B,h+=S*O,h+=E*(5*U),p=(h+=A*(5*N))>>>13,h&=8191,h+=P*(5*L),h+=z*(5*R),h+=T*(5*M),h+=C*(5*D),m=p+=(h+=F*(5*q))>>>13,m+=x*q,m+=j*I,m+=S*B,m+=E*O,p=(m+=A*(5*U))>>>13,m&=8191,m+=P*(5*N),m+=z*(5*L),m+=T*(5*R),m+=C*(5*M),g=p+=(m+=F*(5*D))>>>13,g+=x*D,g+=j*q,g+=S*I,g+=E*B,p=(g+=A*O)>>>13,g&=8191,g+=P*(5*U),g+=z*(5*N),g+=T*(5*L),g+=C*(5*R),b=p+=(g+=F*(5*M))>>>13,b+=x*M,b+=j*D,b+=S*q,b+=E*I,p=(b+=A*B)>>>13,b&=8191,b+=P*O,b+=z*(5*U),b+=T*(5*N),b+=C*(5*L),v=p+=(b+=F*(5*R))>>>13,v+=x*R,v+=j*M,v+=S*D,v+=E*q,p=(v+=A*I)>>>13,v&=8191,v+=P*B,v+=z*O,v+=T*(5*U),v+=C*(5*N),y=p+=(v+=F*(5*L))>>>13,y+=x*L,y+=j*R,y+=S*M,y+=E*D,p=(y+=A*q)>>>13,y&=8191,y+=P*I,y+=z*B,y+=T*O,y+=C*(5*U),w=p+=(y+=F*(5*N))>>>13,w+=x*N,w+=j*L,w+=S*R,w+=E*M,p=(w+=A*D)>>>13,w&=8191,w+=P*q,w+=z*I,w+=T*B,w+=C*O,k=p+=(w+=F*(5*U))>>>13,k+=x*U,k+=j*N,k+=S*L,k+=E*R,p=(k+=A*M)>>>13,k&=8191,k+=P*D,k+=z*q,k+=T*I,k+=C*B,x=f=8191&(p=(p=((p+=(k+=F*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,C=w&=8191,F=k&=8191,t+=16,r-=16;this.h[0]=x,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]=C,this.h[9]=F},S.prototype.finish=function(e,t){var r,i,a,n,o=new Uint16Array(10);if(this.leftover){for(n=this.leftover,this.buffer[n++]=1;n<16;n++)this.buffer[n]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,n=2;n<10;n++)this.h[n]+=r,r=this.h[n]>>>13,this.h[n]&=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,n=1;n<10;n++)o[n]=this.h[n]+r,r=o[n]>>>13,o[n]&=8191;for(o[9]-=8192,i=(1^r)-1,n=0;n<10;n++)o[n]&=i;for(i=~i,n=0;n<10;n++)this.h[n]=this.h[n]&i|o[n];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),a=this.h[0]+this.pad[0],this.h[0]=65535&a,n=1;n<8;n++)a=(this.h[n]+this.pad[n]|0)+(a>>>16)|0,this.h[n]=65535&a;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},S.prototype.update=function(e,t,r){var i,a;if(this.leftover){for((a=16-this.leftover)>r&&(a=r),i=0;i=16&&(a=r-r%16,this.blocks(e,t,a),t+=a,r-=a),r){for(i=0;i=128;){for(_=0;_<16;_++)x=8*_+G,T[_]=r[x+0]<<24|r[x+1]<<16|r[x+2]<<8|r[x+3],C[_]=r[x+4]<<24|r[x+5]<<16|r[x+6]<<8|r[x+7];for(_=0;_<80;_++)if(a=F,n=O,o=B,s=I,c=q,u=D,l=M,R,f=L,d=N,h=U,m=H,g=K,b=V,v=$,W,E=65535&(S=W),A=S>>>16,P=65535&(j=R),z=j>>>16,E+=65535&(S=(K>>>14|q<<18)^(K>>>18|q<<14)^(q>>>9|K<<23)),A+=S>>>16,P+=65535&(j=(q>>>14|K<<18)^(q>>>18|K<<14)^(K>>>9|q<<23)),z+=j>>>16,E+=65535&(S=K&V^~K&$),A+=S>>>16,P+=65535&(j=q&D^~q&M),z+=j>>>16,j=Z[2*_],E+=65535&(S=Z[2*_+1]),A+=S>>>16,P+=65535&j,z+=j>>>16,j=T[_%16],A+=(S=C[_%16])>>>16,P+=65535&j,z+=j>>>16,P+=(A+=(E+=65535&S)>>>16)>>>16,E=65535&(S=k=65535&E|A<<16),A=S>>>16,P=65535&(j=w=65535&P|(z+=P>>>16)<<16),z=j>>>16,E+=65535&(S=(L>>>28|F<<4)^(F>>>2|L<<30)^(F>>>7|L<<25)),A+=S>>>16,P+=65535&(j=(F>>>28|L<<4)^(L>>>2|F<<30)^(L>>>7|F<<25)),z+=j>>>16,A+=(S=L&N^L&U^N&U)>>>16,P+=65535&(j=F&O^F&B^O&B),z+=j>>>16,p=65535&(P+=(A+=(E+=65535&S)>>>16)>>>16)|(z+=P>>>16)<<16,y=65535&E|A<<16,E=65535&(S=m),A=S>>>16,P=65535&(j=s),z=j>>>16,A+=(S=k)>>>16,P+=65535&(j=w),z+=j>>>16,O=a,B=n,I=o,q=s=65535&(P+=(A+=(E+=65535&S)>>>16)>>>16)|(z+=P>>>16)<<16,D=c,M=u,R=l,F=p,N=f,U=d,H=h,K=m=65535&E|A<<16,V=g,$=b,W=v,L=y,_%16===15)for(x=0;x<16;x++)j=T[x],E=65535&(S=C[x]),A=S>>>16,P=65535&j,z=j>>>16,j=T[(x+9)%16],E+=65535&(S=C[(x+9)%16]),A+=S>>>16,P+=65535&j,z+=j>>>16,w=T[(x+1)%16],E+=65535&(S=((k=C[(x+1)%16])>>>1|w<<31)^(k>>>8|w<<24)^(k>>>7|w<<25)),A+=S>>>16,P+=65535&(j=(w>>>1|k<<31)^(w>>>8|k<<24)^w>>>7),z+=j>>>16,w=T[(x+14)%16],A+=(S=((k=C[(x+14)%16])>>>19|w<<13)^(w>>>29|k<<3)^(k>>>6|w<<26))>>>16,P+=65535&(j=(w>>>19|k<<13)^(k>>>29|w<<3)^w>>>6),z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,T[x]=65535&P|z<<16,C[x]=65535&E|A<<16;E=65535&(S=L),A=S>>>16,P=65535&(j=F),z=j>>>16,j=e[0],A+=(S=t[0])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[0]=F=65535&P|z<<16,t[0]=L=65535&E|A<<16,E=65535&(S=N),A=S>>>16,P=65535&(j=O),z=j>>>16,j=e[1],A+=(S=t[1])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[1]=O=65535&P|z<<16,t[1]=N=65535&E|A<<16,E=65535&(S=U),A=S>>>16,P=65535&(j=B),z=j>>>16,j=e[2],A+=(S=t[2])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[2]=B=65535&P|z<<16,t[2]=U=65535&E|A<<16,E=65535&(S=H),A=S>>>16,P=65535&(j=I),z=j>>>16,j=e[3],A+=(S=t[3])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[3]=I=65535&P|z<<16,t[3]=H=65535&E|A<<16,E=65535&(S=K),A=S>>>16,P=65535&(j=q),z=j>>>16,j=e[4],A+=(S=t[4])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[4]=q=65535&P|z<<16,t[4]=K=65535&E|A<<16,E=65535&(S=V),A=S>>>16,P=65535&(j=D),z=j>>>16,j=e[5],A+=(S=t[5])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[5]=D=65535&P|z<<16,t[5]=V=65535&E|A<<16,E=65535&(S=$),A=S>>>16,P=65535&(j=M),z=j>>>16,j=e[6],A+=(S=t[6])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[6]=M=65535&P|z<<16,t[6]=$=65535&E|A<<16,E=65535&(S=W),A=S>>>16,P=65535&(j=R),z=j>>>16,j=e[7],A+=(S=t[7])>>>16,P+=65535&j,z+=j>>>16,z+=(P+=(A+=(E+=65535&S)>>>16)>>>16)>>>16,e[7]=R=65535&P|z<<16,t[7]=W=65535&E|A<<16,G+=128,i-=128}return i}function Y(e,t,r){var i,a=new Int32Array(8),n=new Int32Array(8),o=new Uint8Array(256),s=r;for(a[0]=1779033703,a[1]=3144134277,a[2]=1013904242,a[3]=2773480762,a[4]=1359893119,a[5]=2600822924,a[6]=528734635,a[7]=1541459225,n[0]=4089235720,n[1]=2227873595,n[2]=4271175723,n[3]=1595750129,n[4]=2917565137,n[5]=725511199,n[6]=4215389547,n[7]=327033209,G(a,n,t,r),r%=128,i=0;i=0;--a)X(e,t,i=r[a/8|0]>>(7&a)&1),Q(t,e),Q(e,e),X(e,t,i)}function te(e,r){var i=[t(),t(),t(),t()];T(i[0],p),T(i[1],f),T(i[2],s),R(i[3],p,f),ee(e,i,r)}function re(e,r,a){var n,o=new Uint8Array(64),s=[t(),t(),t(),t()];for(a||i(r,32),Y(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,te(s,o),J(e,s),n=0;n<32;n++)r[n+32]=e[n];return 0}var ie=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 ae(e,t){var r,i,a,n;for(i=63;i>=32;--i){for(r=0,a=i-32,n=i-12;a>8,t[a]-=256*r;t[a]+=r,t[i]=0}for(r=0,a=0;a<32;a++)t[a]+=r-(t[31]>>4)*ie[a],r=t[a]>>8,t[a]&=255;for(a=0;a<32;a++)t[a]-=r*ie[a];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function ne(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;ae(e,r)}function oe(e,r,i,a){var n,o,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),p=[t(),t(),t(),t()];Y(s,a,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=i+64;for(n=0;n=0;i--)L(a,a),1!==i&&R(a,a,r);for(i=0;i<16;i++)e[i]=a[i]}(i,i),R(i,i,n),R(i,i,c),R(i,i,c),R(e[0],i,c),L(a,e[0]),R(a,a,c),B(a,n)&&R(e[0],e[0],d),L(a,e[0]),R(a,a,c),B(a,n)?-1:(I(e[0])===r[31]>>7&&M(e[0],o,e[0]),R(e[3],e[0],e[1]),0)}function ce(e,r,i,a){var n,o=new Uint8Array(32),s=new Uint8Array(64),c=[t(),t(),t(),t()],u=[t(),t(),t(),t()];if(-1,i<64)return-1;if(se(u,a))return-1;for(n=0;n=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(me(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r>15;--n>=0;){var c=32767&this[e],u=this[e++]>>15,l=s*c+u*o;a=((c=o*c+((32767&l)<<15)+r[i]+(1073741823&a))>>>30)+(l>>>15)+s*u+(a>>>30),r[i++]=1073741823&c}return a},t=30):a&&"Netscape"!=navigator.appName?(r.prototype.am=function(e,t,r,i,a,n){for(;--n>=0;){var o=t*this[e++]+r[i]+a;a=Math.floor(o/67108864),r[i++]=67108863&o}return a},t=26):(r.prototype.am=function(e,t,r,i,a,n){for(var o=16383&t,s=t>>14;--n>=0;){var c=16383&this[e],u=this[e++]>>14,l=s*c+u*o;a=((c=o*c+((16383&l)<<14)+r[i]+a)>>28)+(l>>14)+s*u,r[i++]=268435455&c}return a},t=28),r.prototype.DB=t,r.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 d(e){this.m=e}function h(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function w(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function k(){}function _(e){return e}function x(e){this.r2=i(),this.q3=i(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}d.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},d.prototype.revert=function(e){return e},d.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},d.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},h.prototype.convert=function(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},h.prototype.revert=function(e){var t=i();return e.copyTo(t),this.reduce(t),t},h.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},h.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var i;if(16==t)i=4;else if(8==t)i=3;else if(256==t)i=8;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return void this.fromRadix(e,t);i=2}this.t=0,this.s=0;for(var a=e.length,n=!1,o=0;--a>=0;){var s=8==i?255&e[a]:l(e,a);s<0?"-"==e.charAt(a)&&(n=!0):(n=!1,0==o?this[this.t++]=s:o+i>this.DB?(this[this.t-1]|=(s&(1<>this.DB-o):this[this.t-1]|=s<=this.DB&&(o-=this.DB))}8==i&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+o+1]=this[r]>>a|s,s=(this[r]&n)<=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,n=(1<>i;for(var o=r+1;o>i;i>0&&(t[this.t-r-1]|=(this.s&n)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var i=this.abs(),a=e.abs(),n=i.t;for(t.t=n+a.t;--n>=0;)t[n]=0;for(n=0;n=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,a){var n=e.abs();if(!(n.t<=0)){var o=this.abs();if(o.t0?(n.lShiftTo(l,s),o.lShiftTo(l,a)):(n.copyTo(s),o.copyTo(a));var p=s.t,d=s[p-1];if(0!=d){var h=d*(1<1?s[p-2]>>this.F2:0),m=this.FV/h,g=(1<=0&&(a[a.t++]=1,a.subTo(w,a)),r.ONE.dlShiftTo(p,w),w.subTo(s,s);s.t=0;){var k=a[--v]==d?this.DM:Math.floor(a[v]*m+(a[v-1]+b)*g);if((a[v]+=s.am(0,k,a,y,0,p))0&&a.rShiftTo(l,a),c<0&&r.ZERO.subTo(a,a)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var a=i(),n=i(),o=t.convert(this),s=f(e)-1;for(o.copyTo(a);--s>=0;)if(t.sqrTo(a,n),(e&1<0)t.mulTo(n,o,a);else{var c=a;a=n,n=c}return t.revert(a)},r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,i=(1<0)for(s>s)>0&&(a=!0,n=u(r));o>=0;)s>(s+=this.DB-t)):(r=this[o]>>(s-=t)&i,s<=0&&(s+=this.DB,--o)),r>0&&(a=!0),a&&(n+=u(r));return a?n:"0"},r.prototype.negate=function(){var e=i();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+f(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(e){var t=i();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t},r.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new d(t):new h(t),this.exp(e,r)},r.ZERO=p(0),r.ONE=p(1),k.prototype.convert=_,k.prototype.revert=_,k.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},k.prototype.sqrTo=function(e,t){e.squareTo(t)},x.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=i();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);e.compareTo(this.m)>=0;)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,A=[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],P=(1<<26)/A[A.length-1];function z(){var e;e=(new Date).getTime(),S[E++]^=255&e,S[E++]^=e>>8&255,S[E++]^=e>>16&255,S[E++]^=e>>24&255,E>=q&&(E-=q)}if(r.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},r.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),a=p(r),n=i(),o=i(),s="";for(this.divRemTo(a,n,o);n.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,n.divRemTo(a,n,o);return o.intValue().toString(e)+s},r.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var i=this.chunkSize(t),a=Math.pow(t,i),n=!1,o=0,s=0,c=0;c=i&&(this.dMultiply(a),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),n&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(e,t,i){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),g,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(r.ONE.shiftLeft(e-1),this);else{var a=new Array,n=7&e;a.length=1+(e>>3),t.nextBytes(a),n>0?a[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},r.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},r.prototype.multiplyLowerTo=function(e,t,r){var i,a=Math.min(this.t+e.t,t);for(r.s=0,r.t=a;a>0;)r[--a]=0;for(i=r.t-this.t;a=0;)r[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},r.prototype.millerRabin=function(e){var t=this.subtract(r.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var n=t.shiftRight(a);(e=e+1>>1)>A.length&&(e=A.length);for(var o=i(),s=0;s>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,i=this.DB-e*this.DB%8,a=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[a++]=r|this.s<=0;)i<8?(r=(this[e]&(1<>(i+=this.DB-8)):(r=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==a&&(128&this.s)!=(128&r)&&++a,(a>0||r!=this.s)&&(t[a++]=r);return t},r.prototype.equals=function(e){return 0==this.compareTo(e)},r.prototype.min=function(e){return this.compareTo(e)<0?this:e},r.prototype.max=function(e){return this.compareTo(e)>0?this:e},r.prototype.and=function(e){var t=i();return this.bitwiseTo(e,m,t),t},r.prototype.or=function(e){var t=i();return this.bitwiseTo(e,g,t),t},r.prototype.xor=function(e){var t=i();return this.bitwiseTo(e,b,t),t},r.prototype.andNot=function(e){var t=i();return this.bitwiseTo(e,v,t),t},r.prototype.not=function(){for(var e=i(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var m=i();for(a.sqrTo(s[1],m);c<=l;)s[c]=i(),a.mulTo(m,s[c-2],s[c]),c+=2}var g,b,v=e.t-1,y=!0,w=i();for(n=f(e[v])-1;v>=0;){for(n>=u?g=e[v]>>n-u&l:(g=(e[v]&(1<0&&(g|=e[v-1]>>this.DB+n-u)),c=r;0==(1&g);)g>>=1,--c;if((n-=c)<0&&(n+=this.DB,--v),y)s[g].copyTo(o),y=!1;else{for(;c>1;)a.sqrTo(o,w),a.sqrTo(w,o),c-=2;c>0?a.sqrTo(o,w):(b=o,o=w,w=b),a.mulTo(w,s[g],o)}for(;v>=0&&0==(e[v]&1<=0?(i.subTo(a,i),t&&n.subTo(s,n),o.subTo(c,o)):(a.subTo(i,a),t&&s.subTo(n,s),c.subTo(o,c))}return 0!=a.compareTo(r.ONE)?r.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},r.prototype.pow=function(e){return this.exp(e,new k)},r.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var a=t.getLowestSetBit(),n=r.getLowestSetBit();if(n<0)return t;for(a0&&(t.rShiftTo(n,t),r.rShiftTo(n,r));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return n>0&&r.lShiftTo(n,r),r},r.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(t=0;t>>8,S[E++]=255&T;E=0,z()}function O(){if(null==j){for(z(),(j=new I).init(S),E=0;E=this._buffer.length},n.prototype.remainder=function(){return this._buffer.slice(this._offset)},n.prototype.skip=function(e){this._offset+=e},n.prototype.expand=function(){this._size*=2;var e=a.alloc(this._size);this._buffer.copy(e,0),this._buffer=e},n.prototype.readPart=function(){return{data:this.readBuffer()}},n.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4,i.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},n.prototype.readString=function(){return this.readBuffer().toString()},n.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},n.prototype.writeString=function(e){this.writeBuffer(a.from(e,"utf8"))},n.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},n.prototype.writeInt=function(e){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(e,this._offset),this._offset+=4},n.prototype.writeInt64=function(e){if(i.buffer(e,"value"),e.length>8){for(var t=e.slice(0,e.length-8),r=0;rthis._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=8},n.prototype.writeChar=function(e){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=e},n.prototype.writePart=function(e){this.writeBuffer(e.data)},n.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=l;var i=r(4),a=(r(14),r(9),r(52),r(23),r(22),r(6),r(12)),n=r(24),o=r(5).Buffer,s=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,c={cn:"2.5.4.3",o:"2.5.4.10",ou:"2.5.4.11",l:"2.5.4.7",s:"2.5.4.8",c:"2.5.4.6",sn:"2.5.4.4",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",street:"2.5.4.9",x500UniqueIdentifier:"2.5.4.45",role:"2.5.4.72",telephoneNumber:"2.5.4.20",description:"2.5.4.13",dc:"0.9.2342.19200300.100.1.25",uid:"0.9.2342.19200300.100.1.1",mail:"0.9.2342.19200300.100.1.3",title:"2.5.4.12",gn:"2.5.4.42",initials:"2.5.4.43",pseudonym:"2.5.4.65",emailAddress:"1.2.840.113549.1.9.1"},u={};function l(e){var t=this;if(i.object(e,"options"),i.arrayOfObject(e.components,"options.components"),this.components=e.components,this.componentLookup={},this.components.forEach(function(e){e.name&&!e.oid&&(e.oid=c[e.name]),e.oid&&!e.name&&(e.name=u[e.oid]),void 0===t.componentLookup[e.name]&&(t.componentLookup[e.name]=[]),t.componentLookup[e.name].push(e)}),this.componentLookup.cn&&this.componentLookup.cn.length>0&&(this.cn=this.componentLookup.cn[0].value),i.optionalString(e.type,"options.type"),void 0===e.type)1===this.components.length&&this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(s)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length?(this.type="host",this.hostname=this.componentLookup.dc.map(function(e){return e.value}).join(".")):this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(s)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.uid&&1===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.mail&&1===this.componentLookup.mail.length?(this.type="email",this.email=this.componentLookup.mail[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length?(this.type="user",this.uid=this.componentLookup.cn[0].value):this.type="unknown";else if(this.type=e.type,"host"===this.type)this.hostname=e.hostname;else if("user"===this.type)this.uid=e.uid;else{if("email"!==this.type)throw new Error("Unknown type "+this.type);this.email=e.email}}Object.keys(c).forEach(function(e){u[c[e]]=e}),l.prototype.toString=function(){return this.components.map(function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var r=e.value;return t+"="+(r=r.replace(/,/g,"\\,"))}).join(", ")},l.prototype.get=function(e,t){i.string(e,"name");var r=this.componentLookup[e];if(void 0!==r&&0!==r.length){if(!t&&r.length>1)throw new Error("Multiple values for attribute "+e);return t?r.map(function(e){return e.value}):r[0].value}},l.prototype.toArray=function(e){return this.components.map(function(e){return{name:e.name,value:e.value}})};var p=/[^a-zA-Z0-9 '(),+.\/:=?-]/,f=/[^\x00-\x7f]/;function d(e,t){if("**"===e||"**"===t)return!0;var r=e.split("."),i=t.split(".");if(r.length!==i.length)return!1;for(var a=0;a0;){var n;if(null!==(n=/^,/.exec(a)))t[++r]="",a=a.slice(n[0].length);else if(null!==(n=/^\\,/.exec(a)))t[r]+=",",a=a.slice(n[0].length);else if(null!==(n=/^\\./.exec(a)))t[r]+=n[0],a=a.slice(n[0].length);else{if(null===(n=/^[^\\,]+/.exec(a)))throw new Error("Failed to parse DN");t[r]+=n[0],a=a.slice(n[0].length)}}return new l({components:t.map(function(e){for(var t=(e=e.trim()).indexOf("=");t>0&&"\\"===e.charAt(t-1);)t=e.indexOf("=",t+1);if(-1===t)throw new Error("Failed to parse DN");return{name:e.slice(0,t).toLowerCase().replace(/\\=/g,"="),value:e.slice(t+1)}})})},l.fromArray=function(e){return i.arrayOfObject(e,"components"),e.forEach(function(e){if(i.object(e,"component"),i.string(e.name,"component.name"),!o.isBuffer(e.value)&&"string"!==typeof e.value)throw new Error("Invalid component value")}),new l({components:e})},l.parseAsn1=function(e,t){var r=[];e.readSequence(t);for(var i=e.offset+e.length;e.offset>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return a>0&&(e.lastNeed=a-1),a;if(--i=0)return a>0&&(e.lastNeed=a-2),a;if(--i=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";t.decode=t.parse=r(242),t.encode=t.stringify=r(243)},function(e,t,r){var i=r(2).Buffer;function a(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=new Array(t),a=0;a>>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=n,h=o,m=s,g=c;return n=(i[d>>>24]<<24|i[h>>>16&255]<<16|i[m>>>8&255]<<8|i[255&g])^t[b++],o=(i[h>>>24]<<24|i[m>>>16&255]<<16|i[g>>>8&255]<<8|i[255&d])^t[b++],s=(i[m>>>24]<<24|i[g>>>16&255]<<16|i[d>>>8&255]<<8|i[255&h])^t[b++],c=(i[g>>>24]<<24|i[d>>>16&255]<<16|i[h>>>8&255]<<8|i[255&m])^t[b++],[n>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],a=[[],[],[],[]],n=[[],[],[],[]],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,r[o]=u,i[u]=o;var l=e[o],p=e[l],f=e[p],d=257*e[u]^16843008*u;a[0][o]=d<<24|d>>>8,a[1][o]=d<<16|d>>>16,a[2][o]=d<<8|d>>>24,a[3][o]=d,d=16843009*f^65537*p^257*l^16843008*o,n[0][u]=d<<24|d>>>8,n[1][u]=d<<16|d>>>16,n[2][u]=d<<8|d>>>24,n[3][u]=d,0===o?o=s=1:(o=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:a,INV_SUB_MIX:n}}();function u(e){this._key=a(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=4*(r+1),a=[],n=0;n>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[n/t|0]<<24):t>6&&n%t===4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),a[n]=a[n-t]^o}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},u.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},e.exports.AES=u},function(e,t,r){var i=r(2).Buffer,a=r(80);e.exports=function(e,t,r,n){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=i.alloc(o),c=i.alloc(n||0),u=i.alloc(0);o>0||n>0;){var l=new a;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var p=0;if(o>0){var f=s.length-o;p=Math.min(o,u.length),u.copy(s,f,0,p),o-=p}if(p0){var d=c.length-n,h=Math.min(n,u.length-p);u.copy(c,d,p,p+h),n-=h}}return u.fill(0),{key:s,iv:c}}},function(e,t,r){"use strict";var i=t;i.base=r(283),i.short=r(284),i.mont=r(285),i.edwards=r(286)},function(e,t,r){(function(t){var i=r(302),a=r(314),n=r(315),o=r(84),s=r(130);function c(e){var r;"object"!==typeof e||t.isBuffer(e)||(r=e.passphrase,e=e.key),"string"===typeof e&&(e=new t(e));var c,u,l=n(e,r),p=l.tag,f=l.data;switch(p){case"CERTIFICATE":u=i.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(f,"der")),c=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+p);case"ENCRYPTED PRIVATE KEY":f=function(e,r){var i=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=a[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,p=parseInt(c.split("-")[1],10)/8,f=s.pbkdf2Sync(r,i,n,p),d=o.createDecipheriv(c,f,u),h=[];return h.push(d.update(l)),h.push(d.final()),t.concat(h)}(f=i.EncryptedPrivateKey.decode(f,"der"),r);case"PRIVATE KEY":switch(c=(u=i.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+p);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=i.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+p)}}e.exports=c,c.signature=i.signature}).call(this,r(3).Buffer)},function(e,t,r){"use strict";var i="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var i in r)a(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,i,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),a);else for(var n=0;n0;--t){o=o.twice();var s=a.testBit(t);s!=r.testBit(t)&&(o=o.add(s?this:n))}return o},o.prototype.multiplyTwo=function(e,t,r){var i;i=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var a=this.curve.getInfinity(),n=this.add(t);i>=0;)a=a.twice(),e.testBit(i)?a=r.testBit(i)?a.add(n):a.add(this):r.testBit(i)&&(a=a.add(t)),--i;return a},s.prototype.getQ=function(){return this.q},s.prototype.getA=function(){return this.a},s.prototype.getB=function(){return this.b},s.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},s.prototype.getInfinity=function(){return this.infinity},s.prototype.fromBigInteger=function(e){return new n(this.q,e)},s.prototype.reduce=function(e){this.reducer.reduce(e)},s.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),i=this.getQ().toString(16).length;for(i%2!=0&&i++;t.length128&&(-1==this.q.shiftRight(e-64).intValue()&&(this.r=i.ONE.shiftLeft(e).subtract(this.q)));return this.r},n.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))},n.prototype.modReduce=function(e){if(null!=this.getR()){for(var t=q.bitLength();e.bitLength()>t+1;){var r=e.shiftRight(t),a=e.subtract(r.shiftLeft(t));this.getR().equals(i.ONE)||(r=r.multiply(this.getR())),e=r.add(a)}for(;e.compareTo(q)>=0;)e=e.subtract(q)}else e=e.mod(q);return e},n.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new n(this.q,this.x.modPow(this.q.shiftRight(2).add(i.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(i.ONE),r=t.shiftRight(1);if(!this.x.modPow(r,this.q).equals(i.ONE))return null;var a,o,s=t.shiftRight(2).shiftLeft(1).add(i.ONE),c=this.x,u=modDouble(modDouble(c));do{var l;do{l=new i(this.q.bitLength(),new SecureRandom)}while(l.compareTo(this.q)>=0||!l.multiply(l).subtract(u).modPow(r,this.q).equals(t));var p=this.lucasSequence(l,c,s);if(a=p[0],o=p[1],this.modMult(o,o).equals(u))return o.testBit(0)&&(o=o.add(q)),o=o.shiftRight(1),new n(q,o)}while(a.equals(i.ONE)||a.equals(t));return null},n.prototype.lucasSequence=function(e,t,r){for(var a=r.bitLength(),n=r.getLowestSetBit(),o=i.ONE,s=i.TWO,c=e,u=i.ONE,l=i.ONE,p=a-1;p>=n+1;--p)u=this.modMult(u,l),r.testBit(p)?(l=this.modMult(u,t),o=this.modMult(o,c),s=this.modReduce(c.multiply(s).subtract(e.multiply(u))),c=this.modReduce(c.multiply(c).subtract(l.shiftLeft(1)))):(l=u,o=this.modReduce(o.multiply(s).subtract(u)),c=this.modReduce(c.multiply(s).subtract(e.multiply(u))),s=this.modReduce(s.multiply(s).subtract(u.shiftLeft(1))));u=this.modMult(u,l),l=this.modMult(u,t),o=this.modReduce(o.multiply(s).subtract(u)),s=this.modReduce(c.multiply(s).subtract(e.multiply(u))),u=this.modMult(u,l);for(p=1;p<=n;++p)o=this.modMult(o,s),s=this.modReduce(s.multiply(s).subtract(u.shiftLeft(1))),u=this.modMult(u,u);return[o,s]};t={ECCurveFp:s,ECPointFp:o,ECFieldElementFp:n};e.exports=t},function(e,t,r){e.exports={read:function(e,t){return u.read(e,t)},readSSHPrivate:function(e,t,c){var u=(t=new p({buffer:t})).readCString();a.strictEqual(u,d,"bad magic string");var h=t.readString(),m=t.readString(),g=t.readBuffer();if(1!==t.readInt())throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var b=t.readBuffer();if("public"===e)return a.ok(t.atEnd(),"excess bytes left after key"),l.read(b);var v=t.readBuffer();a.ok(t.atEnd(),"excess bytes left after key");var y=new p({buffer:g});switch(m){case"none":if("none"!==h)throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var w=y.readBuffer(),k=y.readInt(),_=o.opensshCipherInfo(h);if(void 0===i&&(i=r(160)),"string"===typeof c.passphrase&&(c.passphrase=n.from(c.passphrase,"utf-8")),!n.isBuffer(c.passphrase))throw new f.KeyEncryptedError(c.filename,"OpenSSH");var x=new Uint8Array(c.passphrase),j=new Uint8Array(w),S=new Uint8Array(_.keySize+_.blockSize),E=i.pbkdf(x,x.length,j,j.length,S,S.length,k);if(0!==E)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var A=(S=n.from(S)).slice(0,_.keySize),P=S.slice(_.keySize,_.keySize+_.blockSize),z=s.createDecipheriv(_.opensslName,A,P);z.setAutoPadding(!1);var T,C=[];for(z.once("error",function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e}),z.write(v),z.end();null!==(T=z.read());)C.push(T);v=n.concat(C);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+m+'"')}var F=(t=new p({buffer:v})).readInt(),O=t.readInt();if(F!==O)throw new Error("Incorrect passphrase supplied, could not decrypt key");var B={},I=l.readInternal(B,"private",t.remainder());t.skip(B.consumed);var q=t.readString();return I.comment=q,I},write:function(e,t){var u;u=c.isPrivateKey(e)?e.toPublic():e;var l,f,h="none",m="none",g=n.alloc(0),b={blockSize:8};void 0!==t&&("string"===typeof(l=t.passphrase)&&(l=n.from(l,"utf-8")),void 0!==l&&(a.buffer(l,"options.passphrase"),a.optionalString(t.cipher,"options.cipher"),void 0===(h=t.cipher)&&(h="aes128-ctr"),b=o.opensshCipherInfo(h),m="bcrypt"));if(c.isPrivateKey(e)){f=new p({});var v=s.randomBytes(4).readUInt32BE(0);f.writeInt(v),f.writeInt(v),f.write(e.toBuffer("rfc4253")),f.writeString(e.comment||"");for(var y=1;f._offset%b.blockSize!==0;)f.writeChar(y++);f=f.toBuffer()}switch(m){case"none":break;case"bcrypt":var w=s.randomBytes(16),k=new p({});k.writeBuffer(w),k.writeInt(16),g=k.toBuffer(),void 0===i&&(i=r(160));var _=new Uint8Array(l),x=new Uint8Array(w),j=new Uint8Array(b.keySize+b.blockSize),S=i.pbkdf(_,_.length,x,x.length,j,j.length,16);if(0!==S)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var E=(j=n.from(j)).slice(0,b.keySize),A=j.slice(b.keySize,b.keySize+b.blockSize),P=s.createCipheriv(b.opensslName,E,A);P.setAutoPadding(!1);var z,T=[];for(P.once("error",function(e){throw e}),P.write(f),P.end();null!==(z=P.read());)T.push(z);f=n.concat(T);break;default:throw new Error("Unsupported kdf "+m)}var C,F=new p({});F.writeCString(d),F.writeString(h),F.writeString(m),F.writeBuffer(g),F.writeInt(1),F.writeBuffer(u.toBuffer("rfc4253")),f&&F.writeBuffer(f);F=F.toBuffer(),C=c.isPrivateKey(e)?"OPENSSH PRIVATE KEY":"OPENSSH PUBLIC KEY";var O=F.toString("base64"),B=O.length+O.length/70+18+16+2*C.length+10;F=n.alloc(B);var I=0;I+=F.write("-----BEGIN "+C+"-----\n",I);for(var q=0;qO.length&&(D=O.length),I+=F.write(O.slice(q,D),I),F[I++]=10,q=D}return I+=F.write("-----END "+C+"-----\n",I),F.slice(0,I)}};var i,a=r(4),n=(r(24),r(5).Buffer),o=(r(14),r(12)),s=r(9),c=(r(13),r(15)),u=r(27),l=r(34),p=r(57),f=r(22);var d="openssh-key-v1"},function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",function(){return i})},function(e,t,r){"use strict";var i=r(77),a=r(118),n=r(79).paramsHaveRequestBody;function o(e,t,r){"function"===typeof t&&(r=t);var a={};return"object"===typeof t?i(a,t,{uri:e}):i(a,"string"===typeof e?{uri:e}:e),a.callback=r||a.callback,a}function s(e,t,r){if("undefined"===typeof e)throw new Error("undefined is not a valid uri or options object.");var i=o(e,t,r);if("HEAD"===i.method&&n(i))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new s.Request(i)}function c(e){var t=e.toUpperCase();return function(e,r,i){var a=o(e,r,i);return a.method=t,s(a,a.callback)}}function u(e,t,r,a){return function(n,s,c){var u=o(n,s,c),l={};return i(!0,l,t,u),l.pool=u.pool||t.pool,a&&(l.method=a.toUpperCase()),"function"===typeof r&&(e=r),e(l,l.callback)}}s.get=c("get"),s.head=c("head"),s.options=c("options"),s.post=c("post"),s.put=c("put"),s.patch=c("patch"),s.del=c("delete"),s.delete=c("delete"),s.jar=function(e){return a.jar(e)},s.cookie=function(e){return a.parse(e)},s.defaults=function(e,t){var r=this;"function"===typeof(e=e||{})&&(t=e,e={});var i=u(r,e,t);return["get","head","post","put","patch","del","delete"].forEach(function(a){i[a]=u(r[a],e,t,a)}),i.cookie=u(r.cookie,e,t),i.jar=r.jar,i.defaults=r.defaults,i},s.forever=function(e,t){var r={};return t&&i(r,t),e&&(r.agentOptions=e),r.forever=!0,s.defaults(r)},e.exports=s,s.Request=r(322),s.initParams=o,Object.defineProperty(s,"debug",{enumerable:!0,get:function(){return s.Request.debug},set:function(e){s.Request.debug=e}})},function(e,t,r){"use strict";e.exports=function(e,t,r,i,a,n,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,a,n,o,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e){e.exports={Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\xca",ecirc:"\xea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105",in:"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba",int:"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\xb7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",Ocirc:"\xd4",ocirc:"\xf4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\xb6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",prap:"\u2ab7",Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\xd7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\xff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,r){"use strict";(function(t,i,a){var n=r(59);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:n.nextTick;v.WritableState=b;var u=r(35);u.inherits=r(1);var l={deprecate:r(207)},p=r(113),f=r(2).Buffer,d=a.Uint8Array||function(){};var h,m=r(114);function g(){}function b(e,t){s=s||r(33),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:i&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(j,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),j(e,t))}(e,r,i,t,a);else{var o=_(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||k(e,r),i?c(w,e,r,o,a):w(e,r,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(s=s||r(33),!h.call(v,this)&&!(this instanceof s))return new v(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),p.call(this)}function y(e,t,r,i,a,n,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,n,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),j(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),n=t.corkedRequestsFree;n.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,y(e,t,!0,t.length,a,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,p=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),j(e,t)})}function j(e,t){var r=_(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,p),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof b)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,f.isBuffer(i)||i instanceof d);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"===typeof t&&(r=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!==typeof r&&(r=g),a.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var a=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),n.nextTick(i,o),a=!1),a}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,i,a,n){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,r));return t}(t,i,a);i!==o&&(r=!0,a="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(8),r(76).setImmediate,r(11))},function(e,t,r){(function(e){var i="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,a=Function.prototype.apply;function n(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new n(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new n(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(206),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(11))},function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},c=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,r=i.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return"undefined"===typeof t||i.call(e,t)},u=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,r,i,a,n,o,p=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"===typeof p&&(h=p,p=arguments[1]||{},f=2),(null==p||"object"!==typeof p&&"function"!==typeof p)&&(p={});f= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=u-l,_=Math.floor,x=String.fromCharCode;function j(e){throw new RangeError(w[e])}function S(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function E(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+S((e=e.replace(y,".")).split("."),t).join(".")}function A(e){for(var t,r,i=[],a=0,n=e.length;a=55296&&t<=56319&&a65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function z(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?_(e/d):e>>1,e+=_(e/t);e>k*p>>1;i+=u)e=_(e/k);return _(i+(k+1)*e/(e+f))}function C(e){var t,r,i,a,n,o,s,f,d,b,v,y=[],w=e.length,k=0,x=m,S=h;for((r=e.lastIndexOf(g))<0&&(r=0),i=0;i=128&&j("not-basic"),y.push(e.charCodeAt(i));for(a=r>0?r+1:0;a=w&&j("invalid-input"),((f=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||f>_((c-k)/o))&&j("overflow"),k+=f*o,!(f<(d=s<=S?l:s>=S+p?p:s-S));s+=u)o>_(c/(b=u-d))&&j("overflow"),o*=b;S=T(k-n,t=y.length+1,0==n),_(k/t)>c-x&&j("overflow"),x+=_(k/t),k%=t,y.splice(k++,0,x)}return P(y)}function F(e){var t,r,i,a,n,o,s,f,d,b,v,y,w,k,S,E=[];for(y=(e=A(e)).length,t=m,r=0,n=h,o=0;o=t&&v_((c-r)/(w=i+1))&&j("overflow"),r+=(s-t)*w,t=s,o=0;oc&&j("overflow"),v==t){for(f=r,d=u;!(f<(b=d<=n?l:d>=n+p?p:d-n));d+=u)S=f-b,k=u-b,E.push(x(z(b+S%k,0))),f=_(S/k);E.push(x(z(f,0))),n=T(r,w,i==a),r=0,++i}++r,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:P},decode:C,encode:F,toASCII:function(e){return E(e,function(e){return v.test(e)?"xn--"+F(e):e})},toUnicode:function(e){return E(e,function(e){return b.test(e)?C(e.slice(4).toLowerCase()):e})}},void 0===(a=function(){return s}.call(t,r,t,e))||(e.exports=a)}()}).call(this,r(119)(e),r(11))},function(e,t,r){"use strict";(function(e,i){var a=r(249),n=r(9),o=r(2).Buffer,s="undefined"===typeof e?i.nextTick:e;t.paramsHaveRequestBody=function(e){return e.body||e.requestBodyStream||e.json&&"boolean"!==typeof e.json||e.multipart},t.safeStringify=function(e,t){var r;try{r=JSON.stringify(e,t)}catch(i){r=a(e,t)}return r},t.md5=function(e){return n.createHash("md5").update(e).digest("hex")},t.isReadStream=function(e){return e.readable&&e.path&&e.mode},t.toBase64=function(e){return o.from(e||"","utf8").toString("base64")},t.copy=function(e){var t={};return Object.keys(e).forEach(function(r){t[r]=e[r]}),t},t.version=function(){var e=i.version.replace("v","").split(".");return{major:parseInt(e[0],10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}},t.defer=s}).call(this,r(76).setImmediate,r(8))},function(e,t,r){"use strict";var i=r(1),a=r(124),n=r(2).Buffer,o=new Array(16);function s(){a.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,i,a,n,o){return c(e+(t&r|~t&i)+a+n|0,o)+t|0}function l(e,t,r,i,a,n,o){return c(e+(t&i|r&~i)+a+n|0,o)+t|0}function p(e,t,r,i,a,n,o){return c(e+(t^r^i)+a+n|0,o)+t|0}function f(e,t,r,i,a,n,o){return c(e+(r^(t|~i))+a+n|0,o)+t|0}i(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,a=this._c,n=this._d;r=u(r,i,a,n,e[0],3614090360,7),n=u(n,r,i,a,e[1],3905402710,12),a=u(a,n,r,i,e[2],606105819,17),i=u(i,a,n,r,e[3],3250441966,22),r=u(r,i,a,n,e[4],4118548399,7),n=u(n,r,i,a,e[5],1200080426,12),a=u(a,n,r,i,e[6],2821735955,17),i=u(i,a,n,r,e[7],4249261313,22),r=u(r,i,a,n,e[8],1770035416,7),n=u(n,r,i,a,e[9],2336552879,12),a=u(a,n,r,i,e[10],4294925233,17),i=u(i,a,n,r,e[11],2304563134,22),r=u(r,i,a,n,e[12],1804603682,7),n=u(n,r,i,a,e[13],4254626195,12),a=u(a,n,r,i,e[14],2792965006,17),r=l(r,i=u(i,a,n,r,e[15],1236535329,22),a,n,e[1],4129170786,5),n=l(n,r,i,a,e[6],3225465664,9),a=l(a,n,r,i,e[11],643717713,14),i=l(i,a,n,r,e[0],3921069994,20),r=l(r,i,a,n,e[5],3593408605,5),n=l(n,r,i,a,e[10],38016083,9),a=l(a,n,r,i,e[15],3634488961,14),i=l(i,a,n,r,e[4],3889429448,20),r=l(r,i,a,n,e[9],568446438,5),n=l(n,r,i,a,e[14],3275163606,9),a=l(a,n,r,i,e[3],4107603335,14),i=l(i,a,n,r,e[8],1163531501,20),r=l(r,i,a,n,e[13],2850285829,5),n=l(n,r,i,a,e[2],4243563512,9),a=l(a,n,r,i,e[7],1735328473,14),r=p(r,i=l(i,a,n,r,e[12],2368359562,20),a,n,e[5],4294588738,4),n=p(n,r,i,a,e[8],2272392833,11),a=p(a,n,r,i,e[11],1839030562,16),i=p(i,a,n,r,e[14],4259657740,23),r=p(r,i,a,n,e[1],2763975236,4),n=p(n,r,i,a,e[4],1272893353,11),a=p(a,n,r,i,e[7],4139469664,16),i=p(i,a,n,r,e[10],3200236656,23),r=p(r,i,a,n,e[13],681279174,4),n=p(n,r,i,a,e[0],3936430074,11),a=p(a,n,r,i,e[3],3572445317,16),i=p(i,a,n,r,e[6],76029189,23),r=p(r,i,a,n,e[9],3654602809,4),n=p(n,r,i,a,e[12],3873151461,11),a=p(a,n,r,i,e[15],530742520,16),r=f(r,i=p(i,a,n,r,e[2],3299628645,23),a,n,e[0],4096336452,6),n=f(n,r,i,a,e[7],1126891415,10),a=f(a,n,r,i,e[14],2878612391,15),i=f(i,a,n,r,e[5],4237533241,21),r=f(r,i,a,n,e[12],1700485571,6),n=f(n,r,i,a,e[3],2399980690,10),a=f(a,n,r,i,e[10],4293915773,15),i=f(i,a,n,r,e[1],2240044497,21),r=f(r,i,a,n,e[8],1873313359,6),n=f(n,r,i,a,e[15],4264355552,10),a=f(a,n,r,i,e[6],2734768916,15),i=f(i,a,n,r,e[13],1309151649,21),r=f(r,i,a,n,e[4],4149444226,6),n=f(n,r,i,a,e[11],3174756917,10),a=f(a,n,r,i,e[2],718787259,15),i=f(i,a,n,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+n|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){"use strict";var i=r(3).Buffer,a=r(1),n=r(124),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function d(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<>>32-t}function m(e,t,r,i,a,n,o,s){return h(e+(t^r^i)+n+o|0,s)+a|0}function g(e,t,r,i,a,n,o,s){return h(e+(t&r|~t&i)+n+o|0,s)+a|0}function b(e,t,r,i,a,n,o,s){return h(e+((t|~r)^i)+n+o|0,s)+a|0}function v(e,t,r,i,a,n,o,s){return h(e+(t&i|r&~i)+n+o|0,s)+a|0}function y(e,t,r,i,a,n,o,s){return h(e+(t^(r|~i))+n+o|0,s)+a|0}a(d,n),d.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,a=0|this._c,n=0|this._d,d=0|this._e,w=0|this._a,k=0|this._b,_=0|this._c,x=0|this._d,j=0|this._e,S=0;S<80;S+=1){var E,A;S<16?(E=m(r,i,a,n,d,e[s[S]],p[0],u[S]),A=y(w,k,_,x,j,e[c[S]],f[0],l[S])):S<32?(E=g(r,i,a,n,d,e[s[S]],p[1],u[S]),A=v(w,k,_,x,j,e[c[S]],f[1],l[S])):S<48?(E=b(r,i,a,n,d,e[s[S]],p[2],u[S]),A=b(w,k,_,x,j,e[c[S]],f[2],l[S])):S<64?(E=v(r,i,a,n,d,e[s[S]],p[3],u[S]),A=g(w,k,_,x,j,e[c[S]],f[3],l[S])):(E=y(r,i,a,n,d,e[s[S]],p[4],u[S]),A=m(w,k,_,x,j,e[c[S]],f[4],l[S])),r=d,d=n,n=h(a,10),a=i,i=E,w=j,j=x,x=h(_,10),_=k,k=A}var P=this._b+a+x|0;this._b=this._c+n+j|0,this._c=this._d+d+w|0,this._d=this._e+r+k|0,this._e=this._a+i+_|0,this._a=P},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(250),t.sha1=r(251),t.sha224=r(252),t.sha256=r(125),t.sha384=r(253),t.sha512=r(126)},function(e,t,r){"use strict";t.utils=r(259),t.Cipher=r(260),t.DES=r(261),t.CBC=r(262),t.EDE=r(263)},function(e,t,r){var i=r(264),a=r(272),n=r(136);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=a.createDecipher,t.createDecipheriv=t.Decipheriv=a.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(n)}},function(e,t,r){var i={ECB:r(265),CBC:r(266),CFB:r(267),CFB8:r(268),CFB1:r(269),OFB:r(270),CTR:r(134),GCM:r(134)},a=r(136);for(var n in a)a[n].module=i[a[n].mode];e.exports=a},function(e,t,r){(function(t){var i=r(10),a=r(37);function n(e,r){var a=function(e){var t=o(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),n=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(a.blinder).umod(r.modulus)),c=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),l=r.coefficient,p=r.prime1,f=r.prime2,d=c.redPow(r.exponent1),h=u.redPow(r.exponent2);d=d.fromRed(),h=h.fromRed();var m=d.isub(h).imul(l).umod(p);return m.imul(f),h.iadd(m),new t(h.imul(a.unblinder).umod(r.modulus).toArray(!1,n))}function o(e){for(var t=e.modulus.byteLength(),r=new i(a(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(a(t));return r}e.exports=n,n.getr=o}).call(this,r(3).Buffer)},function(e,t,r){var i=t;i.utils=r(21),i.common=r(48),i.sha=r(288),i.ripemd=r(292),i.hmac=r(293),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){var i=r(51),a=r(20),n=e.exports;for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o]);function s(e){if("string"===typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}n.request=function(e,t){return e=s(e),i.request.call(this,e,t)},n.get=function(e,t){return e=s(e),i.get.call(this,e,t)}},function(e,t,r){var i=r(13),a=r(52),n=r(23),o=r(15),s=r(53),c=r(58),u=r(22);e.exports={Key:i,parseKey:i.parse,Fingerprint:a,parseFingerprint:a.parse,Signature:n,parseSignature:n.parse,PrivateKey:o,parsePrivateKey:o.parse,generatePrivateKey:o.generate,Certificate:s,parseCertificate:s.parse,createSelfSignedCertificate:s.createSelfSigned,createCertificate:s.create,Identity:c,identityFromDN:c.parseDN,identityForHost:c.forHost,identityForUser:c.forUser,identityForEmail:c.forEmail,identityFromArray:c.fromArray,FingerprintFormatError:u.FingerprintFormatError,InvalidAlgorithmError:u.InvalidAlgorithmError,KeyParseError:u.KeyParseError,SignatureParseError:u.SignatureParseError,KeyEncryptedError:u.KeyEncryptedError,CertificateParseError:u.CertificateParseError}},function(e,t,r){e.exports={DiffieHellman:h,generateECDSA:function(e){var t=[];if(p){var r={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e],i=a.createECDH(r);return i.generateKeys(),t.push({name:"curve",data:n.from(e)}),t.push({name:"Q",data:i.getPublicKey()}),t.push({name:"d",data:i.getPrivateKey()}),new l({type:"ecdsa",curve:e,parts:t})}var o=new m(e),s=o.getN(),c=Math.ceil((s.bitLength()+64)/8),u=new d(a.randomBytes(c)),f=s.subtract(d.ONE),h=u.mod(f).add(d.ONE),g=o.getG().multiply(h);return h=n.from(h.toByteArray()),g=n.from(o.getCurve().encodePointHex(g),"hex"),t.push({name:"curve",data:n.from(e)}),t.push({name:"Q",data:g}),t.push({name:"d",data:h}),new l({type:"ecdsa",curve:e,parts:t})},generateED25519:function(){var e=c.sign.keyPair(),t=n.from(e.secretKey),r=n.from(e.publicKey);i.strictEqual(t.length,64),i.strictEqual(r.length,32);var a=[];return a.push({name:"A",data:r}),a.push({name:"k",data:t.slice(0,32)}),new l({type:"ed25519",parts:a})}};var i=r(4),a=r(9),n=r(5).Buffer,o=r(14),s=r(12),c=r(54),u=r(13),l=r(15),p=void 0!==a.createECDH,f=(r(342),r(68)),d=r(55).BigInteger;function h(e){if(s.assertCompatible(e,u,[1,4],"key"),this._isPriv=l.isPrivateKey(e,[1,3]),this._algo=e.type,this._curve=e.curve,this._key=e,"dsa"===e.type){if(!p)throw new Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=a.createDiffieHellman(e.part.p.data,void 0,e.part.g.data,void 0),this._p=e.part.p,this._g=e.part.g,this._isPriv&&this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data)}else if("ecdsa"===e.type){if(!p)return this._ecParams=new m(this._curve),void(this._isPriv&&(this._priv=new b(this._ecParams,e.part.d.data)));var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];if(this._dh=a.createECDH(t),"object"!==typeof this._dh||"function"!==typeof this._dh.setPrivateKey)return p=!1,void h.call(this,e);this._isPriv&&this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)}else{if("curve25519"!==e.type)throw new Error("DH not supported for "+e.type+" keys");this._isPriv&&(s.assertCompatible(e,l,[1,5],"key"),this._priv=e.part.k.data)}}function m(e){var t=o.curves[e];i.object(t);var r=new d(t.p),a=new d(t.a),n=new d(t.b),s=new d(t.n),c=d.ONE,u=new f.ECCurveFp(r,a,n),l=u.decodePointHex(t.G.toString("hex"));this.curve=u,this.g=l,this.n=s,this.h=c}function g(e,t){this._params=e,0===t[0]&&(t=t.slice(1)),this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function b(e,t){this._params=e,this._priv=new d(s.mpNormalize(t))}h.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic():this._key},h.prototype.getPrivateKey=function(){return this._isPriv?this._key:void 0},h.prototype.getKey=h.prototype.getPrivateKey,h.prototype._keyCheck=function(e,t){if(i.object(e,"key"),t||s.assertCompatible(e,l,[1,3],"key"),s.assertCompatible(e,u,[1,4],"key"),e.type!==this._algo)throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(e.curve!==this._curve)throw new Error("A key from the "+e.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");"dsa"===e.type&&(i.deepEqual(e.part.p,this._p,"DSA key prime does not match"),i.deepEqual(e.part.g,this._g,"DSA key generator does not match"))},h.prototype.setKey=function(e){if(this._keyCheck(e),"dsa"===e.type)this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data);else if("ecdsa"===e.type)p?(this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)):this._priv=new b(this._ecParams,e.part.d.data);else if("curve25519"===e.type){var t=e.part.k;e.part.k||(t=e.part.r),this._priv=t.data,0===this._priv[0]&&(this._priv=this._priv.slice(1)),this._priv=this._priv.slice(0,32)}this._key=e,this._isPriv=!0},h.prototype.setPrivateKey=h.prototype.setKey,h.prototype.computeSecret=function(e){if(this._keyCheck(e,!0),!this._isPriv)throw new Error("DH exchange has not been initialized with a private key yet");var t;if("dsa"===this._algo)return this._dh.computeSecret(e.part.y.data);if("ecdsa"===this._algo)return p?this._dh.computeSecret(e.part.Q.data):(t=new g(this._ecParams,e.part.Q.data),this._priv.deriveSharedSecret(t));if("curve25519"===this._algo){for(t=e.part.A.data;0===t[0]&&t.length>32;)t=t.slice(1);var r=this._priv;i.strictEqual(t.length,32),i.strictEqual(r.length,32);var a=c.box.before(new Uint8Array(t),new Uint8Array(r));return n.from(a)}throw new Error("Invalid algorithm: "+this._algo)},h.prototype.generateKey=function(){var e,t,r=[];if("dsa"===this._algo)return this._dh.generateKeys(),r.push({name:"p",data:this._p.data}),r.push({name:"q",data:this._key.part.q.data}),r.push({name:"g",data:this._g.data}),r.push({name:"y",data:this._dh.getPublicKey()}),r.push({name:"x",data:this._dh.getPrivateKey()}),this._key=new l({type:"dsa",parts:r}),this._isPriv=!0,this._key;if("ecdsa"===this._algo){if(p)return this._dh.generateKeys(),r.push({name:"curve",data:n.from(this._curve)}),r.push({name:"Q",data:this._dh.getPublicKey()}),r.push({name:"d",data:this._dh.getPrivateKey()}),this._key=new l({type:"ecdsa",curve:this._curve,parts:r}),this._isPriv=!0,this._key;var o=this._ecParams.getN(),s=new d(a.randomBytes(o.bitLength())),u=o.subtract(d.ONE);return e=s.mod(u).add(d.ONE),t=this._ecParams.getG().multiply(e),e=n.from(e.toByteArray()),t=n.from(this._ecParams.getCurve().encodePointHex(t),"hex"),this._priv=new b(this._ecParams,e),r.push({name:"curve",data:n.from(this._curve)}),r.push({name:"Q",data:t}),r.push({name:"d",data:e}),this._key=new l({type:"ecdsa",curve:this._curve,parts:r}),this._isPriv=!0,this._key}if("curve25519"===this._algo){var f=c.box.keyPair();return e=n.from(f.secretKey),t=n.from(f.publicKey),e=n.concat([e,t]),i.strictEqual(e.length,64),i.strictEqual(t.length,32),r.push({name:"A",data:t}),r.push({name:"k",data:e}),this._key=new l({type:"curve25519",parts:r}),this._isPriv=!0,this._key}throw new Error("Invalid algorithm: "+this._algo)},h.prototype.generateKeys=h.prototype.generateKey,m.prototype.getCurve=function(){return this.curve},m.prototype.getG=function(){return this.g},m.prototype.getN=function(){return this.n},m.prototype.getH=function(){return this.h},b.prototype.deriveSharedSecret=function(e){i.ok(e instanceof g);var t=e._pub.multiply(this._priv);return n.from(t.getX().toBigInteger().toByteArray())}},function(e,t){e.exports={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}}},function(e,t){e.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},function(e,t,r){e.exports={read:function(e,t){return l.read(e,t,"pkcs1")},readPkcs1:function(e,t,r){switch(e){case"RSA":if("public"===t)return function(e){var t=f(e,"modulus"),r=f(e,"exponent");return new c({type:"rsa",parts:[{name:"e",data:r},{name:"n",data:t}]})}(r);if("private"===t)return function(e){var t=f(e,"version");i.strictEqual(t[0],0);var r=f(e,"modulus"),a=f(e,"public exponent"),n=f(e,"private exponent"),o=f(e,"prime1"),s=f(e,"prime2"),c=f(e,"exponent1"),l=f(e,"exponent2"),p=f(e,"iqmp");return new u({type:"rsa",parts:[{name:"n",data:r},{name:"e",data:a},{name:"d",data:n},{name:"iqmp",data:p},{name:"p",data:o},{name:"q",data:s},{name:"dmodp",data:c},{name:"dmodq",data:l}]})}(r);throw new Error("Unknown key type: "+t);case"DSA":if("public"===t)return function(e){var t=f(e,"y"),r=f(e,"p"),i=f(e,"q"),a=f(e,"g");return new c({type:"dsa",parts:[{name:"y",data:t},{name:"p",data:r},{name:"q",data:i},{name:"g",data:a}]})}(r);if("private"===t)return function(e){var t=f(e,"version");i.strictEqual(t.readUInt8(0),0);var r=f(e,"p"),a=f(e,"q"),n=f(e,"g"),o=f(e,"y"),s=f(e,"x");return new u({type:"dsa",parts:[{name:"p",data:r},{name:"q",data:a},{name:"g",data:n},{name:"y",data:o},{name:"x",data:s}]})}(r);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if("private"===t)return function(e){var t=f(e,"version");i.strictEqual(t.readUInt8(0),1);var r=e.readString(a.Ber.OctetString,!0);e.readSequence(160);var o=p(e);i.string(o,"a known elliptic curve"),e.readSequence(161);var c=e.readString(a.Ber.BitString,!0);c=s.ecNormalize(c);var l={type:"ecdsa",parts:[{name:"curve",data:n.from(o)},{name:"Q",data:c},{name:"d",data:r}]};return new u(l)}(r);if("public"===t)return function(e){e.readSequence();var t=e.readOID();i.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");for(var r,u=e.readOID(),l=Object.keys(o.curves),p=0;pc){var d=i[e].size-c;p=0===e?r.resizePanel(e,-d,i):r.resizePanel(e-1,d,i)}if(s=r.getPanelMinSize(e+1,i),c=r.getPanelMaxSize(e+1,i),i[e+1].sizec){var m=i[e+1].size-c;p=e+1===i.length-1?r.resizePanel(e,m,i):r.resizePanel(e+1,-m,i)}for(var g=0;g=r.getPanelMinSize(e,i)&&i[e+1].size-b>=r.getPanelMinSize(e+1,i)&&(p=r.resizePanel(e,b,i))}for(var v=0;v=r.getPanelMinSize(e,i)&&i[e+1].size-y>=r.getPanelMinSize(e+1,i)&&(p=r.resizePanel(e,-y,i))}return p},r.getPanelMinSize=function(e,t){return"fixed"===t[e].resize?(t[e].fixedSize||(t[e].fixedSize=t[e].size),t[e].fixedSize):t[e].minSize},r.getPanelMaxSize=function(e,t){return"fixed"===t[e].resize?(t[e].fixedSize||(t[e].fixedSize=t[e].size),t[e].fixedSize):0},r.getPanelGroupMinSize=function(e){for(var t=0,i=0;i0?r.handleResize(e-1,{x:0,y:0}):r.state.panels.length>2&&r.handleResize(e+1,{x:0,y:0}),i&&i()}},r.state=r.loadPanels(r.props),r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.panelWidths;if(t.length)if(this.state.panels.length!==t.length)this.setState(this.loadPanels(e));else for(var r=0;r0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},c.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},c.prototype.parseComplete=function(e){this.reset(),this.end(e)},c.prototype.write=function(e){this._tokenizer.write(e)},c.prototype.end=function(e){this._tokenizer.end(e)},c.prototype.pause=function(){this._tokenizer.pause()},c.prototype.resume=function(){this._tokenizer.resume()},c.prototype.parseChunk=c.prototype.write,c.prototype.done=c.prototype.end,e.exports=c},function(e,t,r){e.exports=ve;var i,a,n=r(107),o=r(73),s=r(108),c=r(74),u=0,l=u++,p=u++,f=u++,d=u++,h=u++,m=u++,g=u++,b=u++,v=u++,y=u++,w=u++,k=u++,_=u++,x=u++,j=u++,S=u++,E=u++,A=u++,P=u++,z=u++,T=u++,C=u++,F=u++,O=u++,B=u++,I=u++,q=u++,D=u++,M=u++,R=u++,L=u++,N=u++,U=u++,H=u++,K=u++,V=u++,$=u++,W=u++,Z=u++,G=u++,Y=u++,Q=u++,X=u++,J=u++,ee=u++,te=u++,re=u++,ie=u++,ae=u++,ne=u++,oe=u++,se=u++,ce=u++,ue=u++,le=u++,pe=0,fe=pe++,de=pe++,he=pe++;function me(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function ge(e,t,r){var i=e.toLowerCase();return e===i?function(e){e===i?this._state=t:(this._state=r,this._index--)}:function(a){a===i||a===e?this._state=t:(this._state=r,this._index--)}}function be(e,t){var r=e.toLowerCase();return function(i){i===r||i===e?this._state=t:(this._state=f,this._index--)}}function ve(e,t){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=fe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ve.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=p,this._sectionStart=this._index):this._decodeEntities&&this._special===fe&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=oe,this._sectionStart=this._index)},ve.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==fe||me(e)?this._state=l:"!"===e?(this._state=j,this._sectionStart=this._index+1):"?"===e?(this._state=E,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?f:L,this._sectionStart=this._index)},ve.prototype._stateInTagName=function(e){("/"===e||">"===e||me(e))&&(this._emitToken("onopentagname"),this._state=b,this._index--)},ve.prototype._stateBeforeCloseingTagName=function(e){me(e)||(">"===e?this._state=l:this._special!==fe?"s"===e||"S"===e?this._state=N:(this._state=l,this._index--):(this._state=m,this._sectionStart=this._index))},ve.prototype._stateInCloseingTagName=function(e){(">"===e||me(e))&&(this._emitToken("onclosetag"),this._state=g,this._index--)},ve.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=l,this._sectionStart=this._index+1)},ve.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===e?this._state=d:me(e)||(this._state=v,this._sectionStart=this._index)},ve.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):me(e)||(this._state=b,this._index--)},ve.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||me(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=y,this._index--)},ve.prototype._stateAfterAttributeName=function(e){"="===e?this._state=w:"/"===e||">"===e?(this._cbs.onattribend(),this._state=b,this._index--):me(e)||(this._cbs.onattribend(),this._state=v,this._sectionStart=this._index)},ve.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=k,this._sectionStart=this._index+1):"'"===e?(this._state=_,this._sectionStart=this._index+1):me(e)||(this._state=x,this._sectionStart=this._index,this._index--)},ve.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ve.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ve.prototype._stateInAttributeValueNoQuotes=function(e){me(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ve.prototype._stateBeforeDeclaration=function(e){this._state="["===e?C:"-"===e?A:S},ve.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ve.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ve.prototype._stateBeforeComment=function(e){"-"===e?(this._state=P,this._sectionStart=this._index+1):this._state=S},ve.prototype._stateInComment=function(e){"-"===e&&(this._state=z)},ve.prototype._stateAfterComment1=function(e){this._state="-"===e?T:P},ve.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==e&&(this._state=P)},ve.prototype._stateBeforeCdata1=ge("C",F,S),ve.prototype._stateBeforeCdata2=ge("D",O,S),ve.prototype._stateBeforeCdata3=ge("A",B,S),ve.prototype._stateBeforeCdata4=ge("T",I,S),ve.prototype._stateBeforeCdata5=ge("A",q,S),ve.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=D,this._sectionStart=this._index+1):(this._state=S,this._index--)},ve.prototype._stateInCdata=function(e){"]"===e&&(this._state=M)},ve.prototype._stateAfterCdata1=(i="]",a=R,function(e){e===i&&(this._state=a)}),ve.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==e&&(this._state=D)},ve.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=U:"t"===e||"T"===e?this._state=X:(this._state=f,this._index--)},ve.prototype._stateBeforeSpecialEnd=function(e){this._special!==de||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=l:this._state=re:this._state=W},ve.prototype._stateBeforeScript1=be("R",H),ve.prototype._stateBeforeScript2=be("I",K),ve.prototype._stateBeforeScript3=be("P",V),ve.prototype._stateBeforeScript4=be("T",$),ve.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||me(e))&&(this._special=de),this._state=f,this._index--},ve.prototype._stateAfterScript1=ge("R",Z,l),ve.prototype._stateAfterScript2=ge("I",G,l),ve.prototype._stateAfterScript3=ge("P",Y,l),ve.prototype._stateAfterScript4=ge("T",Q,l),ve.prototype._stateAfterScript5=function(e){">"===e||me(e)?(this._special=fe,this._state=m,this._sectionStart=this._index-6,this._index--):this._state=l},ve.prototype._stateBeforeStyle1=be("Y",J),ve.prototype._stateBeforeStyle2=be("L",ee),ve.prototype._stateBeforeStyle3=be("E",te),ve.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||me(e))&&(this._special=he),this._state=f,this._index--},ve.prototype._stateAfterStyle1=ge("Y",ie,l),ve.prototype._stateAfterStyle2=ge("L",ae,l),ve.prototype._stateAfterStyle3=ge("E",ne,l),ve.prototype._stateAfterStyle4=function(e){">"===e||me(e)?(this._special=fe,this._state=m,this._sectionStart=this._index-5,this._index--):this._state=l},ve.prototype._stateBeforeEntity=ge("#",se,ce),ve.prototype._stateBeforeNumericEntity=ge("X",le,ue),ve.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var r=this._buffer.substr(e,t);if(s.hasOwnProperty(r))return this._emitPartial(s[r]),void(this._sectionStart+=t+1);t--}},ve.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ve.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=this._buffer.substring(r,this._index),a=parseInt(i,t);this._emitPartial(n(a)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ve.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ve.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ve.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ve.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ve.prototype._parse=function(){for(;this._index=55296&&e<=57343||e>1114111)return"\ufffd";e in i&&(e=i[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",amp:"&",AMP:"&",Aring:"\xc5",aring:"\xe5",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",brvbar:"\xa6",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",iquest:"\xbf",Iuml:"\xcf",iuml:"\xef",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",Ntilde:"\xd1",ntilde:"\xf1",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",Ograve:"\xd2",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",THORN:"\xde",thorn:"\xfe",times:"\xd7",Uacute:"\xda",uacute:"\xfa",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",Uuml:"\xdc",uuml:"\xfc",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},function(e,t){var r=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return a[this.type]||a.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},a={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(r,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,r){e.exports=s;var i=r(105),a=r(19).Writable||r(213).Writable,n=r(60).StringDecoder,o=r(3).Buffer;function s(e,t){var r=this._parser=new i(e,t),o=this._decoder=new n;a.call(this,{decodeStrings:!1}),this.once("finish",function(){r.end(o.end())})}r(1)(s,a),a.prototype._write=function(e,t,r){e instanceof o&&(e=this._decoder.write(e)),this._parser.write(e),r()}},function(e,t,r){"use strict";(function(t,i){var a=r(59);e.exports=y;var n,o=r(112);y.ReadableState=v;r(43).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(113),u=r(2).Buffer,l=t.Uint8Array||function(){};var p=r(35);p.inherits=r(1);var f=r(203),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=r(204),g=r(114);p.inherits(y,c);var b=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(n=n||r(33));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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&&(h||(h=r(60).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function y(e){if(n=n||r(33),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,r,i,a){var n,o=e._readableState;null===t?(o.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,j(e)}(e,o)):(a||(n=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof l||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(o,t)),n?e.emit("error",n):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):k(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?k(e,o,t,!1):E(e,o)):k(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(S,e):S(e))}function S(e){d("emit readable"),e.emit("readable"),T(e)}function E(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(A,e,t))}function A(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 i;en.length?n.length:e;if(o===n.length?a+=n:a+=n.slice(0,e),0===(e-=o)){o===n.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=n.slice(o));break}++i}return t.length-=i,a}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,a=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var n=i.data,o=e>n.length?n.length:e;if(n.copy(r,r.length-e,0,o),0===(e-=o)){o===n.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=n.slice(o));break}++a}return t.length-=a,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function F(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):j(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&F(this),null;var i,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,d("pipe count=%d opts=%j",n.pipesCount,t);var c=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?l:y;function u(t,i){d("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){d("onend"),e.end()}n.endEmitted?a.nextTick(c):r.once("end",c),e.on("unpipe",u);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",p);var f=!1;var h=!1;function m(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==B(n.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function g(t){d("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),y()}function v(){d("onfinish"),e.removeListener("close",b),y()}function y(){d("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",b),e.once("finish",v),e.emit("pipe",r),n.flowing||(d("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n=this._blockSize;){for(var n=this._blockOffset;n0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n},function(e,t,r){var i=r(1),a=r(38),n=r(2).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(c,a),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,a=0|this._b,n=0|this._c,s=0|this._d,c=0|this._e,h=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((t=r[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[b-7]+d(r[b-15])+r[b-16];for(var v=0;v<64;++v){var y=g+f(c)+u(c,h,m)+o[v]+r[v]|0,w=p(i)+l(i,a,n)|0;g=m,m=h,h=c,c=s+y|0,s=n,n=a,a=i,i=y+w|0}this._a=i+this._a|0,this._b=a+this._b|0,this._c=n+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=n.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=c},function(e,t,r){var i=r(1),a=r(38),n=r(2).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0>>0?1:0}i(c,a),c.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},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,a=0|this._ch,n=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,k=0|this._bl,_=0|this._cl,x=0|this._dl,j=0|this._el,S=0|this._fl,E=0|this._gl,A=0|this._hl,P=0;P<32;P+=2)t[P]=e.readInt32BE(4*P),t[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var z=t[P-30],T=t[P-30+1],C=d(z,T),F=h(T,z),O=m(z=t[P-4],T=t[P-4+1]),B=g(T,z),I=t[P-14],q=t[P-14+1],D=t[P-32],M=t[P-32+1],R=F+q|0,L=C+I+b(R,F)|0;L=(L=L+O+b(R=R+B|0,B)|0)+D+b(R=R+M|0,M)|0,t[P]=L,t[P+1]=R}for(var N=0;N<160;N+=2){L=t[N],R=t[N+1];var U=l(r,i,a),H=l(w,k,_),K=p(r,w),V=p(w,r),$=f(s,j),W=f(j,s),Z=o[N],G=o[N+1],Y=u(s,c,v),Q=u(j,S,E),X=A+W|0,J=y+$+b(X,A)|0;J=(J=(J=J+Y+b(X=X+Q|0,Q)|0)+Z+b(X=X+G|0,G)|0)+L+b(X=X+R|0,R)|0;var ee=V+H|0,te=K+U+b(ee,V)|0;y=v,A=E,v=c,E=S,c=s,S=j,s=n+J+b(j=x+X|0,x)|0,n=a,x=_,a=i,_=k,i=r,k=w,r=J+te+b(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+k|0,this._cl=this._cl+_|0,this._dl=this._dl+x|0,this._el=this._el+j|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+A|0,this._ah=this._ah+r+b(this._al,w)|0,this._bh=this._bh+i+b(this._bl,k)|0,this._ch=this._ch+a+b(this._cl,_)|0,this._dh=this._dh+n+b(this._dl,x)|0,this._eh=this._eh+s+b(this._el,j)|0,this._fh=this._fh+c+b(this._fl,S)|0,this._gh=this._gh+v+b(this._gl,E)|0,this._hh=this._hh+y+b(this._hl,A)|0},c.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){"use strict";var i=r(1),a=r(254),n=r(25),o=r(2).Buffer,s=r(128),c=r(81),u=r(82),l=o.alloc(128);function p(e,t){n.call(this,"digest"),"string"===typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengthr||n!==n)throw new TypeError("Bad key length")}}).call(this,r(3).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(8))},function(e,t,r){var i=r(128),a=r(81),n=r(82),o=r(131),s=r(132),c=r(2).Buffer,u=c.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(e,t,r){var o=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new a).update(e).digest()}:"md5"===e?i:function(t){return n(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(p);)r.iadd(d)}else for(;r.mod(n).cmp(f);)r.iadd(d);if(g(h=r.shrn(1))&&g(r)&&b(h)&&b(r)&&o.test(h)&&o.test(r))return r}}},function(e,t,r){var i=r(10),a=r(141);function n(e){this.rand=e||new a.Rand}e.exports=n,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 i(this.rand.generate(r))}while(a.cmp(e)>=0);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=i.mont(e),o=new i(1).toRed(n);t||(t=Math.max(1,a/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(n);t>0;t--){var p=this._randrange(new i(2),s);r&&r(p);var f=p.toRed(n).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var d=1;d0;t--){var l=this._randrange(new i(2),o),p=e.gcd(l);if(0!==p.cmpn(1))return p;var f=l.toRed(a).redPow(c);if(0!==f.cmp(n)&&0!==f.cmp(u)){for(var d=1;d>8,o=255&a;n?r.push(n,o):r.push(o)}return r},i.zero2=a,i.toHex=n,i.encode=function(e,t){return"hex"===t?n(e):e}},function(e,t,r){"use strict";var i=r(21).rotr32;function a(e,t,r){return e&t^~e&r}function n(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,i){return 0===e?a(t,r,i):1===e||3===e?o(t,r,i):2===e?n(t,r,i):void 0},t.ch32=a,t.maj32=n,t.p32=o,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(21),a=r(48),n=r(143),o=r(18),s=i.sum32,c=i.sum32_4,u=i.sum32_5,l=n.ch32,p=n.maj32,f=n.s0_256,d=n.s1_256,h=n.g0_256,m=n.g1_256,g=a.BlockHash,b=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}i.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],a=0===(32&r);if(31===(31&r)){var n=r;for(r=0;128===(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:i,primitive:a,tag:r,tagStr:s.tag[r]}}function p(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0===(128&i))return i;var a=127&i;if(a>4)return e.error("length octect is too long");i=0;for(var n=0;n=31)return i.error("Multi-octet tag encoding unsupported");t||(a|=32);return a|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(n=new a(2))[0]=o,n[1]=i.length,this._createEncoderBuffer([n,i]);for(var c=1,u=i.length;u>=256;u>>=8)c++;(n=new a(2+c))[0]=o,n[1]=128|c;u=1+c;for(var l=i.length;l>0;u--,l>>=8)n[u]=255&l;return this._createEncoderBuffer([n,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new a(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var n=0;for(i=0;i=128;o>>=7)n++}var s=new a(n),c=s.length-1;for(i=e.length-1;i>=0;i--){o=e[i];for(s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[l(i.getFullYear()),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(i.getFullYear()%100),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!a.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new a(r)}if(a.isBuffer(e)){var i=e.length;0===e.length&&i++;var n=new a(i);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]);i=1;for(var o=e;o>=256;o>>=8)i++;for(o=(n=new Array(i)).length-1;o>=0;o--)n[o]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new a(n))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,a=this._baseState;if(null===a.default)return!1;var n=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,r).join()),n.length!==a.defaultBuffer.length)return!1;for(i=0;ie._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new a(n.length),s=0;se._pos&&(e.push(new a(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(r)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(8),r(11),r(3).Buffer)},function(e,t,r){"use strict";e.exports=function(e,t,r,i){for(var a=65535&e|0,n=e>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{n=n+(a=a+t[i++]|0)|0}while(--o);a%=65521,n%=65521}return a|n<<16|0}},function(e,t,r){"use strict";var i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,a){var n=i,o=a+r;e^=-1;for(var s=a;s>>8^n[255&(e^t[s])];return-1^e}},function(e,t,r){e.exports={Verifier:u,Signer:l};var i=r(54),a=r(19),n=r(6),o=r(4),s=r(5).Buffer,c=r(23);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=[],a.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=[],a.Writable.call(this,{})}n.inherits(u,a.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),i.sign.detached.verify(new Uint8Array(s.concat(this.chunks)),new Uint8Array(r),new Uint8Array(this.key.part.A.data))},n.inherits(l,a.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=i.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 n.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(l(e))return c.read(e,t);e=a.from(e,"binary")}else{if(i.buffer(e),function(e){var t=0;for(;te.length||"BEGIN"!==e.slice(t,t+5).toString("ascii"))}(e))return n.read(e,t);if(function(e){var t=0;for(;t=t&&(a=0),i=i<<8|e[a];return i}n.prototype.encipher=function(e,t){void 0===t&&(t=new Uint8Array(e.buffer),0!==e.byteOffset&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var r=1;r<16;r+=2)e[1]^=o(this.S,t,0)^this.P[r],e[0]^=o(this.S,t,4)^this.P[r+1];var i=e[0];e[0]=e[1]^this.P[17],e[1]=i},n.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);0!==e.byteOffset&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var r=16;r>0;r-=2)e[1]^=o(this.S,t,0)^this.P[r],e[0]^=o(this.S,t,4)^this.P[r-1];var i=e[0];e[0]=e[1]^this.P[0],e[1]=i},n.prototype.expand0state=function(e,t){var r,i,n=new Uint32Array(2),o=new Uint8Array(n.buffer);for(r=0,a=0;r<18;r++)this.P[r]^=s(e,t);for(a=0,r=0;r<18;r+=2)this.encipher(n,o),this.P[r]=n[0],this.P[r+1]=n[1];for(r=0;r<4;r++)for(i=0;i<256;i+=2)this.encipher(n,o),this.S[r][i]=n[0],this.S[r][i+1]=n[1]},n.prototype.expandstate=function(e,t,r,i){var n,o,c=new Uint32Array(2);for(n=0,a=0;n<18;n++)this.P[n]^=s(r,i);for(n=0,a=0;n<18;n+=2)c[0]^=s(e,t),c[1]^=s(e,t),this.encipher(c),this.P[n]=c[0],this.P[n+1]=c[1];for(n=0;n<4;n++)for(o=0;o<256;o+=2)c[0]^=s(e,t),c[1]^=s(e,t),this.encipher(c),this.S[n][o]=c[0],this.S[n][o+1]=c[1];a=0},n.prototype.enc=function(e,t){for(var r=0;r>>24,r[4*i+2]=o[i]>>>16,r[4*i+1]=o[i]>>>8,r[4*i+0]=o[i]}e.exports={BLOCKS:c,HASHSIZE:u,hash:l,pbkdf:function(e,t,r,a,n,o,s){var c,p,f,d,h,m,g=new Uint8Array(64),b=new Uint8Array(64),v=new Uint8Array(u),y=new Uint8Array(u),w=new Uint8Array(a+4),k=o;if(s<1)return-1;if(0===t||0===a||0===o||o>v.byteLength*v.byteLength||a>1<<20)return-1;for(d=Math.floor((o+v.byteLength-1)/v.byteLength),f=Math.floor((o+d-1)/d),c=0;c0;m++){for(w[a+0]=m>>>24,w[a+1]=m>>>16,w[a+2]=m>>>8,w[a+3]=m,i(b,w,a+4),l(g,b,y),c=v.byteLength;c--;)v[c]=y[c];for(c=1;c=k);c++)n[h]=v[c];o-=c}return 0}}},function(e,t,r){e.exports={read:function(e,t){"string"!==typeof e&&(i.buffer(e,"buf"),e=e.toString("ascii"));var r=e.trim().replace(/[\\\r]/g,""),o=r.match(s);o||(o=r.match(c));i.ok(o,"key must match regex");var u,l=n.algToKeyType(o[1]),p=a.from(o[2],"base64"),f={};if(o[4])try{u=n.read(p)}catch(b){o=r.match(c),i.ok(o,"key must match regex"),p=a.from(o[2],"base64"),u=n.readInternal(f,"public",p)}else u=n.readInternal(f,"public",p);if(i.strictEqual(l,u.type),o[4]&&o[4].length>0)u.comment=o[4];else if(f.consumed){var d=o[2]+(o[3]?o[3]:""),h=4*Math.ceil(f.consumed/3);d=d.slice(0,h-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+d.slice(h-2);var m=f.consumed%3;for(m>0&&"="!==d.slice(h-1,h)&&h--;"="===d.slice(h,h+1);)h++;var g=d.slice(h);(g=g.replace(/[\r\n]/g," ").replace(/^\s+/,"")).match(/^[a-zA-Z0-9]/)&&(u.comment=g)}return u},write:function(e,t){if(i.object(e),!o.isKey(e))throw new Error("Must be a public key");var r=[],s=n.keyTypeToAlg(e);r.push(s);var c=n.write(e);r.push(c.toString("base64")),e.comment&&r.push(e.comment);return a.from(r.join(" "))}};var i=r(4),a=r(5).Buffer,n=r(34),o=(r(12),r(13)),s=(r(15),r(69),/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/),c=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/},function(e,t,r){e.exports={read:function(e,t){"string"===typeof e&&(e=n.from(e,"binary"));i.buffer(e,"buf");var r=new a.BerReader(e);if(r.readSequence(),Math.abs(r.length-r.remain)>1)throw new Error("DER sequence does not contain whole byte stream");var f=r.offset;r.readSequence();var h=r.offset+r.length,g=h;if(r.peek()===p(0)){r.readSequence(p(0));var b=r.readInt();i.ok(b<=3,"only x.509 versions up to v3 supported")}var v={signatures:{}},y=v.signatures.x509={};y.extras={},v.serial=function(e,t){return i.strictEqual(e.peek(),a.Ber.Integer,t+" is not an Integer"),o.mpNormalize(e.readString(a.Ber.Integer,!0))}(r,"serial"),r.readSequence();var k=r.offset+r.length,_=r.readOID();if(void 0===d[_])throw new Error("unknown signature algorithm "+_);r._offset=k,v.issuer=s.parseAsn1(r),r.readSequence(),v.validFrom=m(r),v.validUntil=m(r),v.subjects=[s.parseAsn1(r)],r.readSequence(),k=r.offset+r.length,v.subjectKey=l.readPkcs8(void 0,"public",r),r._offset=k,r.peek()===p(1)&&(r.readSequence(p(1)),y.extras.issuerUniqueID=e.slice(r.offset,r.offset+r.length),r._offset+=r.length);r.peek()===p(2)&&(r.readSequence(p(2)),y.extras.subjectUniqueID=e.slice(r.offset,r.offset+r.length),r._offset+=r.length);if(r.peek()===p(3)){r.readSequence(p(3));var x=r.offset+r.length;for(r.readSequence();r.offset=60?n-1:n;r.setUTCFullYear(o,parseInt(t[2],10)-1,parseInt(t[3],10)),r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&t[6].length>0&&r.setUTCSeconds(parseInt(t[6],10));return r}(e.readString(a.Ber.UTCTime));if(e.peek()===a.Ber.GeneralizedTime)return function(e){var t=e.match(_);i.ok(t);var r=new Date;r.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10)),r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&t[6].length>0&&r.setUTCSeconds(parseInt(t[6],10));return r}(e.readString(a.Ber.GeneralizedTime));throw new Error("Unsupported date format")}var g={OtherName:p(0),RFC822Name:f(1),DNSName:f(2),X400Address:p(3),DirectoryName:p(4),EDIPartyName:p(5),URI:f(6),IPAddress:f(7),OID:f(8)},b={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"},v={};Object.keys(b).forEach(function(e){v[b[e]]=e});var y=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function w(e,t,r){r.readSequence();var i,n,o=r.offset+r.length,c=r.readOID(),u=e.signatures.x509;switch(u.extras.exts||(u.extras.exts=[]),r.peek()===a.Ber.Boolean&&(n=r.readBoolean()),c){case h.basicConstraints:r.readSequence(a.Ber.OctetString),r.readSequence();var l=r.offset+r.length,p=!1;r.peek()===a.Ber.Boolean&&(p=r.readBoolean()),void 0===e.purposes&&(e.purposes=[]),!0===p&&e.purposes.push("ca");var f={oid:c,critical:n};r.offset0||"host"===n.type||void 0!==e.purposes&&e.purposes.length>0||r.extras&&r.extras.exts){t.startSequence(p(3)),t.startSequence();var c=[];void 0!==e.purposes&&e.purposes.length>0&&(c.push({oid:h.basicConstraints,critical:!0}),c.push({oid:h.keyUsage,critical:!0}),c.push({oid:h.extKeyUsage,critical:!0})),c.push({oid:h.altName}),r.extras&&r.extras.exts&&(c=r.extras.exts);for(var u=0;u=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?r+=t.charAt(i):n<128?r+=a[n]:n<2048?r+=a[192|n>>6]+a[128|63&n]:n<55296||n>=57344?r+=a[224|n>>12]+a[128|n>>6&63]+a[128|63&n]:(i+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),r+=a[240|n>>18]+a[128|n>>12&63]+a[128|n>>6&63]+a[128|63&n])}return r},isBuffer:function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t;if("object"!==typeof r){if(Array.isArray(t))t.push(r);else{if("object"!==typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!==typeof t)return[t].concat(r);var o=t;return Array.isArray(t)&&!Array.isArray(r)&&(o=n(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,n){i.call(t,n)?t[n]&&"object"===typeof t[n]?t[n]=e(t[n],r,a):t.push(r):t[n]=r}),t):Object.keys(r).reduce(function(t,n){var o=r[n];return i.call(t,n)?t[n]=e(t[n],o,a):t[n]=o,t},o)}}},function(e,t,r){"use strict";var i=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return i.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var i=r(39);e.exports=function(e){i.copy(e,this)}},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,i="boolean"===typeof t.cycles&&t.cycles,a=t.cmp&&(r=t.cmp,function(e){return function(t,i){var a={key:t,value:e[t]},n={key:i,value:e[i]};return r(a,n)}}),n=[];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,o;if(Array.isArray(t)){for(o="[",r=0;r2&&(t=r.call(arguments,1)),i(t)})})}.call(this,e):Array.isArray(e)?function(e){return Promise.all(e.map(a,this))}.call(this,e):Object==e.constructor?function(e){for(var t=new e.constructor,r=Object.keys(e),i=[],o=0;o",b=d?">":"<",v=void 0;if(e.opts.$data&&m&&m.$data){var y=e.util.getData(m.$data,o,e.dataPathArr),w="exclusive"+n,k="exclType"+n,_="exclIsNumber"+n,x="' + "+(E="op"+n)+" + '";a+=" var schemaExcl"+n+" = "+y+"; ",a+=" var "+w+"; var "+k+" = typeof "+(y="schemaExcl"+n)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { ";var j;v=h;(j=j||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(v||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var S=a;a=j.pop(),!e.compositeRule&&l?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 ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),a+=" "+k+" == 'number' ? ( ("+w+" = "+i+" === undefined || "+y+" "+g+"= "+i+") ? "+p+" "+b+"= "+y+" : "+p+" "+b+" "+i+" ) : ( ("+w+" = "+y+" === true) ? "+p+" "+b+"= "+i+" : "+p+" "+b+" "+i+" ) || "+p+" !== "+p+") { var op"+n+" = "+w+" ? '"+g+"' : '"+g+"=';"}else{x=g;if((_="number"==typeof m)&&f){var E="'"+x+"'";a+=" if ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),a+=" ( "+i+" === undefined || "+m+" "+g+"= "+i+" ? "+p+" "+b+"= "+m+" : "+p+" "+b+" "+i+" ) || "+p+" !== "+p+") { "}else{_&&void 0===s?(w=!0,v=h,u=e.errSchemaPath+"/"+h,i=m,b+="="):(_&&(i=Math[d?"min":"max"](m,s)),m===(!_||i)?(w=!0,v=h,u=e.errSchemaPath+"/"+h,b+="="):(w=!1,x+="="));E="'"+x+"'";a+=" if ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),a+=" "+p+" "+b+" "+i+" || "+p+" !== "+p+") { "}}v=v||t,(j=j||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(v||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+E+", limit: "+i+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+x+" ",a+=f?"' + "+i:i+"'"),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";S=a;return a=j.pop(),!e.compositeRule&&l?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+=" } ",l&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t,r){var i,a=" ",n=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(a+=" var schema"+n+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",i="schema"+n):i=s,a+="if ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),a+=" "+p+".length "+("maxItems"==t?">":"<")+" "+i+") { ";var d=t,h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+i+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"less",a+=" than ",a+=f?"' + "+i+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&l?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+="} ",l&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t,r){var i,a=" ",n=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(a+=" var schema"+n+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",i="schema"+n):i=s;var d="maxLength"==t?">":"<";a+="if ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),!1===e.opts.unicode?a+=" "+p+".length ":a+=" ucs2length("+p+") ",a+=" "+d+" "+i+") { ";var h=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+i+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=f?"' + "+i+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var g=a;return a=m.pop(),!e.compositeRule&&l?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",l&&(a+=" else { "),a}},function(e,t,r){"use strict";e.exports=function(e,t,r){var i,a=" ",n=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(a+=" var schema"+n+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",i="schema"+n):i=s,a+="if ( ",f&&(a+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),a+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+i+") { ";var d=t,h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+i+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"less",a+=" than ",a+=f?"' + "+i+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&l?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+="} ",l&&(a+=" else { "),a}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var i=r(70);function a(e){for(var t=1;t0||o){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},function(){t.updatePosition(),r&&n&&n()})}};clearTimeout(this.delayShowLoop),i?this.delayShowLoop=setTimeout(u,s):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var r=this,i=this.state,a=i.delayHide,n=i.disable,o=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!n){if(t)if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return;var c=function(){var e=r.state.show;r.mouseOnToolTip()?r.listenForTooltipExit():(r.removeListenerForTooltipExit(),r.setState({show:!1},function(){r.removeScrollListener(),e&&o&&o()}))};this.clearTimer(),a?this.delayHideLoop=setTimeout(c,parseInt(a,10)):c()}}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltip,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var e=this,t=this.state,r=t.currentEvent,i=t.currentTarget,a=t.place,n=t.desiredPlace,o=t.effect,s=t.offset,c=l.default.findDOMNode(this),u=(0,y.default)(r,i,c,a,n,o,s);if(u.isNewState)return this.setState(u.newState,function(){e.updatePosition()});c.style.left=u.position.left+"px",c.style.top=u.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=x.default,"undefined"!==typeof r.nc&&r.nc&&t.setAttribute("nonce",r.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,r=this.state,i=r.extraClass,a=r.html,n=r.ariaProps,s=r.disable,u=this.getTooltipContent(),l=this.isEmptyTip(u),d=(0,p.default)("__react_component_tooltip",{show:this.state.show&&!s&&!l},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate}),h=this.props.wrapper;return t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper),a?c.default.createElement(h,o({className:d+" "+i,id:this.props.id,ref:function(t){return e.tooltipRef=t}},n,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:(0,f.default)(u,this.props.sanitizeHtmlOptions)}})):c.default.createElement(h,o({className:d+" "+i,id:this.props.id},n,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),u)}}]),t}(),a.propTypes={children:u.default.any,place:u.default.string,type:u.default.string,effect:u.default.string,offset:u.default.object,multiline:u.default.bool,border:u.default.bool,insecure:u.default.bool,class:u.default.string,className:u.default.string,id:u.default.string,html:u.default.bool,delayHide:u.default.number,delayUpdate:u.default.number,delayShow:u.default.number,event:u.default.string,eventOff:u.default.string,watchWindow:u.default.bool,isCapture:u.default.bool,globalEventOff:u.default.string,getContent:u.default.any,afterShow:u.default.func,afterHide:u.default.func,disable:u.default.bool,scrollHide:u.default.bool,resizeHide:u.default.bool,wrapper:u.default.string,sanitizeHtmlOptions:u.default.any},a.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div"},a.supportedWrappers=["div","span"],a.displayName="ReactTooltip",i=n))||i)||i)||i)||i)||i)||i;e.exports=S},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);tP.length&&P.push(e)}function C(e,t,r){return null==e?0:function e(t,r,i,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case n:case o:c=!0}}if(c)return i(a,t,""===r?"."+F(t,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;uthis.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=pe,e.release=fe}a(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ce)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ce)},persist:function(){this.isPersistent=ce},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function r(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var n=new t;return a(n,r.prototype),r.prototype=n,r.prototype.constructor=r,r.Interface=a({},i.Interface,e),r.extend=i.extend,de(r),r},de(le);var he=le.extend({data:null}),me=le.extend({data:null}),ge=[9,13,27,32],be=W&&"CompositionEvent"in window,ve=null;W&&"documentMode"in document&&(ve=document.documentMode);var ye=W&&"TextEvent"in window&&!ve,we=W&&(!be||ve&&8=ve),ke=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xe=!1;function je(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Ae={eventTypes:_e,extractEvents:function(e,t,r,i){var a=void 0,n=void 0;if(be)e:{switch(e){case"compositionstart":a=_e.compositionStart;break e;case"compositionend":a=_e.compositionEnd;break e;case"compositionupdate":a=_e.compositionUpdate;break e}a=void 0}else Ee?je(e,r)&&(a=_e.compositionEnd):"keydown"===e&&229===r.keyCode&&(a=_e.compositionStart);return a?(we&&"ko"!==r.locale&&(Ee||a!==_e.compositionStart?a===_e.compositionEnd&&Ee&&(n=se()):(ne="value"in(ae=i)?ae.value:ae.textContent,Ee=!0)),a=he.getPooled(a,t,r,i),n?a.data=n:null!==(n=Se(r))&&(a.data=n),$(a),n=a):n=null,(e=ye?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(xe=!0,ke);case"textInput":return(e=t.data)===ke&&xe?null:e;default:return null}}(e,r):function(e,t){if(Ee)return"compositionend"===e||!be&&je(e,t)?(e=se(),oe=ne=ae=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1