From 1946d12ab57aff2a548acc325598652ac2a22ecf Mon Sep 17 00:00:00 2001 From: Shail1012 <20it136@charusat.edu.in> Date: Sun, 3 Aug 2025 08:32:45 -0400 Subject: [PATCH 1/4] Add GitHub Actions deployment workflow --- .github/workflows/deploy.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..aa1d6b3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,45 @@ +name: Deploy to AWS + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm ci + + - name: Build app + run: npm run build + env: + REACT_APP_XUMM_API_KEY: ${{ secrets.REACT_APP_XUMM_API_KEY }} + REACT_APP_XUMM_API_SECRET: ${{ secrets.REACT_APP_XUMM_API_SECRET }} + REACT_APP_XRPL_NETWORK: mainnet + + - name: Deploy to S3 + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --delete + env: + AWS_S3_BUCKET: microstream-app-production + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + + - name: Invalidate CloudFront + uses: chetan/invalidate-cloudfront-action@v2 + env: + DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} + PATHS: "/*" + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" \ No newline at end of file From ff5c6186b55721249f9f3d26c8d275ad31236acb Mon Sep 17 00:00:00 2001 From: Shail1012 <20it136@charusat.edu.in> Date: Sun, 3 Aug 2025 08:33:49 -0400 Subject: [PATCH 2/4] Add GitHub Actions deployment workflow --- build/asset-manifest.json | 13 ++++ build/index.html | 1 + build/static/css/main.c730ced7.css | 4 ++ build/static/css/main.c730ced7.css.map | 1 + build/static/js/main.a1c096b3.js | 3 + build/static/js/main.a1c096b3.js.LICENSE.txt | 65 ++++++++++++++++++++ build/static/js/main.a1c096b3.js.map | 1 + 7 files changed, 88 insertions(+) create mode 100644 build/asset-manifest.json create mode 100644 build/index.html create mode 100644 build/static/css/main.c730ced7.css create mode 100644 build/static/css/main.c730ced7.css.map create mode 100644 build/static/js/main.a1c096b3.js create mode 100644 build/static/js/main.a1c096b3.js.LICENSE.txt create mode 100644 build/static/js/main.a1c096b3.js.map diff --git a/build/asset-manifest.json b/build/asset-manifest.json new file mode 100644 index 0000000..3c00371 --- /dev/null +++ b/build/asset-manifest.json @@ -0,0 +1,13 @@ +{ + "files": { + "main.css": "/static/css/main.c730ced7.css", + "main.js": "/static/js/main.a1c096b3.js", + "index.html": "/index.html", + "main.c730ced7.css.map": "/static/css/main.c730ced7.css.map", + "main.a1c096b3.js.map": "/static/js/main.a1c096b3.js.map" + }, + "entrypoints": [ + "static/css/main.c730ced7.css", + "static/js/main.a1c096b3.js" + ] +} \ No newline at end of file diff --git a/build/index.html b/build/index.html new file mode 100644 index 0000000..4d6167e --- /dev/null +++ b/build/index.html @@ -0,0 +1 @@ +MicroStream
\ No newline at end of file diff --git a/build/static/css/main.c730ced7.css b/build/static/css/main.c730ced7.css new file mode 100644 index 0000000..78250f2 --- /dev/null +++ b/build/static/css/main.c730ced7.css @@ -0,0 +1,4 @@ +*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com +*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-3{top:-.75rem}.right-4{right:1rem}.z-50{z-index:50}.col-span-full{grid-column:1/-1}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1}.flex-shrink-0{flex-shrink:0}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-200{--tw-border-opacity:1;border-color:#bfdbfe;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-indigo-500{--tw-border-opacity:1;border-color:#6366f1;border-color:rgb(99 102 241/var(--tw-border-opacity,1))}.border-indigo-600{--tw-border-opacity:1;border-color:#4f46e5;border-color:rgb(79 70 229/var(--tw-border-opacity,1))}.border-orange-200{--tw-border-opacity:1;border-color:#fed7aa;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.border-orange-300{--tw-border-opacity:1;border-color:#fdba74;border-color:rgb(253 186 116/var(--tw-border-opacity,1))}.border-red-200{--tw-border-opacity:1;border-color:#fecaca;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:#fff;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-yellow-200{--tw-border-opacity:1;border-color:#fef08a;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}.border-t-transparent{border-top-color:#0000}.bg-black{--tw-bg-opacity:1;background-color:#000;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:#eff6ff;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-green-100{--tw-bg-opacity:1;background-color:#dcfce7;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:#22c55e;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:#e0e7ff;background-color:rgb(224 231 255/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:#eef2ff;background-color:rgb(238 242 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:#6366f1;background-color:rgb(99 102 241/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:#4f46e5;background-color:rgb(79 70 229/var(--tw-bg-opacity,1))}.bg-orange-50{--tw-bg-opacity:1;background-color:#fff7ed;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.bg-orange-600{--tw-bg-opacity:1;background-color:#ea580c;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:#fee2e2;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:#fef2f2;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-100{--tw-bg-opacity:1;background-color:#fef9c3;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-50{--tw-bg-opacity:1;background-color:#fefce8;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-600{--tw-bg-opacity:1;background-color:#ca8a04;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}.bg-opacity-20{--tw-bg-opacity:0.2}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-indigo-50{--tw-gradient-from:#eef2ff var(--tw-gradient-from-position);--tw-gradient-to:#eef2ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from:#6366f1 var(--tw-gradient-from-position);--tw-gradient-to:#6366f100 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#4f46e5 var(--tw-gradient-from-position);--tw-gradient-to:#4f46e500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-purple-50{--tw-gradient-to:#faf5ff var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to:#9333ea var(--tw-gradient-to-position)}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.text-blue-200{--tw-text-opacity:1;color:#bfdbfe;color:rgb(191 219 254/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:#2563eb;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:#1e40af;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:#374151;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:#111827;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:#4ade80;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:#22c55e;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:#16a34a;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:#15803d;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:#166534;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-indigo-500{--tw-text-opacity:1;color:#6366f1;color:rgb(99 102 241/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity,1))}.text-orange-500{--tw-text-opacity:1;color:#f97316;color:rgb(249 115 22/var(--tw-text-opacity,1))}.text-orange-600{--tw-text-opacity:1;color:#ea580c;color:rgb(234 88 12/var(--tw-text-opacity,1))}.text-orange-700{--tw-text-opacity:1;color:#c2410c;color:rgb(194 65 12/var(--tw-text-opacity,1))}.text-orange-800{--tw-text-opacity:1;color:#9a3412;color:rgb(154 52 18/var(--tw-text-opacity,1))}.text-purple-500{--tw-text-opacity:1;color:#a855f7;color:rgb(168 85 247/var(--tw-text-opacity,1))}.text-purple-600{--tw-text-opacity:1;color:#9333ea;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:#ef4444;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:#dc2626;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:#b91c1c;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:#991b1b;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:#ca8a04;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-800{--tw-text-opacity:1;color:#854d0e;color:rgb(133 77 14/var(--tw-text-opacity,1))}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:0 0 #0000,0 0 #0000,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:0 0 #0000,0 0 #0000,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:#4338ca;background-color:rgb(67 56 202/var(--tw-bg-opacity,1))}.hover\:bg-orange-700:hover{--tw-bg-opacity:1;background-color:#c2410c;background-color:rgb(194 65 12/var(--tw-bg-opacity,1))}.hover\:bg-red-200:hover{--tw-bg-opacity:1;background-color:#fecaca;background-color:rgb(254 202 202/var(--tw-bg-opacity,1))}.hover\:bg-yellow-700:hover{--tw-bg-opacity:1;background-color:#a16207;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}.hover\:bg-opacity-30:hover{--tw-bg-opacity:0.3}.hover\:from-indigo-700:hover{--tw-gradient-from:#4338ca var(--tw-gradient-from-position);--tw-gradient-to:#4338ca00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:to-purple-700:hover{--tw-gradient-to:#7e22ce var(--tw-gradient-to-position)}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:#111827;color:rgb(17 24 39/var(--tw-text-opacity,1))}.hover\:text-indigo-700:hover{--tw-text-opacity:1;color:#4338ca;color:rgb(67 56 202/var(--tw-text-opacity,1))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:#6366f1;border-color:rgb(99 102 241/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} +/*# sourceMappingURL=main.c730ced7.css.map*/ \ No newline at end of file diff --git a/build/static/css/main.c730ced7.css.map b/build/static/css/main.c730ced7.css.map new file mode 100644 index 0000000..99df37a --- /dev/null +++ b/build/static/css/main.c730ced7.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.c730ced7.css","mappings":"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","sources":["index.css"],"sourcesContent":["@tailwind base;\r\n@tailwind components;\r\n@tailwind utilities;\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build/static/js/main.a1c096b3.js b/build/static/js/main.a1c096b3.js new file mode 100644 index 0000000..0d81d66 --- /dev/null +++ b/build/static/js/main.a1c096b3.js @@ -0,0 +1,3 @@ +/*! For license information please see main.a1c096b3.js.LICENSE.txt */ +(()=>{var e={392:(e,t,n)=>{var r=n(4460);function o(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n{var t=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},477:()=>{},579:(e,t,n)=>{"use strict";e.exports=n(2799)},1335:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Meta=void 0;const i=n(6522),a=o(n(4524)),{fetch:l,Request:s,Response:u,Headers:c}=a.default(),d=n(1543),f=n(8785),p=n(5e3),h=i.debug("xumm-sdk:meta");t.Meta=class{constructor(e,t){this.isBrowser=!1,this.jwtFlow=!1,this.injected=!1,this.endpoint="https://xumm.app",h("Constructed");const n=new RegExp("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"),r={split:t.split(":"),uuidv4:""};if(3===r.split.length&&"xApp:OneTimeToken"===r.split.slice(0,2).join(":")?(r.uuidv4=r.split[2],this.jwtFlow=!0):r.split.length>1&&"RAWJWT"===r.split[0]?(this.jwtFlow=!0,this.jwt=r.split.slice(1).join(":")):r.uuidv4=t,!n.test(e)||!n.test(r.uuidv4)){if(!this.jwtFlow)throw new Error("Invalid API Key and/or API Secret. Use dotenv or constructor params.");if(!this.jwt)throw new Error("Invalid API Key and/or OTT (One Time Token). Provide OTT param (2nd param) or make sure `xAppToken` query param is present (Browser)")}return"undefined"!==typeof globalThis&&Object.keys(globalThis).indexOf("window")<0?h("Running in node"):(console.log("XUMM SDK: Running in browser"),this.isBrowser=!0),this.apiKey=e,this.apiSecret=r.uuidv4,this.jwtFlow&&!this.jwt&&(this.authPromise=new Promise(e=>{this.authPromiseResolve=e}),Promise.resolve().then(()=>this.authorize()).catch(e=>{h("Authorize error:",e.message),(null===this||void 0===this?void 0:this.invoker)&&this.invoker.caught(e),this.authPromiseResolve&&this.authPromiseResolve()})),this}setEndpoint(e){return!!e.match(/^http/)&&(this.endpoint=e.trim(),!0)}authorize(){var e,t,n,o;return r(this,void 0,void 0,function*(){let r;h("JWT Authorize",this.apiSecret),(null===this||void 0===this?void 0:this.invoker)&&this.invoker.constructor===p.XummSdkJwt&&(r=this.invoker._jwtStore(this,e=>this.jwt=e));const i=(null===r||void 0===r?void 0:r.get(this.apiSecret))||(yield this.call("authorize"));if(null===(t=null===(e=i)||void 0===e?void 0:e.error)||void 0===t?void 0:t.code)h("Could not resolve API Key & OTT to JWT (already fetched? Unauthorized?)"),(null===this||void 0===this?void 0:this.invoker)&&this.invoker.constructor===p.XummSdkJwt&&(null===(n=null===this||void 0===this?void 0:this.invoker)||void 0===n?void 0:n.fatalHandler)?this.invoker.fatalHandler(new Error(i.error.reference)):f.throwIfError(i);else{if(!(null===(o=i)||void 0===o?void 0:o.jwt))throw new Error("Unexpected response for xApp JWT authorize request");{const e=i;null===r||void 0===r||r.set(this.apiSecret,e)}}this.authPromiseResolve&&this.authPromiseResolve()})}call(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2?arguments[2]:void 0;var o;return r(this,void 0,void 0,function*(){const r=t.toUpperCase(),i=e.split("/")[0];this.jwtFlow&&!(null===this||void 0===this?void 0:this.jwt)&&this.authPromise&&"authorize"!==e&&(yield this.authPromise);try{let t;"undefined"!==typeof n&&("object"===typeof n&&null!==n&&(t=JSON.stringify(n)),"string"===typeof n&&(t=n));const o={"Content-Type":"application/json"};this.isBrowser||Object.assign(o,{"User-Agent":`xumm-sdk/node (${d.hostname()}) node-fetch`}),this.jwtFlow?"authorize"===e?Object.assign(o,{"x-api-key":this.apiKey,"x-api-ott":this.apiSecret}):Object.assign(o,{Authorization:"Bearer "+this.jwt}):Object.assign(o,{"x-api-key":this.apiKey,"x-api-secret":this.apiSecret});const a=["authorize","ping","curated-assets","rates","payload","userdata","xrpl-tx","nftoken-detail","rails","hookhash"],s=this.jwtFlow&&a.indexOf(i)>-1?"jwt":"platform",u=yield l(this.endpoint+"/api/v1/"+s+"/"+e,{method:r,body:t,headers:o});return yield u.json()}catch(a){const e=new Error(`Unexpected response from XUMM API [${r}:${i}]`);throw e.stack=(null===(o=a)||void 0===o?void 0:o.stack)||void 0,e}})}ping(){var e,t;return r(this,void 0,void 0,function*(){const n=yield this.call("ping");if(f.throwIfError(n),"undefined"!==typeof n.auth)return n.auth;if("undefined"!==typeof(null===(e=n)||void 0===e?void 0:e.ott_uuidv4))return{application:{uuidv4:n.app_uuidv4,name:n.app_name},jwtData:n};if("undefined"!==typeof(null===(t=n)||void 0===t?void 0:t.usertoken_uuidv4))return{application:{uuidv4:n.client_id,name:n.app_name},jwtData:n};throw new Error("Unexpected response for ping request")})}getCuratedAssets(){return r(this,void 0,void 0,function*(){return yield this.call("curated-assets")})}getRates(e){return r(this,void 0,void 0,function*(){return yield this.call("rates/"+e.trim().toUpperCase())})}getKycStatus(e){return r(this,void 0,void 0,function*(){if(e.trim().match(/^r/)){const t=yield this.call("kyc-status/"+e.trim());return(null===t||void 0===t?void 0:t.kycApproved)?"SUCCESSFUL":"NONE"}{const t=yield this.call("kyc-status","POST",{user_token:e});return(null===t||void 0===t?void 0:t.kycStatus)||"NONE"}})}getRails(){return r(this,void 0,void 0,function*(){return yield this.call("rails")})}getHookHash(e){return r(this,void 0,void 0,function*(){if("string"===typeof e&&e.trim().match(/^[A-Fa-f0-9]{64}$/))return yield this.call("hookhash/"+e.trim());throw Error("Invalid Hook Hash (expecting 64 char hex)")})}getHookHashes(){return r(this,void 0,void 0,function*(){return yield this.call("hookhash")})}getTransaction(e){return r(this,void 0,void 0,function*(){return yield this.call("xrpl-tx/"+e.trim())})}getNftokenDetail(e){return r(this,void 0,void 0,function*(){if(!this.jwtFlow)throw new Error("getNftokenDetail: only available in JWT (XummSdkJwt) mode");return yield this.call("nftoken-detail/"+e.trim())})}verifyUserTokens(e){return r(this,void 0,void 0,function*(){return(yield this.call("user-tokens","POST",{tokens:Array.isArray(e)?e:[e]})).tokens})}_inject(e){if(this.injected)throw new Error("Cannot `_inject` twice");this.invoker=e}}},1466:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.Xumm=void 0;const o=n(5668),i=n(6382),a=n(7284),l=e=>i.Buffer.from(e,"base64").toString("utf8");var s;!function(e){e.cli="cli",e.browser="browser",e.xapp="xapp"}(s||(s={}));const u={cli:!1,browser:!1,xapp:!1},c=new RegExp("^[0-9(a-f|A-F)]{8}-[0-9(a-f|A-F)]{4}-4[0-9(a-f|A-F)]{3}-[89ab][0-9(a-f|A-F)]{3}-[0-9(a-f|A-F)]{12}$"),d={},f="object"===typeof process&&process&&(null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://your-api-domain.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_XRPL_NETWORK:"mainnet",REACT_APP_XUMM_API_KEY:"ceeae4b9-d5a3-4759-8201-d881388df2b7",REACT_APP_XUMM_API_SECRET:"c84f36f9-8355-4832-8d86-6e9b5066333f"})||{};Object.assign(u,{cli:Object.keys(f).indexOf("NODE")>-1||Object.keys(f).indexOf("SHELL")>-1||Object.keys(f).indexOf("TERM")>-1||Object.keys(f).indexOf("PATH")>-1}),Object.assign(u,{browser:"object"===typeof process&&process&&(null===process||void 0===process?void 0:process.browser)||"object"===typeof document&&document&&(null===document||void 0===document?void 0:document.location)}),Object.assign(u,{xapp:u.browser&&(!!navigator.userAgent.match(/xumm\/xapp/i)||!!navigator.userAgent.match(/xAppBuilder/i))});const p=Object.keys(u).filter(e=>u[e]),h=[],m=e=>r(void 0,void 0,void 0,function*(){return yield Promise.all(h),yield e()}),v=e=>new Proxy(e,{get:(e,t)=>["on","off"].indexOf(String(t))<0&&("function"===typeof e[t]||"Promise"===e.constructor.name)?function(){return"Promise"===e.constructor.name?e.then(e=>m(()=>e[t](...arguments))):m(()=>e[t](...arguments))}:e[t]}),g={XummSdk:!1,XummSdkJwt:!1,XummPkce:!1,xApp:!1};let y,b="",w={},x={},k=0;class S{constructor(){this.account=m(()=>{var e,t,n;return null!==(t=null!==(e=null===w||void 0===w?void 0:w.sub)&&void 0!==e?e:null===x||void 0===x?void 0:x.sub)&&void 0!==t?t:null===(n=null===y||void 0===y?void 0:y.account_info)||void 0===n?void 0:n.account}),this.picture=m(()=>{var e,t,n,r,o,i,a;return null!==(e=null===x||void 0===x?void 0:x.picture)&&void 0!==e?e:(null!==(n=null!==(t=null===w||void 0===w?void 0:w.sub)&&void 0!==t?t:null===x||void 0===x?void 0:x.sub)&&void 0!==n?n:null===(r=null===y||void 0===y?void 0:y.account_info)||void 0===r?void 0:r.account)?`https://xumm.app/avatar/${null!==(i=null!==(o=null===w||void 0===w?void 0:w.sub)&&void 0!==o?o:null===x||void 0===x?void 0:x.sub)&&void 0!==i?i:null===(a=null===y||void 0===y?void 0:y.account_info)||void 0===a?void 0:a.account}.png`:void 0}),this.name=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.name)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.name}),this.domain=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.domain)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.domain}),this.source=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.source)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.source}),this.networkType=m(()=>{var e,t;return null!==(t=null!==(e=null===x||void 0===x?void 0:x.networkType)&&void 0!==e?e:w.network_type)&&void 0!==t?t:null===y||void 0===y?void 0:y.nodetype}),this.networkEndpoint=m(()=>{var e,t;return null!==(t=null!==(e=null===x||void 0===x?void 0:x.networkEndpoint)&&void 0!==e?e:w.network_endpoint)&&void 0!==t?t:null===y||void 0===y?void 0:y.nodewss}),this.networkId=m(()=>{var e,t;return null!==(t=null!==(e=null===x||void 0===x?void 0:x.networkId)&&void 0!==e?e:w.network_id)&&void 0!==t?t:null===y||void 0===y?void 0:y.networkid}),this.blocked=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.blocked)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.blocked}),this.kycApproved=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.kycApproved)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.kycApproved}),this.proSubscription=m(()=>{var e,t;return null!==(e=null===x||void 0===x?void 0:x.proSubscription)&&void 0!==e?e:null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.proSubscription}),this.profile=m(()=>{var e,t,n;return null!==(e=null===x||void 0===x?void 0:x.profile)&&void 0!==e?e:(null===(n=null===(t=null===y||void 0===y?void 0:y.account_info)||void 0===t?void 0:t.profile)||void 0===n?void 0:n.slug)?y.account_info.profile:void 0}),this.token=m(()=>{var e;return null!==(e=null===w||void 0===w?void 0:w.usertoken_uuidv4)&&void 0!==e?e:null})}}class E extends a.EventEmitter{constructor(e,t){var n,r,o,i;super(),this.instance="0",this.jwtCredential=!1,this.runtime=u,this.apiKeyOrJwt="",this.apiKeyOrJwt=e,this.apiSecretOrOtt=t,k++,this.instance=String(k),"undefined"!==typeof(null===console||void 0===console?void 0:console.log)&&(u.cli||console.log("Constructed Xumm",{runtime:p}));let a=!1;if("string"===typeof this.apiKeyOrJwt&&3===this.apiKeyOrJwt.split(".").length){let e;try{e=JSON.parse(l(null===(n=this.apiKeyOrJwt.split("."))||void 0===n?void 0:n[1]))}catch(c){}if(Date.now()>=1e3*e.exp){a=!0;const t=null!==(i=null!==(o=null!==(r=null===e||void 0===e?void 0:e.app_uuidv4)&&void 0!==r?r:null===e||void 0===e?void 0:e.client_id)&&void 0!==o?o:null===e||void 0===e?void 0:e.aud)&&void 0!==i?i:"";if(this.apiKeyOrJwt=t,u.cli||console.log("JWT expired, falling back to API KEY: "+t),u.cli||u.xapp){const e=new Error("JWT Expired, cannot fall back to API credential: in CLI/xApp environment");throw this.emit("error",e),e}}a||(this.jwtCredential=!0,b=this.apiKeyOrJwt)}this.initialize(),this.user=new S,this.environment={jwt:m(()=>w),ott:m(()=>y),openid:m(()=>x),bearer:m(()=>b),ready:new Promise(e=>this.on("ready",()=>e(void 0))),success:new Promise(e=>this.on("success",()=>e(void 0))),retrieved:new Promise(e=>this.on("retrieved",()=>e(void 0))),retrieving:new Promise(e=>this.on("retrieving",()=>e(void 0)))},this.state={account:"",signedIn:!1},this.helpers=v(m(()=>d.XummSdk||d.XummSdkJwt)),this.push=v(m(()=>(d.XummSdk||d.XummSdkJwt).Push)),this.payload=v(m(()=>(d.XummSdk||d.XummSdkJwt).payload)),this.userstore=v(m(()=>(d.XummSdk||d.XummSdkJwt).jwtUserdata)),this.backendstore=v(m(()=>(d.XummSdk||d.XummSdkJwt).storage));const s=null===d||void 0===d?void 0:d.xApp;s&&(this.xapp=s),setTimeout(()=>Promise.all([...h.filter(e=>"pkceRetrieverResolver"!==(null===e||void 0===e?void 0:e.promiseType)),u.xapp?Promise.resolve():new Promise(e=>{var t;(null===d||void 0===d?void 0:d.XummPkce)?(this.user.account.then(()=>e()),null===(t=d.XummPkce)||void 0===t||t.on("loggedout",()=>e())):e()})]).then(()=>this.emit("ready")),0)}initialize(){y=void 0,"string"===typeof this.apiKeyOrJwt&&3===this.apiKeyOrJwt.split(".").length&&b===this.apiKeyOrJwt||(b="",w={}),x={},g.XummSdkJwt=!1;const e=()=>r(this,void 0,void 0,function*(){(null===d||void 0===d?void 0:d.xApp)&&(g.xApp=!0,d.xApp.on("qr",e=>{this.emit("qr",e,this.instance)}),d.xApp.on("payload",e=>{this.emit("payload",e,this.instance)}),d.xApp.on("networkswitch",e=>{this.emit("networkswitch",e,this.instance)}),d.xApp.on("destination",e=>{this.emit("destination",e,this.instance)}))});this.handlePkceEvents();const t=()=>r(this,void 0,void 0,function*(){var e;if((null===d||void 0===d?void 0:d.XummSdkJwt)&&!g.XummSdkJwt){g.XummSdkJwt=!0;const n=this.jwtCredential||""!==b;n||(h.push(d.XummSdkJwt.getOttData()),h.push(d.XummSdkJwt.getJwt()));const r=n?null:yield d.XummSdkJwt.getOttData(),o=n?b:yield d.XummSdkJwt.getJwt();if(r&&(y=r,(null===y||void 0===y?void 0:y.account)&&(this.state.account=y.account,this.state.signedIn=!0),this.emit("retrieved"),this.emit("success")),o){b=o;try{w=JSON.parse(l(null===(e=b.split("."))||void 0===e?void 0:e[1])),n&&this.jwtCredential&&(setTimeout(()=>this.emit("retrieved"),0),setTimeout(()=>this.emit("success"),0))}catch(t){"undefined"!==typeof(null===console||void 0===console?void 0:console.log)&&(u.cli||console.log("Error decoding JWT",(null===t||void 0===t?void 0:t.message)||""))}}null===console||void 0===console||console.log}}),i=()=>{var e,r,o;(null===d||void 0===d?void 0:d.XummSdkJwt)||(Object.assign(d,{XummSdkJwt:new(n(5e3).XummSdkJwt)(this.apiKeyOrJwt,"undefined"!==typeof(null===(e=null===d||void 0===d?void 0:d.xApp)||void 0===e?void 0:e.getEnvironment)&&(null===(o=null===(r=null===d||void 0===d?void 0:d.xApp)||void 0===r?void 0:r.getEnvironment())||void 0===o?void 0:o.ott)||void 0)}),h.push(t()))};if(u.xapp){if("string"!==typeof this.apiKeyOrJwt||!c.test(this.apiKeyOrJwt)&&!this.jwtCredential)throw new Error("Running in xApp, constructor requires first param. to be Xumm API Key or JWT");(null===d||void 0===d?void 0:d.xApp)||Object.assign(d,{xApp:new(n(6703).xApp)}),h.push(e()),i()}else if(u.browser){if("string"!==typeof this.apiKeyOrJwt||!c.test(this.apiKeyOrJwt)&&!this.jwtCredential)throw new Error("Running in browser, constructor requires first param. to be Xumm API Key or JWT");if(!(null===d||void 0===d?void 0:d.XummPkce)&&!u.xapp&&(Object.assign(d,{XummPkce:new o.XummPkce(this.apiKeyOrJwt,{implicit:!0})}),d.XummPkce))if(this.jwtCredential)i();else{setTimeout(()=>this.emit("retrieving"),0);const e=e=>{var n,r;null===(r=null===(n=d.XummPkce)||void 0===n?void 0:n.state())||void 0===r||r.then(n=>{var r;(null===n||void 0===n?void 0:n.sdk)&&!(null===d||void 0===d?void 0:d.XummSdkJwt)&&(Object.assign(d,{XummSdkJwt:n.sdk}),Object.assign(x,Object.assign({},(null===n||void 0===n?void 0:n.me)||{})),(null===(r=null===n||void 0===n?void 0:n.me)||void 0===r?void 0:r.account)&&(this.state.account=n.me.account,this.state.signedIn=!0)),(null===n||void 0===n?void 0:n.jwt)&&""===b&&(b=n.jwt,t()),e(n)})};h.push(this.handlePkceEvents());const n=new Promise(t=>{var n,r;null===(n=d.XummPkce)||void 0===n||n.on("retrieved",()=>{e(t)}),null===(r=d.XummPkce)||void 0===r||r.on("success",()=>{e(t)})});h.push(Object.assign(n,{promiseType:"pkceRetrieverResolver"}))}}else if(u.cli){if("string"!==typeof this.apiKeyOrJwt)throw new Error("Running CLI, constructor needs first param. to be Xumm API Key / raw JWT");if(c.test(this.apiKeyOrJwt)&&("string"!==typeof this.apiSecretOrOtt||!c.test(this.apiSecretOrOtt)))throw new Error("Running CLI, constructor first param. is API Key, but second param. isn't a valid API Secret");if(!c.test(this.apiKeyOrJwt)&&3!==this.apiKeyOrJwt.split(".").length)throw new Error("Running CLI, constructor first param. not a valid JWT, nor a valid API Key");this.jwtCredential?i():(null===d||void 0===d?void 0:d.XummSdk)||Object.assign(d,{XummSdk:new(n(5e3).XummSdk)(this.apiKeyOrJwt,this.apiSecretOrOtt)})}}authorize(){var e;return r(this,void 0,void 0,function*(){try{return yield null===(e=null===d||void 0===d?void 0:d.XummPkce)||void 0===e?void 0:e.authorize()}catch(t){return t}})}handlePkceEvents(){return r(this,void 0,void 0,function*(){if((null===d||void 0===d?void 0:d.XummPkce)&&!g.XummPkce){g.XummPkce=!0;const e=()=>this.emit("retrieved"),t=()=>this.emit("success"),n=e=>this.emit("error",e);d.XummPkce.on("retrieved",e),d.XummPkce.on("success",t),d.XummPkce.on("error",n)}})}logout(){var e;return r(this,void 0,void 0,function*(){if(u.xapp)return;let t=!1;this.state.account="",this.state.signedIn=!1,"string"===typeof this.apiKeyOrJwt&&3===this.apiKeyOrJwt.split(".").length&&(null===w||void 0===w?void 0:w.app_uuidv4)&&this.jwtCredential&&(this.apiKeyOrJwt=w.app_uuidv4,this.jwtCredential=!1,t=!0,window._XummPkce=void 0),u.browser&&((null===x||void 0===x?void 0:x.sub)||t)&&(null===(e=null===d||void 0===d?void 0:d.XummPkce)||void 0===e||e.logout(),Object.assign(d,{XummSdk:void 0,XummSdkJwt:void 0,XummPkce:void 0}),h.length=0,this.jwtCredential=!1,this.initialize(),this.user=new S,this.environment={jwt:m(()=>w),ott:m(()=>y),openid:m(()=>x),bearer:m(()=>b),ready:new Promise(e=>this.on("ready",()=>e(void 0))),success:new Promise(e=>this.on("success",()=>e(void 0))),retrieved:new Promise(e=>this.on("retrieved",()=>e(void 0))),retrieving:new Promise(e=>this.on("retrieving",()=>e(void 0)))},this.emit("logout"))})}ping(){var e;return r(this,void 0,void 0,function*(){return yield Promise.all(h),null===(e=(null===d||void 0===d?void 0:d.XummSdkJwt)||(null===d||void 0===d?void 0:d.XummSdk))||void 0===e?void 0:e.ping()})}}t.Xumm=E},1497:(e,t,n)=>{"use strict";var r=n(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},1543:(e,t)=>{t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!==typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},1612:(e,t,n)=>{var r=n(3343),o=n(5436),i=n(8813),a=n(9898),l=n(392);function s(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=s.prototype;u.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},u.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new i,r=0,l=0;l=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var s=0;s<2;s++)if(null==this.modules[r][l-s]){var u=!1;i>>o&1)),a.getMask(t,r,l-s)&&(u=!u),this.modules[r][l-s]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),l=new i,u=0;u8*d)throw new Error("code length overflow. ("+l.getLengthInBits()+">"+8*d+")");for(l.getLengthInBits()+4<=8*d&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=8*d)&&(l.put(s.PAD0,8),!(l.getLengthInBits()>=8*d));)l.put(s.PAD1,8);return s.createBytes(l,r)},s.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),s=new Array(t.length),u=0;u=0?h.get(m):0}}var v=0;for(f=0;f1&&void 0!==arguments[1]&&arguments[1];var n;return r(this,void 0,void 0,function*(){const r="undefined"!==typeof e.TransactionType&&"undefined"===typeof e.txjson,o=yield this.Meta.call("payload","POST",r?{txjson:e}:e);t&&a.throwIfError(o);return void 0!==(null===(n=o)||void 0===n?void 0:n.next)?o:null})}get(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,o;return r(this,void 0,void 0,function*(){const r="string"===typeof e?e:null===e||void 0===e?void 0:e.uuid,i=yield this.Meta.call("payload/"+r,"GET");t&&a.throwIfError(i);return void 0!==(null===(o=null===(n=i)||void 0===n?void 0:n.meta)||void 0===o?void 0:o.uuid)?i:null})}subscribe(e,t){return r(this,void 0,void 0,function*(){const n=new a.DeferredPromise,o=yield this.resolvePayload(e);if(o){const a="undefined";let l,c,d,f=0;n.promise.then(()=>{clearTimeout(c),clearTimeout(d),l.close(1e3)});const p=()=>{var h,m;return l=typeof(null===(h=globalThis)||void 0===h?void 0:h.MockedWebSocket)!==a&&typeof jest!==a?new(null===(m=globalThis)||void 0===m?void 0:m.MockedWebSocket)("ws://xumm.local"):new i.w3cwebsocket(this.Meta.endpoint.replace(/^http/,"ws")+"/sign/"+o.meta.uuid),l.onopen=()=>{console.log(`Payload ${o.meta.uuid}: subscription active (WebSocket opened)`),c=setInterval(()=>{s("Send keepalive"),l.send('{"ping":true}')},2e3)},l.onmessage=i=>r(this,void 0,void 0,function*(){f=0;const a=i.data;let u;try{if(u=JSON.parse(a.toString()),(null===u||void 0===u?void 0:u.message)&&"Right back at you!"===u.message)return s("Keepalive response"),clearTimeout(d),void(d=setTimeout(()=>{console.log(`WebSocket for ${o.meta.uuid} keepalive response timeout, assume dead... (Reconnect)`),l.close(1002,"Assume dead")},1e4));if((null===u||void 0===u?void 0:u.signed)||(null===u||void 0===u?void 0:u.expired)){const t=yield this.resolvePayload(e);Object.assign(o,Object.assign({},t))}}catch(c){s(`Payload ${o.meta.uuid}: Received message, unable to parse as JSON`,c)}if(u&&t&&"undefined"===typeof u.devapp_fetched)try{const e=yield t({uuid:o.meta.uuid,data:u,resolve(e){return r(this,void 0,void 0,function*(){yield n.resolve(e||void 0)})},payload:o});void 0!==e&&n.resolve(e)}catch(c){s(`Payload ${o.meta.uuid}: Callback exception`,c),console.log(`Payload ${o.meta.uuid}: Callback exception: ${c.message}`)}}),l.onclose=e=>{s("Closed [code]",e.code),s("Closed [reason]",e.reason),s("Closed [wasClean]",e.wasClean),clearInterval(c),clearTimeout(d),(e.code>1e3||!1===e.wasClean)&&(console.log(e),s("Unhealthy disconnect, reconnecting...",e.code),f{f++,s("# Reconnect"),"undefined"===typeof jest&&(l=p())},2e3)):"undefined"===typeof jest&&console.log(`WebSocket for ${o.meta.uuid} exceeded reconnect timeouts, give up`)),s(`Payload ${o.meta.uuid}: Subscription ended (WebSocket closed)`)},l};return l=p(),{payload:o,resolve(e){n.resolve(e||void 0)},resolved:n.promise,websocket:l}}throw a.throwIfError(o),Error("Couldn't subscribe: couldn't fetch payload")})}cancel(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,o,i;return r(this,void 0,void 0,function*(){const r=yield this.resolvePayload(e),l=yield this.Meta.call("payload/"+(null===(n=null===r||void 0===r?void 0:r.meta)||void 0===n?void 0:n.uuid),"DELETE");t&&a.throwIfError(l);return void 0!==(null===(i=null===(o=l)||void 0===o?void 0:o.meta)||void 0===i?void 0:i.uuid)?l:null})}createAndSubscribe(e,t){return r(this,void 0,void 0,function*(){const n=yield this.create(e,!0);if(n){const e=yield this.subscribe(n,t);return Object.assign({created:n},e)}throw new Error("Error creating payload or subscribing to created payload")})}}},2799:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3243:(e,t,n)=>{e.exports=n(9003).version},3245:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),g=new a.default(-1,i.default[f]);g.addData(m),g.make();var y=g.modules;return s.default.createElement(u.default,r({},v,{bgColor:o,bgD:y.map(function(e,t){return e.map(function(e,n){return e?"":"M "+n+" "+t+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:c,fgD:y.map(function(e,t){return e.map(function(e,n){return e?"M "+n+" "+t+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:h,viewBoxSize:y.length}))});f.displayName="QRCode",f.propTypes=d,t.Ay=f},3343:(e,t,n)=>{var r=n(5957);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function E(e,t,r,o,i,a){return r=a.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(){}function j(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s,u,c=!1;if(null===e)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return j((c=e._init)(e._payload),t,o,i,a)}}if(c)return a=a(e),c=""===i?"."+P(e,0):i,x(a)?(o="",null!=c&&(o=c.replace(C,"$&/")+"/"),j(a,t,o,"",function(e){return e})):null!=a&&(_(a)&&(s=a,u=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+c,a=E(s.type,u,void 0,0,0,s.props)),t.push(a)),1;c=0;var d,h=""===i?".":i+":";if(x(e))for(var m=0;m{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(7004)},4445:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,s=r-o;ls?s:l+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,o=[],i=t;i{for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var l=0;l>>2]=n[l>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=l.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,l=i/(4*a),s=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,c=e.min(4*s,i);if(s){for(var d=0;d>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}()},4524:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||"undefined"!==typeof o&&o,i={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function a(e){return e&&DataView.prototype.isPrototypeOf(e)}if(i.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(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 i.iterable&&(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 p(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new n(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function m(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}function g(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=x(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");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function S(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function E(e){var t=new f;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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:"",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},b.call(k.prototype),b.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];_.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(N){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 P(e,a){return new n(function(n,l){var s=new k(e,a);if(s.signal&&s.signal.aborted)return l(new t.DOMException("Aborted","AbortError"));var u=new r;function d(){u.abort()}function p(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:E(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout(function(){n(new _(t,e))},0)},u.onerror=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},u.onabort=function(){setTimeout(function(){l(new t.DOMException("Aborted","AbortError"))},0)},u.open(s.method,p(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(i.blob?u.responseType="blob":i.arrayBuffer&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!a||"object"!==typeof a.headers||a.headers instanceof f?s.headers.forEach(function(e,t){u.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){u.setRequestHeader(e,c(a.headers[e]))}),s.signal&&(s.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",d)}),u.send("undefined"===typeof s._bodyInit?null:s._bodyInit)})}P.polyfill=!0,o.fetch||(o.fetch=P,o.Headers=f,o.Request=k,o.Response=_),t.Headers=f,t.Request=k,t.Response=_,t.fetch=P,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof n.g?n.g:this)},5e3:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.XummSdkJwt=t.XummSdk=void 0;const o=n(6522),i=n(1335),a=n(3729),l=n(2110),s=n(6333),u=n(6622),c=n(5882),d=n(6382),f=o.debug("xumm-sdk");class p{constructor(e,t){return f("Constructed"),this.Meta=new i.Meta(e||this.getEnv("XUMM_APIKEY"),t||this.getEnv("XUMM_APISECRET")),this.storage=new a.Storage(this.Meta),this.payload=new l.Payload(this.Meta),this.jwtUserdata=new c.JwtUserdata(this.Meta),this.Push=new u.Push(this.Meta),this.xApp=new s.xApp(this.Meta),this.Meta._inject(this),this}getEnv(e){let t="";try{t=(null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://your-api-domain.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_XRPL_NETWORK:"mainnet",REACT_APP_XUMM_API_KEY:"ceeae4b9-d5a3-4759-8201-d881388df2b7",REACT_APP_XUMM_API_SECRET:"c84f36f9-8355-4832-8d86-6e9b5066333f"}[e])||""}catch(n){}return t}ping(){return this.Meta.ping()}getCuratedAssets(){return this.Meta.getCuratedAssets()}getRails(){return this.Meta.getRails()}getHookHashes(){return this.Meta.getHookHashes()}getHookHash(e){return this.Meta.getHookHash(e)}getRates(e){return this.Meta.getRates(e)}getKycStatus(e){return this.Meta.getKycStatus(e)}getTransaction(e){return this.Meta.getTransaction(e)}getNftokenDetail(e){return this.Meta.getNftokenDetail(e)}verifyUserTokens(e){return this.Meta.verifyUserTokens(e)}verifyUserToken(e){return r(this,void 0,void 0,function*(){const t=yield this.Meta.verifyUserTokens([e]);return Array.isArray(t)&&1===t.length?t[0]:null})}setEndpoint(e){return this.Meta.setEndpoint(e)}caught(e){throw e}}t.XummSdk=p;t.XummSdkJwt=class extends p{constructor(e,t,n){var r,o,i,a,l,s,u,c;let p=String(t||"").trim().toLowerCase();const h=36!==e.length;if(!h&&"undefined"===typeof t&&"undefined"!==typeof window&&"undefined"!==typeof window.URLSearchParams){const e=new window.URLSearchParams((null===(r=null===window||void 0===window?void 0:window.location)||void 0===r?void 0:r.search)||"");for(const t of e.entries())"xAppToken"===t[0]&&(p=t[1].toLowerCase().trim());if(""===p&&!(null===n||void 0===n?void 0:n.store)&&!(null===n||void 0===n?void 0:n.noAutoRetrieve)&&"string"===typeof(null===(o=null===window||void 0===window?void 0:window.localStorage)||void 0===o?void 0:o.XummSdkJwt))try{const e=null===(a=null===(i=null===window||void 0===window?void 0:window.localStorage)||void 0===i?void 0:i.XummSdkJwt)||void 0===a?void 0:a.split(":"),t=JSON.parse(null===(l=null===e||void 0===e?void 0:e.slice(1))||void 0===l?void 0:l.join(":"));if(null===t||void 0===t?void 0:t.jwt){const n=d.Buffer.from(null===(s=t.jwt.split("."))||void 0===s?void 0:s[1],"base64").toString("utf8"),r=JSON.parse(n);if(null===r||void 0===r?void 0:r.exp){const t=(null===r||void 0===r?void 0:r.exp)-Math.floor((new Date).getTime()/1e3);console.log("Restoring OTT "+(null===e||void 0===e?void 0:e[0])),t>3600?p=null===e||void 0===e?void 0:e[0]:console.log("Skip restore: not valid for one more hour")}}}catch(m){console.log("JWT Restore Error",m)}}super(e,h||""===p?"RAWJWT:"+e:"xApp:OneTimeToken:"+p),this.resolve=e=>{f("OTT data resolved",e)},this.reject=e=>{f("OTT data rejected",e.message)},this.ottResolved=h?Promise.resolve():new Promise((e,t)=>{this.resolve=e,this.reject=t}),(null===n||void 0===n?void 0:n.fatalHandler)&&(this.fatalHandler=n.fatalHandler),this.store={get(e){var t;if(f("[JwtStore] \xbb Builtin JWT store GET"),"undefined"!==typeof window&&"undefined"!==typeof window.localStorage&&"string"===typeof window.localStorage.XummSdkJwt){const n=window.localStorage.XummSdkJwt.split(":");if(n[0]===e){f("Restoring OTT from localStorage:",e);try{return JSON.parse(n.slice(1).join(":"))}catch(m){f("Error restoring OTT Data (JWT) from localStorage",null===(t=m)||void 0===t?void 0:t.message)}}}},set(e,t){f("[JwtStore] \xbb Builtin JWT store SET",e),"undefined"!==typeof window&&"undefined"!==typeof localStorage&&(window.localStorage.XummSdkJwt=e+":"+JSON.stringify(t))}},(null===(u=null===n||void 0===n?void 0:n.store)||void 0===u?void 0:u.get)&&(this.store.get=n.store.get),(null===(c=null===n||void 0===n?void 0:n.store)||void 0===c?void 0:c.set)&&(this.store.set=n.store.set),h?(this.reject(new Error("Not in OTT flow: in raw JWT (OAuth2-like) flow")),f("Using JWT (Raw, OAuth2) flow")):f("Using JWT (xApp) flow")}_jwtStore(e,t){if(e&&(null===e||void 0===e?void 0:e.constructor)===i.Meta)return{get:e=>{var t;return f("[JwtStore] Proxy GET"),null===(t=this.store)||void 0===t?void 0:t.get(e)},set:(e,n)=>{var r;return f("[JwtStore] Proxy SET"),this.resolve(n.ott),t(n.jwt),this.jwt=n.jwt,null===(r=this.store)||void 0===r?void 0:r.set(e,n)}};throw new Error("Invalid _jwtStore invoker")}getOttData(){return r(this,void 0,void 0,function*(){const e=yield this.ottResolved;if(e)return e;throw new Error("Called getOttData on a non OTT-JWT flow")})}getJwt(){return r(this,void 0,void 0,function*(){return yield this.ottResolved,this.jwt})}caught(e){this.reject(e)}}},5043:(e,t,n)=>{"use strict";e.exports=n(4288)},5063:(e,t,n)=>{var r;if("object"===typeof globalThis)r=globalThis;else try{r=n(446)}catch(l){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(3243);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})}),e.exports={w3cwebsocket:o?a:null,version:i}},5173:(e,t,n)=>{e.exports=n(1497)()},5237:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,i,a=null;function l(){for(var e=arguments.length,r=new Array(e),o=0;o{if("%%"===e)return"%";u++;const o=t.formatters[n];if("function"===typeof o){const t=r[u];e=o.call(i,t),r.splice(u,1),u--}return e}),t.formatArgs.call(i,r);(i.log||t.log).apply(i,r)}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=r,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"===typeof t.init&&t.init(l),l}function r(e,n){const r=t(this.namespace+("undefined"===typeof n?":":n)+e);return r.log=this.log,r}function o(e,t){let n=0,r=0,o=-1,i=0;for(;n"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"===typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const r of n)"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(const n of t.skips)if(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=n(7340),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var r=n(7742);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=new Array,a=0;a{let t=e=>{};return{promise:new Promise(e=>{t=e}),resolve:e=>t(e)}};class c extends i.EventEmitter{constructor(e,t){var n,o;super(),this.popup=null,this.resolved=!1,this.mobileRedirectFlow=!1,this.eventPromises={retrieved:u(),error:u(),success:u(),loggedout:u()},this.options={redirectUrl:document.location.href,rememberJwt:!0,storage:localStorage,implicit:!1},"string"===typeof t?this.options.redirectUrl=t:"object"===typeof t&&t&&("string"===typeof t.redirectUrl&&(this.options.redirectUrl=t.redirectUrl),"boolean"===typeof t.rememberJwt&&(this.options.rememberJwt=t.rememberJwt),"object"===typeof t.storage&&(this.options.storage=t.storage),"boolean"===typeof t.implicit&&(this.options.implicit=t.implicit));const i={client_id:e,redirect_uri:this.options.redirectUrl,authorization_endpoint:"https://oauth2.xumm.app/auth",token_endpoint:"https://oauth2.xumm.app/token",requested_scopes:"XummPkce",storage:this.options.storage,implicit:this.options.implicit};if(this.pkce=new l.default(i),this.options.rememberJwt){s("Remember JWT");try{const e=JSON.parse((null===(n=this.options.storage)||void 0===n?void 0:n.getItem("XummPkceJwt"))||"{}");if((null===e||void 0===e?void 0:e.jwt)&&"string"===typeof e.jwt){const t=new a.XummSdkJwt(e.jwt);this.ping=t.ping(),this.ping.then(n=>r(this,void 0,void 0,function*(){var r;(null===(r=null===n||void 0===n?void 0:n.jwtData)||void 0===r?void 0:r.sub)?(this.autoResolvedFlow=Object.assign(e,{sdk:t}),yield this.authorize(),this.emit("retrieved")):this.logout()})).catch(e=>{this.logout()})}else this.logout()}catch(d){}}window.addEventListener("message",e=>{var t;if(s("Received Event from ",e.origin),"{"===String((null===e||void 0===e?void 0:e.data)||"").slice(0,1)&&"}"===String((null===e||void 0===e?void 0:e.data)||"").slice(-1)&&(s("Got PostMessage with JSON"),"https://xumm.app"===e.origin||"https://oauth2.xumm.app"===e.origin)){s("Got PostMessage from https://xumm.app / https://oauth2.xumm.app");try{const n=JSON.parse(e.data);"xumm_sign_request"===(null===n||void 0===n?void 0:n.source)&&(null===n||void 0===n?void 0:n.payload)?s("Payload opened:",n.payload):"xumm_sign_request_resolved"===(null===n||void 0===n?void 0:n.source)&&(null===n||void 0===n?void 0:n.options)?(s("Payload resolved, mostmessage containing options containing redirect URL: ",n),this.resolved=!0,this.pkce.exchangeForAccessToken(n.options.full_redirect_uri).then(e=>{if(this.jwt=e.access_token,null===e||void 0===e?void 0:e.error_description)throw new Error(null===e||void 0===e?void 0:e.error_description);fetch("https://oauth2.xumm.app/userinfo",{headers:{Authorization:"Bearer "+e.access_token}}).then(e=>e.json()).then(t=>{var n;if(this.resolvePromise){if(this.options.rememberJwt){s("Remembering JWT");try{null===(n=this.options.storage)||void 0===n||n.setItem("XummPkceJwt",JSON.stringify({jwt:e.access_token,me:t}))}catch(d){s("Could not persist JWT to local storage",d)}}this.resolvePromise({jwt:e.access_token,sdk:new a.XummSdkJwt(e.access_token),me:t})}})}).catch(e=>{this.rejectPromise&&this.rejectPromise((null===e||void 0===e?void 0:e.error)?new Error(e.error):e),s((null===e||void 0===e?void 0:e.error)||e)})):"xumm_sign_request_rejected"===(null===n||void 0===n?void 0:n.source)?(s("Payload rejected",null===n||void 0===n?void 0:n.options),this.rejectPromise&&this.rejectPromise(new Error((null===(t=null===n||void 0===n?void 0:n.options)||void 0===t?void 0:t.error_description)||"Payload rejected"))):"xumm_sign_request_popup_closed"===(null===n||void 0===n?void 0:n.source)?(s("Popup closed, wait 750ms"),setTimeout(()=>{!this.resolved&&this.rejectPromise&&this.rejectPromise(new Error("Sign In window closed"))},750)):s("Unexpected message, skipping",null===n||void 0===n?void 0:n.source)}catch(d){s("Error parsing message",(null===d||void 0===d?void 0:d.message)||d)}}},!1);const c=new URLSearchParams((null===(o=null===document||void 0===document?void 0:document.location)||void 0===o?void 0:o.search)||"");if(c.get("authorization_code")||c.get("access_token")||c.get("error_description")){this.mobileRedirectFlow=!0,this.urlParams=c;let e=!1;const t=t=>r(this,void 0,void 0,function*(){s("onDocumentReady",document.readyState),e||"complete"!==document.readyState||(e=!0,s("(readystatechange: [ "+document.readyState+" ])"),this.handleMobileGrant(),yield this.authorize(),this.emit("retrieved"))});t(),document.addEventListener("readystatechange",t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rsuper.emit(e,...n)),!0}on(e,t){return this.eventPromises[e].resolve(),super.on(e,t)}off(e,t){return this.eventPromises[e]=u(),super.off(e,t)}authorizeUrl(){return this.pkce.authorizeUrl()}handleMobileGrant(){if(this.urlParams&&this.mobileRedirectFlow){const e={data:JSON.stringify(this.urlParams.get("authorization_code")||this.urlParams.get("access_token")?{source:"xumm_sign_request_resolved",options:{full_redirect_uri:document.location.href}}:{source:"xumm_sign_request_rejected",options:{error:this.urlParams.get("error"),error_code:this.urlParams.get("error_code"),error_description:this.urlParams.get("error_description")}}),origin:"https://oauth2.xumm.app"},t=new MessageEvent("message",e);return window.dispatchEvent(t),!0}return!1}authorize(){return r(this,void 0,void 0,function*(){if(this.resolvedSuccessfully)return this.promise;this.resolved=!1;try{yield this.ping}catch(e){}if(!this.mobileRedirectFlow&&!this.autoResolvedFlow){const e=this.authorizeUrl(),t=window.open(e,"XummPkceLogin","directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=790");this.popup=t,s("Popup opened...",e)}this.resolved=!1;return(()=>{var e;const t=new URLSearchParams((null===(e=null===document||void 0===document?void 0:document.location)||void 0===e?void 0:e.search)||"");t.delete("authorization_code"),t.delete("code"),t.delete("scope"),t.delete("state"),t.delete("access_token"),t.delete("refresh_token"),t.delete("token_type"),t.delete("expires_in");const n=t.toString(),r=document.location.href.split("?")[0]+(""!==n?"?":"")+n;window.history.replaceState({path:r},"",r)})(),this.autoResolvedFlow?this.resolved||(this.resolved=!0,this.promise=Promise.resolve(this.autoResolvedFlow),this.rejectPromise=this.resolvePromise=()=>{},s("Auto resolved"),this.emit("success")):this.promise=new Promise((e,t)=>{this.resolvePromise=t=>{const n=e(t);return this.resolved=!0,this.resolvedSuccessfully=!0,s("Xumm Sign in RESOLVED"),this.emit("success"),n},this.rejectPromise=e=>{const n=t(e);return this.resolved=!0,this.emit("error","string"===typeof e?new Error(e):e),s("Xumm Sign in REJECTED"),n}}),this.promise})}state(){return r(this,void 0,void 0,function*(){return this.promise})}logout(){var e;setTimeout(()=>this.emit("loggedout"),0);try{this.resolved=!1,this.resolvedSuccessfully=void 0,this.autoResolvedFlow=void 0,null===(e=this.options.storage)||void 0===e||e.removeItem("XummPkceJwt"),this.mobileRedirectFlow=!1}catch(t){}}getPopup(){return null===this||void 0===this?void 0:this.popup}}t.XummPkceThread=c;const d=e=>{let t=!1;e&&"object"===typeof window&&"undefined"===typeof window._XummPkce&&(window._XummPkce=e,t=!0);const n=null===window||void 0===window?void 0:window._XummPkce;return n&&t&&s("XummPkce attached to window"),n};t.XummPkce=class{constructor(e,t){"undefined"!==typeof window&&"undefined"!==typeof document&&(d()||d(new c(e,t)))}on(e,t){const n=d();if(n)return n.on(e,t),this}off(e,t){const n=d();if(n)return n.off(e,t),this}authorize(){const e=d();if(e)return e.authorize()}state(){const e=d();if(e)return e.state()}logout(){const e=d();if(e)return e.logout()}}},5882:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.JwtUserdata=void 0;const o=n(6522),i=n(8785),a=o.debug("xumm-sdk:xapp:userdata"),l=e=>{if("string"!==typeof e||!e.match(/^[a-z0-9]{3,}$/))throw new Error("Invalid key, only a-z0-9 (min three chars) allowed: "+e)};t.JwtUserdata=class{constructor(e){a("Constructed"),this.Meta=e}list(){return r(this,void 0,void 0,function*(){const e=yield this.Meta.call("userdata","GET");return i.throwIfError(e),e.keys})}get(e){var t;return r(this,void 0,void 0,function*(){const n=Array.isArray(e)?e.join(","):e;n.split(",").forEach(e=>l(e));const r=yield this.Meta.call("userdata/"+n,"GET");return i.throwIfError(r),n.split(",").length>1?r.data:(null===(t=r.data)||void 0===t?void 0:t[n])||{}})}delete(e){return r(this,void 0,void 0,function*(){l(e);const t=yield this.Meta.call("userdata/"+e,"DELETE");return i.throwIfError(t),t.persisted})}set(e,t){return r(this,void 0,void 0,function*(){l(e);const n=yield this.Meta.call("userdata/"+e,"POST",t);return i.throwIfError(n),n.persisted})}}},5896:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(s,n))ui(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(ui(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(v=!1,x(e),!m)if(null!==r(u))m=!0,E||(E=!0,S());else{var t=r(c);null!==t&&O(k,t.startTime-e)}}var S,E=!1,_=-1,C=5,P=-1;function N(){return!!g||!(t.unstable_now()-Pe&&N());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof l){f.callback=l,x(e),n=!0;break t}f===r(u)&&o(u),x(e)}else o(u);f=r(u)}if(null!==f)n=!0;else{var s=r(c);null!==s&&O(k,s.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?S():E=!1}}}if("function"===typeof w)S=function(){w(j)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,T=A.port2;A.port1.onmessage=j,S=function(){T.postMessage(null)}}else S=function(){y(j,0)};function O(e,n){_=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(b(_),_=-1):v=!0,O(k,i-a))):(e.sortIndex=l,n(u,e),m||h||(m=!0,E||(E=!0,S()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5957:e=>{e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},6333:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.xApp=void 0;const o=n(6522),i=n(5882),a=n(8785),l=o.debug("xumm-sdk:xapp");t.xApp=class{constructor(e){l("Constructed"),this.Meta=e,this.userdata=new i.JwtUserdata(e)}get(e){return r(this,void 0,void 0,function*(){const t=yield this.Meta.call("xapp/ott/"+e,"GET");return a.throwIfError(t),t})}}},6368:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,l=[],s=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(l[o]=n(e.pow(r,.5))),s[o]=n(e.pow(r,1/3)),o++),r++}();var u=[],c=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(l.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],c=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=u[p-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=m+u[p-7]+g+u[p-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=f+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&d)+s[p]+u[p];f=d,d=c,c=l,l=a+w|0,a=i,i=o,o=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(c),n.HmacSHA256=i._createHmacHelper(c)}(Math),t.SHA256)}()},6382:(e,t,n)=>{"use strict";const r=n(4445),o=n(6900),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function l(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=l(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|h(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Q(e.length)?l(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),l(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=l(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(o)return r?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function v(e,t,n){let 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 A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,a=1,l=e.length,s=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;a=2,l/=2,s/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,l,s;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128===(192&n)&&(s=(31&t)<<6|63&n,s>127&&(i=s));break;case 3:n=e[o+1],r=e[o+2],128===(192&n)&&128===(192&r)&&(s=(15&t)<<12|(63&n)<<6|63&r,s>2047&&(s<55296||s>57343)&&(i=s));break;case 4:n=e[o+1],r=e[o+2],l=e[o+3],128===(192&n)&&128===(192&r)&&128===(192&l)&&(s=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&l,s>65535&&s<1114112&&(i=s))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n);for(let s=0;s>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function N(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;or)&&(n=r);let o="";for(let i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r,o){X(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,o){X(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||O(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Y(function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Y(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Y(function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Y(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");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("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function X(e,t,n,r,o,i){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,o,i)}function H(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=U(String(n)):"bigint"===typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const q=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function V(e,t,n,r){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!==e}const G=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Y(e){return"undefined"===typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},6522:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(n){}!e&&"undefined"!==typeof process&&"env"in process&&(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://your-api-domain.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_XRPL_NETWORK:"mainnet",REACT_APP_XUMM_API_KEY:"ceeae4b9-d5a3-4759-8201-d881388df2b7",REACT_APP_XUMM_API_SECRET:"c84f36f9-8355-4832-8d86-6e9b5066333f"}.DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(5237)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6622:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.Push=void 0;const o=n(6522),i=n(5882),a=n(8785),l=o.debug("xumm-sdk:xapp");t.Push=class{constructor(e){l("Constructed"),this.Meta=e,this.userdata=new i.JwtUserdata(e)}event(e){return r(this,void 0,void 0,function*(){const t=yield this.Meta.call("xapp/event","POST",e);return a.throwIfError(t),t})}notification(e){return r(this,void 0,void 0,function*(){const t=yield this.Meta.call("xapp/push","POST",e);return a.throwIfError(t),t})}}},6672:(e,t,n)=>{"use strict";var r=n(5043);function o(e){var t="https://react.dev/errors/"+e;if(1{d=t=>{console.log("Doc Ready...");const n=(Number(new Date)-c)/1e3;n= 0.25 sec, stalling for "+(u-n)),setTimeout(function(){e(t)},1e3*(u-n))):(console.log("Doc alive 0.25+ sec, go ahead"),e(t))}});f.then(()=>{console.log("documentReadyPromise resolved")}).catch(e=>{console.log(e)}),"undefined"!==typeof document&&document.addEventListener("readystatechange",e=>{console.log("(readystatechange: [ "+document.readyState+" ])"),"complete"===document.readyState&&d()}),"undefined"!==typeof window&&console.log("Loading xApp SDK");let p="undefined"!==typeof window?window:{},h=!1;(null===p||void 0===p?void 0:p.parent)&&(null===(r=p.parent)||void 0===r||r.postMessage("XAPP_PROXY_INIT","*"));const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return a(void 0,void 0,void 0,function*(){var r,o;if(yield f,"undefined"!==typeof(null===p||void 0===p?void 0:p.ReactNativeWebView)||h){const n=(Number(new Date)-c)/1e3;if(["close"].indexOf(e)>-1){const e=4;n{setTimeout(()=>{t(!0)},1e3*(e-n))}))}const i=JSON.stringify(Object.assign({command:e},t||{}));return h?null===(r=p.parent)||void 0===r||r.postMessage(i,"*"):null===(o=p.ReactNativeWebView)||void 0===o||o.postMessage(i),console.log("xAppActionAttempt Success",e,t),!0}return 250*n<2e3?(console.log("xAppActionAttempt Attempt "+n+" \xbb Retry",e,t),yield new Promise(e=>{setTimeout(e,250)}),m(e,t,n+1)):(console.log("xAppActionAttempt Failed after attempt "+n,e,t),new Error("xApp."+e.replace(/^xApp/,"")+": could not contact Xumm App Host"))})};class v extends l.EventEmitter{constructor(){super(),"complete"===document.readyState&&d();const e=e=>{const t=e;if("string"===typeof(null===t||void 0===t?void 0:t.data)&&"XAPP_PROXY_INIT_ACK"===t.data)return console.log("xApp Proxy ACK received, switching to PROXY (SANDBOX) mode"),void(h=!0);try{const e=JSON.parse((null===t||void 0===t?void 0:t.data)||"{}");if(console.log("_event (typeof, {_event}) ",typeof e,{_event:e}),"object"===typeof e&&null!==e)if("string"===typeof e.method&&e.method in s.xAppEvents){console.log("xApp Event received",e.method,e);const t=e.method;switch(delete e.method,t){case String(s.xAppEvents.payloadResolved):this.emit("payload",e);break;case String(s.xAppEvents.scanQr):this.emit("qr",e);break;case String(s.xAppEvents.networkSwitch):this.emit("networkswitch",e);break;case String(s.xAppEvents.selectDestination):this.emit("destination",e)}}else console.log("xApp Event received, not in xAppEvents:",e.method)}catch(n){const e=(null===n||void 0===n?void 0:n.message)||"";e.match(/XAPP_PROXY_INIT/)||console.log("xApp Event received, cannot parse as JSON",e)}};"function"===typeof window.addEventListener&&window.addEventListener("message",e),"function"===typeof document.addEventListener&&document.addEventListener("message",e)}getEnvironment(){const e=g();return e?e.getEnvironment():{version:"",ott:""}}navigate(e){return"string"!==typeof(null===e||void 0===e?void 0:e.xApp)?Promise.reject(new Error("xApp.navigate: Invalid argument: `xApp`")):m("xAppNavigate",e)}openSignRequest(e){return"string"!==typeof(null===e||void 0===e?void 0:e.uuid)?Promise.reject(new Error("xApp.openSignRequest: Invalid argument: `uuid`")):e.uuid.match(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i)?m("openSignRequest",e):Promise.reject(new Error("xApp.openSignRequest: Invalid payload UUID"))}selectDestination(e){return m("selectDestination",e)}openBrowser(e){return"string"!==typeof(null===e||void 0===e?void 0:e.url)?Promise.reject(new Error("xApp.openBrowser: Invalid argument: `url`")):m("openBrowser",e)}share(e){return"string"!==typeof(null===e||void 0===e?void 0:e.text)?Promise.reject(new Error("xApp.share: Invalid argument: `text`")):m("share",e)}scanQr(){return m("scanQr")}tx(e){return"string"!==typeof(null===e||void 0===e?void 0:e.tx)?Promise.reject(new Error("xApp.tx: Invalid argument: `tx`")):"string"!==typeof(null===e||void 0===e?void 0:e.account)?Promise.reject(new Error("xApp.tx: Invalid argument: `account`")):m("txDetails",e)}close(e){return m("close",e)}ready(){return m("ready")}customCommand(e,t){return m(e,t)}}const g=e=>{let t=!1;e&&"object"===typeof p&&"undefined"===typeof p._xAppSdk&&(p._xAppSdk=e,t=!0);const n=null===p||void 0===p?void 0:p._xAppSdk;return n&&t&&console.log("xAppSdk attached to window"),n};t.xApp=class{constructor(){if(this.xummEnvironment={version:"",ott:""},"undefined"!==typeof window&&"undefined"!==typeof document){if("undefined"!==typeof navigator&&"string"===typeof(null===navigator||void 0===navigator?void 0:navigator.userAgent)){const e=navigator.userAgent.trim().match(/xumm\/xapp:([0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}).*ott:([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/);e&&(this.xummEnvironment.version=e[1],this.xummEnvironment.ott=e[2])}""===this.xummEnvironment.version&&console.log("Warning: Xumm Version could not be retrieved from User Agent, possibly not loaded in xApp context?"),g()||g(new v)}}getEnvironment(){return this.xummEnvironment}on(e,t){const n=g();if(n)return n.on(e,t),this}off(e,t){const n=g();if(n)return n.off(e,t),this}navigate(e){const t=g();if(t)return t.navigate(e)}openSignRequest(e){const t=g();if(t&&(null===e||void 0===e?void 0:e.uuid))return t.openSignRequest(e)}selectDestination(e){const t=g();if(t)return t.selectDestination(e)}openBrowser(e){const t=g();if(t)return t.openBrowser(e)}share(e){const t=g();if(t)return t.share(e)}scanQr(){const e=g();if(e)return e.scanQr()}tx(e){const t=g();if(t)return t.tx(e)}close(e){const t=g();if(t)return t.close(e)}ready(){const e=g();if(e)return e.ready()}customCommand(e,t){const n=g();if(n)return n.customCommand(e,t)}}},6900:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,c=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,u=8*i-o-1,c=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+d>=1?f/s:f*Math.pow(2,1-d))*s>=2&&(a++,s/=2),a+d>=c?(l=0,a=c):a+d>=1?(l=(t*s-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},7004:(e,t,n)=>{"use strict";var r=n(8853),o=n(5043),i=n(7950);function a(e){var t="https://react.dev/errors/"+e;if(1I||(e.current=z[I],z[I]=null,I--)}function U(e,t){I++,z[I]=e.current,e.current=t}var X=B(null),H=B(null),$=B(null),q=B(null);function W(e,t){switch(U($,t),U(H,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=id(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(X),U(X,e)}function J(){F(X),F(H),F($)}function V(e){null!==e.memoizedState&&U(q,e);var t=X.current,n=id(t,e.type);t!==n&&(U(H,e),U(X,n))}function K(e){H.current===e&&(F(X),F(H)),q.current===e&&(F(q),Vd._currentValue=D)}var Q=Object.prototype.hasOwnProperty,G=r.unstable_scheduleCallback,Y=r.unstable_cancelCallback,Z=r.unstable_shouldYield,ee=r.unstable_requestPaint,te=r.unstable_now,ne=r.unstable_getCurrentPriorityLevel,re=r.unstable_ImmediatePriority,oe=r.unstable_UserBlockingPriority,ie=r.unstable_NormalPriority,ae=r.unstable_LowPriority,le=r.unstable_IdlePriority,se=r.log,ue=r.unstable_setDisableYieldValue,ce=null,de=null;function fe(e){if("function"===typeof se&&ue(e),de&&"function"===typeof de.setStrictMode)try{de.setStrictMode(ce,e)}catch(t){}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/me|0)|0},he=Math.log,me=Math.LN2;var ve=256,ge=4194304;function ye(e){var t=42&e;if(0!==t)return t;switch(e&-e){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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function be(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~i)?o=ye(r):0!==(a&=l)?o=ye(a):n||0!==(n=l&~e)&&(o=ye(n)):0!==(l=r&~i)?o=ye(l):0!==a?o=ye(a):n||0!==(n=r&~e)&&(o=ye(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&0!==(4194048&n))?t:o}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function xe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;default:return-1}}function ke(){var e=ve;return 0===(4194048&(ve<<=1))&&(ve=256),e}function Se(){var e=ge;return 0===(62914560&(ge<<=1))&&(ge=4194304),e}function Ee(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ce(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-pe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pe(n),o=1<)":-1--o||s[r]!==u[o]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{it=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ot(n):""}function lt(e){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return ot("Activity");default:return""}}function st(e){try{var t="";do{t+=lt(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ht=/[\n"\\]/g;function mt(e){return e.replace(ht,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,i,a,l){e.name="",null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?yt(e,a,ut(t)):null!=n?yt(e,a,ut(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!==typeof o&&"symbol"!==typeof o),null!=l&&"function"!==typeof l&&"symbol"!==typeof l&&"boolean"!==typeof l?e.name=""+ut(l):e.removeAttribute("name")}function gt(e,t,n,r,o,i,a,l){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:o)&&"symbol"!==typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.name=a)}function yt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=Sn),Cn=String.fromCharCode(32),Pn=!1;function Nn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var Tn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function On(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tn[e.type]:"textarea"===t}function Ln(e,t,n,r){Ot?Lt?Lt.push(r):Lt=[r]:Ot=r,0<(t=$c(t,"onChange")).length&&(n=new Zt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Mn=null;function Dn(e){Dc(e,0)}function zn(e){if(ft(He(e)))return e}function In(e,t){if("change"===e)return t}var Bn=!1;if(It){var Fn;if(It){var Un="oninput"in document;if(!Un){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Un="function"===typeof Xn.oninput}Fn=Un}else Fn=!1;Bn=Fn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function Zn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Zn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function er(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nr=It&&"documentMode"in document&&11>=document.documentMode,rr=null,or=null,ir=null,ar=!1;function lr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ir&&Qn(ir,r)||(ir=r,0<(r=$c(or,"onSelect")).length&&(t=new Zt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:sr("Animation","AnimationEnd"),animationiteration:sr("Animation","AnimationIteration"),animationstart:sr("Animation","AnimationStart"),transitionrun:sr("Transition","TransitionRun"),transitionstart:sr("Transition","TransitionStart"),transitioncancel:sr("Transition","TransitionCancel"),transitionend:sr("Transition","TransitionEnd")},cr={},dr={};function fr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return cr[e]=n[t];return e}It&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var pr=fr("animationend"),hr=fr("animationiteration"),mr=fr("animationstart"),vr=fr("transitionrun"),gr=fr("transitionstart"),yr=fr("transitioncancel"),br=fr("transitionend"),wr=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),Ve(t,[e])}xr.push("scrollEnd");var Sr=new WeakMap;function Er(e,t){if("object"===typeof e&&null!==e){var n=Sr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:st(t)},Sr.set(e,t),t)}return{value:e,source:t,stack:st(t)}}var _r=[],Cr=0,Pr=0;function Nr(){for(var e=Cr,t=Pr=Cr=0;t>=a,o-=a,Gr=1<<32-pe(t)+o|n<i?i:8;var a=R.T,l={};R.T=l,Ua(e,!1,t,n);try{var s=o(),u=R.S;if(null!==u&&u(l,s),null!==s&&"object"===typeof s&&"function"===typeof s.then)Fa(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;eh?(m=d,d=null):m=d.sibling;var v=p(o,d,l[h],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,d=m}if(h===l.length)return n(o,d),io&&Zr(o,h),u;if(null===d){for(;hm?(v=h,h=null):v=h.sibling;var b=p(o,h,y.value,u);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&t(o,h),l=i(b,l,m),null===d?c=b:d.sibling=b,d=b,h=v}if(y.done)return n(o,h),io&&Zr(o,m),c;if(null===h){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return io&&Zr(o,m),c}for(h=r(h);!y.done;m++,y=s.next())null!==(y=g(h,o,m,y.value,u))&&(e&&null!==y.alternate&&h.delete(null===y.key?m:y.key),l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach(function(e){return t(o,e)}),io&&Zr(o,m),c}(s,u,c=b.call(c),d)}if("function"===typeof c.then)return y(s,u,Ga(c),d);if(c.$$typeof===x)return y(s,u,No(s,c),d);Za(s,c)}return"string"===typeof c&&""!==c||"number"===typeof c||"bigint"===typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(d=o(u,c)).return=s,s=d):(n(s,u),(d=Xr(c,s.mode,d)).return=s,s=d),l(s)):n(s,u)}return function(e,t,n,r){try{Qa=0;var o=y(e,t,n,r);return Ka=null,o}catch(a){if(a===Wo||a===Vo)throw a;var i=Dr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var nl=tl(!0),rl=tl(!1),ol=B(null),il=null;function al(e){var t=e.alternate;U(cl,1&cl.current),U(ol,e),null===il&&(null===t||null!==hi.current||null!==t.memoizedState)&&(il=e)}function ll(e){if(22===e.tag){if(U(cl,cl.current),U(ol,e),null===il){var t=e.alternate;null!==t&&null!==t.memoizedState&&(il=e)}}else sl()}function sl(){U(cl,cl.current),U(ol,ol.current)}function ul(e){F(ol),il===e&&(il=null),F(cl)}var cl=B(0);function dl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||vd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ru(),o=ii(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Du(t,e,r),li(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ru(),o=ii(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Du(t,e,r),li(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ru(),r=ii(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=ai(e,r,n))&&(Du(t,e,n),li(t,e,n))}};function hl(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(n,r)||!Qn(o,i))}function ml(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pl.enqueueReplaceState(t,t.state,null)}function vl(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=f({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var gl="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function yl(e){gl(e)}function bl(e){console.error(e)}function wl(e){gl(e)}function xl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function kl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Sl(e,t,n){return(n=ii(n)).tag=3,n.payload={element:null},n.callback=function(){xl(e,t)},n}function El(e){return(e=ii(e)).tag=3,e}function _l(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"===typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){kl(t,n,r)}}var a=n.stateNode;null!==a&&"function"===typeof a.componentDidCatch&&(e.callback=function(){kl(t,n,r),"function"!==typeof o&&(null===Eu?Eu=new Set([this]):Eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Cl=Error(a(461)),Pl=!1;function Nl(e,t,n,r){t.child=null===e?rl(t,null,n,r):nl(t,e.child,n,r)}function jl(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var l in r)"ref"!==l&&(a[l]=r[l])}else a=r;return Co(t),r=Oi(e,t,n,a,i,o),l=Di(),null===e||Pl?(io&&l&&to(t),t.flags|=1,Nl(e,t,r,o),t.child):(zi(e,t,o),Kl(e,t,o))}function Al(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||zr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Fr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Tl(e,t,i,r,o))}if(i=e.child,!Ql(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Qn)(a,r)&&e.ref===t.ref)return Kl(e,t,o)}return t.flags|=1,(e=Ir(i,r)).ref=t.ref,e.return=t,t.child=e}function Tl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qn(i,r)&&e.ref===t.ref){if(Pl=!1,t.pendingProps=r=i,!Ql(e,o))return t.lanes=e.lanes,Kl(e,t,o);0!==(131072&e.flags)&&(Pl=!0)}}return Ml(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0!==(128&t.flags)){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Ll(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Ll(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&$o(0,null!==i?i.cachePool:null),null!==i?vi(t,i):gi(),ll(t)}else null!==i?($o(0,i.cachePool),vi(t,i),sl(),t.memoizedState=null):(null!==e&&$o(0,null),gi(),sl());return Nl(e,t,o,n),t.child}function Ll(e,t,n,r){var o=Ho();return o=null===o?null:{parent:Lo._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&$o(0,null),gi(),ll(t),null!==e&&Eo(e,t,r,!0),null}function Rl(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ml(e,t,n,r,o){return Co(t),n=Oi(e,t,n,r,void 0,o),r=Di(),null===e||Pl?(io&&r&&to(t),t.flags|=1,Nl(e,t,n,o),t.child):(zi(e,t,o),Kl(e,t,o))}function Dl(e,t,n,r,o,i){return Co(t),t.updateQueue=null,n=Ri(t,r,n,o),Li(e),r=Di(),null===e||Pl?(io&&r&&to(t),t.flags|=1,Nl(e,t,n,i),t.child):(zi(e,t,i),Kl(e,t,i))}function zl(e,t,n,r,o){if(Co(t),null===t.stateNode){var i=Rr,a=n.contextType;"object"===typeof a&&null!==a&&(i=Po(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=pl,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},ri(t),a=n.contextType,i.context="object"===typeof a&&null!==a?Po(a):Rr,i.state=t.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(fl(t,n,a,r),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(a=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&pl.enqueueReplaceState(i,i.state,null),di(t,r,i,o),ci(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,s=vl(n,l);i.props=s;var u=i.context,c=n.contextType;a=Rr,"object"===typeof c&&null!==c&&(a=Po(c));var d=n.getDerivedStateFromProps;c="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate,l=t.pendingProps!==l,c||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l||u!==a)&&ml(t,i,r,a),ni=!1;var f=t.memoizedState;i.state=f,di(t,r,i,o),ci(),u=t.memoizedState,l||f!==u||ni?("function"===typeof d&&(fl(t,n,d,r),u=t.memoizedState),(s=ni||hl(t,n,s,r,f,u,a))?(c||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oi(e,t),c=vl(n,a=t.memoizedProps),i.props=c,d=t.pendingProps,f=i.context,u=n.contextType,s=Rr,"object"===typeof u&&null!==u&&(s=Po(u)),(u="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(a!==d||f!==s)&&ml(t,i,r,s),ni=!1,f=t.memoizedState,i.state=f,di(t,r,i,o),ci();var p=t.memoizedState;a!==d||f!==p||ni||null!==e&&null!==e.dependencies&&_o(e.dependencies)?("function"===typeof l&&(fl(t,n,l,r),p=t.memoizedState),(c=ni||hl(t,n,c,r,f,p,s)||null!==e&&null!==e.dependencies&&_o(e.dependencies))?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=c):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Rl(e,t),r=0!==(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=nl(t,e.child,null,o),t.child=nl(t,null,n,o)):Nl(e,t,n,o),t.memoizedState=i.state,e=t.child):e=Kl(e,t,o),e}function Il(e,t,n,r){return ho(),t.flags|=256,Nl(e,t,n,r),t.child}var Bl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fl(e){return{baseLanes:e,cachePool:qo()}}function Ul(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=vu),e}function Xl(e,t,n){var r,o=t.pendingProps,i=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&cl.current)),r&&(i=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(io){if(i?al(t):sl(),io){var s,u=oo;if(s=u){e:{for(s=u,u=lo;8!==s.nodeType;){if(!u){u=null;break e}if(null===(s=gd(s.nextSibling))){u=null;break e}}u=s}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Qr?{id:Gr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},(s=Dr(18,null,null,0)).stateNode=u,s.return=t,t.child=s,ro=t,oo=null,s=!0):s=!1}s||uo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return vd(u)?t.lanes=32:t.lanes=536870912,null;ul(t)}return u=o.children,o=o.fallback,i?(sl(),u=$l({mode:"hidden",children:u},i=t.mode),o=Ur(o,i,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(i=t.child).memoizedState=Fl(n),i.childLanes=Ul(e,r,n),t.memoizedState=Bl,o):(al(t),Hl(t,u))}if(null!==(s=e.memoizedState)&&null!==(u=s.dehydrated)){if(l)256&t.flags?(al(t),t.flags&=-257,t=ql(e,t,n)):null!==t.memoizedState?(sl(),t.child=e.child,t.flags|=128,t=null):(sl(),i=o.fallback,u=t.mode,o=$l({mode:"visible",children:o.children},u),(i=Ur(i,u,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,nl(t,e.child,null,n),(o=t.child).memoizedState=Fl(n),o.childLanes=Ul(e,r,n),t.memoizedState=Bl,t=i);else if(al(t),vd(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(a(419))).stack="",o.digest=r,vo({value:o,source:null,stack:null}),t=ql(e,t,n)}else if(Pl||Eo(e,t,n,!1),r=0!==(n&e.childLanes),Pl||r){if(null!==(r=ru)&&(0!==(o=0!==((o=0!==(42&(o=n&-n))?1:Ne(o))&(r.suspendedLanes|n))?0:o)&&o!==s.retryLane))throw s.retryLane=o,Tr(e,o),Du(r,e,o),Cl;"$?"===u.data||Ju(),t=ql(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,oo=gd(u.nextSibling),ro=t,io=!0,ao=null,lo=!1,null!==e&&(Vr[Kr++]=Gr,Vr[Kr++]=Yr,Vr[Kr++]=Qr,Gr=e.id,Yr=e.overflow,Qr=t),(t=Hl(t,o.children)).flags|=4096);return t}return i?(sl(),i=o.fallback,u=t.mode,c=(s=e.child).sibling,(o=Ir(s,{mode:"hidden",children:o.children})).subtreeFlags=65011712&s.subtreeFlags,null!==c?i=Ir(c,i):(i=Ur(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(u=e.child.memoizedState)?u=Fl(n):(null!==(s=u.cachePool)?(c=Lo._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=qo(),u={baseLanes:u.baseLanes|n,cachePool:s}),i.memoizedState=u,i.childLanes=Ul(e,r,n),t.memoizedState=Bl,o):(al(t),e=(n=e.child).sibling,(n=Ir(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Hl(e,t){return(t=$l({mode:"visible",children:t},e.mode)).return=e,e.child=t}function $l(e,t){return(e=Dr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ql(e,t,n){return nl(t,e.child,null,n),(e=Hl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Wl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Jl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Nl(e,t,r.children,n),0!==(2&(r=cl.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wl(e,n,t);else if(19===e.tag)Wl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(U(cl,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===dl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Jl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===dl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Jl(t,!0,n,null,i);break;case"together":Jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),pu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Eo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ir(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ir(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ql(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!_o(e))}function Gl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Pl=!0;else{if(!Ql(e,n)&&0===(128&t.flags))return Pl=!1,function(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),wo(0,Lo,e.memoizedState.cache),ho();break;case 27:case 5:V(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:wo(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(al(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xl(e,t,n):(al(t),null!==(e=Kl(e,t,n))?e.sibling:null);al(t);break;case 19:var o=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(Eo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Vl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(cl,cl.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n);case 24:wo(0,Lo,e.memoizedState.cache)}return Kl(e,t,n)}(e,t,n);Pl=0!==(131072&e.flags)}else Pl=!1,io&&0!==(1048576&t.flags)&&eo(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((o=r.$$typeof)===k){t.tag=11,t=jl(null,t,r,e,n);break e}if(o===_){t.tag=14,t=Al(null,t,r,e,n);break e}}throw t=O(r)||r,Error(a(306,t,""))}zr(r)?(e=vl(r,e),t.tag=1,t=zl(null,t,r,e,n)):(t.tag=0,t=Ml(null,t,r,e,n))}return t;case 0:return Ml(e,t,t.type,t.pendingProps,n);case 1:return zl(e,t,r=t.type,o=vl(r,t.pendingProps),n);case 3:e:{if(W(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,oi(e,t),di(t,r,null,n);var l=t.memoizedState;if(r=l.cache,wo(0,Lo,r),r!==i.cache&&So(t,[Lo],n,!0),ci(),r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Il(e,t,r,n);break e}if(r!==o){vo(o=Er(Error(a(424)),t)),t=Il(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(oo=gd(e.firstChild),ro=t,io=!0,ao=null,lo=!0,n=rl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===o){t=Kl(e,t,n);break e}Nl(e,t,r,n)}t=t.child}return t;case 26:return Rl(e,t),null===e?(n=Nd(t.type,null,t.pendingProps,null))?t.memoizedState=n:io||(n=t.type,e=t.pendingProps,(r=rd($.current).createElement(n))[Oe]=t,r[Le]=e,ed(r,n,e),qe(r),t.stateNode=r):t.memoizedState=Nd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return V(t),null===e&&io&&(r=t.stateNode=wd(t.type,t.pendingProps,$.current),ro=t,lo=!0,o=oo,pd(t.type)?(yd=o,oo=gd(r.firstChild)):oo=o),Nl(e,t,t.pendingProps.children,n),Rl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&io&&((o=r=oo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Be])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=gd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,lo))?(t.stateNode=r,ro=t,oo=gd(r.firstChild),lo=!1,o=!0):o=!1),o||uo(t)),V(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,r=i.children,ad(o,i)?r=null:null!==l&&ad(o,l)&&(t.flags|=32),null!==t.memoizedState&&(o=Oi(e,t,Mi,null,null,n),Vd._currentValue=o),Rl(e,t),Nl(e,t,r,n),t.child;case 6:return null===e&&io&&((e=n=oo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=gd(e.nextSibling)))return null}return e}(n,t.pendingProps,lo))?(t.stateNode=n,ro=t,oo=null,e=!0):e=!1),e||uo(t)),null;case 13:return Xl(e,t,n);case 4:return W(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=nl(t,null,r,n):Nl(e,t,r,n),t.child;case 11:return jl(e,t,t.type,t.pendingProps,n);case 7:return Nl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Nl(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,wo(0,t.type,r.value),Nl(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Co(t),r=r(o=Po(o)),t.flags|=1,Nl(e,t,r,n),t.child;case 14:return Al(e,t,t.type,t.pendingProps,n);case 15:return Tl(e,t,t.type,t.pendingProps,n);case 19:return Vl(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=$l(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Ir(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ol(e,t,n);case 24:return Co(t),r=Po(Lo),null===e?(null===(o=Ho())&&(o=ru,i=Ro(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},ri(t),wo(0,Lo,o)):(0!==(e.lanes&n)&&(oi(e,t),di(t,null,null,n),ci()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),wo(0,Lo,r)):(r=i.cache,wo(0,Lo,r),r!==o.cache&&So(t,[Lo],n,!0))),Nl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Yl(e){e.flags|=4}function Zl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Ud(t)){if(null!==(t=ol.current)&&((4194048&iu)===iu?null!==il:(62914560&iu)!==iu&&0===(536870912&iu)||t!==il))throw Zo=Ko,Jo;e.flags|=8192}}function es(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Se():536870912,e.lanes|=t,gu|=t)}function ts(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ns(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rs(e,t,n){var r=t.pendingProps;switch(no(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ns(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xo(Lo),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(po(t)?Yl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,mo())),ns(t),null;case 26:return n=t.memoizedState,null===e?(Yl(t),null!==n?(ns(t),Zl(t,n)):(ns(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Yl(t),ns(t),Zl(t,n)):(ns(t),t.flags&=-16777217):(e.memoizedProps!==r&&Yl(t),ns(t),t.flags&=-16777217),null;case 27:K(t),n=$.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Yl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ns(t),null}e=X.current,po(t)?co(t):(e=wd(o,r,n),t.stateNode=e,Yl(t))}return ns(t),null;case 5:if(K(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Yl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ns(t),null}if(e=X.current,po(t))co(t);else{switch(o=rd($.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="