From fd5597fe44423939b7aab2ce11465ce4be97f1f7 Mon Sep 17 00:00:00 2001 From: yasincaliskan Date: Tue, 3 Oct 2023 09:10:11 +0000 Subject: [PATCH] deploy: 3494b9e8b26a5c342afa07795df48b5d4b691920 --- asset-manifest.json | 20 +++++++++---------- index.html | 2 +- static/css/main.720bada7.chunk.css.map | 1 - ...ada7.chunk.css => main.c74028e2.chunk.css} | 4 ++-- static/css/main.c74028e2.chunk.css.map | 1 + static/js/2.3a3ebdd1.chunk.js | 3 +++ ...SE.txt => 2.3a3ebdd1.chunk.js.LICENSE.txt} | 0 static/js/2.3a3ebdd1.chunk.js.map | 1 + static/js/2.6571b0c6.chunk.js | 3 --- static/js/2.6571b0c6.chunk.js.map | 1 - static/js/main.16e36771.chunk.js | 2 -- static/js/main.16e36771.chunk.js.map | 1 - static/js/main.57dfc6aa.chunk.js | 2 ++ static/js/main.57dfc6aa.chunk.js.map | 1 + 14 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 static/css/main.720bada7.chunk.css.map rename static/css/{main.720bada7.chunk.css => main.c74028e2.chunk.css} (58%) create mode 100644 static/css/main.c74028e2.chunk.css.map create mode 100644 static/js/2.3a3ebdd1.chunk.js rename static/js/{2.6571b0c6.chunk.js.LICENSE.txt => 2.3a3ebdd1.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/2.3a3ebdd1.chunk.js.map delete mode 100644 static/js/2.6571b0c6.chunk.js delete mode 100644 static/js/2.6571b0c6.chunk.js.map delete mode 100644 static/js/main.16e36771.chunk.js delete mode 100644 static/js/main.16e36771.chunk.js.map create mode 100644 static/js/main.57dfc6aa.chunk.js create mode 100644 static/js/main.57dfc6aa.chunk.js.map diff --git a/asset-manifest.json b/asset-manifest.json index 87ebffe..4e255fc 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,26 +1,26 @@ { "files": { - "main.css": "/pera-demo-dapp/static/css/main.720bada7.chunk.css", - "main.js": "/pera-demo-dapp/static/js/main.16e36771.chunk.js", - "main.js.map": "/pera-demo-dapp/static/js/main.16e36771.chunk.js.map", + "main.css": "/pera-demo-dapp/static/css/main.c74028e2.chunk.css", + "main.js": "/pera-demo-dapp/static/js/main.57dfc6aa.chunk.js", + "main.js.map": "/pera-demo-dapp/static/js/main.57dfc6aa.chunk.js.map", "runtime-main.js": "/pera-demo-dapp/static/js/runtime-main.f7fecec0.js", "runtime-main.js.map": "/pera-demo-dapp/static/js/runtime-main.f7fecec0.js.map", "static/css/2.61444cb8.chunk.css": "/pera-demo-dapp/static/css/2.61444cb8.chunk.css", - "static/js/2.6571b0c6.chunk.js": "/pera-demo-dapp/static/js/2.6571b0c6.chunk.js", - "static/js/2.6571b0c6.chunk.js.map": "/pera-demo-dapp/static/js/2.6571b0c6.chunk.js.map", + "static/js/2.3a3ebdd1.chunk.js": "/pera-demo-dapp/static/js/2.3a3ebdd1.chunk.js", + "static/js/2.3a3ebdd1.chunk.js.map": "/pera-demo-dapp/static/js/2.3a3ebdd1.chunk.js.map", "static/js/3.1456b3a2.chunk.js": "/pera-demo-dapp/static/js/3.1456b3a2.chunk.js", "static/js/3.1456b3a2.chunk.js.map": "/pera-demo-dapp/static/js/3.1456b3a2.chunk.js.map", "index.html": "/pera-demo-dapp/index.html", "static/css/2.61444cb8.chunk.css.map": "/pera-demo-dapp/static/css/2.61444cb8.chunk.css.map", - "static/css/main.720bada7.chunk.css.map": "/pera-demo-dapp/static/css/main.720bada7.chunk.css.map", - "static/js/2.6571b0c6.chunk.js.LICENSE.txt": "/pera-demo-dapp/static/js/2.6571b0c6.chunk.js.LICENSE.txt", + "static/css/main.c74028e2.chunk.css.map": "/pera-demo-dapp/static/css/main.c74028e2.chunk.css.map", + "static/js/2.3a3ebdd1.chunk.js.LICENSE.txt": "/pera-demo-dapp/static/js/2.3a3ebdd1.chunk.js.LICENSE.txt", "static/media/close.950baffa.svg": "/pera-demo-dapp/static/media/close.950baffa.svg" }, "entrypoints": [ "static/js/runtime-main.f7fecec0.js", "static/css/2.61444cb8.chunk.css", - "static/js/2.6571b0c6.chunk.js", - "static/css/main.720bada7.chunk.css", - "static/js/main.16e36771.chunk.js" + "static/js/2.3a3ebdd1.chunk.js", + "static/css/main.c74028e2.chunk.css", + "static/js/main.57dfc6aa.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index df6a151..c4e93f9 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Pera Wallet Example dApp
\ No newline at end of file +Pera Wallet Example dApp
\ No newline at end of file diff --git a/static/css/main.720bada7.chunk.css.map b/static/css/main.720bada7.chunk.css.map deleted file mode 100644 index ec42209..0000000 --- a/static/css/main.720bada7.chunk.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://src/_index.scss","webpack://src/core/home/_home.scss","webpack://src/core/home/sign-txn/create/_create-txn.scss","webpack://src/core/component/modal/_modal.scss","webpack://src/core/component/toast/_pera-toast.scss"],"names":[],"mappings":"AAAA,UAKE,WAAA,CAEA,uCAAA,CAGF,YARE,QAAA,CACA,SASA,CAGF,QACE,gBAAA,CACA,qBAAA,CAEA,kBAAA,CAEA,iBAAA,CAEA,cAAA,CACA,uCAAA,CCxBF,KACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAA,CAEA,eAAA,CACA,gBAAA,CAEA,aAAA,CACA,cAAA,CAEA,iBAAA,CAEA,gBACE,iBAAA,CAIJ,aACE,cAAA,CACA,KAAA,CAEA,YAAA,CACA,qBAAA,CAEA,uBAAA,CAEA,YAAA,CAGF,oBACE,kBAAA,CAEA,aAAA,CAEA,eAAA,CAIA,4CACE,qBAAA,CACA,uBAAA,CAEA,aAAA,CAEA,mEAAA,CAGF,mDACE,UAAA,CAIJ,YACE,aAAA,CAEA,eAAA,CAGF,0BACE,YAAA,CACA,kBAAA,CACA,aAAA,CAAA,QAAA,CAGF,aACE,mBAAA,CAEA,eAAA,CAEA,iBAAA,CAEA,sCAAA,CAEA,UAAA,CAEA,sBACE,uBAAA,CACA,qBAAA,CACA,mBAAA,CAEA,wBAAA,CAEA,aAAA,CAEA,eAAA,CAIJ,cACE,YAAA,CACA,mCAAA,CACA,aAAA,CAAA,QAAA,CAEA,eAAA,CAEA,yBAAA,CAEA,2BACE,oBAAA,CAIJ,sBACE,eAAA,CAEA,oBAAA,CAGF,kBACE,aAAA,CAGF,oCACE,KACE,cAAA,CAGF,cACE,6BAAA,CAEA,2BACE,mBAAA,CAEA,QAAA,CAAA,CC7HN,kBACE,iBAAA,CAEA,WAAA,CACA,YAAA,CAEA,YAAA,CAGF,wBACE,mBAAA,CACA,oBAAA,CACA,mBAAA,CAEA,eAAA,CACA,YAAA,CAEA,iBAAA,CCjBF,MACE,gCAAA,CAGF,YACE,iBAAA,CACA,SAAA,CAGF,qBACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CAEA,+BAAA,CACA,SAAA,CAEA,kCAAA,CAAA,+DAAA,CAGF,iCACE,SAAA,CAGF,mCACE,SAAA,CAGF,OACE,iBAAA,CACA,OAAA,CACA,QAAA,CAEA,YAAA,CACA,qBAAA,CAEA,yBAAA,CAAA,sBAAA,CAAA,iBAAA,CAEA,cAAA,CACA,6BAAA,CAEA,qBAAA,CAEA,kBAAA,CAEA,sCAAA,CAAA,8BAAA,CAEA,aACE,YAAA,CAIJ,cACE,iBAAA,CACA,UAAA,CACA,QAAA,CAEA,cAAA,CAGF,oCACE,OACE,UAAA,CACA,eAAA,CACA,0BAAA,CACA,8BAAA,CAAA,CCnEJ,YACE,cAAA,CACA,iBAAA,CAEA,aAAA,CACA,qBAAA,CACA,kBAAA,CACA,mEAAA,CAEA,6BACE,kBAAA","file":"main.720bada7.chunk.css","sourcesContent":["html,\nbody {\n margin: 0;\n padding: 0;\n\n width: 100vw;\n\n font-family: \"League Spartan\", sans-serif;\n}\n\n* {\n margin: 0;\n padding: 0;\n}\n\n.button {\n --button-bg: black;\n --button-height: 110px;\n\n margin-bottom: 10px;\n\n padding: 10px 20px;\n\n font-size: 15px;\n font-family: \"League Spartan\", sans-serif;\n}\n",".app {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n\n max-width: 860px;\n min-height: 100vh;\n\n margin: 0 auto;\n padding: 0 34px;\n\n text-align: center;\n\n &--connected {\n margin: 100px auto;\n }\n}\n\n.app__header {\n position: fixed;\n top: 0;\n\n display: flex;\n justify-content: right;\n\n width: calc(100% - 48px);\n\n padding: 24px;\n}\n\n.app__chain-message {\n margin-bottom: 16px;\n\n color: #e54343;\n\n font-weight: 700;\n}\n\n.app__header__chain-select-dropdown {\n .button {\n --button-height: unset;\n --button-bg: transparent;\n\n color: #6b46fe;\n\n box-shadow: 0 0 1px rgba(12, 26, 75, 0.1), 0 30px 40px rgba(20, 37, 63, 0.08);\n }\n\n .dropdown-list {\n bottom: 3px;\n }\n}\n\n.app__title {\n color: #6b46fe;\n\n margin: 0 0 15px;\n}\n\n.app__compact-mode-switch {\n display: flex;\n align-items: center;\n gap: 20px;\n}\n\n.app__button {\n --button-bg: #6b46fe;\n\n margin-top: 30px;\n\n border-radius: 4px;\n\n box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.05);\n\n color: white;\n\n &--connect {\n --button-bg: transparent;\n --button-height: unset;\n --button-width: 100%;\n\n border: 1px solid #6b46fe;\n\n color: #6b46fe;\n\n margin-top: 24px;\n }\n}\n\n.app__actions {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 20px;\n\n margin-top: 25px;\n\n border-top: 1px solid #eee;\n\n .app__button {\n --button-width: 160px;\n }\n}\n\n.app__account-address {\n margin-top: 15px;\n\n word-break: break-all;\n}\n\n.app__text-purple {\n color: #6b46fe;\n}\n\n@media screen and (max-width: 789px) {\n .app {\n padding: 0 24px;\n }\n\n .app__actions {\n grid-template-columns: 1fr 1fr;\n\n .app__button {\n --button-width: 100%;\n\n margin: 0;\n }\n }\n}\n",".create-txn.modal {\n overflow-y: scroll;\n\n width: 480px;\n height: 570px;\n\n padding: 28px;\n}\n\n.create-txn__cta.button {\n --button-bg: #6b46fe;\n --button-height: 50px;\n --button-width: 100%;\n\n margin-top: 10px;\n padding: 16px;\n\n border-radius: 4px;\n}\n",":root {\n --modal-transition-duration: 0.2s;\n}\n\n#modal-root {\n position: relative;\n z-index: 4;\n}\n\n.ReactModal__Overlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n background-color: rgba(0, 0, 0, 0.2);\n opacity: 0;\n\n transition: opacity var(--modal-transition-duration) ease-in-out;\n}\n\n.ReactModal__Overlay--after-open {\n opacity: 1;\n}\n\n.ReactModal__Overlay--before-close {\n opacity: 0;\n}\n\n.modal {\n position: relative;\n top: 50%;\n left: 50%;\n\n display: flex;\n flex-direction: column;\n\n width: fit-content;\n\n max-width: 75vw;\n max-height: calc(90 * var(--vh));\n\n background-color: white;\n\n border-radius: 12px;\n\n transform: translate(-50%, -50%);\n\n &:focus {\n outline: none;\n }\n}\n\n.modal__close {\n position: absolute;\n right: 15px;\n top: 15px;\n\n cursor: pointer;\n}\n\n@media screen and (max-width: 789px) {\n .modal {\n width: 100%;\n max-width: unset;\n height: calc(100 * var(--vh));\n max-height: calc(100 * var(--vh));\n }\n}\n",".pera-toast {\n margin-top: 4px;\n padding: 16px 20px;\n\n color: #6b46fe;\n background-color: white;\n border-radius: 16px;\n box-shadow: 0 0 1px rgba(12, 26, 75, 0.1), 0 30px 40px rgba(20, 37, 63, 0.08);\n\n &:not(:last-child) {\n margin-bottom: 16px;\n }\n}\n"]} \ No newline at end of file diff --git a/static/css/main.720bada7.chunk.css b/static/css/main.c74028e2.chunk.css similarity index 58% rename from static/css/main.720bada7.chunk.css rename to static/css/main.c74028e2.chunk.css index 36fe2f5..b75c159 100644 --- a/static/css/main.720bada7.chunk.css +++ b/static/css/main.c74028e2.chunk.css @@ -1,2 +1,2 @@ -body,html{width:100vw;font-family:"League Spartan",sans-serif}*,body,html{margin:0;padding:0}.button{--button-bg:#000;--button-height:110px;margin-bottom:10px;padding:10px 20px;font-size:15px;font-family:"League Spartan",sans-serif}.app{display:flex;align-items:center;justify-content:center;flex-direction:column;max-width:860px;min-height:100vh;margin:0 auto;padding:0 34px;text-align:center}.app--connected{margin:100px auto}.app__header{position:fixed;top:0;display:flex;justify-content:right;width:calc(100% - 48px);padding:24px}.app__chain-message{margin-bottom:16px;color:#e54343;font-weight:700}.app__header__chain-select-dropdown .button{--button-height:unset;--button-bg:transparent;color:#6b46fe;box-shadow:0 0 1px rgba(12,26,75,.1),0 30px 40px rgba(20,37,63,.08)}.app__header__chain-select-dropdown .dropdown-list{bottom:3px}.app__title{color:#6b46fe;margin:0 0 15px}.app__compact-mode-switch{display:flex;align-items:center;grid-gap:20px;gap:20px}.app__button{--button-bg:#6b46fe;margin-top:30px;border-radius:4px;box-shadow:1px 2px 2px rgba(0,0,0,.05);color:#fff}.app__button--connect{--button-bg:transparent;--button-height:unset;--button-width:100%;border:1px solid #6b46fe;color:#6b46fe;margin-top:24px}.app__actions{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:20px;gap:20px;margin-top:25px;border-top:1px solid #eee}.app__actions .app__button{--button-width:160px}.app__account-address{margin-top:15px;word-break:break-all}.app__text-purple{color:#6b46fe}@media screen and (max-width:789px){.app{padding:0 24px}.app__actions{grid-template-columns:1fr 1fr}.app__actions .app__button{--button-width:100%;margin:0}}.create-txn.modal{overflow-y:scroll;width:480px;height:570px;padding:28px}.create-txn__cta.button{--button-bg:#6b46fe;--button-height:50px;--button-width:100%;margin-top:10px;padding:16px;border-radius:4px}:root{--modal-transition-duration:0.2s}#modal-root{position:relative;z-index:4}.ReactModal__Overlay{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.2);opacity:0;transition:opacity .2s ease-in-out;transition:opacity var(--modal-transition-duration) ease-in-out}.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}.modal{position:relative;top:50%;left:50%;display:flex;flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:75vw;max-height:calc(var(--vh)*90);background-color:#fff;border-radius:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modal:focus{outline:none}.modal__close{position:absolute;right:15px;top:15px;cursor:pointer}@media screen and (max-width:789px){.modal{width:100%;max-width:unset;height:calc(var(--vh)*100);max-height:calc(var(--vh)*100)}}.pera-toast{margin-top:4px;padding:16px 20px;color:#6b46fe;background-color:#fff;border-radius:16px;box-shadow:0 0 1px rgba(12,26,75,.1),0 30px 40px rgba(20,37,63,.08)}.pera-toast:not(:last-child){margin-bottom:16px} -/*# sourceMappingURL=main.720bada7.chunk.css.map */ \ No newline at end of file +body,html{width:100vw;font-family:"League Spartan",sans-serif}*,body,html{margin:0;padding:0}.button{--button-bg:#000;--button-height:110px;margin-bottom:10px;padding:10px 20px;font-size:15px;font-family:"League Spartan",sans-serif}.app{display:flex;align-items:center;justify-content:center;flex-direction:column;max-width:860px;min-height:100vh;margin:0 auto;padding:0 34px;text-align:center}.app--connected{margin:100px auto}.app__header{position:fixed;top:0;display:flex;justify-content:right;width:calc(100% - 48px);padding:24px}.app__chain-message{margin-bottom:16px;color:#e54343;font-weight:700}.app__header__chain-select-dropdown .button{--button-height:unset;--button-bg:transparent;color:#6b46fe;box-shadow:0 0 1px rgba(12,26,75,.1),0 30px 40px rgba(20,37,63,.08)}.app__header__chain-select-dropdown .dropdown-list{bottom:3px}.app__title{color:#6b46fe;margin:0 0 15px}.app__compact-mode-switch{display:flex;align-items:center;grid-gap:20px;gap:20px}.app__button{--button-bg:#6b46fe;margin-top:30px;border-radius:4px;box-shadow:1px 2px 2px rgba(0,0,0,.05);color:#fff}.app__button--connect{--button-bg:transparent;--button-height:unset;--button-width:100%;border:1px solid #6b46fe;color:#6b46fe;margin-top:24px}.app__actions{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:20px;gap:20px;margin-top:25px;border-top:1px solid #eee}.app__actions .app__button{--button-width:160px}.app__account-address{margin-top:15px;word-break:break-all}.app__text-purple{color:#6b46fe}@media screen and (max-width:789px){.app{padding:0 24px}.app__actions{grid-template-columns:1fr 1fr}.app__actions .app__button{--button-width:100%;margin:0}}.create-txn.modal{overflow-y:scroll;width:480px;height:570px;padding:28px}.create-txn__cta.button{--button-bg:#6b46fe;--button-height:50px;--button-width:100%;margin-top:10px;padding:16px;border-radius:4px}.create-txn__asset-tab .tab__header{margin-bottom:30px}:root{--modal-transition-duration:0.2s}#modal-root{position:relative;z-index:4}.ReactModal__Overlay{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.2);opacity:0;transition:opacity .2s ease-in-out;transition:opacity var(--modal-transition-duration) ease-in-out}.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}.modal{position:relative;top:50%;left:50%;display:flex;flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:75vw;max-height:calc(var(--vh)*90);background-color:#fff;border-radius:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modal:focus{outline:none}.modal__close{position:absolute;right:15px;top:15px;cursor:pointer}@media screen and (max-width:789px){.modal{width:100%;max-width:unset;height:calc(var(--vh)*100);max-height:calc(var(--vh)*100)}}.pera-toast{margin-top:4px;padding:16px 20px;color:#6b46fe;background-color:#fff;border-radius:16px;box-shadow:0 0 1px rgba(12,26,75,.1),0 30px 40px rgba(20,37,63,.08)}.pera-toast:not(:last-child){margin-bottom:16px} +/*# sourceMappingURL=main.c74028e2.chunk.css.map */ \ No newline at end of file diff --git a/static/css/main.c74028e2.chunk.css.map b/static/css/main.c74028e2.chunk.css.map new file mode 100644 index 0000000..f113f80 --- /dev/null +++ b/static/css/main.c74028e2.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://src/_index.scss","webpack://src/core/home/_home.scss","webpack://src/core/home/sign-txn/create/_create-txn.scss","webpack://src/core/component/modal/_modal.scss","webpack://src/core/component/toast/_pera-toast.scss"],"names":[],"mappings":"AAAA,UAKE,WAAA,CAEA,uCAAA,CAGF,YARE,QAAA,CACA,SASA,CAGF,QACE,gBAAA,CACA,qBAAA,CAEA,kBAAA,CAEA,iBAAA,CAEA,cAAA,CACA,uCAAA,CCxBF,KACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAA,CAEA,eAAA,CACA,gBAAA,CAEA,aAAA,CACA,cAAA,CAEA,iBAAA,CAEA,gBACE,iBAAA,CAIJ,aACE,cAAA,CACA,KAAA,CAEA,YAAA,CACA,qBAAA,CAEA,uBAAA,CAEA,YAAA,CAGF,oBACE,kBAAA,CAEA,aAAA,CAEA,eAAA,CAIA,4CACE,qBAAA,CACA,uBAAA,CAEA,aAAA,CAEA,mEAAA,CAGF,mDACE,UAAA,CAIJ,YACE,aAAA,CAEA,eAAA,CAGF,0BACE,YAAA,CACA,kBAAA,CACA,aAAA,CAAA,QAAA,CAGF,aACE,mBAAA,CAEA,eAAA,CAEA,iBAAA,CAEA,sCAAA,CAEA,UAAA,CAEA,sBACE,uBAAA,CACA,qBAAA,CACA,mBAAA,CAEA,wBAAA,CAEA,aAAA,CAEA,eAAA,CAIJ,cACE,YAAA,CACA,mCAAA,CACA,aAAA,CAAA,QAAA,CAEA,eAAA,CAEA,yBAAA,CAEA,2BACE,oBAAA,CAIJ,sBACE,eAAA,CAEA,oBAAA,CAGF,kBACE,aAAA,CAGF,oCACE,KACE,cAAA,CAGF,cACE,6BAAA,CAEA,2BACE,mBAAA,CAEA,QAAA,CAAA,CC7HN,kBACE,iBAAA,CAEA,WAAA,CACA,YAAA,CAEA,YAAA,CAGF,wBACE,mBAAA,CACA,oBAAA,CACA,mBAAA,CAEA,eAAA,CACA,YAAA,CAEA,iBAAA,CAIA,oCACE,kBAAA,CCtBJ,MACE,gCAAA,CAGF,YACE,iBAAA,CACA,SAAA,CAGF,qBACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CAEA,+BAAA,CACA,SAAA,CAEA,kCAAA,CAAA,+DAAA,CAGF,iCACE,SAAA,CAGF,mCACE,SAAA,CAGF,OACE,iBAAA,CACA,OAAA,CACA,QAAA,CAEA,YAAA,CACA,qBAAA,CAEA,yBAAA,CAAA,sBAAA,CAAA,iBAAA,CAEA,cAAA,CACA,6BAAA,CAEA,qBAAA,CAEA,kBAAA,CAEA,sCAAA,CAAA,8BAAA,CAEA,aACE,YAAA,CAIJ,cACE,iBAAA,CACA,UAAA,CACA,QAAA,CAEA,cAAA,CAGF,oCACE,OACE,UAAA,CACA,eAAA,CACA,0BAAA,CACA,8BAAA,CAAA,CCnEJ,YACE,cAAA,CACA,iBAAA,CAEA,aAAA,CACA,qBAAA,CACA,kBAAA,CACA,mEAAA,CAEA,6BACE,kBAAA","file":"main.c74028e2.chunk.css","sourcesContent":["html,\nbody {\n margin: 0;\n padding: 0;\n\n width: 100vw;\n\n font-family: \"League Spartan\", sans-serif;\n}\n\n* {\n margin: 0;\n padding: 0;\n}\n\n.button {\n --button-bg: black;\n --button-height: 110px;\n\n margin-bottom: 10px;\n\n padding: 10px 20px;\n\n font-size: 15px;\n font-family: \"League Spartan\", sans-serif;\n}\n",".app {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n\n max-width: 860px;\n min-height: 100vh;\n\n margin: 0 auto;\n padding: 0 34px;\n\n text-align: center;\n\n &--connected {\n margin: 100px auto;\n }\n}\n\n.app__header {\n position: fixed;\n top: 0;\n\n display: flex;\n justify-content: right;\n\n width: calc(100% - 48px);\n\n padding: 24px;\n}\n\n.app__chain-message {\n margin-bottom: 16px;\n\n color: #e54343;\n\n font-weight: 700;\n}\n\n.app__header__chain-select-dropdown {\n .button {\n --button-height: unset;\n --button-bg: transparent;\n\n color: #6b46fe;\n\n box-shadow: 0 0 1px rgba(12, 26, 75, 0.1), 0 30px 40px rgba(20, 37, 63, 0.08);\n }\n\n .dropdown-list {\n bottom: 3px;\n }\n}\n\n.app__title {\n color: #6b46fe;\n\n margin: 0 0 15px;\n}\n\n.app__compact-mode-switch {\n display: flex;\n align-items: center;\n gap: 20px;\n}\n\n.app__button {\n --button-bg: #6b46fe;\n\n margin-top: 30px;\n\n border-radius: 4px;\n\n box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.05);\n\n color: white;\n\n &--connect {\n --button-bg: transparent;\n --button-height: unset;\n --button-width: 100%;\n\n border: 1px solid #6b46fe;\n\n color: #6b46fe;\n\n margin-top: 24px;\n }\n}\n\n.app__actions {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 20px;\n\n margin-top: 25px;\n\n border-top: 1px solid #eee;\n\n .app__button {\n --button-width: 160px;\n }\n}\n\n.app__account-address {\n margin-top: 15px;\n\n word-break: break-all;\n}\n\n.app__text-purple {\n color: #6b46fe;\n}\n\n@media screen and (max-width: 789px) {\n .app {\n padding: 0 24px;\n }\n\n .app__actions {\n grid-template-columns: 1fr 1fr;\n\n .app__button {\n --button-width: 100%;\n\n margin: 0;\n }\n }\n}\n",".create-txn.modal {\n overflow-y: scroll;\n\n width: 480px;\n height: 570px;\n\n padding: 28px;\n}\n\n.create-txn__cta.button {\n --button-bg: #6b46fe;\n --button-height: 50px;\n --button-width: 100%;\n\n margin-top: 10px;\n padding: 16px;\n\n border-radius: 4px;\n}\n\n.create-txn__asset-tab {\n .tab__header {\n margin-bottom: 30px;\n }\n}\n",":root {\n --modal-transition-duration: 0.2s;\n}\n\n#modal-root {\n position: relative;\n z-index: 4;\n}\n\n.ReactModal__Overlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n background-color: rgba(0, 0, 0, 0.2);\n opacity: 0;\n\n transition: opacity var(--modal-transition-duration) ease-in-out;\n}\n\n.ReactModal__Overlay--after-open {\n opacity: 1;\n}\n\n.ReactModal__Overlay--before-close {\n opacity: 0;\n}\n\n.modal {\n position: relative;\n top: 50%;\n left: 50%;\n\n display: flex;\n flex-direction: column;\n\n width: fit-content;\n\n max-width: 75vw;\n max-height: calc(90 * var(--vh));\n\n background-color: white;\n\n border-radius: 12px;\n\n transform: translate(-50%, -50%);\n\n &:focus {\n outline: none;\n }\n}\n\n.modal__close {\n position: absolute;\n right: 15px;\n top: 15px;\n\n cursor: pointer;\n}\n\n@media screen and (max-width: 789px) {\n .modal {\n width: 100%;\n max-width: unset;\n height: calc(100 * var(--vh));\n max-height: calc(100 * var(--vh));\n }\n}\n",".pera-toast {\n margin-top: 4px;\n padding: 16px 20px;\n\n color: #6b46fe;\n background-color: white;\n border-radius: 16px;\n box-shadow: 0 0 1px rgba(12, 26, 75, 0.1), 0 30px 40px rgba(20, 37, 63, 0.08);\n\n &:not(:last-child) {\n margin-bottom: 16px;\n }\n}\n"]} \ No newline at end of file diff --git a/static/js/2.3a3ebdd1.chunk.js b/static/js/2.3a3ebdd1.chunk.js new file mode 100644 index 0000000..6d43d52 --- /dev/null +++ b/static/js/2.3a3ebdd1.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.3a3ebdd1.chunk.js.LICENSE.txt */ +(this["webpackJsonppera-demo-dapp"]=this["webpackJsonppera-demo-dapp"]||[]).push([[2],[function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(87);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),o=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function h(){}function p(){}function m(){}var g={};c(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(g=y);var b=m.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(a,o,s,u){var c=d(e[a],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Object(r.a)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,u)}))}u(c.arg)}var a;this._invoke=function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n255||t<0)throw new Error(h);if(0===n||0===r.length||n>r.length||n>255)throw new Error(p);if(32!==a.PUBLIC_KEY_LENGTH)throw new Error(g);var i=new Uint8Array(c.length+2+32*r.length);i.set(c,0),i.set([t],c.length),i.set([n],c.length+1);for(var o=0;o0&&void 0!==arguments[0]&&arguments[0],t={},n=0,r=Object.keys(this.attribute_map);n0&&void 0!==a[0]?a[0]:{},n={},"default"!==this.intDecoding&&(n.intDecoding=this.intDecoding),e.next=5,this.c.get(this.path(),this.query,t,n);case 5:return i=e.sent,e.abrupt("return",this.prepare(i.body));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"doRaw",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(){var t,n,i=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,this.c.get(this.path(),this.query,t,{},!1);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setIntDecoding",value:function(e){if("default"!==e&&"safe"!==e&&"mixed"!==e&&"bigint"!==e)throw new Error("Invalid method for int decoding: ".concat(e));return this.intDecoding=e,this}}]),e}()},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"bufferToArray",(function(){return d})),n.d(t,"bufferToHex",(function(){return f})),n.d(t,"bufferToUtf8",(function(){return h})),n.d(t,"bufferToNumber",(function(){return p})),n.d(t,"bufferToBinary",(function(){return m})),n.d(t,"arrayToBuffer",(function(){return g})),n.d(t,"arrayToHex",(function(){return v})),n.d(t,"arrayToUtf8",(function(){return y})),n.d(t,"arrayToNumber",(function(){return b})),n.d(t,"arrayToBinary",(function(){return w})),n.d(t,"hexToBuffer",(function(){return _})),n.d(t,"hexToArray",(function(){return x})),n.d(t,"hexToUtf8",(function(){return A})),n.d(t,"hexToNumber",(function(){return k})),n.d(t,"hexToBinary",(function(){return S})),n.d(t,"utf8ToBuffer",(function(){return E})),n.d(t,"utf8ToArray",(function(){return O})),n.d(t,"utf8ToHex",(function(){return C})),n.d(t,"utf8ToNumber",(function(){return T})),n.d(t,"utf8ToBinary",(function(){return M})),n.d(t,"numberToBuffer",(function(){return j})),n.d(t,"numberToArray",(function(){return R})),n.d(t,"numberToHex",(function(){return I})),n.d(t,"numberToUtf8",(function(){return P})),n.d(t,"numberToBinary",(function(){return L})),n.d(t,"binaryToBuffer",(function(){return D})),n.d(t,"binaryToArray",(function(){return B})),n.d(t,"binaryToHex",(function(){return N})),n.d(t,"binaryToUtf8",(function(){return F})),n.d(t,"binaryToNumber",(function(){return U})),n.d(t,"isBinaryString",(function(){return z})),n.d(t,"isHexString",(function(){return q})),n.d(t,"isBuffer",(function(){return H})),n.d(t,"isTypedArray",(function(){return V})),n.d(t,"isArrayBuffer",(function(){return W})),n.d(t,"getType",(function(){return G})),n.d(t,"getEncoding",(function(){return K})),n.d(t,"concatBuffers",(function(){return Y})),n.d(t,"concatArrays",(function(){return Z})),n.d(t,"trimLeft",(function(){return X})),n.d(t,"trimRight",(function(){return Q})),n.d(t,"calcByteLength",(function(){return J})),n.d(t,"splitBytes",(function(){return $})),n.d(t,"swapBytes",(function(){return ee})),n.d(t,"swapHex",(function(){return te})),n.d(t,"sanitizeBytes",(function(){return ne})),n.d(t,"padLeft",(function(){return re})),n.d(t,"padRight",(function(){return ie})),n.d(t,"removeHexPrefix",(function(){return ae})),n.d(t,"addHexPrefix",(function(){return oe})),n.d(t,"sanitizeHex",(function(){return se})),n.d(t,"removeHexLeadingZeros",(function(){return ue}));var r=n(27),i=n(105),a=n.n(i),o=n(160),s=n.n(o),u="hex",c="utf8",l="0";function d(e){return new Uint8Array(e)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.toString(u);return t?oe(n):n}function h(e){return e.toString(c)}function p(e){return e.readUIntBE(0,e.length)}function m(e){return w(d(e))}function g(e){return s()(e)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return f(g(e),t)}function y(e){return h(g(e))}function b(e){return p(g(e))}function w(e){return Array.from(e).map(L).join("")}function _(t){return e.from(ae(t),u)}function x(e){return d(_(e))}function A(e){return h(_(e))}function k(e){return b(x(e))}function S(e){return w(x(e))}function E(t){return e.from(t,c)}function O(e){return d(E(e))}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return f(E(e),t)}function T(e){var t=parseInt(e,10);return function(e,t){if(!e)throw new Error(t)}(!function(e){return"undefined"===typeof e}(t),"Number can only safely store up to 53 bits"),t}function M(e){return w(O(e))}function j(e){return D(L(e))}function R(e){return B(L(e))}function I(e,t){return N(L(e),t)}function P(e){return"".concat(e)}function L(e){return ne((e>>>0).toString(2))}function D(e){return g(B(e))}function B(e){return new Uint8Array($(e).map((function(e){return parseInt(e,2)})))}function N(e,t){return v(B(e),t)}function F(e){return y(B(e))}function U(e){return b(B(e))}function z(e){return!("string"!==typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8===0}function q(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function H(t){return e.isBuffer(t)}function V(e){return a.a.strict(e)&&!H(e)}function W(e){return!V(e)&&!H(e)&&"undefined"!==typeof e.byteLength}function G(e){return H(e)?"buffer":V(e)?"typed-array":W(e)?"array-buffer":Array.isArray(e)?"array":typeof e}function K(e){return z(e)?"binary":q(e)?u:c}function Y(){for(var t=arguments.length,n=new Array(t),r=0;r0&&(e=e.slice(n)),e}function Q(e,t){return e.slice(0,t)}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=e%t;return n?(e-n)/t*t+t:e}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=ne(e).match(new RegExp(".{".concat(t,"}"),"gi"));return Array.from(n||[])}function ee(e){return $(e).map(ce).join("")}function te(e){return N(ee(S(e)))}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return re(e,J(e.length,t),n)}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return le(e,t,!0,n)}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return le(e,t,!1,n)}function ae(e){return e.replace(/^0x/,"")}function oe(e){return e.startsWith("0x")?e:"0x".concat(e)}function se(e){return(e=ne(e=ae(e),2))&&(e=oe(e)),e}function ue(e){var t=e.startsWith("0x");return e=(e=ae(e)).startsWith(l)?e.substring(1):e,t?oe(e):e}function ce(e){return e.split("").reverse().join("")}function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,i=t-e.length,a=e;if(i>0){var o=r.repeat(i);a=n?o+e:e+o}return a}}.call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"r",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"k",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"B",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"A",(function(){return y})),n.d(t,"v",(function(){return b})),n.d(t,"C",(function(){return _})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"w",(function(){return q})),n.d(t,"x",(function(){return H})),n.d(t,"z",(function(){return R})),n.d(t,"D",(function(){return I})),n.d(t,"h",(function(){return V})),n.d(t,"u",(function(){return Z})),n.d(t,"y",(function(){return X})),n.d(t,"l",(function(){return G})),n.d(t,"a",(function(){return K})),n.d(t,"o",(function(){return L})),n.d(t,"q",(function(){return D})),n.d(t,"p",(function(){return B})),n.d(t,"n",(function(){return N})),n.d(t,"s",(function(){return F})),n.d(t,"t",(function(){return U}));var r=n(158),i=n(35),a=n(159);function o(e){return Object(a.a)(e)}function s(){var e=o();return e&&e.os?e.os:void 0}function u(){return!!s()&&(function(){var e=s();return!!e&&e.toLowerCase().includes("android")}()||function(){var e=s();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}())}function c(){return!function(){var e=o();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}()&&!!l()}i.getFromWindow,i.getFromWindowOrThrow,i.getDocumentOrThrow,i.getDocument,i.getNavigatorOrThrow;var l=i.getNavigator,d=(i.getLocationOrThrow,i.getLocation),f=(i.getCryptoOrThrow,i.getCrypto,i.getLocalStorageOrThrow,i.getLocalStorage);function h(){return r.getWindowMetadata()}var p=function(e){if("string"!==typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return JSON.parse(e)}catch(t){return e}},m=function(e){return"string"===typeof e?e:JSON.stringify(e)};function g(e,t){var n=m(t),r=f();r&&r.setItem(e,n)}function v(e){var t=null,n=f();return n&&(t=n.getItem(e)),t?p(t):t}function y(e){var t=f();t&&t.removeItem(e)}var b="WALLETCONNECT_DEEPLINK_CHOICE";var w=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],_=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],x=n(79),A=n.n(x),k=n(15);function S(e){return k.arrayToBuffer(new Uint8Array(e))}function E(e,t){return k.arrayToHex(new Uint8Array(e),!t)}function O(e){return k.bufferToArray(e).buffer}function C(e){return k.hexToArray(e).buffer}function T(e,t){var n=k.removeHexPrefix(k.sanitizeHex(new A.a(e).toString(16)));return t?n:k.addHexPrefix(n)}var M=n(106);function j(e){return k.sanitizeHex(e)}var R=n(161).payloadId;function I(){return function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t}()}function P(e,t){return k.isHexString(e,t)}function L(e){return"undefined"!==typeof e.method}function D(e){return"undefined"!==typeof e.result}function B(e){return"undefined"!==typeof e.error}function N(e){return"undefined"!==typeof e.event}function F(e){return w.includes(e)||e.startsWith("wc_")}function U(e){return!!e.method.startsWith("wc_")||!_.includes(e.method)}function z(e){e=Object(k.removeHexPrefix)(e.toLowerCase());for(var t,n=Object(k.removeHexPrefix)(Object(M.keccak_256)((t=e,k.utf8ToBuffer(t)))),r="",i=0;i7?r+=e[i].toUpperCase():r+=e[i];return Object(k.addHexPrefix)(r)}function q(e){var t,n,r;return(r=e)&&r.length&&!P(e[0])&&(e[0]=(t=e[0],k.utf8ToHex(t,!n))),e}function H(e){if("undefined"!==typeof e.type&&"0"!==e.type)return e;if("undefined"===typeof e.from||(!(t=e.from)||"0x"!==t.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(t)||!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t)&&t!==z(t)))throw new Error("Transaction object must include a valid 'from' value.");var t;function n(e){var t,n=e;return("number"===typeof e||"string"===typeof e&&!function(e){return""===e||"string"===typeof e&&""===e.trim()}(e))&&(P(e)?"string"===typeof e&&(n=j(e)):n=T(e)),"string"===typeof n&&(t=n,n=k.removeHexLeadingZeros(k.addHexPrefix(t))),n}var r={from:j(e.from),to:"undefined"===typeof e.to?void 0:j(e.to),gasPrice:"undefined"===typeof e.gasPrice?"":n(e.gasPrice),gas:"undefined"===typeof e.gas?"undefined"===typeof e.gasLimit?"":n(e.gasLimit):n(e.gas),value:"undefined"===typeof e.value?"":n(e.value),nonce:"undefined"===typeof e.nonce?"":n(e.nonce),data:"undefined"===typeof e.data?"":j(e.data)||"0x"},i=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((function(e){("undefined"===typeof r[e]||"string"===typeof r[e]&&!r[e].trim().length)&&i.includes(e)&&delete r[e]})),r}n(0),n(6);function V(e){var t=e.message||"Failed or Rejected Request",n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}var r={code:n,message:t};return e.data&&(r.data=e.data),r}var W=n(109);function G(e){var t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return"undefined"!==typeof t?e.substr(t):""}function K(e,t){var n=Y(e);return e=function(e){return W.stringify(e)}(n=Object.assign(Object.assign({},n),t))}function Y(e){return W.parse(e)}function Z(e){return"undefined"!==typeof e.bridge}function X(e){var t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t);var i=function(e){var t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n));var a=function(e){var t=Y(e);return{key:t.key||"",bridge:t.bridge||""}}("undefined"!==typeof n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},i),a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"genericHash",(function(){return s})),n.d(t,"randomBytes",(function(){return u})),n.d(t,"keyPairFromSeed",(function(){return c})),n.d(t,"keyPair",(function(){return l})),n.d(t,"isValidSignatureLength",(function(){return d})),n.d(t,"keyPairFromSecretKey",(function(){return f})),n.d(t,"sign",(function(){return h})),n.d(t,"bytesEqual",(function(){return p})),n.d(t,"verify",(function(){return m})),n.d(t,"PUBLIC_KEY_LENGTH",(function(){return g})),n.d(t,"SECRET_KEY_LENGTH",(function(){return v})),n.d(t,"HASH_BYTES_LENGTH",(function(){return y})),n.d(t,"SEED_BTYES_LENGTH",(function(){return b}));var r=n(40),i=n.n(r),a=n(164),o=n.n(a);function s(e){return o.a.sha512_256.array(e)}function u(e){return i.a.randomBytes(e)}function c(e){return i.a.sign.keyPair.fromSeed(e)}function l(){return c(u(i.a.box.secretKeyLength))}function d(e){return e===i.a.sign.signatureLength}function f(e){return i.a.sign.keyPair.fromSecretKey(e)}function h(e,t){return i.a.sign.detached(e,t)}function p(e,t){return i.a.verify(e,t)}function m(e,t,n){return i.a.sign.detached.verify(e,t,n)}var g=i.a.sign.publicKeyLength,v=i.a.sign.secretKeyLength,y=32,b=32},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(60);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";(function(e){var r=n(204),i=n(205),a=n(206);function o(){return u.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 p(e,t){if(u.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var d=!0,f=0;fi&&(r=i):r=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128===(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(41))},function(e,t,n){"use strict";n.r(t),n.d(t,"ERROR_CONTAINS_EMPTY_STRING",(function(){return i})),n.d(t,"encode",(function(){return a})),n.d(t,"decode",(function(){return o}));var r=n(110),i="The object contains empty or 0 values. First empty or 0 value encountered during encoding: ";function a(e){var t=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(!e[t]||0===e[t].length))return{containsEmpty:!0,firstEmptyKey:t};return{containsEmpty:!1,firstEmptyKey:void 0}}(e);if(t.containsEmpty)throw new Error(i+t.firstEmptyKey);return r.encode(e,{sortKeys:!0})}function o(e){return r.decode(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(60);function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ALGORAND_MIN_TX_FEE",(function(){return m})),n.d(t,"Transaction",(function(){return y})),n.d(t,"encodeUnsignedTransaction",(function(){return b})),n.d(t,"decodeUnsignedTransaction",(function(){return w})),n.d(t,"decodeSignedTransaction",(function(){return _})),n.d(t,"instantiateTxnIfNeeded",(function(){return x}));var r=n(8),i=n(21),a=n(2),o=n(1),s=n(56),u=n.n(s),c=n(9),l=n(20),d=n(17),f=n(24),h=n(166),p=n(29),m=1e3,g=32;function v(t,n,r){if(null!=t){var i;if("string"===typeof t?i=e.from(t,"base64"):t.constructor===Uint8Array?i=e.from(t):e.isBuffer(t)&&(i=t),null==i||i.byteLength!==r)throw Error("".concat(n," must be a ").concat(r," byte Uint8Array or Buffer or base64 string."));return i}}var y=function(){function t(n){var r=Object.assign({},n);Object(a.a)(this,t),this.name="Transaction",this.tag=e.from("TX");var i={type:p.b.pay,flatFee:!1,nonParticipation:!1};if("undefined"===typeof r.type&&(r.type=i.type),"undefined"===typeof r.flatFee&&(r.flatFee=i.flatFee),r.type===p.b.keyreg&&"undefined"!==typeof r.voteKey&&"undefined"===typeof r.nonParticipation&&(r.nonParticipation=i.nonParticipation),void 0!==r.suggestedParams){var o=r;o.genesisHash=o.suggestedParams.genesisHash,o.fee=o.suggestedParams.fee,void 0!==o.suggestedParams.flatFee&&(o.flatFee=o.suggestedParams.flatFee),o.firstRound=o.suggestedParams.firstRound,o.lastRound=o.suggestedParams.lastRound,o.genesisID=o.suggestedParams.genesisID}var s=r;if(s.from=c.decodeAddress(s.from),void 0!==s.to&&(s.to=c.decodeAddress(s.to)),void 0!==s.closeRemainderTo&&(s.closeRemainderTo=c.decodeAddress(s.closeRemainderTo)),void 0!==s.assetManager&&(s.assetManager=c.decodeAddress(s.assetManager)),void 0!==s.assetReserve&&(s.assetReserve=c.decodeAddress(s.assetReserve)),void 0!==s.assetFreeze&&(s.assetFreeze=c.decodeAddress(s.assetFreeze)),void 0!==s.assetClawback&&(s.assetClawback=c.decodeAddress(s.assetClawback)),void 0!==s.assetRevocationTarget&&(s.assetRevocationTarget=c.decodeAddress(s.assetRevocationTarget)),void 0!==s.freezeAccount&&(s.freezeAccount=c.decodeAddress(s.freezeAccount)),void 0!==s.reKeyTo&&(s.reKeyTo=c.decodeAddress(s.reKeyTo)),void 0===s.genesisHash)throw Error("genesis hash must be specified and in a base64 string.");if(s.genesisHash=e.from(s.genesisHash,"base64"),void 0!==s.amount&&(!(Number.isSafeInteger(s.amount)||"bigint"===typeof s.amount&&s.amount<=BigInt("0xffffffffffffffff"))||s.amount<0))throw Error("Amount must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(!Number.isSafeInteger(s.fee)||s.fee<0)throw Error("fee must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(s.firstRound)||s.firstRound<0)throw Error("firstRound must be a positive number");if(!Number.isSafeInteger(s.lastRound)||s.lastRound<0)throw Error("lastRound must be a positive number");if(void 0!==s.extraPages&&(!Number.isInteger(s.extraPages)||s.extraPages<0||s.extraPages>3))throw Error("extraPages must be an Integer between and including 0 to 3");if(void 0!==s.assetTotal&&(!(Number.isSafeInteger(s.assetTotal)||"bigint"===typeof s.assetTotal&&s.assetTotal<=BigInt("0xffffffffffffffff"))||s.assetTotal<0))throw Error("Total asset issuance must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(void 0!==s.assetDecimals&&(!Number.isSafeInteger(s.assetDecimals)||s.assetDecimals<0||s.assetDecimals>19))throw Error("assetDecimals must be a positive number and smaller than ".concat(19..toString()));if(void 0!==s.assetIndex&&(!Number.isSafeInteger(s.assetIndex)||s.assetIndex<0))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(void 0!==s.appIndex&&(!Number.isSafeInteger(s.appIndex)||s.appIndex<0))throw Error("Application index must be a positive number and smaller than 2^53-1");if(void 0!==s.appLocalInts&&(!Number.isSafeInteger(s.appLocalInts)||s.appLocalInts<0))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(void 0!==s.appLocalByteSlices&&(!Number.isSafeInteger(s.appLocalByteSlices)||s.appLocalByteSlices<0))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==s.appGlobalInts&&(!Number.isSafeInteger(s.appGlobalInts)||s.appGlobalInts<0))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(void 0!==s.appGlobalByteSlices&&(!Number.isSafeInteger(s.appGlobalByteSlices)||s.appGlobalByteSlices<0))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==s.appApprovalProgram&&s.appApprovalProgram.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(void 0!==s.appClearProgram&&s.appClearProgram.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(void 0!==s.appArgs){if(!Array.isArray(s.appArgs))throw Error("appArgs must be an Array of Uint8Array.");s.appArgs=s.appArgs.slice(),s.appArgs.forEach((function(e){if(e.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")}))}else s.appArgs=[];if(void 0!==s.appAccounts){if(!Array.isArray(s.appAccounts))throw Error("appAccounts must be an Array of addresses.");s.appAccounts=s.appAccounts.map((function(e){return c.decodeAddress(e)}))}if(void 0!==s.appForeignApps){if(!Array.isArray(s.appForeignApps))throw Error("appForeignApps must be an Array of integers.");s.appForeignApps=s.appForeignApps.slice(),s.appForeignApps.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")}))}if(void 0!==s.appForeignAssets){if(!Array.isArray(s.appForeignAssets))throw Error("appForeignAssets must be an Array of integers.");s.appForeignAssets=s.appForeignAssets.slice(),s.appForeignAssets.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")}))}if(void 0!==s.boxes){if(!Array.isArray(s.boxes))throw Error("boxes must be an Array of BoxReference.");s.boxes=s.boxes.slice(),s.boxes.forEach((function(e){if(!Number.isSafeInteger(e.appIndex)||e.name.constructor!==Uint8Array)throw Error("box app index must be a number and name must be an Uint8Array.")}))}if(void 0!==s.assetMetadataHash&&0!==s.assetMetadataHash.length){if("string"===typeof s.assetMetadataHash&&(s.assetMetadataHash=new Uint8Array(e.from(s.assetMetadataHash))),s.assetMetadataHash.constructor!==Uint8Array||32!==s.assetMetadataHash.byteLength)throw Error("assetMetadataHash must be a ".concat(32," byte Uint8Array or string."));s.assetMetadataHash.every((function(e){return 0===e}))&&(s.assetMetadataHash=void 0)}else s.assetMetadataHash=void 0;if(void 0!==s.note){if(s.note.constructor!==Uint8Array)throw Error("note must be a Uint8Array.")}else s.note=new Uint8Array(0);if(void 0!==s.lease){if(s.lease.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(s.lease.length!==g)throw Error("lease must be of length ".concat(g.toString(),"."));s.lease.every((function(e){return 0===e}))&&(s.lease=new Uint8Array(0))}else s.lease=new Uint8Array(0);if(s.voteKey=v(s.voteKey,"voteKey",32),s.selectionKey=v(s.selectionKey,"selectionKey",32),s.stateProofKey=v(s.stateProofKey,"stateProofKey",64),s.nonParticipation&&(s.voteKey||s.selectionKey||s.voteFirst||s.stateProofKey||s.voteLast||s.voteKeyDilution))throw new Error("nonParticipation is true but participation params are present.");if(!s.nonParticipation&&(s.voteKey||s.selectionKey||s.stateProofKey||s.voteFirst||s.voteLast||s.voteKeyDilution)&&!(s.voteKey&&s.selectionKey&&s.voteFirst&&s.voteLast&&s.voteKeyDilution))throw new Error("online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution");if(delete s.suggestedParams,Object.assign(this,f.removeUndefinedProperties(s)),s.flatFee||(this.fee*=this.estimateSize(),this.fee1&&void 0!==arguments[1]?arguments[1]:0;if(void 0!==e){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(e.length!==g)throw Error("lease must be of length ".concat(g.toString(),"."));t=new Uint8Array(e)}else t=new Uint8Array(0);this.lease=t,0!==n&&(this.fee+=37*n)}},{key:"addRekey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0!==e&&(this.reKeyTo=c.decodeAddress(e)),0!==t&&(this.fee+=37*t)}},{key:"_getDictForDisplay",value:function(){var e=Object(r.a)({},this);return e.tag=e.tag.toString(),e.from=c.encodeAddress(e.from.publicKey),void 0!==e.to&&(e.to=c.encodeAddress(e.to.publicKey)),void 0!==e.freezeAccount&&(e.freezeAccount=c.encodeAddress(e.freezeAccount.publicKey)),void 0!==e.closeRemainderTo&&(e.closeRemainderTo=c.encodeAddress(e.closeRemainderTo.publicKey)),void 0!==e.assetManager&&(e.assetManager=c.encodeAddress(e.assetManager.publicKey)),void 0!==e.assetReserve&&(e.assetReserve=c.encodeAddress(e.assetReserve.publicKey)),void 0!==e.assetFreeze&&(e.assetFreeze=c.encodeAddress(e.assetFreeze.publicKey)),void 0!==e.assetClawback&&(e.assetClawback=c.encodeAddress(e.assetClawback.publicKey)),void 0!==e.assetRevocationTarget&&(e.assetRevocationTarget=c.encodeAddress(e.assetRevocationTarget.publicKey)),void 0!==e.reKeyTo&&(e.reKeyTo=c.encodeAddress(e.reKeyTo.publicKey)),e.genesisHash=e.genesisHash.toString("base64"),e}},{key:"prettyPrint",value:function(){console.log(this._getDictForDisplay())}},{key:"toString",value:function(){return JSON.stringify(this._getDictForDisplay())}}],[{key:"from_obj_for_encoding",value:function(t){var n=Object.create(this.prototype);if(n.name="Transaction",n.tag=e.from("TX"),n.genesisID=t.gen,n.genesisHash=e.from(t.gh),!Object(p.c)(t.type))throw new Error("Unrecognized transaction type: ".concat(t.type));return n.type=t.type,n.fee=t.fee,n.firstRound=t.fv,n.lastRound=t.lv,n.note=new Uint8Array(t.note),n.lease=new Uint8Array(t.lx),n.from=c.decodeAddress(c.encodeAddress(new Uint8Array(t.snd))),void 0!==t.grp&&(n.group=e.from(t.grp)),void 0!==t.rekey&&(n.reKeyTo=c.decodeAddress(c.encodeAddress(new Uint8Array(t.rekey)))),"pay"===t.type?(n.amount=t.amt,n.to=c.decodeAddress(c.encodeAddress(new Uint8Array(t.rcv))),void 0!==t.close&&(n.closeRemainderTo=c.decodeAddress(c.encodeAddress(t.close)))):"keyreg"===t.type?(void 0!==t.votekey&&(n.voteKey=e.from(t.votekey)),void 0!==t.selkey&&(n.selectionKey=e.from(t.selkey)),void 0!==t.sprfkey&&(n.stateProofKey=e.from(t.sprfkey)),void 0!==t.votekd&&(n.voteKeyDilution=t.votekd),void 0!==t.votefst&&(n.voteFirst=t.votefst),void 0!==t.votelst&&(n.voteLast=t.votelst),void 0!==t.nonpart&&(n.nonParticipation=t.nonpart)):"acfg"===t.type?(void 0!==t.caid&&(n.assetIndex=t.caid),void 0!==t.apar&&(n.assetTotal=t.apar.t,n.assetDefaultFrozen=t.apar.df,void 0!==t.apar.dc&&(n.assetDecimals=t.apar.dc),void 0!==t.apar.m&&(n.assetManager=c.decodeAddress(c.encodeAddress(new Uint8Array(t.apar.m)))),void 0!==t.apar.r&&(n.assetReserve=c.decodeAddress(c.encodeAddress(new Uint8Array(t.apar.r)))),void 0!==t.apar.f&&(n.assetFreeze=c.decodeAddress(c.encodeAddress(new Uint8Array(t.apar.f)))),void 0!==t.apar.c&&(n.assetClawback=c.decodeAddress(c.encodeAddress(new Uint8Array(t.apar.c)))),void 0!==t.apar.un&&(n.assetUnitName=t.apar.un),void 0!==t.apar.an&&(n.assetName=t.apar.an),void 0!==t.apar.au&&(n.assetURL=t.apar.au),void 0!==t.apar.am&&(n.assetMetadataHash=t.apar.am))):"axfer"===t.type?(void 0!==t.xaid&&(n.assetIndex=t.xaid),void 0!==t.aamt&&(n.amount=t.aamt),void 0!==t.aclose&&(n.closeRemainderTo=c.decodeAddress(c.encodeAddress(new Uint8Array(t.aclose)))),void 0!==t.asnd&&(n.assetRevocationTarget=c.decodeAddress(c.encodeAddress(new Uint8Array(t.asnd)))),n.to=c.decodeAddress(c.encodeAddress(new Uint8Array(t.arcv)))):"afrz"===t.type?(void 0!==t.afrz&&(n.freezeState=t.afrz),void 0!==t.faid&&(n.assetIndex=t.faid),n.freezeAccount=c.decodeAddress(c.encodeAddress(new Uint8Array(t.fadd)))):"appl"===t.type?(void 0!==t.apid&&(n.appIndex=t.apid),void 0!==t.apan&&(n.appOnComplete=t.apan),void 0!==t.apls&&(void 0!==t.apls.nui&&(n.appLocalInts=t.apls.nui),void 0!==t.apls.nbs&&(n.appLocalByteSlices=t.apls.nbs)),void 0!==t.apgs&&(void 0!==t.apgs.nui&&(n.appGlobalInts=t.apgs.nui),void 0!==t.apgs.nbs&&(n.appGlobalByteSlices=t.apgs.nbs)),void 0!==t.apep&&(n.extraPages=t.apep),void 0!==t.apap&&(n.appApprovalProgram=new Uint8Array(t.apap)),void 0!==t.apsu&&(n.appClearProgram=new Uint8Array(t.apsu)),void 0!==t.apaa&&(n.appArgs=t.apaa.map((function(e){return new Uint8Array(e)}))),void 0!==t.apat&&(n.appAccounts=t.apat.map((function(e){return c.decodeAddress(c.encodeAddress(new Uint8Array(e)))}))),void 0!==t.apfa&&(n.appForeignApps=t.apfa),void 0!==t.apas&&(n.appForeignAssets=t.apas),void 0!==t.apbx&&(n.boxes=t.apbx.map((function(e){return{appIndex:e.i?n.appForeignApps[e.i-1]:0,name:e.n}})))):"stpf"===t.type&&(void 0!==t.sptype&&(n.stateProofType=t.sptype),void 0!==t.sp&&(n.stateProof=t.sp),void 0!==t.spmsg&&(n.stateProofMessage=t.spmsg)),n}}]),t}();function b(e){var t=e.get_obj_for_encoding();return l.encode(t)}function w(e){var t=l.decode(e);return y.from_obj_for_encoding(t)}function _(e){var t=l.decode(e);return Object(r.a)(Object(r.a)({},t),{},{txn:y.from_obj_for_encoding(t.txn)})}function x(e){return e instanceof y?e:new y(e)}t.default=y}.call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"q",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"o",(function(){return o})),n.d(t,"n",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"p",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"l",(function(){return b}));var r=25e6,i=5e6,a=31566704,o="notiboy",s=1025363595,u="PLQ37KYHYLLX757ZRACQCELRAWN5JFU6VJZRYVA2LK5NDJXERE5DL3TCU4",c="KGNCP3PMGIJUAMD7NO5G3SSTYOO74HGYAS72EE34YTXYLRN3ZVQBYXZA3U",l="pub_notify",d="pvt_notify",f=0,h=0,p=16,m=64,g=[],v=4,y=296,b=19},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"parseJSON",(function(){return u})),n.d(t,"arrayEqual",(function(){return c})),n.d(t,"concatArrays",(function(){return l})),n.d(t,"removeUndefinedProperties",(function(){return d})),n.d(t,"isNode",(function(){return f}));var r=n(8),i=n(165),a=n.n(i),o=n(47),s=a()({useNativeBigInt:!0,strict:!0});function u(e,t){var n=t&&t.intDecoding?t.intDecoding:o.a.DEFAULT;return s.parse(e,(function(e,t){if(null!=t&&"object"===typeof t&&null==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,Object.prototype),"bigint"===typeof t){if("safe"===n&&t>Number.MAX_SAFE_INTEGER)throw new Error("Integer exceeds maximum safe integer: ".concat(t.toString(),". Try parsing with a different intDecoding option."));return"bigint"===n||"mixed"===n&&t>Number.MAX_SAFE_INTEGER?t:Number(t)}return"number"===typeof t&&"bigint"===n&&Number.isInteger(t)?BigInt(t):t}))}function c(e,t){return e.length===t.length&&Array.from(e).every((function(e,n){return e===t[n]}))}function l(){for(var e=arguments.length,t=new Array(e),n=0;n0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}t.__assign=function(){return t.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)throw new Error("found ".concat(n.length," methods with the same name ").concat(n.map((function(e){return e.getSignature()})).join(",")));if(0===n.length)throw new Error("found 0 methods with the name ".concat(t));return n[0]}var g=function(){function e(t){if(Object(s.a)(this,e),"string"!==typeof t.name||!Array.isArray(t.methods)||t.networks&&"object"!==typeof t.networks)throw new Error("Invalid ABIContract parameters");this.name=t.name,this.description=t.desc,this.networks=t.networks?Object(o.a)({},t.networks):{},this.methods=t.methods.map((function(e){return new p(e)}))}return Object(u.a)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return m(this.methods,e)}}]),e}(),v=function(){function e(t){if(Object(s.a)(this,e),"string"!==typeof t.name||!Array.isArray(t.methods))throw new Error("Invalid ABIInterface parameters");this.name=t.name,this.description=t.desc,this.methods=t.methods.map((function(e){return new p(e)}))}return Object(u.a)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return m(this.methods,e)}}]),e}()},function(e,t,n){"use strict";function r(e){var t=void 0;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function i(e){var t=r(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return _})),n.d(t,"g",(function(){return x})),n.d(t,"f",(function(){return A})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return S})),n.d(t,"e",(function(){return E}));var r=n(21),i=n(8),a=n(2),o=n(1),s=n(181),u=n(43),c=n(4),l=n(5),d=n(17),f=n(9),h=n(20),p=n(22),m=n(24),g="Cannot merge txs. Multisig preimages differ",v="Cannot mutate a multisig field as it would invalidate all existing signatures.";function y(t,n){var r=n.version,i=n.threshold,a=n.addrs.map((function(e){return f.decodeAddress(e).publicKey})),o={v:r,thr:i,subsig:a.map((function(t){return{pk:e.from(t)}}))},s=t.get_obj_for_encoding(),u={msig:o,txn:s},c=f.fromMultisigPreImg({version:r,threshold:i,pks:a});return f.encodeAddress(s.snd)!==f.encodeAddress(c)&&(u.sgnr=e.from(c)),new Uint8Array(h.encode(u))}function b(t,n,r){var i=n.rawSig,a=n.myPk,o=r.version,s=r.threshold,u=r.pks,c=y(t,{version:o,threshold:s,addrs:u.map((function(e){return f.encodeAddress(e)}))}),l=h.decode(c),p=!1;if(l.msig.subsig.forEach((function(e,t){d.bytesEqual(e.pk,a)&&(p=!0,l.msig.subsig[t].s=i)})),!1===p)throw new Error("Key does not exist");var m=f.fromMultisigPreImg({version:o,threshold:s,pks:u});return f.encodeAddress(l.txn.snd)!==f.encodeAddress(m)&&(l.sgnr=e.from(m)),new Uint8Array(h.encode(l))}var w=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"addLease",value:function(){throw new Error(v)}},{key:"addRekey",value:function(){throw new Error(v)}},{key:"signTxn",value:function(e){throw new Error("Cannot sign a multisig transaction using `signTxn`. Use `partialSignTxn` instead.")}},{key:"partialSignTxn",value:function(e,t){var n=e.version,r=e.threshold,i=e.pks,a=d.keyPairFromSecretKey(t).publicKey;return b(this,{rawSig:this.rawSignTxn(t),myPk:a},{version:n,threshold:r,pks:i})}},{key:"partialSignWithMultisigSignature",value:function(e,t,n){if(!d.isValidSignatureLength(n.length))throw new Error("Cannot add multisig signature. Signature is not of the correct length.");return b(this,{rawSig:n,myPk:f.decodeAddress(t).publicKey},e)}}],[{key:"from_obj_for_encoding",value:function(e){return Object(s.a)(Object(u.a)(n),"from_obj_for_encoding",this).call(this,e)}}]),n}(p.Transaction);function _(t){if(t.length<2)throw new Error("Not enough multisig transactions to merge. Need at least two");for(var n=h.decode(t[0]),r=w.from_obj_for_encoding(n.txn).txID(),a=n.sgnr?f.encodeAddress(n.sgnr):void 0,o={version:n.msig.v,threshold:n.msig.thr,pks:n.msig.subsig.map((function(e){return e.pk}))},s=f.encodeAddress(f.fromMultisigPreImg(o)),u=n.msig.subsig.map((function(e){return Object(i.a)({},e)})),c=1;c1&&void 0!==i[1]?i[1]:o.a,e.abrupt("return",a.getSubtleCrypto().importKey("raw",t,s(n),!0,u(n)));case 2:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e,t,n){return f.apply(this,arguments)}function f(){return(f=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var s,u,l;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=a.getSubtleCrypto(),e.next=3,c(n,o.a);case 3:return u=e.sent,e.next=6,s.encrypt({iv:t,name:o.a},u,i);case 6:return l=e.sent,e.abrupt("return",new Uint8Array(l));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t,n){return p.apply(this,arguments)}function p(){return(p=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var s,u,l;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=a.getSubtleCrypto(),e.next=3,c(n,o.a);case 3:return u=e.sent,e.next=6,s.decrypt({iv:t,name:o.a},u,i);case 6:return l=e.sent,e.abrupt("return",new Uint8Array(l));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return(g=Object(i.a)(Object(r.a)().mark((function e(t,n){var i,s,u;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.getSubtleCrypto(),e.next=3,c(t,o.e);case 3:return s=e.sent,e.next=6,i.sign({length:o.g,name:o.e},s,n);case 6:return u=e.sent,e.abrupt("return",new Uint8Array(u));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){return y.apply(this,arguments)}function y(){return(y=Object(i.a)(Object(r.a)().mark((function e(t,n){var i,s,u;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.getSubtleCrypto(),e.next=3,c(t,o.e);case 3:return s=e.sent,e.next=6,i.sign({length:o.h,name:o.e},s,n);case 6:return u=e.sent,e.abrupt("return",new Uint8Array(u));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return(w=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.getSubtleCrypto(),e.next=3,n.digest({name:o.i},t);case 3:return i=e.sent,e.abrupt("return",new Uint8Array(i));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return x.apply(this,arguments)}function x(){return(x=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.getSubtleCrypto(),e.next=3,n.digest({name:o.j},t);case 3:return i=e.sent,e.abrupt("return",new Uint8Array(i));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var a,o=0;for(a=0;a>>8)-1}function g(e,t,n,r){return m(e,t,n,r,16)}function v(e,t,n,r){return m(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var i,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=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,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=a,x=o,A=s,k=u,S=c,E=l,O=d,C=f,T=h,M=p,j=m,R=g,I=v,P=y,L=b,D=w,B=0;B<20;B+=2)_^=(i=(I^=(i=(T^=(i=(S^=(i=_+I|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+T|0)<<18|i>>>14,E^=(i=(x^=(i=(P^=(i=(M^=(i=E+x|0)<<7|i>>>25)+E|0)<<9|i>>>23)+M|0)<<13|i>>>19)+P|0)<<18|i>>>14,j^=(i=(O^=(i=(A^=(i=(L^=(i=j+O|0)<<7|i>>>25)+j|0)<<9|i>>>23)+L|0)<<13|i>>>19)+A|0)<<18|i>>>14,D^=(i=(R^=(i=(C^=(i=(k^=(i=D+R|0)<<7|i>>>25)+D|0)<<9|i>>>23)+k|0)<<13|i>>>19)+C|0)<<18|i>>>14,_^=(i=(k^=(i=(A^=(i=(x^=(i=_+k|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+A|0)<<18|i>>>14,E^=(i=(S^=(i=(C^=(i=(O^=(i=E+S|0)<<7|i>>>25)+E|0)<<9|i>>>23)+O|0)<<13|i>>>19)+C|0)<<18|i>>>14,j^=(i=(M^=(i=(T^=(i=(R^=(i=j+M|0)<<7|i>>>25)+j|0)<<9|i>>>23)+R|0)<<13|i>>>19)+T|0)<<18|i>>>14,D^=(i=(L^=(i=(P^=(i=(I^=(i=D+L|0)<<7|i>>>25)+D|0)<<9|i>>>23)+I|0)<<13|i>>>19)+P|0)<<18|i>>>14;_=_+a|0,x=x+o|0,A=A+s|0,k=k+u|0,S=S+c|0,E=E+l|0,O=O+d|0,C=C+f|0,T=T+h|0,M=M+p|0,j=j+m|0,R=R+g|0,I=I+v|0,P=P+y|0,L=L+b|0,D=D+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=A>>>0&255,e[9]=A>>>8&255,e[10]=A>>>16&255,e[11]=A>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>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]=O>>>0&255,e[25]=O>>>8&255,e[26]=O>>>16&255,e[27]=O>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=M>>>0&255,e[37]=M>>>8&255,e[38]=M>>>16&255,e[39]=M>>>24&255,e[40]=j>>>0&255,e[41]=j>>>8&255,e[42]=j>>>16&255,e[43]=j>>>24&255,e[44]=R>>>0&255,e[45]=R>>>8&255,e[46]=R>>>16&255,e[47]=R>>>24&255,e[48]=I>>>0&255,e[49]=I>>>8&255,e[50]=I>>>16&255,e[51]=I>>>24&255,e[52]=P>>>0&255,e[53]=P>>>8&255,e[54]=P>>>16&255,e[55]=P>>>24&255,e[56]=L>>>0&255,e[57]=L>>>8&255,e[58]=L>>>16&255,e[59]=L>>>24&255,e[60]=D>>>0&255,e[61]=D>>>8&255,e[62]=D>>>16&255,e[63]=D>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var i,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=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,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=0;_<20;_+=2)a^=(i=(v^=(i=(h^=(i=(c^=(i=a+v|0)<<7|i>>>25)+a|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(o^=(i=(y^=(i=(p^=(i=l+o|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,m^=(i=(d^=(i=(s^=(i=(b^=(i=m+d|0)<<7|i>>>25)+m|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(g^=(i=(f^=(i=(u^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+f|0)<<18|i>>>14,a^=(i=(u^=(i=(s^=(i=(o^=(i=a+u|0)<<7|i>>>25)+a|0)<<9|i>>>23)+o|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(c^=(i=(f^=(i=(d^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(g^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+g|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(b^=(i=(y^=(i=(v^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+v|0)<<13|i>>>19)+y|0)<<18|i>>>14;e[0]=a>>>0&255,e[1]=a>>>8&255,e[2]=a>>>16&255,e[3]=a>>>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]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(e,t,n,r,i,a,o){var s,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=a[u];for(;i>=64;){for(y(l,c,o,w),u=0;u<64;u++)e[t+u]=n[r+u]^l[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(y(l,c,o,w),u=0;u=64;){for(y(u,s,i,w),o=0;o<64;o++)e[t+o]=u[o];for(a=1,o=8;o<16;o++)a=a+(255&s[o])|0,s[o]=255&a,a>>>=8;n-=64,t+=64}if(n>0)for(y(u,s,i,w),o=0;o>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),a=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|a<<12),this.r[5]=a>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(a>>>14|o<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>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,n,r,i,a){var o=new S(a);return o.update(n,r,i),o.finish(e,t),0}function O(e,t,n,r,i,a){var o=new Uint8Array(16);return E(o,0,n,r,i,a),g(e,t,o,0)}function C(e,t,n,r,i){var a;if(n<32)return-1;for(k(e,0,t,0,n,r,i),E(e,16,e,32,n-32,e),a=0;a<16;a++)e[a]=0;return 0}function T(e,t,n,r,i){var a,o=new Uint8Array(32);if(n<32)return-1;if(A(o,0,32,r,i),0!==O(t,16,t,32,n-32,o))return-1;for(k(e,0,t,0,n,r,i),a=0;a<32;a++)e[a]=0;return 0}function M(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function j(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function R(e,t,n){for(var r,i=~(n-1),a=0;a<16;a++)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function I(e,n){var r,i,a,o=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(j(s),j(s),j(s),i=0;i<2;i++){for(o[0]=s[0]-65517,r=1;r<15;r++)o[r]=s[r]-65535-(o[r-1]>>16&1),o[r-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),a=o[15]>>16&1,o[14]&=65535,R(s,o,1-a)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function P(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return I(n,e),I(r,t),v(n,0,r,0)}function L(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function D(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function F(e,t,n){var r,i,a=0,o=0,s=0,u=0,c=0,l=0,d=0,f=0,h=0,p=0,m=0,g=0,v=0,y=0,b=0,w=0,_=0,x=0,A=0,k=0,S=0,E=0,O=0,C=0,T=0,M=0,j=0,R=0,I=0,P=0,L=0,D=n[0],B=n[1],N=n[2],F=n[3],U=n[4],z=n[5],q=n[6],H=n[7],V=n[8],W=n[9],G=n[10],K=n[11],Y=n[12],Z=n[13],X=n[14],Q=n[15];a+=(r=t[0])*D,o+=r*B,s+=r*N,u+=r*F,c+=r*U,l+=r*z,d+=r*q,f+=r*H,h+=r*V,p+=r*W,m+=r*G,g+=r*K,v+=r*Y,y+=r*Z,b+=r*X,w+=r*Q,o+=(r=t[1])*D,s+=r*B,u+=r*N,c+=r*F,l+=r*U,d+=r*z,f+=r*q,h+=r*H,p+=r*V,m+=r*W,g+=r*G,v+=r*K,y+=r*Y,b+=r*Z,w+=r*X,_+=r*Q,s+=(r=t[2])*D,u+=r*B,c+=r*N,l+=r*F,d+=r*U,f+=r*z,h+=r*q,p+=r*H,m+=r*V,g+=r*W,v+=r*G,y+=r*K,b+=r*Y,w+=r*Z,_+=r*X,x+=r*Q,u+=(r=t[3])*D,c+=r*B,l+=r*N,d+=r*F,f+=r*U,h+=r*z,p+=r*q,m+=r*H,g+=r*V,v+=r*W,y+=r*G,b+=r*K,w+=r*Y,_+=r*Z,x+=r*X,A+=r*Q,c+=(r=t[4])*D,l+=r*B,d+=r*N,f+=r*F,h+=r*U,p+=r*z,m+=r*q,g+=r*H,v+=r*V,y+=r*W,b+=r*G,w+=r*K,_+=r*Y,x+=r*Z,A+=r*X,k+=r*Q,l+=(r=t[5])*D,d+=r*B,f+=r*N,h+=r*F,p+=r*U,m+=r*z,g+=r*q,v+=r*H,y+=r*V,b+=r*W,w+=r*G,_+=r*K,x+=r*Y,A+=r*Z,k+=r*X,S+=r*Q,d+=(r=t[6])*D,f+=r*B,h+=r*N,p+=r*F,m+=r*U,g+=r*z,v+=r*q,y+=r*H,b+=r*V,w+=r*W,_+=r*G,x+=r*K,A+=r*Y,k+=r*Z,S+=r*X,E+=r*Q,f+=(r=t[7])*D,h+=r*B,p+=r*N,m+=r*F,g+=r*U,v+=r*z,y+=r*q,b+=r*H,w+=r*V,_+=r*W,x+=r*G,A+=r*K,k+=r*Y,S+=r*Z,E+=r*X,O+=r*Q,h+=(r=t[8])*D,p+=r*B,m+=r*N,g+=r*F,v+=r*U,y+=r*z,b+=r*q,w+=r*H,_+=r*V,x+=r*W,A+=r*G,k+=r*K,S+=r*Y,E+=r*Z,O+=r*X,C+=r*Q,p+=(r=t[9])*D,m+=r*B,g+=r*N,v+=r*F,y+=r*U,b+=r*z,w+=r*q,_+=r*H,x+=r*V,A+=r*W,k+=r*G,S+=r*K,E+=r*Y,O+=r*Z,C+=r*X,T+=r*Q,m+=(r=t[10])*D,g+=r*B,v+=r*N,y+=r*F,b+=r*U,w+=r*z,_+=r*q,x+=r*H,A+=r*V,k+=r*W,S+=r*G,E+=r*K,O+=r*Y,C+=r*Z,T+=r*X,M+=r*Q,g+=(r=t[11])*D,v+=r*B,y+=r*N,b+=r*F,w+=r*U,_+=r*z,x+=r*q,A+=r*H,k+=r*V,S+=r*W,E+=r*G,O+=r*K,C+=r*Y,T+=r*Z,M+=r*X,j+=r*Q,v+=(r=t[12])*D,y+=r*B,b+=r*N,w+=r*F,_+=r*U,x+=r*z,A+=r*q,k+=r*H,S+=r*V,E+=r*W,O+=r*G,C+=r*K,T+=r*Y,M+=r*Z,j+=r*X,R+=r*Q,y+=(r=t[13])*D,b+=r*B,w+=r*N,_+=r*F,x+=r*U,A+=r*z,k+=r*q,S+=r*H,E+=r*V,O+=r*W,C+=r*G,T+=r*K,M+=r*Y,j+=r*Z,R+=r*X,I+=r*Q,b+=(r=t[14])*D,w+=r*B,_+=r*N,x+=r*F,A+=r*U,k+=r*z,S+=r*q,E+=r*H,O+=r*V,C+=r*W,T+=r*G,M+=r*K,j+=r*Y,R+=r*Z,I+=r*X,P+=r*Q,w+=(r=t[15])*D,o+=38*(x+=r*N),s+=38*(A+=r*F),u+=38*(k+=r*U),c+=38*(S+=r*z),l+=38*(E+=r*q),d+=38*(O+=r*H),f+=38*(C+=r*V),h+=38*(T+=r*W),p+=38*(M+=r*G),m+=38*(j+=r*K),g+=38*(R+=r*Y),v+=38*(I+=r*Z),y+=38*(P+=r*X),b+=38*(L+=r*Q),a=(r=(a+=38*(_+=r*B))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),o=(r=o+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=(a+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),o=(r=o+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function U(e,t){F(e,t,t)}function z(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)U(i,i),2!==r&&4!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function q(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)U(i,i),1!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function H(e,n,r){var i,a,o=new Uint8Array(32),s=new Float64Array(80),c=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(a=0;a<31;a++)o[a]=n[a];for(o[31]=127&n[31]|64,o[0]&=248,D(s,r),a=0;a<16;a++)l[a]=s[a],f[a]=c[a]=d[a]=0;for(c[0]=f[0]=1,a=254;a>=0;--a)R(c,l,i=o[a>>>3]>>>(7&a)&1),R(d,f,i),B(h,c,d),N(c,c,d),B(d,l,f),N(l,l,f),U(f,h),U(p,c),F(c,d,c),F(d,l,h),B(h,c,d),N(c,c,d),U(l,c),N(d,f,p),F(c,d,u),B(c,c,f),F(d,d,c),F(c,f,p),F(f,l,s),U(l,h),R(c,l,i),R(d,f,i);for(a=0;a<16;a++)s[a+16]=c[a],s[a+32]=d[a],s[a+48]=l[a],s[a+64]=f[a];var m=s.subarray(32),g=s.subarray(16);return z(m,m),F(g,g,m),I(e,g),0}function V(e,t){return H(e,t,a)}function W(e,t){return r(t,32),V(e,t)}function G(e,t,n){var r=new Uint8Array(32);return H(r,n,t),b(e,i,r,w)}S.prototype.blocks=function(e,t,n){for(var r,i,a,o,s,u,c,l,d,f,h,p,m,g,v,y,b,w,_,x=this.fin?0:2048,A=this.h[0],k=this.h[1],S=this.h[2],E=this.h[3],O=this.h[4],C=this.h[5],T=this.h[6],M=this.h[7],j=this.h[8],R=this.h[9],I=this.r[0],P=this.r[1],L=this.r[2],D=this.r[3],B=this.r[4],N=this.r[5],F=this.r[6],U=this.r[7],z=this.r[8],q=this.r[9];n>=16;)f=d=0,f+=(A+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*I,f+=(k+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*q),f+=(S+=8191&(i>>>10|(a=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(E+=8191&(a>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),d=(f+=(O+=8191&(o>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(C+=s>>>1&8191)*(5*N),f+=(T+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*B),f+=(M+=8191&(u>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*D),f+=(j+=8191&(c>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*L),h=d+=(f+=(R+=l>>>5|x)*(5*P))>>>13,h+=A*P,h+=k*I,h+=S*(5*q),h+=E*(5*z),d=(h+=O*(5*U))>>>13,h&=8191,h+=C*(5*F),h+=T*(5*N),h+=M*(5*B),h+=j*(5*D),d+=(h+=R*(5*L))>>>13,h&=8191,p=d,p+=A*L,p+=k*P,p+=S*I,p+=E*(5*q),d=(p+=O*(5*z))>>>13,p&=8191,p+=C*(5*U),p+=T*(5*F),p+=M*(5*N),p+=j*(5*B),m=d+=(p+=R*(5*D))>>>13,m+=A*D,m+=k*L,m+=S*P,m+=E*I,d=(m+=O*(5*q))>>>13,m&=8191,m+=C*(5*z),m+=T*(5*U),m+=M*(5*F),m+=j*(5*N),g=d+=(m+=R*(5*B))>>>13,g+=A*B,g+=k*D,g+=S*L,g+=E*P,d=(g+=O*I)>>>13,g&=8191,g+=C*(5*q),g+=T*(5*z),g+=M*(5*U),g+=j*(5*F),v=d+=(g+=R*(5*N))>>>13,v+=A*N,v+=k*B,v+=S*D,v+=E*L,d=(v+=O*P)>>>13,v&=8191,v+=C*I,v+=T*(5*q),v+=M*(5*z),v+=j*(5*U),y=d+=(v+=R*(5*F))>>>13,y+=A*F,y+=k*N,y+=S*B,y+=E*D,d=(y+=O*L)>>>13,y&=8191,y+=C*P,y+=T*I,y+=M*(5*q),y+=j*(5*z),b=d+=(y+=R*(5*U))>>>13,b+=A*U,b+=k*F,b+=S*N,b+=E*B,d=(b+=O*D)>>>13,b&=8191,b+=C*L,b+=T*P,b+=M*I,b+=j*(5*q),w=d+=(b+=R*(5*z))>>>13,w+=A*z,w+=k*U,w+=S*F,w+=E*N,d=(w+=O*B)>>>13,w&=8191,w+=C*D,w+=T*L,w+=M*P,w+=j*I,_=d+=(w+=R*(5*q))>>>13,_+=A*q,_+=k*z,_+=S*U,_+=E*F,d=(_+=O*N)>>>13,_&=8191,_+=C*B,_+=T*D,_+=M*L,_+=j*P,A=f=8191&(d=(d=((d+=(_+=R*I)>>>13)<<2)+d|0)+(f&=8191)|0),k=h+=d>>>=13,S=p&=8191,E=m&=8191,O=g&=8191,C=v&=8191,T=y&=8191,M=b&=8191,j=w&=8191,R=_&=8191,t+=16,n-=16;this.h[0]=A,this.h[1]=k,this.h[2]=S,this.h[3]=E,this.h[4]=O,this.h[5]=C,this.h[6]=T,this.h[7]=M,this.h[8]=j,this.h[9]=R},S.prototype.finish=function(e,t){var n,r,i,a,o=new Uint16Array(10);if(this.leftover){for(a=this.leftover,this.buffer[a++]=1;a<16;a++)this.buffer[a]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,a=2;a<10;a++)this.h[a]+=n,n=this.h[a]>>>13,this.h[a]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,o[0]=this.h[0]+5,n=o[0]>>>13,o[0]&=8191,a=1;a<10;a++)o[a]=this.h[a]+n,n=o[a]>>>13,o[a]&=8191;for(o[9]-=8192,r=(1^n)-1,a=0;a<10;a++)o[a]&=r;for(r=~r,a=0;a<10;a++)this.h[a]=this.h[a]&r|o[a];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),i=this.h[0]+this.pad[0],this.h[0]=65535&i,a=1;a<8;a++)i=(this.h[a]+this.pad[a]|0)+(i>>>16)|0,this.h[a]=65535&i;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,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r=128;){for(x=0;x<16;x++)A=8*x+Y,M[x]=n[A+0]<<24|n[A+1]<<16|n[A+2]<<8|n[A+3],j[x]=n[A+4]<<24|n[A+5]<<16|n[A+6]<<8|n[A+7];for(x=0;x<80;x++)if(i=R,a=I,o=P,s=L,u=D,c=B,l=N,F,f=U,h=z,p=q,m=H,g=V,v=W,y=G,K,E=65535&(S=K),O=S>>>16,C=65535&(k=F),T=k>>>16,E+=65535&(S=(V>>>14|D<<18)^(V>>>18|D<<14)^(D>>>9|V<<23)),O+=S>>>16,C+=65535&(k=(D>>>14|V<<18)^(D>>>18|V<<14)^(V>>>9|D<<23)),T+=k>>>16,E+=65535&(S=V&W^~V&G),O+=S>>>16,C+=65535&(k=D&B^~D&N),T+=k>>>16,E+=65535&(S=Z[2*x+1]),O+=S>>>16,C+=65535&(k=Z[2*x]),T+=k>>>16,k=M[x%16],O+=(S=j[x%16])>>>16,C+=65535&k,T+=k>>>16,C+=(O+=(E+=65535&S)>>>16)>>>16,E=65535&(S=_=65535&E|O<<16),O=S>>>16,C=65535&(k=w=65535&C|(T+=C>>>16)<<16),T=k>>>16,E+=65535&(S=(U>>>28|R<<4)^(R>>>2|U<<30)^(R>>>7|U<<25)),O+=S>>>16,C+=65535&(k=(R>>>28|U<<4)^(U>>>2|R<<30)^(U>>>7|R<<25)),T+=k>>>16,O+=(S=U&z^U&q^z&q)>>>16,C+=65535&(k=R&I^R&P^I&P),T+=k>>>16,d=65535&(C+=(O+=(E+=65535&S)>>>16)>>>16)|(T+=C>>>16)<<16,b=65535&E|O<<16,E=65535&(S=m),O=S>>>16,C=65535&(k=s),T=k>>>16,O+=(S=_)>>>16,C+=65535&(k=w),T+=k>>>16,I=i,P=a,L=o,D=s=65535&(C+=(O+=(E+=65535&S)>>>16)>>>16)|(T+=C>>>16)<<16,B=u,N=c,F=l,R=d,z=f,q=h,H=p,V=m=65535&E|O<<16,W=g,G=v,K=y,U=b,x%16===15)for(A=0;A<16;A++)k=M[A],E=65535&(S=j[A]),O=S>>>16,C=65535&k,T=k>>>16,k=M[(A+9)%16],E+=65535&(S=j[(A+9)%16]),O+=S>>>16,C+=65535&k,T+=k>>>16,w=M[(A+1)%16],E+=65535&(S=((_=j[(A+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),O+=S>>>16,C+=65535&(k=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),T+=k>>>16,w=M[(A+14)%16],O+=(S=((_=j[(A+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,C+=65535&(k=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,M[A]=65535&C|T<<16,j[A]=65535&E|O<<16;E=65535&(S=U),O=S>>>16,C=65535&(k=R),T=k>>>16,k=e[0],O+=(S=t[0])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[0]=R=65535&C|T<<16,t[0]=U=65535&E|O<<16,E=65535&(S=z),O=S>>>16,C=65535&(k=I),T=k>>>16,k=e[1],O+=(S=t[1])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[1]=I=65535&C|T<<16,t[1]=z=65535&E|O<<16,E=65535&(S=q),O=S>>>16,C=65535&(k=P),T=k>>>16,k=e[2],O+=(S=t[2])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[2]=P=65535&C|T<<16,t[2]=q=65535&E|O<<16,E=65535&(S=H),O=S>>>16,C=65535&(k=L),T=k>>>16,k=e[3],O+=(S=t[3])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[3]=L=65535&C|T<<16,t[3]=H=65535&E|O<<16,E=65535&(S=V),O=S>>>16,C=65535&(k=D),T=k>>>16,k=e[4],O+=(S=t[4])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[4]=D=65535&C|T<<16,t[4]=V=65535&E|O<<16,E=65535&(S=W),O=S>>>16,C=65535&(k=B),T=k>>>16,k=e[5],O+=(S=t[5])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[5]=B=65535&C|T<<16,t[5]=W=65535&E|O<<16,E=65535&(S=G),O=S>>>16,C=65535&(k=N),T=k>>>16,k=e[6],O+=(S=t[6])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[6]=N=65535&C|T<<16,t[6]=G=65535&E|O<<16,E=65535&(S=K),O=S>>>16,C=65535&(k=F),T=k>>>16,k=e[7],O+=(S=t[7])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(O+=(E+=65535&S)>>>16)>>>16)>>>16,e[7]=F=65535&C|T<<16,t[7]=K=65535&E|O<<16,Y+=128,r-=128}return r}function Q(e,t,n){var r,i=new Int32Array(8),a=new Int32Array(8),o=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,a[0]=4089235720,a[1]=2227873595,a[2]=4271175723,a[3]=1595750129,a[4]=2917565137,a[5]=725511199,a[6]=4215389547,a[7]=327033209,X(i,a,t,n),n%=128,r=0;r=0;--i)$(e,t,r=n[i/8|0]>>(7&i)&1),J(t,e),J(e,e),$(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];M(r[0],d),M(r[1],f),M(r[2],s),F(r[3],d,f),te(e,r,n)}function re(e,n,i){var a,o=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),Q(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64,ne(s,o),ee(e,s),a=0;a<32;a++)n[a+32]=e[a];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 n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i>4)*ie[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*ie[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function oe(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ae(e,n)}function se(e,n,r,i){var a,o,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),d=[t(),t(),t(),t()];Q(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(a=0;a>7&&N(e[0],o,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(a=0;a=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n1)for(var n=1;n16){var r="".concat(n.length.toString()," transactions grouped together but max group size is ").concat(16..toString());throw Error(r)}this.txGroupHashes=n}return Object(a.a)(t,[{key:"get_obj_for_encoding",value:function(){return{txlist:this.txGroupHashes}}},{key:"toByte",value:function(){return u.encode(this.get_obj_for_encoding())}}],[{key:"from_obj_for_encoding",value:function(t){var n=Object.create(this.prototype);n.name="Transaction group",n.tag=e.from("TG"),n.txGroupHashes=[];var i,a=Object(r.a)(t.txlist);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.txGroupHashes.push(e.from(o))}}catch(s){a.e(s)}finally{a.f()}return n}}]),t}();function f(t){var n,i=[],a=Object(r.a)(t);try{for(a.s();!(n=a.n()).done;){var u=n.value,c=o.instantiateTxnIfNeeded(u);i.push(c.rawTxID())}}catch(g){a.e(g)}finally{a.f()}var f=new d(i),h=f.toByte(),p=e.from(l.concatArrays(f.tag,h)),m=s.genericHash(p);return e.from(m)}function h(e,t){var n,i=f(e),a=[],s=Object(r.a)(e);try{for(s.s();!(n=s.n()).done;){var u=n.value,l=o.instantiateTxnIfNeeded(u);t&&c.encodeAddress(l.from.publicKey)!==t||(l.group=i,a.push(l))}}catch(d){s.e(d)}finally{s.f()}return a}t.default=d}.call(this,n(19).Buffer)},function(e,t,n){"use strict";var r;!function(e){e.DEFAULT="default",e.SAFE="safe",e.MIXED="mixed",e.BIGINT="bigint"}(r||(r={})),t.a=r},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(13)),a=r(n(25)),o=n(45);e.exports=function(e){var t=e.id,n=e.testid,r=e.children,s=e.customClassName,u=e.clickableListItemProps,c=e.role,l=e.ariaSelected,d=e.listItemRef,f=a("list-item",s),h=i.createElement("li",{ref:d,id:t,"data-testid":n,className:f,role:c,"aria-selected":l},r);return u&&(h=i.createElement("li",{ref:d,id:t,"data-testid":n,className:f},i.createElement("div",{role:"button",tabIndex:u.tabIndex||0,className:"list-item__click-wrapper",onClick:p,onKeyPress:function(e){e.key===o.KEYBOARD_EVENT_KEY.ENTER&&p(e)}},r))),h;function p(e){u.onClick(e)}}},function(e,t,n){"use strict";var r=n(33),i="undefined"!=typeof navigator?navigator.language:"en-GB";function a(e){var t,n=e.locale,a=r.__rest(e,["locale"]),o=r.__assign({style:"decimal"},a);try{t=new Intl.NumberFormat(n||[i,"en-GB"],o)}catch(r){t={format:function(e){return e.toLocaleString(n)}}}return function(e){var n="";return Object.is(e,NaN)||(n=t.format(e)),n}}function o(e){void 0===e&&(e=i);var t=new Intl.NumberFormat(e).formatToParts(-12345.6);return{THOUSANDTHS_SEPARATOR:t.find((function(e){return"group"===e.type})).value,DECIMAL_NUMBER_SEPARATOR:t.find((function(e){return"decimal"===e.type})).value,MINUS_SIGN:t.find((function(e){return"minusSign"===e.type})).value}}function s(e){return void 0===e&&(e=i),new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210).split("").reverse()}function u(e){void 0===e&&(e=i);var t=s(e)[0],n=o(e).MINUS_SIGN;return{LOCALE_NEGATIVE_ZERO:""+n+t,LOCALE_NEGATIVE_DOUBLE_ZERO:""+n+t+t,DEFAULT_NEGATIVE_ZERO:"-0",DEFAULT_NEGATIVE_DOUBLE_ZERO:"-00"}}t.formatNumber=a,t.getNegativeZero=u,t.getNumberSeparators=o,t.getThousandthSeparatorCount=function(e){var t;return(null===(t=a({locale:"en"})(parseFloat(e)).match(/,/g))||void 0===t?void 0:t.length)||0},t.isNonNegativeNumber=function(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0},t.mapDigitsToLocalVersion=function(e,t){var n=e.locale,r=void 0===n?i:n;return t.split("").map(function(e){var t=e.locale,n=s(void 0===t?i:t),r=new Map(n.map((function(e,t){return[t,e]})));return function(e){return r.get(parseInt(e))}}({locale:r})).join("")},t.parseNumber=function(e,t){var n,a=e.locale,u=void 0===a?i:a,c=e.maximumFractionDigits,l=void 0===c?0:c,d=o(u),f=d.THOUSANDTHS_SEPARATOR,h=d.DECIMAL_NUMBER_SEPARATOR,p=s(u),m=new RegExp("["+p.join("")+"]","g"),g=(n=new Map(p.map((function(e,t){return[e,t]}))),function(e){var t=n.get(e);return"number"==typeof t?String(t):""}),v=t.replace(" ","").replace(new RegExp("["+f+"]","g"),"").replace(new RegExp("["+h+"]"),".").replace(m,g);if("number"==typeof l){var y=r.__read(v.split("."),2),b=y[0],w=y[1];if(0===l)v=b;else if(w&&w.length===l+1)return v.slice(0,v.length-1)}else v=String(v);return v},t.removeLeadingZeros=function(e,t){var n;void 0===e&&(e=i);var r=u(e),a=r.LOCALE_NEGATIVE_ZERO,s=r.LOCALE_NEGATIVE_DOUBLE_ZERO,c=r.DEFAULT_NEGATIVE_ZERO,l=r.DEFAULT_NEGATIVE_DOUBLE_ZERO,d=o(e).MINUS_SIGN,f=t.split(".")[1],h=t.split(".")[0];return h!==s&&h!==l||(h=c),h&&h.length!==String(parseInt(h)).length&&h!==d&&h!==a&&h!==c&&(h=String(parseInt(h))),(null===(n=t.match(/\.$/))||void 0===n?void 0:n.length)||f?h+"."+f:h}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(13)),a=r(n(25));e.exports=function(e){var t=e.color,n=void 0===t?"#150F2A":t,r=e.customClassName,o=a("spinner",r);return i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:o,xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM10 17.4737C14.1276 17.4737 17.4737 14.1276 17.4737 10C17.4737 5.8724 14.1276 2.52632 10 2.52632C5.8724 2.52632 2.52632 5.8724 2.52632 10C2.52632 14.1276 5.8724 17.4737 10 17.4737Z",fill:"url(#paint0_linear)"}),i.createElement("defs",null,i.createElement("linearGradient",{id:"paint0_linear",x1:"20",y1:"10.0351",x2:"4.52632",y2:"10.0351",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:n}),i.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"}))))}},function(e,t){function n(e,t){for(var n=0;n=11&&(t.push(2047&n),n>>=11,r-=11)})),r&&t.push(n),t}function c(e){return e.map((function(e){return i[e]}))}function l(e){return c(u(a.genericHash(e)))[0]}function d(e){if(e.length!==a.SEED_BTYES_LENGTH)throw new RangeError("Seed length must be ".concat(a.SEED_BTYES_LENGTH));var t=c(u(e)),n=l(e);return"".concat(t.join(" ")," ").concat(n)}function f(e){var t,n=e.split(" "),a=n.slice(0,24),o=Object(r.a)(a);try{for(o.s();!(t=o.n()).done;){var u=t.value;if(-1===i.indexOf(u))throw new Error("the mnemonic contains a word that is not in the wordlist")}}catch(f){o.e(f)}finally{o.f()}var c=n[n.length-1],d=function(e){var t=[],n=0,r=0;return e.forEach((function(e){for(n|=e<=8;)t.push(255&n),n>>=8,r-=8})),r&&t.push(n),new Uint8Array(t)}(a.map((function(e){return i.indexOf(e)})));if(33!==d.length)throw new Error(s);if(0!==d[d.length-1])throw new Error(s);if(l(d=d.slice(0,d.length-1))===c)return d;throw new Error(s)}function h(e){var t=f(e),n=a.keyPairFromSeed(t);return{addr:o.encodeAddress(n.publicKey),sk:n.secretKey}}function p(e){return d(e.slice(0,a.SEED_BTYES_LENGTH))}function m(e){return f(e)}function g(e){return d(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"makePaymentTxnWithSuggestedParams",(function(){return o})),n.d(t,"makePaymentTxn",(function(){return s})),n.d(t,"makePaymentTxnWithSuggestedParamsFromObject",(function(){return u})),n.d(t,"makeKeyRegistrationTxnWithSuggestedParams",(function(){return c})),n.d(t,"makeKeyRegistrationTxn",(function(){return l})),n.d(t,"makeKeyRegistrationTxnWithSuggestedParamsFromObject",(function(){return d})),n.d(t,"makeAssetCreateTxnWithSuggestedParams",(function(){return f})),n.d(t,"makeAssetCreateTxn",(function(){return h})),n.d(t,"makeAssetCreateTxnWithSuggestedParamsFromObject",(function(){return p})),n.d(t,"makeAssetConfigTxnWithSuggestedParams",(function(){return m})),n.d(t,"makeAssetConfigTxn",(function(){return g})),n.d(t,"makeAssetConfigTxnWithSuggestedParamsFromObject",(function(){return v})),n.d(t,"makeAssetDestroyTxnWithSuggestedParams",(function(){return y})),n.d(t,"makeAssetDestroyTxn",(function(){return b})),n.d(t,"makeAssetDestroyTxnWithSuggestedParamsFromObject",(function(){return w})),n.d(t,"makeAssetFreezeTxnWithSuggestedParams",(function(){return _})),n.d(t,"makeAssetFreezeTxn",(function(){return x})),n.d(t,"makeAssetFreezeTxnWithSuggestedParamsFromObject",(function(){return A})),n.d(t,"makeAssetTransferTxnWithSuggestedParams",(function(){return k})),n.d(t,"makeAssetTransferTxn",(function(){return S})),n.d(t,"makeAssetTransferTxnWithSuggestedParamsFromObject",(function(){return E})),n.d(t,"makeApplicationCreateTxn",(function(){return O})),n.d(t,"makeApplicationCreateTxnFromObject",(function(){return C})),n.d(t,"makeApplicationUpdateTxn",(function(){return T})),n.d(t,"makeApplicationUpdateTxnFromObject",(function(){return M})),n.d(t,"makeApplicationDeleteTxn",(function(){return j})),n.d(t,"makeApplicationDeleteTxnFromObject",(function(){return R})),n.d(t,"makeApplicationOptInTxn",(function(){return I})),n.d(t,"makeApplicationOptInTxnFromObject",(function(){return P})),n.d(t,"makeApplicationCloseOutTxn",(function(){return L})),n.d(t,"makeApplicationCloseOutTxnFromObject",(function(){return D})),n.d(t,"makeApplicationClearStateTxn",(function(){return B})),n.d(t,"makeApplicationClearStateTxnFromObject",(function(){return N})),n.d(t,"makeApplicationNoOpTxn",(function(){return F})),n.d(t,"makeApplicationNoOpTxnFromObject",(function(){return U})),n.d(t,"makeApplicationCallTxnFromObject",(function(){return z}));var r=n(22),i=n(29),a=n(28);function o(e,t,n,i,o,s,u){var c={from:e,to:t,amount:n,closeRemainderTo:i,note:o,suggestedParams:s,type:a.a.pay,reKeyTo:u};return new r.Transaction(c)}function s(e,t,n,r,i,a,s,u,c,l,d){return o(e,t,r,i,u,{genesisHash:c,genesisID:l,firstRound:a,lastRound:s,fee:n},d)}function u(e){return o(e.from,e.to,e.amount,e.closeRemainderTo,e.note,e.suggestedParams,e.rekeyTo)}function c(e,t,n,i,o,s,u,c,l){var d=arguments.length>9&&void 0!==arguments[9]&&arguments[9],f=arguments.length>10&&void 0!==arguments[10]?arguments[10]:void 0,h={from:e,note:t,voteKey:n,selectionKey:i,voteFirst:o,voteLast:s,voteKeyDilution:u,suggestedParams:c,type:a.a.keyreg,reKeyTo:l,nonParticipation:d,stateProofKey:f};return new r.Transaction(h)}function l(e,t,n,r,i,a,o,s,u,l,d,f,h){var p=arguments.length>13&&void 0!==arguments[13]&&arguments[13],m=arguments.length>14&&void 0!==arguments[14]?arguments[14]:void 0,g={genesisHash:a,genesisID:o,firstRound:n,lastRound:r,fee:t};return c(e,i,s,u,l,d,f,g,h,p,m)}function d(e){return c(e.from,e.note,e.voteKey,e.selectionKey,e.voteFirst,e.voteLast,e.voteKeyDilution,e.suggestedParams,e.rekeyTo,e.nonParticipation,e.stateProofKey)}function f(e,t,n,i,o,s,u,c,l,d,f,h,p,m,g){var v={from:e,note:t,suggestedParams:m,assetTotal:n,assetDecimals:i,assetDefaultFrozen:o,assetUnitName:d,assetName:f,assetURL:h,assetMetadataHash:p,assetManager:s,assetReserve:u,assetFreeze:c,assetClawback:l,type:a.a.acfg,reKeyTo:g};return new r.Transaction(v)}function h(e,t,n,r,i,a,o,s,u,c,l,d,h,p,m,g,v,y,b){return f(e,i,s,u,c,l,d,h,p,m,g,v,y,{genesisHash:a,genesisID:o,firstRound:n,lastRound:r,fee:t},b)}function p(e){return f(e.from,e.note,e.total,e.decimals,e.defaultFrozen,e.manager,e.reserve,e.freeze,e.clawback,e.unitName,e.assetName,e.assetURL,e.assetMetadataHash,e.suggestedParams,e.rekeyTo)}function m(e,t,n,i,o,s,u,c){var l=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],d=arguments.length>9?arguments[9]:void 0;if(l&&(void 0===i||void 0===o||void 0===s||void 0===u))throw Error("strict empty address checking was turned on, but at least one empty address was provided");var f={from:e,suggestedParams:c,assetIndex:n,assetManager:i,assetReserve:o,assetFreeze:s,assetClawback:u,type:a.a.acfg,note:t,reKeyTo:d};return new r.Transaction(f)}function g(e,t,n,r,i,a,o,s,u,c,l,d){var f=!(arguments.length>12&&void 0!==arguments[12])||arguments[12],h=arguments.length>13?arguments[13]:void 0,p={genesisHash:a,genesisID:o,firstRound:n,lastRound:r,fee:t};return m(e,i,s,u,c,l,d,p,f,h)}function v(e){return m(e.from,e.note,e.assetIndex,e.manager,e.reserve,e.freeze,e.clawback,e.suggestedParams,e.strictEmptyAddressChecking,e.rekeyTo)}function y(e,t,n,i,o){var s={from:e,suggestedParams:i,assetIndex:n,type:a.a.acfg,note:t,reKeyTo:o};return new r.Transaction(s)}function b(e,t,n,r,i,a,o,s,u){return y(e,i,s,{genesisHash:a,genesisID:o,firstRound:n,lastRound:r,fee:t},u)}function w(e){return y(e.from,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function _(e,t,n,i,o,s,u){var c={from:e,type:a.a.afrz,freezeAccount:i,assetIndex:n,freezeState:o,note:t,suggestedParams:s,reKeyTo:u};return new r.Transaction(c)}function x(e,t,n,r,i,a,o,s,u,c,l){return _(e,i,s,u,c,{genesisHash:a,genesisID:o,firstRound:n,lastRound:r,fee:t},l)}function A(e){return _(e.from,e.note,e.assetIndex,e.freezeTarget,e.freezeState,e.suggestedParams,e.rekeyTo)}function k(e,t,n,i,o,s,u,c,l){var d={type:a.a.axfer,from:e,to:t,amount:o,suggestedParams:c,assetIndex:u,note:s,assetRevocationTarget:i,closeRemainderTo:n,reKeyTo:l};return new r.Transaction(d)}function S(e,t,n,r,i,a,o,s,u,c,l,d,f){return k(e,t,n,r,a,u,d,{genesisHash:c,genesisID:l,firstRound:o,lastRound:s,fee:i},f)}function E(e){return k(e.from,e.to,e.closeRemainderTo,e.revocationTarget,e.amount,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function O(e,t,n,i,o,s,u,c,l,d,f,h,p,m,g,v,y,b){var w={type:a.a.appl,from:e,suggestedParams:t,appIndex:0,appOnComplete:n,appLocalInts:s,appLocalByteSlices:u,appGlobalInts:c,appGlobalByteSlices:l,appApprovalProgram:i,appClearProgram:o,appArgs:d,appAccounts:f,appForeignApps:h,appForeignAssets:p,boxes:b,note:m,lease:g,reKeyTo:v,extraPages:y};return new r.Transaction(w)}function C(e){return O(e.from,e.suggestedParams,e.onComplete,e.approvalProgram,e.clearProgram,e.numLocalInts,e.numLocalByteSlices,e.numGlobalInts,e.numGlobalByteSlices,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.extraPages,e.boxes)}function T(e,t,n,o,s,u,c,l,d,f,h,p,m){var g={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appApprovalProgram:o,appOnComplete:i.a.UpdateApplicationOC,appClearProgram:s,appArgs:u,appAccounts:c,appForeignApps:l,appForeignAssets:d,boxes:m,note:f,lease:h,reKeyTo:p};return new r.Transaction(g)}function M(e){return T(e.from,e.suggestedParams,e.appIndex,e.approvalProgram,e.clearProgram,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function j(e,t,n,o,s,u,c,l,d,f,h){var p={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:i.a.DeleteApplicationOC,appArgs:o,appAccounts:s,appForeignApps:u,appForeignAssets:c,boxes:h,note:l,lease:d,reKeyTo:f};return new r.Transaction(p)}function R(e){return j(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function I(e,t,n,o,s,u,c,l,d,f,h){var p={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:i.a.OptInOC,appArgs:o,appAccounts:s,appForeignApps:u,appForeignAssets:c,boxes:h,note:l,lease:d,reKeyTo:f};return new r.Transaction(p)}function P(e){return I(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function L(e,t,n,o,s,u,c,l,d,f,h){var p={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:i.a.CloseOutOC,appArgs:o,appAccounts:s,appForeignApps:u,appForeignAssets:c,boxes:h,note:l,lease:d,reKeyTo:f};return new r.Transaction(p)}function D(e){return L(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function B(e,t,n,o,s,u,c,l,d,f,h){var p={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:i.a.ClearStateOC,appArgs:o,appAccounts:s,appForeignApps:u,appForeignAssets:c,boxes:h,note:l,lease:d,reKeyTo:f};return new r.Transaction(p)}function N(e){return B(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function F(e,t,n,o,s,u,c,l,d,f,h){var p={type:a.a.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:i.a.NoOpOC,appArgs:o,appAccounts:s,appForeignApps:u,appForeignAssets:c,boxes:h,note:l,lease:d,reKeyTo:f};return new r.Transaction(p)}function U(e){return F(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function z(e){var t={type:a.a.appl,from:e.from,suggestedParams:e.suggestedParams,appIndex:e.appIndex,appOnComplete:e.onComplete,appLocalInts:e.numLocalInts,appLocalByteSlices:e.numLocalByteSlices,appGlobalInts:e.numGlobalInts,appGlobalByteSlices:e.numGlobalByteSlices,appApprovalProgram:e.approvalProgram,appClearProgram:e.clearProgram,appArgs:e.appArgs,appAccounts:e.accounts,appForeignApps:e.foreignApps,appForeignAssets:e.foreignAssets,boxes:e.boxes,note:e.note,lease:e.lease,reKeyTo:e.rekeyTo,extraPages:e.extraPages};return new r.Transaction(t)}n.d(t,"OnApplicationComplete",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n(30);function i(e){return r.c.includes(e)}function a(e){return Object.keys(r.f).includes(e)?r.f[e]:r.f[r.a]}function o(e){var t=Object.values(r.f).find((function(t){return t.code===e}));return t||r.f[r.a]}},function(e,t,n){(function(t,r){var i;!function(){"use strict";var a="object"===typeof window?window:{};!a.HI_BASE32_NO_NODE_JS&&"object"===typeof t&&t.versions&&t.versions.node&&(a=r);var o=!a.HI_BASE32_NO_COMMON_JS&&"object"===typeof e&&e.exports,s=n(82),u="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],d=function(e,t){t.length>10&&(t="..."+t.substr(-10));var n=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-");throw n.position=e,n},f=function(e){if(""===e)return[];if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");for(var t,n,r,i,a,o,s,u,l=[],d=0,f=(e=e.replace(/=/g,"")).length,h=0,p=f>>3<<3;h>>2),l[d++]=255&(n<<6|r<<1|i>>>4),l[d++]=255&(i<<4|a>>>1),l[d++]=255&(a<<7|o<<2|s>>>3),l[d++]=255&(s<<5|u);var m=f-p;return 2===m?(t=c[e.charAt(h++)],n=c[e.charAt(h++)],l[d++]=255&(t<<3|n>>>2)):4===m?(t=c[e.charAt(h++)],n=c[e.charAt(h++)],r=c[e.charAt(h++)],i=c[e.charAt(h++)],l[d++]=255&(t<<3|n>>>2),l[d++]=255&(n<<6|r<<1|i>>>4)):5===m?(t=c[e.charAt(h++)],n=c[e.charAt(h++)],r=c[e.charAt(h++)],i=c[e.charAt(h++)],a=c[e.charAt(h++)],l[d++]=255&(t<<3|n>>>2),l[d++]=255&(n<<6|r<<1|i>>>4),l[d++]=255&(i<<4|a>>>1)):7===m&&(t=c[e.charAt(h++)],n=c[e.charAt(h++)],r=c[e.charAt(h++)],i=c[e.charAt(h++)],a=c[e.charAt(h++)],o=c[e.charAt(h++)],s=c[e.charAt(h++)],l[d++]=255&(t<<3|n>>>2),l[d++]=255&(n<<6|r<<1|i>>>4),l[d++]=255&(i<<4|a>>>1),l[d++]=255&(a<<7|o<<2|s>>>3)),l},h=function(e,t){if(!t)return function(e){for(var t,n,r="",i=e.length,a=0,o=0;a191&&t<=223?(n=31&t,o=1):t<=239?(n=15&t,o=2):t<=247?(n=7&t,o=3):d(a,r);for(var s=0;s191)&&d(a,r),n<<=6,n+=63&t;n>=55296&&n<=57343&&d(a,r),n>1114111&&d(a,r),n<=65535?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296+(n>>10)),r+=String.fromCharCode(56320+(1023&n)))}return r}(f(e));if(""===e)return"";if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var n,r,i,a,o,s,u,l,h="",p=e.indexOf("=");-1===p&&(p=e.length);for(var m=0,g=p>>3<<3;m>>2))+String.fromCharCode(255&(r<<6|i<<1|a>>>4))+String.fromCharCode(255&(a<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))+String.fromCharCode(255&(u<<5|l));var v=p-g;return 2===v?(n=c[e.charAt(m++)],r=c[e.charAt(m++)],h+=String.fromCharCode(255&(n<<3|r>>>2))):4===v?(n=c[e.charAt(m++)],r=c[e.charAt(m++)],i=c[e.charAt(m++)],a=c[e.charAt(m++)],h+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|a>>>4))):5===v?(n=c[e.charAt(m++)],r=c[e.charAt(m++)],i=c[e.charAt(m++)],a=c[e.charAt(m++)],o=c[e.charAt(m++)],h+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|a>>>4))+String.fromCharCode(255&(a<<4|o>>>1))):7===v&&(n=c[e.charAt(m++)],r=c[e.charAt(m++)],i=c[e.charAt(m++)],a=c[e.charAt(m++)],o=c[e.charAt(m++)],s=c[e.charAt(m++)],u=c[e.charAt(m++)],h+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|a>>>4))+String.fromCharCode(255&(a<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))),h},p={encode:function(e,t){var n="string"!==typeof e;return n&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),n?function(e){for(var t,n,r,i,a,o="",s=e.length,c=0,l=5*parseInt(s/5);c>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[31&(i<<3|a>>>5)]+u[31&a];var d=s-l;return 1===d?(t=e[c],o+=u[t>>>3]+u[t<<2&31]+"======"):2===d?(t=e[c++],n=e[c],o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[n<<4&31]+"===="):3===d?(t=e[c++],n=e[c++],r=e[c],o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[r<<1&31]+"==="):4===d&&(t=e[c++],n=e[c++],r=e[c++],i=e[c],o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[i<<3&31]+"="),o}(e):t?function(e){for(var t,n,r,i,a,o="",s=e.length,c=0,l=5*parseInt(s/5);c>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[31&(i<<3|a>>>5)]+u[31&a];var d=s-l;return 1===d?(t=e.charCodeAt(c),o+=u[t>>>3]+u[t<<2&31]+"======"):2===d?(t=e.charCodeAt(c++),n=e.charCodeAt(c),o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[n<<4&31]+"===="):3===d?(t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c),o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[r<<1&31]+"==="):4===d&&(t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c++),i=e.charCodeAt(c),o+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[i<<3&31]+"="),o}(e):function(e){var t,n,r,i,a,o,s,c=!1,d="",f=0,h=0,p=e.length;if(""===e)return d;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],s=h;f>6,l[s++]=128|63&o):o<55296||o>=57344?(l[s++]=224|o>>12,l[s++]=128|o>>6&63,l[s++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++f)),l[s++]=240|o>>18,l[s++]=128|o>>12&63,l[s++]=128|o>>6&63,l[s++]=128|63&o);h=s-5,f===p&&++f,f>p&&s<6&&(c=!0),t=l[0],s>4?(n=l[1],r=l[2],i=l[3],a=l[4],d+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[31&(i<<3|a>>>5)]+u[31&a]):1===s?d+=u[t>>>3]+u[t<<2&31]+"======":2===s?(n=l[1],d+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[n<<4&31]+"===="):3===s?(n=l[1],r=l[2],d+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[r<<1&31]+"==="):(n=l[1],r=l[2],i=l[3],d+=u[t>>>3]+u[31&(t<<2|n>>>6)]+u[n>>>1&31]+u[31&(n<<4|r>>>4)]+u[31&(r<<1|i>>>7)]+u[i>>>2&31]+u[i<<3&31]+"=")}while(!c);return d}(e)},decode:h};h.asBytes=f,o?e.exports=p:(a.base32=p,s&&(void 0===(i=function(){return p}.call(p,n,p,e))||(e.exports=i)))}()}).call(this,n(42),n(41))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(43),i=n(61);var a=n(88);function o(e,t,n){return o=Object(a.a)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&Object(i.a)(a,n.prototype),a},o.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,Object(r.a)(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(a,e)},s(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o}));var r=1e6,i="Microalgos should be positive and less than 2^53 - 1.";function a(e){if(e<0||!Number.isSafeInteger(e))throw new Error(i);return e/r}function o(e){var t=e*r;return Math.round(t)}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Account",(function(){return u})),n.d(t,"AccountParticipation",(function(){return c})),n.d(t,"AccountResponse",(function(){return l})),n.d(t,"AccountStateDelta",(function(){return d})),n.d(t,"AccountsResponse",(function(){return f})),n.d(t,"Application",(function(){return h})),n.d(t,"ApplicationLocalState",(function(){return p})),n.d(t,"ApplicationLocalStatesResponse",(function(){return m})),n.d(t,"ApplicationLogData",(function(){return g})),n.d(t,"ApplicationLogsResponse",(function(){return v})),n.d(t,"ApplicationParams",(function(){return y})),n.d(t,"ApplicationResponse",(function(){return b})),n.d(t,"ApplicationStateSchema",(function(){return w})),n.d(t,"ApplicationsResponse",(function(){return _})),n.d(t,"Asset",(function(){return x})),n.d(t,"AssetBalancesResponse",(function(){return A})),n.d(t,"AssetHolding",(function(){return k})),n.d(t,"AssetHoldingsResponse",(function(){return S})),n.d(t,"AssetParams",(function(){return E})),n.d(t,"AssetResponse",(function(){return O})),n.d(t,"AssetsResponse",(function(){return C})),n.d(t,"Block",(function(){return T})),n.d(t,"BlockRewards",(function(){return M})),n.d(t,"BlockUpgradeState",(function(){return j})),n.d(t,"BlockUpgradeVote",(function(){return R})),n.d(t,"Box",(function(){return I})),n.d(t,"BoxDescriptor",(function(){return P})),n.d(t,"BoxesResponse",(function(){return L})),n.d(t,"ErrorResponse",(function(){return D})),n.d(t,"EvalDelta",(function(){return B})),n.d(t,"EvalDeltaKeyValue",(function(){return N})),n.d(t,"HashFactory",(function(){return F})),n.d(t,"HealthCheck",(function(){return U})),n.d(t,"IndexerStateProofMessage",(function(){return z})),n.d(t,"MerkleArrayProof",(function(){return q})),n.d(t,"MiniAssetHolding",(function(){return H})),n.d(t,"ParticipationUpdates",(function(){return V})),n.d(t,"StateProofFields",(function(){return W})),n.d(t,"StateProofParticipant",(function(){return G})),n.d(t,"StateProofReveal",(function(){return K})),n.d(t,"StateProofSigSlot",(function(){return Y})),n.d(t,"StateProofSignature",(function(){return Z})),n.d(t,"StateProofTracking",(function(){return X})),n.d(t,"StateProofVerifier",(function(){return Q})),n.d(t,"StateSchema",(function(){return J})),n.d(t,"TealKeyValue",(function(){return $})),n.d(t,"TealValue",(function(){return ee})),n.d(t,"Transaction",(function(){return te})),n.d(t,"TransactionApplication",(function(){return ne})),n.d(t,"TransactionAssetConfig",(function(){return re})),n.d(t,"TransactionAssetFreeze",(function(){return ie})),n.d(t,"TransactionAssetTransfer",(function(){return ae})),n.d(t,"TransactionKeyreg",(function(){return oe})),n.d(t,"TransactionPayment",(function(){return se})),n.d(t,"TransactionResponse",(function(){return ue})),n.d(t,"TransactionSignature",(function(){return ce})),n.d(t,"TransactionSignatureLogicsig",(function(){return le})),n.d(t,"TransactionSignatureMultisig",(function(){return de})),n.d(t,"TransactionSignatureMultisigSubsignature",(function(){return fe})),n.d(t,"TransactionStateProof",(function(){return he})),n.d(t,"TransactionsResponse",(function(){return pe}));var r=n(2),i=n(1),a=n(4),o=n(5),s=n(10),u=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.address,o=e.amount,s=e.amountWithoutPendingRewards,u=e.pendingRewards,c=e.rewards,l=e.round,d=e.status,f=e.totalAppsOptedIn,h=e.totalAssetsOptedIn,p=e.totalBoxBytes,m=e.totalBoxes,g=e.totalCreatedApps,v=e.totalCreatedAssets,y=e.appsLocalState,b=e.appsTotalExtraPages,w=e.appsTotalSchema,_=e.assets,x=e.authAddr,A=e.closedAtRound,k=e.createdApps,S=e.createdAssets,E=e.createdAtRound,O=e.deleted,C=e.participation,T=e.rewardBase,M=e.sigType;return Object(r.a)(this,n),(i=t.call(this)).address=a,i.amount=o,i.amountWithoutPendingRewards=s,i.pendingRewards=u,i.rewards=c,i.round=l,i.status=d,i.totalAppsOptedIn=f,i.totalAssetsOptedIn=h,i.totalBoxBytes=p,i.totalBoxes=m,i.totalCreatedApps=g,i.totalCreatedAssets=v,i.appsLocalState=y,i.appsTotalExtraPages=b,i.appsTotalSchema=w,i.assets=_,i.authAddr=x,i.closedAtRound=A,i.createdApps=k,i.createdAssets=S,i.createdAtRound=E,i.deleted=O,i.participation=C,i.rewardBase=T,i.sigType=M,i.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",pendingRewards:"pending-rewards",rewards:"rewards",round:"round",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",closedAtRound:"closed-at-round",createdApps:"created-apps",createdAssets:"created-assets",createdAtRound:"created-at-round",deleted:"deleted",participation:"participation",rewardBase:"reward-base",sigType:"sig-type"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["amount-without-pending-rewards"])throw new Error("Response is missing required field 'amount-without-pending-rewards': ".concat(e));if("undefined"===typeof e["pending-rewards"])throw new Error("Response is missing required field 'pending-rewards': ".concat(e));if("undefined"===typeof e.rewards)throw new Error("Response is missing required field 'rewards': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.status)throw new Error("Response is missing required field 'status': ".concat(e));if("undefined"===typeof e["total-apps-opted-in"])throw new Error("Response is missing required field 'total-apps-opted-in': ".concat(e));if("undefined"===typeof e["total-assets-opted-in"])throw new Error("Response is missing required field 'total-assets-opted-in': ".concat(e));if("undefined"===typeof e["total-box-bytes"])throw new Error("Response is missing required field 'total-box-bytes': ".concat(e));if("undefined"===typeof e["total-boxes"])throw new Error("Response is missing required field 'total-boxes': ".concat(e));if("undefined"===typeof e["total-created-apps"])throw new Error("Response is missing required field 'total-created-apps': ".concat(e));if("undefined"===typeof e["total-created-assets"])throw new Error("Response is missing required field 'total-created-assets': ".concat(e));return new n({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:"undefined"!==typeof e["apps-local-state"]?e["apps-local-state"].map(p.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:"undefined"!==typeof e["apps-total-schema"]?w.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:"undefined"!==typeof e.assets?e.assets.map(k.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],closedAtRound:e["closed-at-round"],createdApps:"undefined"!==typeof e["created-apps"]?e["created-apps"].map(h.from_obj_for_encoding):void 0,createdAssets:"undefined"!==typeof e["created-assets"]?e["created-assets"].map(x.from_obj_for_encoding):void 0,createdAtRound:e["created-at-round"],deleted:e.deleted,participation:"undefined"!==typeof e.participation?c.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"]})}}]),n}(s.a),c=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.selectionParticipationKey,o=t.voteFirstValid,u=t.voteKeyDilution,c=t.voteLastValid,l=t.voteParticipationKey,d=t.stateProofKey;return Object(r.a)(this,s),(i=n.call(this)).selectionParticipationKey="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.voteFirstValid=o,i.voteKeyDilution=u,i.voteLastValid=c,i.voteParticipationKey="string"===typeof l?new Uint8Array(e.from(l,"base64")):l,i.stateProofKey="string"===typeof d?new Uint8Array(e.from(d,"base64")):d,i.attribute_map={selectionParticipationKey:"selection-participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["selection-participation-key"])throw new Error("Response is missing required field 'selection-participation-key': ".concat(e));if("undefined"===typeof e["vote-first-valid"])throw new Error("Response is missing required field 'vote-first-valid': ".concat(e));if("undefined"===typeof e["vote-key-dilution"])throw new Error("Response is missing required field 'vote-key-dilution': ".concat(e));if("undefined"===typeof e["vote-last-valid"])throw new Error("Response is missing required field 'vote-last-valid': ".concat(e));if("undefined"===typeof e["vote-participation-key"])throw new Error("Response is missing required field 'vote-participation-key': ".concat(e));return new s({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}]),s}(s.a),l=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.account,o=e.currentRound;return Object(r.a)(this,n),(i=t.call(this)).account=a,i.currentRound=o,i.attribute_map={account:"account",currentRound:"current-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.account)throw new Error("Response is missing required field 'account': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({account:u.from_obj_for_encoding(e.account),currentRound:e["current-round"]})}}]),n}(s.a),d=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.address,o=e.delta;return Object(r.a)(this,n),(i=t.call(this)).address=a,i.delta=o,i.attribute_map={address:"address",delta:"delta"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(!Array.isArray(e.delta))throw new Error("Response is missing required array field 'delta': ".concat(e));return new n({address:e.address,delta:e.delta.map(N.from_obj_for_encoding)})}}]),n}(s.a),f=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.accounts,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).accounts=a,i.currentRound=o,i.nextToken=s,i.attribute_map={accounts:"accounts",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.accounts))throw new Error("Response is missing required array field 'accounts': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({accounts:e.accounts.map(u.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),h=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.id,o=e.params,s=e.createdAtRound,u=e.deleted,c=e.deletedAtRound;return Object(r.a)(this,n),(i=t.call(this)).id=a,i.params=o,i.createdAtRound=s,i.deleted=u,i.deletedAtRound=c,i.attribute_map={id:"id",params:"params",createdAtRound:"created-at-round",deleted:"deleted",deletedAtRound:"deleted-at-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({id:e.id,params:y.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,deletedAtRound:e["deleted-at-round"]})}}]),n}(s.a),p=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.id,o=e.schema,s=e.closedOutAtRound,u=e.deleted,c=e.keyValue,l=e.optedInAtRound;return Object(r.a)(this,n),(i=t.call(this)).id=a,i.schema=o,i.closedOutAtRound=s,i.deleted=u,i.keyValue=c,i.optedInAtRound=l,i.attribute_map={id:"id",schema:"schema",closedOutAtRound:"closed-out-at-round",deleted:"deleted",keyValue:"key-value",optedInAtRound:"opted-in-at-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.schema)throw new Error("Response is missing required field 'schema': ".concat(e));return new n({id:e.id,schema:w.from_obj_for_encoding(e.schema),closedOutAtRound:e["closed-out-at-round"],deleted:e.deleted,keyValue:"undefined"!==typeof e["key-value"]?e["key-value"].map($.from_obj_for_encoding):void 0,optedInAtRound:e["opted-in-at-round"]})}}]),n}(s.a),m=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.appsLocalStates,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).appsLocalStates=a,i.currentRound=o,i.nextToken=s,i.attribute_map={appsLocalStates:"apps-local-states",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e["apps-local-states"]))throw new Error("Response is missing required array field 'apps-local-states': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({appsLocalStates:e["apps-local-states"].map(p.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),g=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.logs,o=e.txid;return Object(r.a)(this,n),(i=t.call(this)).logs=a,i.txid=o,i.attribute_map={logs:"logs",txid:"txid"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.logs))throw new Error("Response is missing required array field 'logs': ".concat(e));if("undefined"===typeof e.txid)throw new Error("Response is missing required field 'txid': ".concat(e));return new n({logs:e.logs,txid:e.txid})}}]),n}(s.a),v=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.applicationId,o=e.currentRound,s=e.logData,u=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).applicationId=a,i.currentRound=o,i.logData=s,i.nextToken=u,i.attribute_map={applicationId:"application-id",currentRound:"current-round",logData:"log-data",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applicationId:e["application-id"],currentRound:e["current-round"],logData:"undefined"!==typeof e["log-data"]?e["log-data"].map(g.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}]),n}(s.a),y=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.approvalProgram,o=t.clearStateProgram,u=t.creator,c=t.extraProgramPages,l=t.globalState,d=t.globalStateSchema,f=t.localStateSchema;return Object(r.a)(this,s),(i=n.call(this)).approvalProgram="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.clearStateProgram="string"===typeof o?new Uint8Array(e.from(o,"base64")):o,i.creator=u,i.extraProgramPages=c,i.globalState=l,i.globalStateSchema=d,i.localStateSchema=f,i.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["approval-program"])throw new Error("Response is missing required field 'approval-program': ".concat(e));if("undefined"===typeof e["clear-state-program"])throw new Error("Response is missing required field 'clear-state-program': ".concat(e));return new s({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:"undefined"!==typeof e["global-state"]?e["global-state"].map($.from_obj_for_encoding):void 0,globalStateSchema:"undefined"!==typeof e["global-state-schema"]?w.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:"undefined"!==typeof e["local-state-schema"]?w.from_obj_for_encoding(e["local-state-schema"]):void 0})}}]),s}(s.a),b=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.currentRound,o=e.application;return Object(r.a)(this,n),(i=t.call(this)).currentRound=a,i.application=o,i.attribute_map={currentRound:"current-round",application:"application"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({currentRound:e["current-round"],application:"undefined"!==typeof e.application?h.from_obj_for_encoding(e.application):void 0})}}]),n}(s.a),w=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.numByteSlice,o=e.numUint;return Object(r.a)(this,n),(i=t.call(this)).numByteSlice=a,i.numUint=o,i.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if("undefined"===typeof e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(s.a),_=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.applications,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).applications=a,i.currentRound=o,i.nextToken=s,i.attribute_map={applications:"applications",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.applications))throw new Error("Response is missing required array field 'applications': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applications:e.applications.map(h.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),x=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.index,o=e.params,s=e.createdAtRound,u=e.deleted,c=e.destroyedAtRound;return Object(r.a)(this,n),(i=t.call(this)).index=a,i.params=o,i.createdAtRound=s,i.deleted=u,i.destroyedAtRound=c,i.attribute_map={index:"index",params:"params",createdAtRound:"created-at-round",deleted:"deleted",destroyedAtRound:"destroyed-at-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.index)throw new Error("Response is missing required field 'index': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({index:e.index,params:E.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,destroyedAtRound:e["destroyed-at-round"]})}}]),n}(s.a),A=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.balances,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).balances=a,i.currentRound=o,i.nextToken=s,i.attribute_map={balances:"balances",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.balances))throw new Error("Response is missing required array field 'balances': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({balances:e.balances.map(H.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),k=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.amount,o=e.assetId,s=e.isFrozen,u=e.deleted,c=e.optedInAtRound,l=e.optedOutAtRound;return Object(r.a)(this,n),(i=t.call(this)).amount=a,i.assetId=o,i.isFrozen=s,i.deleted=u,i.optedInAtRound=c,i.optedOutAtRound=l,i.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(s.a),S=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.assets,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).assets=a,i.currentRound=o,i.nextToken=s,i.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(k.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),E=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.creator,o=t.decimals,u=t.total,c=t.clawback,l=t.defaultFrozen,d=t.freeze,f=t.manager,h=t.metadataHash,p=t.name,m=t.nameB64,g=t.reserve,v=t.unitName,y=t.unitNameB64,b=t.url,w=t.urlB64;return Object(r.a)(this,s),(i=n.call(this)).creator=a,i.decimals=o,i.total=u,i.clawback=c,i.defaultFrozen=l,i.freeze=d,i.manager=f,i.metadataHash="string"===typeof h?new Uint8Array(e.from(h,"base64")):h,i.name=p,i.nameB64="string"===typeof m?new Uint8Array(e.from(m,"base64")):m,i.reserve=g,i.unitName=v,i.unitNameB64="string"===typeof y?new Uint8Array(e.from(y,"base64")):y,i.url=b,i.urlB64="string"===typeof w?new Uint8Array(e.from(w,"base64")):w,i.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));if("undefined"===typeof e.decimals)throw new Error("Response is missing required field 'decimals': ".concat(e));if("undefined"===typeof e.total)throw new Error("Response is missing required field 'total': ".concat(e));return new s({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}]),s}(s.a),O=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.asset,o=e.currentRound;return Object(r.a)(this,n),(i=t.call(this)).asset=a,i.currentRound=o,i.attribute_map={asset:"asset",currentRound:"current-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.asset)throw new Error("Response is missing required field 'asset': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({asset:x.from_obj_for_encoding(e.asset),currentRound:e["current-round"]})}}]),n}(s.a),C=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.assets,o=e.currentRound,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).assets=a,i.currentRound=o,i.nextToken=s,i.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(x.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(s.a),T=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.genesisHash,o=t.genesisId,u=t.previousBlockHash,c=t.round,l=t.seed,d=t.timestamp,f=t.transactionsRoot,h=t.transactionsRootSha256,p=t.participationUpdates,m=t.rewards,g=t.stateProofTracking,v=t.transactions,y=t.txnCounter,b=t.upgradeState,w=t.upgradeVote;return Object(r.a)(this,s),(i=n.call(this)).genesisHash="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.genesisId=o,i.previousBlockHash="string"===typeof u?new Uint8Array(e.from(u,"base64")):u,i.round=c,i.seed="string"===typeof l?new Uint8Array(e.from(l,"base64")):l,i.timestamp=d,i.transactionsRoot="string"===typeof f?new Uint8Array(e.from(f,"base64")):f,i.transactionsRootSha256="string"===typeof h?new Uint8Array(e.from(h,"base64")):h,i.participationUpdates=p,i.rewards=m,i.stateProofTracking=g,i.transactions=v,i.txnCounter=y,i.upgradeState=b,i.upgradeVote=w,i.attribute_map={genesisHash:"genesis-hash",genesisId:"genesis-id",previousBlockHash:"previous-block-hash",round:"round",seed:"seed",timestamp:"timestamp",transactionsRoot:"transactions-root",transactionsRootSha256:"transactions-root-sha256",participationUpdates:"participation-updates",rewards:"rewards",stateProofTracking:"state-proof-tracking",transactions:"transactions",txnCounter:"txn-counter",upgradeState:"upgrade-state",upgradeVote:"upgrade-vote"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["genesis-hash"])throw new Error("Response is missing required field 'genesis-hash': ".concat(e));if("undefined"===typeof e["genesis-id"])throw new Error("Response is missing required field 'genesis-id': ".concat(e));if("undefined"===typeof e["previous-block-hash"])throw new Error("Response is missing required field 'previous-block-hash': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.seed)throw new Error("Response is missing required field 'seed': ".concat(e));if("undefined"===typeof e.timestamp)throw new Error("Response is missing required field 'timestamp': ".concat(e));if("undefined"===typeof e["transactions-root"])throw new Error("Response is missing required field 'transactions-root': ".concat(e));if("undefined"===typeof e["transactions-root-sha256"])throw new Error("Response is missing required field 'transactions-root-sha256': ".concat(e));return new s({genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],previousBlockHash:e["previous-block-hash"],round:e.round,seed:e.seed,timestamp:e.timestamp,transactionsRoot:e["transactions-root"],transactionsRootSha256:e["transactions-root-sha256"],participationUpdates:"undefined"!==typeof e["participation-updates"]?V.from_obj_for_encoding(e["participation-updates"]):void 0,rewards:"undefined"!==typeof e.rewards?M.from_obj_for_encoding(e.rewards):void 0,stateProofTracking:"undefined"!==typeof e["state-proof-tracking"]?e["state-proof-tracking"].map(X.from_obj_for_encoding):void 0,transactions:"undefined"!==typeof e.transactions?e.transactions.map(te.from_obj_for_encoding):void 0,txnCounter:e["txn-counter"],upgradeState:"undefined"!==typeof e["upgrade-state"]?j.from_obj_for_encoding(e["upgrade-state"]):void 0,upgradeVote:"undefined"!==typeof e["upgrade-vote"]?R.from_obj_for_encoding(e["upgrade-vote"]):void 0})}}]),s}(s.a),M=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.feeSink,o=e.rewardsCalculationRound,s=e.rewardsLevel,u=e.rewardsPool,c=e.rewardsRate,l=e.rewardsResidue;return Object(r.a)(this,n),(i=t.call(this)).feeSink=a,i.rewardsCalculationRound=o,i.rewardsLevel=s,i.rewardsPool=u,i.rewardsRate=c,i.rewardsResidue=l,i.attribute_map={feeSink:"fee-sink",rewardsCalculationRound:"rewards-calculation-round",rewardsLevel:"rewards-level",rewardsPool:"rewards-pool",rewardsRate:"rewards-rate",rewardsResidue:"rewards-residue"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["fee-sink"])throw new Error("Response is missing required field 'fee-sink': ".concat(e));if("undefined"===typeof e["rewards-calculation-round"])throw new Error("Response is missing required field 'rewards-calculation-round': ".concat(e));if("undefined"===typeof e["rewards-level"])throw new Error("Response is missing required field 'rewards-level': ".concat(e));if("undefined"===typeof e["rewards-pool"])throw new Error("Response is missing required field 'rewards-pool': ".concat(e));if("undefined"===typeof e["rewards-rate"])throw new Error("Response is missing required field 'rewards-rate': ".concat(e));if("undefined"===typeof e["rewards-residue"])throw new Error("Response is missing required field 'rewards-residue': ".concat(e));return new n({feeSink:e["fee-sink"],rewardsCalculationRound:e["rewards-calculation-round"],rewardsLevel:e["rewards-level"],rewardsPool:e["rewards-pool"],rewardsRate:e["rewards-rate"],rewardsResidue:e["rewards-residue"]})}}]),n}(s.a),j=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.currentProtocol,o=e.nextProtocol,s=e.nextProtocolApprovals,u=e.nextProtocolSwitchOn,c=e.nextProtocolVoteBefore;return Object(r.a)(this,n),(i=t.call(this)).currentProtocol=a,i.nextProtocol=o,i.nextProtocolApprovals=s,i.nextProtocolSwitchOn=u,i.nextProtocolVoteBefore=c,i.attribute_map={currentProtocol:"current-protocol",nextProtocol:"next-protocol",nextProtocolApprovals:"next-protocol-approvals",nextProtocolSwitchOn:"next-protocol-switch-on",nextProtocolVoteBefore:"next-protocol-vote-before"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["current-protocol"])throw new Error("Response is missing required field 'current-protocol': ".concat(e));return new n({currentProtocol:e["current-protocol"],nextProtocol:e["next-protocol"],nextProtocolApprovals:e["next-protocol-approvals"],nextProtocolSwitchOn:e["next-protocol-switch-on"],nextProtocolVoteBefore:e["next-protocol-vote-before"]})}}]),n}(s.a),R=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.upgradeApprove,o=e.upgradeDelay,s=e.upgradePropose;return Object(r.a)(this,n),(i=t.call(this)).upgradeApprove=a,i.upgradeDelay=o,i.upgradePropose=s,i.attribute_map={upgradeApprove:"upgrade-approve",upgradeDelay:"upgrade-delay",upgradePropose:"upgrade-propose"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({upgradeApprove:e["upgrade-approve"],upgradeDelay:e["upgrade-delay"],upgradePropose:e["upgrade-propose"]})}}]),n}(s.a),I=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.name,o=t.value;return Object(r.a)(this,s),(i=n.call(this)).name="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.value="string"===typeof o?new Uint8Array(e.from(o,"base64")):o,i.attribute_map={name:"name",value:"value"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new s({name:e.name,value:e.value})}}]),s}(s.a),P=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.name;return Object(r.a)(this,s),(i=n.call(this)).name="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.attribute_map={name:"name"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new s({name:e.name})}}]),s}(s.a),L=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.applicationId,o=e.boxes,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).applicationId=a,i.boxes=o,i.nextToken=s,i.attribute_map={applicationId:"application-id",boxes:"boxes",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(!Array.isArray(e.boxes))throw new Error("Response is missing required array field 'boxes': ".concat(e));return new n({applicationId:e["application-id"],boxes:e.boxes.map(P.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(s.a),D=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.message,o=e.data;return Object(r.a)(this,n),(i=t.call(this)).message=a,i.data=o,i.attribute_map={message:"message",data:"data"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.message)throw new Error("Response is missing required field 'message': ".concat(e));return new n({message:e.message,data:e.data})}}]),n}(s.a),B=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.action,o=e.bytes,s=e.uint;return Object(r.a)(this,n),(i=t.call(this)).action=a,i.bytes=o,i.uint=s,i.attribute_map={action:"action",bytes:"bytes",uint:"uint"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.action)throw new Error("Response is missing required field 'action': ".concat(e));return new n({action:e.action,bytes:e.bytes,uint:e.uint})}}]),n}(s.a),N=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.key,o=e.value;return Object(r.a)(this,n),(i=t.call(this)).key=a,i.value=o,i.attribute_map={key:"key",value:"value"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:B.from_obj_for_encoding(e.value)})}}]),n}(s.a),F=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.hashType;return Object(r.a)(this,n),(i=t.call(this)).hashType=a,i.attribute_map={hashType:"hash-type"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashType:e["hash-type"]})}}]),n}(s.a),U=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.dbAvailable,o=e.isMigrating,s=e.message,u=e.round,c=e.version,l=e.data,d=e.errors;return Object(r.a)(this,n),(i=t.call(this)).dbAvailable=a,i.isMigrating=o,i.message=s,i.round=u,i.version=c,i.data=l,i.errors=d,i.attribute_map={dbAvailable:"db-available",isMigrating:"is-migrating",message:"message",round:"round",version:"version",data:"data",errors:"errors"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["db-available"])throw new Error("Response is missing required field 'db-available': ".concat(e));if("undefined"===typeof e["is-migrating"])throw new Error("Response is missing required field 'is-migrating': ".concat(e));if("undefined"===typeof e.message)throw new Error("Response is missing required field 'message': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.version)throw new Error("Response is missing required field 'version': ".concat(e));return new n({dbAvailable:e["db-available"],isMigrating:e["is-migrating"],message:e.message,round:e.round,version:e.version,data:e.data,errors:e.errors})}}]),n}(s.a),z=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.blockHeadersCommitment,o=t.firstAttestedRound,u=t.latestAttestedRound,c=t.lnProvenWeight,l=t.votersCommitment;return Object(r.a)(this,s),(i=n.call(this)).blockHeadersCommitment="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.firstAttestedRound=o,i.latestAttestedRound=u,i.lnProvenWeight=c,i.votersCommitment="string"===typeof l?new Uint8Array(e.from(l,"base64")):l,i.attribute_map={blockHeadersCommitment:"block-headers-commitment",firstAttestedRound:"first-attested-round",latestAttestedRound:"latest-attested-round",lnProvenWeight:"ln-proven-weight",votersCommitment:"voters-commitment"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({blockHeadersCommitment:e["block-headers-commitment"],firstAttestedRound:e["first-attested-round"],latestAttestedRound:e["latest-attested-round"],lnProvenWeight:e["ln-proven-weight"],votersCommitment:e["voters-commitment"]})}}]),s}(s.a),q=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.hashFactory,o=e.path,s=e.treeDepth;return Object(r.a)(this,n),(i=t.call(this)).hashFactory=a,i.path=o,i.treeDepth=s,i.attribute_map={hashFactory:"hash-factory",path:"path",treeDepth:"tree-depth"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashFactory:"undefined"!==typeof e["hash-factory"]?F.from_obj_for_encoding(e["hash-factory"]):void 0,path:e.path,treeDepth:e["tree-depth"]})}}]),n}(s.a),H=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.address,o=e.amount,s=e.isFrozen,u=e.deleted,c=e.optedInAtRound,l=e.optedOutAtRound;return Object(r.a)(this,n),(i=t.call(this)).address=a,i.amount=o,i.isFrozen=s,i.deleted=u,i.optedInAtRound=c,i.optedOutAtRound=l,i.attribute_map={address:"address",amount:"amount",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({address:e.address,amount:e.amount,isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(s.a),V=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.expiredParticipationAccounts;return Object(r.a)(this,n),(i=t.call(this)).expiredParticipationAccounts=a,i.attribute_map={expiredParticipationAccounts:"expired-participation-accounts"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({expiredParticipationAccounts:e["expired-participation-accounts"]})}}]),n}(s.a),W=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.partProofs,o=t.positionsToReveal,u=t.reveals,c=t.saltVersion,l=t.sigCommit,d=t.sigProofs,f=t.signedWeight;return Object(r.a)(this,s),(i=n.call(this)).partProofs=a,i.positionsToReveal=o,i.reveals=u,i.saltVersion=c,i.sigCommit="string"===typeof l?new Uint8Array(e.from(l,"base64")):l,i.sigProofs=d,i.signedWeight=f,i.attribute_map={partProofs:"part-proofs",positionsToReveal:"positions-to-reveal",reveals:"reveals",saltVersion:"salt-version",sigCommit:"sig-commit",sigProofs:"sig-proofs",signedWeight:"signed-weight"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({partProofs:"undefined"!==typeof e["part-proofs"]?q.from_obj_for_encoding(e["part-proofs"]):void 0,positionsToReveal:e["positions-to-reveal"],reveals:"undefined"!==typeof e.reveals?e.reveals.map(K.from_obj_for_encoding):void 0,saltVersion:e["salt-version"],sigCommit:e["sig-commit"],sigProofs:"undefined"!==typeof e["sig-proofs"]?q.from_obj_for_encoding(e["sig-proofs"]):void 0,signedWeight:e["signed-weight"]})}}]),s}(s.a),G=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.verifier,o=e.weight;return Object(r.a)(this,n),(i=t.call(this)).verifier=a,i.weight=o,i.attribute_map={verifier:"verifier",weight:"weight"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({verifier:"undefined"!==typeof e.verifier?Q.from_obj_for_encoding(e.verifier):void 0,weight:e.weight})}}]),n}(s.a),K=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.participant,o=e.position,s=e.sigSlot;return Object(r.a)(this,n),(i=t.call(this)).participant=a,i.position=o,i.sigSlot=s,i.attribute_map={participant:"participant",position:"position",sigSlot:"sig-slot"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({participant:"undefined"!==typeof e.participant?G.from_obj_for_encoding(e.participant):void 0,position:e.position,sigSlot:"undefined"!==typeof e["sig-slot"]?Y.from_obj_for_encoding(e["sig-slot"]):void 0})}}]),n}(s.a),Y=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.lowerSigWeight,o=e.signature;return Object(r.a)(this,n),(i=t.call(this)).lowerSigWeight=a,i.signature=o,i.attribute_map={lowerSigWeight:"lower-sig-weight",signature:"signature"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({lowerSigWeight:e["lower-sig-weight"],signature:"undefined"!==typeof e.signature?Z.from_obj_for_encoding(e.signature):void 0})}}]),n}(s.a),Z=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.falconSignature,o=t.merkleArrayIndex,u=t.proof,c=t.verifyingKey;return Object(r.a)(this,s),(i=n.call(this)).falconSignature="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.merkleArrayIndex=o,i.proof=u,i.verifyingKey="string"===typeof c?new Uint8Array(e.from(c,"base64")):c,i.attribute_map={falconSignature:"falcon-signature",merkleArrayIndex:"merkle-array-index",proof:"proof",verifyingKey:"verifying-key"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({falconSignature:e["falcon-signature"],merkleArrayIndex:e["merkle-array-index"],proof:"undefined"!==typeof e.proof?q.from_obj_for_encoding(e.proof):void 0,verifyingKey:e["verifying-key"]})}}]),s}(s.a),X=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.nextRound,o=t.onlineTotalWeight,u=t.type,c=t.votersCommitment;return Object(r.a)(this,s),(i=n.call(this)).nextRound=a,i.onlineTotalWeight=o,i.type=u,i.votersCommitment="string"===typeof c?new Uint8Array(e.from(c,"base64")):c,i.attribute_map={nextRound:"next-round",onlineTotalWeight:"online-total-weight",type:"type",votersCommitment:"voters-commitment"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({nextRound:e["next-round"],onlineTotalWeight:e["online-total-weight"],type:e.type,votersCommitment:e["voters-commitment"]})}}]),s}(s.a),Q=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.commitment,o=t.keyLifetime;return Object(r.a)(this,s),(i=n.call(this)).commitment="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.keyLifetime=o,i.attribute_map={commitment:"commitment",keyLifetime:"key-lifetime"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({commitment:e.commitment,keyLifetime:e["key-lifetime"]})}}]),s}(s.a),J=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.numByteSlice,o=e.numUint;return Object(r.a)(this,n),(i=t.call(this)).numByteSlice=a,i.numUint=o,i.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if("undefined"===typeof e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(s.a),$=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.key,o=e.value;return Object(r.a)(this,n),(i=t.call(this)).key=a,i.value=o,i.attribute_map={key:"key",value:"value"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:ee.from_obj_for_encoding(e.value)})}}]),n}(s.a),ee=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.bytes,o=e.type,s=e.uint;return Object(r.a)(this,n),(i=t.call(this)).bytes=a,i.type=o,i.uint=s,i.attribute_map={bytes:"bytes",type:"type",uint:"uint"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.bytes)throw new Error("Response is missing required field 'bytes': ".concat(e));if("undefined"===typeof e.type)throw new Error("Response is missing required field 'type': ".concat(e));if("undefined"===typeof e.uint)throw new Error("Response is missing required field 'uint': ".concat(e));return new n({bytes:e.bytes,type:e.type,uint:e.uint})}}]),n}(s.a),te=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.fee,o=t.firstValid,u=t.lastValid,c=t.sender,l=t.applicationTransaction,d=t.assetConfigTransaction,f=t.assetFreezeTransaction,h=t.assetTransferTransaction,p=t.authAddr,m=t.closeRewards,g=t.closingAmount,v=t.confirmedRound,y=t.createdApplicationIndex,b=t.createdAssetIndex,w=t.genesisHash,_=t.genesisId,x=t.globalStateDelta,A=t.group,k=t.id,S=t.innerTxns,E=t.intraRoundOffset,O=t.keyregTransaction,C=t.lease,T=t.localStateDelta,M=t.logs,j=t.note,R=t.paymentTransaction,I=t.receiverRewards,P=t.rekeyTo,L=t.roundTime,D=t.senderRewards,B=t.signature,N=t.stateProofTransaction,F=t.txType;return Object(r.a)(this,s),(i=n.call(this)).fee=a,i.firstValid=o,i.lastValid=u,i.sender=c,i.applicationTransaction=l,i.assetConfigTransaction=d,i.assetFreezeTransaction=f,i.assetTransferTransaction=h,i.authAddr=p,i.closeRewards=m,i.closingAmount=g,i.confirmedRound=v,i.createdApplicationIndex=y,i.createdAssetIndex=b,i.genesisHash="string"===typeof w?new Uint8Array(e.from(w,"base64")):w,i.genesisId=_,i.globalStateDelta=x,i.group="string"===typeof A?new Uint8Array(e.from(A,"base64")):A,i.id=k,i.innerTxns=S,i.intraRoundOffset=E,i.keyregTransaction=O,i.lease="string"===typeof C?new Uint8Array(e.from(C,"base64")):C,i.localStateDelta=T,i.logs=M,i.note="string"===typeof j?new Uint8Array(e.from(j,"base64")):j,i.paymentTransaction=R,i.receiverRewards=I,i.rekeyTo=P,i.roundTime=L,i.senderRewards=D,i.signature=B,i.stateProofTransaction=N,i.txType=F,i.attribute_map={fee:"fee",firstValid:"first-valid",lastValid:"last-valid",sender:"sender",applicationTransaction:"application-transaction",assetConfigTransaction:"asset-config-transaction",assetFreezeTransaction:"asset-freeze-transaction",assetTransferTransaction:"asset-transfer-transaction",authAddr:"auth-addr",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",createdApplicationIndex:"created-application-index",createdAssetIndex:"created-asset-index",genesisHash:"genesis-hash",genesisId:"genesis-id",globalStateDelta:"global-state-delta",group:"group",id:"id",innerTxns:"inner-txns",intraRoundOffset:"intra-round-offset",keyregTransaction:"keyreg-transaction",lease:"lease",localStateDelta:"local-state-delta",logs:"logs",note:"note",paymentTransaction:"payment-transaction",receiverRewards:"receiver-rewards",rekeyTo:"rekey-to",roundTime:"round-time",senderRewards:"sender-rewards",signature:"signature",stateProofTransaction:"state-proof-transaction",txType:"tx-type"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.fee)throw new Error("Response is missing required field 'fee': ".concat(e));if("undefined"===typeof e["first-valid"])throw new Error("Response is missing required field 'first-valid': ".concat(e));if("undefined"===typeof e["last-valid"])throw new Error("Response is missing required field 'last-valid': ".concat(e));if("undefined"===typeof e.sender)throw new Error("Response is missing required field 'sender': ".concat(e));return new s({fee:e.fee,firstValid:e["first-valid"],lastValid:e["last-valid"],sender:e.sender,applicationTransaction:"undefined"!==typeof e["application-transaction"]?ne.from_obj_for_encoding(e["application-transaction"]):void 0,assetConfigTransaction:"undefined"!==typeof e["asset-config-transaction"]?re.from_obj_for_encoding(e["asset-config-transaction"]):void 0,assetFreezeTransaction:"undefined"!==typeof e["asset-freeze-transaction"]?ie.from_obj_for_encoding(e["asset-freeze-transaction"]):void 0,assetTransferTransaction:"undefined"!==typeof e["asset-transfer-transaction"]?ae.from_obj_for_encoding(e["asset-transfer-transaction"]):void 0,authAddr:e["auth-addr"],closeRewards:e["close-rewards"],closingAmount:e["closing-amount"],confirmedRound:e["confirmed-round"],createdApplicationIndex:e["created-application-index"],createdAssetIndex:e["created-asset-index"],genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],globalStateDelta:"undefined"!==typeof e["global-state-delta"]?e["global-state-delta"].map(N.from_obj_for_encoding):void 0,group:e.group,id:e.id,innerTxns:"undefined"!==typeof e["inner-txns"]?e["inner-txns"].map(s.from_obj_for_encoding):void 0,intraRoundOffset:e["intra-round-offset"],keyregTransaction:"undefined"!==typeof e["keyreg-transaction"]?oe.from_obj_for_encoding(e["keyreg-transaction"]):void 0,lease:e.lease,localStateDelta:"undefined"!==typeof e["local-state-delta"]?e["local-state-delta"].map(d.from_obj_for_encoding):void 0,logs:e.logs,note:e.note,paymentTransaction:"undefined"!==typeof e["payment-transaction"]?se.from_obj_for_encoding(e["payment-transaction"]):void 0,receiverRewards:e["receiver-rewards"],rekeyTo:e["rekey-to"],roundTime:e["round-time"],senderRewards:e["sender-rewards"],signature:"undefined"!==typeof e.signature?ce.from_obj_for_encoding(e.signature):void 0,stateProofTransaction:"undefined"!==typeof e["state-proof-transaction"]?he.from_obj_for_encoding(e["state-proof-transaction"]):void 0,txType:e["tx-type"]})}}]),s}(s.a),ne=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.applicationId,o=t.accounts,u=t.applicationArgs,c=t.approvalProgram,l=t.clearStateProgram,d=t.extraProgramPages,f=t.foreignApps,h=t.foreignAssets,p=t.globalStateSchema,m=t.localStateSchema,g=t.onCompletion;return Object(r.a)(this,s),(i=n.call(this)).applicationId=a,i.accounts=o,i.applicationArgs=u,i.approvalProgram="string"===typeof c?new Uint8Array(e.from(c,"base64")):c,i.clearStateProgram="string"===typeof l?new Uint8Array(e.from(l,"base64")):l,i.extraProgramPages=d,i.foreignApps=f,i.foreignAssets=h,i.globalStateSchema=p,i.localStateSchema=m,i.onCompletion=g,i.attribute_map={applicationId:"application-id",accounts:"accounts",applicationArgs:"application-args",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",extraProgramPages:"extra-program-pages",foreignApps:"foreign-apps",foreignAssets:"foreign-assets",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema",onCompletion:"on-completion"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));return new s({applicationId:e["application-id"],accounts:e.accounts,applicationArgs:e["application-args"],approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],extraProgramPages:e["extra-program-pages"],foreignApps:e["foreign-apps"],foreignAssets:e["foreign-assets"],globalStateSchema:"undefined"!==typeof e["global-state-schema"]?J.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:"undefined"!==typeof e["local-state-schema"]?J.from_obj_for_encoding(e["local-state-schema"]):void 0,onCompletion:e["on-completion"]})}}]),s}(s.a),re=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.assetId,o=e.params;return Object(r.a)(this,n),(i=t.call(this)).assetId=a,i.params=o,i.attribute_map={assetId:"asset-id",params:"params"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({assetId:e["asset-id"],params:"undefined"!==typeof e.params?E.from_obj_for_encoding(e.params):void 0})}}]),n}(s.a),ie=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.address,o=e.assetId,s=e.newFreezeStatus;return Object(r.a)(this,n),(i=t.call(this)).address=a,i.assetId=o,i.newFreezeStatus=s,i.attribute_map={address:"address",assetId:"asset-id",newFreezeStatus:"new-freeze-status"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e["new-freeze-status"])throw new Error("Response is missing required field 'new-freeze-status': ".concat(e));return new n({address:e.address,assetId:e["asset-id"],newFreezeStatus:e["new-freeze-status"]})}}]),n}(s.a),ae=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.amount,o=e.assetId,s=e.receiver,u=e.closeAmount,c=e.closeTo,l=e.sender;return Object(r.a)(this,n),(i=t.call(this)).amount=a,i.assetId=o,i.receiver=s,i.closeAmount=u,i.closeTo=c,i.sender=l,i.attribute_map={amount:"amount",assetId:"asset-id",receiver:"receiver",closeAmount:"close-amount",closeTo:"close-to",sender:"sender"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],receiver:e.receiver,closeAmount:e["close-amount"],closeTo:e["close-to"],sender:e.sender})}}]),n}(s.a),oe=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.nonParticipation,o=t.selectionParticipationKey,u=t.stateProofKey,c=t.voteFirstValid,l=t.voteKeyDilution,d=t.voteLastValid,f=t.voteParticipationKey;return Object(r.a)(this,s),(i=n.call(this)).nonParticipation=a,i.selectionParticipationKey="string"===typeof o?new Uint8Array(e.from(o,"base64")):o,i.stateProofKey="string"===typeof u?new Uint8Array(e.from(u,"base64")):u,i.voteFirstValid=c,i.voteKeyDilution=l,i.voteLastValid=d,i.voteParticipationKey="string"===typeof f?new Uint8Array(e.from(f,"base64")):f,i.attribute_map={nonParticipation:"non-participation",selectionParticipationKey:"selection-participation-key",stateProofKey:"state-proof-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({nonParticipation:e["non-participation"],selectionParticipationKey:e["selection-participation-key"],stateProofKey:e["state-proof-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"]})}}]),s}(s.a),se=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.amount,o=e.receiver,s=e.closeAmount,u=e.closeRemainderTo;return Object(r.a)(this,n),(i=t.call(this)).amount=a,i.receiver=o,i.closeAmount=s,i.closeRemainderTo=u,i.attribute_map={amount:"amount",receiver:"receiver",closeAmount:"close-amount",closeRemainderTo:"close-remainder-to"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,receiver:e.receiver,closeAmount:e["close-amount"],closeRemainderTo:e["close-remainder-to"]})}}]),n}(s.a),ue=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.currentRound,o=e.transaction;return Object(r.a)(this,n),(i=t.call(this)).currentRound=a,i.transaction=o,i.attribute_map={currentRound:"current-round",transaction:"transaction"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if("undefined"===typeof e.transaction)throw new Error("Response is missing required field 'transaction': ".concat(e));return new n({currentRound:e["current-round"],transaction:te.from_obj_for_encoding(e.transaction)})}}]),n}(s.a),ce=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.logicsig,o=t.multisig,u=t.sig;return Object(r.a)(this,s),(i=n.call(this)).logicsig=a,i.multisig=o,i.sig="string"===typeof u?new Uint8Array(e.from(u,"base64")):u,i.attribute_map={logicsig:"logicsig",multisig:"multisig",sig:"sig"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({logicsig:"undefined"!==typeof e.logicsig?le.from_obj_for_encoding(e.logicsig):void 0,multisig:"undefined"!==typeof e.multisig?de.from_obj_for_encoding(e.multisig):void 0,sig:e.sig})}}]),s}(s.a),le=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.logic,o=t.args,u=t.multisigSignature,c=t.signature;return Object(r.a)(this,s),(i=n.call(this)).logic="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.args=o,i.multisigSignature=u,i.signature="string"===typeof c?new Uint8Array(e.from(c,"base64")):c,i.attribute_map={logic:"logic",args:"args",multisigSignature:"multisig-signature",signature:"signature"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e.logic)throw new Error("Response is missing required field 'logic': ".concat(e));return new s({logic:e.logic,args:e.args,multisigSignature:"undefined"!==typeof e["multisig-signature"]?de.from_obj_for_encoding(e["multisig-signature"]):void 0,signature:e.signature})}}]),s}(s.a),de=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.subsignature,o=e.threshold,s=e.version;return Object(r.a)(this,n),(i=t.call(this)).subsignature=a,i.threshold=o,i.version=s,i.attribute_map={subsignature:"subsignature",threshold:"threshold",version:"version"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({subsignature:"undefined"!==typeof e.subsignature?e.subsignature.map(fe.from_obj_for_encoding):void 0,threshold:e.threshold,version:e.version})}}]),n}(s.a),fe=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t){var i,a=t.publicKey,o=t.signature;return Object(r.a)(this,s),(i=n.call(this)).publicKey="string"===typeof a?new Uint8Array(e.from(a,"base64")):a,i.signature="string"===typeof o?new Uint8Array(e.from(o,"base64")):o,i.attribute_map={publicKey:"public-key",signature:"signature"},i}return Object(i.a)(s,null,[{key:"from_obj_for_encoding",value:function(e){return new s({publicKey:e["public-key"],signature:e.signature})}}]),s}(s.a),he=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.message,o=e.stateProof,s=e.stateProofType;return Object(r.a)(this,n),(i=t.call(this)).message=a,i.stateProof=o,i.stateProofType=s,i.attribute_map={message:"message",stateProof:"state-proof",stateProofType:"state-proof-type"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({message:"undefined"!==typeof e.message?z.from_obj_for_encoding(e.message):void 0,stateProof:"undefined"!==typeof e["state-proof"]?W.from_obj_for_encoding(e["state-proof"]):void 0,stateProofType:e["state-proof-type"]})}}]),n}(s.a),pe=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i,a=e.currentRound,o=e.transactions,s=e.nextToken;return Object(r.a)(this,n),(i=t.call(this)).currentRound=a,i.transactions=o,i.nextToken=s,i.attribute_map={currentRound:"current-round",transactions:"transactions",nextToken:"next-token"},i}return Object(i.a)(n,null,[{key:"from_obj_for_encoding",value:function(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(!Array.isArray(e.transactions))throw new Error("Response is missing required array field 'transactions': ".concat(e));return new n({currentRound:e["current-round"],transactions:e.transactions.map(te.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(s.a)}.call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(76);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),i=n(1),a=n(90),o=n(47);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={};return n[t]=e,n}function u(e){return"function"===typeof e.get}var c=function(){function e(t,n,i,c){var l,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(Object(r.a)(this,e),u(n))?this.c=new a.default(n):(l="string"===typeof n?s(n,t):n,this.c=new a.default(l,i,c,d));this.intDecoding=o.a.DEFAULT}return Object(i.a)(e,[{key:"setIntEncoding",value:function(e){this.intDecoding=e}},{key:"getIntEncoding",value:function(){return this.intDecoding}}]),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n(2),i=n(1),a=n(4),o=n(5);function s(t){return"string"===typeof t?t:e.from(t).toString("base64")}var u=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=s(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(n(14).a)}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"m",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"o",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return w})),n.d(t,"i",(function(){return _})),n.d(t,"a",(function(){return x})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return S})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return O})),n.d(t,"g",(function(){return C}));var r=n(21),i=n(4),a=n(5),o=n(27),s=n(2),u=n(1),c=n(9),l=n(38),d=n(24),f=Math.pow(2,16)-1,h=32,p=1,m=1,g=2,v=/^([a-z\d[\](),]+)\[(0|[1-9][\d]*)]$/,y=/^ufixed([1-9][\d]*)x([1-9][\d]*)$/,b=function(){function e(){Object(s.a)(this,e)}return Object(u.a)(e,null,[{key:"from",value:function(t){if(t.endsWith("[]")){var n=e.from(t.slice(0,t.length-2));return new O(n)}if(t.endsWith("]")){var r=t.match(v);if(3!==r.length)throw new Error("malformed static array string: ".concat(t));var i=r[2],a=parseInt(i,10);if(a>f)throw new Error("array length exceeds limit ".concat(f));var s=e.from(r[1]);return new E(s,a)}if(t.startsWith("uint")){var u=t.slice(4,t.length);if(l=u,!Object(o.a)(l).every((function(e){return"0123456789".includes(e)})))throw new Error("malformed uint string: ".concat(u));var c=parseInt(u,10);if(c>f)throw new Error("malformed uint string: ".concat(c));return new w(c)}var l;if("byte"===t)return new k;if(t.startsWith("ufixed")){var d=t.match(y);if(3!==d.length)throw new Error("malformed ufixed type: ".concat(t));var h=parseInt(d[1],10),p=parseInt(d[2],10);return new _(h,p)}if("bool"===t)return new A;if("address"===t)return new x;if("string"===t)return new S;if(t.length>=2&&"("===t[0]&&")"===t[t.length-1]){for(var m=C.parseTupleContent(t.slice(1,t.length-1)),g=[],b=0;b512)throw new Error("unsupported uint type bitSize: ".concat(e));return r.bitSize=e,r}return Object(u.a)(n,[{key:"toString",value:function(){return"uint".concat(this.bitSize)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!==typeof e&&"number"!==typeof e)throw new Error("Cannot encode value as uint".concat(this.bitSize,": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e512)throw new Error("unsupported ufixed type bitSize: ".concat(e));if(r>160||r<1)throw new Error("unsupported ufixed type precision: ".concat(r));return i.bitSize=e,i.precision=r,i}return Object(u.a)(n,[{key:"toString",value:function(){return"ufixed".concat(this.bitSize,"x").concat(this.precision)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize&&this.precision===e.precision}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!==typeof e&&"number"!==typeof e)throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e255)throw new Error("".concat(e," cannot be encoded into a byte"));return new Uint8Array([e])}},{key:"decode",value:function(e){if(1!==e.byteLength)throw new Error("byte string must be 1 byte long");return e[0]}}]),n}(b),S=function(t){Object(i.a)(r,t);var n=Object(a.a)(r);function r(){return Object(s.a)(this,r),n.apply(this,arguments)}return Object(u.a)(r,[{key:"toString",value:function(){return"string"}},{key:"equals",value:function(e){return e instanceof r}},{key:"isDynamic",value:function(){return!0}},{key:"byteLen",value:function(){throw new Error("".concat(this.toString()," is a dynamic type"))}},{key:"encode",value:function(t){if("string"!==typeof t&&!(t instanceof Uint8Array))throw new Error("Cannot encode value as string: ".concat(t));var n=e.from(t),r=Object(l.a)(n.length,g),i=new Uint8Array(n.length+g);return i.set(r),i.set(n,g),i}},{key:"decode",value:function(t){if(t.length=f)throw new Error("tuple type child type number larger than maximum uint16 error");return t.childTypes=e,t}return Object(u.a)(o,[{key:"toString",value:function(){for(var e=[],t=0;tf)throw new Error("length of tuple array should not exceed a uint16");for(var n=this.childTypes,r=[],i=[],a=new Map,o=0;of)throw new Error("byte length of ".concat(_," should not exceed a uint16"));r[w]=Object(l.a)(_,g)}b+=i[w].length}return d.concatArrays.apply(void 0,r.concat(i))}},{key:"decode",value:function(t){for(var n=this.childTypes,r=[],i=[],a=0,o=0,s=e.from(t);a0&&(r[r.length-1].right=c,c>h;(t[o]&p)>0?i.push(new Uint8Array([128])):i.push(new Uint8Array([0]))}a+=f,o+=1}else{var m=u.byteLen();i.push(t.slice(o,o+m)),o+=m}if(a!==n.length-1&&o>=t.length)throw new Error("input byte not enough to decode");a+=1}if(r.length>0&&(r[r.length-1].right=t.length,o=t.length),oy.right)throw new Error("dynamic segment should display a [l, r] space with l <= r");if(v!==r.length-1&&y.right!==r[v+1].left)throw new Error("dynamic segment should be consecutive")}for(var b=0,w=0;w8)throw new Error("value list passed in should be no greater than length 8");for(var n=0;n0&&-1===n))break;r+=1}}return r}}).call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(86);function i(e,t){if(null==e)return{};var n,i,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";var r=n(134);n.d(t,"randomBytes",(function(){return r.a}));var i=n(135);n.d(t,"aesCbcDecrypt",(function(){return i.a})),n.d(t,"aesCbcEncrypt",(function(){return i.b}));var a=n(136);n.d(t,"hmacSha256Sign",(function(){return a.a}));n(141),n(74),n(26)},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(13),a=r(i),o=r(n(25)),s=n(83);function u(e){var t=e.listItemKeyGenerator,n=e.listItemTestId,r=e.item;return t?t(r,n):r&&"object"==typeof r&&r.id?r.id:s.v4()}e.exports=function(e){var t,n=e.items,r=e.children,s=e.customClassName,c=e.testid,l=e.role,d=e.listItemKeyGenerator,f=e.placeholderProps,h=e.emptyStateProps,p=e.type,m=void 0===p?"unordered":p,g=o("list",s);switch(m){case"ordered":t="ol";break;case"description":t="dl";break;default:t="ul"}return a.createElement(t,{className:g,role:l,"data-testid":c},n.map((function(e,t){var n=c+".item-"+t;return a.createElement(i.Fragment,{key:u({listItemKeyGenerator:d,listItemTestId:n,item:e})},r(e,n,t))})),(null==f?void 0:f.shouldDisplayPlaceholder)&&f.placeholder,!(null==f?void 0:f.shouldDisplayPlaceholder)&&(null==h?void 0:h.shouldDisplayEmptyState)&&h.emptyState)}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(13)),a=r(n(25)),o=n(33),s=n(50),u=i.forwardRef((function(e,t){var n=e.testid,r=e.type,u=void 0===r?"button":r,c=e.onClick,l=e.children,d=e.customSpinner,f=e.customClassName,h=e.shouldPreventDefault,p=void 0===h||h,m=e.shouldStopPropagation,g=void 0===m||m,v=e.shouldFocus,y=e.shouldDisplaySpinner,b=e.isDisabled,w=o.__rest(e,["testid","type","onClick","children","customSpinner","customClassName","shouldPreventDefault","shouldStopPropagation","shouldFocus","shouldDisplaySpinner","isDisabled"]),_=Boolean(b||y),x=a("button",f,{"button--is-inactive":_,"button--is-pending":y}),A=d||i.createElement("div",{className:"button__spinner-container"},i.createElement(s,{customClassName:"button__spinner","aria-label":"Button spinner visible. Button inactivated."}));return i.createElement("button",o.__assign({ref:t,"data-testid":n,className:x,type:u,autoFocus:v,onClick:function(e){c&&(p&&e.preventDefault(),g&&e.stopPropagation(),_||c(e))},disabled:_},w),l,y&&A)}));e.exports=u},function(e,t,n){"use strict";n.r(t),n.d(t,"parseUvarint",(function(){return s})),n.d(t,"readProgram",(function(){return f})),n.d(t,"checkProgram",(function(){return h})),n.d(t,"checkIntConstBlock",(function(){return p})),n.d(t,"checkByteConstBlock",(function(){return m})),n.d(t,"checkPushIntOp",(function(){return g})),n.d(t,"checkPushByteOp",(function(){return v})),n.d(t,"langspecEvalMaxVersion",(function(){return y})),n.d(t,"langspecLogicSigVersion",(function(){return b}));var r,i=n(21),a=n(18),o=n(80);function s(e){for(var t=0,n=0,r=0;r9||9===r&&i>1?[0,-(r+1)]:[t|i<o.EvalMaxVersion)throw new Error("unsupported version");var m,g=0,v=e.length,y=Object(i.a)(t);try{for(y.s();!(m=y.n()).done;){v+=m.value.length}}catch(F){y.e(F)}finally{y.f()}if(v>1e3)throw new Error("program too long");if(!r){r={};var b,w=Object(i.a)(o.Ops);try{for(w.s();!(b=w.n()).done;){var _=b.value;r[_.Opcode]=_}}catch(F){w.e(F)}finally{w.f()}}for(var x=p,A=[],k=[];x2e4)throw new Error("program too costly for version < 4. consider using v4.");return[A,k,!0]}function h(e,t){var n=f(e,t);return Object(a.a)(n,3)[2]}function p(e,t){var n=u(e,t);return Object(a.a)(n,1)[0]}function m(e,t){var n=c(e,t);return Object(a.a)(n,1)[0]}function g(e,t){var n=l(e,t);return Object(a.a)(n,1)[0]}function v(e,t){var n=d(e,t);return Object(a.a)(n,1)[0]}var y=o.EvalMaxVersion,b=o.LogicSigVersion},function(e,t,n){(function(t){var r=n(9);function i(e,t){for(var n=0;t>128;)e.push(255&t|128),t>>=7,n+=1;return e.push(255&t),n+1}var a={INT:1,ADDRESS:2,BASE64:3};e.exports={inject:function(e,n,o,s){if(n.length!==o.length||n.length!==s.length)throw new Error("Lengths do not match");var u=e;function c(e,n,r,i){var a=e.slice(0,r),o=e.slice(r+i,e.length),s=[a,t.from(n),o];return t.concat(s)}for(var l=0;lBigInt("0xffffffffffffffff"))throw new Error("Input is not a 64-bit unsigned integer");var n=e.allocUnsafe(8);return n.writeBigUInt64BE(BigInt(t)),new Uint8Array(n)}function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"safe";if("safe"!==n&&"mixed"!==n&&"bigint"!==n)throw new Error("Unknown decodingMode option: ".concat(n));if(0===t.byteLength||t.byteLength>8)throw new Error("Data has unacceptable length. Expected length is between 1 and 8, got ".concat(t.byteLength));var r=e.allocUnsafe(8-t.byteLength);r.fill(0);var i=e.concat([r,e.from(t)]),a=i.readBigUInt64BE(),o=a>Number.MAX_SAFE_INTEGER;if("safe"===n){if(o)throw new Error("Integer exceeds maximum safe integer: ".concat(a.toString(),'. Try decoding with "mixed" or "safe" decodingMode.'));return Number(a)}return"mixed"!==n||o?a:Number(a)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))}).call(this,n(19).Buffer)},function(e,t,n){"use strict";var r=n(137);n.o(r,"isConstantTime")&&n.d(t,"isConstantTime",(function(){return r.isConstantTime}));n(138);var i=n(139);n.o(i,"isConstantTime")&&n.d(t,"isConstantTime",(function(){return i.isConstantTime}));var a=n(140);n.d(t,"isConstantTime",(function(){return a.a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(21),i=n(32),a=n(36);function o(e){return function(t,n){var i,a=[],o=Object(r.a)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;a.push(t[s].signTxn(e.sk))}}catch(u){o.e(u)}finally{o.f()}return Promise.resolve(a)}}function s(e){return function(t,n){var a,o=[],s=Object(r.a)(n);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Object(i.signLogicSigTransactionObject)(t[u],e).blob;o.push(c)}}catch(l){s.e(l)}finally{s.f()}return Promise.resolve(o)}}function u(e,t){return function(n,i){var o,s=[],u=Object(r.a)(i);try{for(u.s();!(o=u.n()).done;){var c,l=n[o.value],d=[],f=Object(r.a)(t);try{for(f.s();!(c=f.n()).done;){var h=c.value,p=Object(a.f)(l,e,h).blob;d.push(p)}}catch(m){f.e(m)}finally{f.f()}s.push(Object(a.d)(d))}}catch(m){u.e(m)}finally{u.f()}return Promise.resolve(s)}}function c(e){return"object"===typeof e&&2===Object.keys(e).length&&"object"===typeof e.txn&&"function"===typeof e.signer}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function u(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("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 i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","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],d=[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,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;l+=(o=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:c[f-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r("undefined"!==typeof o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,u="le"===t,c=new e(a),l=this.clone();if(u){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),c[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],v=8191&g,y=g>>>13,b=0|o[3],w=8191&b,_=b>>>13,x=0|o[4],A=8191&x,k=x>>>13,S=0|o[5],E=8191&S,O=S>>>13,C=0|o[6],T=8191&C,M=C>>>13,j=0|o[7],R=8191&j,I=j>>>13,P=0|o[8],L=8191&P,D=P>>>13,B=0|o[9],N=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],K=8191&G,Y=G>>>13,Z=0|s[3],X=8191&Z,Q=Z>>>13,J=0|s[4],$=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,z)|0))<<13)|0;c=((a=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,a=Math.imul(m,q);var ve=(c+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,V)|0))<<13)|0;c=((a=a+Math.imul(f,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,q))+Math.imul(y,z)|0,a=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,W)|0;var ye=(c+(r=r+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,K)|0))<<13)|0;c=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,a=Math.imul(_,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,V)|0,a=a+Math.imul(y,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(f,X)|0))<<13)|0;c=((a=a+Math.imul(f,Q)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(k,z)|0,a=Math.imul(k,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,W)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,K)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,Q)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,q))+Math.imul(O,z)|0,a=Math.imul(O,q),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(k,V)|0,a=a+Math.imul(k,W)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,Q)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var _e=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(M,z)|0,a=Math.imul(M,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,Q)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(f,ae)|0))<<13)|0;c=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(I,z)|0,a=Math.imul(I,q),r=r+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,V)|0,a=a+Math.imul(M,W)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,Q)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var Ae=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,ue)|0))<<13)|0;c=((a=a+Math.imul(f,ce)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(D,z)|0,a=Math.imul(D,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(I,V)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,Q)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,a=a+Math.imul(m,ce)|0;var ke=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(F,z)|0,a=Math.imul(F,q),r=r+Math.imul(L,V)|0,i=(i=i+Math.imul(L,W)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Y)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(M,X)|0,a=a+Math.imul(M,Q)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,fe)|0;var Se=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((a=a+Math.imul(f,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,V),i=(i=Math.imul(N,W))+Math.imul(F,V)|0,a=Math.imul(F,W),r=r+Math.imul(L,K)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(D,K)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,Q)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(O,ne)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,a=a+Math.imul(_,ce)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,a=a+Math.imul(y,fe)|0;var Ee=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,K),i=(i=Math.imul(N,Y))+Math.imul(F,K)|0,a=Math.imul(F,Y),r=r+Math.imul(L,X)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,Q)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,r=r+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(k,ue)|0,a=a+Math.imul(k,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,de)|0,a=a+Math.imul(_,fe)|0;var Oe=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(N,X),i=(i=Math.imul(N,Q))+Math.imul(F,X)|0,a=Math.imul(F,Q),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(O,ue)|0,a=a+Math.imul(O,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(k,de)|0,a=a+Math.imul(k,fe)|0;var Ce=(c+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,$),i=(i=Math.imul(N,ee))+Math.imul(F,$)|0,a=Math.imul(F,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(M,ue)|0,a=a+Math.imul(M,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,fe)|0;var Te=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((a=a+Math.imul(k,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(N,ne),i=(i=Math.imul(N,re))+Math.imul(F,ne)|0,a=Math.imul(F,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(I,ue)|0,a=a+Math.imul(I,ce)|0,r=r+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,a=a+Math.imul(M,fe)|0;var Me=(c+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((a=a+Math.imul(O,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,ae),i=(i=Math.imul(N,oe))+Math.imul(F,ae)|0,a=Math.imul(F,oe),r=r+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,ce)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,fe)|0;var je=(c+(r=r+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((a=a+Math.imul(M,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(N,ue),i=(i=Math.imul(N,ce))+Math.imul(F,ue)|0,a=Math.imul(F,ce),r=r+Math.imul(L,de)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(D,de)|0,a=a+Math.imul(D,fe)|0;var Re=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((a=a+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(N,de),i=(i=Math.imul(N,fe))+Math.imul(F,de)|0,a=Math.imul(F,fe);var Ie=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(D,pe)|0))<<13)|0;c=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Pe=(c+(r=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,me))+Math.imul(F,pe)|0))<<13)|0;return c=((a=Math.imul(F,me))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Ae,u[8]=ke,u[9]=Se,u[10]=Ee,u[11]=Oe,u[12]=Ce,u[13]=Te,u[14]=Me,u[15]=je,u[16]=Re,u[17]=Ie,u[18]=Pe,0!==c&&(u[19]=c,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),a.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):p(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-a|d>>>a,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=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},a.prototype.isubn=function(e){if(r("number"===typeof e),r(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)-(u/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0===(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(u)):(n.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:n.iushln(c)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new x(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(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 v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}v.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},i(A,x),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(209)(e))},function(e){e.exports=JSON.parse('{"EvalMaxVersion":6,"LogicSigVersion":5,"Ops":[{"Opcode":0,"Name":"err","Cost":1,"Size":1,"Doc":"Fail immediately.","Groups":["Flow Control"]},{"Opcode":1,"Name":"sha256","Args":"B","Returns":"B","Cost":35,"Size":1,"Doc":"SHA256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":2,"Name":"keccak256","Args":"B","Returns":"B","Cost":130,"Size":1,"Doc":"Keccak256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":3,"Name":"sha512_256","Args":"B","Returns":"B","Cost":45,"Size":1,"Doc":"SHA512_256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":4,"Name":"ed25519verify","Args":"BBB","Returns":"U","Cost":1900,"Size":1,"Doc":"for (data A, signature B, pubkey C) verify the signature of (\\"ProgData\\" || program_hash || data) against the pubkey => {0 or 1}","DocExtra":"The 32 byte public key is the last element on the stack, preceded by the 64 byte signature at the second-to-last element on the stack, preceded by the data which was signed at the third-to-last element on the stack.","Groups":["Arithmetic"]},{"Opcode":5,"Name":"ecdsa_verify","Args":"BBBBB","Returns":"U","Cost":1700,"Size":2,"Doc":"for (data A, signature B, C and pubkey D, E) verify the signature of the data against the pubkey => {0 or 1}","DocExtra":"The 32 byte Y-component of a public key is the last element on the stack, preceded by X-component of a pubkey, preceded by S and R components of a signature, preceded by the data that is fifth element on the stack. All values are big-endian encoded. The signed data must be 32 bytes long, and signatures in lower-S form are only accepted.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":6,"Name":"ecdsa_pk_decompress","Args":"B","Returns":"BB","Cost":650,"Size":2,"Doc":"decompress pubkey A into components X, Y","DocExtra":"The 33 byte public key in a compressed form to be decompressed into X and Y (top) components. All values are big-endian encoded.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":7,"Name":"ecdsa_pk_recover","Args":"BUBB","Returns":"BB","Cost":2000,"Size":2,"Doc":"for (data A, recovery id B, signature C, D) recover a public key","DocExtra":"S (top) and R elements of a signature, recovery id and data (bottom) are expected on the stack and used to deriver a public key. All values are big-endian encoded. The signed data must be 32 bytes long.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":8,"Name":"+","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A plus B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `addw`.","Groups":["Arithmetic"]},{"Opcode":9,"Name":"-","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A minus B. Fail if B > A.","Groups":["Arithmetic"]},{"Opcode":10,"Name":"/","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by B (truncated division). Fail if B == 0.","DocExtra":"`divmodw` is available to divide the two-element values produced by `mulw` and `addw`.","Groups":["Arithmetic"]},{"Opcode":11,"Name":"*","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `mulw`.","Groups":["Arithmetic"]},{"Opcode":12,"Name":"<","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":13,"Name":">","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":14,"Name":"<=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":15,"Name":">=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":16,"Name":"&&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero and B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":17,"Name":"||","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero or B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":18,"Name":"==","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":19,"Name":"!=","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is not equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":20,"Name":"!","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"A == 0 yields 1; else 0","Groups":["Arithmetic"]},{"Opcode":21,"Name":"len","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"yields length of byte value A","Groups":["Arithmetic"]},{"Opcode":22,"Name":"itob","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"converts uint64 A to big endian bytes","Groups":["Arithmetic"]},{"Opcode":23,"Name":"btoi","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"converts bytes A as big endian to uint64","DocExtra":"`btoi` fails if the input is longer than 8 bytes.","Groups":["Arithmetic"]},{"Opcode":24,"Name":"%","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A modulo B. Fail if B == 0.","Groups":["Arithmetic"]},{"Opcode":25,"Name":"|","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-or B","Groups":["Arithmetic"]},{"Opcode":26,"Name":"&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-and B","Groups":["Arithmetic"]},{"Opcode":27,"Name":"^","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-xor B","Groups":["Arithmetic"]},{"Opcode":28,"Name":"~","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"bitwise invert value A","Groups":["Arithmetic"]},{"Opcode":29,"Name":"mulw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A times B as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low","Groups":["Arithmetic"]},{"Opcode":30,"Name":"addw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A plus B as a 128-bit result. X is the carry-bit, Y is the low-order 64 bits.","Groups":["Arithmetic"]},{"Opcode":31,"Name":"divmodw","Args":"UUUU","Returns":"UUUU","Cost":20,"Size":1,"Doc":"W,X = (A,B / C,D); Y,Z = (A,B modulo C,D)","DocExtra":"The notation J,K indicates that two uint64 values J and K are interpreted as a uint128 value, with J as the high uint64 and K the low.","Groups":["Arithmetic"]},{"Opcode":32,"Name":"intcblock","Cost":1,"Size":0,"Doc":"prepare block of uint64 constants for use by intc","DocExtra":"`intcblock` loads following program bytes into an array of integer constants in the evaluator. These integer constants can be referred to by `intc` and `intc_*` which will push the value onto the stack. Subsequent calls to `intcblock` reset and replace the integer constants available to the script.","ImmediateNote":"{varuint length} [{varuint value}, ...]","Groups":["Loading Values"]},{"Opcode":33,"Name":"intc","Returns":"U","Cost":1,"Size":2,"Doc":"Ith constant from intcblock","ImmediateNote":"{uint8 int constant index}","Groups":["Loading Values"]},{"Opcode":34,"Name":"intc_0","Returns":"U","Cost":1,"Size":1,"Doc":"constant 0 from intcblock","Groups":["Loading Values"]},{"Opcode":35,"Name":"intc_1","Returns":"U","Cost":1,"Size":1,"Doc":"constant 1 from intcblock","Groups":["Loading Values"]},{"Opcode":36,"Name":"intc_2","Returns":"U","Cost":1,"Size":1,"Doc":"constant 2 from intcblock","Groups":["Loading Values"]},{"Opcode":37,"Name":"intc_3","Returns":"U","Cost":1,"Size":1,"Doc":"constant 3 from intcblock","Groups":["Loading Values"]},{"Opcode":38,"Name":"bytecblock","Cost":1,"Size":0,"Doc":"prepare block of byte-array constants for use by bytec","DocExtra":"`bytecblock` loads the following program bytes into an array of byte-array constants in the evaluator. These constants can be referred to by `bytec` and `bytec_*` which will push the value onto the stack. Subsequent calls to `bytecblock` reset and replace the bytes constants available to the script.","ImmediateNote":"{varuint length} [({varuint value length} bytes), ...]","Groups":["Loading Values"]},{"Opcode":39,"Name":"bytec","Returns":"B","Cost":1,"Size":2,"Doc":"Ith constant from bytecblock","ImmediateNote":"{uint8 byte constant index}","Groups":["Loading Values"]},{"Opcode":40,"Name":"bytec_0","Returns":"B","Cost":1,"Size":1,"Doc":"constant 0 from bytecblock","Groups":["Loading Values"]},{"Opcode":41,"Name":"bytec_1","Returns":"B","Cost":1,"Size":1,"Doc":"constant 1 from bytecblock","Groups":["Loading Values"]},{"Opcode":42,"Name":"bytec_2","Returns":"B","Cost":1,"Size":1,"Doc":"constant 2 from bytecblock","Groups":["Loading Values"]},{"Opcode":43,"Name":"bytec_3","Returns":"B","Cost":1,"Size":1,"Doc":"constant 3 from bytecblock","Groups":["Loading Values"]},{"Opcode":44,"Name":"arg","Returns":"B","Cost":1,"Size":2,"Doc":"Nth LogicSig argument","ImmediateNote":"{uint8 arg index N}","Groups":["Loading Values"]},{"Opcode":45,"Name":"arg_0","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 0","Groups":["Loading Values"]},{"Opcode":46,"Name":"arg_1","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 1","Groups":["Loading Values"]},{"Opcode":47,"Name":"arg_2","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 2","Groups":["Loading Values"]},{"Opcode":48,"Name":"arg_3","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 3","Groups":["Loading Values"]},{"Opcode":49,"Name":"txn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of current transaction","DocExtra":"FirstValidTime causes the program to fail. The field is reserved for future use.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":50,"Name":"global","Returns":".","Cost":1,"Size":2,"Doc":"global field F","ImmediateNote":"{uint8 global field index}","Groups":["Loading Values"]},{"Opcode":51,"Name":"gtxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If this transaction is _i_ in the group, `gtxn i field` is equivalent to `txn field`.","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":52,"Name":"load","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value. All scratch spaces are 0 at program start.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":53,"Name":"store","Args":".","Cost":1,"Size":2,"Doc":"store A to the Ith scratch space","ImmediateNote":"{uint8 position in scratch space to store to}","Groups":["Loading Values"]},{"Opcode":54,"Name":"txna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":55,"Name":"gtxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":56,"Name":"gtxns","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Ath transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If top of stack is _i_, `gtxns field` is equivalent to `gtxn _i_ field`. gtxns exists so that _i_ can be calculated, often based on the index of the current transaction.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":57,"Name":"gtxnsa","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":58,"Name":"gload","Returns":".","Cost":1,"Size":3,"Doc":"Ith scratch space value of the Tth transaction in the current group","DocExtra":"`gload` fails unless the requested transaction is an ApplicationCall and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index} {uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":59,"Name":"gloads","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value of the Ath transaction in the current group","DocExtra":"`gloads` fails unless the requested transaction is an ApplicationCall and A < GroupIndex.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":60,"Name":"gaid","Returns":"U","Cost":1,"Size":2,"Doc":"ID of the asset or application created in the Tth transaction of the current group","DocExtra":"`gaid` fails unless the requested transaction created an asset or application and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index}","Groups":["Loading Values"]},{"Opcode":61,"Name":"gaids","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"ID of the asset or application created in the Ath transaction of the current group","DocExtra":"`gaids` fails unless the requested transaction created an asset or application and A < GroupIndex.","Groups":["Loading Values"]},{"Opcode":62,"Name":"loads","Args":"U","Returns":".","Cost":1,"Size":1,"Doc":"Ath scratch space value. All scratch spaces are 0 at program start.","Groups":["Loading Values"]},{"Opcode":63,"Name":"stores","Args":"U.","Cost":1,"Size":1,"Doc":"store B to the Ath scratch space","Groups":["Loading Values"]},{"Opcode":64,"Name":"bnz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is not zero","DocExtra":"The `bnz` instruction opcode 0x40 is followed by two immediate data bytes which are a high byte first and low byte second which together form a 16 bit offset which the instruction may branch to. For a bnz instruction at `pc`, if the last element of the stack is not zero then branch to instruction at `pc + 3 + N`, else proceed to next instruction at `pc + 3`. Branch targets must be aligned instructions. (e.g. Branching to the second byte of a 2 byte op will be rejected.) Starting at v4, the offset is treated as a signed 16 bit integer allowing for backward branches and looping. In prior version (v1 to v3), branch offsets are limited to forward branches only, 0-0x7fff.\\n\\nAt v2 it became allowed to branch to the end of the program exactly after the last instruction: bnz to byte N (with 0-indexing) was illegal for a TEAL program with N bytes before v2, and is legal after it. This change eliminates the need for a last instruction of no-op as a branch target at the end. (Branching beyond the end--in other words, to a byte larger than N--is still illegal and will cause the program to fail.)","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":65,"Name":"bz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is zero","DocExtra":"See `bnz` for details on how branches work. `bz` inverts the behavior of `bnz`.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":66,"Name":"b","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET","DocExtra":"See `bnz` for details on how branches work. `b` always jumps to the offset.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":67,"Name":"return","Args":"U","Cost":1,"Size":1,"Doc":"use A as success value; end","Groups":["Flow Control"]},{"Opcode":68,"Name":"assert","Args":"U","Cost":1,"Size":1,"Doc":"immediately fail unless A is a non-zero number","Groups":["Flow Control"]},{"Opcode":72,"Name":"pop","Args":".","Cost":1,"Size":1,"Doc":"discard A","Groups":["Flow Control"]},{"Opcode":73,"Name":"dup","Args":".","Returns":"..","Cost":1,"Size":1,"Doc":"duplicate A","Groups":["Flow Control"]},{"Opcode":74,"Name":"dup2","Args":"..","Returns":"....","Cost":1,"Size":1,"Doc":"duplicate A and B","Groups":["Flow Control"]},{"Opcode":75,"Name":"dig","Args":".","Returns":"..","Cost":1,"Size":2,"Doc":"Nth value from the top of the stack. dig 0 is equivalent to dup","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":76,"Name":"swap","Args":"..","Returns":"..","Cost":1,"Size":1,"Doc":"swaps A and B on stack","Groups":["Flow Control"]},{"Opcode":77,"Name":"select","Args":"..U","Returns":".","Cost":1,"Size":1,"Doc":"selects one of two values based on top-of-stack: B if C != 0, else A","Groups":["Flow Control"]},{"Opcode":78,"Name":"cover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove top of stack, and place it deeper in the stack such that N elements are above it. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":79,"Name":"uncover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove the value at depth N in the stack and shift above items down so the Nth deep value is on top of the stack. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":80,"Name":"concat","Args":"BB","Returns":"B","Cost":1,"Size":1,"Doc":"join A and B","DocExtra":"`concat` fails if the result would be greater than 4096 bytes.","Groups":["Arithmetic"]},{"Opcode":81,"Name":"substring","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including E. If E < S, or either is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 end position}","Groups":["Byte Array Manipulation"]},{"Opcode":82,"Name":"substring3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including C. If C < B, or either is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":83,"Name":"getbit","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"Bth bit of (byte-array or integer) A.","DocExtra":"see explanation of bit ordering in setbit","Groups":["Arithmetic"]},{"Opcode":84,"Name":"setbit","Args":".UU","Returns":".","Cost":1,"Size":1,"Doc":"Copy of (byte-array or integer) A, with the Bth bit set to (0 or 1) C","DocExtra":"When A is a uint64, index 0 is the least significant bit. Setting bit 3 to 1 on the integer 0 yields 8, or 2^3. When A is a byte array, index 0 is the leftmost bit of the leftmost byte. Setting bits 0 through 11 to 1 in a 4-byte-array of 0s yields the byte array 0xfff00000. Setting bit 3 to 1 on the 1-byte-array 0x00 yields the byte array 0x10.","Groups":["Arithmetic"]},{"Opcode":85,"Name":"getbyte","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"Bth byte of A, as an integer","Groups":["Arithmetic"]},{"Opcode":86,"Name":"setbyte","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"Copy of A with the Bth byte set to small integer (between 0..255) C","Groups":["Arithmetic"]},{"Opcode":87,"Name":"extract","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including S+L. If L is 0, then extract to the end of the string. If S or S+L is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 length}","Groups":["Byte Array Manipulation"]},{"Opcode":88,"Name":"extract3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including B+C. If B+C is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":89,"Name":"extract_uint16","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint16 formed from a range of big-endian bytes from A starting at B up to but not including B+2. If B+2 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":90,"Name":"extract_uint32","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint32 formed from a range of big-endian bytes from A starting at B up to but not including B+4. If B+4 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":91,"Name":"extract_uint64","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint64 formed from a range of big-endian bytes from A starting at B up to but not including B+8. If B+8 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":96,"Name":"balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get balance for account A, in microalgos. The balance is observed after the effects of previous transactions in the group, and after the fee for the current transaction is deducted.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":97,"Name":"app_opted_in","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"1 if account A is opted in to application B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: 1 if opted in and 0 otherwise.","Groups":["State Access"]},{"Opcode":98,"Name":"app_local_get","Args":".B","Returns":".","Cost":1,"Size":1,"Doc":"local state of the key B in the current application in account A","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":99,"Name":"app_local_get_ex","Args":".UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the local state of application B, key C in account A. Y is 1 if key existed, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":100,"Name":"app_global_get","Args":"B","Returns":".","Cost":1,"Size":1,"Doc":"global state of the key A in the current application","DocExtra":"params: state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":101,"Name":"app_global_get_ex","Args":"UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the global state of application A, key B. Y is 1 if key existed, else 0","DocExtra":"params: Txn.ForeignApps offset (or, since v4, an _available_ application id), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":102,"Name":"app_local_put","Args":".B.","Cost":1,"Size":1,"Doc":"write C to key B in account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key, value.","Groups":["State Access"]},{"Opcode":103,"Name":"app_global_put","Args":"B.","Cost":1,"Size":1,"Doc":"write B to key A in the global state of the current application","Groups":["State Access"]},{"Opcode":104,"Name":"app_local_del","Args":".B","Cost":1,"Size":1,"Doc":"delete key B from account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key.\\n\\nDeleting a key which is already absent has no effect on the application local state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":105,"Name":"app_global_del","Args":"B","Cost":1,"Size":1,"Doc":"delete key A from the global state of the current application","DocExtra":"params: state key.\\n\\nDeleting a key which is already absent has no effect on the application global state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":112,"Name":"asset_holding_get","Args":".U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetBalance","AssetFrozen"],"ArgEnumTypes":"UU","Doc":"X is field F from account A\'s holding of asset B. Y is 1 if A is opted into B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ address), asset id (or, since v4, a Txn.ForeignAssets offset). Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset holding field index}","Groups":["State Access"]},{"Opcode":113,"Name":"asset_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetTotal","AssetDecimals","AssetDefaultFrozen","AssetUnitName","AssetName","AssetURL","AssetMetadataHash","AssetManager","AssetReserve","AssetFreeze","AssetClawback","AssetCreator"],"ArgEnumTypes":"UUUBBBBBBBBB","Doc":"X is field F from asset A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignAssets offset (or, since v4, an _available_ asset id. Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset params field index}","Groups":["State Access"]},{"Opcode":114,"Name":"app_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AppApprovalProgram","AppClearStateProgram","AppGlobalNumUint","AppGlobalNumByteSlice","AppLocalNumUint","AppLocalNumByteSlice","AppExtraProgramPages","AppCreator","AppAddress"],"ArgEnumTypes":"BBUUUUUBB","Doc":"X is field F from app A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignApps offset or an _available_ app id. Return: did_exist flag (1 if the application existed and 0 otherwise), value.","ImmediateNote":"{uint8 app params field index}","Groups":["State Access"]},{"Opcode":115,"Name":"acct_params_get","Args":".","Returns":".U","Cost":1,"Size":2,"Doc":"X is field F from account A. Y is 1 if A owns positive algos, else 0","ImmediateNote":"{uint8 account params field index}","Groups":["State Access"]},{"Opcode":120,"Name":"min_balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get minimum required balance for account A, in microalgos. Required balance is affected by [ASA](https://developer.algorand.org/docs/features/asa/#assets-overview) and [App](https://developer.algorand.org/docs/features/asc1/stateful/#minimum-balance-requirement-for-a-smart-contract) usage. When creating or opting into an app, the minimum balance grows before the app code runs, therefore the increase is visible there. When deleting or closing out, the minimum balance decreases after the app executes.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":128,"Name":"pushbytes","Returns":"B","Cost":1,"Size":0,"Doc":"immediate BYTES","DocExtra":"pushbytes args are not added to the bytecblock during assembly processes","ImmediateNote":"{varuint length} {bytes}","Groups":["Loading Values"]},{"Opcode":129,"Name":"pushint","Returns":"U","Cost":1,"Size":0,"Doc":"immediate UINT","DocExtra":"pushint args are not added to the intcblock during assembly processes","ImmediateNote":"{varuint int}","Groups":["Loading Values"]},{"Opcode":136,"Name":"callsub","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET, saving the next instruction on the call stack","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":137,"Name":"retsub","Cost":1,"Size":1,"Doc":"pop the top instruction from the call stack and branch to it","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","Groups":["Flow Control"]},{"Opcode":144,"Name":"shl","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times 2^B, modulo 2^64","Groups":["Arithmetic"]},{"Opcode":145,"Name":"shr","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by 2^B","Groups":["Arithmetic"]},{"Opcode":146,"Name":"sqrt","Args":"U","Returns":"U","Cost":4,"Size":1,"Doc":"The largest integer I such that I^2 <= A","Groups":["Arithmetic"]},{"Opcode":147,"Name":"bitlen","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"The highest set bit in A. If A is a byte-array, it is interpreted as a big-endian unsigned integer. bitlen of 0 is 0, bitlen of 8 is 4","DocExtra":"bitlen interprets arrays as big-endian integers, unlike setbit/getbit","Groups":["Arithmetic"]},{"Opcode":148,"Name":"exp","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A raised to the Bth power. Fail if A == B == 0 and on overflow","Groups":["Arithmetic"]},{"Opcode":149,"Name":"expw","Args":"UU","Returns":"UU","Cost":10,"Size":1,"Doc":"A raised to the Bth power as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low. Fail if A == B == 0 or if the results exceeds 2^128-1","Groups":["Arithmetic"]},{"Opcode":150,"Name":"bsqrt","Args":"B","Returns":"B","Cost":40,"Size":1,"Doc":"The largest integer I such that I^2 <= A. A and I are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":151,"Name":"divw","Args":"UUU","Returns":"U","Cost":1,"Size":1,"Doc":"A,B / C. Fail if C == 0 or if result overflows.","DocExtra":"The notation A,B indicates that A and B are interpreted as a uint128 value, with A as the high uint64 and B the low.","Groups":["Arithmetic"]},{"Opcode":160,"Name":"b+","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A plus B. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":161,"Name":"b-","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A minus B. A and B are interpreted as big-endian unsigned integers. Fail on underflow.","Groups":["Byte Array Arithmetic"]},{"Opcode":162,"Name":"b/","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A divided by B (truncated division). A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":163,"Name":"b*","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A times B. A and B are interpreted as big-endian unsigned integers.","Groups":["Byte Array Arithmetic"]},{"Opcode":164,"Name":"b<","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":165,"Name":"b>","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":166,"Name":"b<=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":167,"Name":"b>=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":168,"Name":"b==","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":169,"Name":"b!=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"0 if A is equal to B, else 1. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":170,"Name":"b%","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A modulo B. A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":171,"Name":"b|","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-or B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":172,"Name":"b&","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-and B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":173,"Name":"b^","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-xor B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":174,"Name":"b~","Args":"B","Returns":"B","Cost":4,"Size":1,"Doc":"A with all bits inverted","Groups":["Byte Array Logic"]},{"Opcode":175,"Name":"bzero","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"zero filled byte-array of length A","Groups":["Loading Values"]},{"Opcode":176,"Name":"log","Args":"B","Cost":1,"Size":1,"Doc":"write A to log state of the current application","DocExtra":"`log` fails if called more than MaxLogCalls times in a program, or if the sum of logged bytes exceeds 1024 bytes.","Groups":["State Access"]},{"Opcode":177,"Name":"itxn_begin","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in a new transaction group","DocExtra":"`itxn_begin` initializes Sender to the application address; Fee to the minimum allowable, taking into account MinTxnFee and credit from overpaying in earlier transactions; FirstValid/LastValid to the values in the invoking transaction, and all other fields to zero or empty values.","Groups":["Inner Transactions"]},{"Opcode":178,"Name":"itxn_field","Args":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"set field F of the current inner transaction to A","DocExtra":"`itxn_field` fails if A is of the wrong type for F, including a byte array of the wrong size for use as an address when F is an address field. `itxn_field` also fails if A is an account, asset, or app that is not _available_, or an attempt is made extend an array field beyond the limit imposed by consensus parameters. (Addresses set into asset params of acfg transactions need not be _available_.)","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":179,"Name":"itxn_submit","Cost":1,"Size":1,"Doc":"execute the current inner transaction group. Fail if executing this group would exceed the inner transaction limit, or if any transaction in the group fails.","DocExtra":"`itxn_submit` resets the current transaction so that it can not be resubmitted. A new `itxn_begin` is required to prepare another inner transaction.","Groups":["Inner Transactions"]},{"Opcode":180,"Name":"itxn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":181,"Name":"itxna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":182,"Name":"itxn_next","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in the same transaction group","DocExtra":"`itxn_next` initializes the transaction exactly as `itxn_begin` does","Groups":["Inner Transactions"]},{"Opcode":183,"Name":"gitxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":184,"Name":"gitxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":192,"Name":"txnas","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":193,"Name":"gtxnas","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":194,"Name":"gtxnsas","Args":"UU","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Bth value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":195,"Name":"args","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"Ath LogicSig argument","Groups":["Loading Values"]},{"Opcode":196,"Name":"gloadss","Args":"UU","Returns":".","Cost":1,"Size":1,"Doc":"Bth scratch space value of the Ath transaction in the current group","Groups":["Loading Values"]},{"Opcode":197,"Name":"itxnas","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ath value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":198,"Name":"gitxnas","Args":"U","Returns":".","Cost":1,"Size":3,"Doc":"Ath value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]}]}')},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(13),a=r(i),o=r(n(25)),s=n(33),u=n(49);function c(){var e="undefined"!=typeof navigator?navigator.userAgent||navigator.vendor:"";return[/Android/i,/iPhone/i,/iPad/i].some((function(t){return e.match(t)}))}var l=a.forwardRef((function(e,t){var n,r=e.testid,l=e.value,d=e.type,f=void 0===d?"text":d,h=e.isDisabled,p=e.hasError,m=e.customClassName,g=e.leftIcon,v=e.rightIcon,y=e.localizationOptions,b=void 0===y?{}:y,w=e.role,_=e.autoComplete,x=void 0===_?"off":_,A=e.autoCorrect,k=void 0===A?"off":A,S=e.onChange,E=s.__rest(e,["testid","value","type","isDisabled","hasError","customClassName","leftIcon","rightIcon","localizationOptions","role","autoComplete","autoCorrect","onChange"]),O=function(e){return c()?{shouldFormatToLocaleString:!1,locale:void 0,maximumFractionDigits:e.maximumFractionDigits}:e}(b),C=O.shouldFormatToLocaleString,T=void 0!==C&&C,M=O.locale,j=O.maximumFractionDigits,R=void 0===j?0:j,I=s.__read(i.useState((function(){return s.__assign(s.__assign({},u.getNumberSeparators(M)),u.getNegativeZero(M))})),2),P=I[0],L=P.DECIMAL_NUMBER_SEPARATOR,D=P.MINUS_SIGN,B=P.LOCALE_NEGATIVE_ZERO,N=I[1],F="number"===f,U=o("input-container",m,"input-container--type-"+f,{"input-container--is-disabled":h,"input-container--has-error":p}),z=l;if(!("number"==typeof R&&Number.isInteger(R)&&R>=0))throw new Error("maximumFractionDigits should be zero or a positive integer.");if(F&&"string"==typeof l&&T){var q=s.__read(String(l).split("."),2),H=q[0],V=q[1],W=u.formatNumber({maximumFractionDigits:R,locale:M});(null===(n=l.match(/\.$/))||void 0===n?void 0:n.length)||V?z=""+W(parseInt(H))+L+u.mapDigitsToLocalVersion({locale:M},V):H&&(z=H!==D&&H!==B?W(parseInt(H)):""+D+u.mapDigitsToLocalVersion({locale:M},H))}return i.useEffect((function(){N(s.__assign(s.__assign({},u.getNumberSeparators(M)),u.getNegativeZero(M)))}),[M]),a.createElement("div",{role:w,className:U,"data-testid":r},g&&a.createElement("span",{className:"input-container__icon input-container__left-icon"},g),a.createElement("input",s.__assign({ref:t,className:"input",type:F?"text":f,autoComplete:x,value:z,autoCorrect:k,disabled:h,onChange:function(e){var t,n;if(F){var r=e.currentTarget.value;if(r){var i=u.parseNumber((n={locale:M,maximumFractionDigits:R},c()?s.__assign(s.__assign({},n),{locale:"en-US"}):n),r),a=""===i||"-"!==r&&Number.isNaN(Number(i)),o=i?String(i):"";if(!a&&(null===(t=i.match(/./))||void 0===t?void 0:t.length)?o=String(i):a&&(o=l),!a&&(T||R>0||o.includes("-"))&&(o=u.removeLeadingZeros(M,o)),0===R&&"-0"===o&&(o="0"),T){var d=u.getThousandthSeparatorCount(o),f=u.getThousandthSeparatorCount(l),h=e.currentTarget,p=e.currentTarget.selectionStart||0;!o||String(l).length!==o.length+1&&String(l).length!==o.length-1||(f===d+1?p-=1:f===d-1&&(p+=1),window.requestAnimationFrame((function(){h.selectionStart=p,h.selectionEnd=p})))}e.currentTarget.value=o}}S(e)}},E)),v&&a.createElement("span",{className:"input-container__icon input-container__right-icon"},v))}));e.exports=l},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return m})),n.d(t,"v3",(function(){return S})),n.d(t,"v4",(function(){return E})),n.d(t,"v5",(function(){return T})),n.d(t,"NIL",(function(){return M})),n.d(t,"version",(function(){return j})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return f})),n.d(t,"parse",(function(){return g}));var i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"===typeof e&&o.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,d,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},h=0,p=0;var m=function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:d;if(null==o||null==s){var u=e.random||(e.rng||a)();null==o&&(o=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=d=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:p+1,g=c-h+(m-p)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||c>h)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=c,p=m,d=s;var v=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;var y=c/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=o[b];return t||f(i)};var g=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var v=function(e,t,n){function r(e,r,i,a){if("string"===typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function w(e,t,n,r,i,a){return b((o=b(b(t,e),b(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function _(e,t,n,r,i,a,o){return w(t&n|~t&r,e,t,i,a,o)}function x(e,t,n,r,i,a,o){return w(t&r|n&~r,e,t,i,a,o)}function A(e,t,n,r,i,a,o){return w(t^n^r,e,t,i,a,o)}function k(e,t,n,r,i,a,o){return w(n^(t|~r),e,t,i,a,o)}var S=v("v3",48,(function(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>32-t}var T=v("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;b=y,y=v,v=C(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),M="00000000-0000-0000-0000-000000000000";var j=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"MULTISIG_BAD_SENDER_ERROR_MSG",(function(){return D})),n.d(t,"signTransaction",(function(){return B})),n.d(t,"signBid",(function(){return N})),n.d(t,"signBytes",(function(){return F})),n.d(t,"verifyBytes",(function(){return U})),n.d(t,"encodeObj",(function(){return z})),n.d(t,"decodeObj",(function(){return q})),n.d(t,"ERROR_MULTISIG_BAD_SENDER",(function(){return H})),n.d(t,"ERROR_INVALID_MICROALGOS",(function(){return V})),n.d(t,"LogicTemplates",(function(){return W}));var r=n(17),i=n(9),a=n(20),o=n(22),s=n(167),u=n.n(s),c=n(168),l=n(58),d=n(24),f=n(143);for(var h in f)["default","MULTISIG_BAD_SENDER_ERROR_MSG","signTransaction","signBid","signBytes","verifyBytes","encodeObj","decodeObj","ERROR_MULTISIG_BAD_SENDER","ERROR_INVALID_MICROALGOS","Algodv2","Kmd","IntDecoding","Indexer","waitForConfirmation","isValidAddress","encodeAddress","decodeAddress","getApplicationAddress","bytesToBigInt","bigIntToBytes","encodeUint64","decodeUint64","generateAccount","modelsv2","indexerModels","mnemonicToMasterDerivationKey","masterDerivationKeyToMnemonic","secretKeyToMnemonic","mnemonicToSecretKey","seedFromMnemonic","mnemonicFromSeed","microalgosToAlgos","algosToMicroalgos","INVALID_MICROALGOS_ERROR_MSG","computeGroupID","assignGroupID","LogicSigAccount","makeLogicSig","signLogicSigTransaction","signLogicSigTransactionObject","logicSigFromByte","tealSign","tealSignFromProgram","signMultisigTransaction","mergeMultisigTransactions","appendSignMultisigTransaction","createMultisigTransaction","appendSignRawMultisigSignature","verifyMultisig","multisigAddress","SourceMap","LogicTemplates"].indexOf(h)<0&&function(e){n.d(t,e,(function(){return f[e]}))}(h);var p=n(152);n.d(t,"Algodv2",(function(){return p.a}));var m=n(144);n.d(t,"Kmd",(function(){return m.a}));var g=n(47);n.d(t,"IntDecoding",(function(){return g.a}));var v=n(153);n.d(t,"Indexer",(function(){return v.a}));var y=n(85);n.d(t,"waitForConfirmation",(function(){return y.a})),n.d(t,"isValidAddress",(function(){return i.isValidAddress})),n.d(t,"encodeAddress",(function(){return i.encodeAddress})),n.d(t,"decodeAddress",(function(){return i.decodeAddress})),n.d(t,"getApplicationAddress",(function(){return i.getApplicationAddress}));var b=n(38);n.d(t,"bytesToBigInt",(function(){return b.b})),n.d(t,"bigIntToBytes",(function(){return b.a}));var w=n(73);n.d(t,"encodeUint64",(function(){return w.b})),n.d(t,"decodeUint64",(function(){return w.a}));var _=n(145);n.d(t,"generateAccount",(function(){return _.a}));var x=n(37);n.d(t,"modelsv2",(function(){return x}));var A=n(59);n.d(t,"indexerModels",(function(){return A}));var k=n(53);n.d(t,"mnemonicToMasterDerivationKey",(function(){return k.c})),n.d(t,"masterDerivationKeyToMnemonic",(function(){return k.a})),n.d(t,"secretKeyToMnemonic",(function(){return k.e})),n.d(t,"mnemonicToSecretKey",(function(){return k.d})),n.d(t,"seedFromMnemonic",(function(){return k.f})),n.d(t,"mnemonicFromSeed",(function(){return k.b})),n.d(t,"microalgosToAlgos",(function(){return l.c})),n.d(t,"algosToMicroalgos",(function(){return l.b})),n.d(t,"INVALID_MICROALGOS_ERROR_MSG",(function(){return l.a}));var S=n(46);n.d(t,"computeGroupID",(function(){return S.computeGroupID})),n.d(t,"assignGroupID",(function(){return S.assignGroupID}));var E=n(32);n.d(t,"LogicSigAccount",(function(){return E.LogicSigAccount})),n.d(t,"makeLogicSig",(function(){return E.makeLogicSig})),n.d(t,"signLogicSigTransaction",(function(){return E.signLogicSigTransaction})),n.d(t,"signLogicSigTransactionObject",(function(){return E.signLogicSigTransactionObject})),n.d(t,"logicSigFromByte",(function(){return E.logicSigFromByte})),n.d(t,"tealSign",(function(){return E.tealSign})),n.d(t,"tealSignFromProgram",(function(){return E.tealSignFromProgram}));var O=n(36);n.d(t,"signMultisigTransaction",(function(){return O.f})),n.d(t,"mergeMultisigTransactions",(function(){return O.d})),n.d(t,"appendSignMultisigTransaction",(function(){return O.a})),n.d(t,"createMultisigTransaction",(function(){return O.c})),n.d(t,"appendSignRawMultisigSignature",(function(){return O.b})),n.d(t,"verifyMultisig",(function(){return O.g})),n.d(t,"multisigAddress",(function(){return O.e}));var C=n(157);n.d(t,"SourceMap",(function(){return C.a}));var T=n(146);n.d(t,"createDryrun",(function(){return T.b})),n.d(t,"DryrunResult",(function(){return T.a}));var M=n(54);n.d(t,"makePaymentTxnWithSuggestedParams",(function(){return M.makePaymentTxnWithSuggestedParams})),n.d(t,"makePaymentTxn",(function(){return M.makePaymentTxn})),n.d(t,"makePaymentTxnWithSuggestedParamsFromObject",(function(){return M.makePaymentTxnWithSuggestedParamsFromObject})),n.d(t,"makeKeyRegistrationTxnWithSuggestedParams",(function(){return M.makeKeyRegistrationTxnWithSuggestedParams})),n.d(t,"makeKeyRegistrationTxn",(function(){return M.makeKeyRegistrationTxn})),n.d(t,"makeKeyRegistrationTxnWithSuggestedParamsFromObject",(function(){return M.makeKeyRegistrationTxnWithSuggestedParamsFromObject})),n.d(t,"makeAssetCreateTxnWithSuggestedParams",(function(){return M.makeAssetCreateTxnWithSuggestedParams})),n.d(t,"makeAssetCreateTxn",(function(){return M.makeAssetCreateTxn})),n.d(t,"makeAssetCreateTxnWithSuggestedParamsFromObject",(function(){return M.makeAssetCreateTxnWithSuggestedParamsFromObject})),n.d(t,"makeAssetConfigTxnWithSuggestedParams",(function(){return M.makeAssetConfigTxnWithSuggestedParams})),n.d(t,"makeAssetConfigTxn",(function(){return M.makeAssetConfigTxn})),n.d(t,"makeAssetConfigTxnWithSuggestedParamsFromObject",(function(){return M.makeAssetConfigTxnWithSuggestedParamsFromObject})),n.d(t,"makeAssetDestroyTxnWithSuggestedParams",(function(){return M.makeAssetDestroyTxnWithSuggestedParams})),n.d(t,"makeAssetDestroyTxn",(function(){return M.makeAssetDestroyTxn})),n.d(t,"makeAssetDestroyTxnWithSuggestedParamsFromObject",(function(){return M.makeAssetDestroyTxnWithSuggestedParamsFromObject})),n.d(t,"makeAssetFreezeTxnWithSuggestedParams",(function(){return M.makeAssetFreezeTxnWithSuggestedParams})),n.d(t,"makeAssetFreezeTxn",(function(){return M.makeAssetFreezeTxn})),n.d(t,"makeAssetFreezeTxnWithSuggestedParamsFromObject",(function(){return M.makeAssetFreezeTxnWithSuggestedParamsFromObject})),n.d(t,"makeAssetTransferTxnWithSuggestedParams",(function(){return M.makeAssetTransferTxnWithSuggestedParams})),n.d(t,"makeAssetTransferTxn",(function(){return M.makeAssetTransferTxn})),n.d(t,"makeAssetTransferTxnWithSuggestedParamsFromObject",(function(){return M.makeAssetTransferTxnWithSuggestedParamsFromObject})),n.d(t,"makeApplicationCreateTxn",(function(){return M.makeApplicationCreateTxn})),n.d(t,"makeApplicationCreateTxnFromObject",(function(){return M.makeApplicationCreateTxnFromObject})),n.d(t,"makeApplicationUpdateTxn",(function(){return M.makeApplicationUpdateTxn})),n.d(t,"makeApplicationUpdateTxnFromObject",(function(){return M.makeApplicationUpdateTxnFromObject})),n.d(t,"makeApplicationDeleteTxn",(function(){return M.makeApplicationDeleteTxn})),n.d(t,"makeApplicationDeleteTxnFromObject",(function(){return M.makeApplicationDeleteTxnFromObject})),n.d(t,"makeApplicationOptInTxn",(function(){return M.makeApplicationOptInTxn})),n.d(t,"makeApplicationOptInTxnFromObject",(function(){return M.makeApplicationOptInTxnFromObject})),n.d(t,"makeApplicationCloseOutTxn",(function(){return M.makeApplicationCloseOutTxn})),n.d(t,"makeApplicationCloseOutTxnFromObject",(function(){return M.makeApplicationCloseOutTxnFromObject})),n.d(t,"makeApplicationClearStateTxn",(function(){return M.makeApplicationClearStateTxn})),n.d(t,"makeApplicationClearStateTxnFromObject",(function(){return M.makeApplicationClearStateTxnFromObject})),n.d(t,"makeApplicationNoOpTxn",(function(){return M.makeApplicationNoOpTxn})),n.d(t,"makeApplicationNoOpTxnFromObject",(function(){return M.makeApplicationNoOpTxnFromObject})),n.d(t,"OnApplicationComplete",(function(){return M.OnApplicationComplete})),n.d(t,"makeApplicationCallTxnFromObject",(function(){return M.makeApplicationCallTxnFromObject})),n.d(t,"ALGORAND_MIN_TX_FEE",(function(){return o.ALGORAND_MIN_TX_FEE})),n.d(t,"Transaction",(function(){return o.Transaction})),n.d(t,"encodeUnsignedTransaction",(function(){return o.encodeUnsignedTransaction})),n.d(t,"decodeUnsignedTransaction",(function(){return o.decodeUnsignedTransaction})),n.d(t,"decodeSignedTransaction",(function(){return o.decodeSignedTransaction})),n.d(t,"instantiateTxnIfNeeded",(function(){return o.instantiateTxnIfNeeded}));var j=n(75);n.d(t,"makeBasicAccountTransactionSigner",(function(){return j.b})),n.d(t,"makeLogicSigAccountTransactionSigner",(function(){return j.c})),n.d(t,"makeMultiSigAccountTransactionSigner",(function(){return j.d})),n.d(t,"isTransactionWithSigner",(function(){return j.a}));var R=n(147);n.d(t,"AtomicTransactionComposerStatus",(function(){return R.b})),n.d(t,"AtomicTransactionComposer",(function(){return R.a}));var I=n(156);n.d(t,"TransactionType",(function(){return I.a}));var P=n(34);n.d(t,"MAX_LEN",(function(){return P.r})),n.d(t,"ADDR_BYTE_SIZE",(function(){return P.p})),n.d(t,"SINGLE_BYTE_SIZE",(function(){return P.t})),n.d(t,"SINGLE_BOOL_SIZE",(function(){return P.s})),n.d(t,"LENGTH_ENCODE_BYTE_SIZE",(function(){return P.q})),n.d(t,"ABIType",(function(){return P.m})),n.d(t,"ABIUintType",(function(){return P.o})),n.d(t,"ABIUfixedType",(function(){return P.n})),n.d(t,"ABIAddressType",(function(){return P.a})),n.d(t,"ABIBoolType",(function(){return P.d})),n.d(t,"ABIByteType",(function(){return P.e})),n.d(t,"ABIStringType",(function(){return P.j})),n.d(t,"ABIArrayStaticType",(function(){return P.c})),n.d(t,"ABIArrayDynamicType",(function(){return P.b})),n.d(t,"ABITupleType",(function(){return P.l})),n.d(t,"ABIContract",(function(){return P.f})),n.d(t,"ABIInterface",(function(){return P.g})),n.d(t,"ABIMethod",(function(){return P.h})),n.d(t,"getMethodByName",(function(){return P.x})),n.d(t,"ABITransactionType",(function(){return P.k})),n.d(t,"abiTypeIsTransaction",(function(){return P.w})),n.d(t,"abiCheckTransactionType",(function(){return P.u})),n.d(t,"ABIReferenceType",(function(){return P.i})),n.d(t,"abiTypeIsReference",(function(){return P.v}));var L=e.from([77,88]),D="The transaction sender address and multisig preimage do not match.";function B(e,t){if("undefined"===typeof e.from){var n=r.keyPairFromSecretKey(t);e.from=i.encodeAddress(n.publicKey)}var a=o.instantiateTxnIfNeeded(e);return{txID:a.txID().toString(),blob:a.signTxn(t)}}function N(e,t){return new c.a(e).signBid(t)}function F(t,n){var i=e.from(d.concatArrays(L,t));return r.sign(i,n)}function U(t,n,a){var o=e.from(d.concatArrays(L,t)),s=i.decodeAddress(a).publicKey;return r.verify(o,n,s)}function z(e){return new Uint8Array(a.encode(e))}function q(e){return a.decode(e)}var H=new Error(D),V=new Error(l.a),W=u.a}.call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(6);function a(e,t,n){return o.apply(this,arguments)}function o(){return(o=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var a,o,s,u,c;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.status().do();case 2:if("undefined"!==typeof(a=e.sent)){e.next=5;break}throw new Error("Unable to get node status");case 5:o=a["last-round"]+1,s=o;case 7:if(!(s=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(87),i=n(62);function a(e,t){if(t&&("object"===Object(r.a)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.a)(e)}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"default",(function(){return h}));var r=n(0),i=n(8),a=n(6),o=n(2),s=n(1),u=n(24),c=n(169);function l(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]&&0!==e[t].length||delete e[t]);return e}function d(e){return Object.keys(e).reduce((function(t,n){return t[n.toLowerCase()]=e[n],t}),{})}function f(e){return void 0!==e&&Object.prototype.hasOwnProperty.call(e,"format")&&"msgpack"===e.format?"application/msgpack":"application/json"}var h=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(o.a)(this,t),this.bc=void 0!==n?new c.a(e,n,r,i):e}return Object(s.a)(t,[{key:"get",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n,a){var o,s,u,c,d,h,p=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=p.length>2&&void 0!==p[2]?p[2]:{},s=p.length>3&&void 0!==p[3]?p[3]:{},u=!(p.length>4&&void 0!==p[4])||p[4],c=f(a),d=Object(i.a)(Object(i.a)({},o),{},{accept:c}),e.prev=5,e.next=8,this.bc.get(n,l(a),d);case 8:return h=e.sent,e.abrupt("return",t.prepareResponse(h,c,u,s));case 12:throw e.prev=12,e.t0=e.catch(5),t.prepareResponseError(e.t0);case 15:case"end":return e.stop()}}),e,this,[[5,12]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n,a){var o,s,u,c,l,f=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>2&&void 0!==f[2]?f[2]:{},s=f.length>3?f[3]:void 0,u=!(f.length>4&&void 0!==f[4])||f[4],c=Object(i.a)({"content-type":"application/json"},d(o)),e.prev=4,e.next=7,this.bc.post(n,t.serializeData(a,c),s,c);case 7:return l=e.sent,e.abrupt("return",t.prepareResponse(l,"application/json",u));case 11:throw e.prev=11,e.t0=e.catch(4),t.prepareResponseError(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n,a){var o,s,u,c,l=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>2&&void 0!==l[2]?l[2]:{},s=!(l.length>3&&void 0!==l[3])||l[3],u=Object(i.a)({"content-type":"application/json"},d(o)),e.next=5,this.bc.delete(n,t.serializeData(a,u),void 0,u);case 5:return c=e.sent,e.abrupt("return",t.prepareResponse(c,"application/json",s));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}],[{key:"parseJSON",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return 0===Object.keys(n).length?e&&JSON.parse(e):e&&u.parseJSON(e,n)}catch(i){var r=i;throw r.rawResponse=e||null,r.statusCode=t,r}}},{key:"serializeData",value:function(t,n){if(!t)return new Uint8Array(0);if("application/json"===n["content-type"])return new Uint8Array(e.from(JSON.stringify(t)));if("string"===typeof t)return new Uint8Array(e.from(t));if(t instanceof Uint8Array)return t;throw new Error("provided data is neither a string nor a Uint8Array and content-type is not application/json")}},{key:"prepareResponse",value:function(n,r,a){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=n.body;return"application/msgpack"!==r&&(o=u&&e.from(u).toString()||""),a&&"application/json"===r&&(u=t.parseJSON(o,n.status,s)),Object(i.a)(Object(i.a)({},n),{},{body:u,text:o,ok:2===Math.trunc(n.status/100)})}},{key:"prepareResponseError",value:function(e){return e.response&&(e.response=t.prepareResponse(e.response,"application/json",!0),e.status=e.response.status),e}}]),t}()}.call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(0),i=n(6),a=n(2),o=n(1),s=n(4),u=n(5),c=n(8);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=Object(c.a)({},e))["Content-Type"]="text/plain"),t}var d=function(t){Object(s.a)(c,t);var n=Object(u.a)(c);function c(e,t){var r;return Object(a.a)(this,c),(r=n.call(this,e)).source=t,r.source=t,r}return Object(o.a)(c,[{key:"path",value:function(){return"/v2/teal/compile"}},{key:"sourcemap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query.sourcemap=e,this}},{key:"do",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(){var n,i,a,o=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},i=l(n),t.next=4,this.c.post(this.path(),e.from(this.source),i,this.query);case 4:return a=t.sent,t.abrupt("return",a.body);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),c}(n(14).a)}).call(this,n(19).Buffer)},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(2),i=n(1),a=n(3),o=n(56),s=function(){function t(e,n){Object(r.a)(this,t),this.client=e,this.indexer=n}return Object(i.a)(t,[{key:"convertToIntArray",value:function(t){return new Uint8Array(e.from(t))}},{key:"convertToString",value:function(e){return new TextDecoder("utf-8").decode(e)}},{key:"convertToArrayBuffer",value:function(t){var n=[];return n.push([e.from(t)]),n}},{key:"encodeUint",value:function(e){return a.default.encodeUint64(e)}},{key:"encodeString",value:function(t){return new Uint8Array(e.from(t,"utf-8"))}},{key:"base32EncodeArrayBuffer",value:function(t){return o.encode(e.from(t,"base64"))}},{key:"decodeNote",value:function(t){return e.from(t,"base64").toString("utf-8")}},{key:"createNoopTransactions",value:function(e,t,n,r,i,o){for(var s=[],u=0;u-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=p(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e){var t=new f;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];x.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(S){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new b(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:_(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new x(t,e))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send("undefined"===typeof o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=f,e.Request=b,e.Response=x),t.Headers=f,t.Request=b,t.Response=x,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(242),a=(r=i)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){var r=n(193);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(33),i=n(49);t.filterOutItemsByKey=function(e,t,n){var r=n.map((function(e){return e[t]}));return e.reduce((function(e,n){return r.includes(n[t])||e.push(n),e}),[])},t.limitArrayLengthFromTheEnd=function(e,t){var n=t;return i.isNonNegativeNumber(e)&&t.length>e&&(n=t.slice(t.length-e)),n},t.updateAtIndex=function(e,t,n){var i=r.__spread(e);return i.splice(t,1,n),i}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(132);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,u=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(u[0][o]>u[1][o])return 1;if(u[0][o]===u[1][o]){if(o===s)return 0;o-=1}else if(u[0][o]1?i-1:0),o=1;o0){var o=Object.keys(n),u=s.default.find(o,(function(e){return t.isOS(e)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(o,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(n[l]);if(void 0!==d)return d}}if(a>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=o,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:a.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}];t.default=o,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];t.default=o,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=o,e.exports=t.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(249);var a=((r=i)&&r.__esModule?r:{default:r}).default,o=a.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=a.canUseDOM?window.NodeList:{},t.canUseDOM=a.canUseDOM;t.default=o},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"generateKey",(function(){return E})),n.d(r,"verifyHmac",(function(){return C})),n.d(r,"encrypt",(function(){return M})),n.d(r,"decrypt",(function(){return R}));var i=n(1),a=n(2),o=n(4),s=n(5),u=n(0),c=n(6),l=n(27),d=n(16),f=n(162),h="Session currently connected",p="Session currently disconnected",m="JSON RPC response format is invalid",g="User close QRCode Modal",v=function(){function e(){Object(a.a)(this,e),this._eventEmitters=[]}return Object(i.a)(e,[{key:"subscribe",value:function(e){this._eventEmitters.push(e)}},{key:"unsubscribe",value:function(e){this._eventEmitters=this._eventEmitters.filter((function(t){return t.event!==e}))}},{key:"trigger",value:function(e){var t,n=[];(t=Object(d.o)(e)?e.method:Object(d.q)(e)||Object(d.p)(e)?"response:".concat(e.id):Object(d.n)(e)?e.event:"")&&(n=this._eventEmitters.filter((function(e){return e.event===t}))),n&&n.length||Object(d.s)(t)||Object(d.n)(t)||(n=this._eventEmitters.filter((function(e){return"call_request"===e.event}))),n.forEach((function(t){if(Object(d.p)(e)){var n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}}]),e}(),y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"walletconnect";Object(a.a)(this,e),this.storageId=t}return Object(i.a)(e,[{key:"getSession",value:function(){var e=null,t=Object(d.j)(this.storageId);return t&&Object(d.u)(t)&&(e=t),e}},{key:"setSession",value:function(e){return Object(d.B)(this.storageId,e),e}},{key:"removeSession",value:function(){Object(d.A)(this.storageId)}}]),e}(),b=y,w="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((function(e){return"https://".concat(e,".bridge.walletconnect.org")}));function _(){return w[Math.floor(Math.random()*w.length)]}var x=function(){function e(t){if(Object(a.a)(this,e),this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new v,this._clientMeta=Object(d.i)()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new b(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[].concat(Object(l.a)(d.C),Object(l.a)(t.connectorOpts.signingMethods||[])),!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");var n;t.connectorOpts.bridge&&(this.bridge=function(e){return"walletconnect.org"===function(e){return function(e){var t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return(t=t.split(":")[0]).split("?")[0]}(e).split(".").slice(-2).join(".")}(e)}(n=t.connectorOpts.bridge)?_():n),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);var r=t.connectorOpts.session||this._getStorageSession();r&&(this.session=r),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new f.a({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}return Object(i.a)(e,[{key:"bridge",get:function(){return this._bridge},set:function(e){e&&(this._bridge=e)}},{key:"key",get:function(){return this._key?Object(d.c)(this._key,!0):""},set:function(e){if(e){var t=Object(d.e)(e);this._key=t}}},{key:"clientId",get:function(){var e=this._clientId;return e||(e=this._clientId=Object(d.D)()),this._clientId},set:function(e){e&&(this._clientId=e)}},{key:"peerId",get:function(){return this._peerId},set:function(e){e&&(this._peerId=e)}},{key:"clientMeta",get:function(){var e=this._clientMeta;return e||(e=this._clientMeta=Object(d.i)()),e},set:function(e){}},{key:"peerMeta",get:function(){return this._peerMeta},set:function(e){this._peerMeta=e}},{key:"handshakeTopic",get:function(){return this._handshakeTopic},set:function(e){e&&(this._handshakeTopic=e)}},{key:"handshakeId",get:function(){return this._handshakeId},set:function(e){e&&(this._handshakeId=e)}},{key:"uri",get:function(){return this._formatUri()},set:function(e){if(e){var t=this._parseUri(e),n=t.handshakeTopic,r=t.bridge,i=t.key;this.handshakeTopic=n,this.bridge=r,this.key=i}}},{key:"chainId",get:function(){return this._chainId},set:function(e){this._chainId=e}},{key:"networkId",get:function(){return this._networkId},set:function(e){this._networkId=e}},{key:"accounts",get:function(){return this._accounts},set:function(e){this._accounts=e}},{key:"rpcUrl",get:function(){return this._rpcUrl},set:function(e){this._rpcUrl=e}},{key:"connected",get:function(){return this._connected},set:function(e){}},{key:"pending",get:function(){return!!this._handshakeTopic},set:function(e){}},{key:"session",get:function(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}},set:function(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}},{key:"on",value:function(e,t){var n={event:e,callback:t};this._eventManager.subscribe(n)}},{key:"off",value:function(e){this._eventManager.unsubscribe(e)}},{key:"createInstantRequest",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i,a=this;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._generateKey();case 2:return this._key=e.sent,n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]}),this.handshakeId=n.id,this.handshakeTopic=Object(d.D)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(function(){throw new Error(g)})),r=function(){a.killSession()},e.prev=9,e.next=12,this._sendCallRequest(n);case 12:return(i=e.sent)&&r(),e.abrupt("return",i);case 17:throw e.prev=17,e.t0=e.catch(9),r(),e.t0;case 21:case"end":return e.stop()}}),e,this,[[9,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"connect",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n=this;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._qrcodeModal){e.next=2;break}throw new Error("QRCode Modal not provided");case 2:if(!this.connected){e.next=4;break}return e.abrupt("return",{chainId:this.chainId,accounts:this.accounts});case 4:return e.next=6,this.createSession(t);case 6:return e.abrupt("return",new Promise(function(){var e=Object(c.a)(Object(u.a)().mark((function e(t,r){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.on("modal_closed",(function(){return r(new Error(g))})),n.on("connect",(function(e,n){if(e)return r(e);t(n.params[0])}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createSession",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._connected){e.next=2;break}throw new Error(h);case 2:if(!this.pending){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,this._generateKey();case 6:this._key=e.sent,n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]}),this.handshakeId=n.id,this.handshakeTopic=Object(d.D)(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]});case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"approveSession",value:function(e){if(this._connected)throw new Error(h);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}},{key:"rejectSession",value:function(e){if(this._connected)throw new Error(h);var t=e&&e.message?e.message:"Session Rejected",n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}},{key:"updateSession",value:function(e){if(!this._connected)throw new Error(p);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}},{key:"killSession",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?t.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},i=this._formatRequest({method:"wc_sessionUpdate",params:[r]}),e.next=5,this._sendRequest(i);case 5:this._handleSessionDisconnect(n);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendTransaction",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:return n=Object(d.x)(t),r=this._formatRequest({method:"eth_sendTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:return n=Object(d.x)(t),r=this._formatRequest({method:"eth_signTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signMessage",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:return n=this._formatRequest({method:"eth_sign",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signPersonalMessage",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:return t=Object(d.w)(t),n=this._formatRequest({method:"personal_sign",params:t}),e.next=6,this._sendCallRequest(n);case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signTypedData",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:return n=this._formatRequest({method:"eth_signTypedData",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateChain",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error("Session currently disconnected");case 2:return n=this._formatRequest({method:"wallet_updateChain",params:[t]}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"unsafeSend",value:function(e,t){var n=this;return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((function(t,r){n._subscribeToResponse(e.id,(function(e,n){if(e)r(e);else{if(!n)throw new Error("Missing JSON RPC response");t(n)}}))}))}},{key:"sendCustomRequest",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t,n){var r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(p);case 2:e.t0=t.method,e.next="eth_accounts"===e.t0?5:"eth_chainId"===e.t0?6:"eth_sendTransaction"===e.t0||"eth_signTransaction"===e.t0?7:"personal_sign"===e.t0?9:11;break;case 5:return e.abrupt("return",this.accounts);case 6:return e.abrupt("return",Object(d.f)(this.chainId));case 7:return t.params&&(t.params[0]=Object(d.x)(t.params[0])),e.abrupt("break",12);case 9:return t.params&&(t.params=Object(d.w)(t.params)),e.abrupt("break",12);case 11:return e.abrupt("break",12);case 12:return r=this._formatRequest(t),e.next=15,this._sendCallRequest(r,n);case 15:return i=e.sent,e.abrupt("return",i);case 17:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"approveRequest",value:function(e){if(!Object(d.q)(e))throw new Error('JSON-RPC success response must include "result" field');var t=this._formatResponse(e);this._sendResponse(t)}},{key:"rejectRequest",value:function(e){if(!Object(d.p)(e))throw new Error('JSON-RPC error response must include "error" field');var t=this._formatResponse(e);this._sendResponse(t)}},{key:"transportClose",value:function(){this._transport.close()}},{key:"_sendRequest",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t,n){var r,i,a,o,s;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._formatRequest(t),e.next=3,this._encrypt(r);case 3:i=e.sent,a="undefined"!==typeof(null===n||void 0===n?void 0:n.topic)?n.topic:this.peerId,o=JSON.stringify(i),s="undefined"!==typeof(null===n||void 0===n?void 0:n.forcePushNotification)?!n.forcePushNotification:Object(d.t)(r),this._transport.send(o,a,s);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_sendResponse",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._encrypt(t);case 2:n=e.sent,r=this.peerId,i=JSON.stringify(n),!0,this._transport.send(i,r,true);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_sendSessionRequest",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t,n,r){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._sendRequest(t,r),this._subscribeToSessionResponse(t.id,n);case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_sendCallRequest",value:function(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}},{key:"_formatRequest",value:function(e){if("undefined"===typeof e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:"undefined"===typeof e.id?Object(d.z)():e.id,jsonrpc:"2.0",method:e.method,params:"undefined"===typeof e.params?[]:e.params}}},{key:"_formatResponse",value:function(e){if("undefined"===typeof e.id)throw new Error('JSON RPC request must have valid "id" value');var t={id:e.id,jsonrpc:"2.0"};if(Object(d.p)(e)){var n=Object(d.h)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if(Object(d.q)(e))return Object.assign(Object.assign({},t),e);throw new Error(m)}},{key:"_handleSessionDisconnect",value:function(e){var t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Object(d.A)(d.v)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}},{key:"_handleSessionResponse",value:function(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}},{key:"_handleIncomingMessages",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if([this.clientId,this.handshakeTopic].includes(t.topic)){e.next=3;break}return e.abrupt("return");case 3:e.prev=3,n=JSON.parse(t.payload),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return");case 10:return e.next=12,this._decrypt(n);case 12:(r=e.sent)&&this._eventManager.trigger(r);case 14:case"end":return e.stop()}}),e,this,[[3,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_subscribeToSessionRequest",value:function(){this._transport.subscribe(this.handshakeTopic)}},{key:"_subscribeToResponse",value:function(e,t){this.on("response:".concat(e),t)}},{key:"_subscribeToSessionResponse",value:function(e,t){var n=this;this._subscribeToResponse(e,(function(e,r){e?n._handleSessionResponse(e.message):Object(d.q)(r)?n._handleSessionResponse(t,r.result):r.error&&r.error.message?n._handleSessionResponse(r.error.message):n._handleSessionResponse(t)}))}},{key:"_subscribeToCallResponse",value:function(e){var t=this;return new Promise((function(n,r){t._subscribeToResponse(e,(function(e,t){e?r(e):Object(d.q)(t)?n(t.result):t.error&&t.error.message?r(t.error):r(new Error(m))}))}))}},{key:"_subscribeToInternalEvents",value:function(){var e=this;this.on("display_uri",(function(){e._qrcodeModal&&e._qrcodeModal.open(e.uri,(function(){e._eventManager.trigger({event:"modal_closed",params:[]})}),e._qrcodeModalOptions)})),this.on("connect",(function(){e._qrcodeModal&&e._qrcodeModal.close()})),this.on("call_request_sent",(function(t,n){var r=n.params[0].request;if(Object(d.r)()&&e._signingMethods.includes(r.method)){var i=Object(d.j)(d.v);i&&(window.location.href=i.href)}})),this.on("wc_sessionRequest",(function(t,n){t&&e._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),e.handshakeId=n.id,e.peerId=n.params[0].peerId,e.peerMeta=n.params[0].peerMeta;var r=Object.assign(Object.assign({},n),{method:"session_request"});e._eventManager.trigger(r)})),this.on("wc_sessionUpdate",(function(t,n){t&&e._handleSessionResponse(t.message),e._handleSessionResponse("Session disconnected",n.params[0])}))}},{key:"_initTransport",value:function(){var e=this;this._transport.on("message",(function(t){return e._handleIncomingMessages(t)})),this._transport.on("open",(function(){return e._eventManager.trigger({event:"transport_open",params:[]})})),this._transport.on("close",(function(){return e._eventManager.trigger({event:"transport_close",params:[]})})),this._transport.on("error",(function(){return e._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})})),this._transport.open()}},{key:"_formatUri",value:function(){var e=this.protocol,t=this.handshakeTopic,n=this.version,r=encodeURIComponent(this.bridge),i=this.key;return"".concat(e,":").concat(t,"@").concat(n,"?bridge=").concat(r,"&key=").concat(i)}},{key:"_parseUri",value:function(e){var t=Object(d.y)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");var n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");var r=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:n,bridge:r,key:t.key}}throw new Error("URI format is invalid")}},{key:"_generateKey",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(){var t;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._cryptoLib){e.next=5;break}return e.next=3,this._cryptoLib.generateKey();case 3:return t=e.sent,e.abrupt("return",t);case 5:return e.abrupt("return",null);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_encrypt",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.encrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_decrypt",value:function(){var e=Object(c.a)(Object(u.a)().mark((function e(t){var n,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.decrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getStorageSession",value:function(){var e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}},{key:"_setStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}},{key:"_removeStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.removeSession()}},{key:"_manageStorageSession",value:function(){this._connected?this._setStorageSession():this._removeStorageSession()}},{key:"_registerPushServer",value:function(e){if(!e.url||"string"!==typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!==typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!==typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");var t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",function(){var n=Object(c.a)(Object(u.a)().mark((function n(r,i){var a,o;return Object(u.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=2;break}throw r;case 2:return e.peerMeta&&(a=i.params[0].peerMeta.name,t.peerName=a),n.prev=3,n.next=6,fetch("".concat(e.url,"/new"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 6:return o=n.sent,n.next=9,o.json();case 9:if(n.sent.success){n.next=12;break}throw Error("Failed to register in Push Server");case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(3),Error("Failed to register in Push Server");case 17:case"end":return n.stop()}}),n,null,[[3,14]])})));return function(e,t){return n.apply(this,arguments)}}())}}]),e}(),A=x,k=n(67),S=n(15);function E(e){return O.apply(this,arguments)}function O(){return(O=Object(c.a)(Object(u.a)().mark((function e(t){var n,r,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t||256)/8,r=k.randomBytes(n),i=Object(d.d)(S.arrayToBuffer(r)),e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,t){return T.apply(this,arguments)}function T(){return(T=Object(c.a)(Object(u.a)().mark((function e(t,n){var r,i,a,o,s,c,l;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=S.hexToArray(t.data),i=S.hexToArray(t.iv),a=S.hexToArray(t.hmac),o=S.arrayToHex(a,!1),s=S.concatArrays(r,i),e.next=7,k.hmacSha256Sign(n,s);case 7:if(c=e.sent,l=S.arrayToHex(c,!1),S.removeHexPrefix(o)!==S.removeHexPrefix(l)){e.next=11;break}return e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e,t,n){return j.apply(this,arguments)}function j(){return(j=Object(c.a)(Object(u.a)().mark((function e(t,n,r){var i,a,o,s,c,l,f,h,p,m,g;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=S.bufferToArray(Object(d.b)(n)),e.t0=r,e.t0){e.next=6;break}return e.next=5,E(128);case 5:e.t0=e.sent;case 6:return a=e.t0,o=S.bufferToArray(Object(d.b)(a)),s=S.arrayToHex(o,!1),c=JSON.stringify(t),l=S.utf8ToArray(c),e.next=13,k.aesCbcEncrypt(o,i,l);case 13:return f=e.sent,h=S.arrayToHex(f,!1),p=S.concatArrays(f,o),e.next=18,k.hmacSha256Sign(i,p);case 18:return m=e.sent,g=S.arrayToHex(m,!1),e.abrupt("return",{data:h,hmac:g,iv:s});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t){return I.apply(this,arguments)}function I(){return(I=Object(c.a)(Object(u.a)().mark((function e(t,n){var r,i,a,o,s,c;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.bufferToArray(Object(d.b)(n))){e.next=3;break}throw new Error("Missing key: required for decryption");case 3:return e.next=5,C(t,r);case 5:if(e.sent){e.next=8;break}return e.abrupt("return",null);case 8:return i=S.hexToArray(t.data),a=S.hexToArray(t.iv),e.next=12,k.aesCbcDecrypt(a,r,i);case 12:o=e.sent,s=S.arrayToUtf8(o),e.prev=14,c=JSON.parse(s),e.next=21;break;case 18:return e.prev=18,e.t0=e.catch(14),e.abrupt("return",null);case 21:return e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,null,[[14,18]])})))).apply(this,arguments)}var P=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,i){return Object(a.a)(this,n),t.call(this,{cryptoLib:r,connectorOpts:e,pushServerOpts:i})}return Object(i.a)(n)}(A);t.default=P},function(e,t){e.exports=i,i.strict=a,i.loose=o;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return a(e)||o(e)}function a(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return r[n.call(e)]}},function(e,t,n){(function(r,i){var a;!function(){"use strict";var o="input is invalid type",s="object"===typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"===typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node?u=i:c&&(u=self);var l=!u.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,d=n(82),f=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,h="0123456789abcdef".split(""),p=[4,1024,262144,67108864],m=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],y=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!f||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,n){return function(r){return new D(e,t,e).update(r)[n]()}},x=function(e,t,n){return function(r,i){return new D(e,t,i).update(r)[n]()}},A=function(e,t,n){return function(t,r,i,a){return C["cshake"+e].update(t,r,i,a)[n]()}},k=function(e,t,n){return function(t,r,i,a){return C["kmac"+e].update(t,r,i,a)[n]()}},S=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function B(e,t,n){D.call(this,e,t,n)}D.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var r,i,a=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,d=this.s;l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(a[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=a[c],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},D.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var r=0,i=e.length;if(t)r=i;else for(var a=0;a=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),r+=4)}return r+=this.encode(8*r),this.update(e),r},D.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];o%t===0&&(N(n),a=0)}return i&&(e=n[a],s+=h[e>>4&15]+h[15&e],i>1&&(s+=h[e>>12&15]+h[e>>8&15]),i>2&&(s+=h[e>>20&15]+h[e>>16&15])),s},D.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,o=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);o>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n===0&&N(r)}return a&&(e=s<<2,t=r[o],u[e]=255&t,a>1&&(u[e+1]=t>>8&255),a>2&&(u[e+2]=t>>16&255)),u},B.prototype=new D,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var N=function(e){var t,n,r,i,a,o,s,u,c,l,d,f,h,p,m,v,y,b,w,_,x,A,k,S,E,O,C,T,M,j,R,I,P,L,D,B,N,F,U,z,q,H,V,W,G,K,Y,Z,X,Q,J,$,ee,te,ne,re,ie,ae,oe,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=a^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(l<<1|d>>>31),n=s^(d<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(f<<1|h>>>31),n=c^(h<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],m=e[1],K=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,N=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,O=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ae=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~v&b,e[1]=m^~y&w,e[10]=S^~O&T,e[11]=E^~C&M,e[20]=L^~B&F,e[21]=D^~N&U,e[30]=W^~K&Z,e[31]=G^~Y&X,e[40]=te^~re&ae,e[41]=ne^~ie&oe,e[2]=v^~b&_,e[3]=y^~w&x,e[12]=O^~T&j,e[13]=C^~M&R,e[22]=B^~F&z,e[23]=N^~U&q,e[32]=K^~Z&Q,e[33]=Y^~X&J,e[42]=re^~ae&se,e[43]=ie^~oe&ue,e[4]=b^~_&A,e[5]=w^~x&k,e[14]=T^~j&I,e[15]=M^~R&P,e[24]=F^~z&H,e[25]=U^~q&V,e[34]=Z^~Q&$,e[35]=X^~J&ee,e[44]=ae^~se&ce,e[45]=oe^~ue&le,e[6]=_^~A&p,e[7]=x^~k&m,e[16]=j^~I&S,e[17]=R^~P&E,e[26]=z^~H&L,e[27]=q^~V&D,e[36]=Q^~$&W,e[37]=J^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=A^~p&v,e[9]=k^~m&y,e[18]=I^~S&O,e[19]=P^~E&C,e[28]=H^~L&B,e[29]=V^~D&N,e[38]=$^~W&K,e[39]=ee^~G&Y,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=g[r],e[1]^=g[r+1]};if(l)e.exports=C;else{for(M=0;M0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=Object(l.a)({},e))["Content-Type"]="application/x-binary"),t}function p(e){return e&&void 0!==e.byteLength}var m=function(t){Object(u.a)(l,t);var n=Object(c.a)(l);function l(e,t){var r;Object(o.a)(this,l),r=n.call(this,e);var i=t;if(Array.isArray(t)){if(!t.every(p))throw new TypeError("Array elements must be byte arrays");i=f.concatArrays.apply(void 0,Object(a.a)(t))}else if(!p(i))throw new TypeError("Argument must be byte array");return r.txnBytesToPost=i,r}return Object(s.a)(l,[{key:"path",value:function(){return"/v2/transactions"}},{key:"do",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(){var n,i,a,o=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},i=h(n),t.next=4,this.c.post(this.path(),e.from(this.txnBytesToPost),i);case 4:return a=t.sent,t.abrupt("return",a.body);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),l}(d.a)}.call(this,n(19).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(117);n(104),n(3),n(102),t.PeraWalletConnect=r.PeraWalletConnect,t.closePeraWalletSignTxnToast=r.closePeraWalletSignTxnToast},function(e,t,n){"use strict";var r=n(214).default,i=n(218).default,a=n(133).default,o=n(222),s=n(223),u=n(224);function c(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function d(e,t){return t.decode?s(e):e}function f(e){return Array.isArray(e)?e.sort():"object"===typeof e?f(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function h(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){var t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"===typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((function(t){return d(t,e)})):null===n?n:d(n,e);r[t]=i};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),a=Object.create(null);if("string"!==typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;var o,s=i(e.split("&"));try{for(s.s();!(o=s.n()).done;){var l=o.value,h=u(t.decode?l.replace(/\+/g," "):l,"="),p=r(h,2),g=p[0],v=p[1];v=void 0===v?null:["comma","separator"].includes(t.arrayFormat)?v:d(v,t),n(d(g,t),v,a)}}catch(S){s.e(S)}finally{s.f()}for(var y=0,b=Object.keys(a);y0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),i=r(n,2),a=i[0],o=i[1];return Object.assign({url:a.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:d(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=h(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var u=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(l(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)}},function(e,t,n){(function(t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,n,r){"use strict";r.r(n),r.d(n,"encode",(function(){return T})),r.d(n,"decode",(function(){return V})),r.d(n,"decodeAsync",(function(){return J})),r.d(n,"decodeArrayStream",(function(){return $})),r.d(n,"decodeStream",(function(){return ee})),r.d(n,"Decoder",(function(){return q})),r.d(n,"Encoder",(function(){return O})),r.d(n,"ExtensionCodec",(function(){return k})),r.d(n,"ExtData",(function(){return p})),r.d(n,"EXT_TIMESTAMP",(function(){return v})),r.d(n,"encodeDateToTimeSpec",(function(){return b})),r.d(n,"encodeTimeSpecToTimestamp",(function(){return y})),r.d(n,"decodeTimestampToTimeSpec",(function(){return _})),r.d(n,"encodeTimestampExtension",(function(){return w})),r.d(n,"decodeTimestampExtension",(function(){return x}));var i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},a=function(){for(var e=[],t=0;t=55296&&i<=56319&&r65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d)}else o.push(u);o.length>=4096&&(s+=String.fromCharCode.apply(String,a(o)),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,a(o))),s}var f=o?new TextDecoder:null,h="undefined"!=typeof t?200:0,p=function(e,t){this.type=e,this.data=t};function m(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function g(e,t){var n=e.getInt32(t),r=e.getUint32(t+4),i=nMath.floor(Number.MAX_SAFE_INTEGER/4294967296);return i||a?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r}var v=-1;function y(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var i=new Uint8Array(4);return(t=new DataView(i.buffer)).setUint32(0,n),i}var a=n/4294967296,o=4294967295&n;return i=new Uint8Array(8),(t=new DataView(i.buffer)).setUint32(0,r<<2|3&a),t.setUint32(4,o),i}return i=new Uint8Array(12),(t=new DataView(i.buffer)).setUint32(0,r),m(t,4,n),i}function b(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),i=Math.floor(r/1e9);return{sec:n+i,nsec:r-1e9*i}}function w(e){return e instanceof Date?y(b(e)):null}function _(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:g(t,4),nsec:t.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+e.length)}}function x(e){var t=_(e);return new Date(1e3*t.sec+t.nsec/1e6)}var A={type:v,encode:w,decode:x},k=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(A)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(){function e(e,t,n,r,i,a,o,s){void 0===e&&(e=k.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===o&&(o=!1),void 0===s&&(s=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=i,this.forceFloat32=a,this.ignoreUndefined=o,this.forceIntegerToFloat=s,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.getUint8Array()},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth "+t);null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):"bigint"==typeof e?this.encodebigint(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.encodebigint=function(e){e>=BigInt(0)?e=BigInt(-32)?this.writeU8(224|Number(e)+32):e>=BigInt(-128)?(this.writeU8(208),this.writeI8(Number(e))):e>=BigInt(-32768)?(this.writeU8(209),this.writeI16(Number(e))):e>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(Number(e))):(this.writeU8(211),this.writeBig64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: "+e+" bytes in UTF-8");this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){var t=e.length;if(o&&t>c){var n=s(e);this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),l(e,this.bytes,this.pos),this.pos+=n}else n=s(e),this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),function(e,t,n){for(var r=e.length,i=n,a=0;a>6&31|192;else{if(o>=55296&&o<=56319&&a>12&15|224,t[i++]=o>>6&63|128):(t[i++]=o>>18&7|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128)}t[i++]=63&o|128}else t[i++]=o}}(e,this.bytes,this.pos),this.pos+=n},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: "+Object.prototype.toString.apply(e));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: "+t);this.writeU8(198),this.writeU32(t)}var n=S(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n,r,i=e.length;if(i<16)this.writeU8(144+i);else if(i<65536)this.writeU8(220),this.writeU16(i);else{if(!(i<4294967296))throw new Error("Too large array: "+i);this.writeU8(221),this.writeU32(i)}try{for(var a=E(e),o=a.next();!o.done;o=a.next()){var s=o.value;this.doEncode(s,t+1)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.countWithoutUndefined=function(e,t){var n,r,i=0;try{for(var a=E(t),o=a.next();!o.done;o=a.next())void 0!==e[o.value]&&i++}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.encodeMap=function(e,t){var n,r,i=Object.keys(e);this.sortKeys&&i.sort();var a=this.ignoreUndefined?this.countWithoutUndefined(e,i):i.length;if(a<16)this.writeU8(128+a);else if(a<65536)this.writeU8(222),this.writeU16(a);else{if(!(a<4294967296))throw new Error("Too large map object: "+a);this.writeU8(223),this.writeU32(a)}try{for(var o=E(i),s=o.next();!s.done;s=o.next()){var u=s.value,c=e[u];this.ignoreUndefined&&void 0===c||(this.encodeString(u),this.doEncode(c,t+1))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: "+t);this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),m(this.view,this.pos,e),this.pos+=8},e.prototype.writeBig64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=Number(n/BigInt(4294967296)),i=Number(n%BigInt(4294967296));r<0&&0!==i&&(r-=1),e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e}(),C={};function T(e,t){return void 0===t&&(t=C),new O(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encode(e)}function M(e){return(e<0?"-":"")+"0x"+Math.abs(e).toString(16).padStart(2,"0")}var j=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n0&&e<=this.maxKeyLength},e.prototype.get=function(e,t,n){var r=this.caches[n-1],i=r.length;e:for(var a=0;a=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.get(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var i=d(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),R=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof L?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},B=new DataView(new ArrayBuffer(0)),N=new Uint8Array(B.buffer),F=function(){try{B.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),U=new F("Insufficient data"),z=new j,q=function(){function e(e,t,n,r,i,a,o,s){void 0===e&&(e=k.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===r&&(r=4294967295),void 0===i&&(i=4294967295),void 0===a&&(a=4294967295),void 0===o&&(o=4294967295),void 0===s&&(s=z),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=o,this.keyDecoder=s,this.totalPos=0,this.pos=0,this.view=B,this.bytes=N,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1},e.prototype.setBuffer=function(e){this.bytes=S(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=S(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining()){var t=this.bytes.subarray(this.pos),n=S(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return void 0===e&&(e=1),this.view.byteLength-this.pos>=e},e.prototype.createNoExtraBytesError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra "+(t.byteLength-n)+" of "+t.byteLength+" byte(s) found at buffer["+e+"]")},e.prototype.decode=function(e){return this.reinitializeState(),this.setBuffer(e),this.doDecodeSingleSync()},e.prototype.doDecodeSingleSync=function(){var e=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return e},e.prototype.decodeAsync=function(e){var t,n,r,i;return R(this,void 0,void 0,(function(){var a,o,s,u,c,l,d,f;return I(this,(function(h){switch(h.label){case 0:a=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=P(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(s=n.value,a)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(s);try{o=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof F))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=h.sent(),r={error:u},[3,12];case 7:return h.trys.push([7,,10,11]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,9];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,o]}throw l=(c=this).headByte,d=c.pos,f=c.totalPos,new RangeError("Insufficient data in parcing "+M(l)+" at "+f+" ("+d+" in the current buffer)")}}))}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return D(this,arguments,(function(){var n,r,i,a,o,s,u,c,l;return I(this,(function(d){switch(d.label){case 0:n=t,r=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),i=P(e),d.label=2;case 2:return[4,L(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(o=a.value,t&&0===r)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(o),n&&(r=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,L(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:return d.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((s=d.sent())instanceof F))throw s;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=d.sent(),c={error:u},[3,19];case 14:return d.trys.push([14,,17,18]),a&&!a.done&&(l=i.return)?[4,L(l.call(i))]:[3,16];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(c)throw c.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!==(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!==(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new Error("Unrecognized type byte: "+M(e));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(0===a.type){if(a.array[a.position]=t,a.position++,a.position!==a.size)continue e;i.pop(),t=a.array}else{if(1===a.type){if(o=void 0,"string"!==(o=typeof t)&&"number"!==o)throw new Error("The type of key must be string or number but "+typeof t);a.key=t,a.type=2;continue e}if(a.map[a.key]=t,a.readCount++,a.readCount!==a.size){a.key=null,a.type=1;continue e}i.pop(),t=a.map}}return t}var o},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new Error("Unrecognized array type byte: "+M(e))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Error("Max length exceeded: map length ("+e+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+e+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+e+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLengthh?function(e,t,n){var r=e.subarray(t,t+n);return f.decode(r)}(this.bytes,i,e):d(this.bytes,i,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+e+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(e+t))throw U;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+e+") > maxExtLength ("+this.maxExtLength+")");var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n,r,i=(e=this.view,t=this.pos,n=e.getUint32(t),r=e.getUint32(t+4),n>Math.floor(Number.MAX_SAFE_INTEGER/4294967296)?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r);return this.pos+=8,i},e.prototype.readI64=function(){var e=g(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),H={};function V(e,t){return void 0===t&&(t=H),new q(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}var W=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof G?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}};function Y(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}function Z(e){return null!=e[Symbol.asyncIterator]?e:function(e){return K(this,arguments,(function(){var t,n,r,i;return W(this,(function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,G(t.read())];case 3:return n=a.sent(),r=n.done,i=n.value,r?[4,G(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return Y(i),[4,G(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}var X=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},Q=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]i&&(s=i-r),s))}),[n,h]),s.createElement("ul",{ref:x,"data-testid":t,role:a,"aria-labelledby":c,"aria-hidden":l,"aria-multiselectable":d,className:k},r.length?r.map((function(e,n){return s.createElement(m,{key:e.id,focusedItemRef:e.id===(null==h?void 0:h.id)?A:void 0,testid:t+".item-"+n,option:e,selectedOption:f,focusedOption:h,onSelect:p,onMouseDown:y,onMouseUp:b,onFocus:g,onKeyDown:v,canSelectAlreadySelected:w})})):s.createElement("li",{className:"dropdown-list-item dropdown-list__empty-message-item"},s.createElement("p",{"data-testid":t+".empty-message",className:"dropdown-list__empty-message"},_||"No available options")))}function v(e,t,n){var r=t.findIndex((function(e){return e.id===(n&&n.id)})),i=0;return r>-1?i=r:"top"===e&&(i=t.length-1),i}var y={id:"DROPDOWN_DESELECT_OPTION",title:""},b=/^[a-z0-9]$/i;t.CaretDownIcon=p,t.Dropdown=function(e){var t=e.testid,n=e.header,r=e.placeholder,i=e.customClassName,a=e.position,h=void 0===a?"bottom":a,m=e.role,w=e.isMultiSelect,_=void 0!==w&&w,x=e.options,A=e.selectedOption,k=e.onSelect,S=e.canSelectAlreadySelected,E=void 0!==S&&S,O=e.hasHeaderBoxShadow,C=void 0!==O&&O,T=e.hasDeselectOption,M=void 0===T||T,j=e.hasError,R=e.isDisabled,I=e.isMenuOpenHook,P=e.headerWithoutButton,L=e.customSpinner,D=e.shouldCloseOnSelect,B=void 0===D||D,N=e.onMenuVisibilityChange,F=e.areOptionsFetching,U=void 0!==F&&F,z=e.deselectOptionTitle,q=void 0===z?"":z,H=e.noOptionsMessage,V=e.headerButtonClassName,W=e.shouldJumpToQuery,G=void 0===W||W,K=e.shouldShowEmptyOptions,Y=void 0===K||K,Z=e.canOpenDropdownMenu,X=void 0===Z||Z,Q=o.useRef(null),J=l.__read(o.useState([]),2),$=J[0],ee=J[1],te=o.useState(!1),ne=l.__read(I||te,2),re=ne[0],ie=ne[1],ae=l.__read(o.useState(!1),2),oe=ae[0],se=ae[1],ue=l.__read(o.useState(""),2),ce=ue[0],le=ue[1],de=l.__read(o.useState(v(h,$,A)),2),fe=de[0],he=de[1],pe=l.__read(o.useState(!1),2),me=pe[0],ge=pe[1],ve=u("dropdown",i,{"dropdown--is-open":re,"dropdown--has-selected-option":Boolean(A||q),"dropdown--has-header-box-shadow":C,"dropdown--has-error":j,"dropdown--is-disabled":R||U}),ye=re&&(Y||x.length>0),be=L||s.createElement(d,{customClassName:"dropdown__spinner"});o.useEffect((function(){ee(x.length&&M?l.__spread([l.__assign(l.__assign({},y),{title:q})],x):x)}),[x,q,M]),o.useEffect((function(){var e;if(ce&&re){var t=function(e,t){return e.findIndex((function(e){return e.title.toLocaleLowerCase().startsWith(t.toLocaleLowerCase())}))}($,ce);t>-1&&he(t),e=setTimeout((function(){le("")}),500)}return function(){clearTimeout(e)}}),[ce,$,re]);var we,_e,xe,Ae=s.createElement("div",{className:"dropdown__header-button__default-content"},A&&A.icon,s.createElement("span",{className:"dropdown__header-button__text"},A?A.title:q||r),U?be:s.createElement(p,{"aria-hidden":!0})),ke=s.createElement(f,{testid:t+".header-button",customClassName:u("button","dropdown__header-button",V,{"dropdown__header-button--has-header-box-shadow":C}),isDisabled:R||U,onMouseDown:Ce,onMouseUp:Te,onClick:Oe,tabIndex:-1,"aria-haspopup":m,"aria-expanded":re,shouldFocus:me},n||Ae);return P&&(ke=s.createElement(o.Fragment,null,P)),we=Q.current,_e=Ee,xe=o.useRef(_e),o.useEffect((function(){xe.current=_e}),[_e]),o.useEffect((function(){function e(e){we&&e.target instanceof HTMLElement&&!we.contains(e.target)&&xe.current()}return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[we]),o.useEffect((function(){re?document.documentElement.classList.add("dropdown--is-menu-open"):document.documentElement.classList.remove("dropdown--is-menu-open"),N&&N(re?"open":"closed")}),[re,N]),s.createElement("div",{ref:Q,role:m,className:ve,tabIndex:R?-1:0,onFocus:function(){document.hidden||oe||!X||R||ie(!0)},onBlur:function(){document.hidden||oe||!re||Oe(),ge(!1)},onKeyDown:function(e){var t,n=e.key;switch(n){case c.KEYBOARD_EVENT_KEY.ESCAPE:re&&(e.stopPropagation(),Oe());break;case c.KEYBOARD_EVENT_KEY.ENTER:re&&(e.stopPropagation(),e.preventDefault(),(null===(t=$[fe])||void 0===t?void 0:t.isDisabled)||Se($[fe]));break;case c.KEYBOARD_EVENT_KEY.ARROW_DOWN:e.stopPropagation(),e.preventDefault(),he((fe+1)%$.length);break;case c.KEYBOARD_EVENT_KEY.ARROW_UP:e.stopPropagation(),e.preventDefault(),he((fe||$.length)-1);break;default:G&&n.match(b)&&le(ce+n)}}},ke,s.createElement(g,{testid:t,isVisible:ye,customClassName:h,role:m,options:$,selectedOption:A,focusedOption:$[fe],onSelect:Se,onFocus:function(e){he($.findIndex((function(t){return t.id===e.id})))},onMouseDown:Ce,onMouseUp:Te,ariaLabelledBy:t+".header-button",ariaHidden:!re,isMultiSelect:_,canSelectAlreadySelected:E,noOptionsMessage:H}));function Se(e,t){!R&&e&&("DROPDOWN_DESELECT_OPTION"===e.id?k(null,t):k(e,t),he(v(h,$,e))),B?Oe():ge(!0)}function Ee(){ie(!1)}function Oe(){re?Ee():R||ie(!0)}function Ce(){se(!0)}function Te(){se(!1)}}},function(e,t,n){"use strict";(function(e){var r=n(118).default,i=n(51).default,a=n(52).default,o=n(120).default,s=n(121).default,u=n(122).default,c=n(126).default,l=n(104),d=n(3),f=n(102);function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=h(l),m=h(d),g=h(f);function v(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}var y=function(e){s(n,e);var t=u(n);function n(e,r){var i;a(this,n);for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c-1){var a=r.getAttribute("href");if(a&&-1===a.toLowerCase().indexOf("https:")&&-1===a.toLowerCase().indexOf("http:")&&0!==a.indexOf("//")){var o="".concat(window.location.protocol,"//").concat(window.location.host);if(0===a.indexOf("/"))o+=a;else{var s=window.location.pathname.split("/");s.pop(),o+="".concat(s.join("/"),"/").concat(a)}t.push(o)}else if(0===(null==a?void 0:a.indexOf("//"))){var u=window.location.protocol+a;t.push(u)}else a&&t.push(a)}}return t}function x(e){return new Promise((function(t,n){try{var r=window.open(e,"_blank"),i=0,a=setInterval((function(){if(50===(i+=1))return clearInterval(a),void n(new y({type:"MESSAGE_NOT_RECEIVED"},"Couldn't open Pera Wallet, please try again."));r&&(!0===r.closed&&(clearInterval(a),n(new y({type:"OPERATION_CANCELLED"},"Operation cancelled by user"))),b.sendMessage({message:{type:"TAB_OPEN"},origin:e,targetWindow:r}))}),700);b.setupListener({onReceiveMessage:function(e){"TAB_OPEN_RECEIVED"===e.data.message.type&&(clearInterval(a),t(r))}})}catch(e){n(e)}}))}function A(e){var t=document.createElement("div");return t.setAttribute("id",e),document.body.appendChild(t),t}function k(){A("pera-wallet-redirect-modal-wrapper").innerHTML=""}function S(){A("pera-wallet-sign-txn-toast-wrapper").innerHTML=""}function E(e){var t=document.getElementById(e);t&&t.remove()}var O="PeraWallet.Wallet",C="walletconnect";function T(){return"undefined"==typeof localStorage?void 0:localStorage}function M(e,t){var n;null===(n=T())||void 0===n||n.setItem(O,JSON.stringify({type:t||"pera-wallet",accounts:e,selectedAccount:e[0]}))}function j(){var e,t=null===(e=T())||void 0===e?void 0:e.getItem(O);return t?JSON.parse(t):null}function R(){return new Promise((function(e,t){var n,r;try{null===(n=T())||void 0===n||n.removeItem(C),null===(r=T())||void 0===r||r.removeItem(O),e(void 0)}catch(e){t(e)}}))}function I(e){for(var t=e.slice(),n=t.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1)),i=[t[r],t[n]];t[n]=i[0],t[r]=i[1]}return t}function P(){return v(this,void 0,void 0,r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={bridgeURL:"",webWalletURL:"",isWebWalletAvailable:!1,shouldDisplayNewBadge:!1,shouldUseSound:!0,silent:!1,promoteMobile:!1},e.prev=1,e.next=4,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,t).then((function(e){return e.json()})).then((function(e){return e}))}("https://wc.perawallet.app/config.json",{cache:"no-store"});case 4:void 0!==(n=e.sent).web_wallet&&n.web_wallet_url&&(t.isWebWalletAvailable=n.web_wallet),void 0!==n.display_new_badge&&(t.shouldDisplayNewBadge=n.display_new_badge),void 0!==n.use_sound&&(t.shouldUseSound=n.use_sound),void 0!==n.silent&&(t.silent=n.silent),void 0!==n.promote_mobile&&(t.promoteMobile=n.promote_mobile),t=Object.assign(Object.assign({},t),{bridgeURL:I(n.servers||[])[0]||"",webWalletURL:n.web_wallet_url||""}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))}function L(e){return Uint8Array.from(window.atob(e),(function(e){return e.charCodeAt(0)}))}function D(e,t){return{id:Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3)),jsonrpc:"2.0",method:e,params:t}}function B(){return"undefined"!=typeof navigator}function N(){return B()&&/Android/i.test(navigator.userAgent)}function F(){return B()&&/iPhone|iPod|Android/i.test(navigator.userAgent)}var U=N()?"algorand://":"perawallet-wc://";function z(e){return{ROOT:"https://".concat(e),CONNECT:"https://".concat(e,"/connect"),TRANSACTION_SIGN:"https://".concat(e,"/transaction/sign")}}function q(e){var t=e.method,n=e.signTxnRequestParams,i=e.signer,a=e.chainId,o=e.webWalletURL,s=e.resolve,u=e.reject,c=z(o);!function(){v(this,void 0,void 0,r().mark((function e(){var o,l,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x(c.TRANSACTION_SIGN);case 3:(o=e.sent)&&("SIGN_TXN"===t?l={type:"SIGN_TXN",txn:n}:"SIGN_DATA"===t&&i&&a&&(l={type:"SIGN_DATA",data:n,signer:i,chainId:a}),l&&b.sendMessage({message:l,origin:c.TRANSACTION_SIGN,targetWindow:o})),d=setInterval((function(){!0===(null==o?void 0:o.closed)&&(u(new y({type:"".concat(t,"_CANCELLED")},"Transaction signing is cancelled by user.")),clearInterval(d))}),2e3),b.setupListener({onReceiveMessage:function(e){return function(e){var t=e.event,n=e.newPeraWalletTab,r=e.method,i=e.resolve,a=e.reject;switch(t.data.message.type){case"SIGN_TXN_CALLBACK":null==n||n.close(),i(t.data.message.signedTxns.map((function(e){return L(e.signedTxn)})));break;case"SIGN_DATA_CALLBACK":null==n||n.close(),i(t.data.message.signedData.map((function(e){return L(e.signedData)})));break;case"SIGN_TXN_NETWORK_MISMATCH":a(new y({type:"".concat(r,"_NETWORK_MISMATCH"),detail:t.data.message.error},t.data.message.error||"Network mismatch"));break;case"SIGN_TXN_CALLBACK_ERROR":null==n||n.close(),a(new y({type:"".concat(r,"_CANCELLED")},t.data.message.error));break;case"SESSION_DISCONNECTED":null==n||n.close(),R(),a(new y({type:"SESSION_DISCONNECTED",detail:t.data.message.error},t.data.message.error))}}({event:e,newPeraWalletTab:o,method:t,resolve:s,reject:u})}}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),u(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))}()}function H(e){var t=e.webWalletURL,n=e.chainId,i=e.resolve,a=e.reject,o=z(t);return function(){return v(this,void 0,void 0,r().mark((function e(){var t,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x(o.CONNECT);case 3:(t=e.sent)&&b.sendMessage({message:{type:"CONNECT",data:Object.assign(Object.assign({},w()),{chainId:n})},origin:o.CONNECT,targetWindow:t}),u=setInterval((function(){!0===(null==t?void 0:t.closed)&&(a(new y({type:"CONNECT_CANCELLED"},"Connect is cancelled by user")),clearInterval(u),s())}),2e3),b.setupListener({onReceiveMessage:function(e){return function(e){var t=e.event,n=e.newPeraWalletTab,r=e.resolve,i=e.reject;if(r&&"CONNECT_CALLBACK"===t.data.message.type){var a=t.data.message.data.addresses;M(a,"pera-wallet-web"),r(a),E("pera-wallet-connect-modal-wrapper"),null==n||n.close()}else"CONNECT_NETWORK_MISMATCH"===t.data.message.type&&(i(new y({type:"CONNECT_NETWORK_MISMATCH",detail:t.data.message.error},t.data.message.error||"Your wallet is connected to a different network to this dApp. Update your wallet to the correct network (MainNet or TestNet) to continue.")),E("pera-wallet-connect-modal-wrapper"),null==n||n.close())}({event:e,newPeraWalletTab:t,resolve:i,reject:a})}}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),s(),a(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))};function s(){E("pera-wallet-connect-modal-wrapper")}}function V(e){var t,n=e.isWebWalletAvailable,r=e.shouldDisplayNewBadge,i=e.shouldUseSound,a=e.compactMode,o=e.promoteMobile;return{open:(t={isWebWalletAvailable:n,shouldDisplayNewBadge:r,shouldUseSound:i,compactMode:a,promoteMobile:o},function(e){if(!document.getElementById("pera-wallet-connect-modal-wrapper")){var n=A("pera-wallet-connect-modal-wrapper"),r="".concat(e,"&algorand=true"),i=t.isWebWalletAvailable,a=t.shouldDisplayNewBadge,o=t.shouldUseSound,s=t.compactMode,u=t.promoteMobile;n.innerHTML='')}}),close:function(){return E("pera-wallet-connect-modal-wrapper")}}}"undefined"!=typeof window&&(window.global=window,window.Buffer=window.Buffer||n(19).Buffer,Promise.resolve().then((function(){return n(236)}))),t.PERA_DOWNLOAD_URL="https://perawallet.app/download/",t.PERA_WALLET_APP_DEEP_LINK=U,t.PERA_WALLET_CONNECT_MODAL_ID="pera-wallet-connect-modal-wrapper",t.PERA_WALLET_MODAL_CLASSNAME="pera-wallet-modal",t.PERA_WALLET_REDIRECT_MODAL_ID="pera-wallet-redirect-modal-wrapper",t.PERA_WALLET_SIGN_TXN_MODAL_ID="pera-wallet-sign-txn-modal-wrapper",t.PERA_WALLET_SIGN_TXN_TOAST_ID="pera-wallet-sign-txn-toast-wrapper",t.PeraWalletConnect=function(){function t(e){a(this,t),this.bridge=(null==e?void 0:e.bridge)||"",this.connector=null,this.shouldShowSignTxnToast=void 0===(null==e?void 0:e.shouldShowSignTxnToast)||e.shouldShowSignTxnToast,this.chainId=null==e?void 0:e.chainId,this.compactMode=(null==e?void 0:e.compactMode)||!1}return i(t,[{key:"platform",get:function(){return function(){var e=j(),t=null;return"pera-wallet"===(null==e?void 0:e.type)?t="mobile":"pera-wallet-web"===(null==e?void 0:e.type)&&(t="web"),t}()}},{key:"isConnected",get:function(){var e;return"mobile"===this.platform?!!this.connector:"web"===this.platform&&!!(null===(e=j())||void 0===e?void 0:e.accounts.length)}},{key:"connect",value:function(){var e=this;return new Promise((function(t,n){return v(e,void 0,void 0,r().mark((function e(){var i,a,o,s,u,c,l,d,f,h=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(null===(i=this.connector)||void 0===i?void 0:i.connected)){e.next=9;break}return e.prev=2,e.next=5,this.connector.killSession();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:return e.next=11,P();case 11:return a=e.sent,o=a.isWebWalletAvailable,s=a.bridgeURL,u=a.webWalletURL,c=a.shouldDisplayNewBadge,l=a.shouldUseSound,d=a.promoteMobile,f=H({resolve:t,reject:n,webWalletURL:u,chainId:this.chainId,isCompactMode:this.compactMode}),o&&(window.onWebWalletConnect=f),this.connector=new p.default({bridge:this.bridge||s||"https://bridge.walletconnect.org",qrcodeModal:V({isWebWalletAvailable:o,shouldDisplayNewBadge:c,shouldUseSound:l,compactMode:this.compactMode,promoteMobile:d})}),e.next=23,this.connector.createSession({chainId:this.chainId||4160});case 23:!function(e,t){var n,r,i,a,o=document.getElementById(e),s=null===(r=null===(n=null==o?void 0:o.querySelector(e.replace("-wrapper","")))||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.querySelector(".pera-wallet-modal"),u=null===(a=null===(i=null==s?void 0:s.querySelector("pera-wallet-modal-header"))||void 0===i?void 0:i.shadowRoot)||void 0===a?void 0:a.getElementById("pera-wallet-modal-header-close-button");null==u||u.addEventListener("click",(function(){t(),E(e)}))}("pera-wallet-connect-modal-wrapper",(function(){return n(new y({type:"CONNECT_MODAL_CLOSED"},"Connect modal is closed by user"))})),this.connector.on("connect",(function(e,r){var i,a;e&&n(e),t((null===(i=h.connector)||void 0===i?void 0:i.accounts)||[]),M((null===(a=h.connector)||void 0===a?void 0:a.accounts)||[])})),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),console.log(e.t1),n(new y({type:"SESSION_CONNECT",detail:e.t1},e.t1.message||"There was an error while connecting to Pera Wallet"));case 30:case"end":return e.stop()}}),e,this,[[0,27],[2,7]])})))}))}},{key:"reconnectSession",value:function(){var e=this;return new Promise((function(t,n){return v(e,void 0,void 0,r().mark((function e(){var i,a,o,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o=j()){e.next=4;break}return e.abrupt("return",void t([]));case 4:if("pera-wallet-web"!==(null==o?void 0:o.type)){e.next=10;break}return e.next=7,P();case 7:s=e.sent,s.isWebWalletAvailable?t(o.accounts||[]):n(new y({type:"SESSION_RECONNECT",detail:"Pera Web is not available"},"Pera Web is not available"));case 10:this.connector&&t(this.connector.accounts||[]),this.bridge=(null===(i=function(){var e,t=null===(e=T())||void 0===e?void 0:e.getItem(C);return t?JSON.parse(t):null}())||void 0===i?void 0:i.bridge)||"",this.bridge&&(this.connector=new p.default({bridge:this.bridge}),t((null===(a=this.connector)||void 0===a?void 0:a.accounts)||[])),this.isConnected||t([]),e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(0),e.next=17,this.disconnect();case 17:n(new y({type:"SESSION_RECONNECT",detail:e.t0},e.t0.message||"There was an error while reconnecting to Pera Wallet"));case 18:case"end":return e.stop()}}),e,this,[[0,13]])})))}))}},{key:"disconnect",value:function(){var e;return v(this,void 0,void 0,r().mark((function t(){var n,i=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isConnected&&"mobile"===this.platform&&(null==(n=null===(e=this.connector)||void 0===e?void 0:e.killSession())||n.then((function(){i.connector=null}))),t.next=3,R();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"signTransactionWithMobile",value:function(e){return v(this,void 0,void 0,r().mark((function t(){var n,i,a,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=D("algo_signTxn",[e]),t.prev=1,t.prev=2,t.next=5,P();case 5:return i=t.sent,a=i.silent,t.next=9,this.connector.sendCustomRequest(n,{forcePushNotification:!a});case 9:return o=t.sent.filter(Boolean),t.abrupt("return","string"==typeof o[0]?o.map(L):o.map((function(e){return Uint8Array.from(e)})));case 13:return t.prev=13,t.t0=t.catch(2),t.next=17,Promise.reject(new y({type:"SIGN_TRANSACTIONS",detail:t.t0},t.t0.message||"Failed to sign transaction"));case 17:return t.abrupt("return",t.sent);case 18:return t.prev=18,E("pera-wallet-redirect-modal-wrapper"),E("pera-wallet-sign-txn-toast-wrapper"),t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[1,,18,21],[2,13]])})))}},{key:"signTransactionWithWeb",value:function(e,t){return new Promise((function(n,r){return q({signTxnRequestParams:e,webWalletURL:t,method:"SIGN_TXN",resolve:n,reject:r})}))}},{key:"signDataWithMobile",value:function(e){var t=e.data,n=e.signer,i=e.chainId;return v(this,void 0,void 0,r().mark((function e(){var a,o,s,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=D("algo_signData",t.map((function(e){return Object.assign(Object.assign({},e),{signer:n,chainId:i})}))),e.prev=1,e.prev=2,e.next=5,P();case 5:return o=e.sent,s=o.silent,e.next=9,this.connector.sendCustomRequest(a,{forcePushNotification:!s});case 9:return u=e.sent.filter(Boolean),e.abrupt("return","string"==typeof u[0]?u.map(L):u.map((function(e){return Uint8Array.from(e)})));case 13:return e.prev=13,e.t0=e.catch(2),e.next=17,Promise.reject(new y({type:"SIGN_TRANSACTIONS",detail:e.t0},e.t0.message||"Failed to sign transaction"));case 17:return e.abrupt("return",e.sent);case 18:return e.prev=18,E("pera-wallet-redirect-modal-wrapper"),E("pera-wallet-sign-txn-toast-wrapper"),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,,18,21],[2,13]])})))}},{key:"signDataWithWeb",value:function(e){var t=e.data,n=e.signer,r=e.chainId,i=e.webWalletURL;return new Promise((function(e,a){return q({method:"SIGN_DATA",signTxnRequestParams:t,signer:n,chainId:r,webWalletURL:i,resolve:e,reject:a})}))}},{key:"signTransaction",value:function(t,n){return v(this,void 0,void 0,r().mark((function i(){var a,o,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("mobile"!==this.platform||(F()?k():!F()&&this.shouldShowSignTxnToast&&S(),this.connector)){r.next=2;break}throw new Error("PeraWalletConnect was not initialized correctly.");case 2:if(a=t.flatMap((function(t){return t.map((function(t){return function(t,n){var r;n&&!(t.signers||[]).includes(n)&&(r=[]);var i,a={txn:(i=t.txn,e.from(m.default.encodeUnsignedTransaction(i)).toString("base64"))};return Array.isArray(r)&&(a.signers=r),t.authAddr&&(a.authAddr=t.authAddr),t.message&&(a.message=t.message),t.msig&&(a.msig=t.msig),a}(t,n)}))})),"web"!==this.platform){r.next=9;break}return r.next=6,P();case 6:return o=r.sent,s=o.webWalletURL,r.abrupt("return",this.signTransactionWithWeb(a,s));case 9:return r.abrupt("return",this.signTransactionWithMobile(a));case 10:case"end":return r.stop()}}),i,this)})))}},{key:"signData",value:function(t,n){return v(this,void 0,void 0,r().mark((function i(){var a,o,s,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=this.chainId||4160,"mobile"!==this.platform||(F()?k():!F()&&this.shouldShowSignTxnToast&&S(),this.connector)){r.next=3;break}throw new Error("PeraWalletConnect was not initialized correctly.");case 3:if("web"!==this.platform){r.next=9;break}return r.next=6,P();case 6:return o=r.sent,s=o.webWalletURL,r.abrupt("return",this.signDataWithWeb({data:t,signer:n,chainId:a,webWalletURL:s}));case 9:return u=t.map((function(t){return Object.assign(Object.assign({},t),{data:e.from(t.data).toString("base64")})})),r.abrupt("return",this.signDataWithMobile({data:u,signer:n,chainId:a}));case 11:case"end":return r.stop()}}),i,this)})))}}]),t}(),t.closePeraWalletSignTxnToast=function(){E("pera-wallet-sign-txn-toast-wrapper")},t.detectBrowser=function(){if(!B())return null;var e=navigator.userAgent;return e.match(/DuckDuckGo/i)?"DuckDuckGo":e.match(/OPX/i)?"Opera GX":navigator.brave?"Brave":g.default.getParser(navigator.userAgent).getBrowserName()},t.isAndroid=N,t.isIOS=function(){return B()&&/iPhone|iPad|iPod/i.test(navigator.userAgent)},t.isMobile=F,t.removeModalWrapperFromDOM=E}).call(this,n(19).Buffer)},function(e,t,n){var r=n(119).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),o=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=d;var h={};function p(){}function m(){}function g(){}var v={};l(v,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(O([])));b&&b!==n&&a.call(b,s)&&(v=b);var w=g.prototype=p.prototype=Object.create(v);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,o,s,u){var c=f(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function A(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(100);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(123),i=n(124),a=n(125);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(119).default,i=n(120);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(123),i=n(100),a=n(207),o=n(208);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(31);n.o(r,"payloadId")&&n.d(t,"payloadId",(function(){return r.payloadId}));r.isNode},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(55),n(30);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=Date.now()*Math.pow(10,e),n=Math.floor(Math.random()*Math.pow(10,e));return t+n}},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||e===t?t:t-1}function y(e){for(var t,n,r=1,i=e.length,a=e[0]+"";rc^n?1:-1;for(s=(u=i.length)<(c=a.length)?u:c,o=0;oa[o]^n?1:-1;return u==c?0:u>c^n?1:-1}function w(e,t,n,r){if(en||e!==u(e))throw Error(c+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return v(e.e/f)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function A(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tM?v.c=v.e=null:e.e=10;d/=10,c++);return void(c>M?v.c=v.e=null:(v.e=c,v.c=[e]))}g=String(e)}else{if(!o.test(g=String(e)))return i(v,g,p);v.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(c=g.indexOf("."))>-1&&(g=g.replace(".","")),(d=g.search(/e/i))>0?(c<0&&(c=d),c+=+g.slice(d+1),g=g.substring(0,d)):c<0&&(c=g.length)}else{if(w(t,2,L.length,"Base"),10==t&&D)return z(v=new B(e),S+v.e+1,E);if(g=String(e),p="number"==typeof e){if(0*e!=0)return i(v,g,p,t);if(v.s=1/e<0?(g=g.slice(1),-1):1,B.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else v.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=L.slice(0,t),c=d=0,m=g.length;dc){c=m;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,d=-1,c=0;continue}return i(v,String(e),p,t)}p=!1,(c=(g=r(g,t,10,v.s)).indexOf("."))>-1?g=g.replace(".",""):c=g.length}for(d=0;48===g.charCodeAt(d);d++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(d,++m)){if(m-=d,p&&B.DEBUG&&m>15&&(e>h||e!==u(e)))throw Error(l+v.s*e);if((c=c-d-1)>M)v.c=v.e=null;else if(c=C)?x(u,o):A(u,o,"0");else if(a=(e=z(new B(e),t,n)).e,s=(u=y(e.c)).length,1==r||2==r&&(t<=a||a<=O)){for(;ss){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=a-s)>0)for(a+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function F(e,t){for(var n,r=1,i=new B(e[0]);r=10;i/=10,r++);return(n=r+n*f-1)>M?e.c=e.e=null:n=10;c/=10,i++);if((a=t-i)<0)a+=f,o=t,m=(l=g[h=0])/v[i-o-1]%10|0;else if((h=s((a+1)/f))>=g.length){if(!r)break e;for(;g.length<=h;g.push(0));l=m=0,i=1,o=(a%=f)-f+1}else{for(l=c=g[h],i=1;c>=10;c/=10,i++);m=(o=(a%=f)-f+i)<0?0:l/v[i-o-1]%10|0}if(r=r||t<0||null!=g[h+1]||(o<0?l:l%v[i-o-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(a>0?o>0?l/v[i-o]:0:g[h-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=v[(f-t%f)%f],e.e=-t||0):g[0]=e.e=0,e;if(0==a?(g.length=h,c=1,h--):(g.length=h+1,c=v[f-a],g[h]=o>0?u(l/v[i-o]%v[o])*c:0),r)for(;;){if(0==h){for(a=1,o=g[0];o>=10;o/=10,a++);for(o=g[0]+=c,c=1;o>=10;o/=10,c++);a!=c&&(e.e++,g[0]==d&&(g[0]=1));break}if(g[h]+=c,g[h]!=d)break;g[h--]=0,c=1}for(a=g.length;0===g[--a];g.pop());}e.e>M?e.c=e.e=null:e.e=C?x(t,n):A(t,n,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(n=e[t],0,g,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(n=e[t],0,8,t),E=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(w(n[0],-g,0,t),w(n[1],0,g,t),O=n[0],C=n[1]):(w(n,-g,g,t),O=-(C=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)w(n[0],-g,-1,t),w(n[1],1,g,t),T=n[0],M=n[1];else{if(w(n,-g,g,t),!n)throw Error(c+t+" cannot be zero: "+n);T=-(M=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!n,Error(c+"crypto unavailable");j=n}else j=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(n=e[t],0,9,t),R=n),e.hasOwnProperty(t="POW_PRECISION")&&(w(n=e[t],0,g,t),I=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(c+t+" not an object: "+n);P=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);D="0123456789"==n.slice(0,10),L=n}}return{DECIMAL_PLACES:S,ROUNDING_MODE:E,EXPONENTIAL_AT:[O,C],RANGE:[T,M],CRYPTO:j,MODULO_MODE:R,POW_PRECISION:I,FORMAT:P,ALPHABET:L}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===a||-1===a)&&i>=-g&&i<=g&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%f)<1&&(t+=f),String(r[0]).length==t){for(t=0;t=d||n!==u(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(c+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return F(arguments,a.lt)},B.minimum=B.min=function(){return F(arguments,a.gt)},B.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return u(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,a,o,l=0,d=[],h=new B(k);if(null==e?e=S:w(e,0,g),a=s(e/f),j)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(a*=2));l>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(d.push(o%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw j=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(a*=7);l=9e15?crypto.randomBytes(7).copy(n,l):(d.push(o%1e14),l+=7);l=a/7}if(!j)for(;l=10;o/=10,l++);ln-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(r,i,a,o,s){var u,c,l,d,f,h,p,m,g=r.indexOf("."),v=S,b=E;for(g>=0&&(d=I,I=0,r=r.replace(".",""),h=(m=new B(i)).pow(r.length-g),I=d,m.c=t(A(y(h.c),h.e,"0"),10,a,e),m.e=m.c.length),l=d=(p=t(r,i,a,s?(u=L,e):(u=e,L))).length;0==p[--d];p.pop());if(!p[0])return u.charAt(0);if(g<0?--l:(h.c=p,h.e=l,h.s=o,p=(h=n(h,m,v,b,a)).c,f=h.r,l=h.e),g=p[c=l+v+1],d=a/2,f=f||c<0||null!=p[c+1],f=b<4?(null!=g||f)&&(0==b||b==(h.s<0?3:2)):g>d||g==d&&(4==b||f||6==b&&1&p[c-1]||b==(h.s<0?8:7)),c<1||!p[0])r=f?A(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=c,f)for(--a;++p[--c]>a;)p[c]=0,c||(++l,p=[1].concat(p));for(d=p.length;!p[--d];);for(g=0,r="";g<=d;r+=u.charAt(p[g++]));r=A(r,l,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,a,o,s=0,u=e.length,c=t%m,l=t/m|0;for(e=e.slice();u--;)s=((i=c*(a=e[u]%m)+(r=l*a+(o=e[u]/m|0)*c)%m*m+s)/n|0)+(r/m|0)+l*o,e[u]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,h,p,m,g,y,b,w,_,x,A,k,S,E,O,C,T=r.s==i.s?1:-1,M=r.c,j=i.c;if(!M||!M[0]||!j||!j[0])return new B(r.s&&i.s&&(M?!j||M[0]!=j[0]:j)?M&&0==M[0]||!j?0*T:T/0:NaN);for(w=(b=new B(T)).c=[],T=a+(l=r.e-i.e)+1,s||(s=d,l=v(r.e/f)-v(i.e/f),T=T/f|0),h=0;j[h]==(M[h]||0);h++);if(j[h]>(M[h]||0)&&l--,T<0)w.push(1),p=!0;else{for(S=M.length,O=j.length,h=0,T+=2,(m=u(s/(j[0]+1)))>1&&(j=e(j,m,s),M=e(M,m,s),O=j.length,S=M.length),k=O,x=(_=M.slice(0,O)).length;x=s/2&&E++;do{if(m=0,(c=t(j,_,O,x))<0){if(A=_[0],O!=x&&(A=A*s+(_[1]||0)),(m=u(A/E))>1)for(m>=s&&(m=s-1),y=(g=e(j,m,s)).length,x=_.length;1==t(g,_,y,x);)m--,n(g,O=10;T/=10,h++);z(b,a+(b.e=h+l*f-1)+1,o,p)}else b.e=l,b.r=+p;return b}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,u){var l,d=s?o:o.replace(i,"");if(r.test(d))a.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,(function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=l?e:t})),u&&(l=u,d=d.replace(t,"$1").replace(n,"0.$1")),o!=d))return new B(d,l);if(B.DEBUG)throw Error(c+"Not a"+(u?" base "+u:"")+" number: "+o);a.s=null}a.c=a.e=null}}(),a.absoluteValue=a.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},a.comparedTo=function(e,t){return b(this,new B(e,t))},a.decimalPlaces=a.dp=function(e,t){var n,r,i,a=this;if(null!=e)return w(e,0,g),null==t?t=E:w(t,0,8),z(new B(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-v(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},a.dividedBy=a.div=function(e,t){return n(this,new B(e,t),S,E)},a.dividedToIntegerBy=a.idiv=function(e,t){return n(this,new B(e,t),0,1)},a.exponentiatedBy=a.pow=function(e,t){var n,r,i,a,o,l,d,h,p=this;if((e=new B(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+q(e));if(null!=t&&(t=new B(t)),o=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new B(Math.pow(+q(p),o?e.s*(2-_(e)):+q(e))),t?h.mod(t):h;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(r=!l&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||o&&p.c[1]>=24e7:p.c[0]<8e13||o&&p.c[0]<=9999975e7)))return a=p.s<0&&_(e)?-0:0,p.e>-1&&(a=1/a),new B(l?1/a:a);I&&(a=s(I/f+2))}for(o?(n=new B(.5),l&&(e.s=1),d=_(e)):d=(i=Math.abs(+q(e)))%2,h=new B(k);;){if(d){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=u(i/2)))break;d=i%2}else if(z(e=e.times(n),e.e+1,1),e.e>14)d=_(e);else{if(0===(i=+q(e)))break;d=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?h:(l&&(h=k.div(h)),t?h.mod(t):a?z(h,I,E,undefined):h)},a.integerValue=function(e){var t=new B(this);return null==e?e=E:w(e,0,8),z(t,t.e+1,e)},a.isEqualTo=a.eq=function(e,t){return 0===b(this,new B(e,t))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(e,t){return b(this,new B(e,t))>0},a.isGreaterThanOrEqualTo=a.gte=function(e,t){return 1===(t=b(this,new B(e,t)))||0===t},a.isInteger=function(){return!!this.c&&v(this.e/f)>this.c.length-2},a.isLessThan=a.lt=function(e,t){return b(this,new B(e,t))<0},a.isLessThanOrEqualTo=a.lte=function(e,t){return-1===(t=b(this,new B(e,t)))||0===t},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(e,t){var n,r,i,a,o=this,s=o.s;if(t=(e=new B(e,t)).s,!s||!t)return new B(NaN);if(s!=t)return e.s=-t,o.plus(e);var u=o.e/f,c=e.e/f,l=o.c,h=e.c;if(!u||!c){if(!l||!h)return l?(e.s=-t,e):new B(h?o:NaN);if(!l[0]||!h[0])return h[0]?(e.s=-t,e):new B(l[0]?o:3==E?-0:0)}if(u=v(u),c=v(c),l=l.slice(),s=u-c){for((a=s<0)?(s=-s,i=l):(c=u,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=l.length)<(t=h.length))?s:t,s=t=0;t0)for(;t--;l[n++]=0);for(t=d-1;r>s;){if(l[--r]=0;){for(n=0,p=A[i]%w,g=A[i]/w|0,a=i+(o=u);a>i;)n=((c=p*(c=x[--o]%w)+(s=g*c+(l=x[o]/w|0)*p)%w*w+y[a]+n)/b|0)+(s/w|0)+g*l,y[a--]=c%b;y[a]=n}return n?++r:y.splice(0,1),U(e,y,r)},a.negated=function(){var e=new B(this);return e.s=-e.s||null,e},a.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new B(e,t)).s,!i||!t)return new B(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/f,o=e.e/f,s=r.c,u=e.c;if(!a||!o){if(!s||!u)return new B(i/0);if(!s[0]||!u[0])return u[0]?e:new B(s[0]?r:0*i)}if(a=v(a),o=v(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=u.length)<0&&(n=u,u=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/d|0,s[t]=d===s[t]?0:s[t]%d;return i&&(s=[i].concat(s),++o),U(e,s,o)},a.precision=a.sd=function(e,t){var n,r,i,a=this;if(null!=e&&e!==!!e)return w(e,1,g),null==t?t=E:w(t,0,8),z(new B(a),e,t);if(!(n=a.c))return null;if(r=(i=n.length-1)*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},a.shiftedBy=function(e){return w(e,-9007199254740991,h),this.times("1e"+e)},a.squareRoot=a.sqrt=function(){var e,t,r,i,a,o=this,s=o.c,u=o.s,c=o.e,l=S+4,d=new B("0.5");if(1!==u||!s||!s[0])return new B(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+q(o)))||u==1/0?(((t=y(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=v((c+1)/2)-(c<0||c%2),r=new B(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new B(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(a=r,r=d.times(a.plus(n(o,a,l,1))),y(a.c).slice(0,u)===(t=y(r.c)).slice(0,u)){if(r.e0&&m>0){for(a=m%s||s,d=p.substr(0,a);a0&&(d+=l+p.slice(a)),h&&(d="-"+d)}r=f?d+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):d}return(n.prefix||"")+r+(n.suffix||"")},a.toFraction=function(e){var t,r,i,a,o,s,u,l,d,h,m,g,v=this,b=v.c;if(null!=e&&(!(u=new B(e)).isInteger()&&(u.c||1!==u.s)||u.lt(k)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+q(u));if(!b)return new B(v);for(t=new B(k),d=r=new B(k),i=l=new B(k),g=y(b),o=t.e=g.length-v.e-1,t.c[0]=p[(s=o%f)<0?f+s:s],e=!e||u.comparedTo(t)>0?o>0?t:d:u,s=M,M=1/0,u=new B(g),l.c[0]=0;h=n(u,t,0,1),1!=(a=r.plus(h.times(i))).comparedTo(e);)r=i,i=a,d=l.plus(h.times(a=d)),l=a,t=u.minus(h.times(a=t)),u=a;return a=n(e.minus(r),i,0,1),l=l.plus(a.times(d)),r=r.plus(a.times(i)),l.s=d.s=v.s,m=n(d,i,o*=2,E).minus(v).abs().comparedTo(n(l,r,o,E).minus(v).abs())<1?[d,i]:[l,r],M=s,m},a.toNumber=function(){return+q(this)},a.toPrecision=function(e,t){return null!=e&&w(e,1,g),N(this,e,t,2)},a.toString=function(e){var t,n=this,i=n.s,a=n.e;return null===a?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=a<=O||a>=C?x(y(n.c),a):A(y(n.c),a,"0"):10===e&&D?t=A(y((n=z(new B(n),S+a+1,E)).c),n.e,"0"):(w(e,2,L.length,"Base"),t=r(A(y(n.c),a,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},a.valueOf=a.toJSON=function(){return q(this)},a._isBigNumber=!0,null!=t&&B.set(t),B}(),a.default=a.BigNumber=a,void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){(function(t){var r=n(133).default,i=n(118).default,a=n(235).default,o=n(90).default,s=n(107).setSendTransactionHeaders;e.exports={Algod:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=n;"string"===typeof d&&(d={"X-Algo-API-Token":d});var f=new o(d,u,c,l);function h(e){return void 0!==e.noteb64&&null!==e.noteb64&&(e.note=t.from(e.noteb64,"base64")),e}this.status=a(i().mark((function e(){var t,n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/v1/status",{},t);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e)}))),this.healthCheck=a(i().mark((function e(){var t,n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/health",{},t);case 3:if((n=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(n.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e)}))),this.statusAfterBlock=function(){var e=a(i().mark((function e(t){var n,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,f.get("/v1/status/wait-for-block-after/".concat(t),{},n);case 5:return r=e.sent,e.abrupt("return",r.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.pendingTransactions=function(){var e=a(i().mark((function e(t){var n,r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o.length>1&&void 0!==o[1]?o[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("maxTxns should be an integer");case 3:return e.next=5,f.get("/v1/transactions/pending",{max:t},n);case 5:if(200===(r=e.sent).statusCode&&void 0!==r.body.truncatedTxns.transactions)for(a=0;a0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/versions",{},t);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e)}))),this.ledgerSupply=a(i().mark((function e(){var t,n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/v1/ledger/supply",{},t);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e)}))),this.transactionByAddress=function(){var e=a(i().mark((function e(t){var n,r,a,o,s,u,c=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:null,r=c.length>2&&void 0!==c[2]?c[2]:null,a=c.length>3&&void 0!==c[3]?c[3]:null,o=c.length>4&&void 0!==c[4]?c[4]:{},null===n||Number.isInteger(n)){e.next=6;break}throw Error("first round should be an integer");case 6:if(null===r||Number.isInteger(r)){e.next=8;break}throw Error("last round should be an integer");case 8:return e.next=10,f.get("/v1/account/".concat(t,"/transactions"),{firstRound:n,lastRound:r,max:a},o);case 10:if(200===(s=e.sent).statusCode&&void 0!==s.body.transactions)for(u=0;u3&&void 0!==c[3]?c[3]:null,o=c.length>4&&void 0!==c[4]?c[4]:{},e.next=4,f.get("/v1/account/".concat(t,"/transactions"),{fromDate:n,toDate:r,max:a},o);case 4:if(200===(s=e.sent).statusCode&&void 0!==s.body.transactions)for(u=0;u1&&void 0!==a[1]?a[1]:{},e.next=3,f.get("/v1/transaction/".concat(t),{},n);case 3:return 200===(r=e.sent).statusCode&&(r.body=h(r.body)),e.abrupt("return",r.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.transactionInformation=function(){var e=a(i().mark((function e(t,n){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},e.next=3,f.get("/v1/account/".concat(t,"/transaction/").concat(n),{},r);case 3:return 200===(a=e.sent).statusCode&&(a.body=h(a.body)),e.abrupt("return",a.body);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.pendingTransactionInformation=function(){var e=a(i().mark((function e(t){var n,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,f.get("/v1/transactions/pending/".concat(t),{},n);case 3:return 200===(r=e.sent).statusCode&&(r.body=h(r.body)),e.abrupt("return",r.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.accountInformation=function(){var e=a(i().mark((function e(t){var n,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,f.get("/v1/account/".concat(t),{},n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.assetInformation=function(){var e=a(i().mark((function e(t){var n,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,f.get("/v1/asset/".concat(t),{},n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.suggestedFee=a(i().mark((function e(){var t,n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/v1/transactions/fee",{},t);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e)}))),this.sendRawTransaction=function(){var e=a(i().mark((function e(n){var r,a,o,u=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},a=s(r),e.next=4,f.post("/v1/transactions",t.from(n),a);case 4:return o=e.sent,e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.sendRawTransactions=function(){var e=a(i().mark((function e(n){var a,o,u,c,l,d=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>1&&void 0!==d[1]?d[1]:{},u=s(o),c=(a=Array.prototype).concat.apply(a,r(n.map((function(e){return Array.from(e)})))),e.next=5,f.post("/v1/transactions",t.from(c),u);case 5:return l=e.sent,e.abrupt("return",l.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getTransactionParams=a(i().mark((function e(){var t,n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,f.get("/v1/transactions/params",{},t);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e)}))),this.suggestParams=a(i().mark((function t(){var n,r,a=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},t.next=3,e.getTransactionParams(n);case 3:return r=t.sent,t.abrupt("return",{flatFee:!1,fee:r.fee,firstRound:r.lastRound,lastRound:r.lastRound+1e3,genesisID:r.genesisID,genesisHash:r.genesishashb64});case 5:case"end":return t.stop()}}),t)}))),this.block=function(){var e=a(i().mark((function e(t){var n,r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o.length>1&&void 0!==o[1]?o[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,f.get("/v1/block/".concat(t),{},n);case 5:if(200===(r=e.sent).statusCode&&void 0!==r.body.txns.transactions)for(a=0;a1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7833,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,c),n.call(this,"X-KMD-API-Token",e,t,r,i)}return Object(o.a)(c,[{key:"versions",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/versions");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"listWallets",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/v1/wallets");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"createWallet",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i){var a,o,s,u,c=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:new Uint8Array,o=c.length>3&&void 0!==c[3]?c[3]:"sqlite",s={wallet_name:n,wallet_driver_name:o,wallet_password:i,master_derivation_key:e.from(a).toString("base64")},t.next=5,this.c.post("/v1/wallet",s);case 5:return u=t.sent,t.abrupt("return",u.body);case 7:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"initWalletHandle",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n){var i,a;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={wallet_id:t,wallet_password:n},e.next=3,this.c.post("/v1/wallet/init",i);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"releaseWalletHandle",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/release",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renewWalletHandle",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/renew",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renameWallet",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var a,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_id:t,wallet_password:n,wallet_name:i},e.next=3,this.c.post("/v1/wallet/rename",a);case 3:return o=e.sent,e.abrupt("return",o.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"getWallet",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/info",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"exportMasterDerivationKey",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i){var a,o;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={wallet_handle_token:n,wallet_password:i},t.next=3,this.c.post("/v1/master-key/export",a);case 3:return o=t.sent,t.abrupt("return",{master_derivation_key:e.from(o.body.master_derivation_key,"base64")});case 5:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"importKey",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i){var a,o;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={wallet_handle_token:n,private_key:e.from(i).toString("base64")},t.next=3,this.c.post("/v1/key/import",a);case 3:return o=t.sent,t.abrupt("return",o.body);case 5:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"exportKey",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i,a){var o,s;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={wallet_handle_token:n,address:a,wallet_password:i},t.next=3,this.c.post("/v1/key/export",o);case 3:return s=t.sent,t.abrupt("return",{private_key:e.from(s.body.private_key,"base64")});case 5:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"generateKey",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t,display_mnemonic:!1},e.next=3,this.c.post("/v1/key",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"deleteKey",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var a,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:i,wallet_password:n},e.next=3,this.c.delete("/v1/key",a);case 3:return o=e.sent,e.abrupt("return",o.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"listKeys",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/key/list",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i,a){var o,s,u;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.instantiateTxnIfNeeded(a),s={wallet_handle_token:n,wallet_password:i,transaction:e.from(o.toByte()).toString("base64")},t.next=4,this.c.post("/v1/transaction/sign",s);case 4:if(200!==(u=t.sent).status){t.next=7;break}return t.abrupt("return",e.from(u.body.signed_transaction,"base64"));case 7:return t.abrupt("return",u.body);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"signTransactionWithSpecificPublicKey",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i,a,o){var s,u,c;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.instantiateTxnIfNeeded(a),u={wallet_handle_token:n,wallet_password:i,transaction:e.from(s.toByte()).toString("base64"),public_key:e.from(o).toString("base64")},t.next=4,this.c.post("/v1/transaction/sign",u);case 4:if(200!==(c=t.sent).status){t.next=7;break}return t.abrupt("return",e.from(c.body.signed_transaction,"base64"));case 7:return t.abrupt("return",c.body);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i){return t.apply(this,arguments)}}()},{key:"listMultisig",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/multisig/list",n);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"importMultisig",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n,i,a){var o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={wallet_handle_token:t,multisig_version:n,threshold:i,pks:a},e.next=3,this.c.post("/v1/multisig/import",o);case 3:return s=e.sent,e.abrupt("return",s.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"exportMultisig",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n){var i,a;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={wallet_handle_token:t,address:n},e.next=3,this.c.post("/v1/multisig/export",i);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signMultisigTransaction",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(n,i,a,o,s){var u,c,d;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=l.instantiateTxnIfNeeded(a),c={wallet_handle_token:n,transaction:e.from(u.toByte()).toString("base64"),public_key:e.from(o).toString("base64"),partial_multisig:s,wallet_password:i},t.next=4,this.c.post("/v1/multisig/sign",c);case 4:return d=t.sent,t.abrupt("return",d.body);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i,a){return t.apply(this,arguments)}}()},{key:"deleteMultisig",value:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n,i){var a,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:i,wallet_password:n},e.next=3,this.c.delete("/v1/multisig",a);case 3:return o=e.sent,e.abrupt("return",o.body);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()}]),c}(c.a)}).call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(17),i=n(9);function a(){var e=r.keyPair();return{addr:i.encodeAddress(e.publicKey),sk:e.secretKey}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return k}));var r=n(0),i=n(8),a=n(27),o=n(21),s=n(2),u=n(1),c=n(6),l=n(37),d=n(28),f=n(9),h=1380011588;function p(t){return t.params["approval-program"]=e.from(t.params["approval-program"].toString(),"base64"),t.params["clear-state-program"]=e.from(t.params["clear-state-program"].toString(),"base64"),t}function m(e){return g.apply(this,arguments)}function g(){return(g=Object(c.a)(Object(r.a)().mark((function e(t){var n,s,u,c,m,g,v,y,b,w,_,x,A,k,S,E,O,C,T,M,j,R,I,P,L,D;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.client,s=t.txns,u=t.protocolVersion,c=t.latestTimestamp,m=t.round,g=t.sources,v=[],y=[],b=[],w=[],_=[],x=Object(o.a)(s);try{for(x.s();!(A=x.n()).done;)(k=A.value).txn.type===d.a.appl&&(_.push(Object(f.encodeAddress)(k.txn.from.publicKey)),k.txn.appAccounts&&_.push.apply(_,Object(a.a)(k.txn.appAccounts.map((function(e){return Object(f.encodeAddress)(e.publicKey)})))),k.txn.appForeignApps&&(b.push.apply(b,Object(a.a)(k.txn.appForeignApps)),_.push.apply(_,Object(a.a)(k.txn.appForeignApps.map((function(e){return Object(f.getApplicationAddress)(e)}))))),k.txn.appForeignAssets&&w.push.apply(w,Object(a.a)(k.txn.appForeignAssets)),void 0===k.txn.appIndex||0===k.txn.appIndex?v.push(new l.Application(h,new l.ApplicationParams({creator:Object(f.encodeAddress)(k.txn.from.publicKey),approvalProgram:k.txn.appApprovalProgram,clearStateProgram:k.txn.appClearProgram,localStateSchema:new l.ApplicationStateSchema(k.txn.appLocalInts,k.txn.appLocalByteSlices),globalStateSchema:new l.ApplicationStateSchema(k.txn.appGlobalInts,k.txn.appGlobalByteSlices)}))):(b.push(k.txn.appIndex),_.push(Object(f.getApplicationAddress)(k.txn.appIndex))))}catch(r){x.e(r)}finally{x.f()}for(S=[],E=0,O=Object(a.a)(new Set(w));Et&&t>0?"".concat(e.slice(0,t),"..."):e}function _(t,n){if(0===n.length)return"";for(var r=null,i=0;it.length||JSON.stringify(t[i])!==JSON.stringify(n[i]))&&(r=i);if(null==r)return"";var a=n[r];return a.bytes.length>0?"".concat(r," = 0x").concat(e.from(a.bytes,"base64").toString("hex")):"".concat(r," = ").concat(a.uint.toString())}function x(t,n){var r=n?t.reverse():t;return"[".concat(r.map((function(t){switch(t.type){case 1:return"0x".concat(e.from(t.bytes,"base64").toString("hex"));case 2:return"".concat(t.uint.toString());default:return""}})).join(", "),"]")}var A=function(){function e(t){Object(s.a)(this,e),this.disassembly=[],this.appCallMessages=[],this.localDeltas=[],this.globalDelta=[],this.cost=0,this.logicSigMessages=[],this.logicSigDisassembly=[],this.logs=[],this.appCallTrace=void 0,this.logicSigTrace=void 0,this.required=["disassembly"],this.optionals=["app-call-messages","local-deltas","global-delta","cost","logic-sig-messages","logic-sig-disassembly","logs"],this.traces=["app-call-trace","logic-sig-trace"],this.disassembly=t.disassembly,this.appCallMessages=t["app-call-messages"],this.localDeltas=t["local-deltas"],this.globalDelta=t["global-delta"],this.cost=t.cost,this.logicSigMessages=t["logic-sig-messages"],this.logicSigDisassembly=t["logic-sig-disassembly"],this.logs=t.logs,this.appCallTrace=new b(t["app-call-trace"]),this.logicSigTrace=new b(t["logic-sig-trace"])}return Object(u.a)(e,[{key:"appCallRejected",value:function(){return void 0!==this.appCallMessages&&this.appCallMessages.includes("REJECT")}},{key:"logicSigRejected",value:function(){return void 0!==this.logicSigMessages&&this.logicSigMessages.includes("REJECT")}},{key:"appTrace",value:function(t){if(void 0===this.appCallTrace||!this.disassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!1}),e.trace(this.appCallTrace,this.disassembly,n)}},{key:"lsigTrace",value:function(t){if(void 0===this.logicSigTrace||void 0===this.logicSigDisassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!0}),e.trace(this.logicSigTrace,this.logicSigDisassembly,n)}}],[{key:"trace",value:function(e,t,n){for(var r=n.maxValueWidth||30,i=[["pc#","ln#","source","scratch","stack"]],a=0;a0&&void 0!==e.trace[a-1].scratch?e.trace[a-1].scratch:[],p=""===u?t[s]:"!! ".concat(u," !!");i.push([c.toString().padEnd(3," "),s.toString().padEnd(3," "),w(p,r),w(_(h,f),r),w(x(d,n.topOfStackFirst),r)])}var m=i.reduce((function(e,t){for(var n=new Array(i[0].length).fill(0),r=0;re[r]?t[r].length:e[r];return n}),new Array(i[0].length).fill(0));return"".concat(i.map((function(e){return e.map((function(e,t){return e.padEnd(m[t]+1," ")})).join("|").trim()})).join("\n"),"\n")}}]),e}(),k=Object(u.a)((function e(t){Object(s.a)(this,e),this.error="",this.protocolVersion="",this.txns=[],this.error=t.error,this.protocolVersion=t["protocol-version"],this.txns=t.txns.map((function(e){return new A(e)}))}))}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return w}));var r,i=n(21),a=n(0),o=n(18),s=n(6),u=n(8),c=n(2),l=n(1),d=n(34),f=n(22),h=n(54),p=n(46),m=n(85),g=n(75),v=n(29),y=e.from([21,31,124,117]);function b(e,t,n){if(null!=n&&e===n)return 0;for(var r=null==n?0:1,i=0;it.MAX_GROUP_SIZE)throw new Error("Adding additional transactions exceeds the maximum atomic group size of ".concat(t.MAX_GROUP_SIZE));if(0===i){if(null==l||null==f||null==p||null==m||null==y||null==w)throw new Error("One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices")}else if(c===v.a.UpdateApplicationOC){if(null==l||null==f)throw new Error("One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram");if(null!=p||null!=m||null!=y||null!=w||null!=_)throw new Error("One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages")}else if(null!=l||null!=f||null!=p||null!=m||null!=y||null!=w||null!=_)throw new Error("One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages");if(null==o&&(o=[]),o.length!==a.args.length)throw new Error("Incorrect number of method arguments. Expected ".concat(a.args.length,", got ").concat(o.length));for(var O=[],C=[],T=[],M=[],j=[],R=new Map,I=x||[],P=0;PNumber.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for application value, got ".concat(K));V=b(Number(K),F,i);break;case d.i.asset:var Y=new d.o(64),Z=Y.decode(Y.encode(H));if(Z>Number.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for asset value, got ".concat(Z));V=b(Number(Z),U);break;default:throw new Error("Unknown reference type: ".concat(q))}B.push(V)}for(var X=0;X15){var Q=O.slice(14),J=C.slice(14);O=O.slice(0,14),C=C.slice(0,14),O.push(new d.l(Q)),C.push(J)}for(var $=[a.getSelector()],ee=0;ee1&&Object(p.assignGroupID)(this.transactions.map((function(e){return e.txn}))),this.status=r.BUILT}return this.transactions}},{key:"gatherSignatures",value:function(){var e=Object(s.a)(Object(a.a)().mark((function e(){var t,n,i,s,u,c,l,d,h,p,m,g,v;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.status>=r.SIGNED)){e.next=2;break}return e.abrupt("return",this.signedTxns);case 2:for(t=this.buildGroup(),n=t.map((function(e){return e.txn})),i=new Map,s=0;sr.SUBMITTED)){e.next=2;break}throw new Error("Transaction group cannot be resubmitted");case 2:return e.next=4,this.gatherSignatures();case 4:return n=e.sent,e.next=7,t.sendRawTransaction(n).do();case 7:return this.status=r.SUBMITTED,e.abrupt("return",this.txIDs);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"execute",value:function(){var t=Object(s.a)(Object(a.a)().mark((function t(n,s){var u,c,l,d,f,h,p,g,v,b,w,_,x,A,k,S,E=this;return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.status!==r.COMMITTED){t.next=2;break}throw new Error("Transaction group has already been executed successfully");case 2:return t.next=4,this.submit(n);case 4:return u=t.sent,this.status=r.SUBMITTED,c=this.transactions.findIndex((function(e,t){return E.methodCalls.has(t)})),l=-1===c?0:c,t.next=10,Object(m.a)(n,u[l],s);case 10:d=t.sent,this.status=r.COMMITTED,f=d["confirmed-round"],h=[],p=Object(i.a)(this.methodCalls),t.prev=15,p.s();case 17:if((g=p.n()).done){t.next=48;break}if(v=Object(o.a)(g.value,2),b=v[0],w=v[1],_=u[b],x={txID:_,rawReturnValue:new Uint8Array,method:w},t.prev=21,b!==c){t.next=26;break}t.t0=d,t.next=29;break;case 26:return t.next=28,n.pendingTransactionInformation(_).do();case 28:t.t0=t.sent;case 29:if(A=t.t0,x.txInfo=A,"void"===w.returns.type){t.next=40;break}if(0!==(k=A.logs||[]).length){t.next=35;break}throw new Error("App call transaction did not log a return value");case 35:if(!((S=e.from(k[k.length-1],"base64")).byteLength<4)&&S.slice(0,4).equals(y)){t.next=38;break}throw new Error("App call transaction did not log a return value");case 38:x.rawReturnValue=new Uint8Array(S.slice(4)),x.returnValue=w.returns.type.decode(x.rawReturnValue);case 40:t.next=45;break;case 42:t.prev=42,t.t1=t.catch(21),x.decodeError=t.t1;case 45:h.push(x);case 46:t.next=17;break;case 48:t.next=53;break;case 50:t.prev=50,t.t2=t.catch(15),p.e(t.t2);case 53:return t.prev=53,p.f(),t.finish(53);case 56:return t.abrupt("return",{confirmedRound:f,txIDs:u,methodResults:h});case 57:case"end":return t.stop()}}),t,this,[[15,50,53,56],[21,42]])})));return function(e,n){return t.apply(this,arguments)}}()}]),t}();w.MAX_GROUP_SIZE=16}).call(this,n(19).Buffer)},function(e,t,n){e.exports=n(243)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(o)};var r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(i){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"===typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=c(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(o){n=!0,r=o}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=c(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(o){n=!0,r=o}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,i=n(248),a=(r=i)&&r.__esModule?r:{default:r},o=n(103);var s=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){i=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},i=new r;t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(2),i=n(1),a=n(4),o=n(5),s=n(63),u=n(14),c=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(u.a),l=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a,o){var s;return Object(r.a)(this,n),(s=t.call(this,e,i)).account=a,s.assetID=o,s.account=a,s.assetID=o,s}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets/").concat(this.assetID)}}]),n}(u.a),d=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a,o){var s;return Object(r.a)(this,n),(s=t.call(this,e,i)).account=a,s.applicationID=o,s.account=a,s.applicationID=o,s}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/applications/").concat(this.applicationID)}}]),n}(u.a),f=n(20),h=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i){var a;if(Object(r.a)(this,n),a=t.call(this,e),!Number.isInteger(i))throw Error("roundNumber should be an integer");return a.round=i,a.query={format:"msgpack"},a}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return f.decode(e)}}]),n}(u.a),p=n(91),m=n(170),g=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/genesis"}}]),n}(u.a),v=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}}]),n}(u.a),y=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}}]),n}(u.a),b=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;if(Object(r.a)(this,n),o=t.call(this,e,i),!Number.isInteger(a))throw Error("roundNumber should be an integer");return o.round=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/hash")}}]),n}(u.a),w=n(171),_=n(37),x=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o.query.max=0,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/boxes")}},{key:"max",value:function(e){return this.query.max=e,this}},{key:"prepare",value:function(e){return _.BoxesResponse.from_obj_for_encoding(e)}}]),n}(u.a),A=n(0),k=n(6),S=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/health"}},{key:"do",value:function(){var e=Object(k.a)(Object(A.a)().mark((function e(){var t,n,r=arguments;return Object(A.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.c.get(this.path(),{},t);case 3:if((n=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(n.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(u.a),E=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i){var a;return Object(r.a)(this,n),(a=t.call(this,e)).txid=i,a.txid=i,a.query.format="msgpack",a}return Object(i.a)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return f.decode(e)}},{key:"path",value:function(){return"/v2/transactions/pending/".concat(this.txid)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(u.a),O=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i;return Object(r.a)(this,n),(i=t.call(this,e)).query.format="msgpack",i}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/transactions/pending"}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return f.decode(e)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(u.a),C=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i){var a;return Object(r.a)(this,n),(a=t.call(this,e)).address=i,a.address=i,a.query.format="msgpack",a}return Object(i.a)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return f.decode(e)}},{key:"path",value:function(){return"/v2/accounts/".concat(this.address,"/transactions/pending")}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(u.a),T=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a,o){var s;return Object(r.a)(this,n),(s=t.call(this,e,i)).round=a,s.txID=o,s.round=a,s.txID=o,s}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/transactions/").concat(this.txID,"/proof")}},{key:"hashType",value:function(e){return this.query.hashtype=e,this}}]),n}(u.a),M=n(107),j=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/status"}}]),n}(u.a),R=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;if(Object(r.a)(this,n),(o=t.call(this,e,i)).round=a,!Number.isInteger(a))throw Error("round should be an integer");return o.round=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/status/wait-for-block-after/".concat(this.round)}}]),n}(u.a),I=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/transactions/params"}},{key:"prepare",value:function(e){return{flatFee:!1,fee:e.fee,firstRound:e["last-round"],lastRound:e["last-round"]+1e3,genesisID:e["genesis-id"],genesisHash:e["genesis-hash"]}}}]),n}(u.a),P=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/ledger/supply"}}]),n}(u.a),L=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/versions"}}]),n}(u.a),D=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).round=a,o.round=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/lightheader/proof")}}]),n}(u.a),B=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).round=a,o.round=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/stateproofs/".concat(this.round)}}]),n}(u.a),N=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.a)(this,n),t.call(this,"X-Algo-API-Token",e,i,a,o)}return Object(i.a)(n,[{key:"healthCheck",value:function(){return new S(this.c)}},{key:"versionsCheck",value:function(){return new L(this.c)}},{key:"sendRawTransaction",value:function(e){return new M.default(this.c,e)}},{key:"accountInformation",value:function(e){return new c(this.c,this.intDecoding,e)}},{key:"accountAssetInformation",value:function(e,t){return new l(this.c,this.intDecoding,e,t)}},{key:"accountApplicationInformation",value:function(e,t){return new d(this.c,this.intDecoding,e,t)}},{key:"block",value:function(e){return new h(this.c,e)}},{key:"getBlockHash",value:function(e){return new b(this.c,this.intDecoding,e)}},{key:"pendingTransactionInformation",value:function(e){return new E(this.c,e)}},{key:"pendingTransactionsInformation",value:function(){return new O(this.c)}},{key:"pendingTransactionByAddress",value:function(e){return new C(this.c,e)}},{key:"status",value:function(){return new j(this.c,this.intDecoding)}},{key:"statusAfterBlock",value:function(e){return new R(this.c,this.intDecoding,e)}},{key:"getTransactionParams",value:function(){return new I(this.c)}},{key:"supply",value:function(){return new P(this.c,this.intDecoding)}},{key:"compile",value:function(e){return new p.a(this.c,e)}},{key:"dryrun",value:function(e){return new m.a(this.c,e)}},{key:"getAssetByID",value:function(e){return new v(this.c,this.intDecoding,e)}},{key:"getApplicationByID",value:function(e){return new y(this.c,this.intDecoding,e)}},{key:"getApplicationBoxByName",value:function(e,t){return new w.a(this.c,this.intDecoding,e,t)}},{key:"getApplicationBoxes",value:function(e){return new x(this.c,this.intDecoding,e)}},{key:"genesis",value:function(){return new g(this.c,this.intDecoding)}},{key:"getTransactionProof",value:function(e,t){return new T(this.c,this.intDecoding,e,t)}},{key:"getLightBlockHeaderProof",value:function(e){return new D(this.c,this.intDecoding,e)}},{key:"getStateProof",value:function(e){return new B(this.c,this.intDecoding,e)}}]),n}(s.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return M}));var r=n(2),i=n(1),a=n(4),o=n(5),s=n(63),u=n(14),c=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/health"}}]),n}(u.a),l=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/balances")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(u.a),d=n(64),f=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=Object(d.a)(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(u.a),h=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).round=a,o.round=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"headerOnly",value:function(e){return this.query["header-only"]=e,this}}]),n}(u.a),p=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).txID=a,o.txID=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/transactions/".concat(this.txID)}}]),n}(u.a),m=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(u.a),g=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetId",value:function(e){return this.query["asset-id"]=e,this}}]),n}(u.a),v=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}}]),n}(u.a),y=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/apps-local-state")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(u.a),b=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).account=a,o.account=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-applications")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(u.a),w=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(u.a),_=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(u.a),x=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).appID=a,o.appID=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.appID,"/logs")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"sender",value:function(e){return this.query["sender-address"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}}]),n}(u.a),A=n(172),k=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/accounts"}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"authAddr",value:function(e){return this.query["auth-addr"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(u.a),S=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/transactions"}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=Object(d.a)(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(u.a),E=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/assets"}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"name",value:function(e){return this.query.name=e,this}},{key:"unit",value:function(e){return this.query.unit=e,this}},{key:"index",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(u.a),O=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications"}},{key:"index",value:function(e){return this.query["application-id"]=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(u.a),C=n(59),T=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).index=a,o.index=a,o}return Object(i.a)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/boxes")}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"prepare",value:function(e){return C.BoxesResponse.from_obj_for_encoding(e)}}]),n}(u.a),M=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8080,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.a)(this,n),t.call(this,"X-Indexer-API-Token",e,i,a,o)}return Object(i.a)(n,[{key:"makeHealthCheck",value:function(){return new c(this.c,this.intDecoding)}},{key:"lookupAssetBalances",value:function(e){return new l(this.c,this.intDecoding,e)}},{key:"lookupAssetTransactions",value:function(e){return new f(this.c,this.intDecoding,e)}},{key:"lookupAccountTransactions",value:function(e){return new d.b(this.c,this.intDecoding,e)}},{key:"lookupBlock",value:function(e){return new h(this.c,this.intDecoding,e)}},{key:"lookupTransactionByID",value:function(e){return new p(this.c,this.intDecoding,e)}},{key:"lookupAccountByID",value:function(e){return new m(this.c,this.intDecoding,e)}},{key:"lookupAccountAssets",value:function(e){return new g(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedAssets",value:function(e){return new v(this.c,this.intDecoding,e)}},{key:"lookupAccountAppLocalStates",value:function(e){return new y(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedApplications",value:function(e){return new b(this.c,this.intDecoding,e)}},{key:"lookupAssetByID",value:function(e){return new w(this.c,this.intDecoding,e)}},{key:"lookupApplications",value:function(e){return new _(this.c,this.intDecoding,e)}},{key:"lookupApplicationLogs",value:function(e){return new x(this.c,this.intDecoding,e)}},{key:"searchAccounts",value:function(){return new k(this.c,this.intDecoding)}},{key:"searchForTransactions",value:function(){return new S(this.c,this.intDecoding)}},{key:"searchForAssets",value:function(){return new E(this.c,this.intDecoding)}},{key:"searchForApplications",value:function(){return new O(this.c,this.intDecoding)}},{key:"searchForApplicationBoxes",value:function(e){return new T(this.c,this.intDecoding,e)}},{key:"lookupApplicationBoxByIDandName",value:function(e,t){return new A.a(this.c,this.intDecoding,e,t)}}]),n}(s.a)},function(e,t,n){"use strict";n(1),n(2),n(4),n(5)},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t>>=1,u?t.push(0===r?-2147483648:-r):t.push(r),r=n=0}}return t}(e);if(t.length>2)return t[2]}));this.pcToLine={},this.lineToPc={};var d,f=0,h=Object(i.a)(l.entries());try{for(h.s();!(d=h.n()).done;){var p=Object(r.a)(d.value,2),m=p[0],g=p[1];void 0!==g&&(f+=g),f in this.lineToPc||(this.lineToPc[f]=[]),this.lineToPc[f].push(m),this.pcToLine[m]=f}}catch(v){h.e(v)}finally{h.f()}}return Object(o.a)(e,[{key:"getLineForPc",value:function(e){return this.pcToLine[e]}},{key:"getPcsForLine",value:function(e){return this.lineToPc[e]}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowMetadata=void 0;var r=n(35);t.getWindowMetadata=function(){var e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(a){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r-1){var s=a.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var u=t.protocol+"//"+t.host;if(0===s.indexOf("/"))u+=s;else{var c=t.pathname.split("/");c.pop(),u+=c.join("/")+"/"+s}r.push(u)}else if(0===s.indexOf("//")){var l=t.protocol+s;r.push(l)}else r.push(s)}}return r}(),name:i}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=function(){for(var e=0,t=0,n=arguments.length;t>6,u[c++]=128|63&s):s<55296||s>=57344?(u[c++]=224|s>>12,u[c++]=128|s>>6&63,u[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++l)),u[c++]=240|s>>18,u[c++]=128|s>>12&63,u[c++]=128|s>>6&63,u[c++]=128|63&s);e=u}e.length>128&&(e=new x(t,!0).update(e).array());var f=[],h=[];for(l=0;l<128;++l){var p=e[l]||0;f[l]=92^p,h[l]=54^p}x.call(this,t,n),this.update(h),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}x.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=0,s=e.length,u=this.blocks;o>2]|=e[o]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(u[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=128?(this.block=u[32],this.start=i-128,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>2]|=h[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},x.prototype.hash=function(){var e,t,n,r,i,a,o,s,u,c,l,d,f,h,p,g,v,y,b,w,_,x,A,k,S,E=this.h0h,O=this.h0l,C=this.h1h,T=this.h1l,M=this.h2h,j=this.h2l,R=this.h3h,I=this.h3l,P=this.h4h,L=this.h4l,D=this.h5h,B=this.h5l,N=this.h6h,F=this.h6l,U=this.h7h,z=this.h7l,q=this.blocks;for(e=32;e<160;e+=2)t=((w=q[e-30])>>>1|(_=q[e-29])<<31)^(w>>>8|_<<24)^w>>>7,n=(_>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25),r=((w=q[e-4])>>>19|(_=q[e-3])<<13)^(_>>>29|w<<3)^w>>>6,i=(_>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26),w=q[e-32],_=q[e-31],u=((x=q[e-14])>>>16)+(w>>>16)+(t>>>16)+(r>>>16)+((s=(65535&x)+(65535&w)+(65535&t)+(65535&r)+((o=((A=q[e-13])>>>16)+(_>>>16)+(n>>>16)+(i>>>16)+((a=(65535&A)+(65535&_)+(65535&n)+(65535&i))>>>16))>>>16))>>>16),q[e]=u<<16|65535&s,q[e+1]=o<<16|65535&a;var H=E,V=O,W=C,G=T,K=M,Y=j,Z=R,X=I,Q=P,J=L,$=D,ee=B,te=N,ne=F,re=U,ie=z;for(g=W&K,v=G&Y,e=0;e<160;e+=8)t=(H>>>28|V<<4)^(V>>>2|H<<30)^(V>>>7|H<<25),n=(V>>>28|H<<4)^(H>>>2|V<<30)^(H>>>7|V<<25),r=(Q>>>14|J<<18)^(Q>>>18|J<<14)^(J>>>9|Q<<23),i=(J>>>14|Q<<18)^(J>>>18|Q<<14)^(Q>>>9|J<<23),y=(c=H&W)^H&K^g,b=(l=V&G)^V&Y^v,k=Q&$^~Q&te,S=J&ee^~J&ne,w=q[e],_=q[e+1],w=(u=((x=m[e])>>>16)+(w>>>16)+(k>>>16)+(r>>>16)+(re>>>16)+((s=(65535&x)+(65535&w)+(65535&k)+(65535&r)+(65535&re)+((o=((A=m[e+1])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ie>>>16)+((a=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ie))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&a,x=(u=(y>>>16)+(t>>>16)+((s=(65535&y)+(65535&t)+((o=(b>>>16)+(n>>>16)+((a=(65535&b)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=o<<16|65535&a,re=(u=(Z>>>16)+(w>>>16)+((s=(65535&Z)+(65535&w)+((o=(X>>>16)+(_>>>16)+((a=(65535&X)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ie=o<<16|65535&a,t=((Z=(u=(x>>>16)+(w>>>16)+((s=(65535&x)+(65535&w)+((o=(A>>>16)+(_>>>16)+((a=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(X=o<<16|65535&a)<<4)^(X>>>2|Z<<30)^(X>>>7|Z<<25),n=(X>>>28|Z<<4)^(Z>>>2|X<<30)^(Z>>>7|X<<25),r=(re>>>14|ie<<18)^(re>>>18|ie<<14)^(ie>>>9|re<<23),i=(ie>>>14|re<<18)^(ie>>>18|re<<14)^(re>>>9|ie<<23),y=(d=Z&H)^Z&W^c,b=(f=X&V)^X&G^l,k=re&Q^~re&$,S=ie&J^~ie&ee,w=q[e+2],_=q[e+3],w=(u=((x=m[e+2])>>>16)+(w>>>16)+(k>>>16)+(r>>>16)+(te>>>16)+((s=(65535&x)+(65535&w)+(65535&k)+(65535&r)+(65535&te)+((o=((A=m[e+3])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ne>>>16)+((a=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&a,x=(u=(y>>>16)+(t>>>16)+((s=(65535&y)+(65535&t)+((o=(b>>>16)+(n>>>16)+((a=(65535&b)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=o<<16|65535&a,te=(u=(K>>>16)+(w>>>16)+((s=(65535&K)+(65535&w)+((o=(Y>>>16)+(_>>>16)+((a=(65535&Y)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ne=o<<16|65535&a,t=((K=(u=(x>>>16)+(w>>>16)+((s=(65535&x)+(65535&w)+((o=(A>>>16)+(_>>>16)+((a=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(Y=o<<16|65535&a)<<4)^(Y>>>2|K<<30)^(Y>>>7|K<<25),n=(Y>>>28|K<<4)^(K>>>2|Y<<30)^(K>>>7|Y<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),i=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),y=(h=K&Z)^K&H^d,b=(p=Y&X)^Y&V^f,k=te&re^~te&Q,S=ne&ie^~ne&J,w=q[e+4],_=q[e+5],w=(u=((x=m[e+4])>>>16)+(w>>>16)+(k>>>16)+(r>>>16)+($>>>16)+((s=(65535&x)+(65535&w)+(65535&k)+(65535&r)+(65535&$)+((o=((A=m[e+5])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ee>>>16)+((a=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&a,x=(u=(y>>>16)+(t>>>16)+((s=(65535&y)+(65535&t)+((o=(b>>>16)+(n>>>16)+((a=(65535&b)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=o<<16|65535&a,$=(u=(W>>>16)+(w>>>16)+((s=(65535&W)+(65535&w)+((o=(G>>>16)+(_>>>16)+((a=(65535&G)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ee=o<<16|65535&a,t=((W=(u=(x>>>16)+(w>>>16)+((s=(65535&x)+(65535&w)+((o=(A>>>16)+(_>>>16)+((a=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(G=o<<16|65535&a)<<4)^(G>>>2|W<<30)^(G>>>7|W<<25),n=(G>>>28|W<<4)^(W>>>2|G<<30)^(W>>>7|G<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),i=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),y=(g=W&K)^W&Z^h,b=(v=G&Y)^G&X^p,k=$&te^~$&re,S=ee&ne^~ee&ie,w=q[e+6],_=q[e+7],w=(u=((x=m[e+6])>>>16)+(w>>>16)+(k>>>16)+(r>>>16)+(Q>>>16)+((s=(65535&x)+(65535&w)+(65535&k)+(65535&r)+(65535&Q)+((o=((A=m[e+7])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(J>>>16)+((a=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&J))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&a,x=(u=(y>>>16)+(t>>>16)+((s=(65535&y)+(65535&t)+((o=(b>>>16)+(n>>>16)+((a=(65535&b)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=o<<16|65535&a,Q=(u=(H>>>16)+(w>>>16)+((s=(65535&H)+(65535&w)+((o=(V>>>16)+(_>>>16)+((a=(65535&V)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,J=o<<16|65535&a,H=(u=(x>>>16)+(w>>>16)+((s=(65535&x)+(65535&w)+((o=(A>>>16)+(_>>>16)+((a=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,V=o<<16|65535&a;u=(E>>>16)+(H>>>16)+((s=(65535&E)+(65535&H)+((o=(O>>>16)+(V>>>16)+((a=(65535&O)+(65535&V))>>>16))>>>16))>>>16),this.h0h=u<<16|65535&s,this.h0l=o<<16|65535&a,u=(C>>>16)+(W>>>16)+((s=(65535&C)+(65535&W)+((o=(T>>>16)+(G>>>16)+((a=(65535&T)+(65535&G))>>>16))>>>16))>>>16),this.h1h=u<<16|65535&s,this.h1l=o<<16|65535&a,u=(M>>>16)+(K>>>16)+((s=(65535&M)+(65535&K)+((o=(j>>>16)+(Y>>>16)+((a=(65535&j)+(65535&Y))>>>16))>>>16))>>>16),this.h2h=u<<16|65535&s,this.h2l=o<<16|65535&a,u=(R>>>16)+(Z>>>16)+((s=(65535&R)+(65535&Z)+((o=(I>>>16)+(X>>>16)+((a=(65535&I)+(65535&X))>>>16))>>>16))>>>16),this.h3h=u<<16|65535&s,this.h3l=o<<16|65535&a,u=(P>>>16)+(Q>>>16)+((s=(65535&P)+(65535&Q)+((o=(L>>>16)+(J>>>16)+((a=(65535&L)+(65535&J))>>>16))>>>16))>>>16),this.h4h=u<<16|65535&s,this.h4l=o<<16|65535&a,u=(D>>>16)+($>>>16)+((s=(65535&D)+(65535&$)+((o=(B>>>16)+(ee>>>16)+((a=(65535&B)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=u<<16|65535&s,this.h5l=o<<16|65535&a,u=(N>>>16)+(te>>>16)+((s=(65535&N)+(65535&te)+((o=(F>>>16)+(ne>>>16)+((a=(65535&F)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=u<<16|65535&s,this.h6l=o<<16|65535&a,u=(U>>>16)+(re>>>16)+((s=(65535&U)+(65535&re)+((o=(z>>>16)+(ie>>>16)+((a=(65535&z)+(65535&ie))>>>16))>>>16))>>>16),this.h7h=u<<16|65535&s,this.h7l=o<<16|65535&a},x.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,i=this.h2h,a=this.h2l,o=this.h3h,s=this.h3l,u=this.h4h,c=this.h4l,l=this.h5h,d=this.h5l,h=this.h6h,p=this.h6l,m=this.h7h,g=this.h7l,v=this.bits,y=f[e>>28&15]+f[e>>24&15]+f[e>>20&15]+f[e>>16&15]+f[e>>12&15]+f[e>>8&15]+f[e>>4&15]+f[15&e]+f[t>>28&15]+f[t>>24&15]+f[t>>20&15]+f[t>>16&15]+f[t>>12&15]+f[t>>8&15]+f[t>>4&15]+f[15&t]+f[n>>28&15]+f[n>>24&15]+f[n>>20&15]+f[n>>16&15]+f[n>>12&15]+f[n>>8&15]+f[n>>4&15]+f[15&n]+f[r>>28&15]+f[r>>24&15]+f[r>>20&15]+f[r>>16&15]+f[r>>12&15]+f[r>>8&15]+f[r>>4&15]+f[15&r]+f[i>>28&15]+f[i>>24&15]+f[i>>20&15]+f[i>>16&15]+f[i>>12&15]+f[i>>8&15]+f[i>>4&15]+f[15&i]+f[a>>28&15]+f[a>>24&15]+f[a>>20&15]+f[a>>16&15]+f[a>>12&15]+f[a>>8&15]+f[a>>4&15]+f[15&a]+f[o>>28&15]+f[o>>24&15]+f[o>>20&15]+f[o>>16&15]+f[o>>12&15]+f[o>>8&15]+f[o>>4&15]+f[15&o];return v>=256&&(y+=f[s>>28&15]+f[s>>24&15]+f[s>>20&15]+f[s>>16&15]+f[s>>12&15]+f[s>>8&15]+f[s>>4&15]+f[15&s]),v>=384&&(y+=f[u>>28&15]+f[u>>24&15]+f[u>>20&15]+f[u>>16&15]+f[u>>12&15]+f[u>>8&15]+f[u>>4&15]+f[15&u]+f[c>>28&15]+f[c>>24&15]+f[c>>20&15]+f[c>>16&15]+f[c>>12&15]+f[c>>8&15]+f[c>>4&15]+f[15&c]+f[l>>28&15]+f[l>>24&15]+f[l>>20&15]+f[l>>16&15]+f[l>>12&15]+f[l>>8&15]+f[l>>4&15]+f[15&l]+f[d>>28&15]+f[d>>24&15]+f[d>>20&15]+f[d>>16&15]+f[d>>12&15]+f[d>>8&15]+f[d>>4&15]+f[15&d]),512==v&&(y+=f[h>>28&15]+f[h>>24&15]+f[h>>20&15]+f[h>>16&15]+f[h>>12&15]+f[h>>8&15]+f[h>>4&15]+f[15&h]+f[p>>28&15]+f[p>>24&15]+f[p>>20&15]+f[p>>16&15]+f[p>>12&15]+f[p>>8&15]+f[p>>4&15]+f[15&p]+f[m>>28&15]+f[m>>24&15]+f[m>>20&15]+f[m>>16&15]+f[m>>12&15]+f[m>>8&15]+f[m>>4&15]+f[15&m]+f[g>>28&15]+f[g>>24&15]+f[g>>20&15]+f[g>>16&15]+f[g>>12&15]+f[g>>8&15]+f[g>>4&15]+f[15&g]),y},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,i=this.h2h,a=this.h2l,o=this.h3h,s=this.h3l,u=this.h4h,c=this.h4l,l=this.h5h,d=this.h5l,f=this.h6h,h=this.h6l,p=this.h7h,m=this.h7l,g=this.bits,v=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o];return g>=256&&v.push(s>>24&255,s>>16&255,s>>8&255,255&s),g>=384&&v.push(u>>24&255,u>>16&255,u>>8&255,255&u,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,d>>24&255,d>>16&255,d>>8&255,255&d),512==g&&v.push(f>>24&255,f>>16&255,f>>8&255,255&f,h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m),v},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},x.prototype.clone=function(){var e=new x(this.bits,!1);return this.copyTo(e),e},x.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t3&&void 0!==arguments[3]?arguments[3]:{};Object(u.a)(this,t),this.defaultHeaders=i;var a=n.endsWith("/")?n:"".concat(n,"/"),o=new URL(a);if("undefined"!==typeof r&&(o.port=r.toString()),0===o.protocol.length)throw new Error("Invalid base server URL, protocol must be defined.");this.baseURL=o,this.tokenHeader=e}return Object(s.a)(t,[{key:"getURL",value:function(e,t){var n;n=e.startsWith("./")?e:e.startsWith("/")?".".concat(e):"./".concat(e);var r=new URL(n,this.baseURL);if(t)for(var i=0,a=Object.entries(t);i2&&void 0!==c[2]?c[2]:{},s=Object(i.a)(Object(i.a)(Object(i.a)({},this.tokenHeader),this.defaultHeaders),o),e.next=4,Object(f.fetch)(this.getURL(n,a),{mode:"cors",headers:s});case 4:return u=e.sent,e.abrupt("return",t.formatFetchResponse(u));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n,a,o){var s,u,c,l=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=l.length>3&&void 0!==l[3]?l[3]:{},u=Object(i.a)(Object(i.a)(Object(i.a)({},this.tokenHeader),this.defaultHeaders),s),e.next=4,Object(f.fetch)(this.getURL(n,o),{method:"POST",mode:"cors",body:a,headers:u});case 4:return c=e.sent,e.abrupt("return",t.formatFetchResponse(c));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n,a,o){var s,u,c,l=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=l.length>3&&void 0!==l[3]?l[3]:{},u=Object(i.a)(Object(i.a)(Object(i.a)({},this.tokenHeader),this.defaultHeaders),s),e.next=4,Object(f.fetch)(this.getURL(n,o),{method:"DELETE",mode:"cors",body:a,headers:u});case 4:return c=e.sent,e.abrupt("return",t.formatFetchResponse(c));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()}],[{key:"formatFetchResponseHeaders",value:function(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}},{key:"checkHttpError",value:function(){var n=Object(a.a)(Object(r.a)().mark((function n(i){var a,o,s,u;return Object(r.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!i.ok){n.next=2;break}return n.abrupt("return");case 2:return a=null,o=null,n.prev=4,n.t0=Uint8Array,n.next=8,i.arrayBuffer();case 8:n.t1=n.sent,a=new n.t0(n.t1),(s=JSON.parse(e.from(a).toString())).message&&(o=s.message),n.next=16;break;case 14:n.prev=14,n.t2=n.catch(4);case 16:throw u="Network request error. Received status ".concat(i.status," (").concat(i.statusText,")"),o&&(u+=": ".concat(o)),new h(u,{body:a,status:i.status,headers:t.formatFetchResponseHeaders(i.headers)});case 19:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(e){return n.apply(this,arguments)}}()},{key:"formatFetchResponse",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(n){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkHttpError(n);case 2:return e.t0=Uint8Array,e.next=5,n.arrayBuffer();case 5:return e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=n.status,e.t4=t.formatFetchResponseHeaders(n.headers),e.abrupt("return",{body:e.t2,status:e.t3,headers:e.t4});case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),t}()}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(0),i=n(6),a=n(2),o=n(1),s=n(4),u=n(5),c=n(14),l=n(20),d=n(91),f=function(t){Object(s.a)(c,t);var n=Object(u.a)(c);function c(e,t){var r;return Object(a.a)(this,c),(r=n.call(this,e)).blob=l.encode(t.get_obj_for_encoding(!0)),r}return Object(o.a)(c,[{key:"path",value:function(){return"/v2/teal/dryrun"}},{key:"do",value:function(){var t=Object(i.a)(Object(r.a)().mark((function t(){var n,i,a,o=arguments;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},i=Object(d.b)(n),t.next=4,this.c.post(this.path(),e.from(this.blob),i);case 4:return a=t.sent,t.abrupt("return",a.body);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),c}(c.a)}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(2),i=n(1),a=n(4),o=n(5),s=n(14),u=n(37),c=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t,i,a,o){var u;Object(r.a)(this,s),(u=n.call(this,t,i)).index=a,u.index=a;var c=e.from(o).toString("base64");return u.query.name=encodeURI("b64:".concat(c)),u}return Object(i.a)(s,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/box")}},{key:"prepare",value:function(e){return u.Box.from_obj_for_encoding(e)}}]),s}(s.a)}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(2),i=n(1),a=n(4),o=n(5),s=n(14),u=n(59),c=function(t){Object(a.a)(s,t);var n=Object(o.a)(s);function s(t,i,a,o){var u;Object(r.a)(this,s),(u=n.call(this,t,i)).index=a,u.index=a;var c=e.from(o).toString("base64");return u.query.name=encodeURI("b64:".concat(c)),u}return Object(i.a)(s,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/box")}},{key:"prepare",value:function(e){return u.Box.from_obj_for_encoding(e)}}]),s}(s.a)}).call(this,n(19).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(89),i=n(1),a=n(2),o=n(62),s=n(4),u=n(5),c=n(57);function l(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}l(":root {\n --gray-800: #242424;\n}"),l(".pera-onramp-modal-wrapper {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 999999;\n width: 100vw;\n min-height: calc(100 * var(--vh));\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n@media only screen and (max-width: 706px) {\n .pera-onramp-modal-wrapper {\n overflow-y: hidden;\n min-height: 100%;\n }\n}");var d=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;Object(a.a)(this,n);for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c\n \\n\\n \\n \\n `}closeModal(){const e=document.querySelector(\".pera-onramp-modal-wrapper\");e&&e.remove()}}window.addEventListener(\"DOMContentLoaded\",(()=>{d()})),window.addEventListener(\"resize\",(()=>{d()}));const m=new class{constructor(e){this.listener=void 0,this.channel=e.channel}setupListener({onReceiveMessage:e}){this.close(),this.listener=t=>{if(\"object\"==typeof t.data)try{t.data.channel===this.channel&&e(t)}catch(e){console.error(e)}},window.addEventListener(\"message\",this.listener)}sendMessage({message:e,targetWindow:t,origin:n,timeout:a=1e3}){setTimeout((()=>{const a={channel:this.channel,message:e};t.postMessage(a,{targetOrigin:n||\"*\"})}),a)}close(){this.listener&&(window.removeEventListener(\"message\",this.listener),this.listener=void 0)}}({channel:\"pera-onramp\"}),h=[\"ALGO\",\"USDC-A\",\"USDT-A\"];class u{constructor(e){this.availableAssets=h,(null==e?void 0:e.availableAssets)&&(null==e?void 0:e.availableAssets.length)&&(this.availableAssets=e.availableAssets),this.optInEnabled=(null==e?void 0:e.optInEnabled)||!1,this.platform=(null==e?void 0:e.platform)||\"package\",this.messagePromise=new Promise(((e,t)=>{this.messageResolve=e,this.messageReject=t})),m.setupListener({onReceiveMessage:e=>{const{message:t}=e.data;\"CONTINUE_CLICKED_AFTER_ADD_FUNDS_COMPLETED\"===t.type&&this.messageResolve(\"ADDING_FUNDS_COMPLETED\")}})}addFunds({accountAddress:e}){var n,s;!function({accountAddress:e,availableAssets:n,optInEnabled:a,platform:r,messageReject:s}){if(!document.body.contains(document.querySelector(\"pera-onramp-modal\"))){const i=document.createElement(\"div\");i.className=\"pera-onramp-modal-wrapper\";const l=document.createElement(\"pera-onramp-modal\");l.setAttribute(\"account-address\",e),l.setAttribute(\"available-assets\",n),l.setAttribute(\"opt-in-enabled\",a),l.setAttribute(\"platform\",r),document.addEventListener(\"click\",(e=>{var n;e.target===(null===(n=l.shadowRoot)||void 0===n?void 0:n.querySelector(o.QUERY_SELECTOR))||e.target!==document.querySelector(\".pera-onramp-modal-wrapper\")&&e.target!==document.querySelector(\"pera-onramp-modal\")||(i.remove(),s(new t({type:\"MODAL_CLOSED_BY_USER\",detail:\"Modal closed by user\"},\"Modal closed by user\")))})),i.appendChild(l),document.body.appendChild(i)}}({accountAddress:e,availableAssets:this.availableAssets.join(\",\"),optInEnabled:this.optInEnabled.toString(),platform:this.platform,messageReject:this.messageReject});return(null===(s=null===(n=document.querySelector(\"pera-onramp-modal\"))||void 0===n?void 0:n.shadowRoot)||void 0===s?void 0:s.querySelector(`${a.QUERY_SELECTOR} ${r.QUERY_SELECTOR}`)).addEventListener(\"click\",(()=>{this.messageReject(new t({type:\"MODAL_CLOSED_BY_USER\",detail:\"Modal closed by user\"},\"Modal closed by user\"))})),this.messagePromise}on(e){m.setupListener({onReceiveMessage:t=>{const{message:n}=t.data;\"OPT_IN_REQUEST\"===n.type&&e.OPT_IN_REQUEST&&e.OPT_IN_REQUEST({accountAddress:n.accountAddress,assetID:n.assetID}),\"ADD_FUNDS_COMPLETED\"===n.type&&e.ADD_FUNDS_COMPLETED&&e.ADD_FUNDS_COMPLETED(),\"ADD_FUNDS_FAILED\"===n.type&&e.ADD_FUNDS_FAILED&&e.ADD_FUNDS_FAILED(),\"CONTINUE_CLICKED_AFTER_ADD_FUNDS_COMPLETED\"===n.type&&this.messageResolve(\"ADDING_FUNDS_COMPLETED\")}})}close(){const e=document.querySelector(\".pera-onramp-modal-wrapper\");e&&(e.remove(),this.messageReject(new t({type:\"MODAL_CLOSED_PROGRAMMATICALLY\",detail:\"Modal closed programmatically\"},\"Modal closed programmatically\")))}}\"undefined\"!=typeof window&&customElements.define(\"pera-onramp-modal\",p);export{u as PeraOnramp};\n","//Defined basic methods related to channels\r\nimport algosdk from \"algosdk\";\r\nimport { NOTIBOY_APP_INDEX, DAPP_ESCROW, NOTIBOY_SC_ADDR, CHANNEL_CREATION_FEE, USER_BOX_CREATION_FEE, ASA_ASSET, LOCAL_INTS, GLOBAL_INTS, LOCAL_BYTES, GLOBAL_BYTES, APP_ARG_NULL, NOTIBOY_BOX_NAME, CHANNEL_NOOP_TXNS, MAX_MAIN_BOX_MSG_SIZE, } from \"./constants\";\r\nimport RPC from \"./rpc\";\r\nimport Notification from \"./notifications\";\r\nimport Channel from \"./channel\";\r\nexport default class SDK extends RPC {\r\n //Get notifications from a channel\r\n notification() {\r\n return new Notification(this.client, this.indexer);\r\n }\r\n isValidAddress(address) {\r\n return algosdk.isValidAddress(address);\r\n }\r\n //Channel Creation\r\n async createChannel(sender) {\r\n //Reading teal code\r\n const tealProgram = Channel();\r\n const programBytes = this.convertToIntArray(tealProgram);\r\n const compiledTeal = await this.client.compile(programBytes).do();\r\n const compiledBytes = new Uint8Array(Buffer.from(compiledTeal.result, \"base64\"));\r\n //Fetching prameters\r\n const onComplete = algosdk.OnApplicationComplete.NoOpOC;\r\n const params = await this.client.getTransactionParams().do();\r\n //Return the transaction for signing\r\n return algosdk.makeApplicationCreateTxnFromObject({\r\n onComplete: onComplete,\r\n from: sender,\r\n suggestedParams: params,\r\n approvalProgram: compiledBytes,\r\n clearProgram: compiledBytes,\r\n numLocalInts: LOCAL_INTS,\r\n numLocalByteSlices: LOCAL_BYTES,\r\n numGlobalInts: GLOBAL_INTS,\r\n numGlobalByteSlices: GLOBAL_BYTES,\r\n appArgs: APP_ARG_NULL,\r\n });\r\n }\r\n //Opt-in to Notiboy smart contract by creator address & and payment of one-time fee\r\n async channelContractOptin(sender, creatorAppIndex, channelName) {\r\n const boxNameArray = this.convertToIntArray(NOTIBOY_BOX_NAME);\r\n const boxes = [\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n ];\r\n if (this.encodeString(channelName).length > 10)\r\n throw Error;\r\n const appArgs = [\r\n this.convertToIntArray(\"dapp\"),\r\n this.encodeString(channelName),\r\n ];\r\n const params = await this.client.getTransactionParams().do();\r\n //channel creation fee\r\n const paymentTxn = algosdk.makeAssetTransferTxnWithSuggestedParamsFromObject({\r\n from: sender,\r\n assetIndex: ASA_ASSET,\r\n suggestedParams: params,\r\n to: DAPP_ESCROW,\r\n amount: CHANNEL_CREATION_FEE,\r\n });\r\n //Optin\r\n const optinTransaction = algosdk.makeApplicationOptInTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: NOTIBOY_APP_INDEX,\r\n appArgs: appArgs,\r\n foreignAssets: [ASA_ASSET],\r\n foreignApps: [creatorAppIndex],\r\n });\r\n //Noop Txns\r\n const noopTxns = this.createNoopTransactions(CHANNEL_NOOP_TXNS, sender, params, NOTIBOY_APP_INDEX, boxes, []);\r\n //Group Transactions\r\n const basicTxns = [paymentTxn, optinTransaction];\r\n const groupTxns = basicTxns.concat(noopTxns);\r\n algosdk.assignGroupID(groupTxns);\r\n return groupTxns;\r\n }\r\n //Channel Deletion (first we have to close-out and then delete the SC)\r\n async channelDelete(sender, creatorAppIndex) {\r\n //Fetching prameters\r\n const params = await this.client.getTransactionParams().do();\r\n //Return the transaction for signing\r\n return algosdk.makeApplicationDeleteTxnFromObject({\r\n from: sender,\r\n appIndex: creatorAppIndex,\r\n suggestedParams: params,\r\n });\r\n }\r\n //Channel Opt-out from Notiboy contract\r\n async channelContractOptout(sender, creatorAppIndex, channelName, channelBoxIndex) {\r\n const boxNameArray = this.convertToIntArray(NOTIBOY_BOX_NAME);\r\n const boxes = [\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n ];\r\n const appArgs = [\r\n this.convertToIntArray(\"dapp\"),\r\n this.encodeString(channelName),\r\n algosdk.bigIntToBytes(channelBoxIndex, 8),\r\n ];\r\n const params = await this.client.getTransactionParams().do();\r\n //closeOut\r\n const closeOutTransaction = algosdk.makeApplicationCloseOutTxnFromObject({\r\n from: sender,\r\n appIndex: NOTIBOY_APP_INDEX,\r\n suggestedParams: params,\r\n foreignApps: [creatorAppIndex],\r\n appArgs: appArgs,\r\n });\r\n //Noop Txns\r\n const noopTxns = this.createNoopTransactions(CHANNEL_NOOP_TXNS, sender, params, NOTIBOY_APP_INDEX, boxes, []);\r\n //Group Transactions\r\n const basicTxns = [closeOutTransaction];\r\n const groupTxns = basicTxns.concat(noopTxns);\r\n algosdk.assignGroupID(groupTxns);\r\n return groupTxns;\r\n }\r\n //User opt-in to Notiboy SC\r\n async userContractOptin(sender) {\r\n const boxNameArray = algosdk.decodeAddress(sender).publicKey;\r\n const boxes = [\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n ];\r\n const appArgs = [this.convertToIntArray(\"user\")];\r\n const params = await this.client.getTransactionParams().do();\r\n const paymentTxn = algosdk.makePaymentTxnWithSuggestedParamsFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n to: NOTIBOY_SC_ADDR,\r\n amount: USER_BOX_CREATION_FEE,\r\n });\r\n //Optin\r\n const optinTransaction = algosdk.makeApplicationOptInTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: NOTIBOY_APP_INDEX,\r\n appArgs: appArgs,\r\n boxes: boxes,\r\n });\r\n //Group Transactions\r\n const groupTxns = [paymentTxn, optinTransaction];\r\n algosdk.assignGroupID(groupTxns);\r\n return groupTxns;\r\n }\r\n //User opt-in to a channel\r\n async userChannelOptin(sender, channelAppIndex) {\r\n const params = await this.client.getTransactionParams().do();\r\n const optinTransaction = algosdk.makeApplicationOptInTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: channelAppIndex,\r\n });\r\n return optinTransaction;\r\n }\r\n //User Opt-out of channel\r\n async userChannelOptout(sender, channelAppIndex) {\r\n const params = await this.client.getTransactionParams().do();\r\n const optOutTransaction = algosdk.makeApplicationCloseOutTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: channelAppIndex,\r\n });\r\n return optOutTransaction;\r\n }\r\n //Read channel list\r\n async getChannelList() {\r\n try {\r\n const boxResponse = await this.client\r\n .getApplicationBoxByName(NOTIBOY_APP_INDEX, this.convertToIntArray(NOTIBOY_BOX_NAME))\r\n .do();\r\n const value = boxResponse.value;\r\n //Getting each channel details as chunk\r\n const chunks = [];\r\n const channels = [];\r\n for (let i = 0; i < value.length; i += MAX_MAIN_BOX_MSG_SIZE) {\r\n chunks.push(value.slice(i, i + MAX_MAIN_BOX_MSG_SIZE));\r\n }\r\n for (let i = 0; i < chunks.length; i++) {\r\n if (this.checkIsZeroValue(chunks[i])) {\r\n continue;\r\n }\r\n else {\r\n const channel = this.parseMainBoxChunk(chunks[i], i);\r\n channels.push(channel);\r\n }\r\n }\r\n return channels;\r\n }\r\n catch (error) {\r\n return [];\r\n }\r\n }\r\n //Get counter for personal and public notification\r\n async getCounter(sender) {\r\n try {\r\n const localState = await this.indexer\r\n .lookupAccountAppLocalStates(sender)\r\n .applicationID(NOTIBOY_APP_INDEX)\r\n .do();\r\n if (localState[\"apps-local-states\"] == undefined)\r\n return { personalNotification: 0, publicNotification: 0 };\r\n const transactionDetails = localState[\"apps-local-states\"][0][\"key-value\"];\r\n return this.readCounter(transactionDetails);\r\n }\r\n catch (error) {\r\n return { personalNotification: 0, publicNotification: 0 };\r\n }\r\n }\r\n //Get channel smart contract appIndex related to an address from address local state\r\n async getAddressAppIndex(sender) {\r\n try {\r\n const localState = await this.indexer\r\n .lookupAccountAppLocalStates(sender)\r\n .applicationID(NOTIBOY_APP_INDEX)\r\n .do();\r\n if (localState[\"apps-local-states\"] == undefined)\r\n return {\r\n channelAppIndex: 0,\r\n channelName: \"Null\",\r\n };\r\n const transactionDetails = localState[\"apps-local-states\"][0][\"key-value\"];\r\n return this.readAppIndex(transactionDetails);\r\n }\r\n catch (error) {\r\n return {\r\n channelAppIndex: 0,\r\n channelName: \"Null\",\r\n };\r\n }\r\n }\r\n //Get opt-in state of an address to notiboy SC\r\n async getNotiboyOptinState(address) {\r\n try {\r\n const accountInfo = await this.indexer.lookupAccountByID(address).do();\r\n if (accountInfo[\"account\"][\"apps-local-state\"] == undefined)\r\n return false;\r\n for (let i = 0; i < accountInfo[\"account\"][\"apps-local-state\"].length; i++) {\r\n if (accountInfo[\"account\"][\"apps-local-state\"][i].id === NOTIBOY_APP_INDEX) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n catch (error) {\r\n return false;\r\n }\r\n }\r\n //Get opt-in state of an address to channel SC\r\n async getChannelScOptinState(address, channelAppIndex) {\r\n try {\r\n const accountInfo = await this.indexer.lookupAccountByID(address).do();\r\n if (accountInfo[\"account\"][\"apps-local-state\"] == undefined)\r\n return false;\r\n for (let i = 0; i < accountInfo[\"account\"][\"apps-local-state\"].length; i++) {\r\n if (accountInfo[\"account\"][\"apps-local-state\"][i].id === channelAppIndex) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n catch (error) {\r\n return false;\r\n }\r\n }\r\n //Get opt-in address list\r\n async getOptinAddressList(channelAppIndex) {\r\n try {\r\n let nextToken = \"\";\r\n let accountInfo;\r\n const addressList = [];\r\n //A do while loop to get full list of asset ids\r\n do {\r\n if (nextToken == \"\") {\r\n accountInfo = await this.indexer\r\n .searchAccounts()\r\n .applicationID(channelAppIndex)\r\n .do();\r\n nextToken = accountInfo[\"next-token\"];\r\n for (let i = 0; i < accountInfo[\"accounts\"].length; i++)\r\n addressList.push(accountInfo[\"accounts\"][i].address);\r\n }\r\n else {\r\n accountInfo = await this.indexer\r\n .searchAccounts()\r\n .applicationID(channelAppIndex)\r\n .nextToken(nextToken)\r\n .do();\r\n nextToken = accountInfo[\"next-token\"];\r\n for (let i = 0; i < accountInfo[\"accounts\"].length; i++)\r\n addressList.push(accountInfo[\"accounts\"][i].address);\r\n }\r\n } while (accountInfo[\"accounts\"].length > 0);\r\n return addressList;\r\n }\r\n catch (error) {\r\n return [\"0\"];\r\n }\r\n }\r\n}\r\n//# sourceMappingURL=sdk.js.map","//Defined the methods for notifications\r\nimport algosdk from \"algosdk\";\r\nimport RPC from \"./rpc\";\r\nimport { NOTIBOY_APP_INDEX, APP_ARG_PUB, APP_ARG_PVT, MAX_USER_BOX_MSG_SIZE, } from \"./constants\";\r\nexport default class Notification extends RPC {\r\n // Send Public Notification\r\n async sendPublicNotification(sender, channelAppIndex, notification) {\r\n const note = this.encodeString(notification);\r\n if (note.length > 180)\r\n throw Error;\r\n const appArgs = [this.encodeString(APP_ARG_PUB)];\r\n const foreignApps = [channelAppIndex];\r\n const params = await this.client.getTransactionParams().do();\r\n const notificationTransaction = algosdk.makeApplicationNoOpTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: NOTIBOY_APP_INDEX,\r\n appArgs: appArgs,\r\n foreignApps: foreignApps,\r\n note: note,\r\n });\r\n return notificationTransaction;\r\n }\r\n // Send Personal Notification\r\n async sendPersonalNotification(sender, receiver, channelAppIndex, channelName, notification) {\r\n const note = this.encodeString(notification);\r\n if (note.length > 280)\r\n throw Error;\r\n const boxNameArray = algosdk.decodeAddress(receiver).publicKey;\r\n const boxes = [\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n { appIndex: 0, name: boxNameArray },\r\n ];\r\n const appArgs = [\r\n this.encodeString(APP_ARG_PVT),\r\n this.encodeString(channelName),\r\n ];\r\n const foreignApps = [channelAppIndex];\r\n const accounts = [receiver];\r\n const params = await this.client.getTransactionParams().do();\r\n const notificationTransaction = algosdk.makeApplicationNoOpTxnFromObject({\r\n from: sender,\r\n suggestedParams: params,\r\n appIndex: NOTIBOY_APP_INDEX,\r\n appArgs: appArgs,\r\n accounts: accounts,\r\n foreignApps: foreignApps,\r\n note: note,\r\n boxes: boxes,\r\n });\r\n return notificationTransaction;\r\n }\r\n //Read Public notifications\r\n async getPublicNotification(channelAppIndex) {\r\n try {\r\n const appInfo = await this.indexer\r\n .lookupApplications(channelAppIndex)\r\n .do();\r\n const localState = await this.indexer\r\n .lookupAccountAppLocalStates(appInfo[\"application\"][\"params\"].creator)\r\n .applicationID(NOTIBOY_APP_INDEX)\r\n .do();\r\n if (localState[\"apps-local-states\"] == undefined)\r\n return [];\r\n const transactionDetails = localState[\"apps-local-states\"][0][\"key-value\"];\r\n return this.getLocalState(transactionDetails);\r\n }\r\n catch (error) {\r\n return [];\r\n }\r\n }\r\n //Read Personal Notifications\r\n async getPersonalNotification(sender) {\r\n try {\r\n const boxName = algosdk.decodeAddress(sender).publicKey;\r\n const boxResponse = await this.client\r\n .getApplicationBoxByName(NOTIBOY_APP_INDEX, Buffer.from(boxName))\r\n .do();\r\n const value = boxResponse.value;\r\n const chunks = [];\r\n const notifications = [];\r\n //splitting the box data into chunks\r\n for (let i = 0; i < value.length; i += MAX_USER_BOX_MSG_SIZE) {\r\n chunks.push(value.slice(i, i + MAX_USER_BOX_MSG_SIZE));\r\n }\r\n // Getting the chunk with notification details(the chunks without notifications will have only zeros)\r\n for (let i = 0; i < chunks.length; i++) {\r\n for (let j = 0; j < 8; j++) {\r\n if (chunks[i][j] != 0) {\r\n const notification = this.parseUserBoxChunk(chunks[i]);\r\n notifications.push(notification);\r\n break;\r\n }\r\n }\r\n }\r\n return notifications;\r\n }\r\n catch (error) {\r\n return [];\r\n }\r\n }\r\n}\r\n//# sourceMappingURL=notifications.js.map","//Code for creating a channel smart contract\r\nexport default function Channel() {\r\n return `#pragma version 7 \n int 1`;\r\n}\r\n//# sourceMappingURL=channel.js.map","import getPrototypeOf from \"./getPrototypeOf.js\";\nexport default function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}","import superPropBase from \"./superPropBase.js\";\nexport default function _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get.bind();\n } else {\n _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get.apply(this, arguments);\n}","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1b}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\nrequire(\"setimmediate\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a