{"version":3,"sources":["../../../src/paywall/gen/template.ts","../../../src/paywall/index.ts"],"sourcesContent":["// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * The pre-built, self-contained paywall template with inlined CSS and JS\n */\nexport const PAYWALL_TEMPLATE =\n  '<!DOCTYPE html><html lang=\"en\"><head>\\n        <meta charset=\"UTF-8\">\\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\\n    <title>Payment Required</title><style>@import\"https://fonts.googleapis.com/css2?family=Inter&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap\";@import\"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz@0,9..40;1,9..40&display=swap\";@import\"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,700;1,9..40,700&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap\";.ock-font-family{font-family:var(--ock-font-family)}.ock-border-default{border-color:var(--ock-bg-default)}.ock-border-default-active{border-color:var(--ock-bg-default-active)}.ock-border-line-primary{border-color:var(--ock-line-primary)}.ock-border-line-default{border-color:var(--ock-line-default)}.ock-border-line-heavy{border-color:var(--ock-line-heavy)}.ock-border-line-inverse{border-color:var(--ock-line-inverse)}.ock-border-radius{border-radius:var(--ock-border-radius)}.ock-border-radius-inner{border-radius:var(--ock-border-radius-inner)}.ock-fill-default{fill:var(--ock-bg-default)}.ock-fill-default-reverse{fill:var(--ock-bg-default-reverse)}.ock-fill-alternate{fill:var(--ock-bg-alternate)}.ock-icon-color-primary{fill:var(--ock-icon-color-primary)}.ock-icon-color-foreground{fill:var(--ock-icon-color-foreground)}.ock-icon-color-foreground-muted{fill:var(--ock-icon-color-foreground-muted)}.ock-icon-color-inverse{fill:var(--ock-icon-color-inverse)}.ock-icon-color-error{fill:var(--ock-icon-color-error)}.ock-icon-color-success{fill:var(--ock-icon-color-success)}.ock-icon-color-warning{fill:var(--ock-icon-color-warning)}.placeholder-ock-default::-moz-placeholder{color:var(--ock-text-foreground-muted)}.placeholder-ock-default::placeholder{color:var(--ock-text-foreground-muted)}.ock-scrollbar{scrollbar-width:thin;scrollbar-color:#d1d5db #ffffff}.ock-shadow-default,.dark .ock-shadow-default{box-shadow:0 8px 12px #5b616e1f}.ock-text-inverse{color:var(--ock-text-inverse)}.ock-text-foreground{color:var(--ock-text-foreground)}.ock-text-foreground-muted{color:var(--ock-text-foreground-muted)}.ock-text-error{color:var(--ock-text-error)}.ock-text-primary{color:var(--ock-text-primary)}.ock-text-success{color:var(--ock-text-success)}.ock-text-warning{color:var(--ock-text-warning)}.ock-text-disabled{color:var(--ock-text-disabled)}.ock-bg-default{background-color:var(--ock-bg-default)}.ock-bg-default-hover{background-color:var(--ock-bg-default-hover)}.ock-bg-default-active{background-color:var(--ock-bg-default-active)}.ock-bg-alternate{background-color:var(--ock-bg-alternate)}.ock-bg-alternate-hover{background-color:var(--ock-bg-alternate-hover)}.ock-bg-alternate-active{background-color:var(--ock-bg-alternate-active)}.ock-bg-inverse{background-color:var(--ock-bg-inverse)}.ock-bg-inverse-hover{background-color:var(--ock-bg-inverse-hover)}.ock-bg-inverse-active{background-color:var(--ock-bg-inverse-active)}.ock-bg-primary{background-color:var(--ock-bg-primary)}.ock-bg-primary-hover{background-color:var(--ock-bg-primary-hover)}.ock-bg-primary-active{background-color:var(--ock-bg-primary-active)}.ock-bg-secondary{background-color:var(--ock-bg-secondary)}.ock-bg-secondary-hover{background-color:var(--ock-bg-secondary-hover)}.ock-bg-secondary-active{background-color:var(--ock-bg-secondary-active)}.ock-bg-error{background-color:var(--ock-bg-error)}.ock-bg-warning{background-color:var(--ock-bg-warning)}.ock-bg-success{background-color:var(--ock-bg-success)}.ock-bg-default-reverse{background-color:var(--ock-bg-default-reverse)}.ock-bg-primary-washed{background-color:var(--ock-bg-primary-washed)}.ock-bg-primary-disabled{background-color:var(--ock-bg-primary-disabled)}*,:before,:after{--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: rgb(59 130 246 / .5);--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: }::backdrop{--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: rgb(59 130 246 / .5);--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: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color: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:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,.light,.default-light{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #030712;--ock-text-foreground-muted: #4b5563;--ock-text-error: #e11d48;--ock-text-primary: #4f46e5;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #9ca3af;--ock-bg-default: #f9fafb;--ock-bg-default-hover: #e5e7eb;--ock-bg-default-active: #d1d5db;--ock-bg-alternate: #e5e7eb;--ock-bg-alternate-hover: #d1d5db;--ock-bg-alternate-active: #9ca3af;--ock-bg-inverse: #f3f4f6;--ock-bg-inverse-hover: #e5e7eb;--ock-bg-inverse-active: #d1d5db;--ock-bg-primary: #4f46e5;--ock-bg-primary-hover: #4338ca;--ock-bg-primary-active: #3730a3;--ock-bg-primary-washed: #e0e7ff;--ock-bg-primary-disabled: #a5b4fc;--ock-bg-secondary: #e2e8f0;--ock-bg-secondary-hover: #cbd5e1;--ock-bg-secondary-active: #94a3b8;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #bef264;--ock-bg-default-reverse: #030712;--ock-icon-color-primary: #4f46e5;--ock-icon-color-foreground: #030712;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #f9fafb;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #4f46e5;--ock-line-default: #d1d5db;--ock-line-heavy: #6b7280;--ock-line-inverse: #374151}.dark,.default-dark{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #030712;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #818cf8;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #818cf8;--ock-bg-primary-hover: #a5b4fc;--ock-bg-primary-active: #c7d2fe;--ock-bg-primary-washed: #312e81;--ock-bg-primary-disabled: #1e1b4b;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #4d7c0f;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #818cf8;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #9ca3af;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #fb7185;--ock-icon-color-success: #a3e635;--ock-icon-color-warning: #fb923c;--ock-line-primary: #818cf8;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.base-light{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #030712;--ock-text-foreground-muted: #4b5563;--ock-text-error: #e11d48;--ock-text-primary: #0052ff;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #9ca3af;--ock-bg-default: #f9fafb;--ock-bg-default-hover: #e5e7eb;--ock-bg-default-active: #d1d5db;--ock-bg-alternate: #e5e7eb;--ock-bg-alternate-hover: #d1d5db;--ock-bg-alternate-active: #9ca3af;--ock-bg-inverse: #f3f4f6;--ock-bg-inverse-hover: #e5e7eb;--ock-bg-inverse-active: #d1d5db;--ock-bg-primary: #0052ff;--ock-bg-primary-hover: #014ceb;--ock-bg-primary-active: #0148dc;--ock-bg-primary-washed: #b2cbff;--ock-bg-primary-disabled: #9dbcfe;--ock-bg-secondary: #e2e8f0;--ock-bg-secondary-hover: #cbd5e1;--ock-bg-secondary-active: #94a3b8;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #bef264;--ock-bg-default-reverse: #030712;--ock-icon-color-primary: #0052ff;--ock-icon-color-foreground: #030712;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #f9fafb;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #0052ff;--ock-line-default: #d1d5db;--ock-line-heavy: #6b7280;--ock-line-inverse: #374151}.base-dark{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #578bfa;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #578bfa;--ock-bg-primary-hover: #477ef5;--ock-bg-primary-active: #5386f5;--ock-bg-primary-washed: #051537;--ock-bg-primary-disabled: #1b3365;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #4d7c0f;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #578bfa;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #9ca3af;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #fb7185;--ock-icon-color-success: #a3e635;--ock-icon-color-warning: #fb923c;--ock-line-primary: #578bfa;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.cyberpunk{--ock-font-family: \"Oxanium\", sans-serif;--ock-border-radius: .125rem;--ock-border-radius-inner: 0rem;--ock-text-inverse: #030712;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #e879f9;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #e879f9;--ock-bg-primary-hover: #f0abfc;--ock-bg-primary-active: #f5d0fe;--ock-bg-primary-washed: #701a75;--ock-bg-primary-disabled: #4a044e;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #a3e635;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #e879f9;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #e879f9;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.hacker{--ock-font-family: \"Noto Sans Mono\", sans-serif;--ock-border-radius: .375rem;--ock-border-radius-inner: .125rem;--ock-text-inverse: #fafafa;--ock-text-foreground: #09090b;--ock-text-foreground-muted: #52525b;--ock-text-error: #e11d48;--ock-text-primary: #09090b;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #a1a1aa;--ock-bg-default: #fafafa;--ock-bg-default-hover: #e4e4e7;--ock-bg-default-active: #d4d4d8;--ock-bg-alternate: #e4e4e7;--ock-bg-alternate-hover: #d4d4d8;--ock-bg-alternate-active: #a1a1aa;--ock-bg-inverse: #f4f4f5;--ock-bg-inverse-hover: #e4e4e7;--ock-bg-inverse-active: #d4d4d8;--ock-bg-primary: #09090b;--ock-bg-primary-hover: #27272a;--ock-bg-primary-active: #3f3f46;--ock-bg-primary-washed: #f4f4f5;--ock-bg-primary-disabled: #d4d4d8;--ock-bg-secondary: #e5e5e5;--ock-bg-secondary-hover: #d4d4d4;--ock-bg-secondary-active: #a3a3a3;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #65a30d;--ock-bg-default-reverse: #fafafa;--ock-icon-color-primary: #09090b;--ock-icon-color-foreground: #09090b;--ock-icon-color-foreground-muted: #52525b;--ock-icon-color-inverse: #fafafa;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #09090b;--ock-line-default: #d4d4d8;--ock-line-heavy: #71717a;--ock-line-inverse: #3f3f46}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-bottom-0\\\\.5{bottom:-.125rem}.-bottom-\\\\[12\\\\.875rem\\\\]{bottom:-12.875rem}.-right-0\\\\.5{right:-.125rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\\\/2,.left-2\\\\/4{left:50%}.left-3\\\\/4{left:75%}.left-4{left:1rem}.left-\\\\[-99999px\\\\]{left:-99999px}.left-\\\\[0\\\\%\\\\]{left:0%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1\\\\/2{top:50%}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\\\[100px\\\\]{top:100px}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-6{margin-top:-1.5rem;margin-bottom:-1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1\\\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.-mr-0\\\\.5{margin-right:-.125rem}.-mr-px{margin-right:-1px}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-6{margin-left:1.5rem}.ml-px{margin-left:1px}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-2{margin-right:.5rem}.mt-0\\\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\\\[60\\\\%\\\\]{margin-top:60%}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.aspect-square{aspect-ratio:1 / 1}.size-3{width:.75rem;height:.75rem}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-120{height:30rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2\\\\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\\\[1\\\\.125rem\\\\]{height:1.125rem}.h-\\\\[1\\\\.625rem\\\\]{height:1.625rem}.h-\\\\[12\\\\.875rem\\\\]{height:12.875rem}.h-\\\\[148px\\\\]{height:148px}.h-\\\\[15px\\\\]{height:15px}.h-\\\\[18px\\\\]{height:18px}.h-\\\\[34px\\\\]{height:34px}.h-\\\\[42px\\\\]{height:42px}.h-\\\\[80px\\\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.max-h-120{max-height:30rem}.max-h-44{max-height:11rem}.max-h-80{max-height:20rem}.min-h-60{min-height:15rem}.min-h-full{min-height:100%}.w-1\\\\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\\\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-\\\\[1\\\\.125rem\\\\]{width:1.125rem}.w-\\\\[15px\\\\]{width:15px}.w-\\\\[200px\\\\]{width:200px}.w-\\\\[21\\\\.75rem\\\\]{width:21.75rem}.w-\\\\[22rem\\\\]{width:22rem}.w-\\\\[375px\\\\]{width:375px}.w-\\\\[42px\\\\]{width:42px}.w-\\\\[475px\\\\]{width:475px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-14{min-width:3.5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-40{min-width:10rem}.min-w-52{min-width:13rem}.min-w-80{min-width:20rem}.min-w-\\\\[153px\\\\]{min-width:153px}.min-w-\\\\[300px\\\\]{min-width:300px}.min-w-\\\\[70px\\\\]{min-width:70px}.min-w-full{min-width:100%}.max-w-24{max-width:6rem}.max-w-52{max-width:13rem}.max-w-\\\\[180px\\\\]{max-width:180px}.max-w-\\\\[500px\\\\]{max-width:500px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-x-1\\\\/2,.-translate-x-2\\\\/4{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\\\[100\\\\%\\\\]{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\\\[-100\\\\%\\\\]{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\\\[102\\\\%\\\\]{--tw-translate-y: 102%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\\\[2\\\\.5rem_1fr_auto\\\\]{grid-template-columns:2.5rem 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\\\.5{gap:.375rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-\\\\[-\\\\.8rem\\\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-.8rem * var(--tw-space-x-reverse));margin-left:calc(-.8rem * calc(1 - var(--tw-space-x-reverse)))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.\\\\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\\\[0\\\\.43931rem\\\\]{border-radius:.43931rem}.rounded-\\\\[20px_20px_0_0\\\\]{border-radius:20px 20px 0 0}.rounded-\\\\[50\\\\%\\\\]{border-radius:50%}.rounded-\\\\[6\\\\.25rem\\\\]{border-radius:6.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-tl-\\\\[calc\\\\(var\\\\(--ock-border-radius\\\\)_-_1px\\\\)\\\\]{border-top-left-radius:calc(var(--ock-border-radius) - 1px)}.rounded-tr-\\\\[calc\\\\(var\\\\(--ock-border-radius\\\\)_-_1px\\\\)\\\\]{border-top-right-radius:calc(var(--ock-border-radius) - 1px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\\\\[0\\\\.5px\\\\]{border-width:.5px}.border-\\\\[length\\\\:0_0_0_16px\\\\]{border-width:0 0 0 16px}.border-\\\\[length\\\\:9px_0_9px_16px\\\\]{border-width:9px 0 9px 16px}.\\\\!border-b-0{border-bottom-width:0px!important}.\\\\!border-l-0{border-left-width:0px!important}.\\\\!border-r-0{border-right-width:0px!important}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-double{border-style:double}.border-none{border-style:none}.border-\\\\[none\\\\]{border-color:none}.border-\\\\[var\\\\(--ock-bg-default-reverse\\\\)\\\\]{border-color:var(--ock-bg-default-reverse)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.\\\\!border-t-\\\\[var\\\\(--ock-bg-primary\\\\)\\\\]{border-top-color:var(--ock-bg-primary)!important}.border-l-\\\\[var\\\\(--ock-bg-default\\\\)\\\\]{border-left-color:var(--ock-bg-default)}.border-t-gray-400{--tw-border-opacity: 1;border-top-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.\\\\!bg-\\\\[var\\\\(--ock-bg-alternate-active\\\\)\\\\]{background-color:var(--ock-bg-alternate-active)!important}.\\\\!bg-inherit{background-color:inherit!important}.bg-\\\\[\\\\#0052FF\\\\]{--tw-bg-opacity: 1;background-color:rgb(0 82 255 / var(--tw-bg-opacity, 1))}.bg-\\\\[\\\\#E0E7FF\\\\]{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\\\/50{background-color:#00000080}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\\\.5{padding-left:.625rem;padding-right:.625rem}.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{padding-top:0;padding-bottom:0}.py-0\\\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-12{padding-left:3rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-3{padding-right:.75rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-2\\\\.5{padding-top:.625rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-display{font-family:DM Sans,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-\\\\[0\\\\.6875rem\\\\]{font-size:.6875rem}.text-\\\\[10px\\\\]{font-size:10px}.text-\\\\[2\\\\.5rem\\\\]{font-size:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.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-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.leading-\\\\[13px\\\\]{line-height:13px}.leading-none{line-height:1}.\\\\!text-\\\\[var\\\\(--ock-text-foreground\\\\)\\\\]{color:var(--ock-text-foreground)!important}.\\\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-\\\\[\\\\#4F46E5\\\\]{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-\\\\[\\\\#8A919E\\\\]{--tw-text-opacity: 1;color:rgb(138 145 158 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-\\\\[0\\\\.38\\\\]{opacity:.38}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0px_8px_24px_0px_rgba\\\\(0\\\\,0\\\\,0\\\\,0\\\\.12\\\\)\\\\]{--tw-shadow: 0px 8px 24px 0px rgba(0,0,0,.12);--tw-shadow-colored: 0px 8px 24px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);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)}.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-\\\\[bottom\\\\]{transition-property:bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-\\\\[border-width\\\\]{will-change:border-width}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.animate-out{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-out{--tw-exit-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.slide-in-from-bottom-1\\\\.5{--tw-enter-translate-y: .375rem}.slide-in-from-bottom-1\\\\/2{--tw-enter-translate-y: 50%}.slide-in-from-bottom-2\\\\.5{--tw-enter-translate-y: .625rem}.slide-in-from-left-5{--tw-enter-translate-x: -1.25rem}.slide-in-from-right-5{--tw-enter-translate-x: 1.25rem}.slide-in-from-top-1\\\\.5{--tw-enter-translate-y: -.375rem}.slide-in-from-top-2\\\\.5{--tw-enter-translate-y: -.625rem}.slide-out-to-bottom-1\\\\.5{--tw-exit-translate-y: .375rem}.slide-out-to-left-5{--tw-exit-translate-x: -1.25rem}.slide-out-to-right-5{--tw-exit-translate-x: 1.25rem}.slide-out-to-top-1\\\\.5{--tw-exit-translate-y: -.375rem}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.fill-mode-forwards{animation-fill-mode:forwards}.scrollbar-hidden::-webkit-scrollbar{display:none}.scrollbar-hidden{scrollbar-width:none;-ms-overflow-style:none}.\\\\[appearance\\\\:textfield\\\\]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.\\\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\\\!container{max-width:1536px!important}.container{max-width:1536px}}.animate-enterRight{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-x: 2rem;animation-duration:.5s}.animate-enterUp{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-y: 2rem;animation-duration:.5s}.animate-enterDown{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-y: -2rem;animation-duration:.5s}.hover\\\\:border-\\\\[--ock-line-primary\\\\]:hover{border-color:var(--ock-line-primary)}.hover\\\\:bg-\\\\[\\\\#0045D8\\\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 69 216 / var(--tw-bg-opacity, 1))}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-alternate-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-alternate-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-default-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-default-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-inverse\\\\)\\\\]:hover{background-color:var(--ock-bg-inverse)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-inverse-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-inverse-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-primary-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-primary-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-secondary-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-secondary-hover)}.hover\\\\:text-\\\\[var\\\\(--ock-text-foreground-muted\\\\)\\\\]:hover{color:var(--ock-text-foreground-muted)}.hover\\\\:underline:hover{text-decoration-line:underline}.hover\\\\:opacity-100:hover{opacity:1}.hover\\\\:opacity-80:hover{opacity:.8}.focus\\\\:border-none:focus{border-style:none}.focus\\\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\\\\:bg-transparent:focus{background-color:transparent}.focus\\\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\\\:ring-0: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(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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),var(--tw-shadow, 0 0 #0000)}.focus-visible\\\\:ring-2:focus-visible{--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),var(--tw-shadow, 0 0 #0000)}.focus-visible\\\\:ring-inset:focus-visible{--tw-ring-inset: inset}.focus-visible\\\\:ring-\\\\[var\\\\(--ock-text-foreground\\\\)\\\\]:focus-visible{--tw-ring-color: var(--ock-text-foreground)}.active\\\\:cursor-grabbing:active{cursor:grabbing}.active\\\\:bg-\\\\[var\\\\(--ock-bg-alternate-active\\\\)\\\\]:active{background-color:var(--ock-bg-alternate-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-default-active\\\\)\\\\]:active{background-color:var(--ock-bg-default-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-inverse-active\\\\)\\\\]:active{background-color:var(--ock-bg-inverse-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-primary-active\\\\)\\\\]:active{background-color:var(--ock-bg-primary-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-secondary-active\\\\)\\\\]:active{background-color:var(--ock-bg-secondary-active)}.active\\\\:text-\\\\[var\\\\(--ock-text-primary\\\\)\\\\]:active{color:var(--ock-text-primary)}.disabled\\\\:cursor-not-allowed:disabled{cursor:not-allowed}.group:hover .group-hover\\\\:opacity-100{opacity:1}.dark\\\\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}@media not all and (min-width: 640px){.max-sm\\\\:pt-4{padding-top:1rem}}.\\\\[\\\\&\\\\:\\\\:-webkit-inner-spin-button\\\\]\\\\:m-0::-webkit-inner-spin-button{margin:0}.\\\\[\\\\&\\\\:\\\\:-webkit-inner-spin-button\\\\]\\\\:appearance-none::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.\\\\[\\\\&\\\\:\\\\:-webkit-outer-spin-button\\\\]\\\\:m-0::-webkit-outer-spin-button{margin:0}.\\\\[\\\\&\\\\:\\\\:-webkit-outer-spin-button\\\\]\\\\:appearance-none::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:col-start-1>*{grid-column-start:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:col-end-1>*{grid-column-end:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:row-start-1>*{grid-row-start:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:row-end-1>*{grid-row-end:1}.\\\\[\\\\&\\\\>div\\\\]\\\\:space-x-0>div>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.\\\\[\\\\&\\\\>div\\\\]\\\\:space-x-2>div>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.\\\\[\\\\&_path\\\\]\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground\\\\)\\\\] path{fill:var(--ock-icon-color-foreground)}.\\\\[\\\\&_path\\\\]\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground-muted\\\\)\\\\] path{fill:var(--ock-icon-color-foreground-muted)}.\\\\[\\\\&_path\\\\]\\\\:transition-colors path{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\\\[\\\\&_path\\\\]\\\\:ease-in-out path{transition-timing-function:cubic-bezier(.4,0,.2,1);animation-timing-function:cubic-bezier(.4,0,.2,1)}.\\\\[\\\\&_path\\\\]\\\\:hover\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground\\\\)\\\\]:hover path{fill:var(--ock-icon-color-foreground)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: white;--text-color: #111827;--secondary-text-color: #4b5563;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626}.ock-font-family{font-family:Inter,system-ui,-apple-system,sans-serif}.ock-bg-secondary,.ock-bg-default{background-color:var(--details-background-color);transition:background-color .15s}.ock-bg-secondary:hover{background-color:var(--details-background-color-hover)}.opacity-80{opacity:.8}[data-testid=ockWalletDropdown]{z-index:10}body{min-height:100vh;background-color:var(--background-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid #d1d5db;background-color:#fff;transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px #2563eb33}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover{background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover{background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover{background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover{background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center}\\n</style></head>\\n    <body>\\n        <div id=\"root\"></div>\\n    \\n    \\n  <script type=\"module\">\"use strict\";(()=>{var umt=Object.create;var T9=Object.defineProperty;var lmt=Object.getOwnPropertyDescriptor;var dmt=Object.getOwnPropertyNames;var fmt=Object.getPrototypeOf,pmt=Object.prototype.hasOwnProperty;var a_e=e=>{throw TypeError(e)};var hmt=(e,t,n)=>t in e?T9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mmt=(e=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(e,{get:(t,n)=>(typeof require<\"u\"?require:t)[n]}):e)(function(e){if(typeof require<\"u\")return require.apply(this,arguments);throw Error(\\'Dynamic require of \"\\'+e+\\'\" is not supported\\')}),s_e=e=>t=>{var n=e[t];if(n)return n();throw new Error(\"Module not found in bundle: \"+t)};var Z=(e,t)=>()=>(e&&(t=e(e=0)),t);var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qa=(e,t)=>{for(var n in t)T9(e,n,{get:t[n],enumerable:!0})},c_e=(e,t,n,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of dmt(t))!pmt.call(e,o)&&o!==n&&T9(e,o,{get:()=>t[o],enumerable:!(r=lmt(t,o))||r.enumerable});return e};var he=(e,t,n)=>(n=e!=null?umt(fmt(e)):{},c_e(t||!e||!e.__esModule?T9(n,\"default\",{value:e,enumerable:!0}):n,e)),qo=e=>c_e(T9({},\"__esModule\",{value:!0}),e);var Cf=(e,t,n)=>hmt(e,typeof t!=\"symbol\"?t+\"\":t,n),eie=(e,t,n)=>t.has(e)||a_e(\"Cannot \"+n);var Te=(e,t,n)=>(eie(e,t,\"read from private field\"),n?n.call(e):t.get(e)),gn=(e,t,n)=>t.has(e)?a_e(\"Cannot add the same private member more than once\"):t instanceof WeakSet?t.add(e):t.set(e,n),Wt=(e,t,n,r)=>(eie(e,t,\"write to private field\"),r?r.call(e,n):t.set(e,n),n),br=(e,t,n)=>(eie(e,t,\"access private method\"),n);var C9=(e,t,n,r)=>({set _(o){Wt(e,t,o,n)},get _(){return Te(e,t,r)}});var d_e=me(xj=>{\"use strict\";f();xj.byteLength=ymt;xj.toByteArray=vmt;xj.fromByteArray=Emt;var Db=[],A0=[],gmt=typeof Uint8Array<\"u\"?Uint8Array:Array,tie=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(W3=0,u_e=tie.length;W3<u_e;++W3)Db[W3]=tie[W3],A0[tie.charCodeAt(W3)]=W3;var W3,u_e;A0[45]=62;A0[95]=63;function l_e(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(\"=\");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function ymt(e){var t=l_e(e),n=t[0],r=t[1];return(n+r)*3/4-r}function bmt(e,t,n){return(t+n)*3/4-n}function vmt(e){var t,n=l_e(e),r=n[0],o=n[1],i=new gmt(bmt(e,r,o)),a=0,c=o>0?r-4:r,u;for(u=0;u<c;u+=4)t=A0[e.charCodeAt(u)]<<18|A0[e.charCodeAt(u+1)]<<12|A0[e.charCodeAt(u+2)]<<6|A0[e.charCodeAt(u+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=A0[e.charCodeAt(u)]<<2|A0[e.charCodeAt(u+1)]>>4,i[a++]=t&255),o===1&&(t=A0[e.charCodeAt(u)]<<10|A0[e.charCodeAt(u+1)]<<4|A0[e.charCodeAt(u+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function wmt(e){return Db[e>>18&63]+Db[e>>12&63]+Db[e>>6&63]+Db[e&63]}function xmt(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(wmt(r));return o.join(\"\")}function Emt(e){for(var t,n=e.length,r=n%3,o=[],i=16383,a=0,c=n-r;a<c;a+=i)o.push(xmt(e,a,a+i>c?c:a+i));return r===1?(t=e[n-1],o.push(Db[t>>2]+Db[t<<4&63]+\"==\")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Db[t>>10]+Db[t>>4&63]+Db[t<<2&63]+\"=\")),o.join(\"\")}});var f_e=me(nie=>{f();nie.read=function(e,t,n,r,o){var i,a,c=o*8-r-1,u=(1<<c)-1,d=u>>1,p=-7,h=n?o-1:0,g=n?-1:1,y=e[t+h];for(h+=g,i=y&(1<<-p)-1,y>>=-p,p+=c;p>0;i=i*256+e[t+h],h+=g,p-=8);for(a=i&(1<<-p)-1,i>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=g,p-=8);if(i===0)i=1-d;else{if(i===u)return a?NaN:(y?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-d}return(y?-1:1)*a*Math.pow(2,i-r)};nie.write=function(e,t,n,r,o,i){var a,c,u,d=i*8-o-1,p=(1<<d)-1,h=p>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:i-1,v=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+h>=1?t+=g/u:t+=g*Math.pow(2,1-h),t*u>=2&&(a++,u/=2),a+h>=p?(c=0,a=p):a+h>=1?(c=(t*u-1)*Math.pow(2,o),a=a+h):(c=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+y]=c&255,y+=v,c/=256,o-=8);for(a=a<<o|c,d+=o;d>0;e[n+y]=a&255,y+=v,a/=256,d-=8);e[n+y-v]|=x*128}});var v2=me(nI=>{\"use strict\";f();var rie=d_e(),eI=f_e(),p_e=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;nI.Buffer=st;nI.SlowBuffer=Rmt;nI.INSPECT_MAX_BYTES=50;var Ej=2147483647;nI.kMaxLength=Ej;st.TYPED_ARRAY_SUPPORT=Amt();!st.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function Amt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(st.prototype,\"parent\",{enumerable:!0,get:function(){if(st.isBuffer(this))return this.buffer}});Object.defineProperty(st.prototype,\"offset\",{enumerable:!0,get:function(){if(st.isBuffer(this))return this.byteOffset}});function b2(e){if(e>Ej)throw new RangeError(\\'The value \"\\'+e+\\'\" is invalid for option \"size\"\\');let t=new Uint8Array(e);return Object.setPrototypeOf(t,st.prototype),t}function st(e,t,n){if(typeof e==\"number\"){if(typeof t==\"string\")throw new TypeError(\\'The \"string\" argument must be of type string. Received type number\\');return sie(e)}return y_e(e,t,n)}st.poolSize=8192;function y_e(e,t,n){if(typeof e==\"string\")return Smt(e,t);if(ArrayBuffer.isView(e))return Tmt(e);if(e==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(Lb(e,ArrayBuffer)||e&&Lb(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(Lb(e,SharedArrayBuffer)||e&&Lb(e.buffer,SharedArrayBuffer)))return iie(e,t,n);if(typeof e==\"number\")throw new TypeError(\\'The \"value\" argument must not be of type number. Received type number\\');let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return st.from(r,t,n);let o=Cmt(e);if(o)return o;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==\"function\")return st.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)}st.from=function(e,t,n){return y_e(e,t,n)};Object.setPrototypeOf(st.prototype,Uint8Array.prototype);Object.setPrototypeOf(st,Uint8Array);function b_e(e){if(typeof e!=\"number\")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 _mt(e,t,n){return b_e(e),e<=0?b2(e):t!==void 0?typeof n==\"string\"?b2(e).fill(t,n):b2(e).fill(t):b2(e)}st.alloc=function(e,t,n){return _mt(e,t,n)};function sie(e){return b_e(e),b2(e<0?0:cie(e)|0)}st.allocUnsafe=function(e){return sie(e)};st.allocUnsafeSlow=function(e){return sie(e)};function Smt(e,t){if((typeof t!=\"string\"||t===\"\")&&(t=\"utf8\"),!st.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);let n=v_e(e,t)|0,r=b2(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function oie(e){let t=e.length<0?0:cie(e.length)|0,n=b2(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function Tmt(e){if(Lb(e,Uint8Array)){let t=new Uint8Array(e);return iie(t.buffer,t.byteOffset,t.byteLength)}return oie(e)}function iie(e,t,n){if(t<0||e.byteLength<t)throw new RangeError(\\'\"offset\" is outside of buffer bounds\\');if(e.byteLength<t+(n||0))throw new RangeError(\\'\"length\" is outside of buffer bounds\\');let r;return t===void 0&&n===void 0?r=new Uint8Array(e):n===void 0?r=new Uint8Array(e,t):r=new Uint8Array(e,t,n),Object.setPrototypeOf(r,st.prototype),r}function Cmt(e){if(st.isBuffer(e)){let t=cie(e.length)|0,n=b2(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=\"number\"||lie(e.length)?b2(0):oie(e);if(e.type===\"Buffer\"&&Array.isArray(e.data))return oie(e.data)}function cie(e){if(e>=Ej)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+Ej.toString(16)+\" bytes\");return e|0}function Rmt(e){return+e!=e&&(e=0),st.alloc(+e)}st.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==st.prototype};st.compare=function(t,n){if(Lb(t,Uint8Array)&&(t=st.from(t,t.offset,t.byteLength)),Lb(n,Uint8Array)&&(n=st.from(n,n.offset,n.byteLength)),!st.isBuffer(t)||!st.isBuffer(n))throw new TypeError(\\'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array\\');if(t===n)return 0;let r=t.length,o=n.length;for(let i=0,a=Math.min(r,o);i<a;++i)if(t[i]!==n[i]){r=t[i],o=n[i];break}return r<o?-1:o<r?1:0};st.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}};st.concat=function(t,n){if(!Array.isArray(t))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(t.length===0)return st.alloc(0);let r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;let o=st.allocUnsafe(n),i=0;for(r=0;r<t.length;++r){let a=t[r];if(Lb(a,Uint8Array))i+a.length>o.length?(st.isBuffer(a)||(a=st.from(a)),a.copy(o,i)):Uint8Array.prototype.set.call(o,a,i);else if(st.isBuffer(a))a.copy(o,i);else throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');i+=a.length}return o};function v_e(e,t){if(st.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Lb(e,ArrayBuffer))return e.byteLength;if(typeof e!=\"string\")throw new TypeError(\\'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type \\'+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let o=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":return aie(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return n*2;case\"hex\":return n>>>1;case\"base64\":return R_e(e).length;default:if(o)return r?-1:aie(e).length;t=(\"\"+t).toLowerCase(),o=!0}}st.byteLength=v_e;function Imt(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return Fmt(this,t,n);case\"utf8\":case\"utf-8\":return x_e(this,t,n);case\"ascii\":return Bmt(this,t,n);case\"latin1\":case\"binary\":return Umt(this,t,n);case\"base64\":return Dmt(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Hmt(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}st.prototype._isBuffer=!0;function V3(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}st.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let n=0;n<t;n+=2)V3(this,n,n+1);return this};st.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(let n=0;n<t;n+=4)V3(this,n,n+3),V3(this,n+1,n+2);return this};st.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(let n=0;n<t;n+=8)V3(this,n,n+7),V3(this,n+1,n+6),V3(this,n+2,n+5),V3(this,n+3,n+4);return this};st.prototype.toString=function(){let t=this.length;return t===0?\"\":arguments.length===0?x_e(this,0,t):Imt.apply(this,arguments)};st.prototype.toLocaleString=st.prototype.toString;st.prototype.equals=function(t){if(!st.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t?!0:st.compare(this,t)===0};st.prototype.inspect=function(){let t=\"\",n=nI.INSPECT_MAX_BYTES;return t=this.toString(\"hex\",0,n).replace(/(.{2})/g,\"$1 \").trim(),this.length>n&&(t+=\" ... \"),\"<Buffer \"+t+\">\"};p_e&&(st.prototype[p_e]=st.prototype.inspect);st.prototype.compare=function(t,n,r,o,i){if(Lb(t,Uint8Array)&&(t=st.from(t,t.offset,t.byteLength)),!st.isBuffer(t))throw new TypeError(\\'The \"target\" argument must be one of type Buffer or Uint8Array. Received type \\'+typeof t);if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),n<0||r>t.length||o<0||i>this.length)throw new RangeError(\"out of range index\");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,i>>>=0,this===t)return 0;let a=i-o,c=r-n,u=Math.min(a,c),d=this.slice(o,i),p=t.slice(n,r);for(let h=0;h<u;++h)if(d[h]!==p[h]){a=d[h],c=p[h];break}return a<c?-1:c<a?1:0};function w_e(e,t,n,r,o){if(e.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,lie(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)n=0;else return-1;if(typeof t==\"string\"&&(t=st.from(t,r)),st.isBuffer(t))return t.length===0?-1:h_e(e,t,n,r,o);if(typeof t==\"number\")return t=t&255,typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):h_e(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function h_e(e,t,n,r,o){let i=1,a=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,n/=2}function u(p,h){return i===1?p[h]:p.readUInt16BE(h*i)}let d;if(o){let p=-1;for(d=n;d<a;d++)if(u(e,d)===u(t,p===-1?0:d-p)){if(p===-1&&(p=d),d-p+1===c)return p*i}else p!==-1&&(d-=d-p),p=-1}else for(n+c>a&&(n=a-c),d=n;d>=0;d--){let p=!0;for(let h=0;h<c;h++)if(u(e,d+h)!==u(t,h)){p=!1;break}if(p)return d}return-1}st.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1};st.prototype.indexOf=function(t,n,r){return w_e(this,t,n,r,!0)};st.prototype.lastIndexOf=function(t,n,r){return w_e(this,t,n,r,!1)};function Omt(e,t,n,r){n=Number(n)||0;let o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;let i=t.length;r>i/2&&(r=i/2);let a;for(a=0;a<r;++a){let c=parseInt(t.substr(a*2,2),16);if(lie(c))return a;e[n+a]=c}return a}function kmt(e,t,n,r){return Aj(aie(t,e.length-n),e,n,r)}function Nmt(e,t,n,r){return Aj(Vmt(t),e,n,r)}function Pmt(e,t,n,r){return Aj(R_e(t),e,n,r)}function Mmt(e,t,n,r){return Aj(Gmt(t,e.length-n),e,n,r)}st.prototype.write=function(t,n,r,o){if(n===void 0)o=\"utf8\",r=this.length,n=0;else if(r===void 0&&typeof n==\"string\")o=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,o===void 0&&(o=\"utf8\")):(o=r,r=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let i=this.length-n;if((r===void 0||r>i)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");o||(o=\"utf8\");let a=!1;for(;;)switch(o){case\"hex\":return Omt(this,t,n,r);case\"utf8\":case\"utf-8\":return kmt(this,t,n,r);case\"ascii\":case\"latin1\":case\"binary\":return Nmt(this,t,n,r);case\"base64\":return Pmt(this,t,n,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Mmt(this,t,n,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+o);o=(\"\"+o).toLowerCase(),a=!0}};st.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function Dmt(e,t,n){return t===0&&n===e.length?rie.fromByteArray(e):rie.fromByteArray(e.slice(t,n))}function x_e(e,t,n){n=Math.min(e.length,n);let r=[],o=t;for(;o<n;){let i=e[o],a=null,c=i>239?4:i>223?3:i>191?2:1;if(o+c<=n){let u,d,p,h;switch(c){case 1:i<128&&(a=i);break;case 2:u=e[o+1],(u&192)===128&&(h=(i&31)<<6|u&63,h>127&&(a=h));break;case 3:u=e[o+1],d=e[o+2],(u&192)===128&&(d&192)===128&&(h=(i&15)<<12|(u&63)<<6|d&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:u=e[o+1],d=e[o+2],p=e[o+3],(u&192)===128&&(d&192)===128&&(p&192)===128&&(h=(i&15)<<18|(u&63)<<12|(d&63)<<6|p&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),o+=c}return Lmt(r)}var m_e=4096;function Lmt(e){let t=e.length;if(t<=m_e)return String.fromCharCode.apply(String,e);let n=\"\",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=m_e));return n}function Bmt(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]&127);return r}function Umt(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Fmt(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o=\"\";for(let i=t;i<n;++i)o+=qmt[e[i]];return o}function Hmt(e,t,n){let r=e.slice(t,n),o=\"\";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+r[i+1]*256);return o}st.prototype.slice=function(t,n){let r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);let o=this.subarray(t,n);return Object.setPrototypeOf(o,st.prototype),o};function Nu(e,t,n){if(e%1!==0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}st.prototype.readUintLE=st.prototype.readUIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Nu(t,n,this.length);let o=this[t],i=1,a=0;for(;++a<n&&(i*=256);)o+=this[t+a]*i;return o};st.prototype.readUintBE=st.prototype.readUIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Nu(t,n,this.length);let o=this[t+--n],i=1;for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o};st.prototype.readUint8=st.prototype.readUInt8=function(t,n){return t=t>>>0,n||Nu(t,1,this.length),this[t]};st.prototype.readUint16LE=st.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||Nu(t,2,this.length),this[t]|this[t+1]<<8};st.prototype.readUint16BE=st.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||Nu(t,2,this.length),this[t]<<8|this[t+1]};st.prototype.readUint32LE=st.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};st.prototype.readUint32BE=st.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};st.prototype.readBigUInt64LE=OA(function(t){t=t>>>0,tI(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&R9(t,this.length-8);let o=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,i=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});st.prototype.readBigUInt64BE=OA(function(t){t=t>>>0,tI(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&R9(t,this.length-8);let o=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],i=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(o)<<BigInt(32))+BigInt(i)});st.prototype.readIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Nu(t,n,this.length);let o=this[t],i=1,a=0;for(;++a<n&&(i*=256);)o+=this[t+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o};st.prototype.readIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Nu(t,n,this.length);let o=n,i=1,a=this[t+--o];for(;o>0&&(i*=256);)a+=this[t+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*n)),a};st.prototype.readInt8=function(t,n){return t=t>>>0,n||Nu(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};st.prototype.readInt16LE=function(t,n){t=t>>>0,n||Nu(t,2,this.length);let r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};st.prototype.readInt16BE=function(t,n){t=t>>>0,n||Nu(t,2,this.length);let r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};st.prototype.readInt32LE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};st.prototype.readInt32BE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};st.prototype.readBigInt64LE=OA(function(t){t=t>>>0,tI(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&R9(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});st.prototype.readBigInt64BE=OA(function(t){t=t>>>0,tI(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&R9(t,this.length-8);let o=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r)});st.prototype.readFloatLE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),eI.read(this,t,!0,23,4)};st.prototype.readFloatBE=function(t,n){return t=t>>>0,n||Nu(t,4,this.length),eI.read(this,t,!1,23,4)};st.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||Nu(t,8,this.length),eI.read(this,t,!0,52,8)};st.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||Nu(t,8,this.length),eI.read(this,t,!1,52,8)};function Lp(e,t,n,r,o,i){if(!st.isBuffer(e))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(t>o||t<i)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>e.length)throw new RangeError(\"Index out of range\")}st.prototype.writeUintLE=st.prototype.writeUIntLE=function(t,n,r,o){if(t=+t,n=n>>>0,r=r>>>0,!o){let c=Math.pow(2,8*r)-1;Lp(this,t,n,r,c,0)}let i=1,a=0;for(this[n]=t&255;++a<r&&(i*=256);)this[n+a]=t/i&255;return n+r};st.prototype.writeUintBE=st.prototype.writeUIntBE=function(t,n,r,o){if(t=+t,n=n>>>0,r=r>>>0,!o){let c=Math.pow(2,8*r)-1;Lp(this,t,n,r,c,0)}let i=r-1,a=1;for(this[n+i]=t&255;--i>=0&&(a*=256);)this[n+i]=t/a&255;return n+r};st.prototype.writeUint8=st.prototype.writeUInt8=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,1,255,0),this[n]=t&255,n+1};st.prototype.writeUint16LE=st.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};st.prototype.writeUint16BE=st.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};st.prototype.writeUint32LE=st.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};st.prototype.writeUint32BE=st.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function E_e(e,t,n,r,o){C_e(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a=a>>8,e[n++]=a,a=a>>8,e[n++]=a,a=a>>8,e[n++]=a,n}function A_e(e,t,n,r,o){C_e(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i=i>>8,e[n+6]=i,i=i>>8,e[n+5]=i,i=i>>8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a=a>>8,e[n+2]=a,a=a>>8,e[n+1]=a,a=a>>8,e[n]=a,n+8}st.prototype.writeBigUInt64LE=OA(function(t,n=0){return E_e(this,t,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});st.prototype.writeBigUInt64BE=OA(function(t,n=0){return A_e(this,t,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});st.prototype.writeIntLE=function(t,n,r,o){if(t=+t,n=n>>>0,!o){let u=Math.pow(2,8*r-1);Lp(this,t,n,r,u-1,-u)}let i=0,a=1,c=0;for(this[n]=t&255;++i<r&&(a*=256);)t<0&&c===0&&this[n+i-1]!==0&&(c=1),this[n+i]=(t/a>>0)-c&255;return n+r};st.prototype.writeIntBE=function(t,n,r,o){if(t=+t,n=n>>>0,!o){let u=Math.pow(2,8*r-1);Lp(this,t,n,r,u-1,-u)}let i=r-1,a=1,c=0;for(this[n+i]=t&255;--i>=0&&(a*=256);)t<0&&c===0&&this[n+i+1]!==0&&(c=1),this[n+i]=(t/a>>0)-c&255;return n+r};st.prototype.writeInt8=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};st.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};st.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};st.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};st.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Lp(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};st.prototype.writeBigInt64LE=OA(function(t,n=0){return E_e(this,t,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});st.prototype.writeBigInt64BE=OA(function(t,n=0){return A_e(this,t,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function __e(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 S_e(e,t,n,r,o){return t=+t,n=n>>>0,o||__e(e,t,n,4,34028234663852886e22,-34028234663852886e22),eI.write(e,t,n,r,23,4),n+4}st.prototype.writeFloatLE=function(t,n,r){return S_e(this,t,n,!0,r)};st.prototype.writeFloatBE=function(t,n,r){return S_e(this,t,n,!1,r)};function T_e(e,t,n,r,o){return t=+t,n=n>>>0,o||__e(e,t,n,8,17976931348623157e292,-17976931348623157e292),eI.write(e,t,n,r,52,8),n+8}st.prototype.writeDoubleLE=function(t,n,r){return T_e(this,t,n,!0,r)};st.prototype.writeDoubleBE=function(t,n,r){return T_e(this,t,n,!1,r)};st.prototype.copy=function(t,n,r,o){if(!st.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(o<0)throw new RangeError(\"sourceEnd out of bounds\");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);let i=o-r;return this===t&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(n,r,o):Uint8Array.prototype.set.call(t,this.subarray(r,o),n),i};st.prototype.fill=function(t,n,r,o){if(typeof t==\"string\"){if(typeof n==\"string\"?(o=n,n=0,r=this.length):typeof r==\"string\"&&(o=r,r=this.length),o!==void 0&&typeof o!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof o==\"string\"&&!st.isEncoding(o))throw new TypeError(\"Unknown encoding: \"+o);if(t.length===1){let a=t.charCodeAt(0);(o===\"utf8\"&&a<128||o===\"latin1\")&&(t=a)}}else typeof t==\"number\"?t=t&255:typeof t==\"boolean\"&&(t=Number(t));if(n<0||this.length<n||this.length<r)throw new RangeError(\"Out of range index\");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let i;if(typeof t==\"number\")for(i=n;i<r;++i)this[i]=t;else{let a=st.isBuffer(t)?t:st.from(t,o),c=a.length;if(c===0)throw new TypeError(\\'The value \"\\'+t+\\'\" is invalid for argument \"value\"\\');for(i=0;i<r-n;++i)this[i+n]=a[i%c]}return this};var $4={};function uie(e,t,n){$4[e]=class extends n{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(o){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}uie(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError);uie(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError);uie(\"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=g_e(String(n)):typeof n==\"bigint\"&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=g_e(o)),o+=\"n\"),r+=` It must be ${t}. Received ${o}`,r},RangeError);function g_e(e){let t=\"\",n=e.length,r=e[0]===\"-\"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function zmt(e,t,n){tI(t,\"offset\"),(e[t]===void 0||e[t+n]===void 0)&&R9(t,e.length-(n+1))}function C_e(e,t,n,r,o,i){if(e>n||e<t){let a=typeof t==\"bigint\"?\"n\":\"\",c;throw i>3?t===0||t===BigInt(0)?c=`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:c=`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:c=`>= ${t}${a} and <= ${n}${a}`,new $4.ERR_OUT_OF_RANGE(\"value\",c,e)}zmt(r,o,i)}function tI(e,t){if(typeof e!=\"number\")throw new $4.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function R9(e,t,n){throw Math.floor(e)!==e?(tI(e,n),new $4.ERR_OUT_OF_RANGE(n||\"offset\",\"an integer\",e)):t<0?new $4.ERR_BUFFER_OUT_OF_BOUNDS:new $4.ERR_OUT_OF_RANGE(n||\"offset\",`>= ${n?1:0} and <= ${t}`,e)}var jmt=/[^+/0-9A-Za-z-_]/g;function Wmt(e){if(e=e.split(\"=\")[0],e=e.trim().replace(jmt,\"\"),e.length<2)return\"\";for(;e.length%4!==0;)e=e+\"=\";return e}function aie(e,t){t=t||1/0;let n,r=e.length,o=null,i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}else 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=(o-55296<<10|n-56320)+65536}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,n&63|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\"Invalid code point\")}return i}function Vmt(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function Gmt(e,t){let n,r,o,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function R_e(e){return rie.toByteArray(Wmt(e))}function Aj(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Lb(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function lie(e){return e!==e}var qmt=(function(){let e=\"0123456789abcdef\",t=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t})();function OA(e){return typeof BigInt>\"u\"?Kmt:e}function Kmt(){throw new Error(\"BigInt not supported\")}});var I_e,f=Z(()=>{\"use strict\";I_e=he(v2());globalThis.Buffer=I_e.Buffer});var O_e=me(Ka=>{\"use strict\";f();(function(){function e(){if(z=!1,oe){var k=Ka.unstable_now();q=k;var F=!0;try{e:{M=!1,P&&(P=!1,Q(J),J=-1),S=!0;var N=R;try{t:{for(i(k),x=n(g);x!==null&&!(x.expirationTime>k&&c());){var B=x.callback;if(typeof B==\"function\"){x.callback=null,R=x.priorityLevel;var H=B(x.expirationTime<=k);if(k=Ka.unstable_now(),typeof H==\"function\"){x.callback=H,i(k),F=!0;break t}x===n(g)&&r(g),i(k)}else r(g);x=n(g)}if(x!==null)F=!0;else{var W=n(y);W!==null&&u(a,W.startTime-k),F=!1}}break e}finally{x=null,R=N,S=!1}F=void 0}}finally{F?K():oe=!1}}}function t(k,F){var N=k.length;k.push(F);e:for(;0<N;){var B=N-1>>>1,H=k[B];if(0<o(H,F))k[B]=F,k[N]=H,N=B;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var F=k[0],N=k.pop();if(N!==F){k[0]=N;e:for(var B=0,H=k.length,W=H>>>1;B<W;){var G=2*(B+1)-1,O=k[G],j=G+1,te=k[j];if(0>o(O,N))j<H&&0>o(te,O)?(k[B]=te,k[j]=N,B=j):(k[B]=O,k[G]=N,B=G);else if(j<H&&0>o(te,N))k[B]=te,k[j]=N,B=j;else break e}}return F}function o(k,F){var N=k.sortIndex-F.sortIndex;return N!==0?N:k.id-F.id}function i(k){for(var F=n(y);F!==null;){if(F.callback===null)r(y);else if(F.startTime<=k)r(y),F.sortIndex=F.expirationTime,t(g,F);else break;F=n(y)}}function a(k){if(P=!1,i(k),!M)if(n(g)!==null)M=!0,oe||(oe=!0,K());else{var F=n(y);F!==null&&u(a,F.startTime-k)}}function c(){return z?!0:!(Ka.unstable_now()-q<re)}function u(k,F){J=V(function(){k(Ka.unstable_now())},F)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ka.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var d=performance;Ka.unstable_now=function(){return d.now()}}else{var p=Date,h=p.now();Ka.unstable_now=function(){return p.now()-h}}var g=[],y=[],v=1,x=null,R=3,S=!1,M=!1,P=!1,z=!1,V=typeof setTimeout==\"function\"?setTimeout:null,Q=typeof clearTimeout==\"function\"?clearTimeout:null,$=typeof setImmediate<\"u\"?setImmediate:null,oe=!1,J=-1,re=5,q=-1;if(typeof $==\"function\")var K=function(){$(e)};else if(typeof MessageChannel<\"u\"){var U=new MessageChannel,T=U.port2;U.port1.onmessage=e,K=function(){T.postMessage(null)}}else K=function(){V(e,0)};Ka.unstable_IdlePriority=5,Ka.unstable_ImmediatePriority=1,Ka.unstable_LowPriority=4,Ka.unstable_NormalPriority=3,Ka.unstable_Profiling=null,Ka.unstable_UserBlockingPriority=2,Ka.unstable_cancelCallback=function(k){k.callback=null},Ka.unstable_forceFrameRate=function(k){0>k||125<k?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):re=0<k?Math.floor(1e3/k):5},Ka.unstable_getCurrentPriorityLevel=function(){return R},Ka.unstable_next=function(k){switch(R){case 1:case 2:case 3:var F=3;break;default:F=R}var N=R;R=F;try{return k()}finally{R=N}},Ka.unstable_requestPaint=function(){z=!0},Ka.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var N=R;R=k;try{return F()}finally{R=N}},Ka.unstable_scheduleCallback=function(k,F,N){var B=Ka.unstable_now();switch(typeof N==\"object\"&&N!==null?(N=N.delay,N=typeof N==\"number\"&&0<N?B+N:B):N=B,k){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=N+H,k={id:v++,callback:F,priorityLevel:k,startTime:N,expirationTime:H,sortIndex:-1},N>B?(k.sortIndex=N,t(y,k),n(g)===null&&k===n(y)&&(P?(Q(J),J=-1):P=!0,u(a,N-B))):(k.sortIndex=H,t(g,k),M||S||(M=!0,oe||(oe=!0,K()))),k},Ka.unstable_shouldYield=c,Ka.unstable_wrapCallback=function(k){var F=R;return function(){var N=R;R=F;try{return k.apply(this,arguments)}finally{R=N}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var N_e=me((ben,k_e)=>{\"use strict\";f();k_e.exports=O_e()});var P_e=me((Sr,_j)=>{\"use strict\";f();(function(){function e(ue,Ie){Object.defineProperty(r.prototype,ue,{get:function(){console.warn(\"%s(...) is deprecated in plain JavaScript React classes. %s\",Ie[0],Ie[1])}})}function t(ue){return ue===null||typeof ue!=\"object\"?null:(ue=ve&&ue[ve]||ue[\"@@iterator\"],typeof ue==\"function\"?ue:null)}function n(ue,Ie){ue=(ue=ue.constructor)&&(ue.displayName||ue.name)||\"ReactClass\";var _t=ue+\".\"+Ie;xe[_t]||(console.error(\"Can\\'t call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",Ie,ue),xe[_t]=!0)}function r(ue,Ie,_t){this.props=ue,this.context=Ie,this.refs=gt,this.updater=_t||De}function o(){}function i(ue,Ie,_t){this.props=ue,this.context=Ie,this.refs=gt,this.updater=_t||De}function a(ue){return\"\"+ue}function c(ue){try{a(ue);var Ie=!1}catch{Ie=!0}if(Ie){Ie=console;var _t=Ie.error,ot=typeof Symbol==\"function\"&&Symbol.toStringTag&&ue[Symbol.toStringTag]||ue.constructor.name||\"Object\";return _t.call(Ie,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",ot),a(ue)}}function u(ue){if(ue==null)return null;if(typeof ue==\"function\")return ue.$$typeof===ht?null:ue.displayName||ue.name||null;if(typeof ue==\"string\")return ue;switch(ue){case B:return\"Fragment\";case W:return\"Profiler\";case H:return\"StrictMode\";case te:return\"Suspense\";case ne:return\"SuspenseList\";case ye:return\"Activity\"}if(typeof ue==\"object\")switch(typeof ue.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),ue.$$typeof){case N:return\"Portal\";case O:return(ue.displayName||\"Context\")+\".Provider\";case G:return(ue._context.displayName||\"Context\")+\".Consumer\";case j:var Ie=ue.render;return ue=ue.displayName,ue||(ue=Ie.displayName||Ie.name||\"\",ue=ue!==\"\"?\"ForwardRef(\"+ue+\")\":\"ForwardRef\"),ue;case ae:return Ie=ue.displayName||null,Ie!==null?Ie:u(ue.type)||\"Memo\";case pe:Ie=ue._payload,ue=ue._init;try{return u(ue(Ie))}catch{}}return null}function d(ue){if(ue===B)return\"<>\";if(typeof ue==\"object\"&&ue!==null&&ue.$$typeof===pe)return\"<...>\";try{var Ie=u(ue);return Ie?\"<\"+Ie+\">\":\"<...>\"}catch{return\"<...>\"}}function p(){var ue=et.A;return ue===null?null:ue.getOwner()}function h(){return Error(\"react-stack-top-frame\")}function g(ue){if(fn.call(ue,\"key\")){var Ie=Object.getOwnPropertyDescriptor(ue,\"key\").get;if(Ie&&Ie.isReactWarning)return!1}return ue.key!==void 0}function y(ue,Ie){function _t(){Vt||(Vt=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",Ie))}_t.isReactWarning=!0,Object.defineProperty(ue,\"key\",{get:_t,configurable:!0})}function v(){var ue=u(this.type);return Jt[ue]||(Jt[ue]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),ue=this.props.ref,ue!==void 0?ue:null}function x(ue,Ie,_t,ot,Mt,Sn,Gt,mn){return _t=Sn.ref,ue={$$typeof:F,type:ue,key:Ie,props:Sn,_owner:Mt},(_t!==void 0?_t:null)!==null?Object.defineProperty(ue,\"ref\",{enumerable:!1,get:v}):Object.defineProperty(ue,\"ref\",{enumerable:!1,value:null}),ue._store={},Object.defineProperty(ue._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ue,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ue,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(ue,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:mn}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue}function R(ue,Ie){return Ie=x(ue.type,Ie,void 0,void 0,ue._owner,ue.props,ue._debugStack,ue._debugTask),ue._store&&(Ie._store.validated=ue._store.validated),Ie}function S(ue){return typeof ue==\"object\"&&ue!==null&&ue.$$typeof===F}function M(ue){var Ie={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+ue.replace(/[=:]/g,function(_t){return Ie[_t]})}function P(ue,Ie){return typeof ue==\"object\"&&ue!==null&&ue.key!=null?(c(ue.key),M(\"\"+ue.key)):Ie.toString(36)}function z(){}function V(ue){switch(ue.status){case\"fulfilled\":return ue.value;case\"rejected\":throw ue.reason;default:switch(typeof ue.status==\"string\"?ue.then(z,z):(ue.status=\"pending\",ue.then(function(Ie){ue.status===\"pending\"&&(ue.status=\"fulfilled\",ue.value=Ie)},function(Ie){ue.status===\"pending\"&&(ue.status=\"rejected\",ue.reason=Ie)})),ue.status){case\"fulfilled\":return ue.value;case\"rejected\":throw ue.reason}}throw ue}function Q(ue,Ie,_t,ot,Mt){var Sn=typeof ue;(Sn===\"undefined\"||Sn===\"boolean\")&&(ue=null);var Gt=!1;if(ue===null)Gt=!0;else switch(Sn){case\"bigint\":case\"string\":case\"number\":Gt=!0;break;case\"object\":switch(ue.$$typeof){case F:case N:Gt=!0;break;case pe:return Gt=ue._init,Q(Gt(ue._payload),Ie,_t,ot,Mt)}}if(Gt){Gt=ue,Mt=Mt(Gt);var mn=ot===\"\"?\".\"+P(Gt,0):ot;return At(Mt)?(_t=\"\",mn!=null&&(_t=mn.replace(Fr,\"$&/\")+\"/\"),Q(Mt,Ie,_t,\"\",function(rr){return rr})):Mt!=null&&(S(Mt)&&(Mt.key!=null&&(Gt&&Gt.key===Mt.key||c(Mt.key)),_t=R(Mt,_t+(Mt.key==null||Gt&&Gt.key===Mt.key?\"\":(\"\"+Mt.key).replace(Fr,\"$&/\")+\"/\")+mn),ot!==\"\"&&Gt!=null&&S(Gt)&&Gt.key==null&&Gt._store&&!Gt._store.validated&&(_t._store.validated=2),Mt=_t),Ie.push(Mt)),1}if(Gt=0,mn=ot===\"\"?\".\":ot+\":\",At(ue))for(var On=0;On<ue.length;On++)ot=ue[On],Sn=mn+P(ot,On),Gt+=Q(ot,Ie,_t,Sn,Mt);else if(On=t(ue),typeof On==\"function\")for(On===ue.entries&&(Yn||console.warn(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Yn=!0),ue=On.call(ue),On=0;!(ot=ue.next()).done;)ot=ot.value,Sn=mn+P(ot,On++),Gt+=Q(ot,Ie,_t,Sn,Mt);else if(Sn===\"object\"){if(typeof ue.then==\"function\")return Q(V(ue),Ie,_t,ot,Mt);throw Ie=String(ue),Error(\"Objects are not valid as a React child (found: \"+(Ie===\"[object Object]\"?\"object with keys {\"+Object.keys(ue).join(\", \")+\"}\":Ie)+\"). If you meant to render a collection of children, use an array instead.\")}return Gt}function $(ue,Ie,_t){if(ue==null)return ue;var ot=[],Mt=0;return Q(ue,ot,\"\",\"\",function(Sn){return Ie.call(_t,Sn,Mt++)}),ot}function oe(ue){if(ue._status===-1){var Ie=ue._result;Ie=Ie(),Ie.then(function(_t){(ue._status===0||ue._status===-1)&&(ue._status=1,ue._result=_t)},function(_t){(ue._status===0||ue._status===-1)&&(ue._status=2,ue._result=_t)}),ue._status===-1&&(ue._status=0,ue._result=Ie)}if(ue._status===1)return Ie=ue._result,Ie===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))\\n\\nDid you accidentally put curly braces around the import?`,Ie),\"default\"in Ie||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))`,Ie),Ie.default;throw ue._result}function J(){var ue=et.H;return ue===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),ue}function re(){}function q(ue){if(Hr===null)try{var Ie=(\"require\"+Math.random()).slice(0,7);Hr=(_j&&_j[Ie]).call(_j,\"timers\").setImmediate}catch{Hr=function(ot){io===!1&&(io=!0,typeof MessageChannel>\"u\"&&console.error(\"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"));var Mt=new MessageChannel;Mt.port1.onmessage=ot,Mt.port2.postMessage(void 0)}}return Hr(ue)}function K(ue){return 1<ue.length&&typeof AggregateError==\"function\"?new AggregateError(ue):ue[0]}function U(ue,Ie){Ie!==qi-1&&console.error(\"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"),qi=Ie}function T(ue,Ie,_t){var ot=et.actQueue;if(ot!==null)if(ot.length!==0)try{k(ot),q(function(){return T(ue,Ie,_t)});return}catch(Mt){et.thrownErrors.push(Mt)}else et.actQueue=null;0<et.thrownErrors.length?(ot=K(et.thrownErrors),et.thrownErrors.length=0,_t(ot)):Ie(ue)}function k(ue){if(!zr){zr=!0;var Ie=0;try{for(;Ie<ue.length;Ie++){var _t=ue[Ie];do{et.didUsePromise=!1;var ot=_t(!1);if(ot!==null){if(et.didUsePromise){ue[Ie]=_t,ue.splice(0,Ie);return}_t=ot}else break}while(!0)}ue.length=0}catch(Mt){ue.splice(0,Ie+1),et.thrownErrors.push(Mt)}finally{zr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for(\"react.transitional.element\"),N=Symbol.for(\"react.portal\"),B=Symbol.for(\"react.fragment\"),H=Symbol.for(\"react.strict_mode\"),W=Symbol.for(\"react.profiler\");Symbol.for(\"react.provider\");var G=Symbol.for(\"react.consumer\"),O=Symbol.for(\"react.context\"),j=Symbol.for(\"react.forward_ref\"),te=Symbol.for(\"react.suspense\"),ne=Symbol.for(\"react.suspense_list\"),ae=Symbol.for(\"react.memo\"),pe=Symbol.for(\"react.lazy\"),ye=Symbol.for(\"react.activity\"),ve=Symbol.iterator,xe={},De={isMounted:function(){return!1},enqueueForceUpdate:function(ue){n(ue,\"forceUpdate\")},enqueueReplaceState:function(ue){n(ue,\"replaceState\")},enqueueSetState:function(ue){n(ue,\"setState\")}},Ge=Object.assign,gt={};Object.freeze(gt),r.prototype.isReactComponent={},r.prototype.setState=function(ue,Ie){if(typeof ue!=\"object\"&&typeof ue!=\"function\"&&ue!=null)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,ue,Ie,\"setState\")},r.prototype.forceUpdate=function(ue){this.updater.enqueueForceUpdate(this,ue,\"forceUpdate\")};var Ye={isMounted:[\"isMounted\",\"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"],replaceState:[\"replaceState\",\"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"]},lt;for(lt in Ye)Ye.hasOwnProperty(lt)&&e(lt,Ye[lt]);o.prototype=r.prototype,Ye=i.prototype=new o,Ye.constructor=i,Ge(Ye,r.prototype),Ye.isPureReactComponent=!0;var At=Array.isArray,ht=Symbol.for(\"react.client.reference\"),et={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},fn=Object.prototype.hasOwnProperty,Zt=console.createTask?console.createTask:function(){return null};Ye={react_stack_bottom_frame:function(ue){return ue()}};var Vt,jt,Jt={},Xt=Ye.react_stack_bottom_frame.bind(Ye,h)(),sr=Zt(d(h)),Yn=!1,Fr=/\\\\/+/g,Ws=typeof reportError==\"function\"?reportError:function(ue){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var Ie=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof ue==\"object\"&&ue!==null&&typeof ue.message==\"string\"?String(ue.message):String(ue),error:ue});if(!window.dispatchEvent(Ie))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",ue);return}console.error(ue)},io=!1,Hr=null,qi=0,Ar=!1,zr=!1,la=typeof queueMicrotask==\"function\"?function(ue){queueMicrotask(function(){return queueMicrotask(ue)})}:q;Ye=Object.freeze({__proto__:null,c:function(ue){return J().useMemoCache(ue)}}),Sr.Children={map:$,forEach:function(ue,Ie,_t){$(ue,function(){Ie.apply(this,arguments)},_t)},count:function(ue){var Ie=0;return $(ue,function(){Ie++}),Ie},toArray:function(ue){return $(ue,function(Ie){return Ie})||[]},only:function(ue){if(!S(ue))throw Error(\"React.Children.only expected to receive a single React element child.\");return ue}},Sr.Component=r,Sr.Fragment=B,Sr.Profiler=W,Sr.PureComponent=i,Sr.StrictMode=H,Sr.Suspense=te,Sr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,Sr.__COMPILER_RUNTIME=Ye,Sr.act=function(ue){var Ie=et.actQueue,_t=qi;qi++;var ot=et.actQueue=Ie!==null?Ie:[],Mt=!1;try{var Sn=ue()}catch(On){et.thrownErrors.push(On)}if(0<et.thrownErrors.length)throw U(Ie,_t),ue=K(et.thrownErrors),et.thrownErrors.length=0,ue;if(Sn!==null&&typeof Sn==\"object\"&&typeof Sn.then==\"function\"){var Gt=Sn;return la(function(){Mt||Ar||(Ar=!0,console.error(\"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"))}),{then:function(On,rr){Mt=!0,Gt.then(function(un){if(U(Ie,_t),_t===0){try{k(ot),q(function(){return T(un,On,rr)})}catch(yo){et.thrownErrors.push(yo)}if(0<et.thrownErrors.length){var Ni=K(et.thrownErrors);et.thrownErrors.length=0,rr(Ni)}}else On(un)},function(un){U(Ie,_t),0<et.thrownErrors.length&&(un=K(et.thrownErrors),et.thrownErrors.length=0),rr(un)})}}}var mn=Sn;if(U(Ie,_t),_t===0&&(k(ot),ot.length!==0&&la(function(){Mt||Ar||(Ar=!0,console.error(\"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\\\n\\\\nawait act(() => ...)\"))}),et.actQueue=null),0<et.thrownErrors.length)throw ue=K(et.thrownErrors),et.thrownErrors.length=0,ue;return{then:function(On,rr){Mt=!0,_t===0?(et.actQueue=ot,q(function(){return T(mn,On,rr)})):On(mn)}}},Sr.cache=function(ue){return function(){return ue.apply(null,arguments)}},Sr.captureOwnerStack=function(){var ue=et.getCurrentStack;return ue===null?null:ue()},Sr.cloneElement=function(ue,Ie,_t){if(ue==null)throw Error(\"The argument must be a React element, but you passed \"+ue+\".\");var ot=Ge({},ue.props),Mt=ue.key,Sn=ue._owner;if(Ie!=null){var Gt;e:{if(fn.call(Ie,\"ref\")&&(Gt=Object.getOwnPropertyDescriptor(Ie,\"ref\").get)&&Gt.isReactWarning){Gt=!1;break e}Gt=Ie.ref!==void 0}Gt&&(Sn=p()),g(Ie)&&(c(Ie.key),Mt=\"\"+Ie.key);for(mn in Ie)!fn.call(Ie,mn)||mn===\"key\"||mn===\"__self\"||mn===\"__source\"||mn===\"ref\"&&Ie.ref===void 0||(ot[mn]=Ie[mn])}var mn=arguments.length-2;if(mn===1)ot.children=_t;else if(1<mn){Gt=Array(mn);for(var On=0;On<mn;On++)Gt[On]=arguments[On+2];ot.children=Gt}for(ot=x(ue.type,Mt,void 0,void 0,Sn,ot,ue._debugStack,ue._debugTask),Mt=2;Mt<arguments.length;Mt++)Sn=arguments[Mt],S(Sn)&&Sn._store&&(Sn._store.validated=1);return ot},Sr.createContext=function(ue){return ue={$$typeof:O,_currentValue:ue,_currentValue2:ue,_threadCount:0,Provider:null,Consumer:null},ue.Provider=ue,ue.Consumer={$$typeof:G,_context:ue},ue._currentRenderer=null,ue._currentRenderer2=null,ue},Sr.createElement=function(ue,Ie,_t){for(var ot=2;ot<arguments.length;ot++){var Mt=arguments[ot];S(Mt)&&Mt._store&&(Mt._store.validated=1)}if(ot={},Mt=null,Ie!=null)for(On in jt||!(\"__self\"in Ie)||\"key\"in Ie||(jt=!0,console.warn(\"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\")),g(Ie)&&(c(Ie.key),Mt=\"\"+Ie.key),Ie)fn.call(Ie,On)&&On!==\"key\"&&On!==\"__self\"&&On!==\"__source\"&&(ot[On]=Ie[On]);var Sn=arguments.length-2;if(Sn===1)ot.children=_t;else if(1<Sn){for(var Gt=Array(Sn),mn=0;mn<Sn;mn++)Gt[mn]=arguments[mn+2];Object.freeze&&Object.freeze(Gt),ot.children=Gt}if(ue&&ue.defaultProps)for(On in Sn=ue.defaultProps,Sn)ot[On]===void 0&&(ot[On]=Sn[On]);Mt&&y(ot,typeof ue==\"function\"?ue.displayName||ue.name||\"Unknown\":ue);var On=1e4>et.recentlyCreatedOwnerStacks++;return x(ue,Mt,void 0,void 0,p(),ot,On?Error(\"react-stack-top-frame\"):Xt,On?Zt(d(ue)):sr)},Sr.createRef=function(){var ue={current:null};return Object.seal(ue),ue},Sr.forwardRef=function(ue){ue!=null&&ue.$$typeof===ae?console.error(\"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"):typeof ue!=\"function\"?console.error(\"forwardRef requires a render function but was given %s.\",ue===null?\"null\":typeof ue):ue.length!==0&&ue.length!==2&&console.error(\"forwardRef render functions accept exactly two parameters: props and ref. %s\",ue.length===1?\"Did you forget to use the ref parameter?\":\"Any additional parameter will be undefined.\"),ue!=null&&ue.defaultProps!=null&&console.error(\"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\");var Ie={$$typeof:j,render:ue},_t;return Object.defineProperty(Ie,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return _t},set:function(ot){_t=ot,ue.name||ue.displayName||(Object.defineProperty(ue,\"name\",{value:ot}),ue.displayName=ot)}}),Ie},Sr.isValidElement=S,Sr.lazy=function(ue){return{$$typeof:pe,_payload:{_status:-1,_result:ue},_init:oe}},Sr.memo=function(ue,Ie){ue==null&&console.error(\"memo: The first argument must be a component. Instead received: %s\",ue===null?\"null\":typeof ue),Ie={$$typeof:ae,type:ue,compare:Ie===void 0?null:Ie};var _t;return Object.defineProperty(Ie,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return _t},set:function(ot){_t=ot,ue.name||ue.displayName||(Object.defineProperty(ue,\"name\",{value:ot}),ue.displayName=ot)}}),Ie},Sr.startTransition=function(ue){var Ie=et.T,_t={};et.T=_t,_t._updatedFibers=new Set;try{var ot=ue(),Mt=et.S;Mt!==null&&Mt(_t,ot),typeof ot==\"object\"&&ot!==null&&typeof ot.then==\"function\"&&ot.then(re,Ws)}catch(Sn){Ws(Sn)}finally{Ie===null&&_t._updatedFibers&&(ue=_t._updatedFibers.size,_t._updatedFibers.clear(),10<ue&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\")),et.T=Ie}},Sr.unstable_useCacheRefresh=function(){return J().useCacheRefresh()},Sr.use=function(ue){return J().use(ue)},Sr.useActionState=function(ue,Ie,_t){return J().useActionState(ue,Ie,_t)},Sr.useCallback=function(ue,Ie){return J().useCallback(ue,Ie)},Sr.useContext=function(ue){var Ie=J();return ue.$$typeof===G&&console.error(\"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"),Ie.useContext(ue)},Sr.useDebugValue=function(ue,Ie){return J().useDebugValue(ue,Ie)},Sr.useDeferredValue=function(ue,Ie){return J().useDeferredValue(ue,Ie)},Sr.useEffect=function(ue,Ie,_t){ue==null&&console.warn(\"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\");var ot=J();if(typeof _t==\"function\")throw Error(\"useEffect CRUD overload is not enabled in this build of React.\");return ot.useEffect(ue,Ie)},Sr.useId=function(){return J().useId()},Sr.useImperativeHandle=function(ue,Ie,_t){return J().useImperativeHandle(ue,Ie,_t)},Sr.useInsertionEffect=function(ue,Ie){return ue==null&&console.warn(\"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),J().useInsertionEffect(ue,Ie)},Sr.useLayoutEffect=function(ue,Ie){return ue==null&&console.warn(\"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),J().useLayoutEffect(ue,Ie)},Sr.useMemo=function(ue,Ie){return J().useMemo(ue,Ie)},Sr.useOptimistic=function(ue,Ie){return J().useOptimistic(ue,Ie)},Sr.useReducer=function(ue,Ie,_t){return J().useReducer(ue,Ie,_t)},Sr.useRef=function(ue){return J().useRef(ue)},Sr.useState=function(ue){return J().useState(ue)},Sr.useSyncExternalStore=function(ue,Ie,_t){return J().useSyncExternalStore(ue,Ie,_t)},Sr.useTransition=function(){return J().useTransition()},Sr.version=\"19.1.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $e=me((xen,M_e)=>{\"use strict\";f();M_e.exports=P_e()});var D_e=me(Rf=>{\"use strict\";f();(function(){function e(){}function t(h){return\"\"+h}function n(h,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var x=!1}catch{x=!0}return x&&(console.error(\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",typeof Symbol==\"function\"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||\"Object\"),t(v)),{$$typeof:d,key:v==null?null:\"\"+v,children:h,containerInfo:g,implementation:y}}function r(h,g){if(h===\"font\")return\"\";if(typeof g==\"string\")return g===\"use-credentials\"?g:\"\"}function o(h){return h===null?\"`null`\":h===void 0?\"`undefined`\":h===\"\"?\"an empty string\":\\'something with type \"\\'+typeof h+\\'\"\\'}function i(h){return h===null?\"`null`\":h===void 0?\"`undefined`\":h===\"\"?\"an empty string\":typeof h==\"string\"?JSON.stringify(h):typeof h==\"number\"?\"`\"+h+\"`\":\\'something with type \"\\'+typeof h+\\'\"\\'}function a(){var h=p.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=$e(),u={d:{f:e,r:function(){throw Error(\"Invalid form element. requestFormReset must be passed a form that was rendered by React.\")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},d=Symbol.for(\"react.portal\"),p=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"),Rf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Rf.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(\"Target container is not a DOM element.\");return n(h,g,null,y)},Rf.flushSync=function(h){var g=p.T,y=u.p;try{if(p.T=null,u.p=2,h)return h()}finally{p.T=g,u.p=y,u.d.f()&&console.error(\"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.\")}},Rf.preconnect=function(h,g){typeof h==\"string\"&&h?g!=null&&typeof g!=\"object\"?console.error(\"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",i(g)):g!=null&&typeof g.crossOrigin!=\"string\"&&console.error(\"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",o(g.crossOrigin)):console.error(\"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h)),typeof h==\"string\"&&(g?(g=g.crossOrigin,g=typeof g==\"string\"?g===\"use-credentials\"?g:\"\":void 0):g=null,u.d.C(h,g))},Rf.prefetchDNS=function(h){if(typeof h!=\"string\"||!h)console.error(\"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h));else if(1<arguments.length){var g=arguments[1];typeof g==\"object\"&&g.hasOwnProperty(\"crossOrigin\")?console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",i(g)):console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",i(g))}typeof h==\"string\"&&u.d.D(h)},Rf.preinit=function(h,g){if(typeof h==\"string\"&&h?g==null||typeof g!=\"object\"?console.error(\"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",i(g)):g.as!==\"style\"&&g.as!==\"script\"&&console.error(\\'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".\\',i(g.as)):console.error(\"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h)),typeof h==\"string\"&&g&&typeof g.as==\"string\"){var y=g.as,v=r(y,g.crossOrigin),x=typeof g.integrity==\"string\"?g.integrity:void 0,R=typeof g.fetchPriority==\"string\"?g.fetchPriority:void 0;y===\"style\"?u.d.S(h,typeof g.precedence==\"string\"?g.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:R}):y===\"script\"&&u.d.X(h,{crossOrigin:v,integrity:x,fetchPriority:R,nonce:typeof g.nonce==\"string\"?g.nonce:void 0})}},Rf.preinitModule=function(h,g){var y=\"\";if(typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g!==void 0&&typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":g&&\"as\"in g&&g.as!==\"script\"&&(y+=\" The `as` option encountered was \"+i(g.as)+\".\"),y)console.error(\"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",y);else switch(y=g&&typeof g.as==\"string\"?g.as:\"script\",y){case\"script\":break;default:y=i(y),console.error(\\'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)\\',y,h)}typeof h==\"string\"&&(typeof g==\"object\"&&g!==null?(g.as==null||g.as===\"script\")&&(y=r(g.as,g.crossOrigin),u.d.M(h,{crossOrigin:y,integrity:typeof g.integrity==\"string\"?g.integrity:void 0,nonce:typeof g.nonce==\"string\"?g.nonce:void 0})):g==null&&u.d.M(h))},Rf.preload=function(h,g){var y=\"\";if(typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g==null||typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":typeof g.as==\"string\"&&g.as||(y+=\" The `as` option encountered was \"+o(g.as)+\".\"),y&&console.error(\\'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s\\',y),typeof h==\"string\"&&typeof g==\"object\"&&g!==null&&typeof g.as==\"string\"){y=g.as;var v=r(y,g.crossOrigin);u.d.L(h,y,{crossOrigin:v,integrity:typeof g.integrity==\"string\"?g.integrity:void 0,nonce:typeof g.nonce==\"string\"?g.nonce:void 0,type:typeof g.type==\"string\"?g.type:void 0,fetchPriority:typeof g.fetchPriority==\"string\"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy==\"string\"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet==\"string\"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes==\"string\"?g.imageSizes:void 0,media:typeof g.media==\"string\"?g.media:void 0})}},Rf.preloadModule=function(h,g){var y=\"\";typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g!==void 0&&typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":g&&\"as\"in g&&typeof g.as!=\"string\"&&(y+=\" The `as` option encountered was \"+o(g.as)+\".\"),y&&console.error(\\'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s\\',y),typeof h==\"string\"&&(g?(y=r(g.as,g.crossOrigin),u.d.m(h,{as:typeof g.as==\"string\"&&g.as!==\"script\"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity==\"string\"?g.integrity:void 0})):u.d.m(h))},Rf.requestFormReset=function(h){u.d.r(h)},Rf.unstable_batchedUpdates=function(h,g){return h(g)},Rf.useFormState=function(h,g,y){return a().useFormState(h,g,y)},Rf.useFormStatus=function(){return a().useHostTransitionStatus()},Rf.version=\"19.1.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Ny=me((Sen,L_e)=>{\"use strict\";f();L_e.exports=D_e()});var B_e=me(Sj=>{\"use strict\";f();(function(){function e(s,l){for(s=s.memoizedState;s!==null&&0<l;)s=s.next,l--;return s}function t(s,l,m,b){if(m>=l.length)return b;var w=l[m],I=Al(s)?s.slice():Dr({},s);return I[w]=t(s[w],l,m+1,b),I}function n(s,l,m){if(l.length!==m.length)console.warn(\"copyWithRename() expects paths of the same length\");else{for(var b=0;b<m.length-1;b++)if(l[b]!==m[b]){console.warn(\"copyWithRename() expects paths to be the same except for the deepest key\");return}return r(s,l,m,0)}}function r(s,l,m,b){var w=l[b],I=Al(s)?s.slice():Dr({},s);return b+1===l.length?(I[m[b]]=I[w],Al(I)?I.splice(w,1):delete I[w]):I[w]=r(s[w],l,m,b+1),I}function o(s,l,m){var b=l[m],w=Al(s)?s.slice():Dr({},s);return m+1===l.length?(Al(w)?w.splice(b,1):delete w[b],w):(w[b]=o(s[b],l,m+1),w)}function i(){return!1}function a(){return null}function c(){}function u(){console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\")}function d(){console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\")}function p(){}function h(s){var l=[];return s.forEach(function(m){l.push(m)}),l.sort().join(\", \")}function g(s,l,m,b){return new PP(s,l,m,b)}function y(s,l){s.context===gA&&(Tre(s.current,2,l,s,null,null),xt())}function v(s,l){if(p0!==null){var m=l.staleFamilies;l=l.updatedFamilies,Ia(),Io(s.current,l,m),xt()}}function x(s){p0=s}function R(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function S(s){var l=s,m=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(m=l.return),s=l.return;while(s)}return l.tag===3?m:null}function M(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function P(s){if(S(s)!==s)throw Error(\"Unable to find node on an unmounted component.\")}function z(s){var l=s.alternate;if(!l){if(l=S(s),l===null)throw Error(\"Unable to find node on an unmounted component.\");return l!==s?null:s}for(var m=s,b=l;;){var w=m.return;if(w===null)break;var I=w.alternate;if(I===null){if(b=w.return,b!==null){m=b;continue}break}if(w.child===I.child){for(I=w.child;I;){if(I===m)return P(w),s;if(I===b)return P(w),l;I=I.sibling}throw Error(\"Unable to find node on an unmounted component.\")}if(m.return!==b.return)m=w,b=I;else{for(var Y=!1,ie=w.child;ie;){if(ie===m){Y=!0,m=w,b=I;break}if(ie===b){Y=!0,b=w,m=I;break}ie=ie.sibling}if(!Y){for(ie=I.child;ie;){if(ie===m){Y=!0,m=I,b=w;break}if(ie===b){Y=!0,b=I,m=w;break}ie=ie.sibling}if(!Y)throw Error(\"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\")}}if(m.alternate!==b)throw Error(\"Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.\")}if(m.tag!==3)throw Error(\"Unable to find node on an unmounted component.\");return m.stateNode.current===m?s:l}function V(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=V(s),l!==null)return l;s=s.sibling}return null}function Q(s){return s===null||typeof s!=\"object\"?null:(s=Rxe&&s[Rxe]||s[\"@@iterator\"],typeof s==\"function\"?s:null)}function $(s){if(s==null)return null;if(typeof s==\"function\")return s.$$typeof===Apt?null:s.displayName||s.name||null;if(typeof s==\"string\")return s;switch(s){case g4:return\"Fragment\";case Pre:return\"Profiler\";case Cz:return\"StrictMode\";case Dre:return\"Suspense\";case Lre:return\"SuspenseList\";case Bre:return\"Activity\"}if(typeof s==\"object\")switch(typeof s.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),s.$$typeof){case m4:return\"Portal\";case Sb:return(s.displayName||\"Context\")+\".Provider\";case Mre:return(s._context.displayName||\"Context\")+\".Consumer\";case UP:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||\"\",s=s!==\"\"?\"ForwardRef(\"+s+\")\":\"ForwardRef\"),s;case Rz:return l=s.displayName||null,l!==null?l:$(s.type)||\"Memo\";case Kh:l=s._payload,s=s._init;try{return $(s(l))}catch{}}return null}function oe(s){return typeof s.tag==\"number\"?J(s):typeof s.name==\"string\"?s.name:null}function J(s){var l=s.type;switch(s.tag){case 31:return\"Activity\";case 24:return\"Cache\";case 9:return(l._context.displayName||\"Context\")+\".Consumer\";case 10:return(l.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return s=l.render,s=s.displayName||s.name||\"\",l.displayName||(s!==\"\"?\"ForwardRef(\"+s+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return l;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return $(l);case 8:return l===Cz?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 14:case 15:if(typeof l==\"function\")return l.displayName||l.name||null;if(typeof l==\"string\")return l;break;case 29:if(l=s._debugInfo,l!=null){for(var m=l.length-1;0<=m;m--)if(typeof l[m].name==\"string\")return l[m].name}if(s.return!==null)return J(s.return)}return null}function re(s){return{current:s}}function q(s,l){0>o2?console.error(\"Unexpected pop.\"):(l!==Fre[o2]&&console.error(\"Unexpected Fiber popped.\"),s.current=Ure[o2],Ure[o2]=null,Fre[o2]=null,o2--)}function K(s,l,m){o2++,Ure[o2]=s.current,Fre[o2]=m,s.current=l}function U(s){return s===null&&console.error(\"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"),s}function T(s,l){K(fA,l,s),K(FP,s,s),K(dA,null,s);var m=l.nodeType;switch(m){case 9:case 11:m=m===9?\"#document\":\"#fragment\",l=(l=l.documentElement)&&(l=l.namespaceURI)?wb(l):m2;break;default:if(m=l.tagName,l=l.namespaceURI)l=wb(l),l=Sp(l,m);else switch(m){case\"svg\":l=J4;break;case\"math\":l=hj;break;default:l=m2}}m=m.toLowerCase(),m=Hm(null,m),m={context:l,ancestorInfo:m},q(dA,s),K(dA,m,s)}function k(s){q(dA,s),q(FP,s),q(fA,s)}function F(){return U(dA.current)}function N(s){s.memoizedState!==null&&K(Iz,s,s);var l=U(dA.current),m=s.type,b=Sp(l.context,m);m=Hm(l.ancestorInfo,m),b={context:b,ancestorInfo:m},l!==b&&(K(FP,s,s),K(dA,b,s))}function B(s){FP.current===s&&(q(dA,s),q(FP,s)),Iz.current===s&&(q(Iz,s),A9._currentValue=j3)}function H(s){return typeof Symbol==\"function\"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||\"Object\"}function W(s){try{return G(s),!1}catch{return!0}}function G(s){return\"\"+s}function O(s,l){if(W(s))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",l,H(s)),G(s)}function j(s,l){if(W(s))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",l,H(s)),G(s)}function te(s){if(W(s))return console.error(\"Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.\",H(s)),G(s)}function ne(s){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\")return!1;var l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(l.isDisabled)return!0;if(!l.supportsFiber)return console.error(\"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools\"),!0;try{b4=l.inject(s),bd=l}catch(m){console.error(\"React instrumentation encountered an error: %s.\",m)}return!!l.checkDCE}function ae(s){if(typeof Opt==\"function\"&&kpt(s),bd&&typeof bd.setStrictMode==\"function\")try{bd.setStrictMode(b4,s)}catch(l){Cb||(Cb=!0,console.error(\"React instrumentation encountered an error: %s\",l))}}function pe(s){$t=s}function ye(){$t!==null&&typeof $t.markCommitStopped==\"function\"&&$t.markCommitStopped()}function ve(s){$t!==null&&typeof $t.markComponentRenderStarted==\"function\"&&$t.markComponentRenderStarted(s)}function xe(){$t!==null&&typeof $t.markComponentRenderStopped==\"function\"&&$t.markComponentRenderStopped()}function De(s){$t!==null&&typeof $t.markRenderStarted==\"function\"&&$t.markRenderStarted(s)}function Ge(){$t!==null&&typeof $t.markRenderStopped==\"function\"&&$t.markRenderStopped()}function gt(s,l){$t!==null&&typeof $t.markStateUpdateScheduled==\"function\"&&$t.markStateUpdateScheduled(s,l)}function Ye(s){return s>>>=0,s===0?32:31-(Npt(s)/Ppt|0)|0}function lt(s){if(s&1)return\"SyncHydrationLane\";if(s&2)return\"Sync\";if(s&4)return\"InputContinuousHydration\";if(s&8)return\"InputContinuous\";if(s&16)return\"DefaultHydration\";if(s&32)return\"Default\";if(s&128)return\"TransitionHydration\";if(s&4194048)return\"Transition\";if(s&62914560)return\"Retry\";if(s&67108864)return\"SelectiveHydration\";if(s&134217728)return\"IdleHydration\";if(s&268435456)return\"Idle\";if(s&536870912)return\"Offscreen\";if(s&1073741824)return\"Deferred\"}function At(s){var l=s&42;if(l!==0)return l;switch(s&-s){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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),s}}function ht(s,l,m){var b=s.pendingLanes;if(b===0)return 0;var w=0,I=s.suspendedLanes,Y=s.pingedLanes;s=s.warmLanes;var ie=b&134217727;return ie!==0?(b=ie&~I,b!==0?w=At(b):(Y&=ie,Y!==0?w=At(Y):m||(m=ie&~s,m!==0&&(w=At(m))))):(ie=b&~I,ie!==0?w=At(ie):Y!==0?w=At(Y):m||(m=b&~s,m!==0&&(w=At(m)))),w===0?0:l!==0&&l!==w&&(l&I)===0&&(I=w&-w,m=l&-l,I>=m||I===32&&(m&4194048)!==0)?l:w}function et(s,l){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&l)===0}function fn(s,l){switch(s){case 1:case 2:case 4:case 8:case 64:return l+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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),-1}}function Zt(){var s=Oz;return Oz<<=1,(Oz&4194048)===0&&(Oz=256),s}function Vt(){var s=kz;return kz<<=1,(kz&62914560)===0&&(kz=4194304),s}function jt(s){for(var l=[],m=0;31>m;m++)l.push(s);return l}function Jt(s,l){s.pendingLanes|=l,l!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Xt(s,l,m,b,w,I){var Y=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var ie=s.entanglements,fe=s.expirationTimes,ge=s.hiddenUpdates;for(m=Y&~m;0<m;){var We=31-wf(m),Xe=1<<We;ie[We]=0,fe[We]=-1;var je=ge[We];if(je!==null)for(ge[We]=null,We=0;We<je.length;We++){var tt=je[We];tt!==null&&(tt.lane&=-536870913)}m&=~Xe}b!==0&&sr(s,b,0),I!==0&&w===0&&s.tag!==0&&(s.suspendedLanes|=I&~(Y&~l))}function sr(s,l,m){s.pendingLanes|=l,s.suspendedLanes&=~l;var b=31-wf(l);s.entangledLanes|=l,s.entanglements[b]=s.entanglements[b]|1073741824|m&4194090}function Yn(s,l){var m=s.entangledLanes|=l;for(s=s.entanglements;m;){var b=31-wf(m),w=1<<b;w&l|s[b]&l&&(s[b]|=l),m&=~w}}function Fr(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Ws(s,l,m){if(Sy)for(s=s.pendingUpdatersLaneMap;0<m;){var b=31-wf(m),w=1<<b;s[b].add(l),m&=~w}}function io(s,l){if(Sy)for(var m=s.pendingUpdatersLaneMap,b=s.memoizedUpdaters;0<l;){var w=31-wf(l);s=1<<w,w=m[w],0<w.size&&(w.forEach(function(I){var Y=I.alternate;Y!==null&&b.has(Y)||b.add(I)}),w.clear()),l&=~s}}function Hr(s){return s&=-s,Yh!==0&&Yh<s?Ty!==0&&Ty<s?(s&134217727)!==0?Rb:Nz:Ty:Yh}function qi(){var s=ai.p;return s!==0?s:(s=window.event,s===void 0?Rb:Exe(s.type))}function Ar(s,l){var m=ai.p;try{return ai.p=s,l()}finally{ai.p=m}}function zr(s){delete s[vd],delete s[Np],delete s[Vre],delete s[Mpt],delete s[Dpt]}function la(s){var l=s[vd];if(l)return l;for(var m=s.parentNode;m;){if(l=m[hA]||m[vd]){if(m=l.alternate,l.child!==null||m!==null&&m.child!==null)for(s=v3(s);s!==null;){if(m=s[vd])return m;s=v3(s)}return l}s=m,m=s.parentNode}return null}function ue(s){if(s=s[vd]||s[hA]){var l=s.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return s}return null}function Ie(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s.stateNode;throw Error(\"getNodeFromInstance: Invalid argument.\")}function _t(s){var l=s[Ixe];return l||(l=s[Ixe]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ot(s){s[HP]=!0}function Mt(s,l){Sn(s,l),Sn(s+\"Capture\",l)}function Sn(s,l){A3[s]&&console.error(\"EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.\",s),A3[s]=l;var m=s.toLowerCase();for(Gre[m]=s,s===\"onDoubleClick\"&&(Gre.ondblclick=s),s=0;s<l.length;s++)Oxe.add(l[s])}function Gt(s,l){Lpt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||console.error(s===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),l.onChange||l.readOnly||l.disabled||l.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function mn(s){return i2.call(Nxe,s)?!0:i2.call(kxe,s)?!1:Bpt.test(s)?Nxe[s]=!0:(kxe[s]=!0,console.error(\"Invalid attribute name: `%s`\",s),!1)}function On(s,l,m){if(mn(l)){if(!s.hasAttribute(l)){switch(typeof m){case\"symbol\":case\"object\":return m;case\"function\":return m;case\"boolean\":if(m===!1)return m}return m===void 0?void 0:null}return s=s.getAttribute(l),s===\"\"&&m===!0?!0:(O(m,l),s===\"\"+m?m:s)}}function rr(s,l,m){if(mn(l))if(m===null)s.removeAttribute(l);else{switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":s.removeAttribute(l);return;case\"boolean\":var b=l.toLowerCase().slice(0,5);if(b!==\"data-\"&&b!==\"aria-\"){s.removeAttribute(l);return}}O(m,l),s.setAttribute(l,\"\"+m)}}function un(s,l,m){if(m===null)s.removeAttribute(l);else{switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":s.removeAttribute(l);return}O(m,l),s.setAttribute(l,\"\"+m)}}function Ni(s,l,m,b){if(b===null)s.removeAttribute(m);else{switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":s.removeAttribute(m);return}O(b,m),s.setAttributeNS(l,m,\"\"+b)}}function yo(){}function Xo(){if(zP===0){Pxe=console.log,Mxe=console.info,Dxe=console.warn,Lxe=console.error,Bxe=console.group,Uxe=console.groupCollapsed,Fxe=console.groupEnd;var s={configurable:!0,enumerable:!0,value:yo,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}zP++}function of(){if(zP--,zP===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dr({},s,{value:Pxe}),info:Dr({},s,{value:Mxe}),warn:Dr({},s,{value:Dxe}),error:Dr({},s,{value:Lxe}),group:Dr({},s,{value:Bxe}),groupCollapsed:Dr({},s,{value:Uxe}),groupEnd:Dr({},s,{value:Fxe})})}0>zP&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function _r(s){if(qre===void 0)try{throw Error()}catch(m){var l=m.stack.trim().match(/\\\\n( *(at )?)/);qre=l&&l[1]||\"\",Hxe=-1<m.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<m.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+qre+s+Hxe}function Nr(s,l){if(!s||Kre)return\"\";var m=Yre.get(s);if(m!==void 0)return m;Kre=!0,m=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=Je.H,Je.H=null,Xo();try{var w={DetermineComponentFrameRoot:function(){try{if(l){var je=function(){throw Error()};if(Object.defineProperty(je.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(je,[])}catch(ln){var tt=ln}Reflect.construct(s,[],je)}else{try{je.call()}catch(ln){tt=ln}s.call(je.prototype)}}else{try{throw Error()}catch(ln){tt=ln}(je=s())&&typeof je.catch==\"function\"&&je.catch(function(){})}}catch(ln){if(ln&&tt&&typeof ln.stack==\"string\")return[ln.stack,tt.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var I=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,\"name\");I&&I.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var Y=w.DetermineComponentFrameRoot(),ie=Y[0],fe=Y[1];if(ie&&fe){var ge=ie.split(`\\n`),We=fe.split(`\\n`);for(Y=I=0;I<ge.length&&!ge[I].includes(\"DetermineComponentFrameRoot\");)I++;for(;Y<We.length&&!We[Y].includes(\"DetermineComponentFrameRoot\");)Y++;if(I===ge.length||Y===We.length)for(I=ge.length-1,Y=We.length-1;1<=I&&0<=Y&&ge[I]!==We[Y];)Y--;for(;1<=I&&0<=Y;I--,Y--)if(ge[I]!==We[Y]){if(I!==1||Y!==1)do if(I--,Y--,0>Y||ge[I]!==We[Y]){var Xe=`\\n`+ge[I].replace(\" at new \",\" at \");return s.displayName&&Xe.includes(\"<anonymous>\")&&(Xe=Xe.replace(\"<anonymous>\",s.displayName)),typeof s==\"function\"&&Yre.set(s,Xe),Xe}while(1<=I&&0<=Y);break}}}finally{Kre=!1,Je.H=b,of(),Error.prepareStackTrace=m}return ge=(ge=s?s.displayName||s.name:\"\")?_r(ge):\"\",typeof s==\"function\"&&Yre.set(s,ge),ge}function $l(s){var l=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,s=s.stack,Error.prepareStackTrace=l,s.startsWith(`Error: react-stack-top-frame\\n`)&&(s=s.slice(29)),l=s.indexOf(`\\n`),l!==-1&&(s=s.slice(l+1)),l=s.indexOf(\"react_stack_bottom_frame\"),l!==-1&&(l=s.lastIndexOf(`\\n`,l)),l!==-1)s=s.slice(0,l);else return\"\";return s}function kn(s){switch(s.tag){case 26:case 27:case 5:return _r(s.type);case 16:return _r(\"Lazy\");case 13:return _r(\"Suspense\");case 19:return _r(\"SuspenseList\");case 0:case 15:return Nr(s.type,!1);case 11:return Nr(s.type.render,!1);case 1:return Nr(s.type,!0);case 31:return _r(\"Activity\");default:return\"\"}}function bo(s){try{var l=\"\";do{l+=kn(s);var m=s._debugInfo;if(m)for(var b=m.length-1;0<=b;b--){var w=m[b];if(typeof w.name==\"string\"){var I=l,Y=w.env,ie=_r(w.name+(Y?\" [\"+Y+\"]\":\"\"));l=I+ie}}s=s.return}while(s);return l}catch(fe){return`\\nError generating stack: `+fe.message+`\\n`+fe.stack}}function cp(s){return(s=s?s.displayName||s.name:\"\")?_r(s):\"\"}function ao(){if(Zh===null)return null;var s=Zh._debugOwner;return s!=null?oe(s):null}function $o(){if(Zh===null)return\"\";var s=Zh;try{var l=\"\";switch(s.tag===6&&(s=s.return),s.tag){case 26:case 27:case 5:l+=_r(s.type);break;case 13:l+=_r(\"Suspense\");break;case 19:l+=_r(\"SuspenseList\");break;case 31:l+=_r(\"Activity\");break;case 30:case 0:case 15:case 1:s._debugOwner||l!==\"\"||(l+=cp(s.type));break;case 11:s._debugOwner||l!==\"\"||(l+=cp(s.type.render))}for(;s;)if(typeof s.tag==\"number\"){var m=s;s=m._debugOwner;var b=m._debugStack;s&&b&&(typeof b!=\"string\"&&(m._debugStack=b=$l(b)),b!==\"\"&&(l+=`\\n`+b))}else if(s.debugStack!=null){var w=s.debugStack;(s=s.owner)&&w&&(l+=`\\n`+$l(w))}else break;var I=l}catch(Y){I=`\\nError generating stack: `+Y.message+`\\n`+Y.stack}return I}function Yt(s,l,m,b,w,I,Y){var ie=Zh;jr(s);try{return s!==null&&s._debugTask?s._debugTask.run(l.bind(null,m,b,w,I,Y)):l(m,b,w,I,Y)}finally{jr(ie)}throw Error(\"runWithFiberInDEV should never be called in production. This is a bug in React.\")}function jr(s){Je.getCurrentStack=s===null?null:$o,Ib=!1,Zh=s}function Mn(s){switch(typeof s){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return s;case\"object\":return te(s),s;default:return\"\"}}function af(s){var l=s.type;return(s=s.nodeName)&&s.toLowerCase()===\"input\"&&(l===\"checkbox\"||l===\"radio\")}function Ro(s){var l=af(s)?\"checked\":\"value\",m=Object.getOwnPropertyDescriptor(s.constructor.prototype,l);te(s[l]);var b=\"\"+s[l];if(!s.hasOwnProperty(l)&&typeof m<\"u\"&&typeof m.get==\"function\"&&typeof m.set==\"function\"){var w=m.get,I=m.set;return Object.defineProperty(s,l,{configurable:!0,get:function(){return w.call(this)},set:function(Y){te(Y),b=\"\"+Y,I.call(this,Y)}}),Object.defineProperty(s,l,{enumerable:m.enumerable}),{getValue:function(){return b},setValue:function(Y){te(Y),b=\"\"+Y},stopTracking:function(){s._valueTracker=null,delete s[l]}}}}function Yr(s){s._valueTracker||(s._valueTracker=Ro(s))}function Vs(s){if(!s)return!1;var l=s._valueTracker;if(!l)return!0;var m=l.getValue(),b=\"\";return s&&(b=af(s)?s.checked?\"true\":\"false\":s.value),s=b,s!==m?(l.setValue(s),!0):!1}function ol(s){if(s=s||(typeof document<\"u\"?document:void 0),typeof s>\"u\")return null;try{return s.activeElement||s.body}catch{return s.body}}function xi(s){return s.replace(Upt,function(l){return\"\\\\\\\\\"+l.charCodeAt(0).toString(16)+\" \"})}function sf(s,l){l.checked===void 0||l.defaultChecked===void 0||jxe||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",ao()||\"A component\",l.type),jxe=!0),l.value===void 0||l.defaultValue===void 0||zxe||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",ao()||\"A component\",l.type),zxe=!0)}function Ua(s,l,m,b,w,I,Y,ie){s.name=\"\",Y!=null&&typeof Y!=\"function\"&&typeof Y!=\"symbol\"&&typeof Y!=\"boolean\"?(O(Y,\"type\"),s.type=Y):s.removeAttribute(\"type\"),l!=null?Y===\"number\"?(l===0&&s.value===\"\"||s.value!=l)&&(s.value=\"\"+Mn(l)):s.value!==\"\"+Mn(l)&&(s.value=\"\"+Mn(l)):Y!==\"submit\"&&Y!==\"reset\"||s.removeAttribute(\"value\"),l!=null?il(s,Y,Mn(l)):m!=null?il(s,Y,Mn(m)):b!=null&&s.removeAttribute(\"value\"),w==null&&I!=null&&(s.defaultChecked=!!I),w!=null&&(s.checked=w&&typeof w!=\"function\"&&typeof w!=\"symbol\"),ie!=null&&typeof ie!=\"function\"&&typeof ie!=\"symbol\"&&typeof ie!=\"boolean\"?(O(ie,\"name\"),s.name=\"\"+Mn(ie)):s.removeAttribute(\"name\")}function cf(s,l,m,b,w,I,Y,ie){if(I!=null&&typeof I!=\"function\"&&typeof I!=\"symbol\"&&typeof I!=\"boolean\"&&(O(I,\"type\"),s.type=I),l!=null||m!=null){if(!(I!==\"submit\"&&I!==\"reset\"||l!=null))return;m=m!=null?\"\"+Mn(m):\"\",l=l!=null?\"\"+Mn(l):m,ie||l===s.value||(s.value=l),s.defaultValue=l}b=b??w,b=typeof b!=\"function\"&&typeof b!=\"symbol\"&&!!b,s.checked=ie?s.checked:!!b,s.defaultChecked=!!b,Y!=null&&typeof Y!=\"function\"&&typeof Y!=\"symbol\"&&typeof Y!=\"boolean\"&&(O(Y,\"name\"),s.name=Y)}function il(s,l,m){l===\"number\"&&ol(s.ownerDocument)===s||s.defaultValue===\"\"+m||(s.defaultValue=\"\"+m)}function Xc(s,l){l.value==null&&(typeof l.children==\"object\"&&l.children!==null?Nre.Children.forEach(l.children,function(m){m==null||typeof m==\"string\"||typeof m==\"number\"||typeof m==\"bigint\"||Vxe||(Vxe=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\"))}):l.dangerouslySetInnerHTML==null||Gxe||(Gxe=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\"))),l.selected==null||Wxe||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),Wxe=!0)}function $c(){var s=ao();return s?`\\n\\nCheck the render method of \\\\``+s+\"`.\":\"\"}function hc(s,l,m,b){if(s=s.options,l){l={};for(var w=0;w<m.length;w++)l[\"$\"+m[w]]=!0;for(m=0;m<s.length;m++)w=l.hasOwnProperty(\"$\"+s[m].value),s[m].selected!==w&&(s[m].selected=w),w&&b&&(s[m].defaultSelected=!0)}else{for(m=\"\"+Mn(m),l=null,w=0;w<s.length;w++){if(s[w].value===m){s[w].selected=!0,b&&(s[w].defaultSelected=!0);return}l!==null||s[w].disabled||(l=s[w])}l!==null&&(l.selected=!0)}}function ed(s,l){for(s=0;s<Kxe.length;s++){var m=Kxe[s];if(l[m]!=null){var b=Al(l[m]);l.multiple&&!b?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s\",m,$c()):!l.multiple&&b&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s\",m,$c())}}l.value===void 0||l.defaultValue===void 0||qxe||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),qxe=!0)}function eu(s,l){l.value===void 0||l.defaultValue===void 0||Yxe||(console.error(\"%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\",ao()||\"A component\"),Yxe=!0),l.children!=null&&l.value==null&&console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\")}function td(s,l,m){if(l!=null&&(l=\"\"+Mn(l),l!==s.value&&(s.value=l),m==null)){s.defaultValue!==l&&(s.defaultValue=l);return}s.defaultValue=m!=null?\"\"+Mn(m):\"\"}function up(s,l,m,b){if(l==null){if(b!=null){if(m!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(Al(b)){if(1<b.length)throw Error(\"<textarea> can only have at most one child.\");b=b[0]}m=b}m==null&&(m=\"\"),l=m}m=Mn(l),s.defaultValue=m,b=s.textContent,b===m&&b!==\"\"&&b!==null&&(s.value=b)}function U1(s,l){return s.serverProps===void 0&&s.serverTail.length===0&&s.children.length===1&&3<s.distanceFromLeaf&&s.distanceFromLeaf>15-l?U1(s.children[0],l):s}function Pi(s){return\"  \"+\"  \".repeat(s)}function bu(s){return\"+ \"+\"  \".repeat(s)}function al(s){return\"- \"+\"  \".repeat(s)}function Bm(s){switch(s.tag){case 26:case 27:case 5:return s.type;case 16:return\"Lazy\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 0:case 15:return s=s.type,s.displayName||s.name||null;case 11:return s=s.type.render,s.displayName||s.name||null;case 1:return s=s.type,s.displayName||s.name||null;default:return null}}function Ch(s,l){return Zxe.test(s)?(s=JSON.stringify(s),s.length>l-2?8>l?\\'{\"...\"}\\':\"{\"+s.slice(0,l-7)+\\'...\"}\\':\"{\"+s+\"}\"):s.length>l?5>l?\\'{\"...\"}\\':s.slice(0,l-3)+\"...\":s}function lp(s,l,m){var b=120-2*m;if(l===null)return bu(m)+Ch(s,b)+`\\n`;if(typeof l==\"string\"){for(var w=0;w<l.length&&w<s.length&&l.charCodeAt(w)===s.charCodeAt(w);w++);return w>b-8&&10<w&&(s=\"...\"+s.slice(w-8),l=\"...\"+l.slice(w-8)),bu(m)+Ch(s,b)+`\\n`+al(m)+Ch(l,b)+`\\n`}return Pi(m)+Ch(s,b)+`\\n`}function k5(s){return Object.prototype.toString.call(s).replace(/^\\\\[object (.*)\\\\]$/,function(l,m){return m})}function Sw(s,l){switch(typeof s){case\"string\":return s=JSON.stringify(s),s.length>l?5>l?\\'\"...\"\\':s.slice(0,l-4)+\\'...\"\\':s;case\"object\":if(s===null)return\"null\";if(Al(s))return\"[...]\";if(s.$$typeof===lA)return(l=$(s.type))?\"<\"+l+\">\":\"<...>\";var m=k5(s);if(m===\"Object\"){m=\"\",l-=2;for(var b in s)if(s.hasOwnProperty(b)){var w=JSON.stringify(b);if(w!==\\'\"\\'+b+\\'\"\\'&&(b=w),l-=b.length-2,w=Sw(s[b],15>l?l:15),l-=w.length,0>l){m+=m===\"\"?\"...\":\", ...\";break}m+=(m===\"\"?\"\":\",\")+b+\":\"+w}return\"{\"+m+\"}\"}return m;case\"function\":return(l=s.displayName||s.name)?\"function \"+l:\"function\";default:return String(s)}}function vu(s,l){return typeof s!=\"string\"||Zxe.test(s)?\"{\"+Sw(s,l-2)+\"}\":s.length>l-2?5>l?\\'\"...\"\\':\\'\"\\'+s.slice(0,l-5)+\\'...\"\\':\\'\"\\'+s+\\'\"\\'}function dp(s,l,m){var b=120-m.length-s.length,w=[],I;for(I in l)if(l.hasOwnProperty(I)&&I!==\"children\"){var Y=vu(l[I],120-m.length-I.length-1);b-=I.length+Y.length+2,w.push(I+\"=\"+Y)}return w.length===0?m+\"<\"+s+`>\\n`:0<b?m+\"<\"+s+\" \"+w.join(\" \")+`>\\n`:m+\"<\"+s+`\\n`+m+\"  \"+w.join(`\\n`+m+\"  \")+`\\n`+m+`>\\n`}function F1(s,l,m){var b=\"\",w=Dr({},l),I;for(I in s)if(s.hasOwnProperty(I)){delete w[I];var Y=120-2*m-I.length-2,ie=Sw(s[I],Y);l.hasOwnProperty(I)?(Y=Sw(l[I],Y),b+=bu(m)+I+\": \"+ie+`\\n`,b+=al(m)+I+\": \"+Y+`\\n`):b+=bu(m)+I+\": \"+ie+`\\n`}for(var fe in w)w.hasOwnProperty(fe)&&(s=Sw(w[fe],120-2*m-fe.length-2),b+=al(m)+fe+\": \"+s+`\\n`);return b}function SE(s,l,m,b){var w=\"\",I=new Map;for(ge in m)m.hasOwnProperty(ge)&&I.set(ge.toLowerCase(),ge);if(I.size===1&&I.has(\"children\"))w+=dp(s,l,Pi(b));else{for(var Y in l)if(l.hasOwnProperty(Y)&&Y!==\"children\"){var ie=120-2*(b+1)-Y.length-1,fe=I.get(Y.toLowerCase());if(fe!==void 0){I.delete(Y.toLowerCase());var ge=l[Y];fe=m[fe];var We=vu(ge,ie);ie=vu(fe,ie),typeof ge==\"object\"&&ge!==null&&typeof fe==\"object\"&&fe!==null&&k5(ge)===\"Object\"&&k5(fe)===\"Object\"&&(2<Object.keys(ge).length||2<Object.keys(fe).length||-1<We.indexOf(\"...\")||-1<ie.indexOf(\"...\"))?w+=Pi(b+1)+Y+`={{\\n`+F1(ge,fe,b+2)+Pi(b+1)+`}}\\n`:(w+=bu(b+1)+Y+\"=\"+We+`\\n`,w+=al(b+1)+Y+\"=\"+ie+`\\n`)}else w+=Pi(b+1)+Y+\"=\"+vu(l[Y],ie)+`\\n`}I.forEach(function(Xe){if(Xe!==\"children\"){var je=120-2*(b+1)-Xe.length-1;w+=al(b+1)+Xe+\"=\"+vu(m[Xe],je)+`\\n`}}),w=w===\"\"?Pi(b)+\"<\"+s+`>\\n`:Pi(b)+\"<\"+s+`\\n`+w+Pi(b)+`>\\n`}return s=m.children,l=l.children,typeof s==\"string\"||typeof s==\"number\"||typeof s==\"bigint\"?(I=\"\",(typeof l==\"string\"||typeof l==\"number\"||typeof l==\"bigint\")&&(I=\"\"+l),w+=lp(I,\"\"+s,b+1)):(typeof l==\"string\"||typeof l==\"number\"||typeof l==\"bigint\")&&(w=s==null?w+lp(\"\"+l,null,b+1):w+lp(\"\"+l,void 0,b+1)),w}function zg(s,l){var m=Bm(s);if(m===null){for(m=\"\",s=s.child;s;)m+=zg(s,l),s=s.sibling;return m}return Pi(l)+\"<\"+m+`>\\n`}function Um(s,l){var m=U1(s,l);if(m!==s&&(s.children.length!==1||s.children[0]!==m))return Pi(l)+`...\\n`+Um(m,l+1);m=\"\";var b=s.fiber._debugInfo;if(b)for(var w=0;w<b.length;w++){var I=b[w].name;typeof I==\"string\"&&(m+=Pi(l)+\"<\"+I+`>\\n`,l++)}if(b=\"\",w=s.fiber.pendingProps,s.fiber.tag===6)b=lp(w,s.serverProps,l),l++;else if(I=Bm(s.fiber),I!==null)if(s.serverProps===void 0){b=l;var Y=120-2*b-I.length-2,ie=\"\";for(ge in w)if(w.hasOwnProperty(ge)&&ge!==\"children\"){var fe=vu(w[ge],15);if(Y-=ge.length+fe.length+2,0>Y){ie+=\" ...\";break}ie+=\" \"+ge+\"=\"+fe}b=Pi(b)+\"<\"+I+ie+`>\\n`,l++}else s.serverProps===null?(b=dp(I,w,bu(l)),l++):typeof s.serverProps==\"string\"?console.error(\"Should not have matched a non HostText fiber to a Text node. This is a bug in React.\"):(b=SE(I,w,s.serverProps,l),l++);var ge=\"\";for(w=s.fiber.child,I=0;w&&I<s.children.length;)Y=s.children[I],Y.fiber===w?(ge+=Um(Y,l),I++):ge+=zg(w,l),w=w.sibling;for(w&&0<s.children.length&&(ge+=Pi(l)+`...\\n`),w=s.serverTail,s.serverProps===null&&l--,s=0;s<w.length;s++)I=w[s],ge=typeof I==\"string\"?ge+(al(l)+Ch(I,120-2*l)+`\\n`):ge+dp(I.type,I.props,al(l));return m+b+ge}function H1(s){try{return`\\n\\n`+Um(s,0)}catch{return\"\"}}function Fm(s,l,m){for(var b=l,w=null,I=0;b;)b===s&&(I=0),w={fiber:b,children:w!==null?[w]:[],serverProps:b===l?m:b===s?null:void 0,serverTail:[],distanceFromLeaf:I},I++,b=b.return;return w!==null?H1(w).replaceAll(/^[+-]/gm,\">\"):\"\"}function Hm(s,l){var m=Dr({},s||Jxe),b={tag:l};return Qxe.indexOf(l)!==-1&&(m.aTagInScope=null,m.buttonTagInScope=null,m.nobrTagInScope=null),Hpt.indexOf(l)!==-1&&(m.pTagInButtonScope=null),Fpt.indexOf(l)!==-1&&l!==\"address\"&&l!==\"div\"&&l!==\"p\"&&(m.listItemTagAutoclosing=null,m.dlItemTagAutoclosing=null),m.current=b,l===\"form\"&&(m.formTag=b),l===\"a\"&&(m.aTagInScope=b),l===\"button\"&&(m.buttonTagInScope=b),l===\"nobr\"&&(m.nobrTagInScope=b),l===\"p\"&&(m.pTagInButtonScope=b),l===\"li\"&&(m.listItemTagAutoclosing=b),(l===\"dd\"||l===\"dt\")&&(m.dlItemTagAutoclosing=b),l===\"#document\"||l===\"html\"?m.containerTagInScope=null:m.containerTagInScope||(m.containerTagInScope=b),s!==null||l!==\"#document\"&&l!==\"html\"&&l!==\"body\"?m.implicitRootScope===!0&&(m.implicitRootScope=!1):m.implicitRootScope=!0,m}function zm(s,l,m){switch(l){case\"select\":return s===\"hr\"||s===\"option\"||s===\"optgroup\"||s===\"script\"||s===\"template\"||s===\"#text\";case\"optgroup\":return s===\"option\"||s===\"#text\";case\"option\":return s===\"#text\";case\"tr\":return s===\"th\"||s===\"td\"||s===\"style\"||s===\"script\"||s===\"template\";case\"tbody\":case\"thead\":case\"tfoot\":return s===\"tr\"||s===\"style\"||s===\"script\"||s===\"template\";case\"colgroup\":return s===\"col\"||s===\"template\";case\"table\":return s===\"caption\"||s===\"colgroup\"||s===\"tbody\"||s===\"tfoot\"||s===\"thead\"||s===\"style\"||s===\"script\"||s===\"template\";case\"head\":return s===\"base\"||s===\"basefont\"||s===\"bgsound\"||s===\"link\"||s===\"meta\"||s===\"title\"||s===\"noscript\"||s===\"noframes\"||s===\"style\"||s===\"script\"||s===\"template\";case\"html\":if(m)break;return s===\"head\"||s===\"body\"||s===\"frameset\";case\"frameset\":return s===\"frame\";case\"#document\":if(!m)return s===\"html\"}switch(s){case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return l!==\"h1\"&&l!==\"h2\"&&l!==\"h3\"&&l!==\"h4\"&&l!==\"h5\"&&l!==\"h6\";case\"rp\":case\"rt\":return zpt.indexOf(l)===-1;case\"caption\":case\"col\":case\"colgroup\":case\"frameset\":case\"frame\":case\"tbody\":case\"td\":case\"tfoot\":case\"th\":case\"thead\":case\"tr\":return l==null;case\"head\":return m||l===null;case\"html\":return m&&l===\"#document\"||l===null;case\"body\":return m&&(l===\"#document\"||l===\"html\")||l===null}return!0}function Gs(s,l){switch(s){case\"address\":case\"article\":case\"aside\":case\"blockquote\":case\"center\":case\"details\":case\"dialog\":case\"dir\":case\"div\":case\"dl\":case\"fieldset\":case\"figcaption\":case\"figure\":case\"footer\":case\"header\":case\"hgroup\":case\"main\":case\"menu\":case\"nav\":case\"ol\":case\"p\":case\"section\":case\"summary\":case\"ul\":case\"pre\":case\"listing\":case\"table\":case\"hr\":case\"xmp\":case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return l.pTagInButtonScope;case\"form\":return l.formTag||l.pTagInButtonScope;case\"li\":return l.listItemTagAutoclosing;case\"dd\":case\"dt\":return l.dlItemTagAutoclosing;case\"button\":return l.buttonTagInScope;case\"a\":return l.aTagInScope;case\"nobr\":return l.nobrTagInScope}return null}function fp(s,l){for(;s;){switch(s.tag){case 5:case 26:case 27:if(s.type===l)return s}s=s.return}return null}function Tw(s,l){l=l||Jxe;var m=l.current;if(l=(m=zm(s,m&&m.tag,l.implicitRootScope)?null:m)?null:Gs(s,l),l=m||l,!l)return!0;var b=l.tag;if(l=String(!!m)+\"|\"+s+\"|\"+b,Pz[l])return!1;Pz[l]=!0;var w=(l=Zh)?fp(l.return,b):null,I=l!==null&&w!==null?Fm(w,l,null):\"\",Y=\"<\"+s+\">\";return m?(m=\"\",b===\"table\"&&s===\"tr\"&&(m+=\" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.\"),console.error(`In HTML, %s cannot be a child of <%s>.%s\\nThis will cause a hydration error.%s`,Y,b,m,I)):console.error(`In HTML, %s cannot be a descendant of <%s>.\\nThis will cause a hydration error.%s`,Y,b,I),l&&(s=l.return,w===null||s===null||w===s&&s._debugOwner===l._debugOwner||Yt(w,function(){console.error(`<%s> cannot contain a nested %s.\\nSee this log for the ancestor stack trace.`,b,Y)})),!1}function pp(s,l,m){if(m||zm(\"#text\",l,!1))return!0;if(m=\"#text|\"+l,Pz[m])return!1;Pz[m]=!0;var b=(m=Zh)?fp(m,l):null;return m=m!==null&&b!==null?Fm(b,m,m.tag!==6?{children:null}:null):\"\",/\\\\S/.test(s)?console.error(`In HTML, text nodes cannot be a child of <%s>.\\nThis will cause a hydration error.%s`,l,m):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don\\'t have any extra whitespace between tags on each line of your source code.\\nThis will cause a hydration error.%s`,l,m),!1}function Rh(s,l){if(l){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=l;return}}s.textContent=l}function z1(s){return s.replace(Vpt,function(l,m){return m.toUpperCase()})}function jm(s,l,m){var b=l.indexOf(\"--\")===0;b||(-1<l.indexOf(\"-\")?v4.hasOwnProperty(l)&&v4[l]||(v4[l]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",l,z1(l.replace(Wpt,\"ms-\")))):jpt.test(l)?v4.hasOwnProperty(l)&&v4[l]||(v4[l]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",l,l.charAt(0).toUpperCase()+l.slice(1))):!eEe.test(m)||Qre.hasOwnProperty(m)&&Qre[m]||(Qre[m]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,l,m.replace(eEe,\"\"))),typeof m==\"number\"&&(isNaN(m)?tEe||(tEe=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",l)):isFinite(m)||nEe||(nEe=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",l)))),m==null||typeof m==\"boolean\"||m===\"\"?b?s.setProperty(l,\"\"):l===\"float\"?s.cssFloat=\"\":s[l]=\"\":b?s.setProperty(l,m):typeof m!=\"number\"||m===0||rEe.has(l)?l===\"float\"?s.cssFloat=m:(j(m,l),s[l]=(\"\"+m).trim()):s[l]=m+\"px\"}function as(s,l,m){if(l!=null&&typeof l!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");if(l&&Object.freeze(l),s=s.style,m!=null){if(l){var b={};if(m){for(var w in m)if(m.hasOwnProperty(w)&&!l.hasOwnProperty(w))for(var I=Zre[w]||[w],Y=0;Y<I.length;Y++)b[I[Y]]=w}for(var ie in l)if(l.hasOwnProperty(ie)&&(!m||m[ie]!==l[ie]))for(w=Zre[ie]||[ie],I=0;I<w.length;I++)b[w[I]]=ie;ie={};for(var fe in l)for(w=Zre[fe]||[fe],I=0;I<w.length;I++)ie[w[I]]=fe;fe={};for(var ge in b)if(w=b[ge],(I=ie[ge])&&w!==I&&(Y=w+\",\"+I,!fe[Y])){fe[Y]=!0,Y=console;var We=l[w];Y.error.call(Y,\"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don\\'t mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.\",We==null||typeof We==\"boolean\"||We===\"\"?\"Removing\":\"Updating\",w,I)}}for(var Xe in m)!m.hasOwnProperty(Xe)||l!=null&&l.hasOwnProperty(Xe)||(Xe.indexOf(\"--\")===0?s.setProperty(Xe,\"\"):Xe===\"float\"?s.cssFloat=\"\":s[Xe]=\"\");for(var je in l)ge=l[je],l.hasOwnProperty(je)&&m[je]!==ge&&jm(s,je,ge)}else for(b in l)l.hasOwnProperty(b)&&jm(s,b,l[b])}function nd(s){if(s.indexOf(\"-\")===-1)return!1;switch(s){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function mc(s){return Gpt.get(s)||s}function jg(s,l){if(i2.call(x4,l)&&x4[l])return!0;if(Kpt.test(l)){if(s=\"aria-\"+l.slice(4).toLowerCase(),s=oEe.hasOwnProperty(s)?s:null,s==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",l),x4[l]=!0;if(l!==s)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",l,s),x4[l]=!0}if(qpt.test(l)){if(s=l.toLowerCase(),s=oEe.hasOwnProperty(s)?s:null,s==null)return x4[l]=!0,!1;l!==s&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",l,s),x4[l]=!0)}return!0}function N5(s,l){var m=[],b;for(b in l)jg(s,b)||m.push(b);l=m.map(function(w){return\"`\"+w+\"`\"}).join(\", \"),m.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",l,s):1<m.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",l,s)}function P5(s,l,m,b){if(i2.call(xf,l)&&xf[l])return!0;var w=l.toLowerCase();if(w===\"onfocusin\"||w===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),xf[l]=!0;if(typeof m==\"function\"&&(s===\"form\"&&l===\"action\"||s===\"input\"&&l===\"formAction\"||s===\"button\"&&l===\"formAction\"))return!0;if(b!=null){if(s=b.possibleRegistrationNames,b.registrationNameDependencies.hasOwnProperty(l))return!0;if(b=s.hasOwnProperty(w)?s[w]:null,b!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",l,b),xf[l]=!0;if(aEe.test(l))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",l),xf[l]=!0}else if(aEe.test(l))return Ypt.test(l)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",l),xf[l]=!0;if(Zpt.test(l)||Qpt.test(l))return!0;if(w===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),xf[l]=!0;if(w===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),xf[l]=!0;if(w===\"is\"&&m!==null&&m!==void 0&&typeof m!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof m),xf[l]=!0;if(typeof m==\"number\"&&isNaN(m))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",l),xf[l]=!0;if(Dz.hasOwnProperty(w)){if(w=Dz[w],w!==l)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",l,w),xf[l]=!0}else if(l!==w)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",l,w),xf[l]=!0;switch(l){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof m){case\"boolean\":switch(l){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return w=l.toLowerCase().slice(0,5),w===\"data-\"||w===\"aria-\"?!0:(m?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',m,l,l,m,l):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',m,l,l,m,l,l,l),xf[l]=!0)}case\"function\":case\"symbol\":return xf[l]=!0,!1;case\"string\":if(m===\"false\"||m===\"true\"){switch(l){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",m,l,m===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',l,m),xf[l]=!0}}return!0}function tu(s,l,m){var b=[],w;for(w in l)P5(s,w,l[w],m)||b.push(w);l=b.map(function(I){return\"`\"+I+\"`\"}).join(\", \"),b.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",l,s):1<b.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",l,s)}function Wg(s){return Jpt.test(\"\"+s)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":s}function Wm(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}function wu(s){var l=ue(s);if(l&&(s=l.stateNode)){var m=s[Np]||null;e:switch(s=l.stateNode,l.type){case\"input\":if(Ua(s,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),l=m.name,m.type===\"radio\"&&l!=null){for(m=s;m.parentNode;)m=m.parentNode;for(O(l,\"name\"),m=m.querySelectorAll(\\'input[name=\"\\'+xi(\"\"+l)+\\'\"][type=\"radio\"]\\'),l=0;l<m.length;l++){var b=m[l];if(b!==s&&b.form===s.form){var w=b[Np]||null;if(!w)throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");Ua(b,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(l=0;l<m.length;l++)b=m[l],b.form===s.form&&Vs(b)}break e;case\"textarea\":td(s,m.value,m.defaultValue);break e;case\"select\":l=m.value,l!=null&&hc(s,!!m.multiple,l,!1)}}}function j1(s,l,m){if(Jre)return s(l,m);Jre=!0;try{var b=s(l);return b}finally{if(Jre=!1,(E4!==null||A4!==null)&&(xt(),E4&&(l=E4,s=A4,A4=E4=null,wu(l),s)))for(l=0;l<s.length;l++)wu(s[l])}}function Ih(s,l){var m=s.stateNode;if(m===null)return null;var b=m[Np]||null;if(b===null)return null;m=b[l];e:switch(l){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(b=!b.disabled)||(s=s.type,b=!(s===\"button\"||s===\"input\"||s===\"select\"||s===\"textarea\")),s=!b;break e;default:s=!1}if(s)return null;if(m&&typeof m!=\"function\")throw Error(\"Expected `\"+l+\"` listener to be a function, instead got a value of `\"+typeof m+\"` type.\");return m}function Vg(){if(Lz)return Lz;var s,l=$re,m=l.length,b,w=\"value\"in mA?mA.value:mA.textContent,I=w.length;for(s=0;s<m&&l[s]===w[s];s++);var Y=m-s;for(b=1;b<=Y&&l[m-b]===w[I-b];b++);return Lz=w.slice(s,1<b?1-b:void 0)}function Oh(s){var l=s.keyCode;return\"charCode\"in s?(s=s.charCode,s===0&&l===13&&(s=13)):s=l,s===10&&(s=13),32<=s||s===13?s:0}function Gg(){return!0}function sl(){return!1}function gc(s){function l(m,b,w,I,Y){this._reactName=m,this._targetInst=w,this.type=b,this.nativeEvent=I,this.target=Y,this.currentTarget=null;for(var ie in s)s.hasOwnProperty(ie)&&(m=s[ie],this[ie]=m?m(I):I[ie]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Gg:sl,this.isPropagationStopped=sl,this}return Dr(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!=\"unknown\"&&(m.returnValue=!1),this.isDefaultPrevented=Gg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!=\"unknown\"&&(m.cancelBubble=!0),this.isPropagationStopped=Gg)},persist:function(){},isPersistent:Gg}),l}function W1(s){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(s):(s=lht[s])?!!l[s]:!1}function Vm(){return W1}function qg(s,l){switch(s){case\"keyup\":return Eht.indexOf(l.keyCode)!==-1;case\"keydown\":return l.keyCode!==lEe;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Gm(s){return s=s.detail,typeof s==\"object\"&&\"data\"in s?s.data:null}function V1(s,l){switch(s){case\"compositionend\":return Gm(l);case\"keypress\":return l.which!==fEe?null:(hEe=!0,pEe);case\"textInput\":return s=l.data,s===pEe&&hEe?null:s;default:return null}}function G1(s,l){if(_4)return s===\"compositionend\"||!roe&&qg(s,l)?(s=Vg(),Lz=$re=mA=null,_4=!1,s):null;switch(s){case\"paste\":return null;case\"keypress\":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case\"compositionend\":return dEe&&l.locale!==\"ko\"?null:l.data;default:return null}}function Cw(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l===\"input\"?!!_ht[s.type]:l===\"textarea\"}function q1(s){if(!Ob)return!1;s=\"on\"+s;var l=s in document;return l||(l=document.createElement(\"div\"),l.setAttribute(s,\"return;\"),l=typeof l[s]==\"function\"),l}function TE(s,l,m,b){E4?A4?A4.push(b):A4=[b]:E4=b,l=Ga(l,\"onChange\"),0<l.length&&(m=new Bz(\"onChange\",\"change\",null,m,b),s.push({event:m,listeners:l}))}function qm(s){Vh(s,0)}function Km(s){var l=Ie(s);if(Vs(l))return s}function Rw(s,l){if(s===\"change\")return l}function K1(){KP&&(KP.detachEvent(\"onpropertychange\",Iw),YP=KP=null)}function Iw(s){if(s.propertyName===\"value\"&&Km(YP)){var l=[];TE(l,YP,s,Wm(s)),j1(qm,l)}}function M5(s,l,m){s===\"focusin\"?(K1(),KP=l,YP=m,KP.attachEvent(\"onpropertychange\",Iw)):s===\"focusout\"&&K1()}function GR(s){if(s===\"selectionchange\"||s===\"keyup\"||s===\"keydown\")return Km(YP)}function Kg(s,l){if(s===\"click\")return Km(l)}function CE(s,l){if(s===\"input\"||s===\"change\")return Km(l)}function Ym(s,l){return s===l&&(s!==0||1/s===1/l)||s!==s&&l!==l}function Yg(s,l){if(Ef(s,l))return!0;if(typeof s!=\"object\"||s===null||typeof l!=\"object\"||l===null)return!1;var m=Object.keys(s),b=Object.keys(l);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var w=m[b];if(!i2.call(l,w)||!Ef(s[w],l[w]))return!1}return!0}function Zm(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function D5(s,l){var m=Zm(s);s=0;for(var b;m;){if(m.nodeType===3){if(b=s+m.textContent.length,s<=l&&b>=l)return{node:m,offset:l-s};s=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Zm(m)}}function Y1(s,l){return s&&l?s===l?!0:s&&s.nodeType===3?!1:l&&l.nodeType===3?Y1(s,l.parentNode):\"contains\"in s?s.contains(l):s.compareDocumentPosition?!!(s.compareDocumentPosition(l)&16):!1:!1}function Z1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var l=ol(s.document);l instanceof s.HTMLIFrameElement;){try{var m=typeof l.contentWindow.location.href==\"string\"}catch{m=!1}if(m)s=l.contentWindow;else break;l=ol(s.document)}return l}function kh(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l&&(l===\"input\"&&(s.type===\"text\"||s.type===\"search\"||s.type===\"tel\"||s.type===\"url\"||s.type===\"password\")||l===\"textarea\"||s.contentEditable===\"true\")}function Qm(s,l,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ioe||S4==null||S4!==ol(b)||(b=S4,\"selectionStart\"in b&&kh(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),ZP&&Yg(ZP,b)||(ZP=b,b=Ga(ooe,\"onSelect\"),0<b.length&&(l=new Bz(\"onSelect\",\"select\",null,l,m),s.push({event:l,listeners:b}),l.target=S4)))}function uf(s,l){var m={};return m[s.toLowerCase()]=l.toLowerCase(),m[\"Webkit\"+s]=\"webkit\"+l,m[\"Moz\"+s]=\"moz\"+l,m}function lf(s){if(aoe[s])return aoe[s];if(!T4[s])return s;var l=T4[s],m;for(m in l)if(l.hasOwnProperty(m)&&m in gEe)return aoe[s]=l[m];return s}function qs(s,l){xEe.set(s,l),Mt(l,[s])}function cl(s,l){if(typeof s==\"object\"&&s!==null){var m=coe.get(s);return m!==void 0?m:(l={value:s,source:l,stack:bo(l)},coe.set(s,l),l)}return{value:s,source:l,stack:bo(l)}}function Zg(){for(var s=C4,l=uoe=C4=0;l<s;){var m=f0[l];f0[l++]=null;var b=f0[l];f0[l++]=null;var w=f0[l];f0[l++]=null;var I=f0[l];if(f0[l++]=null,b!==null&&w!==null){var Y=b.pending;Y===null?w.next=w:(w.next=Y.next,Y.next=w),b.pending=w}I!==0&&J1(m,w,I)}}function Jm(s,l,m,b){f0[C4++]=s,f0[C4++]=l,f0[C4++]=m,f0[C4++]=b,uoe|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function Q1(s,l,m,b){return Jm(s,l,m,b),ul(s)}function Es(s,l){return Jm(s,null,null,l),ul(s)}function J1(s,l,m){s.lanes|=m;var b=s.alternate;b!==null&&(b.lanes|=m);for(var w=!1,I=s.return;I!==null;)I.childLanes|=m,b=I.alternate,b!==null&&(b.childLanes|=m),I.tag===22&&(s=I.stateNode,s===null||s._visibility&Fz||(w=!0)),s=I,I=I.return;return s.tag===3?(I=s.stateNode,w&&l!==null&&(w=31-wf(m),s=I.hiddenUpdates,b=s[w],b===null?s[w]=[l]:b.push(l),l.lane=m|536870912),I):null}function ul(s){if(y9>Kht)throw B3=y9=0,b9=Foe=null,Error(\"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\");B3>Yht&&(B3=0,b9=null,console.error(\"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn\\'t have a dependency array, or one of the dependencies changes on every render.\")),s.alternate===null&&(s.flags&4098)!==0&&ud(s);for(var l=s,m=l.return;m!==null;)l.alternate===null&&(l.flags&4098)!==0&&ud(s),l=m,m=l.return;return l.tag===3?l.stateNode:null}function ll(s){if(p0===null)return s;var l=p0(s);return l===void 0?s:l.current}function RE(s){if(p0===null)return s;var l=p0(s);return l===void 0?s!=null&&typeof s.render==\"function\"&&(l=ll(s.render),s.render!==l)?(l={$$typeof:UP,render:l},s.displayName!==void 0&&(l.displayName=s.displayName),l):s:l.current}function Ow(s,l){if(p0===null)return!1;var m=s.elementType;l=l.type;var b=!1,w=typeof l==\"object\"&&l!==null?l.$$typeof:null;switch(s.tag){case 1:typeof l==\"function\"&&(b=!0);break;case 0:(typeof l==\"function\"||w===Kh)&&(b=!0);break;case 11:(w===UP||w===Kh)&&(b=!0);break;case 14:case 15:(w===Rz||w===Kh)&&(b=!0);break;default:return!1}return!!(b&&(s=p0(m),s!==void 0&&s===p0(l)))}function da(s){p0!==null&&typeof WeakSet==\"function\"&&(R4===null&&(R4=new WeakSet),R4.add(s))}function Io(s,l,m){var b=s.alternate,w=s.child,I=s.sibling,Y=s.tag,ie=s.type,fe=null;switch(Y){case 0:case 15:case 1:fe=ie;break;case 11:fe=ie.render}if(p0===null)throw Error(\"Expected resolveFamily to be set during hot reload.\");var ge=!1;ie=!1,fe!==null&&(fe=p0(fe),fe!==void 0&&(m.has(fe)?ie=!0:l.has(fe)&&(Y===1?ie=!0:ge=!0))),R4!==null&&(R4.has(s)||b!==null&&R4.has(b))&&(ie=!0),ie&&(s._debugNeedsRemount=!0),(ie||ge)&&(b=Es(s,2),b!==null&&He(b,s,2)),w===null||ie||Io(w,l,m),I!==null&&Io(I,l,m)}function PP(s,l,m,b){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,AEe||typeof Object.preventExtensions!=\"function\"||Object.preventExtensions(this)}function kw(s){return s=s.prototype,!(!s||!s.isReactComponent)}function yc(s,l){var m=s.alternate;switch(m===null?(m=g(s.tag,l,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m._debugOwner=s._debugOwner,m._debugStack=s._debugStack,m._debugTask=s._debugTask,m._debugHookTypes=s._debugHookTypes,m.alternate=s,s.alternate=m):(m.pendingProps=l,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null,m.actualDuration=-0,m.actualStartTime=-1.1),m.flags=s.flags&65011712,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,l=s.dependencies,m.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext,_debugThenableState:l._debugThenableState},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m.refCleanup=s.refCleanup,m.selfBaseDuration=s.selfBaseDuration,m.treeBaseDuration=s.treeBaseDuration,m._debugInfo=s._debugInfo,m._debugNeedsRemount=s._debugNeedsRemount,m.tag){case 0:case 15:m.type=ll(s.type);break;case 1:m.type=ll(s.type);break;case 11:m.type=RE(s.type)}return m}function L5(s,l){s.flags&=65011714;var m=s.alternate;return m===null?(s.childLanes=0,s.lanes=l,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null,s.selfBaseDuration=0,s.treeBaseDuration=0):(s.childLanes=m.childLanes,s.lanes=m.lanes,s.child=m.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=m.memoizedProps,s.memoizedState=m.memoizedState,s.updateQueue=m.updateQueue,s.type=m.type,l=m.dependencies,s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext,_debugThenableState:l._debugThenableState},s.selfBaseDuration=m.selfBaseDuration,s.treeBaseDuration=m.treeBaseDuration),s}function IE(s,l,m,b,w,I){var Y=0,ie=s;if(typeof s==\"function\")kw(s)&&(Y=1),ie=ll(ie);else if(typeof s==\"string\")Y=F(),Y=Ez(s,m,Y)?26:s===\"html\"||s===\"head\"||s===\"body\"?27:5;else e:switch(s){case Bre:return l=g(31,m,l,w),l.elementType=Bre,l.lanes=I,l;case g4:return Nh(m.children,w,I,l);case Cz:Y=8,w|=wd,w|=Cy;break;case Pre:return s=m,b=w,typeof s.id!=\"string\"&&console.error(\\'Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.\\',typeof s.id),l=g(12,s,l,b|_l),l.elementType=Pre,l.lanes=I,l.stateNode={effectDuration:0,passiveEffectDuration:0},l;case Dre:return l=g(13,m,l,w),l.elementType=Dre,l.lanes=I,l;case Lre:return l=g(19,m,l,w),l.elementType=Lre,l.lanes=I,l;default:if(typeof s==\"object\"&&s!==null)switch(s.$$typeof){case xpt:case Sb:Y=10;break e;case Mre:Y=9;break e;case UP:Y=11,ie=RE(ie);break e;case Rz:Y=14;break e;case Kh:Y=16,ie=null;break e}ie=\"\",(s===void 0||typeof s==\"object\"&&s!==null&&Object.keys(s).length===0)&&(ie+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),s===null?m=\"null\":Al(s)?m=\"array\":s!==void 0&&s.$$typeof===lA?(m=\"<\"+($(s.type)||\"Unknown\")+\" />\",ie=\" Did you accidentally export a JSX literal instead of a component?\"):m=typeof s,(Y=b?oe(b):null)&&(ie+=`\\n\\nCheck the render method of \\\\``+Y+\"`.\"),Y=29,m=Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+(m+\".\"+ie)),ie=null}return l=g(Y,m,l,w),l.elementType=s,l.type=ie,l.lanes=I,l._debugOwner=b,l}function X1(s,l,m){return l=IE(s.type,s.key,s.props,s._owner,l,m),l._debugOwner=s._owner,l._debugStack=s._debugStack,l._debugTask=s._debugTask,l}function Nh(s,l,m,b){return s=g(7,s,b,l),s.lanes=m,s}function Ph(s,l,m){return s=g(6,s,null,l),s.lanes=m,s}function B5(s,l,m){return l=g(4,s.children!==null?s.children:[],s.key,l),l.lanes=m,l.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},l}function Xm(s,l){zo(),I4[O4++]=zz,I4[O4++]=Hz,Hz=s,zz=l}function nu(s,l,m){zo(),h0[m0++]=s2,h0[m0++]=c2,h0[m0++]=S3,S3=s;var b=s2;s=c2;var w=32-wf(b)-1;b&=~(1<<w),m+=1;var I=32-wf(l)+w;if(30<I){var Y=w-w%5;I=(b&(1<<Y)-1).toString(32),b>>=Y,w-=Y,s2=1<<32-wf(l)+w|m<<w|b,c2=I+s}else s2=1<<I|m<<w|b,c2=s}function bc(s){zo(),s.return!==null&&(Xm(s,1),nu(s,1,0))}function As(s){for(;s===Hz;)Hz=I4[--O4],I4[O4]=null,zz=I4[--O4],I4[O4]=null;for(;s===S3;)S3=h0[--m0],h0[m0]=null,c2=h0[--m0],h0[m0]=null,s2=h0[--m0],h0[m0]=null}function zo(){Oo||console.error(\"Expected to be hydrating. This is a bug in React. Please file an issue.\")}function Zr(s,l){if(s.return===null){if(g0===null)g0={fiber:s,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:l};else{if(g0.fiber!==s)throw Error(\"Saw multiple hydration diff roots in a pass. This is a bug in React.\");g0.distanceFromLeaf>l&&(g0.distanceFromLeaf=l)}return g0}var m=Zr(s.return,l+1).children;return 0<m.length&&m[m.length-1].fiber===s?(m=m[m.length-1],m.distanceFromLeaf>l&&(m.distanceFromLeaf=l),m):(l={fiber:s,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:l},m.push(l),l)}function U5(s,l){u2||(s=Zr(s,0),s.serverProps=null,l!==null&&(l=iA(l),s.serverTail.push(l)))}function $m(s){var l=\"\",m=g0;throw m!==null&&(g0=null,l=H1(m)),rd(cl(Error(`Hydration failed because the server rendered HTML didn\\'t match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\nhttps://react.dev/link/hydration-mismatch`+l),s)),loe}function F5(s){var l=s.stateNode,m=s.type,b=s.memoizedProps;switch(l[vd]=s,l[Np]=b,Ji(m,b),m){case\"dialog\":Tn(\"cancel\",l),Tn(\"close\",l);break;case\"iframe\":case\"object\":case\"embed\":Tn(\"load\",l);break;case\"video\":case\"audio\":for(m=0;m<v9.length;m++)Tn(v9[m],l);break;case\"source\":Tn(\"error\",l);break;case\"img\":case\"image\":case\"link\":Tn(\"error\",l),Tn(\"load\",l);break;case\"details\":Tn(\"toggle\",l);break;case\"input\":Gt(\"input\",b),Tn(\"invalid\",l),sf(l,b),cf(l,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),Yr(l);break;case\"option\":Xc(l,b);break;case\"select\":Gt(\"select\",b),Tn(\"invalid\",l),ed(l,b);break;case\"textarea\":Gt(\"textarea\",b),Tn(\"invalid\",l),eu(l,b),up(l,b.value,b.defaultValue,b.children),Yr(l)}m=b.children,typeof m!=\"string\"&&typeof m!=\"number\"&&typeof m!=\"bigint\"||l.textContent===\"\"+m||b.suppressHydrationWarning===!0||xy(l.textContent,m)?(b.popover!=null&&(Tn(\"beforetoggle\",l),Tn(\"toggle\",l)),b.onScroll!=null&&Tn(\"scroll\",l),b.onScrollEnd!=null&&Tn(\"scrollend\",l),b.onClick!=null&&(l.onclick=Si),l=!0):l=!1,l||$m(s)}function qR(s){for(Af=s.return;Af;)switch(Af.tag){case 5:case 13:kb=!1;return;case 27:case 3:kb=!0;return;default:Af=Af.return}}function Nw(s){if(s!==Af)return!1;if(!Oo)return qR(s),Oo=!0,!1;var l=s.tag,m;if((m=l!==3&&l!==27)&&((m=l===5)&&(m=s.type,m=!(m!==\"form\"&&m!==\"button\")||Ey(s.type,s.memoizedProps)),m=!m),m&&Is){for(m=Is;m;){var b=Zr(s,0),w=iA(m);b.serverTail.push(w),m=w.type===\"Suspense\"?sA(m):vf(m.nextSibling)}$m(s)}if(qR(s),l===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");Is=sA(s)}else l===27?(l=Is,Ip(s.type)?(s=Joe,Joe=null,Is=s):Is=l):Is=Af?vf(s.stateNode.nextSibling):null;return!0}function $1(){Is=Af=null,u2=Oo=!1}function e0(){var s=T3;return s!==null&&(Tf===null?Tf=s:Tf.push.apply(Tf,s),T3=null),s}function rd(s){T3===null?T3=[s]:T3.push(s)}function H5(){var s=g0;if(s!==null){g0=null;for(var l=H1(s);0<s.children.length;)s=s.children[0];Yt(s.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn\\'t match the client properties. This won\\'t be patched up. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\n%s%s`,\"https://react.dev/link/hydration-mismatch\",l)})}}function Pw(){k4=jz=null,N4=!1}function Mh(s,l,m){K(doe,l._currentValue,s),l._currentValue=m,K(foe,l._currentRenderer,s),l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==CEe&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),l._currentRenderer=CEe}function hp(s,l){s._currentValue=doe.current;var m=foe.current;q(foe,l),s._currentRenderer=m,q(doe,l)}function Ks(s,l,m){for(;s!==null;){var b=s.alternate;if((s.childLanes&l)!==l?(s.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),s===m)break;s=s.return}s!==m&&console.error(\"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.\")}function OE(s,l,m,b){var w=s.child;for(w!==null&&(w.return=s);w!==null;){var I=w.dependencies;if(I!==null){var Y=w.child;I=I.firstContext;e:for(;I!==null;){var ie=I;I=w;for(var fe=0;fe<l.length;fe++)if(ie.context===l[fe]){I.lanes|=m,ie=I.alternate,ie!==null&&(ie.lanes|=m),Ks(I.return,m,s),b||(Y=null);break e}I=ie.next}}else if(w.tag===18){if(Y=w.return,Y===null)throw Error(\"We just came from a parent so we must have had a parent. This is a bug in React.\");Y.lanes|=m,I=Y.alternate,I!==null&&(I.lanes|=m),Ks(Y,m,s),Y=null}else Y=w.child;if(Y!==null)Y.return=w;else for(Y=w;Y!==null;){if(Y===s){Y=null;break}if(w=Y.sibling,w!==null){w.return=Y.return,Y=w;break}Y=Y.return}w=Y}}function Ys(s,l,m,b){s=null;for(var w=l,I=!1;w!==null;){if(!I){if((w.flags&524288)!==0)I=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var Y=w.alternate;if(Y===null)throw Error(\"Should have a current fiber. This is a bug in React.\");if(Y=Y.memoizedProps,Y!==null){var ie=w.type;Ef(w.pendingProps.value,Y.value)||(s!==null?s.push(ie):s=[ie])}}else if(w===Iz.current){if(Y=w.alternate,Y===null)throw Error(\"Should have a current fiber. This is a bug in React.\");Y.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(s!==null?s.push(A9):s=[A9])}w=w.return}s!==null&&OE(l,s,m,b),l.flags|=262144}function Mw(s){for(s=s.firstContext;s!==null;){if(!Ef(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Qg(s){jz=s,k4=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function vo(s){return N4&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),z5(jz,s)}function mp(s,l){return jz===null&&Qg(s),z5(s,l)}function z5(s,l){var m=l._currentValue;if(l={context:l,memoizedValue:m,next:null},k4===null){if(s===null)throw Error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\");k4=l,s.dependencies={lanes:0,firstContext:l,_debugThenableState:null},s.flags|=524288}else k4=k4.next=l;return m}function Jg(){return{controller:new Nht,data:new Map,refCount:0}}function dl(s){s.controller.signal.aborted&&console.warn(\"A cache instance was retained after it was already freed. This likely indicates a bug in React.\"),s.refCount++}function Dh(s){s.refCount--,0>s.refCount&&console.warn(\"A cache instance was released after it was already freed. This likely indicates a bug in React.\"),s.refCount===0&&Pht(Mht,function(){s.controller.abort()})}function ei(){var s=C3;return C3=0,s}function Zs(s){var l=C3;return C3=s,l}function Dw(s){var l=C3;return C3+=s,l}function kE(s){Pp=P4(),0>s.actualStartTime&&(s.actualStartTime=Pp)}function NE(s){if(0<=Pp){var l=P4()-Pp;s.actualDuration+=l,s.selfBaseDuration=l,Pp=-1}}function Xg(s){if(0<=Pp){var l=P4()-Pp;s.actualDuration+=l,Pp=-1}}function di(){if(0<=Pp){var s=P4()-Pp;Pp=-1,C3+=s}}function Ki(){Pp=P4()}function $g(s){for(var l=s.child;l;)s.actualDuration+=l.actualDuration,l=l.sibling}function Qs(s,l){if(QP===null){var m=QP=[];poe=0,R3=Ru(),M4={status:\"pending\",value:void 0,then:function(b){m.push(b)}}}return poe++,l.then(df,df),l}function df(){if(--poe===0&&QP!==null){M4!==null&&(M4.status=\"fulfilled\");var s=QP;QP=null,R3=0,M4=null;for(var l=0;l<s.length;l++)(0,s[l])()}}function Lw(s,l){var m=[],b={status:\"pending\",value:null,reason:null,then:function(w){m.push(w)}};return s.then(function(){b.status=\"fulfilled\",b.value=l;for(var w=0;w<m.length;w++)(0,m[w])(l)},function(w){for(b.status=\"rejected\",b.reason=w,w=0;w<m.length;w++)(0,m[w])(void 0)}),b}function t0(){var s=I3.current;return s!==null?s:$i.pooledCache}function ey(s,l){l===null?K(I3,I3.current,s):K(I3,l.pool,s)}function eb(){var s=t0();return s===null?null:{parent:du._currentValue,pool:s}}function Fa(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function xu(s){return s=s.status,s===\"fulfilled\"||s===\"rejected\"}function Bw(){}function j5(s,l,m){Je.actQueue!==null&&(Je.didUsePromise=!0);var b=s.thenables;switch(m=b[m],m===void 0?b.push(l):m!==l&&(s.didWarnAboutUncachedPromise||(s.didWarnAboutUncachedPromise=!0,console.error(\"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.\")),l.then(Bw,Bw),l=m),l.status){case\"fulfilled\":return l.value;case\"rejected\":throw s=l.reason,fl(s),s;default:if(typeof l.status==\"string\")l.then(Bw,Bw);else{if(s=$i,s!==null&&100<s.shellSuspendCounter)throw Error(\"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\");s=l,s.status=\"pending\",s.then(function(w){if(l.status===\"pending\"){var I=l;I.status=\"fulfilled\",I.value=w}},function(w){if(l.status===\"pending\"){var I=l;I.status=\"rejected\",I.reason=w}})}switch(l.status){case\"fulfilled\":return l.value;case\"rejected\":throw s=l.reason,fl(s),s}throw o9=l,Yz=!0,r9}}function vc(){if(o9===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var s=o9;return o9=null,Yz=!1,s}function fl(s){if(s===r9||s===Kz)throw Error(\"Hooks are not supported inside an async component. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\")}function wc(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tb(s,l){s=s.updateQueue,l.updateQueue===s&&(l.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function gp(s){return{lane:s,tag:NEe,payload:null,callback:null,next:null}}function Mi(s,l,m){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,goe===b&&!DEe){var w=J(s);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\\n\\nPlease update the following component: %s`,w),DEe=!0}return(si&Sf)!==Qh?(w=b.pending,w===null?l.next=l:(l.next=w.next,w.next=l),b.pending=l,l=ul(s),J1(s,null,m),l):(Jm(s,b,l,m),ul(s))}function Lh(s,l,m){if(l=l.updateQueue,l!==null&&(l=l.shared,(m&4194048)!==0)){var b=l.lanes;b&=s.pendingLanes,m|=b,l.lanes=m,Yn(s,m)}}function Uw(s,l){var m=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var w=null,I=null;if(m=m.firstBaseUpdate,m!==null){do{var Y={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};I===null?w=I=Y:I=I.next=Y,m=m.next}while(m!==null);I===null?w=I=l:I=I.next=l}else w=I=l;m={baseState:b.baseState,firstBaseUpdate:w,lastBaseUpdate:I,shared:b.shared,callbacks:b.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=l:s.next=l,m.lastBaseUpdate=l}function nb(){if(yoe){var s=M4;if(s!==null)throw s}}function ty(s,l,m,b){yoe=!1;var w=s.updateQueue;yA=!1,goe=w.shared;var I=w.firstBaseUpdate,Y=w.lastBaseUpdate,ie=w.shared.pending;if(ie!==null){w.shared.pending=null;var fe=ie,ge=fe.next;fe.next=null,Y===null?I=ge:Y.next=ge,Y=fe;var We=s.alternate;We!==null&&(We=We.updateQueue,ie=We.lastBaseUpdate,ie!==Y&&(ie===null?We.firstBaseUpdate=ge:ie.next=ge,We.lastBaseUpdate=fe))}if(I!==null){var Xe=w.baseState;Y=0,We=ge=fe=null,ie=I;do{var je=ie.lane&-536870913,tt=je!==ie.lane;if(tt?(Jr&je)===je:(b&je)===je){je!==0&&je===R3&&(yoe=!0),We!==null&&(We=We.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{je=s;var ln=ie,Vn=l,ea=m;switch(ln.tag){case PEe:if(ln=ln.payload,typeof ln==\"function\"){N4=!0;var lo=ln.call(ea,Xe,Vn);if(je.mode&wd){ae(!0);try{ln.call(ea,Xe,Vn)}finally{ae(!1)}}N4=!1,Xe=lo;break e}Xe=ln;break e;case moe:je.flags=je.flags&-65537|128;case NEe:if(lo=ln.payload,typeof lo==\"function\"){if(N4=!0,ln=lo.call(ea,Xe,Vn),je.mode&wd){ae(!0);try{lo.call(ea,Xe,Vn)}finally{ae(!1)}}N4=!1}else ln=lo;if(ln==null)break e;Xe=Dr({},Xe,ln);break e;case MEe:yA=!0}}je=ie.callback,je!==null&&(s.flags|=64,tt&&(s.flags|=8192),tt=w.callbacks,tt===null?w.callbacks=[je]:tt.push(je))}else tt={lane:je,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},We===null?(ge=We=tt,fe=Xe):We=We.next=tt,Y|=je;if(ie=ie.next,ie===null){if(ie=w.shared.pending,ie===null)break;tt=ie,ie=tt.next,tt.next=null,w.lastBaseUpdate=tt,w.shared.pending=null}}while(!0);We===null&&(fe=Xe),w.baseState=fe,w.firstBaseUpdate=ge,w.lastBaseUpdate=We,I===null&&(w.shared.lanes=0),xA|=Y,s.lanes=Y,s.memoizedState=Xe}goe=null}function PE(s,l){if(typeof s!=\"function\")throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \"+s);s.call(l)}function ny(s,l){var m=s.shared.hiddenCallbacks;if(m!==null)for(s.shared.hiddenCallbacks=null,s=0;s<m.length;s++)PE(m[s],l)}function ry(s,l){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;s<m.length;s++)PE(m[s],l)}function ru(s,l){var m=Mb;K(Zz,m,s),K(D4,l,s),Mb=m|l.baseLanes}function Bh(s){K(Zz,Mb,s),K(D4,D4.current,s)}function pl(s){Mb=Zz.current,q(D4,s),q(Zz,s)}function Wn(){var s=Ze;v0===null?v0=[s]:v0.push(s)}function vt(){var s=Ze;if(v0!==null&&(d2++,v0[d2]!==s)){var l=J(er);if(!LEe.has(l)&&(LEe.add(l),v0!==null)){for(var m=\"\",b=0;b<=d2;b++){var w=v0[b],I=b===d2?s:w;for(w=b+1+\". \"+w;30>w.length;)w+=\" \";w+=I+`\\n`,m+=w}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\\n\\n   Previous render            Next render\\n   ------------------------------------------------------\\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n`,l,m)}}}function n0(s){s==null||Al(s)||console.error(\"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.\",Ze,typeof s)}function rb(){var s=J(er);UEe.has(s)||(UEe.add(s),console.error(\"ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.\",s))}function Ei(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ff(s,l){if(a9)return!1;if(l===null)return console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",Ze),!1;s.length!==l.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,Ze,\"[\"+l.join(\", \")+\"]\",\"[\"+s.join(\", \")+\"]\");for(var m=0;m<l.length&&m<s.length;m++)if(!Ef(s[m],l[m]))return!1;return!0}function Fw(s,l,m,b,w,I){bA=I,er=l,v0=s!==null?s._debugHookTypes:null,d2=-1,a9=s!==null&&s.type!==l.type,(Object.prototype.toString.call(m)===\"[object AsyncFunction]\"||Object.prototype.toString.call(m)===\"[object AsyncGeneratorFunction]\")&&(I=J(er),boe.has(I)||(boe.add(I),console.error(\"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\",I===null?\"An unknown Component\":\"<\"+I+\">\"))),l.memoizedState=null,l.updateQueue=null,l.lanes=0,Je.H=s!==null&&s.memoizedState!==null?woe:v0!==null?FEe:voe,k3=I=(l.mode&wd)!==ma;var Y=xoe(m,b,w);if(k3=!1,B4&&(Y=ME(l,m,b,w)),I){ae(!0);try{Y=ME(l,m,b,w)}finally{ae(!1)}}return W5(s,l),Y}function W5(s,l){l._debugHookTypes=v0,l.dependencies===null?l2!==null&&(l.dependencies={lanes:0,firstContext:null,_debugThenableState:l2}):l.dependencies._debugThenableState=l2,Je.H=Xz;var m=Bi!==null&&Bi.next!==null;if(bA=0,v0=Ze=kc=Bi=er=null,d2=-1,s!==null&&(s.flags&65011712)!==(l.flags&65011712)&&console.error(\"Internal React error: Expected static flag was missing. Please notify the React team.\"),Qz=!1,i9=0,l2=null,m)throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");s===null||Ou||(s=s.dependencies,s!==null&&Mw(s)&&(Ou=!0)),Yz?(Yz=!1,s=!0):s=!1,s&&(l=J(l)||\"Unknown\",BEe.has(l)||boe.has(l)||(BEe.add(l),console.error(\"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.\")))}function ME(s,l,m,b){er=s;var w=0;do{if(B4&&(l2=null),i9=0,B4=!1,w>=Lht)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(w+=1,a9=!1,kc=Bi=null,s.updateQueue!=null){var I=s.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}d2=-1,Je.H=HEe,I=xoe(l,m,b)}while(B4);return I}function MP(){var s=Je.H,l=s.useState()[0];return l=typeof l.then==\"function\"?Yi(l):l,s=s.useState()[0],(Bi!==null?Bi.memoizedState:null)!==s&&(er.flags|=1024),l}function Js(){var s=Jz!==0;return Jz=0,s}function Eu(s,l,m){l.updateQueue=s.updateQueue,l.flags=(l.mode&Cy)!==ma?l.flags&-402655237:l.flags&-2053,s.lanes&=~m}function ou(s){if(Qz){for(s=s.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Qz=!1}bA=0,v0=kc=Bi=er=null,d2=-1,Ze=null,B4=!1,i9=Jz=0,l2=null}function xc(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kc===null?er.memoizedState=kc=s:kc=kc.next=s,kc}function so(){if(Bi===null){var s=er.alternate;s=s!==null?s.memoizedState:null}else s=Bi.next;var l=kc===null?er.memoizedState:kc.next;if(l!==null)kc=l,Bi=s;else{if(s===null)throw er.alternate===null?Error(\"Update hook called on initial render. This is likely a bug in React. Please file an issue.\"):Error(\"Rendered more hooks than during the previous render.\");Bi=s,s={memoizedState:Bi.memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},kc===null?er.memoizedState=kc=s:kc=kc.next=s}return kc}function DE(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yi(s){var l=i9;return i9+=1,l2===null&&(l2=Fa()),s=j5(l2,s,l),l=er,(kc===null?l.memoizedState:kc.next)===null&&(l=l.alternate,Je.H=l!==null&&l.memoizedState!==null?woe:voe),s}function od(s){if(s!==null&&typeof s==\"object\"){if(typeof s.then==\"function\")return Yi(s);if(s.$$typeof===Sb)return vo(s)}throw Error(\"An unsupported type was passed to use(): \"+String(s))}function r0(s){var l=null,m=er.updateQueue;if(m!==null&&(l=m.memoCache),l==null){var b=er.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(l={data:b.data.map(function(w){return w.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),m===null&&(m=DE(),er.updateQueue=m),m.memoCache=l,m=l.data[l.index],m===void 0||a9)for(m=l.data[l.index]=Array(s),b=0;b<s;b++)m[b]=Ept;else m.length!==s&&console.error(\"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.\",m.length,s);return l.index++,m}function id(s,l){return typeof l==\"function\"?l(s):l}function LE(s,l,m){var b=xc();if(m!==void 0){var w=m(l);if(k3){ae(!0);try{m(l)}finally{ae(!1)}}}else w=l;return b.memoizedState=b.baseState=w,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:w},b.queue=s,s=s.dispatch=a3.bind(null,er,s),[b.memoizedState,s]}function oy(s){var l=so();return BE(l,Bi,s)}function BE(s,l,m){var b=s.queue;if(b===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");b.lastRenderedReducer=m;var w=s.baseQueue,I=b.pending;if(I!==null){if(w!==null){var Y=w.next;w.next=I.next,I.next=Y}l.baseQueue!==w&&console.error(\"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.\"),l.baseQueue=w=I,b.pending=null}if(I=s.baseState,w===null)s.memoizedState=I;else{l=w.next;var ie=Y=null,fe=null,ge=l,We=!1;do{var Xe=ge.lane&-536870913;if(Xe!==ge.lane?(Jr&Xe)===Xe:(bA&Xe)===Xe){var je=ge.revertLane;if(je===0)fe!==null&&(fe=fe.next={lane:0,revertLane:0,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),Xe===R3&&(We=!0);else if((bA&je)===je){ge=ge.next,je===R3&&(We=!0);continue}else Xe={lane:0,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},fe===null?(ie=fe=Xe,Y=I):fe=fe.next=Xe,er.lanes|=je,xA|=je;Xe=ge.action,k3&&m(I,Xe),I=ge.hasEagerState?ge.eagerState:m(I,Xe)}else je={lane:Xe,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},fe===null?(ie=fe=je,Y=I):fe=fe.next=je,er.lanes|=Xe,xA|=Xe;ge=ge.next}while(ge!==null&&ge!==l);if(fe===null?Y=I:fe.next=ie,!Ef(I,s.memoizedState)&&(Ou=!0,We&&(m=M4,m!==null)))throw m;s.memoizedState=I,s.baseState=Y,s.baseQueue=fe,b.lastRenderedState=I}return w===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function ob(s){var l=so(),m=l.queue;if(m===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");m.lastRenderedReducer=s;var b=m.dispatch,w=m.pending,I=l.memoizedState;if(w!==null){m.pending=null;var Y=w=w.next;do I=s(I,Y.action),Y=Y.next;while(Y!==w);Ef(I,l.memoizedState)||(Ou=!0),l.memoizedState=I,l.baseQueue===null&&(l.baseState=I),m.lastRenderedState=I}return[I,b]}function UE(s,l,m){var b=er,w=xc();if(Oo){if(m===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");var I=m();L4||I===m()||(console.error(\"The result of getServerSnapshot should be cached to avoid an infinite loop\"),L4=!0)}else{if(I=l(),L4||(m=l(),Ef(I,m)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),L4=!0)),$i===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");(Jr&124)!==0||V5(b,l,I)}return w.memoizedState=I,m={value:I,getSnapshot:l},w.queue=m,VE(zw.bind(null,b,m,s),[s]),b.flags|=2048,ab(b0|fu,WE(),Hw.bind(null,b,m,I,l),null),I}function iy(s,l,m){var b=er,w=so(),I=Oo;if(I){if(m===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");m=m()}else if(m=l(),!L4){var Y=l();Ef(m,Y)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),L4=!0)}(Y=!Ef((Bi||w).memoizedState,m))&&(w.memoizedState=m,Ou=!0),w=w.queue;var ie=zw.bind(null,b,w,s);if(Au(2048,fu,ie,[s]),w.getSnapshot!==l||Y||kc!==null&&kc.memoizedState.tag&b0){if(b.flags|=2048,ab(b0|fu,WE(),Hw.bind(null,b,w,m,l),null),$i===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");I||(bA&124)!==0||V5(b,l,m)}return m}function V5(s,l,m){s.flags|=16384,s={getSnapshot:l,value:m},l=er.updateQueue,l===null?(l=DE(),er.updateQueue=l,l.stores=[s]):(m=l.stores,m===null?l.stores=[s]:m.push(s))}function Hw(s,l,m,b){l.value=m,l.getSnapshot=b,FE(l)&&KR(s)}function zw(s,l,m){return m(function(){FE(l)&&KR(s)})}function FE(s){var l=s.getSnapshot;s=s.value;try{var m=l();return!Ef(s,m)}catch{return!0}}function KR(s){var l=Es(s,2);l!==null&&He(l,s,2)}function G5(s){var l=xc();if(typeof s==\"function\"){var m=s;if(s=m(),k3){ae(!0);try{m()}finally{ae(!1)}}}return l.memoizedState=l.baseState=s,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:id,lastRenderedState:s},l}function q5(s){s=G5(s);var l=s.queue,m=QE.bind(null,er,l);return l.dispatch=m,[s.memoizedState,m]}function K5(s){var l=xc();l.memoizedState=l.baseState=s;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=m,l=jw.bind(null,er,!0,m),m.dispatch=l,[s,l]}function HE(s,l){var m=so();return YR(m,Bi,s,l)}function YR(s,l,m,b){return s.baseState=m,BE(s,Bi,typeof b==\"function\"?b:id)}function Y5(s,l){var m=so();return Bi!==null?YR(m,Bi,s,l):(m.baseState=s,[s,m.queue.dispatch])}function DP(s,l,m,b,w){if(ub(s))throw Error(\"Cannot update form state while rendering.\");if(s=l.action,s!==null){var I={payload:w,action:s,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(Y){I.listeners.push(Y)}};Je.T!==null?m(!0):I.isTransition=!1,b(I),m=l.pending,m===null?(I.next=l.pending=I,Z5(l,I)):(I.next=m.next,l.pending=m.next=I)}}function Z5(s,l){var m=l.action,b=l.payload,w=s.state;if(l.isTransition){var I=Je.T,Y={};Je.T=Y,Je.T._updatedFibers=new Set;try{var ie=m(w,b),fe=Je.S;fe!==null&&fe(Y,ie),ZR(s,l,ie)}catch(ge){Q5(s,l,ge)}finally{Je.T=I,I===null&&Y._updatedFibers&&(s=Y._updatedFibers.size,Y._updatedFibers.clear(),10<s&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}else try{Y=m(w,b),ZR(s,l,Y)}catch(ge){Q5(s,l,ge)}}function ZR(s,l,m){m!==null&&typeof m==\"object\"&&typeof m.then==\"function\"?(m.then(function(b){QR(s,l,b)},function(b){return Q5(s,l,b)}),l.isTransition||console.error(\"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.\")):QR(s,l,m)}function QR(s,l,m){l.status=\"fulfilled\",l.value=m,JR(l),s.state=m,l=s.pending,l!==null&&(m=l.next,m===l?s.pending=null:(m=m.next,l.next=m,Z5(s,m)))}function Q5(s,l,m){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do l.status=\"rejected\",l.reason=m,JR(l),l=l.next;while(l!==b)}s.action=null}function JR(s){s=s.listeners;for(var l=0;l<s.length;l++)(0,s[l])()}function XR(s,l){return l}function ib(s,l){if(Oo){var m=$i.formState;if(m!==null){e:{var b=er;if(Oo){if(Is){t:{for(var w=Is,I=kb;w.nodeType!==8;){if(!I){w=null;break t}if(w=vf(w.nextSibling),w===null){w=null;break t}}I=w.data,w=I===Koe||I===UAe?w:null}if(w){Is=vf(w.nextSibling),b=w.data===Koe;break e}}$m(b)}b=!1}b&&(l=m[0])}}return m=xc(),m.memoizedState=m.baseState=l,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XR,lastRenderedState:l},m.queue=b,m=QE.bind(null,er,b),b.dispatch=m,b=G5(!1),I=jw.bind(null,er,!1,b.queue),b=xc(),w={state:l,dispatch:null,action:s,pending:null},b.queue=w,m=DP.bind(null,er,w,I,m),w.dispatch=m,b.memoizedState=s,[l,m,!1]}function ay(s){var l=so();return $R(l,Bi,s)}function $R(s,l,m){if(l=BE(s,l,XR)[0],s=oy(id)[0],typeof l==\"object\"&&l!==null&&typeof l.then==\"function\")try{var b=Yi(l)}catch(Y){throw Y===r9?Kz:Y}else b=l;l=so();var w=l.queue,I=w.dispatch;return m!==l.memoizedState&&(er.flags|=2048,ab(b0|fu,WE(),zE.bind(null,w,m),null)),[b,I,s]}function zE(s,l){s.action=l}function jE(s){var l=so(),m=Bi;if(m!==null)return $R(l,m,s);so(),l=l.memoizedState,m=so();var b=m.queue.dispatch;return m.memoizedState=s,[l,b,!1]}function ab(s,l,m,b){return s={tag:s,create:m,deps:b,inst:l,next:null},l=er.updateQueue,l===null&&(l=DE(),er.updateQueue=l),m=l.lastEffect,m===null?l.lastEffect=s.next=s:(b=m.next,m.next=s,s.next=b,l.lastEffect=s),s}function WE(){return{destroy:void 0,resource:void 0}}function J5(s){var l=xc();return s={current:s},l.memoizedState=s}function sy(s,l,m,b){var w=xc();b=b===void 0?null:b,er.flags|=s,w.memoizedState=ab(b0|l,WE(),m,b)}function Au(s,l,m,b){var w=so();b=b===void 0?null:b;var I=w.memoizedState.inst;Bi!==null&&b!==null&&ff(b,Bi.memoizedState.deps)?w.memoizedState=ab(l,I,m,b):(er.flags|=s,w.memoizedState=ab(b0|l,I,m,b))}function VE(s,l){(er.mode&Cy)!==ma&&(er.mode&EEe)===ma?sy(276826112,fu,s,l):sy(8390656,fu,s,l)}function X5(s,l){var m=4194308;return(er.mode&Cy)!==ma&&(m|=134217728),sy(m,Sl,s,l)}function e4(s,l){if(typeof l==\"function\"){s=s();var m=l(s);return function(){typeof m==\"function\"?m():l(null)}}if(l!=null)return l.hasOwnProperty(\"current\")||console.error(\"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.\",\"an object with keys {\"+Object.keys(l).join(\", \")+\"}\"),s=s(),l.current=s,function(){l.current=null}}function $5(s,l,m){typeof l!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",l!==null?typeof l:\"null\"),m=m!=null?m.concat([s]):null;var b=4194308;(er.mode&Cy)!==ma&&(b|=134217728),sy(b,Sl,e4.bind(null,l,s),m)}function GE(s,l,m){typeof l!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",l!==null?typeof l:\"null\"),m=m!=null?m.concat([s]):null,Au(4,Sl,e4.bind(null,l,s),m)}function e3(s,l){return xc().memoizedState=[s,l===void 0?null:l],s}function qE(s,l){var m=so();l=l===void 0?null:l;var b=m.memoizedState;return l!==null&&ff(l,b[1])?b[0]:(m.memoizedState=[s,l],s)}function sb(s,l){var m=xc();l=l===void 0?null:l;var b=s();if(k3){ae(!0);try{s()}finally{ae(!1)}}return m.memoizedState=[b,l],b}function KE(s,l){var m=so();l=l===void 0?null:l;var b=m.memoizedState;if(l!==null&&ff(l,b[1]))return b[0];if(b=s(),k3){ae(!0);try{s()}finally{ae(!1)}}return m.memoizedState=[b,l],b}function t3(s,l){var m=xc();return n3(m,s,l)}function t4(s,l){var m=so();return r4(m,Bi.memoizedState,s,l)}function n4(s,l){var m=so();return Bi===null?n3(m,s,l):r4(m,Bi.memoizedState,s,l)}function n3(s,l,m){return m===void 0||(bA&1073741824)!==0?s.memoizedState=l:(s.memoizedState=m,s=Ce(),er.lanes|=s,xA|=s,m)}function r4(s,l,m,b){return Ef(m,l)?m:D4.current!==null?(s=n3(s,m,b),Ef(s,l)||(Ou=!0),s):(bA&42)===0?(Ou=!0,s.memoizedState=m):(s=Ce(),er.lanes|=s,xA|=s,l)}function o4(s,l,m,b,w){var I=ai.p;ai.p=I!==0&&I<Ty?I:Ty;var Y=Je.T,ie={};Je.T=ie,jw(s,!1,l,m),ie._updatedFibers=new Set;try{var fe=w(),ge=Je.S;if(ge!==null&&ge(ie,fe),fe!==null&&typeof fe==\"object\"&&typeof fe.then==\"function\"){var We=Lw(fe,b);uy(s,l,We,Ae(s))}else uy(s,l,b,Ae(s))}catch(Xe){uy(s,l,{then:function(){},status:\"rejected\",reason:Xe},Ae(s))}finally{ai.p=I,Je.T=Y,Y===null&&ie._updatedFibers&&(s=ie._updatedFibers.size,ie._updatedFibers.clear(),10<s&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}function cb(s,l,m,b){if(s.tag!==5)throw Error(\"Expected the form instance to be a HostComponent. This is a bug in React.\");var w=YE(s).queue;o4(s,w,l,j3,m===null?p:function(){return Uh(s),m(b)})}function YE(s){var l=s.memoizedState;if(l!==null)return l;l={memoizedState:j3,baseState:j3,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:id,lastRenderedState:j3},next:null};var m={};return l.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:id,lastRenderedState:m},next:null},s.memoizedState=l,s=s.alternate,s!==null&&(s.memoizedState=l),l}function Uh(s){Je.T===null&&console.error(\"requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.\");var l=YE(s).next.queue;uy(s,l,{},Ae(s))}function r3(){var s=G5(!1);return s=o4.bind(null,er,s.queue,!0,!1),xc().memoizedState=s,[!1,s]}function i4(){var s=oy(id)[0],l=so().memoizedState;return[typeof s==\"boolean\"?s:Yi(s),l]}function o3(){var s=ob(id)[0],l=so().memoizedState;return[typeof s==\"boolean\"?s:Yi(s),l]}function cy(){return vo(A9)}function i3(){var s=xc(),l=$i.identifierPrefix;if(Oo){var m=c2,b=s2;m=(b&~(1<<32-wf(b)-1)).toString(32)+m,l=\"\\\\xAB\"+l+\"R\"+m,m=Jz++,0<m&&(l+=\"H\"+m.toString(32)),l+=\"\\\\xBB\"}else m=Dht++,l=\"\\\\xAB\"+l+\"r\"+m.toString(32)+\"\\\\xBB\";return s.memoizedState=l}function ZE(){return xc().memoizedState=a4.bind(null,er)}function a4(s,l){for(var m=s.return;m!==null;){switch(m.tag){case 24:case 3:var b=Ae(m);s=gp(b);var w=Mi(m,s,b);w!==null&&(He(w,m,b),Lh(w,m,b)),m=Jg(),l!=null&&w!==null&&console.error(\"The seed argument is not enabled outside experimental channels.\"),s.payload={cache:m};return}m=m.return}}function a3(s,l,m){var b=arguments;typeof b[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),b=Ae(s);var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};ub(s)?s3(l,w):(w=Q1(s,l,w,b),w!==null&&(He(w,s,b),s4(w,l,b))),gt(s,b)}function QE(s,l,m){var b=arguments;typeof b[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),b=Ae(s),uy(s,l,m,b),gt(s,b)}function uy(s,l,m,b){var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(ub(s))s3(l,w);else{var I=s.alternate;if(s.lanes===0&&(I===null||I.lanes===0)&&(I=l.lastRenderedReducer,I!==null)){var Y=Je.H;Je.H=Iy;try{var ie=l.lastRenderedState,fe=I(ie,m);if(w.hasEagerState=!0,w.eagerState=fe,Ef(fe,ie))return Jm(s,l,w,0),$i===null&&Zg(),!1}catch{}finally{Je.H=Y}}if(m=Q1(s,l,w,b),m!==null)return He(m,s,b),s4(m,l,b),!0}return!1}function jw(s,l,m,b){if(Je.T===null&&R3===0&&console.error(\"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.\"),b={lane:2,revertLane:Ru(),action:b,hasEagerState:!1,eagerState:null,next:null},ub(s)){if(l)throw Error(\"Cannot update optimistic state while rendering.\");console.error(\"Cannot call startTransition while rendering.\")}else l=Q1(s,m,b,2),l!==null&&He(l,s,2);gt(s,2)}function ub(s){var l=s.alternate;return s===er||l!==null&&l===er}function s3(s,l){B4=Qz=!0;var m=s.pending;m===null?l.next=l:(l.next=m.next,m.next=l),s.pending=l}function s4(s,l,m){if((m&4194048)!==0){var b=l.lanes;b&=s.pendingLanes,m|=b,l.lanes=m,Yn(s,m)}}function Xs(s){var l=Rr;return s!=null&&(Rr=l===null?s:l.concat(s)),l}function JE(s,l,m){for(var b=Object.keys(s.props),w=0;w<b.length;w++){var I=b[w];if(I!==\"children\"&&I!==\"key\"){l===null&&(l=X1(s,m.mode,0),l._debugInfo=Rr,l.return=m),Yt(l,function(Y){console.error(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",Y)},I);break}}}function XE(s){var l=s9;return s9+=1,U4===null&&(U4=Fa()),j5(U4,s,l)}function Ww(s,l){l=l.props.ref,s.ref=l!==void 0?l:null}function hl(s,l){throw l.$$typeof===wpt?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:\\n- Multiple copies of the \"react\" package is used.\\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n- A compiler tries to \"inline\" JSX instead of using the runtime.`):(s=Object.prototype.toString.call(l),Error(\"Objects are not valid as a React child (found: \"+(s===\"[object Object]\"?\"object with keys {\"+Object.keys(l).join(\", \")+\"}\":s)+\"). If you meant to render a collection of children, use an array instead.\"))}function ly(s,l){var m=J(s)||\"Component\";tAe[m]||(tAe[m]=!0,l=l.displayName||l.name||\"Component\",s.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  root.render(%s)`,l,l,l):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  <%s>{%s}</%s>`,l,l,m,l,m))}function ml(s,l){var m=J(s)||\"Component\";nAe[m]||(nAe[m]=!0,l=String(l),s.tag===3?console.error(`Symbols are not valid as a React child.\\n  root.render(%s)`,l):console.error(`Symbols are not valid as a React child.\\n  <%s>%s</%s>`,m,l,m))}function c3(s){function l(_e,Se){if(s){var Pe=_e.deletions;Pe===null?(_e.deletions=[Se],_e.flags|=16):Pe.push(Se)}}function m(_e,Se){if(!s)return null;for(;Se!==null;)l(_e,Se),Se=Se.sibling;return null}function b(_e){for(var Se=new Map;_e!==null;)_e.key!==null?Se.set(_e.key,_e):Se.set(_e.index,_e),_e=_e.sibling;return Se}function w(_e,Se){return _e=yc(_e,Se),_e.index=0,_e.sibling=null,_e}function I(_e,Se,Pe){return _e.index=Pe,s?(Pe=_e.alternate,Pe!==null?(Pe=Pe.index,Pe<Se?(_e.flags|=67108866,Se):Pe):(_e.flags|=67108866,Se)):(_e.flags|=1048576,Se)}function Y(_e){return s&&_e.alternate===null&&(_e.flags|=67108866),_e}function ie(_e,Se,Pe,nt){return Se===null||Se.tag!==6?(Se=Ph(Pe,_e.mode,nt),Se.return=_e,Se._debugOwner=_e,Se._debugTask=_e._debugTask,Se._debugInfo=Rr,Se):(Se=w(Se,Pe),Se.return=_e,Se._debugInfo=Rr,Se)}function fe(_e,Se,Pe,nt){var zt=Pe.type;return zt===g4?(Se=We(_e,Se,Pe.props.children,nt,Pe.key),JE(Pe,Se,_e),Se):Se!==null&&(Se.elementType===zt||Ow(Se,Pe)||typeof zt==\"object\"&&zt!==null&&zt.$$typeof===Kh&&vA(zt)===Se.type)?(Se=w(Se,Pe.props),Ww(Se,Pe),Se.return=_e,Se._debugOwner=Pe._owner,Se._debugInfo=Rr,Se):(Se=X1(Pe,_e.mode,nt),Ww(Se,Pe),Se.return=_e,Se._debugInfo=Rr,Se)}function ge(_e,Se,Pe,nt){return Se===null||Se.tag!==4||Se.stateNode.containerInfo!==Pe.containerInfo||Se.stateNode.implementation!==Pe.implementation?(Se=B5(Pe,_e.mode,nt),Se.return=_e,Se._debugInfo=Rr,Se):(Se=w(Se,Pe.children||[]),Se.return=_e,Se._debugInfo=Rr,Se)}function We(_e,Se,Pe,nt,zt){return Se===null||Se.tag!==7?(Se=Nh(Pe,_e.mode,nt,zt),Se.return=_e,Se._debugOwner=_e,Se._debugTask=_e._debugTask,Se._debugInfo=Rr,Se):(Se=w(Se,Pe),Se.return=_e,Se._debugInfo=Rr,Se)}function Xe(_e,Se,Pe){if(typeof Se==\"string\"&&Se!==\"\"||typeof Se==\"number\"||typeof Se==\"bigint\")return Se=Ph(\"\"+Se,_e.mode,Pe),Se.return=_e,Se._debugOwner=_e,Se._debugTask=_e._debugTask,Se._debugInfo=Rr,Se;if(typeof Se==\"object\"&&Se!==null){switch(Se.$$typeof){case lA:return Pe=X1(Se,_e.mode,Pe),Ww(Pe,Se),Pe.return=_e,_e=Xs(Se._debugInfo),Pe._debugInfo=Rr,Rr=_e,Pe;case m4:return Se=B5(Se,_e.mode,Pe),Se.return=_e,Se._debugInfo=Rr,Se;case Kh:var nt=Xs(Se._debugInfo);return Se=vA(Se),_e=Xe(_e,Se,Pe),Rr=nt,_e}if(Al(Se)||Q(Se))return Pe=Nh(Se,_e.mode,Pe,null),Pe.return=_e,Pe._debugOwner=_e,Pe._debugTask=_e._debugTask,_e=Xs(Se._debugInfo),Pe._debugInfo=Rr,Rr=_e,Pe;if(typeof Se.then==\"function\")return nt=Xs(Se._debugInfo),_e=Xe(_e,XE(Se),Pe),Rr=nt,_e;if(Se.$$typeof===Sb)return Xe(_e,mp(_e,Se),Pe);hl(_e,Se)}return typeof Se==\"function\"&&ly(_e,Se),typeof Se==\"symbol\"&&ml(_e,Se),null}function je(_e,Se,Pe,nt){var zt=Se!==null?Se.key:null;if(typeof Pe==\"string\"&&Pe!==\"\"||typeof Pe==\"number\"||typeof Pe==\"bigint\")return zt!==null?null:ie(_e,Se,\"\"+Pe,nt);if(typeof Pe==\"object\"&&Pe!==null){switch(Pe.$$typeof){case lA:return Pe.key===zt?(zt=Xs(Pe._debugInfo),_e=fe(_e,Se,Pe,nt),Rr=zt,_e):null;case m4:return Pe.key===zt?ge(_e,Se,Pe,nt):null;case Kh:return zt=Xs(Pe._debugInfo),Pe=vA(Pe),_e=je(_e,Se,Pe,nt),Rr=zt,_e}if(Al(Pe)||Q(Pe))return zt!==null?null:(zt=Xs(Pe._debugInfo),_e=We(_e,Se,Pe,nt,null),Rr=zt,_e);if(typeof Pe.then==\"function\")return zt=Xs(Pe._debugInfo),_e=je(_e,Se,XE(Pe),nt),Rr=zt,_e;if(Pe.$$typeof===Sb)return je(_e,Se,mp(_e,Pe),nt);hl(_e,Pe)}return typeof Pe==\"function\"&&ly(_e,Pe),typeof Pe==\"symbol\"&&ml(_e,Pe),null}function tt(_e,Se,Pe,nt,zt){if(typeof nt==\"string\"&&nt!==\"\"||typeof nt==\"number\"||typeof nt==\"bigint\")return _e=_e.get(Pe)||null,ie(Se,_e,\"\"+nt,zt);if(typeof nt==\"object\"&&nt!==null){switch(nt.$$typeof){case lA:return Pe=_e.get(nt.key===null?Pe:nt.key)||null,_e=Xs(nt._debugInfo),Se=fe(Se,Pe,nt,zt),Rr=_e,Se;case m4:return _e=_e.get(nt.key===null?Pe:nt.key)||null,ge(Se,_e,nt,zt);case Kh:var cr=Xs(nt._debugInfo);return nt=vA(nt),Se=tt(_e,Se,Pe,nt,zt),Rr=cr,Se}if(Al(nt)||Q(nt))return Pe=_e.get(Pe)||null,_e=Xs(nt._debugInfo),Se=We(Se,Pe,nt,zt,null),Rr=_e,Se;if(typeof nt.then==\"function\")return cr=Xs(nt._debugInfo),Se=tt(_e,Se,Pe,XE(nt),zt),Rr=cr,Se;if(nt.$$typeof===Sb)return tt(_e,Se,Pe,mp(Se,nt),zt);hl(Se,nt)}return typeof nt==\"function\"&&ly(Se,nt),typeof nt==\"symbol\"&&ml(Se,nt),null}function ln(_e,Se,Pe,nt){if(typeof Pe!=\"object\"||Pe===null)return nt;switch(Pe.$$typeof){case lA:case m4:c(_e,Se,Pe);var zt=Pe.key;if(typeof zt!=\"string\")break;if(nt===null){nt=new Set,nt.add(zt);break}if(!nt.has(zt)){nt.add(zt);break}Yt(Se,function(){console.error(\"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \\\\u2014 the behavior is unsupported and could change in a future version.\",zt)});break;case Kh:Pe=vA(Pe),ln(_e,Se,Pe,nt)}return nt}function Vn(_e,Se,Pe,nt){for(var zt=null,cr=null,dn=null,ur=Se,yr=Se=0,ga=null;ur!==null&&yr<Pe.length;yr++){ur.index>yr?(ga=ur,ur=null):ga=ur.sibling;var oc=je(_e,ur,Pe[yr],nt);if(oc===null){ur===null&&(ur=ga);break}zt=ln(_e,oc,Pe[yr],zt),s&&ur&&oc.alternate===null&&l(_e,ur),Se=I(oc,Se,yr),dn===null?cr=oc:dn.sibling=oc,dn=oc,ur=ga}if(yr===Pe.length)return m(_e,ur),Oo&&Xm(_e,yr),cr;if(ur===null){for(;yr<Pe.length;yr++)ur=Xe(_e,Pe[yr],nt),ur!==null&&(zt=ln(_e,ur,Pe[yr],zt),Se=I(ur,Se,yr),dn===null?cr=ur:dn.sibling=ur,dn=ur);return Oo&&Xm(_e,yr),cr}for(ur=b(ur);yr<Pe.length;yr++)ga=tt(ur,_e,yr,Pe[yr],nt),ga!==null&&(zt=ln(_e,ga,Pe[yr],zt),s&&ga.alternate!==null&&ur.delete(ga.key===null?yr:ga.key),Se=I(ga,Se,yr),dn===null?cr=ga:dn.sibling=ga,dn=ga);return s&&ur.forEach(function(y2){return l(_e,y2)}),Oo&&Xm(_e,yr),cr}function ea(_e,Se,Pe,nt){if(Pe==null)throw Error(\"An iterable object provided no iterator.\");for(var zt=null,cr=null,dn=Se,ur=Se=0,yr=null,ga=null,oc=Pe.next();dn!==null&&!oc.done;ur++,oc=Pe.next()){dn.index>ur?(yr=dn,dn=null):yr=dn.sibling;var y2=je(_e,dn,oc.value,nt);if(y2===null){dn===null&&(dn=yr);break}ga=ln(_e,y2,oc.value,ga),s&&dn&&y2.alternate===null&&l(_e,dn),Se=I(y2,Se,ur),cr===null?zt=y2:cr.sibling=y2,cr=y2,dn=yr}if(oc.done)return m(_e,dn),Oo&&Xm(_e,ur),zt;if(dn===null){for(;!oc.done;ur++,oc=Pe.next())dn=Xe(_e,oc.value,nt),dn!==null&&(ga=ln(_e,dn,oc.value,ga),Se=I(dn,Se,ur),cr===null?zt=dn:cr.sibling=dn,cr=dn);return Oo&&Xm(_e,ur),zt}for(dn=b(dn);!oc.done;ur++,oc=Pe.next())yr=tt(dn,_e,ur,oc.value,nt),yr!==null&&(ga=ln(_e,yr,oc.value,ga),s&&yr.alternate!==null&&dn.delete(yr.key===null?ur:yr.key),Se=I(yr,Se,ur),cr===null?zt=yr:cr.sibling=yr,cr=yr);return s&&dn.forEach(function(cmt){return l(_e,cmt)}),Oo&&Xm(_e,ur),zt}function lo(_e,Se,Pe,nt){if(typeof Pe==\"object\"&&Pe!==null&&Pe.type===g4&&Pe.key===null&&(JE(Pe,null,_e),Pe=Pe.props.children),typeof Pe==\"object\"&&Pe!==null){switch(Pe.$$typeof){case lA:var zt=Xs(Pe._debugInfo);e:{for(var cr=Pe.key;Se!==null;){if(Se.key===cr){if(cr=Pe.type,cr===g4){if(Se.tag===7){m(_e,Se.sibling),nt=w(Se,Pe.props.children),nt.return=_e,nt._debugOwner=Pe._owner,nt._debugInfo=Rr,JE(Pe,nt,_e),_e=nt;break e}}else if(Se.elementType===cr||Ow(Se,Pe)||typeof cr==\"object\"&&cr!==null&&cr.$$typeof===Kh&&vA(cr)===Se.type){m(_e,Se.sibling),nt=w(Se,Pe.props),Ww(nt,Pe),nt.return=_e,nt._debugOwner=Pe._owner,nt._debugInfo=Rr,_e=nt;break e}m(_e,Se);break}else l(_e,Se);Se=Se.sibling}Pe.type===g4?(nt=Nh(Pe.props.children,_e.mode,nt,Pe.key),nt.return=_e,nt._debugOwner=_e,nt._debugTask=_e._debugTask,nt._debugInfo=Rr,JE(Pe,nt,_e),_e=nt):(nt=X1(Pe,_e.mode,nt),Ww(nt,Pe),nt.return=_e,nt._debugInfo=Rr,_e=nt)}return _e=Y(_e),Rr=zt,_e;case m4:e:{for(zt=Pe,Pe=zt.key;Se!==null;){if(Se.key===Pe)if(Se.tag===4&&Se.stateNode.containerInfo===zt.containerInfo&&Se.stateNode.implementation===zt.implementation){m(_e,Se.sibling),nt=w(Se,zt.children||[]),nt.return=_e,_e=nt;break e}else{m(_e,Se);break}else l(_e,Se);Se=Se.sibling}nt=B5(zt,_e.mode,nt),nt.return=_e,_e=nt}return Y(_e);case Kh:return zt=Xs(Pe._debugInfo),Pe=vA(Pe),_e=lo(_e,Se,Pe,nt),Rr=zt,_e}if(Al(Pe))return zt=Xs(Pe._debugInfo),_e=Vn(_e,Se,Pe,nt),Rr=zt,_e;if(Q(Pe)){if(zt=Xs(Pe._debugInfo),cr=Q(Pe),typeof cr!=\"function\")throw Error(\"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\");var dn=cr.call(Pe);return dn===Pe?(_e.tag!==0||Object.prototype.toString.call(_e.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(dn)!==\"[object Generator]\")&&($Ee||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),$Ee=!0):Pe.entries!==cr||Aoe||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Aoe=!0),_e=ea(_e,Se,dn,nt),Rr=zt,_e}if(typeof Pe.then==\"function\")return zt=Xs(Pe._debugInfo),_e=lo(_e,Se,XE(Pe),nt),Rr=zt,_e;if(Pe.$$typeof===Sb)return lo(_e,Se,mp(_e,Pe),nt);hl(_e,Pe)}return typeof Pe==\"string\"&&Pe!==\"\"||typeof Pe==\"number\"||typeof Pe==\"bigint\"?(zt=\"\"+Pe,Se!==null&&Se.tag===6?(m(_e,Se.sibling),nt=w(Se,zt),nt.return=_e,_e=nt):(m(_e,Se),nt=Ph(zt,_e.mode,nt),nt.return=_e,nt._debugOwner=_e,nt._debugTask=_e._debugTask,nt._debugInfo=Rr,_e=nt),Y(_e)):(typeof Pe==\"function\"&&ly(_e,Pe),typeof Pe==\"symbol\"&&ml(_e,Pe),m(_e,Se))}return function(_e,Se,Pe,nt){var zt=Rr;Rr=null;try{s9=0;var cr=lo(_e,Se,Pe,nt);return U4=null,cr}catch(ga){if(ga===r9||ga===Kz)throw ga;var dn=g(29,ga,null,_e.mode);dn.lanes=nt,dn.return=_e;var ur=dn._debugInfo=Rr;if(dn._debugOwner=_e._debugOwner,dn._debugTask=_e._debugTask,ur!=null){for(var yr=ur.length-1;0<=yr;yr--)if(typeof ur[yr].stack==\"string\"){dn._debugOwner=ur[yr],dn._debugTask=ur[yr].debugTask;break}}return dn}finally{Rr=zt}}}function Fh(s){var l=s.alternate;K(pu,pu.current&H4,s),K(w0,s,s),Pb===null&&(l===null||D4.current!==null||l.memoizedState!==null)&&(Pb=s)}function u3(s){if(s.tag===22){if(K(pu,pu.current,s),K(w0,s,s),Pb===null){var l=s.alternate;l!==null&&l.memoizedState!==null&&(Pb=s)}}else Hh(s)}function Hh(s){K(pu,pu.current,s),K(w0,w0.current,s)}function yp(s){q(w0,s),Pb===s&&(Pb=null),q(pu,s)}function Vw(s){for(var l=s;l!==null;){if(l.tag===13){var m=l.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data===h2||y3(m)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function $E(s){if(s!==null&&typeof s!=\"function\"){var l=String(s);hAe.has(l)||(hAe.add(l),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",s))}}function dy(s,l,m,b){var w=s.memoizedState,I=m(b,w);if(s.mode&wd){ae(!0);try{I=m(b,w)}finally{ae(!1)}}I===void 0&&(l=$(l)||\"Component\",lAe.has(l)||(lAe.add(l),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",l))),w=I==null?w:Dr({},w,I),s.memoizedState=w,s.lanes===0&&(s.updateQueue.baseState=w)}function Gw(s,l,m,b,w,I,Y){var ie=s.stateNode;if(typeof ie.shouldComponentUpdate==\"function\"){if(m=ie.shouldComponentUpdate(b,I,Y),s.mode&wd){ae(!0);try{m=ie.shouldComponentUpdate(b,I,Y)}finally{ae(!1)}}return m===void 0&&console.error(\"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.\",$(l)||\"Component\"),m}return l.prototype&&l.prototype.isPureReactComponent?!Yg(m,b)||!Yg(w,I):!0}function bp(s,l,m,b){var w=l.state;typeof l.componentWillReceiveProps==\"function\"&&l.componentWillReceiveProps(m,b),typeof l.UNSAFE_componentWillReceiveProps==\"function\"&&l.UNSAFE_componentWillReceiveProps(m,b),l.state!==w&&(s=J(s)||\"Component\",iAe.has(s)||(iAe.add(s),console.error(\"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",s)),_oe.enqueueReplaceState(l,l.state,null))}function o0(s,l){var m=l;if(\"ref\"in l){m={};for(var b in l)b!==\"ref\"&&(m[b]=l[b])}if(s=s.defaultProps){m===l&&(m=Dr({},m));for(var w in s)m[w]===void 0&&(m[w]=s[w])}return m}function l3(s){Soe(s),console.warn(`%s\\n\\n%s\\n`,z4?\"An error occurred in the <\"+z4+\"> component.\":\"An error occurred in one of your React components.\",`Consider adding an error boundary to your tree to customize error handling behavior.\\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function d3(s){var l=z4?\"The above error occurred in the <\"+z4+\"> component.\":\"The above error occurred in one of your React components.\",m=\"React will try to recreate this component tree from scratch using the error boundary you provided, \"+((Toe||\"Anonymous\")+\".\");if(typeof s==\"object\"&&s!==null&&typeof s.environmentName==\"string\"){var b=s.environmentName;s=[`%o\\n\\n%s\\n\\n%s\\n`,s,l,m].slice(0),typeof s[0]==\"string\"?s.splice(0,1,qAe+s[0],KAe,yj+b+yj,YAe):s.splice(0,0,qAe,KAe,yj+b+yj,YAe),s.unshift(console),b=amt.apply(console.error,s),b()}else console.error(`%o\\n\\n%s\\n\\n%s\\n`,s,l,m)}function qw(s){Soe(s)}function eA(s,l){try{z4=l.source?J(l.source):null,Toe=null;var m=l.value;if(Je.actQueue!==null)Je.thrownErrors.push(m);else{var b=s.onUncaughtError;b(m,{componentStack:l.stack})}}catch(w){setTimeout(function(){throw w})}}function f3(s,l,m){try{z4=m.source?J(m.source):null,Toe=J(l);var b=s.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function vp(s,l,m){return m=gp(m),m.tag=moe,m.payload={element:null},m.callback=function(){Yt(l.source,eA,s,l)},m}function i0(s){return s=gp(s),s.tag=moe,s}function Kw(s,l,m,b){var w=m.type.getDerivedStateFromError;if(typeof w==\"function\"){var I=b.value;s.payload=function(){return w(I)},s.callback=function(){da(m),Yt(b.source,f3,l,m,b)}}var Y=m.stateNode;Y!==null&&typeof Y.componentDidCatch==\"function\"&&(s.callback=function(){da(m),Yt(b.source,f3,l,m,b),typeof w!=\"function\"&&(AA===null?AA=new Set([this]):AA.add(this)),Bht(this,b),typeof w==\"function\"||(m.lanes&2)===0&&console.error(\"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.\",J(m)||\"Unknown\")})}function pf(s,l,m,b,w){if(m.flags|=32768,Sy&&Va(s,w),b!==null&&typeof b==\"object\"&&typeof b.then==\"function\"){if(l=m.alternate,l!==null&&Ys(l,m,w,!0),Oo&&(u2=!0),m=w0.current,m!==null){switch(m.tag){case 13:return Pb===null?fi():m.alternate===null&&Os===p2&&(Os=Ooe),m.flags&=-257,m.flags|=65536,m.lanes=w,b===hoe?m.flags|=16384:(l=m.updateQueue,l===null?m.updateQueue=new Set([b]):l.add(b),yl(s,b,w)),!1;case 22:return m.flags|=65536,b===hoe?m.flags|=16384:(l=m.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=l):(m=l.retryQueue,m===null?l.retryQueue=new Set([b]):m.add(b)),yl(s,b,w)),!1}throw Error(\"Unexpected Suspense handler tag (\"+m.tag+\"). This is a bug in React.\")}return yl(s,b,w),fi(),!1}if(Oo)return u2=!0,l=w0.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=w,b!==loe&&rd(cl(Error(\"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.\",{cause:b}),m))):(b!==loe&&rd(cl(Error(\"There was an error while hydrating but React was able to recover by instead client rendering the entire root.\",{cause:b}),m)),s=s.current.alternate,s.flags|=65536,w&=-w,s.lanes|=w,b=cl(b,m),w=vp(s.stateNode,b,w),Uw(s,w),Os!==N3&&(Os=G4)),!1;var I=cl(Error(\"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.\",{cause:b}),m);if(m9===null?m9=[I]:m9.push(I),Os!==N3&&(Os=G4),l===null)return!0;b=cl(b,m),m=l;do{switch(m.tag){case 3:return m.flags|=65536,s=w&-w,m.lanes|=s,s=vp(m.stateNode,b,s),Uw(m,s),!1;case 1:if(l=m.type,I=m.stateNode,(m.flags&128)===0&&(typeof l.getDerivedStateFromError==\"function\"||I!==null&&typeof I.componentDidCatch==\"function\"&&(AA===null||!AA.has(I))))return m.flags|=65536,w&=-w,m.lanes|=w,w=i0(w),Kw(w,s,m,b),Uw(m,w),!1}m=m.return}while(m!==null);return!1}function Ta(s,l,m,b){l.child=s===null?rAe(l,null,m,b):F4(l,s.child,m,b)}function lb(s,l,m,b,w){m=m.render;var I=l.ref;if(\"ref\"in b){var Y={};for(var ie in b)ie!==\"ref\"&&(Y[ie]=b[ie])}else Y=b;return Qg(l),ve(l),b=Fw(s,l,m,Y,I,w),ie=Js(),xe(),s!==null&&!Ou?(Eu(s,l,w),wp(s,l,w)):(Oo&&ie&&bc(l),l.flags|=1,Ta(s,l,b,w),l.child)}function Yw(s,l,m,b,w){if(s===null){var I=m.type;return typeof I==\"function\"&&!kw(I)&&I.defaultProps===void 0&&m.compare===null?(m=ll(I),l.tag=15,l.type=m,jh(l,I),Zw(s,l,m,b,w)):(s=IE(m.type,null,b,l,l.mode,w),s.ref=l.ref,s.return=l,l.child=s)}if(I=s.child,!my(s,w)){var Y=I.memoizedProps;if(m=m.compare,m=m!==null?m:Yg,m(Y,b)&&s.ref===l.ref)return wp(s,l,w)}return l.flags|=1,s=yc(I,b),s.ref=l.ref,s.return=l,l.child=s}function Zw(s,l,m,b,w){if(s!==null){var I=s.memoizedProps;if(Yg(I,b)&&s.ref===l.ref&&l.type===s.type)if(Ou=!1,l.pendingProps=b=I,my(s,w))(s.flags&131072)!==0&&(Ou=!0);else return l.lanes=s.lanes,wp(s,l,w)}return Ec(s,l,m,b,w)}function ti(s,l,m){var b=l.pendingProps,w=b.children,I=s!==null?s.memoizedState:null;if(b.mode===\"hidden\"){if((l.flags&128)!==0){if(b=I!==null?I.baseLanes|m:m,s!==null){for(w=l.child=s.child,I=0;w!==null;)I=I|w.lanes|w.childLanes,w=w.sibling;l.childLanes=I&~b}else l.childLanes=0,l.child=null;return db(s,l,b,m)}if((m&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},s!==null&&ey(l,I!==null?I.cachePool:null),I!==null?ru(l,I):Bh(l),u3(l);else return l.lanes=l.childLanes=536870912,db(s,l,I!==null?I.baseLanes|m:m,m)}else I!==null?(ey(l,I.cachePool),ru(l,I),Hh(l),l.memoizedState=null):(s!==null&&ey(l,null),Bh(l),Hh(l));return Ta(s,l,w,m),l.child}function db(s,l,m,b){var w=t0();return w=w===null?null:{parent:du._currentValue,pool:w},l.memoizedState={baseLanes:m,cachePool:w},s!==null&&ey(l,null),Bh(l),u3(l),s!==null&&Ys(s,l,b,!0),null}function fy(s,l){var m=l.ref;if(m===null)s!==null&&s.ref!==null&&(l.flags|=4194816);else{if(typeof m!=\"function\"&&typeof m!=\"object\")throw Error(\"Expected ref to be a function, an object returned by React.createRef(), or undefined/null.\");(s===null||s.ref!==m)&&(l.flags|=4194816)}}function Ec(s,l,m,b,w){if(m.prototype&&typeof m.prototype.render==\"function\"){var I=$(m)||\"Unknown\";gAe[I]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",I,I),gAe[I]=!0)}return l.mode&wd&&Ry.recordLegacyContextWarning(l,null),s===null&&(jh(l,l.type),m.contextTypes&&(I=$(m)||\"Unknown\",bAe[I]||(bAe[I]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",I)))),Qg(l),ve(l),m=Fw(s,l,m,b,void 0,w),b=Js(),xe(),s!==null&&!Ou?(Eu(s,l,w),wp(s,l,w)):(Oo&&b&&bc(l),l.flags|=1,Ta(s,l,m,w),l.child)}function zh(s,l,m,b,w,I){return Qg(l),ve(l),d2=-1,a9=s!==null&&s.type!==l.type,l.updateQueue=null,m=ME(l,b,m,w),W5(s,l),b=Js(),xe(),s!==null&&!Ou?(Eu(s,l,I),wp(s,l,I)):(Oo&&b&&bc(l),l.flags|=1,Ta(s,l,m,I),l.child)}function ad(s,l,m,b,w){switch(a(l)){case!1:var I=l.stateNode,Y=new l.type(l.memoizedProps,I.context).state;I.updater.enqueueSetState(I,Y,null);break;case!0:l.flags|=128,l.flags|=65536,I=Error(\"Simulated error coming from DevTools\");var ie=w&-w;if(l.lanes|=ie,Y=$i,Y===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");ie=i0(ie),Kw(ie,Y,l,cl(I,l)),Uw(l,ie)}if(Qg(l),l.stateNode===null){if(Y=gA,I=m.contextType,\"contextType\"in m&&I!==null&&(I===void 0||I.$$typeof!==Sb)&&!pAe.has(m)&&(pAe.add(m),ie=I===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof I!=\"object\"?\" However, it is set to a \"+typeof I+\".\":I.$$typeof===Mre?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(I).join(\", \")+\"}.\",console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",$(m)||\"Component\",ie)),typeof I==\"object\"&&I!==null&&(Y=vo(I)),I=new m(b,Y),l.mode&wd){ae(!0);try{I=new m(b,Y)}finally{ae(!1)}}if(Y=l.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=_oe,l.stateNode=I,I._reactInternals=l,I._reactInternalInstance=oAe,typeof m.getDerivedStateFromProps==\"function\"&&Y===null&&(Y=$(m)||\"Component\",aAe.has(Y)||(aAe.add(Y),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",Y,I.state===null?\"null\":\"undefined\",Y))),typeof m.getDerivedStateFromProps==\"function\"||typeof I.getSnapshotBeforeUpdate==\"function\"){var fe=ie=Y=null;if(typeof I.componentWillMount==\"function\"&&I.componentWillMount.__suppressDeprecationWarning!==!0?Y=\"componentWillMount\":typeof I.UNSAFE_componentWillMount==\"function\"&&(Y=\"UNSAFE_componentWillMount\"),typeof I.componentWillReceiveProps==\"function\"&&I.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ie=\"componentWillReceiveProps\":typeof I.UNSAFE_componentWillReceiveProps==\"function\"&&(ie=\"UNSAFE_componentWillReceiveProps\"),typeof I.componentWillUpdate==\"function\"&&I.componentWillUpdate.__suppressDeprecationWarning!==!0?fe=\"componentWillUpdate\":typeof I.UNSAFE_componentWillUpdate==\"function\"&&(fe=\"UNSAFE_componentWillUpdate\"),Y!==null||ie!==null||fe!==null){I=$(m)||\"Component\";var ge=typeof m.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";cAe.has(I)||(cAe.add(I),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,I,ge,Y!==null?`\\n  `+Y:\"\",ie!==null?`\\n  `+ie:\"\",fe!==null?`\\n  `+fe:\"\"))}}I=l.stateNode,Y=$(m)||\"Component\",I.render||(m.prototype&&typeof m.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",Y):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",Y)),!I.getInitialState||I.getInitialState.isReactClassApproved||I.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",Y),I.getDefaultProps&&!I.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",Y),I.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",Y),m.childContextTypes&&!fAe.has(m)&&(fAe.add(m),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",Y)),m.contextTypes&&!dAe.has(m)&&(dAe.add(m),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",Y)),typeof I.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",Y),m.prototype&&m.prototype.isPureReactComponent&&typeof I.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",$(m)||\"A pure component\"),typeof I.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",Y),typeof I.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",Y),typeof I.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",Y),typeof I.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",Y),ie=I.props!==b,I.props!==void 0&&ie&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",Y),I.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",Y,Y),typeof I.getSnapshotBeforeUpdate!=\"function\"||typeof I.componentDidUpdate==\"function\"||sAe.has(m)||(sAe.add(m),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",$(m))),typeof I.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",Y),typeof I.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",Y),typeof m.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",Y),(ie=I.state)&&(typeof ie!=\"object\"||Al(ie))&&console.error(\"%s.state: must be set to an object or null\",Y),typeof I.getChildContext==\"function\"&&typeof m.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",Y),I=l.stateNode,I.props=b,I.state=l.memoizedState,I.refs={},wc(l),Y=m.contextType,I.context=typeof Y==\"object\"&&Y!==null?vo(Y):gA,I.state===b&&(Y=$(m)||\"Component\",uAe.has(Y)||(uAe.add(Y),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",Y))),l.mode&wd&&Ry.recordLegacyContextWarning(l,I),Ry.recordUnsafeLifecycleWarnings(l,I),I.state=l.memoizedState,Y=m.getDerivedStateFromProps,typeof Y==\"function\"&&(dy(l,m,Y,b),I.state=l.memoizedState),typeof m.getDerivedStateFromProps==\"function\"||typeof I.getSnapshotBeforeUpdate==\"function\"||typeof I.UNSAFE_componentWillMount!=\"function\"&&typeof I.componentWillMount!=\"function\"||(Y=I.state,typeof I.componentWillMount==\"function\"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount==\"function\"&&I.UNSAFE_componentWillMount(),Y!==I.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",J(l)||\"Component\"),_oe.enqueueReplaceState(I,I.state,null)),ty(l,b,I,w),nb(),I.state=l.memoizedState),typeof I.componentDidMount==\"function\"&&(l.flags|=4194308),(l.mode&Cy)!==ma&&(l.flags|=134217728),I=!0}else if(s===null){I=l.stateNode;var We=l.memoizedProps;ie=o0(m,We),I.props=ie;var Xe=I.context;fe=m.contextType,Y=gA,typeof fe==\"object\"&&fe!==null&&(Y=vo(fe)),ge=m.getDerivedStateFromProps,fe=typeof ge==\"function\"||typeof I.getSnapshotBeforeUpdate==\"function\",We=l.pendingProps!==We,fe||typeof I.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof I.componentWillReceiveProps!=\"function\"||(We||Xe!==Y)&&bp(l,I,b,Y),yA=!1;var je=l.memoizedState;I.state=je,ty(l,b,I,w),nb(),Xe=l.memoizedState,We||je!==Xe||yA?(typeof ge==\"function\"&&(dy(l,m,ge,b),Xe=l.memoizedState),(ie=yA||Gw(l,m,ie,b,je,Xe,Y))?(fe||typeof I.UNSAFE_componentWillMount!=\"function\"&&typeof I.componentWillMount!=\"function\"||(typeof I.componentWillMount==\"function\"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount==\"function\"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount==\"function\"&&(l.flags|=4194308),(l.mode&Cy)!==ma&&(l.flags|=134217728)):(typeof I.componentDidMount==\"function\"&&(l.flags|=4194308),(l.mode&Cy)!==ma&&(l.flags|=134217728),l.memoizedProps=b,l.memoizedState=Xe),I.props=b,I.state=Xe,I.context=Y,I=ie):(typeof I.componentDidMount==\"function\"&&(l.flags|=4194308),(l.mode&Cy)!==ma&&(l.flags|=134217728),I=!1)}else{I=l.stateNode,tb(s,l),Y=l.memoizedProps,fe=o0(m,Y),I.props=fe,ge=l.pendingProps,je=I.context,Xe=m.contextType,ie=gA,typeof Xe==\"object\"&&Xe!==null&&(ie=vo(Xe)),We=m.getDerivedStateFromProps,(Xe=typeof We==\"function\"||typeof I.getSnapshotBeforeUpdate==\"function\")||typeof I.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof I.componentWillReceiveProps!=\"function\"||(Y!==ge||je!==ie)&&bp(l,I,b,ie),yA=!1,je=l.memoizedState,I.state=je,ty(l,b,I,w),nb();var tt=l.memoizedState;Y!==ge||je!==tt||yA||s!==null&&s.dependencies!==null&&Mw(s.dependencies)?(typeof We==\"function\"&&(dy(l,m,We,b),tt=l.memoizedState),(fe=yA||Gw(l,m,fe,b,je,tt,ie)||s!==null&&s.dependencies!==null&&Mw(s.dependencies))?(Xe||typeof I.UNSAFE_componentWillUpdate!=\"function\"&&typeof I.componentWillUpdate!=\"function\"||(typeof I.componentWillUpdate==\"function\"&&I.componentWillUpdate(b,tt,ie),typeof I.UNSAFE_componentWillUpdate==\"function\"&&I.UNSAFE_componentWillUpdate(b,tt,ie)),typeof I.componentDidUpdate==\"function\"&&(l.flags|=4),typeof I.getSnapshotBeforeUpdate==\"function\"&&(l.flags|=1024)):(typeof I.componentDidUpdate!=\"function\"||Y===s.memoizedProps&&je===s.memoizedState||(l.flags|=4),typeof I.getSnapshotBeforeUpdate!=\"function\"||Y===s.memoizedProps&&je===s.memoizedState||(l.flags|=1024),l.memoizedProps=b,l.memoizedState=tt),I.props=b,I.state=tt,I.context=ie,I=fe):(typeof I.componentDidUpdate!=\"function\"||Y===s.memoizedProps&&je===s.memoizedState||(l.flags|=4),typeof I.getSnapshotBeforeUpdate!=\"function\"||Y===s.memoizedProps&&je===s.memoizedState||(l.flags|=1024),I=!1)}if(ie=I,fy(s,l),Y=(l.flags&128)!==0,ie||Y){if(ie=l.stateNode,jr(l),Y&&typeof m.getDerivedStateFromError!=\"function\")m=null,Pp=-1;else{if(ve(l),m=WEe(ie),l.mode&wd){ae(!0);try{WEe(ie)}finally{ae(!1)}}xe()}l.flags|=1,s!==null&&Y?(l.child=F4(l,s.child,null,w),l.child=F4(l,null,m,w)):Ta(s,l,m,w),l.memoizedState=ie.state,s=l.child}else s=wp(s,l,w);return w=l.stateNode,I&&w.props!==b&&(j4||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",J(l)||\"a component\"),j4=!0),s}function fb(s,l,m,b){return $1(),l.flags|=256,Ta(s,l,m,b),l.child}function jh(s,l){l&&l.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,l.displayName||l.name||\"Component\"),typeof l.getDerivedStateFromProps==\"function\"&&(s=$(l)||\"Unknown\",vAe[s]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",s),vAe[s]=!0)),typeof l.contextType==\"object\"&&l.contextType!==null&&(l=$(l)||\"Unknown\",yAe[l]||(console.error(\"%s: Function components do not support contextType.\",l),yAe[l]=!0))}function hf(s){return{baseLanes:s,cachePool:eb()}}function py(s,l,m){return s=s!==null?s.childLanes&~m:0,l&&(s|=Xh),s}function sd(s,l,m){var b,w=l.pendingProps;i(l)&&(l.flags|=128);var I=!1,Y=(l.flags&128)!==0;if((b=Y)||(b=s!==null&&s.memoizedState===null?!1:(pu.current&c9)!==0),b&&(I=!0,l.flags&=-129),b=(l.flags&32)!==0,l.flags&=-33,s===null){if(Oo){if(I?Fh(l):Hh(l),Oo){var ie=Is,fe;if(!(fe=!ie)){e:{var ge=ie;for(fe=kb;ge.nodeType!==8;){if(!fe){fe=null;break e}if(ge=vf(ge.nextSibling),ge===null){fe=null;break e}}fe=ge}fe!==null?(zo(),l.memoizedState={dehydrated:fe,treeContext:S3!==null?{id:s2,overflow:c2}:null,retryLane:536870912,hydrationErrors:null},ge=g(18,null,null,ma),ge.stateNode=fe,ge.return=l,l.child=ge,Af=l,Is=null,fe=!0):fe=!1,fe=!fe}fe&&(U5(l,ie),$m(l))}if(ie=l.memoizedState,ie!==null&&(ie=ie.dehydrated,ie!==null))return y3(ie)?l.lanes=32:l.lanes=536870912,null;yp(l)}return ie=w.children,w=w.fallback,I?(Hh(l),I=l.mode,ie=pb({mode:\"hidden\",children:ie},I),w=Nh(w,I,m,null),ie.return=l,w.return=l,ie.sibling=w,l.child=ie,I=l.child,I.memoizedState=hf(m),I.childLanes=py(s,b,m),l.memoizedState=Roe,w):(Fh(l),a0(l,ie))}var We=s.memoizedState;if(We!==null&&(ie=We.dehydrated,ie!==null)){if(Y)l.flags&256?(Fh(l),l.flags&=-257,l=hy(s,l,m)):l.memoizedState!==null?(Hh(l),l.child=s.child,l.flags|=128,l=null):(Hh(l),I=w.fallback,ie=l.mode,w=pb({mode:\"visible\",children:w.children},ie),I=Nh(I,ie,m,null),I.flags|=2,w.return=l,I.return=l,w.sibling=I,l.child=w,F4(l,s.child,null,m),w=l.child,w.memoizedState=hf(m),w.childLanes=py(s,b,m),l.memoizedState=Roe,l=I);else if(Fh(l),Oo&&console.error(\"We should not be hydrating here. This is a bug in React. Please file a bug.\"),y3(ie)){if(b=ie.nextSibling&&ie.nextSibling.dataset,b){fe=b.dgst;var Xe=b.msg;ge=b.stck;var je=b.cstck}ie=Xe,b=fe,w=ge,fe=I=je,I=Error(ie||\"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.\"),I.stack=w||\"\",I.digest=b,b=fe===void 0?null:fe,w={value:I,source:null,stack:b},typeof b==\"string\"&&coe.set(I,w),rd(w),l=hy(s,l,m)}else if(Ou||Ys(s,l,m,!1),b=(m&s.childLanes)!==0,Ou||b){if(b=$i,b!==null&&(w=m&-m,w=(w&42)!==0?1:Fr(w),w=(w&(b.suspendedLanes|m))!==0?0:w,w!==0&&w!==We.retryLane))throw We.retryLane=w,Es(s,w),He(b,s,w),mAe;ie.data===h2||fi(),l=hy(s,l,m)}else ie.data===h2?(l.flags|=192,l.child=s.child,l=null):(s=We.treeContext,Is=vf(ie.nextSibling),Af=l,Oo=!0,T3=null,u2=!1,g0=null,kb=!1,s!==null&&(zo(),h0[m0++]=s2,h0[m0++]=c2,h0[m0++]=S3,s2=s.id,c2=s.overflow,S3=l),l=a0(l,w.children),l.flags|=4096);return l}return I?(Hh(l),I=w.fallback,ie=l.mode,fe=s.child,ge=fe.sibling,w=yc(fe,{mode:\"hidden\",children:w.children}),w.subtreeFlags=fe.subtreeFlags&65011712,ge!==null?I=yc(ge,I):(I=Nh(I,ie,m,null),I.flags|=2),I.return=l,w.return=l,w.sibling=I,l.child=w,w=I,I=l.child,ie=s.child.memoizedState,ie===null?ie=hf(m):(fe=ie.cachePool,fe!==null?(ge=du._currentValue,fe=fe.parent!==ge?{parent:ge,pool:ge}:fe):fe=eb(),ie={baseLanes:ie.baseLanes|m,cachePool:fe}),I.memoizedState=ie,I.childLanes=py(s,b,m),l.memoizedState=Roe,w):(Fh(l),m=s.child,s=m.sibling,m=yc(m,{mode:\"visible\",children:w.children}),m.return=l,m.sibling=null,s!==null&&(b=l.deletions,b===null?(l.deletions=[s],l.flags|=16):b.push(s)),l.child=m,l.memoizedState=null,m)}function a0(s,l){return l=pb({mode:\"visible\",children:l},s.mode),l.return=s,s.child=l}function pb(s,l){return s=g(22,s,null,l),s.lanes=0,s.stateNode={_visibility:Fz,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function hy(s,l,m){return F4(l,s.child,null,m),s=a0(l,l.pendingProps.children),s.flags|=2,l.memoizedState=null,s}function gl(s,l,m){s.lanes|=l;var b=s.alternate;b!==null&&(b.lanes|=l),Ks(s.return,l,m)}function p3(s,l){var m=Al(s);return s=!m&&typeof Q(s)==\"function\",m||s?(m=m?\"array\":\"iterable\",console.error(\"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>\",m,l,m),!1):!0}function s0(s,l,m,b,w){var I=s.memoizedState;I===null?s.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:w}:(I.isBackwards=l,I.rendering=null,I.renderingStartTime=0,I.last=b,I.tail=m,I.tailMode=w)}function tA(s,l,m){var b=l.pendingProps,w=b.revealOrder,I=b.tail;if(b=b.children,w!==void 0&&w!==\"forwards\"&&w!==\"backwards\"&&w!==\"together\"&&!wAe[w])if(wAe[w]=!0,typeof w==\"string\")switch(w.toLowerCase()){case\"together\":case\"forwards\":case\"backwards\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.\\',w,w.toLowerCase());break;case\"forward\":case\"backward\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.\\',w,w.toLowerCase());break;default:console.error(\\'\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?\\',w)}else console.error(\\'%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?\\',w);I===void 0||Coe[I]||(I!==\"collapsed\"&&I!==\"hidden\"?(Coe[I]=!0,console.error(\\'\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"collapsed\" or \"hidden\"?\\',I)):w!==\"forwards\"&&w!==\"backwards\"&&(Coe[I]=!0,console.error(\\'<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?\\',I)));e:if((w===\"forwards\"||w===\"backwards\")&&b!==void 0&&b!==null&&b!==!1)if(Al(b)){for(var Y=0;Y<b.length;Y++)if(!p3(b[Y],Y))break e}else if(Y=Q(b),typeof Y==\"function\"){if(Y=Y.call(b))for(var ie=Y.next(),fe=0;!ie.done;ie=Y.next()){if(!p3(ie.value,fe))break e;fe++}}else console.error(\\'A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?\\',w);if(Ta(s,l,b,m),b=pu.current,(b&c9)!==0)b=b&H4|c9,l.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=l.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&gl(s,m,l);else if(s.tag===19)gl(s,m,l);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=H4}switch(K(pu,b,l),w){case\"forwards\":for(m=l.child,w=null;m!==null;)s=m.alternate,s!==null&&Vw(s)===null&&(w=m),m=m.sibling;m=w,m===null?(w=l.child,l.child=null):(w=m.sibling,m.sibling=null),s0(l,!1,w,m,I);break;case\"backwards\":for(m=null,w=l.child,l.child=null;w!==null;){if(s=w.alternate,s!==null&&Vw(s)===null){l.child=w;break}s=w.sibling,w.sibling=m,m=w,w=s}s0(l,!0,m,null,I);break;case\"together\":s0(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function wp(s,l,m){if(s!==null&&(l.dependencies=s.dependencies),Pp=-1,xA|=l.lanes,(m&l.childLanes)===0)if(s!==null){if(Ys(s,l,m,!1),(m&l.childLanes)===0)return null}else return null;if(s!==null&&l.child!==s.child)throw Error(\"Resuming work not yet implemented.\");if(l.child!==null){for(s=l.child,m=yc(s,s.pendingProps),l.child=m,m.return=l;s.sibling!==null;)s=s.sibling,m=m.sibling=yc(s,s.pendingProps),m.return=l;m.sibling=null}return l.child}function my(s,l){return(s.lanes&l)!==0?!0:(s=s.dependencies,!!(s!==null&&Mw(s)))}function c4(s,l,m){switch(l.tag){case 3:T(l,l.stateNode.containerInfo),Mh(l,du,s.memoizedState.cache),$1();break;case 27:case 5:N(l);break;case 4:T(l,l.stateNode.containerInfo);break;case 10:Mh(l,l.type,l.memoizedProps.value);break;case 12:(m&l.childLanes)!==0&&(l.flags|=4),l.flags|=2048;var b=l.stateNode;b.effectDuration=-0,b.passiveEffectDuration=-0;break;case 13:if(b=l.memoizedState,b!==null)return b.dehydrated!==null?(Fh(l),l.flags|=128,null):(m&l.child.childLanes)!==0?sd(s,l,m):(Fh(l),s=wp(s,l,m),s!==null?s.sibling:null);Fh(l);break;case 19:var w=(s.flags&128)!==0;if(b=(m&l.childLanes)!==0,b||(Ys(s,l,m,!1),b=(m&l.childLanes)!==0),w){if(b)return tA(s,l,m);l.flags|=128}if(w=l.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),K(pu,pu.current,l),b)break;return null;case 22:case 23:return l.lanes=0,ti(s,l,m);case 24:Mh(l,du,s.memoizedState.cache)}return wp(s,l,m)}function nA(s,l,m){if(l._debugNeedsRemount&&s!==null){m=IE(l.type,l.key,l.pendingProps,l._debugOwner||null,l.mode,l.lanes),m._debugStack=l._debugStack,m._debugTask=l._debugTask;var b=l.return;if(b===null)throw Error(\"Cannot swap the root fiber.\");if(s.alternate=null,l.alternate=null,m.index=l.index,m.sibling=l.sibling,m.return=l.return,m.ref=l.ref,m._debugInfo=l._debugInfo,l===b.child)b.child=m;else{var w=b.child;if(w===null)throw Error(\"Expected parent to have a child.\");for(;w.sibling!==l;)if(w=w.sibling,w===null)throw Error(\"Expected to find the previous sibling.\");w.sibling=m}return l=b.deletions,l===null?(b.deletions=[s],b.flags|=16):l.push(s),m.flags|=2,m}if(s!==null)if(s.memoizedProps!==l.pendingProps||l.type!==s.type)Ou=!0;else{if(!my(s,m)&&(l.flags&128)===0)return Ou=!1,c4(s,l,m);Ou=(s.flags&131072)!==0}else Ou=!1,(b=Oo)&&(zo(),b=(l.flags&1048576)!==0),b&&(b=l.index,zo(),nu(l,zz,b));switch(l.lanes=0,l.tag){case 16:e:if(b=l.pendingProps,s=vA(l.elementType),l.type=s,typeof s==\"function\")kw(s)?(b=o0(s,b),l.tag=1,l.type=s=ll(s),l=ad(null,l,s,b,m)):(l.tag=0,jh(l,s),l.type=s=ll(s),l=Ec(null,l,s,b,m));else{if(s!=null){if(w=s.$$typeof,w===UP){l.tag=11,l.type=s=RE(s),l=lb(null,l,s,b,m);break e}else if(w===Rz){l.tag=14,l=Yw(null,l,s,b,m);break e}}throw l=\"\",s!==null&&typeof s==\"object\"&&s.$$typeof===Kh&&(l=\" Did you wrap a component in React.lazy() more than once?\"),s=$(s)||s,Error(\"Element type is invalid. Received a promise that resolves to: \"+s+\". Lazy element type must resolve to a class or function.\"+l)}return l;case 0:return Ec(s,l,l.type,l.pendingProps,m);case 1:return b=l.type,w=o0(b,l.pendingProps),ad(s,l,b,w,m);case 3:e:{if(T(l,l.stateNode.containerInfo),s===null)throw Error(\"Should have a current fiber. This is a bug in React.\");b=l.pendingProps;var I=l.memoizedState;w=I.element,tb(s,l),ty(l,b,null,m);var Y=l.memoizedState;if(b=Y.cache,Mh(l,du,b),b!==I.cache&&OE(l,[du],m,!0),nb(),b=Y.element,I.isDehydrated)if(I={element:b,isDehydrated:!1,cache:Y.cache},l.updateQueue.baseState=I,l.memoizedState=I,l.flags&256){l=fb(s,l,b,m);break e}else if(b!==w){w=cl(Error(\"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.\"),l),rd(w),l=fb(s,l,b,m);break e}else{switch(s=l.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName===\"HTML\"?s.ownerDocument.body:s}for(Is=vf(s.firstChild),Af=l,Oo=!0,T3=null,u2=!1,g0=null,kb=!0,s=rAe(l,null,b,m),l.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if($1(),b===w){l=wp(s,l,m);break e}Ta(s,l,b,m)}l=l.child}return l;case 26:return fy(s,l),s===null?(s=d4(l.type,null,l.pendingProps,null))?l.memoizedState=s:Oo||(s=l.type,m=l.pendingProps,b=U(fA.current),b=Ti(b).createElement(s),b[vd]=l,b[Np]=m,ii(b,s,m),ot(b),l.stateNode=b):l.memoizedState=d4(l.type,s.memoizedProps,l.pendingProps,s.memoizedState),null;case 27:return N(l),s===null&&Oo&&(b=U(fA.current),w=F(),b=l.stateNode=Ic(l.type,l.pendingProps,b,w,!1),u2||(w=yd(b,l.type,l.pendingProps,w),w!==null&&(Zr(l,0).serverProps=w)),Af=l,kb=!0,w=Is,Ip(l.type)?(Joe=w,Is=vf(b.firstChild)):Is=w),Ta(s,l,l.pendingProps.children,m),fy(s,l),s===null&&(l.flags|=4194304),l.child;case 5:return s===null&&Oo&&(I=F(),b=Tw(l.type,I.ancestorInfo),w=Is,(Y=!w)||(Y=g3(w,l.type,l.pendingProps,kb),Y!==null?(l.stateNode=Y,u2||(I=yd(Y,l.type,l.pendingProps,I),I!==null&&(Zr(l,0).serverProps=I)),Af=l,Is=vf(Y.firstChild),kb=!1,I=!0):I=!1,Y=!I),Y&&(b&&U5(l,w),$m(l))),N(l),w=l.type,I=l.pendingProps,Y=s!==null?s.memoizedProps:null,b=I.children,Ey(w,I)?b=null:Y!==null&&Ey(w,Y)&&(l.flags|=32),l.memoizedState!==null&&(w=Fw(s,l,MP,null,null,m),A9._currentValue=w),fy(s,l),Ta(s,l,b,m),l.child;case 6:return s===null&&Oo&&(s=l.pendingProps,m=F(),b=m.ancestorInfo.current,s=b!=null?pp(s,b.tag,m.ancestorInfo.implicitRootScope):!0,m=Is,(b=!m)||(b=l4(m,l.pendingProps,kb),b!==null?(l.stateNode=b,Af=l,Is=null,b=!0):b=!1,b=!b),b&&(s&&U5(l,m),$m(l))),null;case 13:return sd(s,l,m);case 4:return T(l,l.stateNode.containerInfo),b=l.pendingProps,s===null?l.child=F4(l,null,b,m):Ta(s,l,b,m),l.child;case 11:return lb(s,l,l.type,l.pendingProps,m);case 7:return Ta(s,l,l.pendingProps,m),l.child;case 8:return Ta(s,l,l.pendingProps.children,m),l.child;case 12:return l.flags|=4,l.flags|=2048,b=l.stateNode,b.effectDuration=-0,b.passiveEffectDuration=-0,Ta(s,l,l.pendingProps.children,m),l.child;case 10:return b=l.type,w=l.pendingProps,I=w.value,\"value\"in w||xAe||(xAe=!0,console.error(\"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?\")),Mh(l,b,I),Ta(s,l,w.children,m),l.child;case 9:return w=l.type._context,b=l.pendingProps.children,typeof b!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\"),Qg(l),w=vo(w),ve(l),b=xoe(b,w,void 0),xe(),l.flags|=1,Ta(s,l,b,m),l.child;case 14:return Yw(s,l,l.type,l.pendingProps,m);case 15:return Zw(s,l,l.type,l.pendingProps,m);case 19:return tA(s,l,m);case 31:return b=l.pendingProps,m=l.mode,b={mode:b.mode,children:b.children},s===null?(s=pb(b,m),s.ref=l.ref,l.child=s,s.return=l,l=s):(s=yc(s.child,b),s.ref=l.ref,l.child=s,s.return=l,l=s),l;case 22:return ti(s,l,m);case 24:return Qg(l),b=vo(du),s===null?(w=t0(),w===null&&(w=$i,I=Jg(),w.pooledCache=I,dl(I),I!==null&&(w.pooledCacheLanes|=m),w=I),l.memoizedState={parent:b,cache:w},wc(l),Mh(l,du,w)):((s.lanes&m)!==0&&(tb(s,l),ty(l,null,null,m),nb()),w=s.memoizedState,I=l.memoizedState,w.parent!==b?(w={parent:b,cache:b},l.memoizedState=w,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=w),Mh(l,du,b)):(b=I.cache,Mh(l,du,b),b!==w.cache&&OE(l,[du],m,!0))),Ta(s,l,l.pendingProps.children,m),l.child;case 29:throw l.pendingProps}throw Error(\"Unknown unit of work tag (\"+l.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function Ac(s){s.flags|=4}function hb(s,l){if(l.type!==\"stylesheet\"||(l.state.loading&x0)!==z3)s.flags&=-16777217;else if(s.flags|=16777216,!yxe(l)){if(l=w0.current,l!==null&&((Jr&4194048)===Jr?Pb!==null:(Jr&62914560)!==Jr&&(Jr&536870912)===0||l!==Pb))throw o9=hoe,kEe;s.flags|=8192}}function mb(s,l){l!==null&&(s.flags|=4),s.flags&16384&&(l=s.tag!==22?Vt():536870912,s.lanes|=l,D3|=l)}function _u(s,l){if(!Oo)switch(s.tailMode){case\"hidden\":l=s.tail;for(var m=null;l!==null;)l.alternate!==null&&(m=l),l=l.sibling;m===null?s.tail=null:m.sibling=null;break;case\"collapsed\":m=s.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?l||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function jo(s){var l=s.alternate!==null&&s.alternate.child===s.child,m=0,b=0;if(l)if((s.mode&_l)!==ma){for(var w=s.selfBaseDuration,I=s.child;I!==null;)m|=I.lanes|I.childLanes,b|=I.subtreeFlags&65011712,b|=I.flags&65011712,w+=I.treeBaseDuration,I=I.sibling;s.treeBaseDuration=w}else for(w=s.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags&65011712,b|=w.flags&65011712,w.return=s,w=w.sibling;else if((s.mode&_l)!==ma){w=s.actualDuration,I=s.selfBaseDuration;for(var Y=s.child;Y!==null;)m|=Y.lanes|Y.childLanes,b|=Y.subtreeFlags,b|=Y.flags,w+=Y.actualDuration,I+=Y.treeBaseDuration,Y=Y.sibling;s.actualDuration=w,s.treeBaseDuration=I}else for(w=s.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags,b|=w.flags,w.return=s,w=w.sibling;return s.subtreeFlags|=b,s.childLanes=m,l}function Qw(s,l,m){var b=l.pendingProps;switch(As(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jo(l),null;case 1:return jo(l),null;case 3:return m=l.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),l.memoizedState.cache!==b&&(l.flags|=2048),hp(du,l),k(l),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(s===null||s.child===null)&&(Nw(l)?(H5(),Ac(l)):s===null||s.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,e0())),jo(l),null;case 26:return m=l.memoizedState,s===null?(Ac(l),m!==null?(jo(l),hb(l,m)):(jo(l),l.flags&=-16777217)):m?m!==s.memoizedState?(Ac(l),jo(l),hb(l,m)):(jo(l),l.flags&=-16777217):(s.memoizedProps!==b&&Ac(l),jo(l),l.flags&=-16777217),null;case 27:B(l),m=U(fA.current);var w=l.type;if(s!==null&&l.stateNode!=null)s.memoizedProps!==b&&Ac(l);else{if(!b){if(l.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return jo(l),null}s=F(),Nw(l)?F5(l,s):(s=Ic(w,b,m,s,!0),l.stateNode=s,Ac(l))}return jo(l),null;case 5:if(B(l),m=l.type,s!==null&&l.stateNode!=null)s.memoizedProps!==b&&Ac(l);else{if(!b){if(l.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return jo(l),null}if(w=F(),Nw(l))F5(l,w);else{switch(s=U(fA.current),Tw(m,w.ancestorInfo),w=w.context,s=Ti(s),w){case J4:s=s.createElementNS(w4,m);break;case hj:s=s.createElementNS(Mz,m);break;default:switch(m){case\"svg\":s=s.createElementNS(w4,m);break;case\"math\":s=s.createElementNS(Mz,m);break;case\"script\":s=s.createElement(\"div\"),s.innerHTML=\"<script><\\\\/script>\",s=s.removeChild(s.firstChild);break;case\"select\":s=typeof b.is==\"string\"?s.createElement(\"select\",{is:b.is}):s.createElement(\"select\"),b.multiple?s.multiple=!0:b.size&&(s.size=b.size);break;default:s=typeof b.is==\"string\"?s.createElement(m,{is:b.is}):s.createElement(m),m.indexOf(\"-\")===-1&&(m!==m.toLowerCase()&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",m),Object.prototype.toString.call(s)!==\"[object HTMLUnknownElement]\"||i2.call(HAe,m)||(HAe[m]=!0,console.error(\"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.\",m)))}}s[vd]=l,s[Np]=b;e:for(w=l.child;w!==null;){if(w.tag===5||w.tag===6)s.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===l)break e;for(;w.sibling===null;){if(w.return===null||w.return===l)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}l.stateNode=s;e:switch(ii(s,m,b),m){case\"button\":case\"input\":case\"select\":case\"textarea\":s=!!b.autoFocus;break e;case\"img\":s=!0;break e;default:s=!1}s&&Ac(l)}}return jo(l),l.flags&=-16777217,null;case 6:if(s&&l.stateNode!=null)s.memoizedProps!==b&&Ac(l);else{if(typeof b!=\"string\"&&l.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");if(s=U(fA.current),m=F(),Nw(l)){s=l.stateNode,m=l.memoizedProps,w=!u2,b=null;var I=Af;if(I!==null)switch(I.tag){case 3:w&&(w=aA(s,m,b),w!==null&&(Zr(l,0).serverProps=w));break;case 27:case 5:b=I.memoizedProps,w&&(w=aA(s,m,b),w!==null&&(Zr(l,0).serverProps=w))}s[vd]=l,s=!!(s.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||xy(s.nodeValue,m)),s||$m(l)}else w=m.ancestorInfo.current,w!=null&&pp(b,w.tag,m.ancestorInfo.implicitRootScope),s=Ti(s).createTextNode(b),s[vd]=l,l.stateNode=s}return jo(l),null;case 13:if(b=l.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(w=Nw(l),b!==null&&b.dehydrated!==null){if(s===null){if(!w)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(w=l.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");w[vd]=l,jo(l),(l.mode&_l)!==ma&&b!==null&&(w=l.child,w!==null&&(l.treeBaseDuration-=w.treeBaseDuration))}else H5(),$1(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4,jo(l),(l.mode&_l)!==ma&&b!==null&&(w=l.child,w!==null&&(l.treeBaseDuration-=w.treeBaseDuration));w=!1}else w=e0(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=w),w=!0;if(!w)return l.flags&256?(yp(l),l):(yp(l),null)}return yp(l),(l.flags&128)!==0?(l.lanes=m,(l.mode&_l)!==ma&&$g(l),l):(m=b!==null,s=s!==null&&s.memoizedState!==null,m&&(b=l.child,w=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(w=b.alternate.memoizedState.cachePool.pool),I=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(I=b.memoizedState.cachePool.pool),I!==w&&(b.flags|=2048)),m!==s&&m&&(l.child.flags|=8192),mb(l,l.updateQueue),jo(l),(l.mode&_l)!==ma&&m&&(s=l.child,s!==null&&(l.treeBaseDuration-=s.treeBaseDuration)),null);case 4:return k(l),s===null&&fd(l.stateNode.containerInfo),jo(l),null;case 10:return hp(l.type,l),jo(l),null;case 19:if(q(pu,l),w=l.memoizedState,w===null)return jo(l),null;if(b=(l.flags&128)!==0,I=w.rendering,I===null)if(b)_u(w,!1);else{if(Os!==p2||s!==null&&(s.flags&128)!==0)for(s=l.child;s!==null;){if(I=Vw(s),I!==null){for(l.flags|=128,_u(w,!1),s=I.updateQueue,l.updateQueue=s,mb(l,s),l.subtreeFlags=0,s=m,m=l.child;m!==null;)L5(m,s),m=m.sibling;return K(pu,pu.current&H4|c9,l),l.child}s=s.sibling}w.tail!==null&&Tb()>nj&&(l.flags|=128,b=!0,_u(w,!1),l.lanes=4194304)}else{if(!b)if(s=Vw(I),s!==null){if(l.flags|=128,b=!0,s=s.updateQueue,l.updateQueue=s,mb(l,s),_u(w,!0),w.tail===null&&w.tailMode===\"hidden\"&&!I.alternate&&!Oo)return jo(l),null}else 2*Tb()-w.renderingStartTime>nj&&m!==536870912&&(l.flags|=128,b=!0,_u(w,!1),l.lanes=4194304);w.isBackwards?(I.sibling=l.child,l.child=I):(s=w.last,s!==null?s.sibling=I:l.child=I,w.last=I)}return w.tail!==null?(s=w.tail,w.rendering=s,w.tail=s.sibling,w.renderingStartTime=Tb(),s.sibling=null,m=pu.current,m=b?m&H4|c9:m&H4,K(pu,m,l),s):(jo(l),null);case 22:case 23:return yp(l),pl(l),b=l.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(l.flags|=8192):b&&(l.flags|=8192),b?(m&536870912)!==0&&(l.flags&128)===0&&(jo(l),l.subtreeFlags&6&&(l.flags|=8192)):jo(l),m=l.updateQueue,m!==null&&mb(l,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),b=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(b=l.memoizedState.cachePool.pool),b!==m&&(l.flags|=2048),s!==null&&q(I3,l),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),hp(du,l),jo(l),null;case 25:return null;case 30:return null}throw Error(\"Unknown unit of work tag (\"+l.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function rA(s,l){switch(As(l),l.tag){case 1:return s=l.flags,s&65536?(l.flags=s&-65537|128,(l.mode&_l)!==ma&&$g(l),l):null;case 3:return hp(du,l),k(l),s=l.flags,(s&65536)!==0&&(s&128)===0?(l.flags=s&-65537|128,l):null;case 26:case 27:case 5:return B(l),null;case 13:if(yp(l),s=l.memoizedState,s!==null&&s.dehydrated!==null){if(l.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");$1()}return s=l.flags,s&65536?(l.flags=s&-65537|128,(l.mode&_l)!==ma&&$g(l),l):null;case 19:return q(pu,l),null;case 4:return k(l),null;case 10:return hp(l.type,l),null;case 22:case 23:return yp(l),pl(l),s!==null&&q(I3,l),s=l.flags,s&65536?(l.flags=s&-65537|128,(l.mode&_l)!==ma&&$g(l),l):null;case 24:return hp(du,l),null;case 25:return null;default:return null}}function Jw(s,l){switch(As(l),l.tag){case 3:hp(du,l),k(l);break;case 26:case 27:case 5:B(l);break;case 4:k(l);break;case 13:yp(l);break;case 19:q(pu,l);break;case 10:hp(l.type,l);break;case 22:case 23:yp(l),pl(l),s!==null&&q(I3,l);break;case 24:hp(du,l)}}function Pr(s){return(s.mode&_l)!==ma}function gb(s,l){Pr(s)?(Ki(),xp(l,s),di()):xp(l,s)}function gy(s,l,m){Pr(s)?(Ki(),mf(m,s,l),di()):mf(m,s,l)}function xp(s,l){try{var m=l.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&s)===s&&((s&fu)!==y0?$t!==null&&typeof $t.markComponentPassiveEffectMountStarted==\"function\"&&$t.markComponentPassiveEffectMountStarted(l):(s&Sl)!==y0&&$t!==null&&typeof $t.markComponentLayoutEffectMountStarted==\"function\"&&$t.markComponentLayoutEffectMountStarted(l),b=void 0,(s&_f)!==y0&&(Z4=!0),b=Yt(l,Uht,m),(s&_f)!==y0&&(Z4=!1),(s&fu)!==y0?$t!==null&&typeof $t.markComponentPassiveEffectMountStopped==\"function\"&&$t.markComponentPassiveEffectMountStopped():(s&Sl)!==y0&&$t!==null&&typeof $t.markComponentLayoutEffectMountStopped==\"function\"&&$t.markComponentLayoutEffectMountStopped(),b!==void 0&&typeof b!=\"function\")){var I=void 0;I=(m.tag&Sl)!==0?\"useLayoutEffect\":(m.tag&_f)!==0?\"useInsertionEffect\":\"useEffect\";var Y=void 0;Y=b===null?\" You returned null. If your effect does not require clean up, return undefined (or nothing).\":typeof b.then==\"function\"?`\\n\\nIt looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\\n\\n`+I+`(() => {\\n  async function fetchData() {\\n    // You can await here\\n    const response = await MyAPI.getData(someId);\\n    // ...\\n  }\\n  fetchData();\\n}, [someId]); // Or [] if effect doesn\\'t need props or state\\n\\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:\" You returned: \"+b,Yt(l,function(ie,fe){console.error(\"%s must not return anything besides a function, which is used for clean-up.%s\",ie,fe)},I,Y)}m=m.next}while(m!==w)}}catch(ie){or(l,l.return,ie)}}function mf(s,l,m){try{var b=l.updateQueue,w=b!==null?b.lastEffect:null;if(w!==null){var I=w.next;b=I;do{if((b.tag&s)===s){var Y=b.inst,ie=Y.destroy;ie!==void 0&&(Y.destroy=void 0,(s&fu)!==y0?$t!==null&&typeof $t.markComponentPassiveEffectUnmountStarted==\"function\"&&$t.markComponentPassiveEffectUnmountStarted(l):(s&Sl)!==y0&&$t!==null&&typeof $t.markComponentLayoutEffectUnmountStarted==\"function\"&&$t.markComponentLayoutEffectUnmountStarted(l),(s&_f)!==y0&&(Z4=!0),w=l,Yt(w,Fht,w,m,ie),(s&_f)!==y0&&(Z4=!1),(s&fu)!==y0?$t!==null&&typeof $t.markComponentPassiveEffectUnmountStopped==\"function\"&&$t.markComponentPassiveEffectUnmountStopped():(s&Sl)!==y0&&$t!==null&&typeof $t.markComponentLayoutEffectUnmountStopped==\"function\"&&$t.markComponentLayoutEffectUnmountStopped())}b=b.next}while(b!==I)}}catch(fe){or(l,l.return,fe)}}function yb(s,l){Pr(s)?(Ki(),xp(l,s),di()):xp(l,s)}function yy(s,l,m){Pr(s)?(Ki(),mf(m,s,l),di()):mf(m,s,l)}function by(s){var l=s.updateQueue;if(l!==null){var m=s.stateNode;s.type.defaultProps||\"ref\"in s.memoizedProps||j4||(m.props!==s.memoizedProps&&console.error(\"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",J(s)||\"instance\"),m.state!==s.memoizedState&&console.error(\"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",J(s)||\"instance\"));try{Yt(s,ry,l,m)}catch(b){or(s,s.return,b)}}}function Ha(s,l,m){return s.getSnapshotBeforeUpdate(l,m)}function cd(s,l){var m=l.memoizedProps,b=l.memoizedState;l=s.stateNode,s.type.defaultProps||\"ref\"in s.memoizedProps||j4||(l.props!==s.memoizedProps&&console.error(\"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",J(s)||\"instance\"),l.state!==s.memoizedState&&console.error(\"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",J(s)||\"instance\"));try{var w=o0(s.type,m,s.elementType===s.type),I=Yt(s,Ha,l,w,b);m=EAe,I!==void 0||m.has(s.type)||(m.add(s.type),Yt(s,function(){console.error(\"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.\",J(s))})),l.__reactInternalSnapshotBeforeUpdate=I}catch(Y){or(s,s.return,Y)}}function Ai(s,l,m){m.props=o0(s.type,s.memoizedProps),m.state=s.memoizedState,Pr(s)?(Ki(),Yt(s,ZEe,s,l,m),di()):Yt(s,ZEe,s,l,m)}function bb(s){var l=s.ref;if(l!==null){switch(s.tag){case 26:case 27:case 5:var m=s.stateNode;break;case 30:m=s.stateNode;break;default:m=s.stateNode}if(typeof l==\"function\")if(Pr(s))try{Ki(),s.refCleanup=l(m)}finally{di()}else s.refCleanup=l(m);else typeof l==\"string\"?console.error(\"String refs are no longer supported.\"):l.hasOwnProperty(\"current\")||console.error(\"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().\",J(s)),l.current=m}}function Wh(s,l){try{Yt(s,bb,s)}catch(m){or(s,l,m)}}function _s(s,l){var m=s.ref,b=s.refCleanup;if(m!==null)if(typeof b==\"function\")try{if(Pr(s))try{Ki(),Yt(s,b)}finally{di(s)}else Yt(s,b)}catch(w){or(s,l,w)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m==\"function\")try{if(Pr(s))try{Ki(),Yt(s,m,null)}finally{di(s)}else Yt(s,m,null)}catch(w){or(s,l,w)}else m.current=null}function Wo(s,l,m,b){var w=s.memoizedProps,I=w.id,Y=w.onCommit;w=w.onRender,l=l===null?\"mount\":\"update\",Vz&&(l=\"nested-update\"),typeof w==\"function\"&&w(I,l,s.actualDuration,s.treeBaseDuration,s.actualStartTime,m),typeof Y==\"function\"&&Y(s.memoizedProps.id,l,b,m)}function u4(s,l,m,b){var w=s.memoizedProps;s=w.id,w=w.onPostCommit,l=l===null?\"mount\":\"update\",Vz&&(l=\"nested-update\"),typeof w==\"function\"&&w(s,l,b,m)}function vy(s){var l=s.type,m=s.memoizedProps,b=s.stateNode;try{Yt(s,xb,b,l,m,s)}catch(w){or(s,s.return,w)}}function Xw(s,l,m){try{Yt(s,Rp,s.stateNode,s.type,m,l,s)}catch(b){or(s,s.return,b)}}function oA(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ip(s.type)||s.tag===4}function $w(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||oA(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ip(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function e2(s,l,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,l?(m.nodeType===9?m.body:m.nodeName===\"HTML\"?m.ownerDocument.body:m).insertBefore(s,l):(l=m.nodeType===9?m.body:m.nodeName===\"HTML\"?m.ownerDocument.body:m,l.appendChild(s),m=m._reactRootContainer,m!=null||l.onclick!==null||(l.onclick=Si));else if(b!==4&&(b===27&&Ip(s.type)&&(m=s.stateNode,l=null),s=s.child,s!==null))for(e2(s,l,m),s=s.sibling;s!==null;)e2(s,l,m),s=s.sibling}function vb(s,l,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,l?m.insertBefore(s,l):m.appendChild(s);else if(b!==4&&(b===27&&Ip(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(vb(s,l,m),s=s.sibling;s!==null;)vb(s,l,m),s=s.sibling}function A(s){for(var l,m=s.return;m!==null;){if(oA(m)){l=m;break}m=m.return}if(l==null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");switch(l.tag){case 27:l=l.stateNode,m=$w(s),vb(s,m,l);break;case 5:m=l.stateNode,l.flags&32&&(El(m),l.flags&=-33),l=$w(s),vb(s,l,m);break;case 3:case 4:l=l.stateNode.containerInfo,m=$w(s),e2(s,m,l);break;default:throw Error(\"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\")}}function C(s){var l=s.stateNode,m=s.memoizedProps;try{Yt(s,wz,s.type,m,l,s)}catch(b){or(s,s.return,b)}}function D(s,l){if(s=s.containerInfo,Yoe=bj,s=Z1(s),kh(s)){if(\"selectionStart\"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var w=b.anchorOffset,I=b.focusNode;b=b.focusOffset;try{m.nodeType,I.nodeType}catch{m=null;break e}var Y=0,ie=-1,fe=-1,ge=0,We=0,Xe=s,je=null;t:for(;;){for(var tt;Xe!==m||w!==0&&Xe.nodeType!==3||(ie=Y+w),Xe!==I||b!==0&&Xe.nodeType!==3||(fe=Y+b),Xe.nodeType===3&&(Y+=Xe.nodeValue.length),(tt=Xe.firstChild)!==null;)je=Xe,Xe=tt;for(;;){if(Xe===s)break t;if(je===m&&++ge===w&&(ie=Y),je===I&&++We===b&&(fe=Y),(tt=Xe.nextSibling)!==null)break;Xe=je,je=Xe.parentNode}Xe=tt}m=ie===-1||fe===-1?null:{start:ie,end:fe}}else m=null}m=m||{start:0,end:0}}else m=null;for(Zoe={focusedElem:s,selectionRange:m},bj=!1,ku=l;ku!==null;)if(l=ku,s=l.child,(l.subtreeFlags&1024)!==0&&s!==null)s.return=l,ku=s;else for(;ku!==null;){switch(s=l=ku,m=s.alternate,w=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:(w&1024)!==0&&m!==null&&cd(s,m);break;case 3:if((w&1024)!==0){if(s=s.stateNode.containerInfo,m=s.nodeType,m===9)Rs(s);else if(m===1)switch(s.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Rs(s);break;default:s.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\")}if(s=l.sibling,s!==null){s.return=l.return,ku=s;break}ku=l.return}}function ee(s,l,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:ft(s,m),b&4&&gb(m,Sl|b0);break;case 1:if(ft(s,m),b&4)if(s=m.stateNode,l===null)m.type.defaultProps||\"ref\"in m.memoizedProps||j4||(s.props!==m.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",J(m)||\"instance\"),s.state!==m.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",J(m)||\"instance\")),Pr(m)?(Ki(),Yt(m,Eoe,m,s),di()):Yt(m,Eoe,m,s);else{var w=o0(m.type,l.memoizedProps);l=l.memoizedState,m.type.defaultProps||\"ref\"in m.memoizedProps||j4||(s.props!==m.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",J(m)||\"instance\"),s.state!==m.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",J(m)||\"instance\")),Pr(m)?(Ki(),Yt(m,qEe,m,s,w,l,s.__reactInternalSnapshotBeforeUpdate),di()):Yt(m,qEe,m,s,w,l,s.__reactInternalSnapshotBeforeUpdate)}b&64&&by(m),b&512&&Wh(m,m.return);break;case 3:if(l=ei(),ft(s,m),b&64&&(b=m.updateQueue,b!==null)){if(w=null,m.child!==null)switch(m.child.tag){case 27:case 5:w=m.child.stateNode;break;case 1:w=m.child.stateNode}try{Yt(m,ry,b,w)}catch(Y){or(m,m.return,Y)}}s.effectDuration+=Zs(l);break;case 27:l===null&&b&4&&C(m);case 26:case 5:ft(s,m),l===null&&b&4&&vy(m),b&512&&Wh(m,m.return);break;case 12:if(b&4){b=ei(),ft(s,m),s=m.stateNode,s.effectDuration+=Dw(b);try{Yt(m,Wo,m,l,Wz,s.effectDuration)}catch(Y){or(m,m.return,Y)}}else ft(s,m);break;case 13:ft(s,m),b&4&&Me(s,m),b&64&&(s=m.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(m=ss.bind(null,m),b3(s,m))));break;case 22:if(b=m.memoizedState!==null||f2,!b){l=l!==null&&l.memoizedState!==null||rc,w=f2;var I=rc;f2=b,(rc=l)&&!I?wn(s,m,(m.subtreeFlags&8772)!==0):ft(s,m),f2=w,rc=I}break;case 30:break;default:ft(s,m)}}function ce(s){var l=s.alternate;l!==null&&(s.alternate=null,ce(l)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(l=s.stateNode,l!==null&&zr(l)),s.stateNode=null,s._debugOwner=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function de(s,l,m){for(m=m.child;m!==null;)Oe(s,l,m),m=m.sibling}function Oe(s,l,m){if(bd&&typeof bd.onCommitFiberUnmount==\"function\")try{bd.onCommitFiberUnmount(b4,m)}catch(I){Cb||(Cb=!0,console.error(\"React instrumentation encountered an error: %s\",I))}switch(m.tag){case 26:rc||_s(m,l),de(s,l,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:rc||_s(m,l);var b=Nc,w=Mp;Ip(m.type)&&(Nc=m.stateNode,Mp=!1),de(s,l,m),Yt(m,d0,m.stateNode),Nc=b,Mp=w;break;case 5:rc||_s(m,l);case 6:if(b=Nc,w=Mp,Nc=null,de(s,l,m),Nc=b,Mp=w,Nc!==null)if(Mp)try{Yt(m,t2,Nc,m.stateNode)}catch(I){or(m,l,I)}else try{Yt(m,Ay,Nc,m.stateNode)}catch(I){or(m,l,I)}break;case 18:Nc!==null&&(Mp?(s=Nc,l0(s.nodeType===9?s.body:s.nodeName===\"HTML\"?s.ownerDocument.body:s,m.stateNode),BP(s)):l0(Nc,m.stateNode));break;case 4:b=Nc,w=Mp,Nc=m.stateNode.containerInfo,Mp=!0,de(s,l,m),Nc=b,Mp=w;break;case 0:case 11:case 14:case 15:rc||mf(_f,m,l),rc||gy(m,l,Sl),de(s,l,m);break;case 1:rc||(_s(m,l),b=m.stateNode,typeof b.componentWillUnmount==\"function\"&&Ai(m,l,b)),de(s,l,m);break;case 21:de(s,l,m);break;case 22:rc=(b=rc)||m.memoizedState!==null,de(s,l,m),rc=b;break;default:de(s,l,m)}}function Me(s,l){if(l.memoizedState===null&&(s=l.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Yt(l,Iu,s)}catch(m){or(l,l.return,m)}}function it(s){switch(s.tag){case 13:case 19:var l=s.stateNode;return l===null&&(l=s.stateNode=new AAe),l;case 22:return s=s.stateNode,l=s._retryCache,l===null&&(l=s._retryCache=new AAe),l;default:throw Error(\"Unexpected Suspense handler tag (\"+s.tag+\"). This is a bug in React.\")}}function Le(s,l){var m=it(s);l.forEach(function(b){var w=ha.bind(null,s,b);if(!m.has(b)){if(m.add(b),Sy)if(W4!==null&&V4!==null)Va(V4,W4);else throw Error(\"Expected finished root and lanes to be set. This is a bug in React.\");b.then(w,w)}})}function St(s,l){var m=l.deletions;if(m!==null)for(var b=0;b<m.length;b++){var w=s,I=l,Y=m[b],ie=I;e:for(;ie!==null;){switch(ie.tag){case 27:if(Ip(ie.type)){Nc=ie.stateNode,Mp=!1;break e}break;case 5:Nc=ie.stateNode,Mp=!1;break e;case 3:case 4:Nc=ie.stateNode.containerInfo,Mp=!0;break e}ie=ie.return}if(Nc===null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");Oe(w,I,Y),Nc=null,Mp=!1,w=Y,I=w.alternate,I!==null&&(I.return=null),w.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Ot(l,s),l=l.sibling}function Ot(s,l){var m=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:St(l,s),Pt(s),b&4&&(mf(_f|b0,s,s.return),xp(_f|b0,s),gy(s,s.return,Sl|b0));break;case 1:St(l,s),Pt(s),b&512&&(rc||m===null||_s(m,m.return)),b&64&&f2&&(s=s.updateQueue,s!==null&&(b=s.callbacks,b!==null&&(m=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var w=Oy;if(St(l,s),Pt(s),b&512&&(rc||m===null||_s(m,m.return)),b&4)if(l=m!==null?m.memoizedState:null,b=s.memoizedState,m===null)if(b===null)if(s.stateNode===null){e:{b=s.type,m=s.memoizedProps,l=w.ownerDocument||w;t:switch(b){case\"title\":w=l.getElementsByTagName(\"title\")[0],(!w||w[HP]||w[vd]||w.namespaceURI===w4||w.hasAttribute(\"itemprop\"))&&(w=l.createElement(b),l.head.insertBefore(w,l.querySelector(\"head > title\"))),ii(w,b,m),w[vd]=s,ot(w),b=w;break e;case\"link\":var I=r2(\"link\",\"href\",l).get(b+(m.href||\"\"));if(I){for(var Y=0;Y<I.length;Y++)if(w=I[Y],w.getAttribute(\"href\")===(m.href==null||m.href===\"\"?null:m.href)&&w.getAttribute(\"rel\")===(m.rel==null?null:m.rel)&&w.getAttribute(\"title\")===(m.title==null?null:m.title)&&w.getAttribute(\"crossorigin\")===(m.crossOrigin==null?null:m.crossOrigin)){I.splice(Y,1);break t}}w=l.createElement(b),ii(w,b,m),l.head.appendChild(w);break;case\"meta\":if(I=r2(\"meta\",\"content\",l).get(b+(m.content||\"\"))){for(Y=0;Y<I.length;Y++)if(w=I[Y],O(m.content,\"content\"),w.getAttribute(\"content\")===(m.content==null?null:\"\"+m.content)&&w.getAttribute(\"name\")===(m.name==null?null:m.name)&&w.getAttribute(\"property\")===(m.property==null?null:m.property)&&w.getAttribute(\"http-equiv\")===(m.httpEquiv==null?null:m.httpEquiv)&&w.getAttribute(\"charset\")===(m.charSet==null?null:m.charSet)){I.splice(Y,1);break t}}w=l.createElement(b),ii(w,b,m),l.head.appendChild(w);break;default:throw Error(\\'getNodesForType encountered a type it did not expect: \"\\'+b+\\'\". This is a bug in React.\\')}w[vd]=s,ot(w),b=w}s.stateNode=b}else kp(w,s.type,s.stateNode);else s.stateNode=p4(w,b,s.memoizedProps);else l!==b?(l===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):l.count--,b===null?kp(w,s.type,s.stateNode):p4(w,b,s.memoizedProps)):b===null&&s.stateNode!==null&&Xw(s,s.memoizedProps,m.memoizedProps);break;case 27:St(l,s),Pt(s),b&512&&(rc||m===null||_s(m,m.return)),m!==null&&b&4&&Xw(s,s.memoizedProps,m.memoizedProps);break;case 5:if(St(l,s),Pt(s),b&512&&(rc||m===null||_s(m,m.return)),s.flags&32){l=s.stateNode;try{Yt(s,El,l)}catch(We){or(s,s.return,We)}}b&4&&s.stateNode!=null&&(l=s.memoizedProps,Xw(s,l,m!==null?m.memoizedProps:l)),b&1024&&(Ioe=!0,s.type!==\"form\"&&console.error(\"Unexpected host component type. Expected a form. This is a bug in React.\"));break;case 6:if(St(l,s),Pt(s),b&4){if(s.stateNode===null)throw Error(\"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\");b=s.memoizedProps,m=m!==null?m.memoizedProps:b,l=s.stateNode;try{Yt(s,u0,l,m,b)}catch(We){or(s,s.return,We)}}break;case 3:if(w=ei(),mj=null,I=Oy,Oy=cA(l.containerInfo),St(l,s),Oy=I,Pt(s),b&4&&m!==null&&m.memoizedState.isDehydrated)try{Yt(s,Eb,l.containerInfo)}catch(We){or(s,s.return,We)}Ioe&&(Ioe=!1,qt(s)),l.effectDuration+=Zs(w);break;case 4:b=Oy,Oy=cA(s.stateNode.containerInfo),St(l,s),Pt(s),Oy=b;break;case 12:b=ei(),St(l,s),Pt(s),s.stateNode.effectDuration+=Dw(b);break;case 13:St(l,s),Pt(s),s.child.flags&8192&&s.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Doe=Tb()),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Le(s,b)));break;case 22:w=s.memoizedState!==null;var ie=m!==null&&m.memoizedState!==null,fe=f2,ge=rc;if(f2=fe||w,rc=ge||ie,St(l,s),rc=ge,f2=fe,Pt(s),b&8192)e:for(l=s.stateNode,l._visibility=w?l._visibility&~Fz:l._visibility|Fz,w&&(m===null||ie||f2||rc||Dn(s)),m=null,l=s;;){if(l.tag===5||l.tag===26){if(m===null){ie=m=l;try{I=ie.stateNode,w?Yt(ie,h3,I):Yt(ie,m3,ie.stateNode,ie.memoizedProps)}catch(We){or(ie,ie.return,We)}}}else if(l.tag===6){if(m===null){ie=l;try{Y=ie.stateNode,w?Yt(ie,qh,Y):Yt(ie,_y,Y,ie.memoizedProps)}catch(We){or(ie,ie.return,We)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===s)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;m===l&&(m=null),l=l.return}m===l&&(m=null),l.sibling.return=l.return,l=l.sibling}b&4&&(b=s.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,Le(s,m))));break;case 19:St(l,s),Pt(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Le(s,b)));break;case 30:break;case 21:break;default:St(l,s),Pt(s)}}function Pt(s){var l=s.flags;if(l&2){try{Yt(s,A,s)}catch(m){or(s,s.return,m)}s.flags&=-3}l&4096&&(s.flags&=-4097)}function qt(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var l=s;qt(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),s=s.sibling}}function ft(s,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)ee(s,l.alternate,l),l=l.sibling}function gr(s){switch(s.tag){case 0:case 11:case 14:case 15:gy(s,s.return,Sl),Dn(s);break;case 1:_s(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount==\"function\"&&Ai(s,s.return,l),Dn(s);break;case 27:Yt(s,d0,s.stateNode);case 26:case 5:_s(s,s.return),Dn(s);break;case 22:s.memoizedState===null&&Dn(s);break;case 30:Dn(s);break;default:Dn(s)}}function Dn(s){for(s=s.child;s!==null;)gr(s),s=s.sibling}function Rn(s,l,m,b){var w=m.flags;switch(m.tag){case 0:case 11:case 15:wn(s,m,b),gb(m,Sl);break;case 1:if(wn(s,m,b),l=m.stateNode,typeof l.componentDidMount==\"function\"&&Yt(m,Eoe,m,l),l=m.updateQueue,l!==null){s=m.stateNode;try{Yt(m,ny,l,s)}catch(I){or(m,m.return,I)}}b&&w&64&&by(m),Wh(m,m.return);break;case 27:C(m);case 26:case 5:wn(s,m,b),b&&l===null&&w&4&&vy(m),Wh(m,m.return);break;case 12:if(b&&w&4){w=ei(),wn(s,m,b),b=m.stateNode,b.effectDuration+=Dw(w);try{Yt(m,Wo,m,l,Wz,b.effectDuration)}catch(I){or(m,m.return,I)}}else wn(s,m,b);break;case 13:wn(s,m,b),b&&w&4&&Me(s,m);break;case 22:m.memoizedState===null&&wn(s,m,b),Wh(m,m.return);break;case 30:break;default:wn(s,m,b)}}function wn(s,l,m){for(m=m&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;)Rn(s,l.alternate,l,m),l=l.sibling}function Ca(s,l){var m=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==m&&(s!=null&&dl(s),m!=null&&Dh(m))}function yn(s,l){s=null,l.alternate!==null&&(s=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==s&&(dl(l),s!=null&&Dh(s))}function Hn(s,l,m,b){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Mo(s,l,m,b),l=l.sibling}function Mo(s,l,m,b){var w=l.flags;switch(l.tag){case 0:case 11:case 15:Hn(s,l,m,b),w&2048&&yb(l,fu|b0);break;case 1:Hn(s,l,m,b);break;case 3:var I=ei();Hn(s,l,m,b),w&2048&&(m=null,l.alternate!==null&&(m=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==m&&(dl(l),m!=null&&Dh(m))),s.passiveEffectDuration+=Zs(I);break;case 12:if(w&2048){w=ei(),Hn(s,l,m,b),s=l.stateNode,s.passiveEffectDuration+=Dw(w);try{Yt(l,u4,l,l.alternate,Wz,s.passiveEffectDuration)}catch(ie){or(l,l.return,ie)}}else Hn(s,l,m,b);break;case 13:Hn(s,l,m,b);break;case 23:break;case 22:I=l.stateNode;var Y=l.alternate;l.memoizedState!==null?I._visibility&a2?Hn(s,l,m,b):Di(s,l):I._visibility&a2?Hn(s,l,m,b):(I._visibility|=a2,fa(s,l,m,b,(l.subtreeFlags&10256)!==0)),w&2048&&Ca(Y,l);break;case 24:Hn(s,l,m,b),w&2048&&yn(l.alternate,l);break;default:Hn(s,l,m,b)}}function fa(s,l,m,b,w){for(w=w&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;)Ra(s,l,m,b,w),l=l.sibling}function Ra(s,l,m,b,w){var I=l.flags;switch(l.tag){case 0:case 11:case 15:fa(s,l,m,b,w),yb(l,fu);break;case 23:break;case 22:var Y=l.stateNode;l.memoizedState!==null?Y._visibility&a2?fa(s,l,m,b,w):Di(s,l):(Y._visibility|=a2,fa(s,l,m,b,w)),w&&I&2048&&Ca(l.alternate,l);break;case 24:fa(s,l,m,b,w),w&&I&2048&&yn(l.alternate,l);break;default:fa(s,l,m,b,w)}}function Di(s,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var m=s,b=l,w=b.flags;switch(b.tag){case 22:Di(m,b),w&2048&&Ca(b.alternate,b);break;case 24:Di(m,b),w&2048&&yn(b.alternate,b);break;default:Di(m,b)}l=l.sibling}}function ni(s){if(s.subtreeFlags&u9)for(s=s.child;s!==null;)Su(s),s=s.sibling}function Su(s){switch(s.tag){case 26:ni(s),s.flags&u9&&s.memoizedState!==null&&upt(Oy,s.memoizedState,s.memoizedProps);break;case 5:ni(s);break;case 3:case 4:var l=Oy;Oy=cA(s.stateNode.containerInfo),ni(s),Oy=l;break;case 22:s.memoizedState===null&&(l=s.alternate,l!==null&&l.memoizedState!==null?(l=u9,u9=16777216,ni(s),u9=l):ni(s));break;default:ni(s)}}function _c(s){var l=s.alternate;if(l!==null&&(s=l.child,s!==null)){l.child=null;do l=s.sibling,s.sibling=null,s=l;while(s!==null)}}function Wr(s){var l=s.deletions;if((s.flags&16)!==0){if(l!==null)for(var m=0;m<l.length;m++){var b=l[m];ku=b,X(b,s)}_c(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)E(s),s=s.sibling}function E(s){switch(s.tag){case 0:case 11:case 15:Wr(s),s.flags&2048&&yy(s,s.return,fu|b0);break;case 3:var l=ei();Wr(s),s.stateNode.passiveEffectDuration+=Zs(l);break;case 12:l=ei(),Wr(s),s.stateNode.passiveEffectDuration+=Dw(l);break;case 22:l=s.stateNode,s.memoizedState!==null&&l._visibility&a2&&(s.return===null||s.return.tag!==13)?(l._visibility&=~a2,_(s)):Wr(s);break;default:Wr(s)}}function _(s){var l=s.deletions;if((s.flags&16)!==0){if(l!==null)for(var m=0;m<l.length;m++){var b=l[m];ku=b,X(b,s)}_c(s)}for(s=s.child;s!==null;)L(s),s=s.sibling}function L(s){switch(s.tag){case 0:case 11:case 15:yy(s,s.return,fu),_(s);break;case 22:var l=s.stateNode;l._visibility&a2&&(l._visibility&=~a2,_(s));break;default:_(s)}}function X(s,l){for(;ku!==null;){var m=ku,b=m;switch(b.tag){case 0:case 11:case 15:yy(b,l,fu);break;case 23:case 22:b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(b=b.memoizedState.cachePool.pool,b!=null&&dl(b));break;case 24:Dh(b.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,ku=b;else e:for(m=s;ku!==null;){b=ku;var w=b.sibling,I=b.return;if(ce(b),b===m){ku=null;break e}if(w!==null){w.return=I,ku=w;break e}ku=I}}}function se(){zht.forEach(function(s){return s()})}function le(){var s=typeof IS_REACT_ACT_ENVIRONMENT<\"u\"?IS_REACT_ACT_ENVIRONMENT:void 0;return s||Je.actQueue===null||console.error(\"The current testing environment is not configured to support act(...)\"),s}function Ae(s){if((si&Sf)!==Qh&&Jr!==0)return Jr&-Jr;var l=Je.T;return l!==null?(l._updatedFibers||(l._updatedFibers=new Set),l._updatedFibers.add(s),s=R3,s!==0?s:Ru()):qi()}function Ce(){Xh===0&&(Xh=(Jr&536870912)===0||Oo?Zt():536870912);var s=w0.current;return s!==null&&(s.flags|=32),Xh}function He(s,l,m){if(Z4&&console.error(\"useInsertionEffect must not schedule updates.\"),Hoe&&(rj=!0),(s===$i&&(hi===P3||hi===M3)||s.cancelPendingCommit!==null)&&(Ln(s,0),It(s,Jr,Xh,!1)),Jt(s,m),(si&Sf)!==0&&s===$i){if(Ib)switch(l.tag){case 0:case 11:case 15:s=Gr&&J(Gr)||\"Unknown\",PAe.has(s)||(PAe.add(s),l=J(l)||\"Unknown\",console.error(\"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render\",l,s,s));break;case 1:NAe||(console.error(\"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.\"),NAe=!0)}}else Sy&&Ws(s,l,m),Tc(l),s===$i&&((si&Sf)===Qh&&(EA|=m),Os===N3&&It(s,Jr,Xh,!1)),ec(s)}function ke(s,l,m){if((si&(Sf|ky))!==Qh)throw Error(\"Should not already be working.\");var b=!m&&(l&124)===0&&(l&s.expiredLanes)===0||et(s,l),w=b?za(s,l):co(s,l,!0),I=b;do{if(w===p2){K4&&!b&&It(s,l,0,!1);break}else{if(m=s.current.alternate,I&&!pt(m)){w=co(s,l,!1),I=!1;continue}if(w===G4){if(I=l,s.errorRecoveryDisabledLanes&I)var Y=0;else Y=s.pendingLanes&-536870913,Y=Y!==0?Y:Y&536870912?536870912:0;if(Y!==0){l=Y;e:{w=s;var ie=Y;Y=m9;var fe=w.current.memoizedState.isDehydrated;if(fe&&(Ln(w,ie).flags|=256),ie=co(w,ie,!1),ie!==G4){if(Poe&&!fe){w.errorRecoveryDisabledLanes|=I,EA|=I,w=N3;break e}w=Tf,Tf=Y,w!==null&&(Tf===null?Tf=w:Tf.push.apply(Tf,w))}w=ie}if(I=!1,w!==G4)continue}}if(w===d9){Ln(s,0),It(s,l,0,!0);break}e:{switch(b=s,w){case p2:case d9:throw Error(\"Root did not complete. This is a bug in React.\");case N3:if((l&4194048)!==l)break;case ej:It(b,l,Xh,!wA);break e;case G4:Tf=null;break;case Ooe:case _Ae:break;default:throw Error(\"Unknown root exit status.\")}if(Je.actQueue!==null)Go(b,m,l,Tf,g9,tj,Xh,EA,D3);else{if((l&62914560)===l&&(I=Doe+TAe-Tb(),10<I)){if(It(b,l,Xh,!wA),ht(b,0,!0)!==0)break e;b.timeoutHandle=zAe(yt.bind(null,b,m,Tf,g9,tj,l,Xh,EA,D3,wA,w,Ght,REe,0),I);break e}yt(b,m,Tf,g9,tj,l,Xh,EA,D3,wA,w,Wht,REe,0)}}}break}while(!0);ec(s)}function yt(s,l,m,b,w,I,Y,ie,fe,ge,We,Xe,je,tt){if(s.timeoutHandle=H3,Xe=l.subtreeFlags,(Xe&8192||(Xe&16785408)===16785408)&&(E9={stylesheets:null,count:0,unsuspend:cpt},Su(l),Xe=lpt(),Xe!==null)){s.cancelPendingCommit=Xe(Go.bind(null,s,l,I,m,b,w,Y,ie,fe,We,Vht,je,tt)),It(s,I,Y,!ge);return}Go(s,l,I,m,b,w,Y,ie,fe)}function pt(s){for(var l=s;;){var m=l.tag;if((m===0||m===11||m===15)&&l.flags&16384&&(m=l.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var w=m[b],I=w.getSnapshot;w=w.value;try{if(!Ef(I(),w))return!1}catch{return!1}}if(m=l.child,l.subtreeFlags&16384&&m!==null)m.return=l,l=m;else{if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function It(s,l,m,b){l&=~Moe,l&=~EA,s.suspendedLanes|=l,s.pingedLanes&=~l,b&&(s.warmLanes|=l),b=s.expirationTimes;for(var w=l;0<w;){var I=31-wf(w),Y=1<<I;b[I]=-1,w&=~Y}m!==0&&sr(s,m,l)}function xt(){return(si&(Sf|ky))===Qh?(oi(0,!1),!1):!0}function at(){if(Gr!==null){if(hi===Dp)var s=Gr.return;else s=Gr,Pw(),ou(s),U4=null,s9=0,s=Gr;for(;s!==null;)Jw(s.alternate,s),s=s.return;Gr=null}}function Ln(s,l){var m=s.timeoutHandle;m!==H3&&(s.timeoutHandle=H3,omt(m)),m=s.cancelPendingCommit,m!==null&&(s.cancelPendingCommit=null,m()),at(),$i=s,Gr=m=yc(s.current,null),Jr=l,hi=Dp,Jh=null,wA=!1,K4=et(s,l),Poe=!1,Os=p2,D3=Xh=Moe=EA=xA=0,Tf=m9=null,tj=!1,(l&8)!==0&&(l|=l&32);var b=s.entangledLanes;if(b!==0)for(s=s.entanglements,b&=l;0<b;){var w=31-wf(b),I=1<<w;l|=s[w],b&=~I}return Mb=l,Zg(),l=TEe(),1e3<l-SEe&&(Je.recentlyCreatedOwnerStacks=0,SEe=l),Ry.discardPendingWarnings(),m}function Qr(s,l){er=null,Je.H=Xz,Je.getCurrentStack=null,Ib=!1,Zh=null,l===r9||l===Kz?(l=vc(),hi=p9):l===kEe?(l=vc(),hi=SAe):hi=l===mAe?Noe:l!==null&&typeof l==\"object\"&&typeof l.then==\"function\"?q4:f9,Jh=l;var m=Gr;if(m===null)Os=d9,eA(s,cl(l,s.current));else switch(m.mode&_l&&NE(m),xe(),hi){case f9:$t!==null&&typeof $t.markComponentErrored==\"function\"&&$t.markComponentErrored(m,l,Jr);break;case P3:case M3:case p9:case q4:case h9:$t!==null&&typeof $t.markComponentSuspended==\"function\"&&$t.markComponentSuspended(m,l,Jr)}}function Bn(){var s=Je.H;return Je.H=Xz,s===null?Xz:s}function nn(){var s=Je.A;return Je.A=Hht,s}function fi(){Os=N3,wA||(Jr&4194048)!==Jr&&w0.current!==null||(K4=!0),(xA&134217727)===0&&(EA&134217727)===0||$i===null||It($i,Jr,Xh,!1)}function co(s,l,m){var b=si;si|=Sf;var w=Bn(),I=nn();if($i!==s||Jr!==l){if(Sy){var Y=s.memoizedUpdaters;0<Y.size&&(Va(s,Jr),Y.clear()),io(s,l)}g9=null,Ln(s,l)}De(l),l=!1,Y=Os;e:do try{if(hi!==Dp&&Gr!==null){var ie=Gr,fe=Jh;switch(hi){case Noe:at(),Y=ej;break e;case p9:case P3:case M3:case q4:w0.current===null&&(l=!0);var ge=hi;if(hi=Dp,Jh=null,_i(s,ie,fe,ge),m&&K4){Y=p2;break e}break;default:ge=hi,hi=Dp,Jh=null,_i(s,ie,fe,ge)}}zn(),Y=Os;break}catch(We){Qr(s,We)}while(!0);return l&&s.shellSuspendCounter++,Pw(),si=b,Je.H=w,Je.A=I,Ge(),Gr===null&&($i=null,Jr=0,Zg()),Y}function zn(){for(;Gr!==null;)Li(Gr)}function za(s,l){var m=si;si|=Sf;var b=Bn(),w=nn();if($i!==s||Jr!==l){if(Sy){var I=s.memoizedUpdaters;0<I.size&&(Va(s,Jr),I.clear()),io(s,l)}g9=null,nj=Tb()+CAe,Ln(s,l)}else K4=et(s,l);De(l);e:do try{if(hi!==Dp&&Gr!==null)t:switch(l=Gr,I=Jh,hi){case f9:hi=Dp,Jh=null,_i(s,l,I,f9);break;case P3:case M3:if(xu(I)){hi=Dp,Jh=null,Zi(l);break}l=function(){hi!==P3&&hi!==M3||$i!==s||(hi=h9),ec(s)},I.then(l,l);break e;case p9:hi=h9;break e;case SAe:hi=koe;break e;case h9:xu(I)?(hi=Dp,Jh=null,Zi(l)):(hi=Dp,Jh=null,_i(s,l,I,h9));break;case koe:var Y=null;switch(Gr.tag){case 26:Y=Gr.memoizedState;case 5:case 27:var ie=Gr;if(!Y||yxe(Y)){hi=Dp,Jh=null;var fe=ie.sibling;if(fe!==null)Gr=fe;else{var ge=ie.return;ge!==null?(Gr=ge,Qi(ge)):Gr=null}break t}break;default:console.error(\"Unexpected type of fiber triggered a suspensey commit. This is a bug in React.\")}hi=Dp,Jh=null,_i(s,l,I,koe);break;case q4:hi=Dp,Jh=null,_i(s,l,I,q4);break;case Noe:at(),Os=ej;break e;default:throw Error(\"Unexpected SuspendedReason. This is a bug in React.\")}Je.actQueue!==null?zn():Ss();break}catch(We){Qr(s,We)}while(!0);return Pw(),Je.H=b,Je.A=w,si=m,Gr!==null?($t!==null&&typeof $t.markRenderYielded==\"function\"&&$t.markRenderYielded(),p2):(Ge(),$i=null,Jr=0,Zg(),Os)}function Ss(){for(;Gr!==null&&!Tpt();)Li(Gr)}function Li(s){var l=s.alternate;(s.mode&_l)!==ma?(kE(s),l=Yt(s,nA,l,s,Mb),NE(s)):l=Yt(s,nA,l,s,Mb),s.memoizedProps=s.pendingProps,l===null?Qi(s):Gr=l}function Zi(s){var l=Yt(s,Vo,s);s.memoizedProps=s.pendingProps,l===null?Qi(s):Gr=l}function Vo(s){var l=s.alternate,m=(s.mode&_l)!==ma;switch(m&&kE(s),s.tag){case 15:case 0:l=zh(l,s,s.pendingProps,s.type,void 0,Jr);break;case 11:l=zh(l,s,s.pendingProps,s.type.render,s.ref,Jr);break;case 5:ou(s);default:Jw(l,s),s=Gr=L5(s,Mb),l=nA(l,s,Mb)}return m&&NE(s),l}function _i(s,l,m,b){Pw(),ou(l),U4=null,s9=0;var w=l.return;try{if(pf(s,w,l,m,Jr)){Os=d9,eA(s,cl(m,s.current)),Gr=null;return}}catch(I){if(w!==null)throw Gr=w,I;Os=d9,eA(s,cl(m,s.current)),Gr=null;return}l.flags&32768?(Oo||b===f9?s=!0:K4||(Jr&536870912)!==0?s=!1:(wA=s=!0,(b===P3||b===M3||b===p9||b===q4)&&(b=w0.current,b!==null&&b.tag===13&&(b.flags|=16384))),$n(l,s)):Qi(l)}function Qi(s){var l=s;do{if((l.flags&32768)!==0){$n(l,wA);return}var m=l.alternate;if(s=l.return,kE(l),m=Yt(l,Qw,m,l,Mb),(l.mode&_l)!==ma&&Xg(l),m!==null){Gr=m;return}if(l=l.sibling,l!==null){Gr=l;return}Gr=l=s}while(l!==null);Os===p2&&(Os=_Ae)}function $n(s,l){do{var m=rA(s.alternate,s);if(m!==null){m.flags&=32767,Gr=m;return}if((s.mode&_l)!==ma){Xg(s),m=s.actualDuration;for(var b=s.child;b!==null;)m+=b.actualDuration,b=b.sibling;s.actualDuration=m}if(m=s.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!l&&(s=s.sibling,s!==null)){Gr=s;return}Gr=s=m}while(s!==null);Os=ej,Gr=null}function Go(s,l,m,b,w,I,Y,ie,fe){s.cancelPendingCommit=null;do Ia();while(Tl!==L3);if(Ry.flushLegacyContextWarning(),Ry.flushPendingUnsafeLifecycleWarnings(),(si&(Sf|ky))!==Qh)throw Error(\"Should not already be working.\");if($t!==null&&typeof $t.markCommitStarted==\"function\"&&$t.markCommitStarted(m),l===null)ye();else{if(m===0&&console.error(\"finishedLanes should not be empty during a commit. This is a bug in React.\"),l===s.current)throw Error(\"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\");if(I=l.lanes|l.childLanes,I|=uoe,Xt(s,m,I,Y,ie,fe),s===$i&&(Gr=$i=null,Jr=0),Y4=l,_A=s,SA=m,Boe=I,Uoe=w,kAe=b,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,Tu(y4,function(){return au(!0),null})):(s.callbackNode=null,s.callbackPriority=0),Wz=P4(),b=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||b){b=Je.T,Je.T=null,w=ai.p,ai.p=Yh,Y=si,si|=ky;try{D(s,l,m)}finally{si=Y,ai.p=w,Je.T=b}}Tl=RAe,uo(),ja(),Wa()}}function uo(){if(Tl===RAe){Tl=L3;var s=_A,l=Y4,m=SA,b=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||b){b=Je.T,Je.T=null;var w=ai.p;ai.p=Yh;var I=si;si|=ky;try{W4=m,V4=s,Ot(l,s),V4=W4=null,m=Zoe;var Y=Z1(s.containerInfo),ie=m.focusedElem,fe=m.selectionRange;if(Y!==ie&&ie&&ie.ownerDocument&&Y1(ie.ownerDocument.documentElement,ie)){if(fe!==null&&kh(ie)){var ge=fe.start,We=fe.end;if(We===void 0&&(We=ge),\"selectionStart\"in ie)ie.selectionStart=ge,ie.selectionEnd=Math.min(We,ie.value.length);else{var Xe=ie.ownerDocument||document,je=Xe&&Xe.defaultView||window;if(je.getSelection){var tt=je.getSelection(),ln=ie.textContent.length,Vn=Math.min(fe.start,ln),ea=fe.end===void 0?Vn:Math.min(fe.end,ln);!tt.extend&&Vn>ea&&(Y=ea,ea=Vn,Vn=Y);var lo=D5(ie,Vn),_e=D5(ie,ea);if(lo&&_e&&(tt.rangeCount!==1||tt.anchorNode!==lo.node||tt.anchorOffset!==lo.offset||tt.focusNode!==_e.node||tt.focusOffset!==_e.offset)){var Se=Xe.createRange();Se.setStart(lo.node,lo.offset),tt.removeAllRanges(),Vn>ea?(tt.addRange(Se),tt.extend(_e.node,_e.offset)):(Se.setEnd(_e.node,_e.offset),tt.addRange(Se))}}}}for(Xe=[],tt=ie;tt=tt.parentNode;)tt.nodeType===1&&Xe.push({element:tt,left:tt.scrollLeft,top:tt.scrollTop});for(typeof ie.focus==\"function\"&&ie.focus(),ie=0;ie<Xe.length;ie++){var Pe=Xe[ie];Pe.element.scrollLeft=Pe.left,Pe.element.scrollTop=Pe.top}}bj=!!Yoe,Zoe=Yoe=null}finally{si=I,ai.p=w,Je.T=b}}s.current=l,Tl=IAe}}function ja(){if(Tl===IAe){Tl=L3;var s=_A,l=Y4,m=SA,b=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||b){b=Je.T,Je.T=null;var w=ai.p;ai.p=Yh;var I=si;si|=ky;try{$t!==null&&typeof $t.markLayoutEffectsStarted==\"function\"&&$t.markLayoutEffectsStarted(m),W4=m,V4=s,ee(s,l.alternate,l),V4=W4=null,$t!==null&&typeof $t.markLayoutEffectsStopped==\"function\"&&$t.markLayoutEffectsStopped()}finally{si=I,ai.p=w,Je.T=b}}Tl=OAe}}function Wa(){if(Tl===qht||Tl===OAe){Tl=L3,Cpt();var s=_A,l=Y4,m=SA,b=kAe,w=(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0;w?Tl=Loe:(Tl=L3,Y4=_A=null,iu(s,s.pendingLanes),B3=0,b9=null);var I=s.pendingLanes;if(I===0&&(AA=null),w||$s(s),w=Hr(m),l=l.stateNode,bd&&typeof bd.onCommitFiberRoot==\"function\")try{var Y=(l.current.flags&128)===128;switch(w){case Yh:var ie=zre;break;case Ty:ie=jre;break;case Rb:ie=y4;break;case Nz:ie=Wre;break;default:ie=y4}bd.onCommitFiberRoot(b4,l,ie,Y)}catch(Xe){Cb||(Cb=!0,console.error(\"React instrumentation encountered an error: %s\",Xe))}if(Sy&&s.memoizedUpdaters.clear(),se(),b!==null){Y=Je.T,ie=ai.p,ai.p=Yh,Je.T=null;try{var fe=s.onRecoverableError;for(l=0;l<b.length;l++){var ge=b[l],We=pa(ge.stack);Yt(ge.source,fe,ge.value,We)}}finally{Je.T=Y,ai.p=ie}}(SA&3)!==0&&Ia(),ec(s),I=s.pendingLanes,(m&4194090)!==0&&(I&42)!==0?(Gz=!0,s===Foe?y9++:(y9=0,Foe=s)):y9=0,oi(0,!1),ye()}}function pa(s){return s={componentStack:s},Object.defineProperty(s,\"digest\",{get:function(){console.error(\\'You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.\\')}}),s}function iu(s,l){(s.pooledCacheLanes&=l)===0&&(l=s.pooledCache,l!=null&&(s.pooledCache=null,Dh(l)))}function Ia(s){return uo(),ja(),Wa(),au(s)}function au(){if(Tl!==Loe)return!1;var s=_A,l=Boe;Boe=0;var m=Hr(SA),b=Rb===0||Rb>m?Rb:m;m=Je.T;var w=ai.p;try{ai.p=b,Je.T=null,b=Uoe,Uoe=null;var I=_A,Y=SA;if(Tl=L3,Y4=_A=null,SA=0,(si&(Sf|ky))!==Qh)throw Error(\"Cannot flush passive effects while already rendering.\");Hoe=!0,rj=!1,$t!==null&&typeof $t.markPassiveEffectsStarted==\"function\"&&$t.markPassiveEffectsStarted(Y);var ie=si;if(si|=ky,E(I.current),Mo(I,I.current,Y,b),$t!==null&&typeof $t.markPassiveEffectsStopped==\"function\"&&$t.markPassiveEffectsStopped(),$s(I),si=ie,oi(0,!1),rj?I===b9?B3++:(B3=0,b9=I):B3=0,rj=Hoe=!1,bd&&typeof bd.onPostCommitFiberRoot==\"function\")try{bd.onPostCommitFiberRoot(b4,I)}catch(ge){Cb||(Cb=!0,console.error(\"React instrumentation encountered an error: %s\",ge))}var fe=I.current.stateNode;return fe.effectDuration=0,fe.passiveEffectDuration=0,!0}finally{ai.p=w,Je.T=m,iu(s,l)}}function gf(s,l,m){l=cl(m,l),l=vp(s.stateNode,l,2),s=Mi(s,l,2),s!==null&&(Jt(s,2),ec(s))}function or(s,l,m){if(Z4=!1,s.tag===3)gf(s,s,m);else{for(;l!==null;){if(l.tag===3){gf(l,s,m);return}if(l.tag===1){var b=l.stateNode;if(typeof l.type.getDerivedStateFromError==\"function\"||typeof b.componentDidCatch==\"function\"&&(AA===null||!AA.has(b))){s=cl(m,s),m=i0(2),b=Mi(l,m,2),b!==null&&(Kw(m,b,l,s),Jt(b,2),ec(b));return}}l=l.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\\n\\nError message:\\n\\n%s`,m)}}function yl(s,l,m){var b=s.pingCache;if(b===null){b=s.pingCache=new jht;var w=new Set;b.set(l,w)}else w=b.get(l),w===void 0&&(w=new Set,b.set(l,w));w.has(m)||(Poe=!0,w.add(m),b=Sc.bind(null,s,l,m),Sy&&Va(s,m),l.then(b,b))}function Sc(s,l,m){var b=s.pingCache;b!==null&&b.delete(l),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,le()&&Je.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\\n\\nWhen testing, code that resolves suspended data should be wrapped into act(...):\\n\\nact(() => {\\n  /* finish loading suspended data */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),$i===s&&(Jr&m)===m&&(Os===N3||Os===Ooe&&(Jr&62914560)===Jr&&Tb()-Doe<TAe?(si&Sf)===Qh&&Ln(s,0):Moe|=m,D3===Jr&&(D3=0)),ec(s)}function yf(s,l){l===0&&(l=Vt()),s=Es(s,l),s!==null&&(Jt(s,l),ec(s))}function ss(s){var l=s.memoizedState,m=0;l!==null&&(m=l.retryLane),yf(s,m)}function ha(s,l){var m=0;switch(s.tag){case 13:var b=s.stateNode,w=s.memoizedState;w!==null&&(m=w.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(\"Pinged unknown suspense boundary type. This is probably a bug in React.\")}b!==null&&b.delete(l),yf(s,m)}function ri(s,l,m){if((l.subtreeFlags&67117056)!==0)for(l=l.child;l!==null;){var b=s,w=l,I=w.type===Cz;I=m||I,w.tag!==22?w.flags&67108864?I&&Yt(w,cs,b,w,(w.mode&EEe)===ma):ri(b,w,I):w.memoizedState===null&&(I&&w.flags&8192?Yt(w,cs,b,w):w.subtreeFlags&67108864&&Yt(w,ri,b,w,I)),l=l.sibling}}function cs(s,l){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;ae(!0);try{gr(l),m&&L(l),Rn(s,l.alternate,l,!1),m&&Ra(s,l,0,null,!1,0)}finally{ae(!1)}}function $s(s){var l=!0;s.current.mode&(wd|Cy)||(l=!1),ri(s,s.current,l)}function ud(s){if((si&Sf)===Qh){var l=s.tag;if(l===3||l===1||l===0||l===11||l===14||l===15){if(l=J(s)||\"ReactComponent\",oj!==null){if(oj.has(l))return;oj.add(l)}else oj=new Set([l]);Yt(s,function(){console.error(\"Can\\'t perform a React state update on a component that hasn\\'t mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.\")})}}}function Va(s,l){Sy&&s.memoizedUpdaters.forEach(function(m){Ws(s,m,l)})}function Tu(s,l){var m=Je.actQueue;return m!==null?(m.push(l),Zht):Hre(s,l)}function Tc(s){le()&&Je.actQueue===null&&Yt(s,function(){console.error(`An update to %s inside a test was not wrapped in act(...).\\n\\nWhen testing, code that causes React state updates should be wrapped into act(...):\\n\\nact(() => {\\n  /* fire events that update state */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(s))})}function ec(s){s!==Q4&&s.next===null&&(Q4===null?ij=Q4=s:Q4=Q4.next=s),aj=!0,Je.actQueue!==null?joe||(joe=!0,bl()):zoe||(zoe=!0,bl())}function oi(s,l){if(!Woe&&aj){Woe=!0;do for(var m=!1,b=ij;b!==null;){if(!l)if(s!==0){var w=b.pendingLanes;if(w===0)var I=0;else{var Y=b.suspendedLanes,ie=b.pingedLanes;I=(1<<31-wf(42|s)+1)-1,I&=w&~(Y&~ie),I=I&201326741?I&201326741|1:I?I|2:0}I!==0&&(m=!0,ld(b,I))}else I=Jr,I=ht(b,b===$i?I:0,b.cancelPendingCommit!==null||b.timeoutHandle!==H3),(I&3)===0||et(b,I)||(m=!0,ld(b,I));b=b.next}while(m);Woe=!1}}function Ts(){su()}function su(){aj=joe=zoe=!1;var s=0;U3!==0&&(Tp()&&(s=U3),U3=0);for(var l=Tb(),m=null,b=ij;b!==null;){var w=b.next,I=Cu(b,l);I===0?(b.next=null,m===null?ij=w:m.next=w,w===null&&(Q4=m)):(m=b,(s!==0||(I&3)!==0)&&(aj=!0)),b=w}oi(s,!1)}function Cu(s,l){for(var m=s.suspendedLanes,b=s.pingedLanes,w=s.expirationTimes,I=s.pendingLanes&-62914561;0<I;){var Y=31-wf(I),ie=1<<Y,fe=w[Y];fe===-1?((ie&m)===0||(ie&b)!==0)&&(w[Y]=fn(ie,l)):fe<=l&&(s.expiredLanes|=ie),I&=~ie}if(l=$i,m=Jr,m=ht(s,s===l?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==H3),b=s.callbackNode,m===0||s===l&&(hi===P3||hi===M3)||s.cancelPendingCommit!==null)return b!==null&&tc(b),s.callbackNode=null,s.callbackPriority=0;if((m&3)===0||et(s,m)){if(l=m&-m,l!==s.callbackPriority||Je.actQueue!==null&&b!==Voe)tc(b);else return l;switch(Hr(m)){case Yh:case Ty:m=jre;break;case Rb:m=y4;break;case Nz:m=Wre;break;default:m=y4}return b=cu.bind(null,s),Je.actQueue!==null?(Je.actQueue.push(b),m=Voe):m=Hre(m,b),s.callbackPriority=l,s.callbackNode=m,l}return b!==null&&tc(b),s.callbackPriority=2,s.callbackNode=null,2}function cu(s,l){if(Gz=Vz=!1,Tl!==L3&&Tl!==Loe)return s.callbackNode=null,s.callbackPriority=0,null;var m=s.callbackNode;if(Ia(!0)&&s.callbackNode!==m)return null;var b=Jr;return b=ht(s,s===$i?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==H3),b===0?null:(ke(s,b,l),Cu(s,Tb()),s.callbackNode!=null&&s.callbackNode===m?cu.bind(null,s):null)}function ld(s,l){if(Ia())return null;Vz=Gz,Gz=!1,ke(s,l,!0)}function tc(s){s!==Voe&&s!==null&&Spt(s)}function bl(){Je.actQueue!==null&&Je.actQueue.push(function(){return su(),null}),imt(function(){(si&(Sf|ky))!==Qh?Hre(zre,Ts):su()})}function Ru(){return U3===0&&(U3=Zt()),U3}function vl(s){return s==null||typeof s==\"symbol\"||typeof s==\"boolean\"?null:typeof s==\"function\"?s:(O(s,\"action\"),Wg(\"\"+s))}function wl(s,l){var m=l.ownerDocument.createElement(\"input\");return m.name=l.name,m.value=l.value,s.id&&m.setAttribute(\"form\",s.id),l.parentNode.insertBefore(m,l),s=new FormData(s),m.parentNode.removeChild(m),s}function Cc(s,l,m,b,w){if(l===\"submit\"&&m&&m.stateNode===w){var I=vl((w[Np]||null).action),Y=b.submitter;Y&&(l=(l=Y[Np]||null)?vl(l.formAction):Y.getAttribute(\"formAction\"),l!==null&&(I=l,Y=null));var ie=new Bz(\"action\",\"action\",null,b,w);s.push({event:ie,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(U3!==0){var fe=Y?wl(w,Y):new FormData(w),ge={pending:!0,data:fe,method:w.method,action:I};Object.freeze(ge),cb(m,ge,null,fe)}}else typeof I==\"function\"&&(ie.preventDefault(),fe=Y?wl(w,Y):new FormData(w),ge={pending:!0,data:fe,method:w.method,action:I},Object.freeze(ge),cb(m,ge,I,fe))},currentTarget:w}]})}}function nc(s,l,m){s.currentTarget=m;try{l(s)}catch(b){Soe(b)}s.currentTarget=null}function Vh(s,l){l=(l&4)!==0;for(var m=0;m<s.length;m++){var b=s[m];e:{var w=void 0,I=b.event;if(b=b.listeners,l)for(var Y=b.length-1;0<=Y;Y--){var ie=b[Y],fe=ie.instance,ge=ie.currentTarget;if(ie=ie.listener,fe!==w&&I.isPropagationStopped())break e;fe!==null?Yt(fe,nc,I,ie,ge):nc(I,ie,ge),w=fe}else for(Y=0;Y<b.length;Y++){if(ie=b[Y],fe=ie.instance,ge=ie.currentTarget,ie=ie.listener,fe!==w&&I.isPropagationStopped())break e;fe!==null?Yt(fe,nc,I,ie,ge):nc(I,ie,ge),w=fe}}}}function Tn(s,l){Goe.has(s)||console.error(\\'Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.\\',s);var m=l[Vre];m===void 0&&(m=l[Vre]=new Set);var b=s+\"__bubble\";m.has(b)||(c0(l,s,2,!1),m.add(b))}function dd(s,l,m){Goe.has(s)&&!l&&console.error(\\'Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.\\',s);var b=0;l&&(b|=4),c0(m,s,b,l)}function fd(s){if(!s[sj]){s[sj]=!0,Oxe.forEach(function(m){m!==\"selectionchange\"&&(Goe.has(m)||dd(m,!1,s),dd(m,!0,s))});var l=s.nodeType===9?s:s.ownerDocument;l===null||l[sj]||(l[sj]=!0,dd(\"selectionchange\",!1,l))}}function c0(s,l,m,b){switch(Exe(l)){case Yh:var w=mpt;break;case Ty:w=gpt;break;default:w=Rre}m=w.bind(null,l,m,s),w=void 0,!Xre||l!==\"touchstart\"&&l!==\"touchmove\"&&l!==\"wheel\"||(w=!0),b?w!==void 0?s.addEventListener(l,m,{capture:!0,passive:w}):s.addEventListener(l,m,!0):w!==void 0?s.addEventListener(l,m,{passive:w}):s.addEventListener(l,m,!1)}function uu(s,l,m,b,w){var I=b;if((l&1)===0&&(l&2)===0&&b!==null)e:for(;;){if(b===null)return;var Y=b.tag;if(Y===3||Y===4){var ie=b.stateNode.containerInfo;if(ie===w)break;if(Y===4)for(Y=b.return;Y!==null;){var fe=Y.tag;if((fe===3||fe===4)&&Y.stateNode.containerInfo===w)return;Y=Y.return}for(;ie!==null;){if(Y=la(ie),Y===null)return;if(fe=Y.tag,fe===5||fe===6||fe===26||fe===27){b=I=Y;continue e}ie=ie.parentNode}}b=b.return}j1(function(){var ge=I,We=Wm(m),Xe=[];e:{var je=xEe.get(s);if(je!==void 0){var tt=Bz,ln=s;switch(s){case\"keypress\":if(Oh(m)===0)break e;case\"keydown\":case\"keyup\":tt=fht;break;case\"focusin\":ln=\"focus\",tt=noe;break;case\"focusout\":ln=\"blur\",tt=noe;break;case\"beforeblur\":case\"afterblur\":tt=noe;break;case\"click\":if(m.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":tt=sEe;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":tt=eht;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":tt=mht;break;case yEe:case bEe:case vEe:tt=rht;break;case wEe:tt=yht;break;case\"scroll\":case\"scrollend\":tt=Xpt;break;case\"wheel\":tt=vht;break;case\"copy\":case\"cut\":case\"paste\":tt=iht;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":tt=uEe;break;case\"toggle\":case\"beforetoggle\":tt=xht}var Vn=(l&4)!==0,ea=!Vn&&(s===\"scroll\"||s===\"scrollend\"),lo=Vn?je!==null?je+\"Capture\":null:je;Vn=[];for(var _e=ge,Se;_e!==null;){var Pe=_e;if(Se=Pe.stateNode,Pe=Pe.tag,Pe!==5&&Pe!==26&&Pe!==27||Se===null||lo===null||(Pe=Ih(_e,lo),Pe!=null&&Vn.push(pd(_e,Pe,Se))),ea)break;_e=_e.return}0<Vn.length&&(je=new tt(je,ln,null,m,We),Xe.push({event:je,listeners:Vn}))}}if((l&7)===0){e:{if(je=s===\"mouseover\"||s===\"pointerover\",tt=s===\"mouseout\"||s===\"pointerout\",je&&m!==jP&&(ln=m.relatedTarget||m.fromElement)&&(la(ln)||ln[hA]))break e;if((tt||je)&&(je=We.window===We?We:(je=We.ownerDocument)?je.defaultView||je.parentWindow:window,tt?(ln=m.relatedTarget||m.toElement,tt=ge,ln=ln?la(ln):null,ln!==null&&(ea=S(ln),Vn=ln.tag,ln!==ea||Vn!==5&&Vn!==27&&Vn!==6)&&(ln=null)):(tt=null,ln=ge),tt!==ln)){if(Vn=sEe,Pe=\"onMouseLeave\",lo=\"onMouseEnter\",_e=\"mouse\",(s===\"pointerout\"||s===\"pointerover\")&&(Vn=uEe,Pe=\"onPointerLeave\",lo=\"onPointerEnter\",_e=\"pointer\"),ea=tt==null?je:Ie(tt),Se=ln==null?je:Ie(ln),je=new Vn(Pe,_e+\"leave\",tt,m,We),je.target=ea,je.relatedTarget=Se,Pe=null,la(We)===ge&&(Vn=new Vn(lo,_e+\"enter\",ln,m,We),Vn.target=Se,Vn.relatedTarget=ea,Pe=Vn),ea=Pe,tt&&ln)t:{for(Vn=tt,lo=ln,_e=0,Se=Vn;Se;Se=us(Se))_e++;for(Se=0,Pe=lo;Pe;Pe=us(Pe))Se++;for(;0<_e-Se;)Vn=us(Vn),_e--;for(;0<Se-_e;)lo=us(lo),Se--;for(;_e--;){if(Vn===lo||lo!==null&&Vn===lo.alternate)break t;Vn=us(Vn),lo=us(lo)}Vn=null}else Vn=null;tt!==null&&pi(Xe,je,tt,Vn,!1),ln!==null&&ea!==null&&pi(Xe,ea,ln,Vn,!0)}}e:{if(je=ge?Ie(ge):window,tt=je.nodeName&&je.nodeName.toLowerCase(),tt===\"select\"||tt===\"input\"&&je.type===\"file\")var nt=Rw;else if(Cw(je))if(mEe)nt=CE;else{nt=GR;var zt=M5}else tt=je.nodeName,!tt||tt.toLowerCase()!==\"input\"||je.type!==\"checkbox\"&&je.type!==\"radio\"?ge&&nd(ge.elementType)&&(nt=Rw):nt=Kg;if(nt&&(nt=nt(s,ge))){TE(Xe,nt,m,We);break e}zt&&zt(s,je,ge),s===\"focusout\"&&ge&&je.type===\"number\"&&ge.memoizedProps.value!=null&&il(je,\"number\",je.value)}switch(zt=ge?Ie(ge):window,s){case\"focusin\":(Cw(zt)||zt.contentEditable===\"true\")&&(S4=zt,ooe=ge,ZP=null);break;case\"focusout\":ZP=ooe=S4=null;break;case\"mousedown\":ioe=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":ioe=!1,Qm(Xe,m,We);break;case\"selectionchange\":if(Sht)break;case\"keydown\":case\"keyup\":Qm(Xe,m,We)}var cr;if(roe)e:{switch(s){case\"compositionstart\":var dn=\"onCompositionStart\";break e;case\"compositionend\":dn=\"onCompositionEnd\";break e;case\"compositionupdate\":dn=\"onCompositionUpdate\";break e}dn=void 0}else _4?qg(s,m)&&(dn=\"onCompositionEnd\"):s===\"keydown\"&&m.keyCode===lEe&&(dn=\"onCompositionStart\");dn&&(dEe&&m.locale!==\"ko\"&&(_4||dn!==\"onCompositionStart\"?dn===\"onCompositionEnd\"&&_4&&(cr=Vg()):(mA=We,$re=\"value\"in mA?mA.value:mA.textContent,_4=!0)),zt=Ga(ge,dn),0<zt.length&&(dn=new cEe(dn,s,null,m,We),Xe.push({event:dn,listeners:zt}),cr?dn.data=cr:(cr=Gm(m),cr!==null&&(dn.data=cr)))),(cr=Aht?V1(s,m):G1(s,m))&&(dn=Ga(ge,\"onBeforeInput\"),0<dn.length&&(zt=new sht(\"onBeforeInput\",\"beforeinput\",null,m,We),Xe.push({event:zt,listeners:dn}),zt.data=cr)),Cc(Xe,s,ge,m,We)}Vh(Xe,l)})}function pd(s,l,m){return{instance:s,listener:l,currentTarget:m}}function Ga(s,l){for(var m=l+\"Capture\",b=[];s!==null;){var w=s,I=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||I===null||(w=Ih(s,m),w!=null&&b.unshift(pd(s,w,I)),w=Ih(s,l),w!=null&&b.push(pd(s,w,I))),s.tag===3)return b;s=s.return}return[]}function us(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function pi(s,l,m,b,w){for(var I=l._reactName,Y=[];m!==null&&m!==b;){var ie=m,fe=ie.alternate,ge=ie.stateNode;if(ie=ie.tag,fe!==null&&fe===b)break;ie!==5&&ie!==26&&ie!==27||ge===null||(fe=ge,w?(ge=Ih(m,I),ge!=null&&Y.unshift(pd(m,ge,fe))):w||(ge=Ih(m,I),ge!=null&&Y.push(pd(m,ge,fe)))),m=m.return}Y.length!==0&&s.push({event:l,listeners:Y})}function Ji(s,l){N5(s,l),s!==\"input\"&&s!==\"textarea\"&&s!==\"select\"||l==null||l.value!==null||iEe||(iEe=!0,s===\"select\"&&l.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",s):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",s));var m={registrationNameDependencies:A3,possibleRegistrationNames:Gre};nd(s)||typeof l.is==\"string\"||tu(s,l,m),l.contentEditable&&!l.suppressContentEditableWarning&&l.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\")}function Vr(s,l,m,b){l!==m&&(m=Cs(m),Cs(l)!==m&&(b[s]=l))}function wy(s,l,m){l.forEach(function(b){m[bf(b)]=b===\"style\"?Ep(s):s.getAttribute(b)})}function Xi(s,l){l===!1?console.error(\"Expected `%s` listener to be a function, instead got `false`.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\",s,s,s):console.error(\"Expected `%s` listener to be a function, instead got a value of `%s` type.\",s,typeof l)}function xl(s,l){return s=s.namespaceURI===Mz||s.namespaceURI===w4?s.ownerDocument.createElementNS(s.namespaceURI,s.tagName):s.ownerDocument.createElement(s.tagName),s.innerHTML=l,s.innerHTML}function Cs(s){return W(s)&&(console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",H(s)),G(s)),(typeof s==\"string\"?s:\"\"+s).replace(Qht,`\\n`).replace(Jht,\"\")}function xy(s,l){return l=Cs(l),Cs(s)===l}function Si(){}function Mr(s,l,m,b,w,I){switch(m){case\"children\":typeof b==\"string\"?(pp(b,l,!1),l===\"body\"||l===\"textarea\"&&b===\"\"||Rh(s,b)):(typeof b==\"number\"||typeof b==\"bigint\")&&(pp(\"\"+b,l,!1),l!==\"body\"&&Rh(s,\"\"+b));break;case\"className\":un(s,\"class\",b);break;case\"tabIndex\":un(s,\"tabindex\",b);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":un(s,m,b);break;case\"style\":as(s,b,I);break;case\"data\":if(l!==\"object\"){un(s,\"data\",b);break}case\"src\":case\"href\":if(b===\"\"&&(l!==\"a\"||m!==\"href\")){console.error(m===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',m,m),s.removeAttribute(m);break}if(b==null||typeof b==\"function\"||typeof b==\"symbol\"||typeof b==\"boolean\"){s.removeAttribute(m);break}O(b,m),b=Wg(\"\"+b),s.setAttribute(m,b);break;case\"action\":case\"formAction\":if(b!=null&&(l===\"form\"?m===\"formAction\"?console.error(\"You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.\"):typeof b==\"function\"&&(w.encType==null&&w.method==null||lj||(lj=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),w.target==null||uj||(uj=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"))):l===\"input\"||l===\"button\"?m===\"action\"?console.error(\"You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.\"):l!==\"input\"||w.type===\"submit\"||w.type===\"image\"||cj?l!==\"button\"||w.type==null||w.type===\"submit\"||cj?typeof b==\"function\"&&(w.name==null||LAe||(LAe=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),w.formEncType==null&&w.formMethod==null||lj||(lj=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),w.formTarget==null||uj||(uj=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"))):(cj=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\')):(cj=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\')):console.error(m===\"action\"?\"You can only pass the action prop to <form>.\":\"You can only pass the formAction prop to <input> or <button>.\")),typeof b==\"function\"){s.setAttribute(m,\"javascript:throw new Error(\\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\\')\");break}else typeof I==\"function\"&&(m===\"formAction\"?(l!==\"input\"&&Mr(s,l,\"name\",w.name,w,null),Mr(s,l,\"formEncType\",w.formEncType,w,null),Mr(s,l,\"formMethod\",w.formMethod,w,null),Mr(s,l,\"formTarget\",w.formTarget,w,null)):(Mr(s,l,\"encType\",w.encType,w,null),Mr(s,l,\"method\",w.method,w,null),Mr(s,l,\"target\",w.target,w,null)));if(b==null||typeof b==\"symbol\"||typeof b==\"boolean\"){s.removeAttribute(m);break}O(b,m),b=Wg(\"\"+b),s.setAttribute(m,b);break;case\"onClick\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),s.onclick=Si);break;case\"onScroll\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),Tn(\"scroll\",s));break;case\"onScrollEnd\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),Tn(\"scrollend\",s));break;case\"dangerouslySetInnerHTML\":if(b!=null){if(typeof b!=\"object\"||!(\"__html\"in b))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(m=b.__html,m!=null){if(w.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");s.innerHTML=m}}break;case\"multiple\":s.multiple=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;case\"muted\":s.muted=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(b==null||typeof b==\"function\"||typeof b==\"boolean\"||typeof b==\"symbol\"){s.removeAttribute(\"xlink:href\");break}O(b,m),m=Wg(\"\"+b),s.setAttributeNS(F3,\"xlink:href\",m);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"?(O(b,m),s.setAttribute(m,\"\"+b)):s.removeAttribute(m);break;case\"inert\":b!==\"\"||dj[m]||(dj[m]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",m));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":b&&typeof b!=\"function\"&&typeof b!=\"symbol\"?s.setAttribute(m,\"\"):s.removeAttribute(m);break;case\"capture\":case\"download\":b===!0?s.setAttribute(m,\"\"):b!==!1&&b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"?(O(b,m),s.setAttribute(m,b)):s.removeAttribute(m);break;case\"cols\":case\"rows\":case\"size\":case\"span\":b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"&&!isNaN(b)&&1<=b?(O(b,m),s.setAttribute(m,b)):s.removeAttribute(m);break;case\"rowSpan\":case\"start\":b==null||typeof b==\"function\"||typeof b==\"symbol\"||isNaN(b)?s.removeAttribute(m):(O(b,m),s.setAttribute(m,b));break;case\"popover\":Tn(\"beforetoggle\",s),Tn(\"toggle\",s),rr(s,\"popover\",b);break;case\"xlinkActuate\":Ni(s,F3,\"xlink:actuate\",b);break;case\"xlinkArcrole\":Ni(s,F3,\"xlink:arcrole\",b);break;case\"xlinkRole\":Ni(s,F3,\"xlink:role\",b);break;case\"xlinkShow\":Ni(s,F3,\"xlink:show\",b);break;case\"xlinkTitle\":Ni(s,F3,\"xlink:title\",b);break;case\"xlinkType\":Ni(s,F3,\"xlink:type\",b);break;case\"xmlBase\":Ni(s,qoe,\"xml:base\",b);break;case\"xmlLang\":Ni(s,qoe,\"xml:lang\",b);break;case\"xmlSpace\":Ni(s,qoe,\"xml:space\",b);break;case\"is\":I!=null&&console.error(\\'Cannot update the \"is\" prop after it has been initialized.\\'),rr(s,\"is\",b);break;case\"innerText\":case\"textContent\":break;case\"popoverTarget\":BAe||b==null||typeof b!=\"object\"||(BAe=!0,console.error(\"The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.\",b));default:!(2<m.length)||m[0]!==\"o\"&&m[0]!==\"O\"||m[1]!==\"n\"&&m[1]!==\"N\"?(m=mc(m),rr(s,m,b)):A3.hasOwnProperty(m)&&b!=null&&typeof b!=\"function\"&&Xi(m,b)}}function hd(s,l,m,b,w,I){switch(m){case\"style\":as(s,b,I);break;case\"dangerouslySetInnerHTML\":if(b!=null){if(typeof b!=\"object\"||!(\"__html\"in b))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(m=b.__html,m!=null){if(w.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");s.innerHTML=m}}break;case\"children\":typeof b==\"string\"?Rh(s,b):(typeof b==\"number\"||typeof b==\"bigint\")&&Rh(s,\"\"+b);break;case\"onScroll\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),Tn(\"scroll\",s));break;case\"onScrollEnd\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),Tn(\"scrollend\",s));break;case\"onClick\":b!=null&&(typeof b!=\"function\"&&Xi(m,b),s.onclick=Si);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(A3.hasOwnProperty(m))b!=null&&typeof b!=\"function\"&&Xi(m,b);else e:{if(m[0]===\"o\"&&m[1]===\"n\"&&(w=m.endsWith(\"Capture\"),l=m.slice(2,w?m.length-7:void 0),I=s[Np]||null,I=I!=null?I[m]:null,typeof I==\"function\"&&s.removeEventListener(l,I,w),typeof b==\"function\")){typeof I!=\"function\"&&I!==null&&(m in s?s[m]=null:s.hasAttribute(m)&&s.removeAttribute(m)),s.addEventListener(l,b,w);break e}m in s?s[m]=b:b===!0?s.setAttribute(m,\"\"):rr(s,m,b)}}}function ii(s,l,m){switch(Ji(l,m),l){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":Tn(\"error\",s),Tn(\"load\",s);var b=!1,w=!1,I;for(I in m)if(m.hasOwnProperty(I)){var Y=m[I];if(Y!=null)switch(I){case\"src\":b=!0;break;case\"srcSet\":w=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(l+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Mr(s,l,I,Y,m,null)}}w&&Mr(s,l,\"srcSet\",m.srcSet,m,null),b&&Mr(s,l,\"src\",m.src,m,null);return;case\"input\":Gt(\"input\",m),Tn(\"invalid\",s);var ie=I=Y=w=null,fe=null,ge=null;for(b in m)if(m.hasOwnProperty(b)){var We=m[b];if(We!=null)switch(b){case\"name\":w=We;break;case\"type\":Y=We;break;case\"checked\":fe=We;break;case\"defaultChecked\":ge=We;break;case\"value\":I=We;break;case\"defaultValue\":ie=We;break;case\"children\":case\"dangerouslySetInnerHTML\":if(We!=null)throw Error(l+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:Mr(s,l,b,We,m,null)}}sf(s,m),cf(s,I,ie,fe,ge,Y,w,!1),Yr(s);return;case\"select\":Gt(\"select\",m),Tn(\"invalid\",s),b=Y=I=null;for(w in m)if(m.hasOwnProperty(w)&&(ie=m[w],ie!=null))switch(w){case\"value\":I=ie;break;case\"defaultValue\":Y=ie;break;case\"multiple\":b=ie;default:Mr(s,l,w,ie,m,null)}ed(s,m),l=I,m=Y,s.multiple=!!b,l!=null?hc(s,!!b,l,!1):m!=null&&hc(s,!!b,m,!0);return;case\"textarea\":Gt(\"textarea\",m),Tn(\"invalid\",s),I=w=b=null;for(Y in m)if(m.hasOwnProperty(Y)&&(ie=m[Y],ie!=null))switch(Y){case\"value\":b=ie;break;case\"defaultValue\":w=ie;break;case\"children\":I=ie;break;case\"dangerouslySetInnerHTML\":if(ie!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:Mr(s,l,Y,ie,m,null)}eu(s,m),up(s,b,w,I),Yr(s);return;case\"option\":Xc(s,m);for(fe in m)if(m.hasOwnProperty(fe)&&(b=m[fe],b!=null))switch(fe){case\"selected\":s.selected=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;default:Mr(s,l,fe,b,m,null)}return;case\"dialog\":Tn(\"beforetoggle\",s),Tn(\"toggle\",s),Tn(\"cancel\",s),Tn(\"close\",s);break;case\"iframe\":case\"object\":Tn(\"load\",s);break;case\"video\":case\"audio\":for(b=0;b<v9.length;b++)Tn(v9[b],s);break;case\"image\":Tn(\"error\",s),Tn(\"load\",s);break;case\"details\":Tn(\"toggle\",s);break;case\"embed\":case\"source\":case\"link\":Tn(\"error\",s),Tn(\"load\",s);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(ge in m)if(m.hasOwnProperty(ge)&&(b=m[ge],b!=null))switch(ge){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(l+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Mr(s,l,ge,b,m,null)}return;default:if(nd(l)){for(We in m)m.hasOwnProperty(We)&&(b=m[We],b!==void 0&&hd(s,l,We,b,m,void 0));return}}for(ie in m)m.hasOwnProperty(ie)&&(b=m[ie],b!=null&&Mr(s,l,ie,b,m,null))}function Gh(s,l,m,b){switch(Ji(l,b),l){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var w=null,I=null,Y=null,ie=null,fe=null,ge=null,We=null;for(tt in m){var Xe=m[tt];if(m.hasOwnProperty(tt)&&Xe!=null)switch(tt){case\"checked\":break;case\"value\":break;case\"defaultValue\":fe=Xe;default:b.hasOwnProperty(tt)||Mr(s,l,tt,null,b,Xe)}}for(var je in b){var tt=b[je];if(Xe=m[je],b.hasOwnProperty(je)&&(tt!=null||Xe!=null))switch(je){case\"type\":I=tt;break;case\"name\":w=tt;break;case\"checked\":ge=tt;break;case\"defaultChecked\":We=tt;break;case\"value\":Y=tt;break;case\"defaultValue\":ie=tt;break;case\"children\":case\"dangerouslySetInnerHTML\":if(tt!=null)throw Error(l+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:tt!==Xe&&Mr(s,l,je,tt,b,Xe)}}l=m.type===\"checkbox\"||m.type===\"radio\"?m.checked!=null:m.value!=null,b=b.type===\"checkbox\"||b.type===\"radio\"?b.checked!=null:b.value!=null,l||!b||DAe||(console.error(\"A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),DAe=!0),!l||b||MAe||(console.error(\"A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),MAe=!0),Ua(s,Y,ie,fe,ge,We,I,w);return;case\"select\":tt=Y=ie=je=null;for(I in m)if(fe=m[I],m.hasOwnProperty(I)&&fe!=null)switch(I){case\"value\":break;case\"multiple\":tt=fe;default:b.hasOwnProperty(I)||Mr(s,l,I,null,b,fe)}for(w in b)if(I=b[w],fe=m[w],b.hasOwnProperty(w)&&(I!=null||fe!=null))switch(w){case\"value\":je=I;break;case\"defaultValue\":ie=I;break;case\"multiple\":Y=I;default:I!==fe&&Mr(s,l,w,I,b,fe)}b=ie,l=Y,m=tt,je!=null?hc(s,!!l,je,!1):!!m!=!!l&&(b!=null?hc(s,!!l,b,!0):hc(s,!!l,l?[]:\"\",!1));return;case\"textarea\":tt=je=null;for(ie in m)if(w=m[ie],m.hasOwnProperty(ie)&&w!=null&&!b.hasOwnProperty(ie))switch(ie){case\"value\":break;case\"children\":break;default:Mr(s,l,ie,null,b,w)}for(Y in b)if(w=b[Y],I=m[Y],b.hasOwnProperty(Y)&&(w!=null||I!=null))switch(Y){case\"value\":je=w;break;case\"defaultValue\":tt=w;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(w!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:w!==I&&Mr(s,l,Y,w,b,I)}td(s,je,tt);return;case\"option\":for(var ln in m)if(je=m[ln],m.hasOwnProperty(ln)&&je!=null&&!b.hasOwnProperty(ln))switch(ln){case\"selected\":s.selected=!1;break;default:Mr(s,l,ln,null,b,je)}for(fe in b)if(je=b[fe],tt=m[fe],b.hasOwnProperty(fe)&&je!==tt&&(je!=null||tt!=null))switch(fe){case\"selected\":s.selected=je&&typeof je!=\"function\"&&typeof je!=\"symbol\";break;default:Mr(s,l,fe,je,b,tt)}return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var Vn in m)je=m[Vn],m.hasOwnProperty(Vn)&&je!=null&&!b.hasOwnProperty(Vn)&&Mr(s,l,Vn,null,b,je);for(ge in b)if(je=b[ge],tt=m[ge],b.hasOwnProperty(ge)&&je!==tt&&(je!=null||tt!=null))switch(ge){case\"children\":case\"dangerouslySetInnerHTML\":if(je!=null)throw Error(l+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:Mr(s,l,ge,je,b,tt)}return;default:if(nd(l)){for(var ea in m)je=m[ea],m.hasOwnProperty(ea)&&je!==void 0&&!b.hasOwnProperty(ea)&&hd(s,l,ea,void 0,b,je);for(We in b)je=b[We],tt=m[We],!b.hasOwnProperty(We)||je===tt||je===void 0&&tt===void 0||hd(s,l,We,je,b,tt);return}}for(var lo in m)je=m[lo],m.hasOwnProperty(lo)&&je!=null&&!b.hasOwnProperty(lo)&&Mr(s,l,lo,null,b,je);for(Xe in b)je=b[Xe],tt=m[Xe],!b.hasOwnProperty(Xe)||je===tt||je==null&&tt==null||Mr(s,l,Xe,je,b,tt)}function bf(s){switch(s){case\"class\":return\"className\";case\"for\":return\"htmlFor\";default:return s}}function Ep(s){var l={};s=s.style;for(var m=0;m<s.length;m++){var b=s[m];l[b]=s.getPropertyValue(b)}return l}function Ap(s,l,m){if(l!=null&&typeof l!=\"object\")console.error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");else{var b,w=b=\"\",I;for(I in l)if(l.hasOwnProperty(I)){var Y=l[I];Y!=null&&typeof Y!=\"boolean\"&&Y!==\"\"&&(I.indexOf(\"--\")===0?(j(Y,I),b+=w+I+\":\"+(\"\"+Y).trim()):typeof Y!=\"number\"||Y===0||rEe.has(I)?(j(Y,I),b+=w+I.replace(Xxe,\"-$1\").toLowerCase().replace($xe,\"-ms-\")+\":\"+(\"\"+Y).trim()):b+=w+I.replace(Xxe,\"-$1\").toLowerCase().replace($xe,\"-ms-\")+\":\"+Y+\"px\",w=\";\")}b=b||null,l=s.getAttribute(\"style\"),l!==b&&(b=Cs(b),Cs(l)!==b&&(m.style=Ep(s)))}}function Rc(s,l,m,b,w,I){if(w.delete(m),s=s.getAttribute(m),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(O(b,l),s===\"\"+b)return}Vr(l,s,b,I)}function _p(s,l,m,b,w,I){if(w.delete(m),s=s.getAttribute(m),s===null){switch(typeof b){case\"function\":case\"symbol\":return}if(!b)return}else switch(typeof b){case\"function\":case\"symbol\":break;default:if(b)return}Vr(l,s,b,I)}function md(s,l,m,b,w,I){if(w.delete(m),s=s.getAttribute(m),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":break;default:if(O(b,m),s===\"\"+b)return}Vr(l,s,b,I)}function gd(s,l,m,b,w,I){if(w.delete(m),s=s.getAttribute(m),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return;default:if(isNaN(b))return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!isNaN(b)&&(O(b,l),s===\"\"+b))return}Vr(l,s,b,I)}function lu(s,l,m,b,w,I){if(w.delete(m),s=s.getAttribute(m),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(O(b,l),m=Wg(\"\"+b),s===m)return}Vr(l,s,b,I)}function yd(s,l,m,b){for(var w={},I=new Set,Y=s.attributes,ie=0;ie<Y.length;ie++)switch(Y[ie].name.toLowerCase()){case\"value\":break;case\"checked\":break;case\"selected\":break;default:I.add(Y[ie].name)}if(nd(l)){for(var fe in m)if(m.hasOwnProperty(fe)){var ge=m[fe];if(ge!=null){if(A3.hasOwnProperty(fe))typeof ge!=\"function\"&&Xi(fe,ge);else if(m.suppressHydrationWarning!==!0)switch(fe){case\"children\":typeof ge!=\"string\"&&typeof ge!=\"number\"||Vr(\"children\",s.textContent,ge,w);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":Y=s.innerHTML,ge=ge?ge.__html:void 0,ge!=null&&(ge=xl(s,ge),Vr(fe,Y,ge,w));continue;case\"style\":I.delete(fe),Ap(s,ge,w);continue;case\"offsetParent\":case\"offsetTop\":case\"offsetLeft\":case\"offsetWidth\":case\"offsetHeight\":case\"isContentEditable\":case\"outerText\":case\"outerHTML\":I.delete(fe.toLowerCase()),console.error(\"Assignment to read-only property will result in a no-op: `%s`\",fe);continue;case\"className\":I.delete(\"class\"),Y=On(s,\"class\",ge),Vr(\"className\",Y,ge,w);continue;default:b.context===m2&&l!==\"svg\"&&l!==\"math\"?I.delete(fe.toLowerCase()):I.delete(fe),Y=On(s,fe,ge),Vr(fe,Y,ge,w)}}}}else for(ge in m)if(m.hasOwnProperty(ge)&&(fe=m[ge],fe!=null)){if(A3.hasOwnProperty(ge))typeof fe!=\"function\"&&Xi(ge,fe);else if(m.suppressHydrationWarning!==!0)switch(ge){case\"children\":typeof fe!=\"string\"&&typeof fe!=\"number\"||Vr(\"children\",s.textContent,fe,w);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"value\":case\"checked\":case\"selected\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":Y=s.innerHTML,fe=fe?fe.__html:void 0,fe!=null&&(fe=xl(s,fe),Y!==fe&&(w[ge]={__html:Y}));continue;case\"className\":Rc(s,ge,\"class\",fe,I,w);continue;case\"tabIndex\":Rc(s,ge,\"tabindex\",fe,I,w);continue;case\"style\":I.delete(ge),Ap(s,fe,w);continue;case\"multiple\":I.delete(ge),Vr(ge,s.multiple,fe,w);continue;case\"muted\":I.delete(ge),Vr(ge,s.muted,fe,w);continue;case\"autoFocus\":I.delete(\"autofocus\"),Vr(ge,s.autofocus,fe,w);continue;case\"data\":if(l!==\"object\"){I.delete(ge),Y=s.getAttribute(\"data\"),Vr(ge,Y,fe,w);continue}case\"src\":case\"href\":if(!(fe!==\"\"||l===\"a\"&&ge===\"href\"||l===\"object\"&&ge===\"data\")){console.error(ge===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',ge,ge);continue}lu(s,ge,ge,fe,I,w);continue;case\"action\":case\"formAction\":if(Y=s.getAttribute(ge),typeof fe==\"function\"){I.delete(ge.toLowerCase()),ge===\"formAction\"?(I.delete(\"name\"),I.delete(\"formenctype\"),I.delete(\"formmethod\"),I.delete(\"formtarget\")):(I.delete(\"enctype\"),I.delete(\"method\"),I.delete(\"target\"));continue}else if(Y===Xht){I.delete(ge.toLowerCase()),Vr(ge,\"function\",fe,w);continue}lu(s,ge,ge.toLowerCase(),fe,I,w);continue;case\"xlinkHref\":lu(s,ge,\"xlink:href\",fe,I,w);continue;case\"contentEditable\":md(s,ge,\"contenteditable\",fe,I,w);continue;case\"spellCheck\":md(s,ge,\"spellcheck\",fe,I,w);continue;case\"draggable\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":md(s,ge,ge,fe,I,w);continue;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":_p(s,ge,ge.toLowerCase(),fe,I,w);continue;case\"capture\":case\"download\":e:{ie=s;var We=Y=ge,Xe=w;if(I.delete(We),ie=ie.getAttribute(We),ie===null)switch(typeof fe){case\"undefined\":case\"function\":case\"symbol\":break e;default:if(fe===!1)break e}else if(fe!=null)switch(typeof fe){case\"function\":case\"symbol\":break;case\"boolean\":if(fe===!0&&ie===\"\")break e;break;default:if(O(fe,Y),ie===\"\"+fe)break e}Vr(Y,ie,fe,Xe)}continue;case\"cols\":case\"rows\":case\"size\":case\"span\":e:{if(ie=s,We=Y=ge,Xe=w,I.delete(We),ie=ie.getAttribute(We),ie===null)switch(typeof fe){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":break e;default:if(isNaN(fe)||1>fe)break e}else if(fe!=null)switch(typeof fe){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!(isNaN(fe)||1>fe)&&(O(fe,Y),ie===\"\"+fe))break e}Vr(Y,ie,fe,Xe)}continue;case\"rowSpan\":gd(s,ge,\"rowspan\",fe,I,w);continue;case\"start\":gd(s,ge,ge,fe,I,w);continue;case\"xHeight\":Rc(s,ge,\"x-height\",fe,I,w);continue;case\"xlinkActuate\":Rc(s,ge,\"xlink:actuate\",fe,I,w);continue;case\"xlinkArcrole\":Rc(s,ge,\"xlink:arcrole\",fe,I,w);continue;case\"xlinkRole\":Rc(s,ge,\"xlink:role\",fe,I,w);continue;case\"xlinkShow\":Rc(s,ge,\"xlink:show\",fe,I,w);continue;case\"xlinkTitle\":Rc(s,ge,\"xlink:title\",fe,I,w);continue;case\"xlinkType\":Rc(s,ge,\"xlink:type\",fe,I,w);continue;case\"xmlBase\":Rc(s,ge,\"xml:base\",fe,I,w);continue;case\"xmlLang\":Rc(s,ge,\"xml:lang\",fe,I,w);continue;case\"xmlSpace\":Rc(s,ge,\"xml:space\",fe,I,w);continue;case\"inert\":fe!==\"\"||dj[ge]||(dj[ge]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",ge)),_p(s,ge,ge,fe,I,w);continue;default:if(!(2<ge.length)||ge[0]!==\"o\"&&ge[0]!==\"O\"||ge[1]!==\"n\"&&ge[1]!==\"N\"){ie=mc(ge),Y=!1,b.context===m2&&l!==\"svg\"&&l!==\"math\"?I.delete(ie.toLowerCase()):(We=ge.toLowerCase(),We=Dz.hasOwnProperty(We)&&Dz[We]||null,We!==null&&We!==ge&&(Y=!0,I.delete(We)),I.delete(ie));e:if(We=s,Xe=ie,ie=fe,mn(Xe))if(We.hasAttribute(Xe))We=We.getAttribute(Xe),O(ie,Xe),ie=We===\"\"+ie?ie:We;else{switch(typeof ie){case\"function\":case\"symbol\":break e;case\"boolean\":if(We=Xe.toLowerCase().slice(0,5),We!==\"data-\"&&We!==\"aria-\")break e}ie=ie===void 0?void 0:null}else ie=void 0;Y||Vr(ge,ie,fe,w)}}}return 0<I.size&&m.suppressHydrationWarning!==!0&&wy(s,I,w),Object.keys(w).length===0?null:w}function Oa(s,l){switch(s.length){case 0:return\"\";case 1:return s[0];case 2:return s[0]+\" \"+l+\" \"+s[1];default:return s.slice(0,-1).join(\", \")+\", \"+l+\" \"+s[s.length-1]}}function Ti(s){return s.nodeType===9?s:s.ownerDocument}function wb(s){switch(s){case w4:return J4;case Mz:return hj;default:return m2}}function Sp(s,l){if(s===m2)switch(l){case\"svg\":return J4;case\"math\":return hj;default:return m2}return s===J4&&l===\"foreignObject\"?m2:s}function Ey(s,l){return s===\"textarea\"||s===\"noscript\"||typeof l.children==\"string\"||typeof l.children==\"number\"||typeof l.children==\"bigint\"||typeof l.dangerouslySetInnerHTML==\"object\"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}function Tp(){var s=window.event;return s&&s.type===\"popstate\"?s===Qoe?!1:(Qoe=s,!0):(Qoe=null,!1)}function Cp(s){setTimeout(function(){throw s})}function xb(s,l,m){switch(l){case\"button\":case\"input\":case\"select\":case\"textarea\":m.autoFocus&&s.focus();break;case\"img\":m.src?s.src=m.src:m.srcSet&&(s.srcset=m.srcSet)}}function Rp(s,l,m,b){Gh(s,l,m,b),s[Np]=b}function El(s){Rh(s,\"\")}function u0(s,l,m){s.nodeValue=m}function Ip(s){return s===\"head\"}function Ay(s,l){s.removeChild(l)}function t2(s,l){(s.nodeType===9?s.body:s.nodeName===\"HTML\"?s.ownerDocument.body:s).removeChild(l)}function l0(s,l){var m=l,b=0,w=0;do{var I=m.nextSibling;if(s.removeChild(m),I&&I.nodeType===8)if(m=I.data,m===pj){if(0<b&&8>b){m=b;var Y=s.ownerDocument;if(m&emt&&d0(Y.documentElement),m&tmt&&d0(Y.body),m&nmt)for(m=Y.head,d0(m),Y=m.firstChild;Y;){var ie=Y.nextSibling,fe=Y.nodeName;Y[HP]||fe===\"SCRIPT\"||fe===\"STYLE\"||fe===\"LINK\"&&Y.rel.toLowerCase()===\"stylesheet\"||m.removeChild(Y),Y=ie}}if(w===0){s.removeChild(I),BP(l);return}w--}else m===fj||m===h2||m===w9?w++:b=m.charCodeAt(0)-48;else b=0;m=I}while(m);BP(l)}function h3(s){s=s.style,typeof s.setProperty==\"function\"?s.setProperty(\"display\",\"none\",\"important\"):s.display=\"none\"}function qh(s){s.nodeValue=\"\"}function m3(s,l){l=l[rmt],l=l!=null&&l.hasOwnProperty(\"display\")?l.display:null,s.style.display=l==null||typeof l==\"boolean\"?\"\":(\"\"+l).trim()}function _y(s,l){s.nodeValue=l}function Rs(s){var l=s.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var m=l;switch(l=l.nextSibling,m.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":Rs(m),zr(m);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(m.rel.toLowerCase()===\"stylesheet\")continue}s.removeChild(m)}}function g3(s,l,m,b){for(;s.nodeType===1;){var w=m;if(s.nodeName.toLowerCase()!==l.toLowerCase()){if(!b&&(s.nodeName!==\"INPUT\"||s.type!==\"hidden\"))break}else if(b){if(!s[HP])switch(l){case\"meta\":if(!s.hasAttribute(\"itemprop\"))break;return s;case\"link\":if(I=s.getAttribute(\"rel\"),I===\"stylesheet\"&&s.hasAttribute(\"data-precedence\"))break;if(I!==w.rel||s.getAttribute(\"href\")!==(w.href==null||w.href===\"\"?null:w.href)||s.getAttribute(\"crossorigin\")!==(w.crossOrigin==null?null:w.crossOrigin)||s.getAttribute(\"title\")!==(w.title==null?null:w.title))break;return s;case\"style\":if(s.hasAttribute(\"data-precedence\"))break;return s;case\"script\":if(I=s.getAttribute(\"src\"),(I!==(w.src==null?null:w.src)||s.getAttribute(\"type\")!==(w.type==null?null:w.type)||s.getAttribute(\"crossorigin\")!==(w.crossOrigin==null?null:w.crossOrigin))&&I&&s.hasAttribute(\"async\")&&!s.hasAttribute(\"itemprop\"))break;return s;default:return s}}else if(l===\"input\"&&s.type===\"hidden\"){O(w.name,\"name\");var I=w.name==null?null:\"\"+w.name;if(w.type===\"hidden\"&&s.getAttribute(\"name\")===I)return s}else return s;if(s=vf(s.nextSibling),s===null)break}return null}function l4(s,l,m){if(l===\"\")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!==\"INPUT\"||s.type!==\"hidden\")&&!m||(s=vf(s.nextSibling),s===null))return null;return s}function y3(s){return s.data===w9||s.data===h2&&s.ownerDocument.readyState===FAe}function b3(s,l){var m=s.ownerDocument;if(s.data!==h2||m.readyState===FAe)l();else{var b=function(){l(),m.removeEventListener(\"DOMContentLoaded\",b)};m.addEventListener(\"DOMContentLoaded\",b),s._reactRetry=b}}function vf(s){for(;s!=null;s=s.nextSibling){var l=s.nodeType;if(l===1||l===3)break;if(l===8){if(l=s.data,l===fj||l===w9||l===h2||l===Koe||l===UAe)break;if(l===pj)return null}}return s}function iA(s){if(s.nodeType===1){for(var l=s.nodeName.toLowerCase(),m={},b=s.attributes,w=0;w<b.length;w++){var I=b[w];m[bf(I.name)]=I.name.toLowerCase()===\"style\"?Ep(s):I.value}return{type:l,props:m}}return s.nodeType===8?{type:\"Suspense\",props:{}}:s.nodeValue}function aA(s,l,m){return m===null||m[$ht]!==!0?(s.nodeValue===l?s=null:(l=Cs(l),s=Cs(s.nodeValue)===l?null:s.nodeValue),s):null}function sA(s){s=s.nextSibling;for(var l=0;s;){if(s.nodeType===8){var m=s.data;if(m===pj){if(l===0)return vf(s.nextSibling);l--}else m!==fj&&m!==w9&&m!==h2||l++}s=s.nextSibling}return null}function v3(s){s=s.previousSibling;for(var l=0;s;){if(s.nodeType===8){var m=s.data;if(m===fj||m===w9||m===h2){if(l===0)return s;l--}else m===pj&&l++}s=s.previousSibling}return null}function Eb(s){BP(s)}function Iu(s){BP(s)}function Ic(s,l,m,b,w){switch(w&&Tw(s,b.ancestorInfo),l=Ti(m),s){case\"html\":if(s=l.documentElement,!s)throw Error(\"React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.\");return s;case\"head\":if(s=l.head,!s)throw Error(\"React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.\");return s;case\"body\":if(s=l.body,!s)throw Error(\"React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.\");return s;default:throw Error(\"resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}}function wz(s,l,m,b){if(!m[hA]&&ue(m)){var w=m.tagName.toLowerCase();console.error(\"You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.\",w,w,w)}switch(s){case\"html\":case\"head\":case\"body\":break;default:console.error(\"acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}for(w=m.attributes;w.length;)m.removeAttributeNode(w[0]);ii(m,s,l),m[vd]=b,m[Np]=l}function d0(s){for(var l=s.attributes;l.length;)s.removeAttributeNode(l[0]);zr(s)}function cA(s){return typeof s.getRootNode==\"function\"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}function Ab(s,l,m){var b=X4;if(b&&typeof l==\"string\"&&l){var w=xi(l);w=\\'link[rel=\"\\'+s+\\'\"][href=\"\\'+w+\\'\"]\\',typeof m==\"string\"&&(w+=\\'[crossorigin=\"\\'+m+\\'\"]\\'),GAe.has(w)||(GAe.add(w),s={rel:s,crossOrigin:m,href:l},b.querySelector(w)===null&&(l=b.createElement(\"link\"),ii(l,\"link\",s),ot(l),b.head.appendChild(l)))}}function d4(s,l,m,b){var w=(w=fA.current)?cA(w):null;if(!w)throw Error(\\'\"resourceRoot\" was expected to exist. This is a bug in React.\\');switch(s){case\"meta\":case\"title\":return null;case\"style\":return typeof m.precedence==\"string\"&&typeof m.href==\"string\"?(m=Op(m.href),l=_t(w).hoistableStyles,b=l.get(m),b||(b={type:\"style\",instance:null,count:0,state:null},l.set(m,b)),b):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(m.rel===\"stylesheet\"&&typeof m.href==\"string\"&&typeof m.precedence==\"string\"){s=Op(m.href);var I=_t(w).hoistableStyles,Y=I.get(s);if(!Y&&(w=w.ownerDocument||w,Y={type:\"stylesheet\",instance:null,count:0,state:{loading:z3,preload:null}},I.set(s,Y),(I=w.querySelector(n2(s)))&&!I._p&&(Y.instance=I,Y.state.loading=x9|x0),!E0.has(s))){var ie={rel:\"preload\",as:\"style\",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy};E0.set(s,ie),I||xz(w,s,ie,Y.state)}if(l&&b===null)throw m=`\\n\\n  - `+w3(l)+`\\n  + `+w3(m),Error(\"Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+m);return Y}if(l&&b!==null)throw m=`\\n\\n  - `+w3(l)+`\\n  + `+w3(m),Error(\"Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+m);return null;case\"script\":return l=m.async,m=m.src,typeof m==\"string\"&&l&&typeof l!=\"function\"&&typeof l!=\"symbol\"?(m=_b(m),l=_t(w).hoistableScripts,b=l.get(m),b||(b={type:\"script\",instance:null,count:0,state:null},l.set(m,b)),b):{type:\"void\",instance:null,count:0,state:null};default:throw Error(\\'getResource encountered a type it did not expect: \"\\'+s+\\'\". this is a bug in React.\\')}}function w3(s){var l=0,m=\"<link\";return typeof s.rel==\"string\"?(l++,m+=\\' rel=\"\\'+s.rel+\\'\"\\'):i2.call(s,\"rel\")&&(l++,m+=\\' rel=\"\\'+(s.rel===null?\"null\":\"invalid type \"+typeof s.rel)+\\'\"\\'),typeof s.href==\"string\"?(l++,m+=\\' href=\"\\'+s.href+\\'\"\\'):i2.call(s,\"href\")&&(l++,m+=\\' href=\"\\'+(s.href===null?\"null\":\"invalid type \"+typeof s.href)+\\'\"\\'),typeof s.precedence==\"string\"?(l++,m+=\\' precedence=\"\\'+s.precedence+\\'\"\\'):i2.call(s,\"precedence\")&&(l++,m+=\" precedence={\"+(s.precedence===null?\"null\":\"invalid type \"+typeof s.precedence)+\"}\"),Object.getOwnPropertyNames(s).length>l&&(m+=\" ...\"),m+\" />\"}function Op(s){return\\'href=\"\\'+xi(s)+\\'\"\\'}function n2(s){return\\'link[rel=\"stylesheet\"][\\'+s+\"]\"}function f4(s){return Dr({},s,{\"data-precedence\":s.precedence,precedence:null})}function xz(s,l,m,b){s.querySelector(\\'link[rel=\"preload\"][as=\"style\"][\\'+l+\"]\")?b.loading=x9:(l=s.createElement(\"link\"),b.preload=l,l.addEventListener(\"load\",function(){return b.loading|=x9}),l.addEventListener(\"error\",function(){return b.loading|=WAe}),ii(l,\"link\",m),ot(l),s.head.appendChild(l))}function _b(s){return\\'[src=\"\\'+xi(s)+\\'\"]\\'}function uA(s){return\"script[async]\"+s}function p4(s,l,m){if(l.count++,l.instance===null)switch(l.type){case\"style\":var b=s.querySelector(\\'style[data-href~=\"\\'+xi(m.href)+\\'\"]\\');if(b)return l.instance=b,ot(b),b;var w=Dr({},m,{\"data-href\":m.href,\"data-precedence\":m.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement(\"style\"),ot(b),ii(b,\"style\",w),x3(b,m.precedence,s),l.instance=b;case\"stylesheet\":w=Op(m.href);var I=s.querySelector(n2(w));if(I)return l.state.loading|=x0,l.instance=I,ot(I),I;b=f4(m),(w=E0.get(w))&&E3(b,w),I=(s.ownerDocument||s).createElement(\"link\"),ot(I);var Y=I;return Y._p=new Promise(function(ie,fe){Y.onload=ie,Y.onerror=fe}),ii(I,\"link\",b),l.state.loading|=x0,x3(I,m.precedence,s),l.instance=I;case\"script\":return I=_b(m.src),(w=s.querySelector(uA(I)))?(l.instance=w,ot(w),w):(b=m,(w=E0.get(I))&&(b=Dr({},m),h4(b,w)),s=s.ownerDocument||s,w=s.createElement(\"script\"),ot(w),ii(w,\"link\",b),s.head.appendChild(w),l.instance=w);case\"void\":return null;default:throw Error(\\'acquireResource encountered a resource type it did not expect: \"\\'+l.type+\\'\". this is a bug in React.\\')}else l.type===\"stylesheet\"&&(l.state.loading&x0)===z3&&(b=l.instance,l.state.loading|=x0,x3(b,m.precedence,s));return l.instance}function x3(s,l,m){for(var b=m.querySelectorAll(\\'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]\\'),w=b.length?b[b.length-1]:null,I=w,Y=0;Y<b.length;Y++){var ie=b[Y];if(ie.dataset.precedence===l)I=ie;else if(I!==w)break}I?I.parentNode.insertBefore(s,I.nextSibling):(l=m.nodeType===9?m.head:m,l.insertBefore(s,l.firstChild))}function E3(s,l){s.crossOrigin==null&&(s.crossOrigin=l.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=l.referrerPolicy),s.title==null&&(s.title=l.title)}function h4(s,l){s.crossOrigin==null&&(s.crossOrigin=l.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=l.referrerPolicy),s.integrity==null&&(s.integrity=l.integrity)}function r2(s,l,m){if(mj===null){var b=new Map,w=mj=new Map;w.set(m,b)}else w=mj,b=w.get(m),b||(b=new Map,w.set(m,b));if(b.has(s))return b;for(b.set(s,null),m=m.getElementsByTagName(s),w=0;w<m.length;w++){var I=m[w];if(!(I[HP]||I[vd]||s===\"link\"&&I.getAttribute(\"rel\")===\"stylesheet\")&&I.namespaceURI!==w4){var Y=I.getAttribute(l)||\"\";Y=s+Y;var ie=b.get(Y);ie?ie.push(I):b.set(Y,[I])}}return b}function kp(s,l,m){s=s.ownerDocument||s,s.head.insertBefore(m,l===\"title\"?s.querySelector(\"head > title\"):null)}function Ez(s,l,m){var b=!m.ancestorInfo.containerTagInScope;if(m.context===J4||l.itemProp!=null)return!b||l.itemProp==null||s!==\"meta\"&&s!==\"title\"&&s!==\"style\"&&s!==\"link\"&&s!==\"script\"||console.error(\"Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.\",s,s),!1;switch(s){case\"meta\":case\"title\":return!0;case\"style\":if(typeof l.precedence!=\"string\"||typeof l.href!=\"string\"||l.href===\"\"){b&&console.error(\\'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`.\\');break}return!0;case\"link\":if(typeof l.rel!=\"string\"||typeof l.href!=\"string\"||l.href===\"\"||l.onLoad||l.onError){if(l.rel===\"stylesheet\"&&typeof l.precedence==\"string\"){s=l.href;var w=l.onError,I=l.disabled;m=[],l.onLoad&&m.push(\"`onLoad`\"),w&&m.push(\"`onError`\"),I!=null&&m.push(\"`disabled`\"),w=Oa(m,\"and\"),w+=m.length===1?\" prop\":\" props\",I=m.length===1?\"an \"+w:\"the \"+w,m.length&&console.error(\\'React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',s,I,w)}b&&(typeof l.rel!=\"string\"||typeof l.href!=\"string\"||l.href===\"\"?console.error(\"Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag\"):(l.onError||l.onLoad)&&console.error(\"Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"));break}switch(l.rel){case\"stylesheet\":return s=l.precedence,l=l.disabled,typeof s!=\"string\"&&b&&console.error(\\'Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag.\\'),typeof s==\"string\"&&l==null;default:return!0}case\"script\":if(s=l.async&&typeof l.async!=\"function\"&&typeof l.async!=\"symbol\",!s||l.onLoad||l.onError||!l.src||typeof l.src!=\"string\"){b&&(s?l.onLoad||l.onError?console.error(\"Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"):console.error(\"Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.\"):console.error(\\'Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.\\'));break}return!0;case\"noscript\":case\"template\":b&&console.error(\"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.\",s)}return!1}function yxe(s){return!(s.type===\"stylesheet\"&&(s.state.loading&VAe)===z3)}function cpt(){}function upt(s,l,m){if(E9===null)throw Error(\"Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.\");var b=E9;if(l.type===\"stylesheet\"&&(typeof m.media!=\"string\"||matchMedia(m.media).matches!==!1)&&(l.state.loading&x0)===z3){if(l.instance===null){var w=Op(m.href),I=s.querySelector(n2(w));if(I){s=I._p,s!==null&&typeof s==\"object\"&&typeof s.then==\"function\"&&(b.count++,b=Az.bind(b),s.then(b,b)),l.state.loading|=x0,l.instance=I,ot(I);return}I=s.ownerDocument||s,m=f4(m),(w=E0.get(w))&&E3(m,w),I=I.createElement(\"link\"),ot(I);var Y=I;Y._p=new Promise(function(ie,fe){Y.onload=ie,Y.onerror=fe}),ii(I,\"link\",m),l.instance=I}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&VAe)===z3&&(b.count++,l=Az.bind(b),s.addEventListener(\"load\",l),s.addEventListener(\"error\",l))}}function lpt(){if(E9===null)throw Error(\"Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.\");var s=E9;return s.stylesheets&&s.count===0&&Sre(s,s.stylesheets),0<s.count?function(l){var m=setTimeout(function(){if(s.stylesheets&&Sre(s,s.stylesheets),s.unsuspend){var b=s.unsuspend;s.unsuspend=null,b()}},6e4);return s.unsuspend=l,function(){s.unsuspend=null,clearTimeout(m)}}:null}function Az(){if(this.count--,this.count===0){if(this.stylesheets)Sre(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}function Sre(s,l){s.stylesheets=null,s.unsuspend!==null&&(s.count++,gj=new Map,l.forEach(dpt,s),gj=null,Az.call(s))}function dpt(s,l){if(!(l.state.loading&x0)){var m=gj.get(s);if(m)var b=m.get(Xoe);else{m=new Map,gj.set(s,m);for(var w=s.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),I=0;I<w.length;I++){var Y=w[I];(Y.nodeName===\"LINK\"||Y.getAttribute(\"media\")!==\"not all\")&&(m.set(Y.dataset.precedence,Y),b=Y)}b&&m.set(Xoe,b)}w=l.instance,Y=w.getAttribute(\"data-precedence\"),I=m.get(Y)||b,I===b&&m.set(Xoe,w),m.set(Y,w),this.count++,b=Az.bind(this),w.addEventListener(\"load\",b),w.addEventListener(\"error\",b),I?I.parentNode.insertBefore(w,I.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(w,s.firstChild)),l.state.loading|=x0}}function fpt(s,l,m,b,w,I,Y,ie){for(this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=H3,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jt(0),this.hiddenUpdates=jt(null),this.identifierPrefix=b,this.onUncaughtError=w,this.onCaughtError=I,this.onRecoverableError=Y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ie,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,s=this.pendingUpdatersLaneMap=[],l=0;31>l;l++)s.push(new Set);this._debugRootType=m?\"hydrateRoot()\":\"createRoot()\"}function bxe(s,l,m,b,w,I,Y,ie,fe,ge,We,Xe){return s=new fpt(s,l,m,Y,ie,fe,ge,Xe),l=Iht,I===!0&&(l|=wd|Cy),Sy&&(l|=_l),I=g(3,null,null,l),s.current=I,I.stateNode=s,l=Jg(),dl(l),s.pooledCache=l,dl(l),I.memoizedState={element:b,isDehydrated:m,cache:l},wc(I),s}function vxe(s){return s?(s=gA,s):gA}function Tre(s,l,m,b,w,I){if(bd&&typeof bd.onScheduleFiberRoot==\"function\")try{bd.onScheduleFiberRoot(b4,b,m)}catch(Y){Cb||(Cb=!0,console.error(\"React instrumentation encountered an error: %s\",Y))}$t!==null&&typeof $t.markRenderScheduled==\"function\"&&$t.markRenderScheduled(l),w=vxe(w),b.context===null?b.context=w:b.pendingContext=w,Ib&&Zh!==null&&!ZAe&&(ZAe=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\\n\\nCheck the render method of %s.`,J(Zh)||\"Unknown\")),b=gp(l),b.payload={element:m},I=I===void 0?null:I,I!==null&&(typeof I!=\"function\"&&console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",I),b.callback=I),m=Mi(s,b,l),m!==null&&(He(m,s,l),Lh(m,s,l))}function wxe(s,l){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<l?m:l}}function Cre(s,l){wxe(s,l),(s=s.alternate)&&wxe(s,l)}function xxe(s){if(s.tag===13){var l=Es(s,67108864);l!==null&&He(l,s,67108864),Cre(s,67108864)}}function ppt(){return Zh}function hpt(){for(var s=new Map,l=1,m=0;31>m;m++){var b=lt(l);s.set(l,b),l*=2}return s}function mpt(s,l,m,b){var w=Je.T;Je.T=null;var I=ai.p;try{ai.p=Yh,Rre(s,l,m,b)}finally{ai.p=I,Je.T=w}}function gpt(s,l,m,b){var w=Je.T;Je.T=null;var I=ai.p;try{ai.p=Ty,Rre(s,l,m,b)}finally{ai.p=I,Je.T=w}}function Rre(s,l,m,b){if(bj){var w=Ire(b);if(w===null)uu(s,l,b,vj,m),Axe(s,b);else if(ypt(w,s,l,m,b))b.stopPropagation();else if(Axe(s,b),l&4&&-1<smt.indexOf(s)){for(;w!==null;){var I=ue(w);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var Y=At(I.pendingLanes);if(Y!==0){var ie=I;for(ie.pendingLanes|=2,ie.entangledLanes|=2;Y;){var fe=1<<31-wf(Y);ie.entanglements[1]|=fe,Y&=~fe}ec(I),(si&(Sf|ky))===Qh&&(nj=Tb()+CAe,oi(0,!1))}}break;case 13:ie=Es(I,2),ie!==null&&He(ie,I,2),xt(),Cre(I,2)}if(I=Ire(b),I===null&&uu(s,l,b,vj,m),I===w)break;w=I}w!==null&&b.stopPropagation()}else uu(s,l,b,null,m)}}function Ire(s){return s=Wm(s),Ore(s)}function Ore(s){if(vj=null,s=la(s),s!==null){var l=S(s);if(l===null)s=null;else{var m=l.tag;if(m===13){if(s=M(l),s!==null)return s;s=null}else if(m===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;s=null}else l!==s&&(s=null)}}return vj=s,null}function Exe(s){switch(s){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return Yh;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return Ty;case\"message\":switch(Rpt()){case zre:return Yh;case jre:return Ty;case y4:case Ipt:return Rb;case Wre:return Nz;default:return Rb}default:return Rb}}function Axe(s,l){switch(s){case\"focusin\":case\"focusout\":TA=null;break;case\"dragenter\":case\"dragleave\":CA=null;break;case\"mouseover\":case\"mouseout\":RA=null;break;case\"pointerover\":case\"pointerout\":_9.delete(l.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":S9.delete(l.pointerId)}}function LP(s,l,m,b,w,I){return s===null||s.nativeEvent!==I?(s={blockedOn:l,domEventName:m,eventSystemFlags:b,nativeEvent:I,targetContainers:[w]},l!==null&&(l=ue(l),l!==null&&xxe(l)),s):(s.eventSystemFlags|=b,l=s.targetContainers,w!==null&&l.indexOf(w)===-1&&l.push(w),s)}function ypt(s,l,m,b,w){switch(l){case\"focusin\":return TA=LP(TA,s,l,m,b,w),!0;case\"dragenter\":return CA=LP(CA,s,l,m,b,w),!0;case\"mouseover\":return RA=LP(RA,s,l,m,b,w),!0;case\"pointerover\":var I=w.pointerId;return _9.set(I,LP(_9.get(I)||null,s,l,m,b,w)),!0;case\"gotpointercapture\":return I=w.pointerId,S9.set(I,LP(S9.get(I)||null,s,l,m,b,w)),!0}return!1}function _xe(s){var l=la(s.target);if(l!==null){var m=S(l);if(m!==null){if(l=m.tag,l===13){if(l=M(m),l!==null){s.blockedOn=l,Ar(s.priority,function(){if(m.tag===13){var b=Ae(m);b=Fr(b);var w=Es(m,b);w!==null&&He(w,m,b),Cre(m,b)}});return}}else if(l===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function _z(s){if(s.blockedOn!==null)return!1;for(var l=s.targetContainers;0<l.length;){var m=Ire(s.nativeEvent);if(m===null){m=s.nativeEvent;var b=new m.constructor(m.type,m),w=b;jP!==null&&console.error(\"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.\"),jP=w,m.target.dispatchEvent(b),jP===null&&console.error(\"Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.\"),jP=null}else return l=ue(m),l!==null&&xxe(l),s.blockedOn=m,!1;l.shift()}return!0}function Sxe(s,l,m){_z(s)&&m.delete(l)}function bpt(){$oe=!1,TA!==null&&_z(TA)&&(TA=null),CA!==null&&_z(CA)&&(CA=null),RA!==null&&_z(RA)&&(RA=null),_9.forEach(Sxe),S9.forEach(Sxe)}function Sz(s,l){s.blockedOn===l&&(s.blockedOn=null,$oe||($oe=!0,Oc.unstable_scheduleCallback(Oc.unstable_NormalPriority,bpt)))}function Txe(s){wj!==s&&(wj=s,Oc.unstable_scheduleCallback(Oc.unstable_NormalPriority,function(){wj===s&&(wj=null);for(var l=0;l<s.length;l+=3){var m=s[l],b=s[l+1],w=s[l+2];if(typeof b!=\"function\"){if(Ore(b||m)===null)continue;break}var I=ue(m);I!==null&&(s.splice(l,3),l-=3,m={pending:!0,data:w,method:m.method,action:b},Object.freeze(m),cb(I,m,b,w))}}))}function BP(s){function l(fe){return Sz(fe,s)}TA!==null&&Sz(TA,s),CA!==null&&Sz(CA,s),RA!==null&&Sz(RA,s),_9.forEach(l),S9.forEach(l);for(var m=0;m<IA.length;m++){var b=IA[m];b.blockedOn===s&&(b.blockedOn=null)}for(;0<IA.length&&(m=IA[0],m.blockedOn===null);)_xe(m),m.blockedOn===null&&IA.shift();if(m=(s.ownerDocument||s).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var w=m[b],I=m[b+1],Y=w[Np]||null;if(typeof I==\"function\")Y||Txe(m);else if(Y){var ie=null;if(I&&I.hasAttribute(\"formAction\")){if(w=I,Y=I[Np]||null)ie=Y.formAction;else if(Ore(w)!==null)continue}else ie=Y.action;typeof ie==\"function\"?m[b+1]=ie:(m.splice(b,3),b-=3),Txe(m)}}}function kre(s){this._internalRoot=s}function Tz(s){this._internalRoot=s}function Cxe(s){s[hA]&&(s._reactRootContainer?console.error(\"You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.\"):console.error(\"You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.\"))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Oc=N_e(),Nre=$e(),vpt=Ny(),Dr=Object.assign,wpt=Symbol.for(\"react.element\"),lA=Symbol.for(\"react.transitional.element\"),m4=Symbol.for(\"react.portal\"),g4=Symbol.for(\"react.fragment\"),Cz=Symbol.for(\"react.strict_mode\"),Pre=Symbol.for(\"react.profiler\"),xpt=Symbol.for(\"react.provider\"),Mre=Symbol.for(\"react.consumer\"),Sb=Symbol.for(\"react.context\"),UP=Symbol.for(\"react.forward_ref\"),Dre=Symbol.for(\"react.suspense\"),Lre=Symbol.for(\"react.suspense_list\"),Rz=Symbol.for(\"react.memo\"),Kh=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\");var Bre=Symbol.for(\"react.activity\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.tracing_marker\");var Ept=Symbol.for(\"react.memo_cache_sentinel\");Symbol.for(\"react.view_transition\");var Rxe=Symbol.iterator,Apt=Symbol.for(\"react.client.reference\"),Al=Array.isArray,Je=Nre.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ai=vpt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_pt=Object.freeze({pending:!1,data:null,method:null,action:null}),Ure=[],Fre=[],o2=-1,dA=re(null),FP=re(null),fA=re(null),Iz=re(null),i2=Object.prototype.hasOwnProperty,Hre=Oc.unstable_scheduleCallback,Spt=Oc.unstable_cancelCallback,Tpt=Oc.unstable_shouldYield,Cpt=Oc.unstable_requestPaint,Tb=Oc.unstable_now,Rpt=Oc.unstable_getCurrentPriorityLevel,zre=Oc.unstable_ImmediatePriority,jre=Oc.unstable_UserBlockingPriority,y4=Oc.unstable_NormalPriority,Ipt=Oc.unstable_LowPriority,Wre=Oc.unstable_IdlePriority,Opt=Oc.log,kpt=Oc.unstable_setDisableYieldValue,b4=null,bd=null,$t=null,Cb=!1,Sy=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\",wf=Math.clz32?Math.clz32:Ye,Npt=Math.log,Ppt=Math.LN2,Oz=256,kz=4194304,Yh=2,Ty=8,Rb=32,Nz=268435456,pA=Math.random().toString(36).slice(2),vd=\"__reactFiber$\"+pA,Np=\"__reactProps$\"+pA,hA=\"__reactContainer$\"+pA,Vre=\"__reactEvents$\"+pA,Mpt=\"__reactListeners$\"+pA,Dpt=\"__reactHandles$\"+pA,Ixe=\"__reactResources$\"+pA,HP=\"__reactMarker$\"+pA,Oxe=new Set,A3={},Gre={},Lpt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Bpt=RegExp(\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),kxe={},Nxe={},zP=0,Pxe,Mxe,Dxe,Lxe,Bxe,Uxe,Fxe;yo.__reactDisabledLog=!0;var qre,Hxe,Kre=!1,Yre=new(typeof WeakMap==\"function\"?WeakMap:Map),Zh=null,Ib=!1,Upt=/[\\\\n\"\\\\\\\\]/g,zxe=!1,jxe=!1,Wxe=!1,Vxe=!1,Gxe=!1,qxe=!1,Kxe=[\"value\",\"defaultValue\"],Yxe=!1,Zxe=/[\"\\'&<>\\\\n\\\\t]|^\\\\s|\\\\s$/,Fpt=\"address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp\".split(\" \"),Qxe=\"applet caption html table td th marquee object template foreignObject desc title\".split(\" \"),Hpt=Qxe.concat([\"button\"]),zpt=\"dd dt li option optgroup p rp rt\".split(\" \"),Jxe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Pz={},Zre={animation:\"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction\".split(\" \"),background:\"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize\".split(\" \"),backgroundPosition:[\"backgroundPositionX\",\"backgroundPositionY\"],border:\"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth\".split(\" \"),borderBlockEnd:[\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\"],borderBlockStart:[\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\"],borderBottom:[\"borderBottomColor\",\"borderBottomStyle\",\"borderBottomWidth\"],borderColor:[\"borderBottomColor\",\"borderLeftColor\",\"borderRightColor\",\"borderTopColor\"],borderImage:[\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\"],borderInlineEnd:[\"borderInlineEndColor\",\"borderInlineEndStyle\",\"borderInlineEndWidth\"],borderInlineStart:[\"borderInlineStartColor\",\"borderInlineStartStyle\",\"borderInlineStartWidth\"],borderLeft:[\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\"],borderRadius:[\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderTopLeftRadius\",\"borderTopRightRadius\"],borderRight:[\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\"],borderStyle:[\"borderBottomStyle\",\"borderLeftStyle\",\"borderRightStyle\",\"borderTopStyle\"],borderTop:[\"borderTopColor\",\"borderTopStyle\",\"borderTopWidth\"],borderWidth:[\"borderBottomWidth\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\"],columnRule:[\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\"],columns:[\"columnCount\",\"columnWidth\"],flex:[\"flexBasis\",\"flexGrow\",\"flexShrink\"],flexFlow:[\"flexDirection\",\"flexWrap\"],font:\"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight\".split(\" \"),fontVariant:\"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition\".split(\" \"),gap:[\"columnGap\",\"rowGap\"],grid:\"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows\".split(\" \"),gridArea:[\"gridColumnEnd\",\"gridColumnStart\",\"gridRowEnd\",\"gridRowStart\"],gridColumn:[\"gridColumnEnd\",\"gridColumnStart\"],gridColumnGap:[\"columnGap\"],gridGap:[\"columnGap\",\"rowGap\"],gridRow:[\"gridRowEnd\",\"gridRowStart\"],gridRowGap:[\"rowGap\"],gridTemplate:[\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\"],listStyle:[\"listStyleImage\",\"listStylePosition\",\"listStyleType\"],margin:[\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\"],marker:[\"markerEnd\",\"markerMid\",\"markerStart\"],mask:\"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize\".split(\" \"),maskPosition:[\"maskPositionX\",\"maskPositionY\"],outline:[\"outlineColor\",\"outlineStyle\",\"outlineWidth\"],overflow:[\"overflowX\",\"overflowY\"],padding:[\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\"],placeContent:[\"alignContent\",\"justifyContent\"],placeItems:[\"alignItems\",\"justifyItems\"],placeSelf:[\"alignSelf\",\"justifySelf\"],textDecoration:[\"textDecorationColor\",\"textDecorationLine\",\"textDecorationStyle\"],textEmphasis:[\"textEmphasisColor\",\"textEmphasisStyle\"],transition:[\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\"],wordWrap:[\"overflowWrap\"]},Xxe=/([A-Z])/g,$xe=/^ms-/,jpt=/^(?:webkit|moz|o)[A-Z]/,Wpt=/^-ms-/,Vpt=/-(.)/g,eEe=/;\\\\s*$/,v4={},Qre={},tEe=!1,nEe=!1,rEe=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),Mz=\"http://www.w3.org/1998/Math/MathML\",w4=\"http://www.w3.org/2000/svg\",Gpt=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),Dz={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},oEe={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0},x4={},qpt=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Kpt=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),iEe=!1,xf={},aEe=/^on./,Ypt=/^on[^A-Z]/,Zpt=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Qpt=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Jpt=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,jP=null,E4=null,A4=null,Jre=!1,Ob=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),Xre=!1;if(Ob)try{var WP={};Object.defineProperty(WP,\"passive\",{get:function(){Xre=!0}}),window.addEventListener(\"test\",WP,WP),window.removeEventListener(\"test\",WP,WP)}catch{Xre=!1}var mA=null,$re=null,Lz=null,_3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bz=gc(_3),VP=Dr({},_3,{view:0,detail:0}),Xpt=gc(VP),eoe,toe,GP,Uz=Dr({},VP,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return\"movementX\"in s?s.movementX:(s!==GP&&(GP&&s.type===\"mousemove\"?(eoe=s.screenX-GP.screenX,toe=s.screenY-GP.screenY):toe=eoe=0,GP=s),eoe)},movementY:function(s){return\"movementY\"in s?s.movementY:toe}}),sEe=gc(Uz),$pt=Dr({},Uz,{dataTransfer:0}),eht=gc($pt),tht=Dr({},VP,{relatedTarget:0}),noe=gc(tht),nht=Dr({},_3,{animationName:0,elapsedTime:0,pseudoElement:0}),rht=gc(nht),oht=Dr({},_3,{clipboardData:function(s){return\"clipboardData\"in s?s.clipboardData:window.clipboardData}}),iht=gc(oht),aht=Dr({},_3,{data:0}),cEe=gc(aht),sht=cEe,cht={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},uht={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},lht={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},dht=Dr({},VP,{key:function(s){if(s.key){var l=cht[s.key]||s.key;if(l!==\"Unidentified\")return l}return s.type===\"keypress\"?(s=Oh(s),s===13?\"Enter\":String.fromCharCode(s)):s.type===\"keydown\"||s.type===\"keyup\"?uht[s.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vm,charCode:function(s){return s.type===\"keypress\"?Oh(s):0},keyCode:function(s){return s.type===\"keydown\"||s.type===\"keyup\"?s.keyCode:0},which:function(s){return s.type===\"keypress\"?Oh(s):s.type===\"keydown\"||s.type===\"keyup\"?s.keyCode:0}}),fht=gc(dht),pht=Dr({},Uz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uEe=gc(pht),hht=Dr({},VP,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vm}),mht=gc(hht),ght=Dr({},_3,{propertyName:0,elapsedTime:0,pseudoElement:0}),yht=gc(ght),bht=Dr({},Uz,{deltaX:function(s){return\"deltaX\"in s?s.deltaX:\"wheelDeltaX\"in s?-s.wheelDeltaX:0},deltaY:function(s){return\"deltaY\"in s?s.deltaY:\"wheelDeltaY\"in s?-s.wheelDeltaY:\"wheelDelta\"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),vht=gc(bht),wht=Dr({},_3,{newState:0,oldState:0}),xht=gc(wht),Eht=[9,13,27,32],lEe=229,roe=Ob&&\"CompositionEvent\"in window,qP=null;Ob&&\"documentMode\"in document&&(qP=document.documentMode);var Aht=Ob&&\"TextEvent\"in window&&!qP,dEe=Ob&&(!roe||qP&&8<qP&&11>=qP),fEe=32,pEe=String.fromCharCode(fEe),hEe=!1,_4=!1,_ht={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},KP=null,YP=null,mEe=!1;Ob&&(mEe=q1(\"input\")&&(!document.documentMode||9<document.documentMode));var Ef=typeof Object.is==\"function\"?Object.is:Ym,Sht=Ob&&\"documentMode\"in document&&11>=document.documentMode,S4=null,ooe=null,ZP=null,ioe=!1,T4={animationend:uf(\"Animation\",\"AnimationEnd\"),animationiteration:uf(\"Animation\",\"AnimationIteration\"),animationstart:uf(\"Animation\",\"AnimationStart\"),transitionrun:uf(\"Transition\",\"TransitionRun\"),transitionstart:uf(\"Transition\",\"TransitionStart\"),transitioncancel:uf(\"Transition\",\"TransitionCancel\"),transitionend:uf(\"Transition\",\"TransitionEnd\")},aoe={},gEe={};Ob&&(gEe=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete T4.animationend.animation,delete T4.animationiteration.animation,delete T4.animationstart.animation),\"TransitionEvent\"in window||delete T4.transitionend.transition);var yEe=lf(\"animationend\"),bEe=lf(\"animationiteration\"),vEe=lf(\"animationstart\"),Tht=lf(\"transitionrun\"),Cht=lf(\"transitionstart\"),Rht=lf(\"transitioncancel\"),wEe=lf(\"transitionend\"),xEe=new Map,soe=\"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(\" \");soe.push(\"scrollEnd\");var coe=new WeakMap,Fz=1,a2=2,f0=[],C4=0,uoe=0,gA={};Object.freeze(gA);var p0=null,R4=null,ma=0,Iht=1,_l=2,wd=8,Cy=16,EEe=64,AEe=!1;try{var _Ee=Object.preventExtensions({})}catch{AEe=!0}var I4=[],O4=0,Hz=null,zz=0,h0=[],m0=0,S3=null,s2=1,c2=\"\",Af=null,Is=null,Oo=!1,u2=!1,g0=null,T3=null,kb=!1,loe=Error(\"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),SEe=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var Oht=performance,TEe=function(){return Oht.now()};else{var kht=Date;TEe=function(){return kht.now()}}var doe=re(null),foe=re(null),CEe={},jz=null,k4=null,N4=!1,Nht=typeof AbortController<\"u\"?AbortController:function(){var s=[],l=this.signal={aborted:!1,addEventListener:function(m,b){s.push(b)}};this.abort=function(){l.aborted=!0,s.forEach(function(m){return m()})}},Pht=Oc.unstable_scheduleCallback,Mht=Oc.unstable_NormalPriority,du={$$typeof:Sb,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},P4=Oc.unstable_now,REe=-0,Wz=-0,Pp=-1.1,C3=-0,Vz=!1,Gz=!1,QP=null,poe=0,R3=0,M4=null,IEe=Je.S;Je.S=function(s,l){typeof l==\"object\"&&l!==null&&typeof l.then==\"function\"&&Qs(s,l),IEe!==null&&IEe(s,l)};var I3=re(null),Ry={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},JP=[],XP=[],$P=[],e9=[],t9=[],n9=[],O3=new Set;Ry.recordUnsafeLifecycleWarnings=function(s,l){O3.has(s.type)||(typeof l.componentWillMount==\"function\"&&l.componentWillMount.__suppressDeprecationWarning!==!0&&JP.push(s),s.mode&wd&&typeof l.UNSAFE_componentWillMount==\"function\"&&XP.push(s),typeof l.componentWillReceiveProps==\"function\"&&l.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&$P.push(s),s.mode&wd&&typeof l.UNSAFE_componentWillReceiveProps==\"function\"&&e9.push(s),typeof l.componentWillUpdate==\"function\"&&l.componentWillUpdate.__suppressDeprecationWarning!==!0&&t9.push(s),s.mode&wd&&typeof l.UNSAFE_componentWillUpdate==\"function\"&&n9.push(s))},Ry.flushPendingUnsafeLifecycleWarnings=function(){var s=new Set;0<JP.length&&(JP.forEach(function(ie){s.add(J(ie)||\"Component\"),O3.add(ie.type)}),JP=[]);var l=new Set;0<XP.length&&(XP.forEach(function(ie){l.add(J(ie)||\"Component\"),O3.add(ie.type)}),XP=[]);var m=new Set;0<$P.length&&($P.forEach(function(ie){m.add(J(ie)||\"Component\"),O3.add(ie.type)}),$P=[]);var b=new Set;0<e9.length&&(e9.forEach(function(ie){b.add(J(ie)||\"Component\"),O3.add(ie.type)}),e9=[]);var w=new Set;0<t9.length&&(t9.forEach(function(ie){w.add(J(ie)||\"Component\"),O3.add(ie.type)}),t9=[]);var I=new Set;if(0<n9.length&&(n9.forEach(function(ie){I.add(J(ie)||\"Component\"),O3.add(ie.type)}),n9=[]),0<l.size){var Y=h(l);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n\\nPlease update the following components: %s`,Y)}0<b.size&&(Y=h(b),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n\\nPlease update the following components: %s`,Y)),0<I.size&&(Y=h(I),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n\\nPlease update the following components: %s`,Y)),0<s.size&&(Y=h(s),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,Y)),0<m.size&&(Y=h(m),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,Y)),0<w.size&&(Y=h(w),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,Y))};var qz=new Map,OEe=new Set;Ry.recordLegacyContextWarning=function(s,l){for(var m=null,b=s;b!==null;)b.mode&wd&&(m=b),b=b.return;m===null?console.error(\"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.\"):!OEe.has(s.type)&&(b=qz.get(m),s.type.contextTypes!=null||s.type.childContextTypes!=null||l!==null&&typeof l.getChildContext==\"function\")&&(b===void 0&&(b=[],qz.set(m,b)),b.push(s))},Ry.flushLegacyContextWarning=function(){qz.forEach(function(s){if(s.length!==0){var l=s[0],m=new Set;s.forEach(function(w){m.add(J(w)||\"Component\"),OEe.add(w.type)});var b=h(m);Yt(l,function(){console.error(`Legacy context API has been detected within a strict-mode tree.\\n\\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\\n\\nPlease update the following components: %s\\n\\nLearn more about this warning here: https://react.dev/link/legacy-context`,b)})}})},Ry.discardPendingWarnings=function(){JP=[],XP=[],$P=[],e9=[],t9=[],n9=[],qz=new Map};var r9=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),kEe=Error(\"Suspense Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),Kz=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary.\"),hoe={then:function(){console.error(\\'Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.\\')}},o9=null,Yz=!1,y0=0,b0=1,_f=2,Sl=4,fu=8,NEe=0,PEe=1,MEe=2,moe=3,yA=!1,DEe=!1,goe=null,yoe=!1,D4=re(null),Zz=re(0),L4,LEe=new Set,BEe=new Set,boe=new Set,UEe=new Set,bA=0,er=null,Bi=null,kc=null,Qz=!1,B4=!1,k3=!1,Jz=0,i9=0,l2=null,Dht=0,Lht=25,Ze=null,v0=null,d2=-1,a9=!1,Xz={readContext:vo,use:od,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useLayoutEffect:Ei,useInsertionEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useSyncExternalStore:Ei,useId:Ei,useHostTransitionStatus:Ei,useFormState:Ei,useActionState:Ei,useOptimistic:Ei,useMemoCache:Ei,useCacheRefresh:Ei},voe=null,FEe=null,woe=null,HEe=null,Nb=null,Iy=null,$z=null;voe={readContext:function(s){return vo(s)},use:od,useCallback:function(s,l){return Ze=\"useCallback\",Wn(),n0(l),e3(s,l)},useContext:function(s){return Ze=\"useContext\",Wn(),vo(s)},useEffect:function(s,l){return Ze=\"useEffect\",Wn(),n0(l),VE(s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",Wn(),n0(m),$5(s,l,m)},useInsertionEffect:function(s,l){Ze=\"useInsertionEffect\",Wn(),n0(l),sy(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",Wn(),n0(l),X5(s,l)},useMemo:function(s,l){Ze=\"useMemo\",Wn(),n0(l);var m=Je.H;Je.H=Nb;try{return sb(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",Wn();var b=Je.H;Je.H=Nb;try{return LE(s,l,m)}finally{Je.H=b}},useRef:function(s){return Ze=\"useRef\",Wn(),J5(s)},useState:function(s){Ze=\"useState\",Wn();var l=Je.H;Je.H=Nb;try{return q5(s)}finally{Je.H=l}},useDebugValue:function(){Ze=\"useDebugValue\",Wn()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",Wn(),t3(s,l)},useTransition:function(){return Ze=\"useTransition\",Wn(),r3()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",Wn(),UE(s,l,m)},useId:function(){return Ze=\"useId\",Wn(),i3()},useFormState:function(s,l){return Ze=\"useFormState\",Wn(),rb(),ib(s,l)},useActionState:function(s,l){return Ze=\"useActionState\",Wn(),ib(s,l)},useOptimistic:function(s){return Ze=\"useOptimistic\",Wn(),K5(s)},useHostTransitionStatus:cy,useMemoCache:r0,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",Wn(),ZE()}},FEe={readContext:function(s){return vo(s)},use:od,useCallback:function(s,l){return Ze=\"useCallback\",vt(),e3(s,l)},useContext:function(s){return Ze=\"useContext\",vt(),vo(s)},useEffect:function(s,l){return Ze=\"useEffect\",vt(),VE(s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",vt(),$5(s,l,m)},useInsertionEffect:function(s,l){Ze=\"useInsertionEffect\",vt(),sy(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",vt(),X5(s,l)},useMemo:function(s,l){Ze=\"useMemo\",vt();var m=Je.H;Je.H=Nb;try{return sb(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",vt();var b=Je.H;Je.H=Nb;try{return LE(s,l,m)}finally{Je.H=b}},useRef:function(s){return Ze=\"useRef\",vt(),J5(s)},useState:function(s){Ze=\"useState\",vt();var l=Je.H;Je.H=Nb;try{return q5(s)}finally{Je.H=l}},useDebugValue:function(){Ze=\"useDebugValue\",vt()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",vt(),t3(s,l)},useTransition:function(){return Ze=\"useTransition\",vt(),r3()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",vt(),UE(s,l,m)},useId:function(){return Ze=\"useId\",vt(),i3()},useActionState:function(s,l){return Ze=\"useActionState\",vt(),ib(s,l)},useFormState:function(s,l){return Ze=\"useFormState\",vt(),rb(),ib(s,l)},useOptimistic:function(s){return Ze=\"useOptimistic\",vt(),K5(s)},useHostTransitionStatus:cy,useMemoCache:r0,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",vt(),ZE()}},woe={readContext:function(s){return vo(s)},use:od,useCallback:function(s,l){return Ze=\"useCallback\",vt(),qE(s,l)},useContext:function(s){return Ze=\"useContext\",vt(),vo(s)},useEffect:function(s,l){Ze=\"useEffect\",vt(),Au(2048,fu,s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",vt(),GE(s,l,m)},useInsertionEffect:function(s,l){return Ze=\"useInsertionEffect\",vt(),Au(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",vt(),Au(4,Sl,s,l)},useMemo:function(s,l){Ze=\"useMemo\",vt();var m=Je.H;Je.H=Iy;try{return KE(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",vt();var b=Je.H;Je.H=Iy;try{return oy(s,l,m)}finally{Je.H=b}},useRef:function(){return Ze=\"useRef\",vt(),so().memoizedState},useState:function(){Ze=\"useState\",vt();var s=Je.H;Je.H=Iy;try{return oy(id)}finally{Je.H=s}},useDebugValue:function(){Ze=\"useDebugValue\",vt()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",vt(),t4(s,l)},useTransition:function(){return Ze=\"useTransition\",vt(),i4()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",vt(),iy(s,l,m)},useId:function(){return Ze=\"useId\",vt(),so().memoizedState},useFormState:function(s){return Ze=\"useFormState\",vt(),rb(),ay(s)},useActionState:function(s){return Ze=\"useActionState\",vt(),ay(s)},useOptimistic:function(s,l){return Ze=\"useOptimistic\",vt(),HE(s,l)},useHostTransitionStatus:cy,useMemoCache:r0,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",vt(),so().memoizedState}},HEe={readContext:function(s){return vo(s)},use:od,useCallback:function(s,l){return Ze=\"useCallback\",vt(),qE(s,l)},useContext:function(s){return Ze=\"useContext\",vt(),vo(s)},useEffect:function(s,l){Ze=\"useEffect\",vt(),Au(2048,fu,s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",vt(),GE(s,l,m)},useInsertionEffect:function(s,l){return Ze=\"useInsertionEffect\",vt(),Au(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",vt(),Au(4,Sl,s,l)},useMemo:function(s,l){Ze=\"useMemo\",vt();var m=Je.H;Je.H=$z;try{return KE(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",vt();var b=Je.H;Je.H=$z;try{return ob(s,l,m)}finally{Je.H=b}},useRef:function(){return Ze=\"useRef\",vt(),so().memoizedState},useState:function(){Ze=\"useState\",vt();var s=Je.H;Je.H=$z;try{return ob(id)}finally{Je.H=s}},useDebugValue:function(){Ze=\"useDebugValue\",vt()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",vt(),n4(s,l)},useTransition:function(){return Ze=\"useTransition\",vt(),o3()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",vt(),iy(s,l,m)},useId:function(){return Ze=\"useId\",vt(),so().memoizedState},useFormState:function(s){return Ze=\"useFormState\",vt(),rb(),jE(s)},useActionState:function(s){return Ze=\"useActionState\",vt(),jE(s)},useOptimistic:function(s,l){return Ze=\"useOptimistic\",vt(),Y5(s,l)},useHostTransitionStatus:cy,useMemoCache:r0,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",vt(),so().memoizedState}},Nb={readContext:function(s){return d(),vo(s)},use:function(s){return u(),od(s)},useCallback:function(s,l){return Ze=\"useCallback\",u(),Wn(),e3(s,l)},useContext:function(s){return Ze=\"useContext\",u(),Wn(),vo(s)},useEffect:function(s,l){return Ze=\"useEffect\",u(),Wn(),VE(s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",u(),Wn(),$5(s,l,m)},useInsertionEffect:function(s,l){Ze=\"useInsertionEffect\",u(),Wn(),sy(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",u(),Wn(),X5(s,l)},useMemo:function(s,l){Ze=\"useMemo\",u(),Wn();var m=Je.H;Je.H=Nb;try{return sb(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",u(),Wn();var b=Je.H;Je.H=Nb;try{return LE(s,l,m)}finally{Je.H=b}},useRef:function(s){return Ze=\"useRef\",u(),Wn(),J5(s)},useState:function(s){Ze=\"useState\",u(),Wn();var l=Je.H;Je.H=Nb;try{return q5(s)}finally{Je.H=l}},useDebugValue:function(){Ze=\"useDebugValue\",u(),Wn()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",u(),Wn(),t3(s,l)},useTransition:function(){return Ze=\"useTransition\",u(),Wn(),r3()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",u(),Wn(),UE(s,l,m)},useId:function(){return Ze=\"useId\",u(),Wn(),i3()},useFormState:function(s,l){return Ze=\"useFormState\",u(),Wn(),ib(s,l)},useActionState:function(s,l){return Ze=\"useActionState\",u(),Wn(),ib(s,l)},useOptimistic:function(s){return Ze=\"useOptimistic\",u(),Wn(),K5(s)},useMemoCache:function(s){return u(),r0(s)},useHostTransitionStatus:cy,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",Wn(),ZE()}},Iy={readContext:function(s){return d(),vo(s)},use:function(s){return u(),od(s)},useCallback:function(s,l){return Ze=\"useCallback\",u(),vt(),qE(s,l)},useContext:function(s){return Ze=\"useContext\",u(),vt(),vo(s)},useEffect:function(s,l){Ze=\"useEffect\",u(),vt(),Au(2048,fu,s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",u(),vt(),GE(s,l,m)},useInsertionEffect:function(s,l){return Ze=\"useInsertionEffect\",u(),vt(),Au(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",u(),vt(),Au(4,Sl,s,l)},useMemo:function(s,l){Ze=\"useMemo\",u(),vt();var m=Je.H;Je.H=Iy;try{return KE(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",u(),vt();var b=Je.H;Je.H=Iy;try{return oy(s,l,m)}finally{Je.H=b}},useRef:function(){return Ze=\"useRef\",u(),vt(),so().memoizedState},useState:function(){Ze=\"useState\",u(),vt();var s=Je.H;Je.H=Iy;try{return oy(id)}finally{Je.H=s}},useDebugValue:function(){Ze=\"useDebugValue\",u(),vt()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",u(),vt(),t4(s,l)},useTransition:function(){return Ze=\"useTransition\",u(),vt(),i4()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",u(),vt(),iy(s,l,m)},useId:function(){return Ze=\"useId\",u(),vt(),so().memoizedState},useFormState:function(s){return Ze=\"useFormState\",u(),vt(),ay(s)},useActionState:function(s){return Ze=\"useActionState\",u(),vt(),ay(s)},useOptimistic:function(s,l){return Ze=\"useOptimistic\",u(),vt(),HE(s,l)},useMemoCache:function(s){return u(),r0(s)},useHostTransitionStatus:cy,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",vt(),so().memoizedState}},$z={readContext:function(s){return d(),vo(s)},use:function(s){return u(),od(s)},useCallback:function(s,l){return Ze=\"useCallback\",u(),vt(),qE(s,l)},useContext:function(s){return Ze=\"useContext\",u(),vt(),vo(s)},useEffect:function(s,l){Ze=\"useEffect\",u(),vt(),Au(2048,fu,s,l)},useImperativeHandle:function(s,l,m){return Ze=\"useImperativeHandle\",u(),vt(),GE(s,l,m)},useInsertionEffect:function(s,l){return Ze=\"useInsertionEffect\",u(),vt(),Au(4,_f,s,l)},useLayoutEffect:function(s,l){return Ze=\"useLayoutEffect\",u(),vt(),Au(4,Sl,s,l)},useMemo:function(s,l){Ze=\"useMemo\",u(),vt();var m=Je.H;Je.H=Iy;try{return KE(s,l)}finally{Je.H=m}},useReducer:function(s,l,m){Ze=\"useReducer\",u(),vt();var b=Je.H;Je.H=Iy;try{return ob(s,l,m)}finally{Je.H=b}},useRef:function(){return Ze=\"useRef\",u(),vt(),so().memoizedState},useState:function(){Ze=\"useState\",u(),vt();var s=Je.H;Je.H=Iy;try{return ob(id)}finally{Je.H=s}},useDebugValue:function(){Ze=\"useDebugValue\",u(),vt()},useDeferredValue:function(s,l){return Ze=\"useDeferredValue\",u(),vt(),n4(s,l)},useTransition:function(){return Ze=\"useTransition\",u(),vt(),o3()},useSyncExternalStore:function(s,l,m){return Ze=\"useSyncExternalStore\",u(),vt(),iy(s,l,m)},useId:function(){return Ze=\"useId\",u(),vt(),so().memoizedState},useFormState:function(s){return Ze=\"useFormState\",u(),vt(),jE(s)},useActionState:function(s){return Ze=\"useActionState\",u(),vt(),jE(s)},useOptimistic:function(s,l){return Ze=\"useOptimistic\",u(),vt(),Y5(s,l)},useMemoCache:function(s){return u(),r0(s)},useHostTransitionStatus:cy,useCacheRefresh:function(){return Ze=\"useCacheRefresh\",vt(),so().memoizedState}};var zEe={react_stack_bottom_frame:function(s,l,m){var b=Ib;Ib=!0;try{return s(l,m)}finally{Ib=b}}},xoe=zEe.react_stack_bottom_frame.bind(zEe),jEe={react_stack_bottom_frame:function(s){var l=Ib;Ib=!0;try{return s.render()}finally{Ib=l}}},WEe=jEe.react_stack_bottom_frame.bind(jEe),VEe={react_stack_bottom_frame:function(s,l){try{l.componentDidMount()}catch(m){or(s,s.return,m)}}},Eoe=VEe.react_stack_bottom_frame.bind(VEe),GEe={react_stack_bottom_frame:function(s,l,m,b,w){try{l.componentDidUpdate(m,b,w)}catch(I){or(s,s.return,I)}}},qEe=GEe.react_stack_bottom_frame.bind(GEe),KEe={react_stack_bottom_frame:function(s,l){var m=l.stack;s.componentDidCatch(l.value,{componentStack:m!==null?m:\"\"})}},Bht=KEe.react_stack_bottom_frame.bind(KEe),YEe={react_stack_bottom_frame:function(s,l,m){try{m.componentWillUnmount()}catch(b){or(s,l,b)}}},ZEe=YEe.react_stack_bottom_frame.bind(YEe),QEe={react_stack_bottom_frame:function(s){s.resourceKind!=null&&console.error(\"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s\",s.resourceKind);var l=s.create;return s=s.inst,l=l(),s.destroy=l}},Uht=QEe.react_stack_bottom_frame.bind(QEe),JEe={react_stack_bottom_frame:function(s,l,m){try{m()}catch(b){or(s,l,b)}}},Fht=JEe.react_stack_bottom_frame.bind(JEe),XEe={react_stack_bottom_frame:function(s){var l=s._init;return l(s._payload)}},vA=XEe.react_stack_bottom_frame.bind(XEe),U4=null,s9=0,Rr=null,Aoe,$Ee=Aoe=!1,eAe={},tAe={},nAe={};c=function(s,l,m){if(m!==null&&typeof m==\"object\"&&m._store&&(!m._store.validated&&m.key==null||m._store.validated===2)){if(typeof m._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");m._store.validated=1;var b=J(s),w=b||\"null\";if(!eAe[w]){eAe[w]=!0,m=m._owner,s=s._debugOwner;var I=\"\";s&&typeof s.tag==\"number\"&&(w=J(s))&&(I=`\\n\\nCheck the render method of \\\\``+w+\"`.\"),I||b&&(I=`\\n\\nCheck the top-level render call using <`+b+\">.\");var Y=\"\";m!=null&&s!==m&&(b=null,typeof m.tag==\"number\"?b=J(m):typeof m.name==\"string\"&&(b=m.name),b&&(Y=\" It was passed a child from \"+b+\".\")),Yt(l,function(){console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',I,Y)})}}};var F4=c3(!0),rAe=c3(!1),w0=re(null),Pb=null,H4=1,c9=2,pu=re(0),oAe={},iAe=new Set,aAe=new Set,sAe=new Set,cAe=new Set,uAe=new Set,lAe=new Set,dAe=new Set,fAe=new Set,pAe=new Set,hAe=new Set;Object.freeze(oAe);var _oe={enqueueSetState:function(s,l,m){s=s._reactInternals;var b=Ae(s),w=gp(b);w.payload=l,m!=null&&($E(m),w.callback=m),l=Mi(s,w,b),l!==null&&(He(l,s,b),Lh(l,s,b)),gt(s,b)},enqueueReplaceState:function(s,l,m){s=s._reactInternals;var b=Ae(s),w=gp(b);w.tag=PEe,w.payload=l,m!=null&&($E(m),w.callback=m),l=Mi(s,w,b),l!==null&&(He(l,s,b),Lh(l,s,b)),gt(s,b)},enqueueForceUpdate:function(s,l){s=s._reactInternals;var m=Ae(s),b=gp(m);b.tag=MEe,l!=null&&($E(l),b.callback=l),l=Mi(s,b,m),l!==null&&(He(l,s,m),Lh(l,s,m)),$t!==null&&typeof $t.markForceUpdateScheduled==\"function\"&&$t.markForceUpdateScheduled(s,m)}},Soe=typeof reportError==\"function\"?reportError:function(s){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var l=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof s==\"object\"&&s!==null&&typeof s.message==\"string\"?String(s.message):String(s),error:s});if(!window.dispatchEvent(l))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",s);return}console.error(s)},z4=null,Toe=null,mAe=Error(\"This is not a real error. It\\'s an implementation detail of React\\'s selective hydration feature. If this leaks into userspace, it\\'s a bug in React. Please file an issue.\"),Ou=!1,gAe={},yAe={},bAe={},vAe={},j4=!1,wAe={},Coe={},Roe={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xAe=!1,EAe=null;EAe=new Set;var f2=!1,rc=!1,Ioe=!1,AAe=typeof WeakSet==\"function\"?WeakSet:Set,ku=null,W4=null,V4=null,Nc=null,Mp=!1,Oy=null,u9=8192,Hht={getCacheForType:function(s){var l=vo(du),m=l.data.get(s);return m===void 0&&(m=s(),l.data.set(s,m)),m},getOwner:function(){return Zh}};if(typeof Symbol==\"function\"&&Symbol.for){var l9=Symbol.for;l9(\"selector.component\"),l9(\"selector.has_pseudo_class\"),l9(\"selector.role\"),l9(\"selector.test_id\"),l9(\"selector.text\")}var zht=[],jht=typeof WeakMap==\"function\"?WeakMap:Map,Qh=0,Sf=2,ky=4,p2=0,d9=1,G4=2,Ooe=3,N3=4,ej=6,_Ae=5,si=Qh,$i=null,Gr=null,Jr=0,Dp=0,f9=1,P3=2,p9=3,SAe=4,koe=5,q4=6,h9=7,Noe=8,M3=9,hi=Dp,Jh=null,wA=!1,K4=!1,Poe=!1,Mb=0,Os=p2,xA=0,EA=0,Moe=0,Xh=0,D3=0,m9=null,Tf=null,tj=!1,Doe=0,TAe=300,nj=1/0,CAe=500,g9=null,AA=null,Wht=0,Vht=1,Ght=2,L3=0,RAe=1,IAe=2,OAe=3,qht=4,Loe=5,Tl=0,_A=null,Y4=null,SA=0,Boe=0,Uoe=null,kAe=null,Kht=50,y9=0,Foe=null,Hoe=!1,rj=!1,Yht=50,B3=0,b9=null,Z4=!1,oj=null,NAe=!1,PAe=new Set,Zht={},ij=null,Q4=null,zoe=!1,joe=!1,aj=!1,Woe=!1,U3=0,Voe={};(function(){for(var s=0;s<soe.length;s++){var l=soe[s],m=l.toLowerCase();l=l[0].toUpperCase()+l.slice(1),qs(m,\"on\"+l)}qs(yEe,\"onAnimationEnd\"),qs(bEe,\"onAnimationIteration\"),qs(vEe,\"onAnimationStart\"),qs(\"dblclick\",\"onDoubleClick\"),qs(\"focusin\",\"onFocus\"),qs(\"focusout\",\"onBlur\"),qs(Tht,\"onTransitionRun\"),qs(Cht,\"onTransitionStart\"),qs(Rht,\"onTransitionCancel\"),qs(wEe,\"onTransitionEnd\")})(),Sn(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),Sn(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),Sn(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),Sn(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),Mt(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),Mt(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),Mt(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),Mt(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),Mt(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),Mt(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var v9=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),Goe=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(v9)),sj=\"_reactListening\"+Math.random().toString(36).slice(2),MAe=!1,DAe=!1,cj=!1,LAe=!1,uj=!1,lj=!1,BAe=!1,dj={},Qht=/\\\\r\\\\n?/g,Jht=/\\\\u0000|\\\\uFFFD/g,F3=\"http://www.w3.org/1999/xlink\",qoe=\"http://www.w3.org/XML/1998/namespace\",Xht=\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\",$ht=\"suppressHydrationWarning\",fj=\"$\",pj=\"/$\",h2=\"$?\",w9=\"$!\",emt=1,tmt=2,nmt=4,Koe=\"F!\",UAe=\"F\",FAe=\"complete\",rmt=\"style\",m2=0,J4=1,hj=2,Yoe=null,Zoe=null,HAe={dialog:!0,webview:!0},Qoe=null,zAe=typeof setTimeout==\"function\"?setTimeout:void 0,omt=typeof clearTimeout==\"function\"?clearTimeout:void 0,H3=-1,jAe=typeof Promise==\"function\"?Promise:void 0,imt=typeof queueMicrotask==\"function\"?queueMicrotask:typeof jAe<\"u\"?function(s){return jAe.resolve(null).then(s).catch(Cp)}:zAe,Joe=null,z3=0,x9=1,WAe=2,VAe=3,x0=4,E0=new Map,GAe=new Set,g2=ai.d;ai.d={f:function(){var s=g2.f(),l=xt();return s||l},r:function(s){var l=ue(s);l!==null&&l.tag===5&&l.type===\"form\"?Uh(l):g2.r(s)},D:function(s){g2.D(s),Ab(\"dns-prefetch\",s,null)},C:function(s,l){g2.C(s,l),Ab(\"preconnect\",s,l)},L:function(s,l,m){g2.L(s,l,m);var b=X4;if(b&&s&&l){var w=\\'link[rel=\"preload\"][as=\"\\'+xi(l)+\\'\"]\\';l===\"image\"&&m&&m.imageSrcSet?(w+=\\'[imagesrcset=\"\\'+xi(m.imageSrcSet)+\\'\"]\\',typeof m.imageSizes==\"string\"&&(w+=\\'[imagesizes=\"\\'+xi(m.imageSizes)+\\'\"]\\')):w+=\\'[href=\"\\'+xi(s)+\\'\"]\\';var I=w;switch(l){case\"style\":I=Op(s);break;case\"script\":I=_b(s)}E0.has(I)||(s=Dr({rel:\"preload\",href:l===\"image\"&&m&&m.imageSrcSet?void 0:s,as:l},m),E0.set(I,s),b.querySelector(w)!==null||l===\"style\"&&b.querySelector(n2(I))||l===\"script\"&&b.querySelector(uA(I))||(l=b.createElement(\"link\"),ii(l,\"link\",s),ot(l),b.head.appendChild(l)))}},m:function(s,l){g2.m(s,l);var m=X4;if(m&&s){var b=l&&typeof l.as==\"string\"?l.as:\"script\",w=\\'link[rel=\"modulepreload\"][as=\"\\'+xi(b)+\\'\"][href=\"\\'+xi(s)+\\'\"]\\',I=w;switch(b){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":I=_b(s)}if(!E0.has(I)&&(s=Dr({rel:\"modulepreload\",href:s},l),E0.set(I,s),m.querySelector(w)===null)){switch(b){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(m.querySelector(uA(I)))return}b=m.createElement(\"link\"),ii(b,\"link\",s),ot(b),m.head.appendChild(b)}}},X:function(s,l){g2.X(s,l);var m=X4;if(m&&s){var b=_t(m).hoistableScripts,w=_b(s),I=b.get(w);I||(I=m.querySelector(uA(w)),I||(s=Dr({src:s,async:!0},l),(l=E0.get(w))&&h4(s,l),I=m.createElement(\"script\"),ot(I),ii(I,\"link\",s),m.head.appendChild(I)),I={type:\"script\",instance:I,count:1,state:null},b.set(w,I))}},S:function(s,l,m){g2.S(s,l,m);var b=X4;if(b&&s){var w=_t(b).hoistableStyles,I=Op(s);l=l||\"default\";var Y=w.get(I);if(!Y){var ie={loading:z3,preload:null};if(Y=b.querySelector(n2(I)))ie.loading=x9|x0;else{s=Dr({rel:\"stylesheet\",href:s,\"data-precedence\":l},m),(m=E0.get(I))&&E3(s,m);var fe=Y=b.createElement(\"link\");ot(fe),ii(fe,\"link\",s),fe._p=new Promise(function(ge,We){fe.onload=ge,fe.onerror=We}),fe.addEventListener(\"load\",function(){ie.loading|=x9}),fe.addEventListener(\"error\",function(){ie.loading|=WAe}),ie.loading|=x0,x3(Y,l,b)}Y={type:\"stylesheet\",instance:Y,count:1,state:ie},w.set(I,Y)}}},M:function(s,l){g2.M(s,l);var m=X4;if(m&&s){var b=_t(m).hoistableScripts,w=_b(s),I=b.get(w);I||(I=m.querySelector(uA(w)),I||(s=Dr({src:s,async:!0,type:\"module\"},l),(l=E0.get(w))&&h4(s,l),I=m.createElement(\"script\"),ot(I),ii(I,\"link\",s),m.head.appendChild(I)),I={type:\"script\",instance:I,count:1,state:null},b.set(w,I))}}};var X4=typeof document>\"u\"?null:document,mj=null,E9=null,Xoe=null,gj=null,j3=_pt,A9={$$typeof:Sb,Provider:null,Consumer:null,_currentValue:j3,_currentValue2:j3,_threadCount:0},qAe=\"%c%s%c \",KAe=\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",YAe=\"\",yj=\" \",amt=Function.prototype.bind,ZAe=!1,QAe=null,JAe=null,XAe=null,$Ae=null,e_e=null,t_e=null,n_e=null,r_e=null,o_e=null;QAe=function(s,l,m,b){l=e(s,l),l!==null&&(m=t(l.memoizedState,m,0,b),l.memoizedState=m,l.baseState=m,s.memoizedProps=Dr({},s.memoizedProps),m=Es(s,2),m!==null&&He(m,s,2))},JAe=function(s,l,m){l=e(s,l),l!==null&&(m=o(l.memoizedState,m,0),l.memoizedState=m,l.baseState=m,s.memoizedProps=Dr({},s.memoizedProps),m=Es(s,2),m!==null&&He(m,s,2))},XAe=function(s,l,m,b){l=e(s,l),l!==null&&(m=n(l.memoizedState,m,b),l.memoizedState=m,l.baseState=m,s.memoizedProps=Dr({},s.memoizedProps),m=Es(s,2),m!==null&&He(m,s,2))},$Ae=function(s,l,m){s.pendingProps=t(s.memoizedProps,l,0,m),s.alternate&&(s.alternate.pendingProps=s.pendingProps),l=Es(s,2),l!==null&&He(l,s,2)},e_e=function(s,l){s.pendingProps=o(s.memoizedProps,l,0),s.alternate&&(s.alternate.pendingProps=s.pendingProps),l=Es(s,2),l!==null&&He(l,s,2)},t_e=function(s,l,m){s.pendingProps=n(s.memoizedProps,l,m),s.alternate&&(s.alternate.pendingProps=s.pendingProps),l=Es(s,2),l!==null&&He(l,s,2)},n_e=function(s){var l=Es(s,2);l!==null&&He(l,s,2)},r_e=function(s){a=s},o_e=function(s){i=s};var bj=!0,vj=null,$oe=!1,TA=null,CA=null,RA=null,_9=new Map,S9=new Map,IA=[],smt=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \"),wj=null;if(Tz.prototype.render=kre.prototype.render=function(s){var l=this._internalRoot;if(l===null)throw Error(\"Cannot update an unmounted root.\");var m=arguments;typeof m[1]==\"function\"?console.error(\"does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"):R(m[1])?console.error(\"You passed a container to the second argument of root.render(...). You don\\'t need to pass it again since you already passed it to create the root.\"):typeof m[1]<\"u\"&&console.error(\"You passed a second argument to root.render(...) but it only accepts one argument.\"),m=s;var b=l.current,w=Ae(b);Tre(b,w,m,l,null,null)},Tz.prototype.unmount=kre.prototype.unmount=function(){var s=arguments;if(typeof s[0]==\"function\"&&console.error(\"does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"),s=this._internalRoot,s!==null){this._internalRoot=null;var l=s.containerInfo;(si&(Sf|ky))!==Qh&&console.error(\"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.\"),Tre(s.current,2,null,s,null,null),xt(),l[hA]=null}},Tz.prototype.unstable_scheduleHydration=function(s){if(s){var l=qi();s={blockedOn:null,target:s,priority:l};for(var m=0;m<IA.length&&l!==0&&l<IA[m].priority;m++);IA.splice(m,0,s),m===0&&_xe(s)}},(function(){var s=Nre.version;if(s!==\"19.1.1\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(s+`\\n  - react-dom:  19.1.1\\nLearn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills\"),ai.findDOMNode=function(s){var l=s._reactInternals;if(l===void 0)throw typeof s.render==\"function\"?Error(\"Unable to find node on an unmounted component.\"):(s=Object.keys(s).join(\",\"),Error(\"Argument appears to not be a ReactComponent. Keys: \"+s));return s=z(l),s=s!==null?V(s):null,s=s===null?null:s.stateNode,s},!(function(){var s={bundleType:1,version:\"19.1.1\",rendererPackageName:\"react-dom\",currentDispatcherRef:Je,reconcilerVersion:\"19.1.1\"};return s.overrideHookState=QAe,s.overrideHookStateDeletePath=JAe,s.overrideHookStateRenamePath=XAe,s.overrideProps=$Ae,s.overridePropsDeletePath=e_e,s.overridePropsRenamePath=t_e,s.scheduleUpdate=n_e,s.setErrorHandler=r_e,s.setSuspenseHandler=o_e,s.scheduleRefresh=v,s.scheduleRoot=y,s.setRefreshHandler=x,s.getCurrentFiber=ppt,s.getLaneLabelMap=hpt,s.injectProfilingHooks=pe,ne(s)})()&&Ob&&window.top===window.self&&(-1<navigator.userAgent.indexOf(\"Chrome\")&&navigator.userAgent.indexOf(\"Edge\")===-1||-1<navigator.userAgent.indexOf(\"Firefox\"))){var i_e=window.location.protocol;/^(https?|file):$/.test(i_e)&&console.info(\"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools\"+(i_e===\"file:\"?`\\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:\"\"),\"font-weight:bold\")}Sj.createRoot=function(s,l){if(!R(s))throw Error(\"Target container is not a DOM element.\");Cxe(s);var m=!1,b=\"\",w=l3,I=d3,Y=qw,ie=null;return l!=null&&(l.hydrate?console.warn(\"hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.\"):typeof l==\"object\"&&l!==null&&l.$$typeof===lA&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\\n\\n  let root = createRoot(domContainer);\\n  root.render(<App />);`),l.unstable_strictMode===!0&&(m=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(w=l.onUncaughtError),l.onCaughtError!==void 0&&(I=l.onCaughtError),l.onRecoverableError!==void 0&&(Y=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(ie=l.unstable_transitionCallbacks)),l=bxe(s,1,!1,null,null,m,b,w,I,Y,ie,null),s[hA]=l.current,fd(s),new kre(l)},Sj.hydrateRoot=function(s,l,m){if(!R(s))throw Error(\"Target container is not a DOM element.\");Cxe(s),l===void 0&&console.error(\"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)\");var b=!1,w=\"\",I=l3,Y=d3,ie=qw,fe=null,ge=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(w=m.identifierPrefix),m.onUncaughtError!==void 0&&(I=m.onUncaughtError),m.onCaughtError!==void 0&&(Y=m.onCaughtError),m.onRecoverableError!==void 0&&(ie=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(fe=m.unstable_transitionCallbacks),m.formState!==void 0&&(ge=m.formState)),l=bxe(s,1,!0,l,m??null,b,w,I,Y,ie,fe,ge),l.context=vxe(null),m=l.current,b=Ae(m),b=Fr(b),w=gp(b),w.callback=null,Mi(m,w,b),m=b,l.current.lanes=m,Jt(l,m),ec(l),s[hA]=l.current,fd(s),new Tz(l)},Sj.version=\"19.1.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var F_e=me((Ien,U_e)=>{\"use strict\";f();U_e.exports=B_e()});function ta(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}var _0=Z(()=>{f()});var die,H_e=Z(()=>{f();die=\"2.37.3\"});function z_e(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?z_e(e.cause,t):t?null:e}var fie,Re,tr=Z(()=>{f();H_e();fie={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:n})=>t?`${e??\"https://viem.sh\"}${t}${n?`#${n}`:\"\"}`:void 0,version:`viem@${die}`},Re=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=fie.getDocsUrl?.({...n,docsPath:o}),a=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...fie.version?[`Version: ${fie.version}`]:[]].join(`\\n`);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=die}walk(t){return z_e(this,t)}}});var rI,Tj,Cj,Rj,I9=Z(()=>{f();tr();rI=class extends Re{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \"${i}\" is not in safe ${o?`${o*8}-bit ${r?\"signed\":\"unsigned\"} `:\"\"}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:\"IntegerOutOfRangeError\"})}},Tj=class extends Re{constructor(t){super(`Bytes value \"${t}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}},Cj=class extends Re{constructor(t){super(`Hex value \"${t}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}},Rj=class extends Re{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:\"SizeOverflowError\"})}}});function Xr(e,{strict:t=!0}={}){return!e||typeof e!=\"string\"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")}var S0=Z(()=>{f()});function qr(e){return Xr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var $h=Z(()=>{f();S0()});function Ui(e,{dir:t=\"left\"}={}){let n=typeof e==\"string\"?e.replace(\"0x\",\"\"):e,r=0;for(let o=0;o<n.length-1&&n[t===\"left\"?o:n.length-o-1].toString()===\"0\";o++)r++;return n=t===\"left\"?n.slice(r):n.slice(0,n.length-r),typeof e==\"string\"?(n.length===1&&t===\"right\"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}var kA=Z(()=>{f()});var O9,k9,N9,Ij=Z(()=>{f();tr();O9=class extends Re{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \"${t}\" is out-of-bounds (size: ${r}).`,{name:\"SliceOffsetOutOfBoundsError\"})}},k9=class extends Re{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:\"SizeExceedsPaddingSizeError\"})}},N9=class extends Re{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:\"InvalidBytesLengthError\"})}}});function Ci(e,{dir:t,size:n=32}={}){return typeof e==\"string\"?Py(e,{dir:t,size:n}):pie(e,{dir:t,size:n})}function Py(e,{dir:t,size:n=32}={}){if(n===null)return e;let r=e.replace(\"0x\",\"\");if(r.length>n*2)throw new k9({size:Math.ceil(r.length/2),targetSize:n,type:\"hex\"});return`0x${r[t===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function pie(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new k9({size:e.length,targetSize:n,type:\"bytes\"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let i=t===\"right\";r[i?o:n-o-1]=e[i?o:e.length-o-1]}return r}var NA=Z(()=>{f();Ij()});function Zn(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?Ne(e,t):typeof e==\"string\"?Pu(e,t):typeof e==\"boolean\"?G3(e,t):_o(e,t)}function G3(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(If(n,{size:t.size}),Ci(n,{size:t.size})):n}function _o(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=Ymt[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(If(r,{size:t.size}),Ci(r,{dir:\"right\",size:t.size})):r}function Ne(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let u=typeof e==\"bigint\"?\"n\":\"\";throw new rI({max:i?`${i}${u}`:void 0,min:`${a}${u}`,signed:n,size:r,value:`${e}${u}`})}let c=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Ci(c,{size:r}):c}function Pu(e,t={}){let n=Zmt.encode(e);return _o(n,t)}var Ymt,Zmt,xn=Z(()=>{f();I9();NA();ks();Ymt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));Zmt=new TextEncoder});function em(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?V_e(e,t):typeof e==\"boolean\"?W_e(e,t):Xr(e)?ci(e,t):Mu(e,t)}function W_e(e,t={}){let n=new Uint8Array(1);return n[0]=Number(e),typeof t.size==\"number\"?(If(n,{size:t.size}),Ci(n,{size:t.size})):n}function j_e(e){if(e>=w2.zero&&e<=w2.nine)return e-w2.zero;if(e>=w2.A&&e<=w2.F)return e-(w2.A-10);if(e>=w2.a&&e<=w2.f)return e-(w2.a-10)}function ci(e,t={}){let n=e;t.size&&(If(n,{size:t.size}),n=Ci(n,{dir:\"right\",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let o=r.length/2,i=new Uint8Array(o);for(let a=0,c=0;a<o;a++){let u=j_e(r.charCodeAt(c++)),d=j_e(r.charCodeAt(c++));if(u===void 0||d===void 0)throw new Re(`Invalid byte sequence (\"${r[c-2]}${r[c-1]}\" in \"${r}\").`);i[a]=u*16+d}return i}function V_e(e,t){let n=Ne(e,t);return ci(n)}function Mu(e,t={}){let n=Qmt.encode(e);return typeof t.size==\"number\"?(If(n,{size:t.size}),Ci(n,{dir:\"right\",size:t.size})):n}var Qmt,w2,Pc=Z(()=>{f();tr();S0();NA();ks();xn();Qmt=new TextEncoder;w2={zero:48,nine:57,A:65,F:70,a:97,f:102}});function If(e,{size:t}){if(qr(e)>t)throw new Rj({givenSize:qr(e),maxSize:t})}function Oj(e,t){let n=typeof t==\"string\"?{to:t}:t,r=n.to;return r===\"number\"?So(e,n):r===\"bigint\"?qn(e,n):r===\"string\"?tm(e,n):r===\"boolean\"?P9(e,n):ci(e,n)}function qn(e,t={}){let{signed:n}=t;t.size&&If(e,{size:t.size});let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n-1n)-1n;return r<=i?r:r-BigInt(`0x${\"f\".padStart(o*2,\"f\")}`)-1n}function P9(e,t={}){let n=e;if(t.size&&(If(n,{size:t.size}),n=Ui(n)),Ui(n)===\"0x00\")return!1;if(Ui(n)===\"0x01\")return!0;throw new Cj(n)}function So(e,t={}){return Number(qn(e,t))}function tm(e,t={}){let n=ci(e);return t.size&&(If(n,{size:t.size}),n=Ui(n,{dir:\"right\"})),new TextDecoder().decode(n)}var ks=Z(()=>{f();I9();$h();kA();Pc()});function oI(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{let i=t(o);if(n)for(let a of n)delete i[a];return{...i,...r(o)}},type:e})}var kj=Z(()=>{f()});function q3(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?So(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?So(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?hie[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=Jmt(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v==\"bigint\"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type===\"legacy\"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type===\"eip2930\"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type===\"eip1559\"&&delete t.maxFeePerBlobGas,t}function Jmt(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}var hie,G_e,M9=Z(()=>{f();ks();kj();hie={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};G_e=oI(\"transaction\",q3)});function D9(e){let t=(e.transactions??[]).map(n=>typeof n==\"string\"?n:q3(n));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var q_e,Nj=Z(()=>{f();kj();M9();q_e=oI(\"block\",D9)});function Du(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}var x2=Z(()=>{f()});function L9(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(n=>Du(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?So(e.transactionIndex):null,status:e.status?mie[e.status]:null,type:e.type?hie[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}var mie,K_e,B9=Z(()=>{f();ks();kj();x2();M9();mie={\"0x0\":\"reverted\",\"0x1\":\"success\"};K_e=oI(\"transactionReceipt\",L9)});function T0(e){let t={};return typeof e.authorizationList<\"u\"&&(t.authorizationList=$mt(e.authorizationList)),typeof e.accessList<\"u\"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<\"u\"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<\"u\"&&(typeof e.blobs[0]!=\"string\"?t.blobs=e.blobs.map(n=>_o(n)):t.blobs=e.blobs),typeof e.data<\"u\"&&(t.data=e.data),typeof e.from<\"u\"&&(t.from=e.from),typeof e.gas<\"u\"&&(t.gas=Ne(e.gas)),typeof e.gasPrice<\"u\"&&(t.gasPrice=Ne(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(t.maxFeePerBlobGas=Ne(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=Ne(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=Ne(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=Ne(e.nonce)),typeof e.to<\"u\"&&(t.to=e.to),typeof e.type<\"u\"&&(t.type=Xmt[e.type]),typeof e.value<\"u\"&&(t.value=Ne(e.value)),t}function $mt(e){return e.map(t=>({address:t.address,r:t.r?Ne(BigInt(t.r)):t.r,s:t.s?Ne(BigInt(t.s)):t.s,chainId:Ne(t.chainId),nonce:Ne(t.nonce),...typeof t.yParity<\"u\"?{yParity:Ne(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:Ne(t.v)}:{}}))}var Xmt,K3=Z(()=>{f();xn();Xmt={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});var Ftn,Htn,ztn,jtn,Wtn,Vtn,Gtn,qtn,Ktn,Ytn,Ztn,Qtn,Jtn,Xtn,$tn,enn,tnn,nnn,rnn,onn,inn,ann,snn,cnn,unn,lnn,dnn,fnn,pnn,hnn,mnn,gnn,ynn,bnn,vnn,wnn,xnn,Enn,Ann,_nn,Snn,Tnn,Cnn,Rnn,Inn,Onn,knn,Nnn,Pnn,Mnn,Dnn,Lnn,Bnn,Unn,Fnn,Hnn,znn,jnn,Wnn,Vnn,Gnn,qnn,Knn,Ynn,Znn,Qnn,Jnn,Xnn,$nn,ern,trn,nrn,rrn,orn,irn,arn,srn,crn,urn,lrn,drn,frn,prn,hrn,mrn,grn,yrn,brn,vrn,wrn,xrn,Ern,Arn,_rn,Srn,iI,gie=Z(()=>{f();Ftn=2n**(8n-1n)-1n,Htn=2n**(16n-1n)-1n,ztn=2n**(24n-1n)-1n,jtn=2n**(32n-1n)-1n,Wtn=2n**(40n-1n)-1n,Vtn=2n**(48n-1n)-1n,Gtn=2n**(56n-1n)-1n,qtn=2n**(64n-1n)-1n,Ktn=2n**(72n-1n)-1n,Ytn=2n**(80n-1n)-1n,Ztn=2n**(88n-1n)-1n,Qtn=2n**(96n-1n)-1n,Jtn=2n**(104n-1n)-1n,Xtn=2n**(112n-1n)-1n,$tn=2n**(120n-1n)-1n,enn=2n**(128n-1n)-1n,tnn=2n**(136n-1n)-1n,nnn=2n**(144n-1n)-1n,rnn=2n**(152n-1n)-1n,onn=2n**(160n-1n)-1n,inn=2n**(168n-1n)-1n,ann=2n**(176n-1n)-1n,snn=2n**(184n-1n)-1n,cnn=2n**(192n-1n)-1n,unn=2n**(200n-1n)-1n,lnn=2n**(208n-1n)-1n,dnn=2n**(216n-1n)-1n,fnn=2n**(224n-1n)-1n,pnn=2n**(232n-1n)-1n,hnn=2n**(240n-1n)-1n,mnn=2n**(248n-1n)-1n,gnn=2n**(256n-1n)-1n,ynn=-(2n**(8n-1n)),bnn=-(2n**(16n-1n)),vnn=-(2n**(24n-1n)),wnn=-(2n**(32n-1n)),xnn=-(2n**(40n-1n)),Enn=-(2n**(48n-1n)),Ann=-(2n**(56n-1n)),_nn=-(2n**(64n-1n)),Snn=-(2n**(72n-1n)),Tnn=-(2n**(80n-1n)),Cnn=-(2n**(88n-1n)),Rnn=-(2n**(96n-1n)),Inn=-(2n**(104n-1n)),Onn=-(2n**(112n-1n)),knn=-(2n**(120n-1n)),Nnn=-(2n**(128n-1n)),Pnn=-(2n**(136n-1n)),Mnn=-(2n**(144n-1n)),Dnn=-(2n**(152n-1n)),Lnn=-(2n**(160n-1n)),Bnn=-(2n**(168n-1n)),Unn=-(2n**(176n-1n)),Fnn=-(2n**(184n-1n)),Hnn=-(2n**(192n-1n)),znn=-(2n**(200n-1n)),jnn=-(2n**(208n-1n)),Wnn=-(2n**(216n-1n)),Vnn=-(2n**(224n-1n)),Gnn=-(2n**(232n-1n)),qnn=-(2n**(240n-1n)),Knn=-(2n**(248n-1n)),Ynn=-(2n**(256n-1n)),Znn=2n**8n-1n,Qnn=2n**16n-1n,Jnn=2n**24n-1n,Xnn=2n**32n-1n,$nn=2n**40n-1n,ern=2n**48n-1n,trn=2n**56n-1n,nrn=2n**64n-1n,rrn=2n**72n-1n,orn=2n**80n-1n,irn=2n**88n-1n,arn=2n**96n-1n,srn=2n**104n-1n,crn=2n**112n-1n,urn=2n**120n-1n,lrn=2n**128n-1n,drn=2n**136n-1n,frn=2n**144n-1n,prn=2n**152n-1n,hrn=2n**160n-1n,mrn=2n**168n-1n,grn=2n**176n-1n,yrn=2n**184n-1n,brn=2n**192n-1n,vrn=2n**200n-1n,wrn=2n**208n-1n,xrn=2n**216n-1n,Ern=2n**224n-1n,Arn=2n**232n-1n,_rn=2n**240n-1n,Srn=2n**248n-1n,iI=2n**256n-1n});function Ri(e){return typeof e[0]==\"string\"?ls(e):e0t(e)}function e0t(e){let t=0;for(let o of e)t+=o.length;let n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function ls(e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}var Mc=Z(()=>{f()});var U9,aI,Pj,yie=Z(()=>{f();tr();U9=class extends Re{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},aI=class extends Re{constructor({length:t,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},Pj=class extends Re{constructor({count:t,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function sI(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(t0t);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}var t0t,Mj=Z(()=>{f();yie();t0t={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Pj({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new aI({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new U9({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new U9({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}});function My(e,t=\"hex\"){let n=Y_e(e),r=sI(new Uint8Array(n.length));return n.encode(r),t===\"hex\"?_o(r.bytes):r.bytes}function Y_e(e){return Array.isArray(e)?n0t(e.map(t=>Y_e(t))):r0t(e)}function n0t(e){let t=e.reduce((o,i)=>o+i.length,0),n=Z_e(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:i}of e)i(o)}}}function r0t(e){let t=typeof e==\"string\"?ci(e):e,n=Z_e(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function Z_e(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Re(\"Length is too large.\")}var Dj=Z(()=>{f();tr();Mj();Pc();xn()});var bie,vie,wie,Lj=Z(()=>{f();bie={gwei:9,wei:18},vie={ether:-9,wei:9},wie={ether:-18,gwei:-9}});function na(e,t){let n=e.toString(),r=n.startsWith(\"-\");r&&(n=n.slice(1)),n=n.padStart(t,\"0\");let[o,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,\"\"),`${r?\"-\":\"\"}${o||\"0\"}${i?`.${i}`:\"\"}`}var Bj=Z(()=>{f()});function cI(e,t=\"wei\"){return na(e,bie[t])}var Uj=Z(()=>{f();Lj();Bj()});function ds(e,t=\"wei\"){return na(e,vie[t])}var Y3=Z(()=>{f();Lj();Bj()});function E2(e){let t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>`  ${`${r}:`.padEnd(n+1)}  ${o}`).join(`\\n`)}var Fj,Hj,zj,jj,Wj,uI,lI,Vj,C0=Z(()=>{f();Uj();Y3();tr();Fj=class extends Re{constructor(){super([\"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\",\"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.\"].join(`\\n`),{name:\"FeeConflictError\"})}},Hj=class extends Re{constructor({v:t}){super(`Invalid \\\\`v\\\\` value \"${t}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}},zj=class extends Re{constructor({transaction:t}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",E2(t),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}},jj=class extends Re{constructor({storageKey:t}){super(`Size for storage key \"${t}\" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:\"InvalidStorageKeySizeError\"})}},Wj=class extends Re{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:p,to:h,value:g}){let y=E2({chain:o&&`${o?.name} (id: ${o?.id})`,from:n?.address,to:h,value:typeof g<\"u\"&&`${cI(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${ds(c)} gwei`,maxFeePerGas:typeof u<\"u\"&&`${ds(u)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${ds(d)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",y].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},uI=class extends Re{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:i}){let a=\"Transaction\";r&&i!==void 0&&(a=`Transaction at block time \"${r}\" at index \"${i}\"`),t&&i!==void 0&&(a=`Transaction at block hash \"${t}\" at index \"${i}\"`),n&&i!==void 0&&(a=`Transaction at block number \"${n}\" at index \"${i}\"`),o&&(a=`Transaction with hash \"${o}\"`),super(`${a} could not be found.`,{name:\"TransactionNotFoundError\"})}},lI=class extends Re{constructor({hash:t}){super(`Transaction receipt with hash \"${t}\" could not be found. The Transaction may not be processed on a block yet.`,{name:\"TransactionReceiptNotFoundError\"})}},Vj=class extends Re{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});function Q_e(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let{chainId:r,nonce:o,...i}=n,a=n.address;t.push([r?Zn(r):\"0x\",a,o?Zn(o):\"0x\",...dI({},i)])}return t}var J_e=Z(()=>{f();xn();xie()});function fI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof e.blobs[0]==\"string\"?e.blobs.map(i=>ci(i)):e.blobs,o=[];for(let i of r)o.push(Uint8Array.from(t.blobToKzgCommitment(i)));return n===\"bytes\"?o:o.map(i=>_o(i))}var Gj=Z(()=>{f();Pc();xn()});function pI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof e.blobs[0]==\"string\"?e.blobs.map(a=>ci(a)):e.blobs,o=typeof e.commitments[0]==\"string\"?e.commitments.map(a=>ci(a)):e.commitments,i=[];for(let a=0;a<r.length;a++){let c=r[a],u=o[a];i.push(Uint8Array.from(t.computeBlobKzgProof(c,u)))}return n===\"bytes\"?i:i.map(a=>_o(a))}var qj=Z(()=>{f();Pc();xn()});var Z3,X_e=Z(()=>{f();Z3=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});function Bb(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function Dy(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function Lu(e,...t){if(!Bb(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function Kj(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.createHasher\");Dy(e.outputLen),Dy(e.blockLen)}function _2(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function Yj(e,t){Lu(e);let n=t.outputLen;if(e.length<n)throw new Error(\"digestInto() expects output buffer of length at least \"+n)}function eSe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function R0(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Zj(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ly(e,t){return e<<32-t|e>>>t}function i0t(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function a0t(e){for(let t=0;t<e.length;t++)e[t]=i0t(e[t]);return e}function nm(e){if(Lu(e),tSe)return e.toHex();let t=\"\";for(let n=0;n<e.length;n++)t+=s0t[e[n]];return t}function $_e(e){if(e>=A2._0&&e<=A2._9)return e-A2._0;if(e>=A2.A&&e<=A2.F)return e-(A2.A-10);if(e>=A2.a&&e<=A2.f)return e-(A2.a-10)}function MA(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(tSe)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=$_e(e.charCodeAt(i)),c=$_e(e.charCodeAt(i+1));if(a===void 0||c===void 0){let u=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+u+\\'\" at index \\'+i)}r[o]=a*16+c}return r}function Qj(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function Q3(e){return typeof e==\"string\"&&(e=Qj(e)),Lu(e),e}function Bu(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];Lu(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function hI(e){let t=r=>e().update(Q3(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function By(e=32){if(Z3&&typeof Z3.getRandomValues==\"function\")return Z3.getRandomValues(new Uint8Array(e));if(Z3&&typeof Z3.randomBytes==\"function\")return Uint8Array.from(Z3.randomBytes(e));throw new Error(\"crypto.getRandomValues must be defined\")}var o0t,Eie,tSe,s0t,A2,PA,I0=Z(()=>{f();X_e();o0t=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;Eie=o0t?e=>e:a0t,tSe=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",s0t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));A2={_0:48,_9:57,A:65,F:70,a:97,f:102};PA=class{}});function c0t(e,t,n,r){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,n,r);let o=BigInt(32),i=BigInt(4294967295),a=Number(n>>o&i),c=Number(n&i),u=r?4:0,d=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+d,c,r)}function nSe(e,t,n){return e&t^~e&n}function rSe(e,t,n){return e&t^e&n^t&n}var F9,S2,Cl,Rl,oSe=Z(()=>{f();I0();F9=class extends PA{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Zj(this.buffer)}update(t){_2(this),t=Q3(t),Lu(t);let{view:n,buffer:r,blockLen:o}=this,i=t.length;for(let a=0;a<i;){let c=Math.min(o-this.pos,i-a);if(c===o){let u=Zj(t);for(;o<=i-a;a+=o)this.process(u,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){_2(this),Yj(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:a}=this;n[a++]=128,R0(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let h=a;h<o;h++)n[h]=0;c0t(r,o-8,BigInt(this.length*8),i),this.process(r,0);let c=Zj(t),u=this.outputLen;if(u%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let d=u/4,p=this.get();if(d>p.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let h=0;h<d;h++)c.setUint32(4*h,p[h],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:a,pos:c}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=c,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}},S2=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Cl=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Rl=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function u0t(e,t=!1){return t?{h:Number(e&Jj),l:Number(e>>iSe&Jj)}:{h:Number(e>>iSe&Jj)|0,l:Number(e&Jj)|0}}function Xj(e,t=!1){let n=e.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){let{h:a,l:c}=u0t(e[i],t);[r[i],o[i]]=[a,c]}return[r,o]}function Ub(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}var Jj,iSe,Aie,_ie,J3,X3,H9,z9,aSe,sSe,cSe,uSe,lSe,dSe,fSe,pSe,hSe,mSe,Sie=Z(()=>{f();Jj=BigInt(4294967295),iSe=BigInt(32);Aie=(e,t,n)=>e>>>n,_ie=(e,t,n)=>e<<32-n|t>>>n,J3=(e,t,n)=>e>>>n|t<<32-n,X3=(e,t,n)=>e<<32-n|t>>>n,H9=(e,t,n)=>e<<64-n|t>>>n-32,z9=(e,t,n)=>e>>>n-32|t<<64-n,aSe=(e,t,n)=>e<<n|t>>>32-n,sSe=(e,t,n)=>t<<n|e>>>32-n,cSe=(e,t,n)=>t<<n-32|e>>>64-n,uSe=(e,t,n)=>e<<n-32|t>>>64-n;lSe=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),dSe=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,fSe=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),pSe=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,hSe=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),mSe=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0});var d0t,DA,$j,gSe,f0t,p0t,LA,BA,eW,Tie,Uy,tW,ySe,mI=Z(()=>{f();oSe();Sie();I0();d0t=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),DA=new Uint32Array(64),$j=class extends F9{constructor(t=32){super(64,t,8,!1),this.A=S2[0]|0,this.B=S2[1]|0,this.C=S2[2]|0,this.D=S2[3]|0,this.E=S2[4]|0,this.F=S2[5]|0,this.G=S2[6]|0,this.H=S2[7]|0}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:u}=this;return[t,n,r,o,i,a,c,u]}set(t,n,r,o,i,a,c,u){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=a|0,this.G=c|0,this.H=u|0}process(t,n){for(let h=0;h<16;h++,n+=4)DA[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=DA[h-15],y=DA[h-2],v=Ly(g,7)^Ly(g,18)^g>>>3,x=Ly(y,17)^Ly(y,19)^y>>>10;DA[h]=x+DA[h-7]+v+DA[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let g=Ly(c,6)^Ly(c,11)^Ly(c,25),y=p+g+nSe(c,u,d)+d0t[h]+DA[h]|0,x=(Ly(r,2)^Ly(r,13)^Ly(r,22))+rSe(r,o,i)|0;p=d,d=u,u=c,c=a+y|0,a=i,i=o,o=r,r=y+x|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,o,i,a,c,u,d,p)}roundClean(){R0(DA)}destroy(){this.set(0,0,0,0,0,0,0,0),R0(this.buffer)}},gSe=Xj([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(e=>BigInt(e))),f0t=gSe[0],p0t=gSe[1],LA=new Uint32Array(80),BA=new Uint32Array(80),eW=class extends F9{constructor(t=64){super(128,t,16,!1),this.Ah=Rl[0]|0,this.Al=Rl[1]|0,this.Bh=Rl[2]|0,this.Bl=Rl[3]|0,this.Ch=Rl[4]|0,this.Cl=Rl[5]|0,this.Dh=Rl[6]|0,this.Dl=Rl[7]|0,this.Eh=Rl[8]|0,this.El=Rl[9]|0,this.Fh=Rl[10]|0,this.Fl=Rl[11]|0,this.Gh=Rl[12]|0,this.Gl=Rl[13]|0,this.Hh=Rl[14]|0,this.Hl=Rl[15]|0}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:a,Dh:c,Dl:u,Eh:d,El:p,Fh:h,Fl:g,Gh:y,Gl:v,Hh:x,Hl:R}=this;return[t,n,r,o,i,a,c,u,d,p,h,g,y,v,x,R]}set(t,n,r,o,i,a,c,u,d,p,h,g,y,v,x,R){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=c|0,this.Dl=u|0,this.Eh=d|0,this.El=p|0,this.Fh=h|0,this.Fl=g|0,this.Gh=y|0,this.Gl=v|0,this.Hh=x|0,this.Hl=R|0}process(t,n){for(let P=0;P<16;P++,n+=4)LA[P]=t.getUint32(n),BA[P]=t.getUint32(n+=4);for(let P=16;P<80;P++){let z=LA[P-15]|0,V=BA[P-15]|0,Q=J3(z,V,1)^J3(z,V,8)^Aie(z,V,7),$=X3(z,V,1)^X3(z,V,8)^_ie(z,V,7),oe=LA[P-2]|0,J=BA[P-2]|0,re=J3(oe,J,19)^H9(oe,J,61)^Aie(oe,J,6),q=X3(oe,J,19)^z9(oe,J,61)^_ie(oe,J,6),K=fSe($,q,BA[P-7],BA[P-16]),U=pSe(K,Q,re,LA[P-7],LA[P-16]);LA[P]=U|0,BA[P]=K|0}let{Ah:r,Al:o,Bh:i,Bl:a,Ch:c,Cl:u,Dh:d,Dl:p,Eh:h,El:g,Fh:y,Fl:v,Gh:x,Gl:R,Hh:S,Hl:M}=this;for(let P=0;P<80;P++){let z=J3(h,g,14)^J3(h,g,18)^H9(h,g,41),V=X3(h,g,14)^X3(h,g,18)^z9(h,g,41),Q=h&y^~h&x,$=g&v^~g&R,oe=hSe(M,V,$,p0t[P],BA[P]),J=mSe(oe,S,z,Q,f0t[P],LA[P]),re=oe|0,q=J3(r,o,28)^H9(r,o,34)^H9(r,o,39),K=X3(r,o,28)^z9(r,o,34)^z9(r,o,39),U=r&i^r&c^i&c,T=o&a^o&u^a&u;S=x|0,M=R|0,x=y|0,R=v|0,y=h|0,v=g|0,{h,l:g}=Ub(d|0,p|0,J|0,re|0),d=c|0,p=u|0,c=i|0,u=a|0,i=r|0,a=o|0;let k=lSe(re,K,T);r=dSe(k,J,q,U),o=k|0}({h:r,l:o}=Ub(this.Ah|0,this.Al|0,r|0,o|0)),{h:i,l:a}=Ub(this.Bh|0,this.Bl|0,i|0,a|0),{h:c,l:u}=Ub(this.Ch|0,this.Cl|0,c|0,u|0),{h:d,l:p}=Ub(this.Dh|0,this.Dl|0,d|0,p|0),{h,l:g}=Ub(this.Eh|0,this.El|0,h|0,g|0),{h:y,l:v}=Ub(this.Fh|0,this.Fl|0,y|0,v|0),{h:x,l:R}=Ub(this.Gh|0,this.Gl|0,x|0,R|0),{h:S,l:M}=Ub(this.Hh|0,this.Hl|0,S|0,M|0),this.set(r,o,i,a,c,u,d,p,h,g,y,v,x,R,S,M)}roundClean(){R0(LA,BA)}destroy(){R0(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Tie=class extends eW{constructor(){super(48),this.Ah=Cl[0]|0,this.Al=Cl[1]|0,this.Bh=Cl[2]|0,this.Bl=Cl[3]|0,this.Ch=Cl[4]|0,this.Cl=Cl[5]|0,this.Dh=Cl[6]|0,this.Dl=Cl[7]|0,this.Eh=Cl[8]|0,this.El=Cl[9]|0,this.Fh=Cl[10]|0,this.Fl=Cl[11]|0,this.Gh=Cl[12]|0,this.Gl=Cl[13]|0,this.Hh=Cl[14]|0,this.Hl=Cl[15]|0}},Uy=hI(()=>new $j),tW=hI(()=>new eW),ySe=hI(()=>new Tie)});var $3,nW=Z(()=>{f();mI();$3=Uy});function j9(e,t){let n=t||\"hex\",r=$3(Xr(e,{strict:!1})?em(e):e);return n===\"bytes\"?r:Zn(r)}var Cie=Z(()=>{f();nW();S0();Pc();xn()});function bSe(e){let{commitment:t,version:n=1}=e,r=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=j9(t,\"bytes\");return o.set([n],0),r===\"bytes\"?o:_o(o)}var vSe=Z(()=>{f();xn();Cie()});function rW(e){let{commitments:t,version:n}=e,r=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let i of t)o.push(bSe({commitment:i,to:r,version:n}));return o}var Rie=Z(()=>{f();vSe()});var oW,gI,iW,aW,Iie=Z(()=>{f();tr();oW=class extends Re{constructor({maxSize:t,size:n}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:\"BlobSizeTooLargeError\"})}},gI=class extends Re{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}},iW=class extends Re{constructor({hash:t,size:n}){super(`Versioned hash \"${t}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${n}`],name:\"InvalidVersionedHashSizeError\"})}},aW=class extends Re{constructor({hash:t,version:n}){super(`Versioned hash \"${t}\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${n}`],name:\"InvalidVersionedHashVersionError\"})}}});function wSe(e){let t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),n=typeof e.data==\"string\"?ci(e.data):e.data,r=qr(n);if(!r)throw new gI;if(r>761855)throw new oW({maxSize:761855,size:r});let o=[],i=!0,a=0;for(;i;){let c=sI(new Uint8Array(131072)),u=0;for(;u<4096;){let d=n.slice(a,a+31);if(c.pushByte(0),c.pushBytes(d),d.length<31){c.pushByte(128),i=!1;break}u++,a+=31}o.push(c)}return t===\"bytes\"?o.map(c=>c.bytes):o.map(c=>_o(c.bytes))}var xSe=Z(()=>{f();Iie();Mj();$h();Pc();xn()});function sW(e){let{data:t,kzg:n,to:r}=e,o=e.blobs??wSe({data:t,to:r}),i=e.commitments??fI({blobs:o,kzg:n,to:r}),a=e.proofs??pI({blobs:o,commitments:i,kzg:n,to:r}),c=[];for(let u=0;u<o.length;u++)c.push({blob:o[u],commitment:i[u],proof:a[u]});return c}var Oie=Z(()=>{f();Gj();qj();xSe()});var Fi,Fy=Z(()=>{f();tr();Fi=class extends Re{constructor({address:t}){super(`Address \"${t}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}});var eT,cW,uW,W9,tT,V9=Z(()=>{f();tr();eT=class extends Re{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain \"${n.name}\" does not support contract \"${r.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract \"${r.name}\" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract \"${r.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}},cW=class extends Re{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} \\\\u2013 ${t.name}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t.id} \\\\u2013 ${t.name}`],name:\"ChainMismatchError\"})}},uW=class extends Re{constructor(){super([\"No chain was provided to the request.\",\"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.\"].join(`\\n`),{name:\"ChainNotFoundError\"})}},W9=class extends Re{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}},tT=class extends Re{constructor({chainId:t}){super(typeof t==\"number\"?`Chain ID \"${t}\" is invalid.`:\"Chain ID is invalid.\",{name:\"InvalidChainIdError\"})}}});var T2,O0,yI,bI,vI,wI,xI,EI,AI,_I,Fb,k0,UA=Z(()=>{f();Y3();tr();T2=class extends Re{constructor({cause:t,message:n}={}){let r=n?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${r?`with reason: ${r}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"})}};Object.defineProperty(T2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(T2,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});O0=class extends Re{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${ds(n)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:\"FeeCapTooHighError\"})}};Object.defineProperty(O0,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});yI=class extends Re{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${ds(n)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:t,name:\"FeeCapTooLowError\"})}};Object.defineProperty(yI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});bI=class extends Re{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is higher than the next one expected.`,{cause:t,name:\"NonceTooHighError\"})}};Object.defineProperty(bI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});vI=class extends Re{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(`\\n`),{cause:t,name:\"NonceTooLowError\"})}};Object.defineProperty(vI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});wI=class extends Re{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:t,name:\"NonceMaxValueError\"})}};Object.defineProperty(wI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});xI=class extends Re{constructor({cause:t}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\\n`),{cause:t,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}};Object.defineProperty(xI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});EI=class extends Re{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:\"IntrinsicGasTooHighError\"})}};Object.defineProperty(EI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});AI=class extends Re{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction is too low.`,{cause:t,name:\"IntrinsicGasTooLowError\"})}};Object.defineProperty(AI,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});_I=class extends Re{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(_I,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});Fb=class extends Re{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${n?` = ${ds(n)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${ds(r)} gwei`:\"\"}).`].join(`\\n`),{cause:t,name:\"TipAboveFeeCapError\"})}};Object.defineProperty(Fb,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});k0=class extends Re{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:\"UnknownNodeError\"})}}});var N0,SI=Z(()=>{f();N0=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});function A0t(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){let c=(a+8)%10,u=(a+2)%10,d=n[u],p=n[u+1],h=ESe(d,p,1)^n[c],g=ASe(d,p,1)^n[c+1];for(let y=0;y<50;y+=10)e[a+y]^=h,e[a+y+1]^=g}let o=e[2],i=e[3];for(let a=0;a<24;a++){let c=SSe[a],u=ESe(o,i,c),d=ASe(o,i,c),p=_Se[a];o=e[p],i=e[p+1],e[p]=u,e[p+1]=d}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)n[c]=e[a+c];for(let c=0;c<10;c++)e[a+c]^=~n[(c+2)%10]&n[(c+4)%10]}e[0]^=x0t[r],e[1]^=E0t[r]}R0(n)}var g0t,G9,y0t,b0t,v0t,w0t,_Se,SSe,TSe,CSe,x0t,E0t,ESe,ASe,kie,_0t,C2,q9=Z(()=>{f();Sie();I0();g0t=BigInt(0),G9=BigInt(1),y0t=BigInt(2),b0t=BigInt(7),v0t=BigInt(256),w0t=BigInt(113),_Se=[],SSe=[],TSe=[];for(let e=0,t=G9,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],_Se.push(2*(5*r+n)),SSe.push((e+1)*(e+2)/2%64);let o=g0t;for(let i=0;i<7;i++)t=(t<<G9^(t>>b0t)*w0t)%v0t,t&y0t&&(o^=G9<<(G9<<BigInt(i))-G9);TSe.push(o)}CSe=Xj(TSe,!0),x0t=CSe[0],E0t=CSe[1],ESe=(e,t,n)=>n>32?cSe(e,t,n):aSe(e,t,n),ASe=(e,t,n)=>n>32?uSe(e,t,n):sSe(e,t,n);kie=class e extends PA{constructor(t,n,r,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,Dy(r),!(0<t&&t<200))throw new Error(\"only keccak-f1600 function is supported\");this.state=new Uint8Array(200),this.state32=eSe(this.state)}clone(){return this._cloneInto()}keccak(){Eie(this.state32),A0t(this.state32,this.rounds),Eie(this.state32),this.posOut=0,this.pos=0}update(t){_2(this),t=Q3(t),Lu(t);let{blockLen:n,state:r}=this,o=t.length;for(let i=0;i<o;){let a=Math.min(n-this.pos,o-i);for(let c=0;c<a;c++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){_2(this,!1),Lu(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return Dy(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Yj(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,R0(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new e(n,r,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}},_0t=(e,t,n)=>hI(()=>new kie(t,e,n)),C2=_0t(1,136,256/8)});function lr(e,t){let n=t||\"hex\",r=C2(Xr(e,{strict:!1})?em(e):e);return n===\"bytes\"?r:Zn(r)}var rm=Z(()=>{f();q9();S0();Pc();xn()});function Hb(e,t){if(Nie.has(`${e}.${t}`))return Nie.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=lr(Mu(n),\"bytes\"),o=(t?n.substring(`${t}0x`.length):n).split(\"\");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());let i=`0x${o.join(\"\")}`;return Nie.set(`${e}.${t}`,i),i}function nr(e,t){if(!Un(e,{strict:!1}))throw new Fi({address:e});return Hb(e,t)}var Nie,zb=Z(()=>{f();Fy();Pc();rm();SI();Bp();Nie=new N0(8192)});function Un(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(Pie.has(r))return Pie.get(r);let o=S0t.test(e)?e.toLowerCase()===e?!0:n?Hb(e)===e:!0:!1;return Pie.set(r,o),o}var S0t,Pie,Bp=Z(()=>{f();SI();zb();S0t=/^0x[a-fA-F0-9]{40}$/,Pie=new N0(8192)});function Il(e,t,n,{strict:r}={}){return Xr(e,{strict:!1})?nT(e,t,n,{strict:r}):lW(e,t,n,{strict:r})}function RSe(e,t){if(typeof t==\"number\"&&t>0&&t>qr(e)-1)throw new O9({offset:t,position:\"start\",size:qr(e)})}function ISe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&qr(e)!==n-t)throw new O9({offset:n,position:\"end\",size:qr(e)})}function lW(e,t,n,{strict:r}={}){RSe(e,t);let o=e.slice(t,n);return r&&ISe(o,t,n),o}function nT(e,t,n,{strict:r}={}){RSe(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return r&&ISe(o,t,n),o}var jb=Z(()=>{f();Ij();S0();$h()});function OSe(e){let{authorizationList:t}=e;if(t)for(let n of t){let{chainId:r}=n,o=n.address;if(!Un(o))throw new Fi({address:o});if(r<0)throw new tT({chainId:r})}dW(e)}function kSe(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new gI;for(let n of t){let r=qr(n),o=So(Il(n,0,1));if(r!==32)throw new iW({hash:n,size:r});if(o!==1)throw new aW({hash:n,version:o})}}dW(e)}function dW(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:o}=e;if(t<=0)throw new tT({chainId:t});if(o&&!Un(o))throw new Fi({address:o});if(r&&r>iI)throw new O0({maxFeePerGas:r});if(n&&r&&n>r)throw new Fb({maxFeePerGas:r,maxPriorityFeePerGas:n})}function NSe(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:i}=e;if(t<=0)throw new tT({chainId:t});if(i&&!Un(i))throw new Fi({address:i});if(n||o)throw new Re(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\");if(r&&r>iI)throw new O0({maxFeePerGas:r})}function PSe(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:i}=e;if(i&&!Un(i))throw new Fi({address:i});if(typeof t<\"u\"&&t<=0)throw new tT({chainId:t});if(n||o)throw new Re(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\");if(r&&r>iI)throw new O0({maxFeePerGas:r})}var MSe=Z(()=>{f();gie();Fy();tr();Iie();V9();UA();Bp();$h();jb();ks()});function fW(e){if(e.type)return e.type;if(typeof e.authorizationList<\"u\")return\"eip7702\";if(typeof e.blobs<\"u\"||typeof e.blobVersionedHashes<\"u\"||typeof e.maxFeePerBlobGas<\"u\"||typeof e.sidecars<\"u\")return\"eip4844\";if(typeof e.maxFeePerGas<\"u\"||typeof e.maxPriorityFeePerGas<\"u\")return\"eip1559\";if(typeof e.gasPrice<\"u\")return typeof e.accessList<\"u\"?\"eip2930\":\"legacy\";throw new zj({transaction:e})}var Mie=Z(()=>{f();C0()});function K9(e){if(!e||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:o}=e[n];for(let i=0;i<o.length;i++)if(o[i].length-2!==64)throw new jj({storageKey:o[i]});if(!Un(r,{strict:!1}))throw new Fi({address:r});t.push([r,o])}return t}var DSe=Z(()=>{f();Fy();C0();Bp()});function LSe(e,t){let n=fW(e);return n===\"eip1559\"?R0t(e,t):n===\"eip2930\"?I0t(e,t):n===\"eip4844\"?C0t(e,t):n===\"eip7702\"?T0t(e,t):O0t(e,t)}function T0t(e,t){let{authorizationList:n,chainId:r,gas:o,nonce:i,to:a,value:c,maxFeePerGas:u,maxPriorityFeePerGas:d,accessList:p,data:h}=e;OSe(e);let g=K9(p),y=Q_e(n);return ls([\"0x04\",My([Ne(r),i?Ne(i):\"0x\",d?Ne(d):\"0x\",u?Ne(u):\"0x\",o?Ne(o):\"0x\",a??\"0x\",c?Ne(c):\"0x\",h??\"0x\",g,y,...dI(e,t)])])}function C0t(e,t){let{chainId:n,gas:r,nonce:o,to:i,value:a,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:d,accessList:p,data:h}=e;kSe(e);let g=e.blobVersionedHashes,y=e.sidecars;if(e.blobs&&(typeof g>\"u\"||typeof y>\"u\")){let P=typeof e.blobs[0]==\"string\"?e.blobs:e.blobs.map(Q=>_o(Q)),z=e.kzg,V=fI({blobs:P,kzg:z});if(typeof g>\"u\"&&(g=rW({commitments:V})),typeof y>\"u\"){let Q=pI({blobs:P,commitments:V,kzg:z});y=sW({blobs:P,commitments:V,proofs:Q})}}let v=K9(p),x=[Ne(n),o?Ne(o):\"0x\",d?Ne(d):\"0x\",u?Ne(u):\"0x\",r?Ne(r):\"0x\",i??\"0x\",a?Ne(a):\"0x\",h??\"0x\",v,c?Ne(c):\"0x\",g??[],...dI(e,t)],R=[],S=[],M=[];if(y)for(let P=0;P<y.length;P++){let{blob:z,commitment:V,proof:Q}=y[P];R.push(z),S.push(V),M.push(Q)}return ls([\"0x03\",y?My([x,R,S,M]):My(x)])}function R0t(e,t){let{chainId:n,gas:r,nonce:o,to:i,value:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:p}=e;dW(e);let h=K9(d),g=[Ne(n),o?Ne(o):\"0x\",u?Ne(u):\"0x\",c?Ne(c):\"0x\",r?Ne(r):\"0x\",i??\"0x\",a?Ne(a):\"0x\",p??\"0x\",h,...dI(e,t)];return ls([\"0x02\",My(g)])}function I0t(e,t){let{chainId:n,gas:r,data:o,nonce:i,to:a,value:c,accessList:u,gasPrice:d}=e;NSe(e);let p=K9(u),h=[Ne(n),i?Ne(i):\"0x\",d?Ne(d):\"0x\",r?Ne(r):\"0x\",a??\"0x\",c?Ne(c):\"0x\",o??\"0x\",p,...dI(e,t)];return ls([\"0x01\",My(h)])}function O0t(e,t){let{chainId:n=0,gas:r,data:o,nonce:i,to:a,value:c,gasPrice:u}=e;PSe(e);let d=[i?Ne(i):\"0x\",u?Ne(u):\"0x\",r?Ne(r):\"0x\",a??\"0x\",c?Ne(c):\"0x\",o??\"0x\"];if(t){let p=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);let y=27n+(t.v===27n?0n:1n);if(t.v!==y)throw new Hj({v:t.v});return y})(),h=Ui(t.r),g=Ui(t.s);d=[...d,Ne(p),h===\"0x00\"?\"0x\":h,g===\"0x00\"?\"0x\":g]}else n>0&&(d=[...d,Ne(n),\"0x\",\"0x\"]);return My(d)}function dI(e,t){let n=t??e,{v:r,yParity:o}=n;if(typeof n.r>\"u\")return[];if(typeof n.s>\"u\")return[];if(typeof r>\"u\"&&typeof o>\"u\")return[];let i=Ui(n.r),a=Ui(n.s);return[typeof o==\"number\"?o?Ne(1):\"0x\":r===0n?\"0x\":r===1n?Ne(1):r===27n?\"0x\":Ne(1),i===\"0x00\"?\"0x\":i,a===\"0x00\"?\"0x\":a]}var xie=Z(()=>{f();C0();J_e();Gj();qj();Rie();Oie();Mc();kA();xn();Dj();MSe();Mie();DSe()});var BSe,USe=Z(()=>{f();BSe={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}}});var FSe,HSe=Z(()=>{f();ks();Nj();M9();B9();FSe={block:q_e({format(e){return{transactions:e.transactions?.map(n=>{if(typeof n==\"string\")return n;let r=q3(n);return r.typeHex===\"0x7e\"&&(r.isSystemTx=n.isSystemTx,r.mint=n.mint?qn(n.mint):void 0,r.sourceHash=n.sourceHash,r.type=\"deposit\"),r}),stateRoot:e.stateRoot}}}),transaction:G_e({format(e){let t={};return e.type===\"0x7e\"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?qn(e.mint):void 0,t.sourceHash=e.sourceHash,t.type=\"deposit\"),t}}),transactionReceipt:K_e({format(e){return{l1GasPrice:e.l1GasPrice?qn(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?qn(e.l1GasUsed):null,l1Fee:e.l1Fee?qn(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})}});function k0t(e,t){return P0t(e)?N0t(e):LSe(e,t)}function N0t(e){M0t(e);let{sourceHash:t,data:n,from:r,gas:o,isSystemTx:i,mint:a,to:c,value:u}=e,d=[t,r,c??\"0x\",a?Zn(a):\"0x\",u?Zn(u):\"0x\",o?Zn(o):\"0x\",i?\"0x1\":\"0x\",n??\"0x\"];return ls([\"0x7e\",My(d)])}function P0t(e){return e.type===\"deposit\"||typeof e.sourceHash<\"u\"}function M0t(e){let{from:t,to:n}=e;if(t&&!Un(t))throw new Fi({address:t});if(n&&!Un(n))throw new Fi({address:n})}var zSe,jSe=Z(()=>{f();Fy();Bp();Mc();xn();Dj();xie();zSe={transaction:k0t}});var P0,Y9=Z(()=>{f();USe();HSe();jSe();P0={blockTime:2e3,contracts:BSe,formatters:FSe,serializers:zSe}});var Die,WSe=Z(()=>{f();_0();Die=ta({id:42161,name:\"Arbitrum One\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:250,rpcUrls:{default:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://arbiscan.io\",apiUrl:\"https://api.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7654707}}})});var Lie,VSe=Z(()=>{f();_0();Lie=ta({id:421614,name:\"Arbitrum Sepolia\",blockTime:250,nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://sepolia.arbiscan.io\",apiUrl:\"https://api-sepolia.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:81930}},testnet:!0})});var Z9,dr,D0t,GSe=Z(()=>{f();Y9();_0();Z9=1,dr=ta({...P0,id:8453,name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://basescan.org\",apiUrl:\"https://api.basescan.org/api\"}},contracts:{...P0.contracts,disputeGameFactory:{[Z9]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[Z9]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[Z9]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[Z9]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:Z9}),D0t=ta({...dr,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://mainnet-preconf.base.org\"]}}})});var Q9,Ya,L0t,qSe=Z(()=>{f();Y9();_0();Q9=11155111,Ya=ta({...P0,id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://sepolia.basescan.org\",apiUrl:\"https://api-sepolia.basescan.org/api\"}},contracts:{...P0.contracts,disputeGameFactory:{[Q9]:{address:\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\"}},l2OutputOracle:{[Q9]:{address:\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\"}},portal:{[Q9]:{address:\"0x49f53e41452c74589e85ca1677426ba426459e85\",blockCreated:4446677}},l1StandardBridge:{[Q9]:{address:\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\",blockCreated:4446677}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1059647}},testnet:!0,sourceId:Q9}),L0t=ta({...Ya,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-preconf.base.org\"]}}})});function pW({chain:e,currentChainId:t}){if(!e)throw new uW;if(t!==e.id)throw new cW({chain:e,currentChainId:t})}var Bie=Z(()=>{f();V9()});function M0({blockNumber:e,chain:t,contract:n}){let r=t?.contracts?.[n];if(!r)throw new eT({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new eT({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}var rT=Z(()=>{f();V9()});function jn(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var ka=Z(()=>{f()});var Ns,FA,Hy=Z(()=>{f();tr();Ns=class extends Re{constructor({docsPath:t}={}){super([\"Could not find an Account to execute with this Action.\",\"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.\"].join(`\\n`),{docsPath:t,docsSlug:\"account\",name:\"AccountNotFoundError\"})}},FA=class extends Re{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type \"${r}\" is not supported.`,{docsPath:t,metaMessages:n,name:\"AccountTypeNotSupportedError\"})}}});var KSe,hW,YSe,mW=Z(()=>{f();KSe={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},hW={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},YSe={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});function hu(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new gW(e.type);return`${e.name}(${J9(e.inputs,{includeName:t})})`}function J9(e,{includeName:t=!1}={}){return e?e.map(n=>B0t(n,{includeName:t})).join(t?\", \":\",\"):\"\"}function B0t(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${J9(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}var R2=Z(()=>{f();fs()});var yW,X9,TI,D0,bW,vW,CI,wW,$9,RI,xW,II,eM,zy,OI,EW,AW,kI,jy,Wb,_W,SW,NI,gW,TW,fs=Z(()=>{f();R2();$h();tr();yW=class extends Re{constructor({docsPath:t}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorNotFoundError\"})}},X9=class extends Re{constructor({docsPath:t}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorParamsNotFoundError\"})}},TI=class extends Re{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${J9(n,{includeName:!0})})`,`Data:   ${t} (${r} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}},D0=class extends Re{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\',{name:\"AbiDecodingZeroDataError\"})}},bW=class extends Re{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`\\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}},vW=class extends Re{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${qr(n)}) does not match expected size (bytes${t}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}},CI=class extends Re{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`\\n`),{name:\"AbiEncodingLengthMismatchError\"})}},wW=class extends Re{constructor(t,{docsPath:n}){super([`Arguments (\\\\`args\\\\`) were provided to \"${t}\", but \"${t}\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorInputsNotFoundError\"})}},$9=class extends Re{constructor(t,{docsPath:n}={}){super([`Error ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorNotFoundError\"})}},RI=class extends Re{constructor(t,{docsPath:n}){super([`Encoded error signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiErrorSignatureNotFoundError\"}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}},xW=class extends Re{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},II=class extends Re{constructor(t,{docsPath:n}){super([`Encoded event signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiEventSignatureNotFoundError\"})}},eM=class extends Re{constructor(t,{docsPath:n}={}){super([`Event ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiEventNotFoundError\"})}},zy=class extends Re{constructor(t,{docsPath:n}={}){super([`Function ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionNotFoundError\"})}},OI=class extends Re{constructor(t,{docsPath:n}){super([`Function \"${t}\" does not contain any \\\\`outputs\\\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionOutputsNotFoundError\"})}},EW=class extends Re{constructor(t,{docsPath:n}){super([`Encoded function signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiFunctionSignatureNotFoundError\"})}},AW=class extends Re{constructor(t,n){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${hu(t.abiItem)}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${hu(n.abiItem)}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}},kI=class extends Re{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:\"BytesSizeMismatchError\"})}},jy=class extends Re{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${J9(r,{includeName:!0})})`,`Data:   ${n} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=o}},Wb=class extends Re{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` \"${n.name}\"`:\"\"} on event \"${hu(t,{includeName:!0})}\".`].join(`\\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}},_W=class extends Re{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiEncodingType\"})}},SW=class extends Re{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiDecodingType\"})}},NI=class extends Re{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},gW=class extends Re{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}},TW=class extends Re{constructor(t){super(`Type \"${t}\" is not supported for packed encoding.`,{name:\"UnsupportedPackedAbiType\"})}}});function ZSe(e){return U0t(e)}var U0t,QSe=Z(()=>{f();Pc();rm();U0t=e=>lr(em(e))});var JSe,XSe=Z(()=>{f();JSe=\"1.1.0\"});var ic,PI=Z(()=>{f();XSe();ic=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${JSe}`].join(`\\n`);super(i),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}}});function om(e,t){return e.exec(t)?.groups}var Uie,Fie,CW,tM=Z(()=>{f();Uie=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Fie=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,CW=/^\\\\(.+?\\\\).*?$/});function RW(e){let t=e.type;if($Se.test(e.type)&&\"components\"in e){t=\"(\";let n=e.components.length;for(let o=0;o<n;o++){let i=e.components[o];t+=RW(i),o<n-1&&(t+=\", \")}let r=om($Se,e.type);return t+=`)${r?.array??\"\"}`,RW({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var $Se,e5e=Z(()=>{f();tM();$Se=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function I2(e){let t=\"\",n=e.length;for(let r=0;r<n;r++){let o=e[r];t+=RW(o),r!==n-1&&(t+=\", \")}return t}var Hie=Z(()=>{f();e5e()});function oT(e){return e.type===\"function\"?`function ${e.name}(${I2(e.inputs)})${e.stateMutability&&e.stateMutability!==\"nonpayable\"?` ${e.stateMutability}`:\"\"}${e.outputs?.length?` returns (${I2(e.outputs)})`:\"\"}`:e.type===\"event\"?`event ${e.name}(${I2(e.inputs)})`:e.type===\"error\"?`error ${e.name}(${I2(e.inputs)})`:e.type===\"constructor\"?`constructor(${I2(e.inputs)})${e.stateMutability===\"payable\"?\" payable\":\"\"}`:e.type===\"fallback\"?`fallback() external${e.stateMutability===\"payable\"?\" payable\":\"\"}`:\"receive() external payable\"}var t5e=Z(()=>{f();Hie()});function r5e(e){return n5e.test(e)}function o5e(e){return om(n5e,e)}function a5e(e){return i5e.test(e)}function s5e(e){return om(i5e,e)}function u5e(e){return c5e.test(e)}function l5e(e){return om(c5e,e)}function HA(e){return d5e.test(e)}function f5e(e){return om(d5e,e)}function h5e(e){return p5e.test(e)}function m5e(e){return om(p5e,e)}function y5e(e){return g5e.test(e)}function b5e(e){return om(g5e,e)}function v5e(e){return F0t.test(e)}var n5e,i5e,c5e,d5e,p5e,g5e,F0t,zie,w5e,IW,MI=Z(()=>{f();tM();n5e=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;i5e=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;c5e=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;d5e=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;p5e=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;g5e=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;F0t=/^receive\\\\(\\\\) external payable$/;zie=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),w5e=new Set([\"indexed\"]),IW=new Set([\"calldata\",\"memory\",\"storage\"])});var nM,rM,OW,kW=Z(()=>{f();PI();nM=class extends ic{constructor({signature:t}){super(\"Failed to parse ABI item.\",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiitem-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiItemError\"})}},rM=class extends ic{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}},OW=class extends ic{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}});var oM,iM,aM,sM,cM,uM,NW=Z(()=>{f();PI();oM=class extends ic{constructor({params:t}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}},iM=class extends ic{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},aM=class extends ic{constructor({param:t,name:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`\"${n}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}},sM=class extends ic{constructor({param:t,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},cM=class extends ic{constructor({param:t,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${r}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},uM=class extends ic{constructor({abiParameter:t}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(t,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}});var Wy,lM,dM,jie=Z(()=>{f();PI();Wy=class extends ic{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},lM=class extends ic{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},dM=class extends ic{constructor({signature:t}){super(\"Invalid struct signature.\",{details:t,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}});var fM,x5e=Z(()=>{f();PI();fM=class extends ic{constructor({type:t}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${t}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}});var pM,E5e=Z(()=>{f();PI();pM=class extends ic{constructor({current:t,depth:n}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${t.trim()}\" has too many ${n>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${n}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}});function A5e(e,t,n){let r=\"\";if(n)for(let o of Object.entries(n)){if(!o)continue;let i=\"\";for(let a of o[1])i+=`[${a.type}${a.name?`:${a.name}`:\"\"}]`;r+=`(${o[0]}{${i}})`}return t?`${t}:${e}${r}`:e}var PW,_5e=Z(()=>{f();PW=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]])});function hM(e,t={}){if(u5e(e))return H0t(e,t);if(a5e(e))return z0t(e,t);if(r5e(e))return j0t(e,t);if(h5e(e))return W0t(e,t);if(y5e(e))return V0t(e);if(v5e(e))return{type:\"receive\",stateMutability:\"payable\"};throw new lM({signature:e})}function H0t(e,t={}){let n=l5e(e);if(!n)throw new Wy({signature:e,type:\"function\"});let r=Up(n.parameters),o=[],i=r.length;for(let c=0;c<i;c++)o.push(Vy(r[c],{modifiers:IW,structs:t,type:\"function\"}));let a=[];if(n.returns){let c=Up(n.returns),u=c.length;for(let d=0;d<u;d++)a.push(Vy(c[d],{modifiers:IW,structs:t,type:\"function\"}))}return{name:n.name,type:\"function\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o,outputs:a}}function z0t(e,t={}){let n=s5e(e);if(!n)throw new Wy({signature:e,type:\"event\"});let r=Up(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(Vy(r[a],{modifiers:w5e,structs:t,type:\"event\"}));return{name:n.name,type:\"event\",inputs:o}}function j0t(e,t={}){let n=o5e(e);if(!n)throw new Wy({signature:e,type:\"error\"});let r=Up(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(Vy(r[a],{structs:t,type:\"error\"}));return{name:n.name,type:\"error\",inputs:o}}function W0t(e,t={}){let n=m5e(e);if(!n)throw new Wy({signature:e,type:\"constructor\"});let r=Up(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(Vy(r[a],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o}}function V0t(e){let t=b5e(e);if(!t)throw new Wy({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function Vy(e,t){let n=A5e(e,t?.type,t?.structs);if(PW.has(n))return PW.get(n);let r=CW.test(e),o=om(r?q0t:G0t,e);if(!o)throw new iM({param:e});if(o.name&&Z0t(o.name))throw new aM({param:e,name:o.name});let i=o.name?{name:o.name}:{},a=o.modifier===\"indexed\"?{indexed:!0}:{},c=t?.structs??{},u,d={};if(r){u=\"tuple\";let h=Up(o.type),g=[],y=h.length;for(let v=0;v<y;v++)g.push(Vy(h[v],{structs:c}));d={components:g}}else if(o.type in c)u=\"tuple\",d={components:c[o.type]};else if(K0t.test(o.type))u=`${o.type}256`;else if(o.type===\"address payable\")u=\"address\";else if(u=o.type,t?.type!==\"struct\"&&!Wie(u))throw new OW({type:u});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new sM({param:e,type:t?.type,modifier:o.modifier});if(IW.has(o.modifier)&&!Q0t(u,!!o.array))throw new cM({param:e,type:t?.type,modifier:o.modifier})}let p={type:`${u}${o.array??\"\"}`,...i,...a,...d};return PW.set(n,p),p}function Up(e,t=[],n=\"\",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let a=e[i],c=e.slice(i+1);switch(a){case\",\":return r===0?Up(c,[...t,n.trim()]):Up(c,t,`${n}${a}`,r);case\"(\":return Up(c,t,`${n}${a}`,r+1);case\")\":return Up(c,t,`${n}${a}`,r-1);default:return Up(c,t,`${n}${a}`,r)}}if(n===\"\")return t;if(r!==0)throw new pM({current:n,depth:r});return t.push(n.trim()),t}function Wie(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||Uie.test(e)||Fie.test(e)}function Z0t(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||Uie.test(e)||Fie.test(e)||Y0t.test(e)}function Q0t(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var G0t,q0t,K0t,Y0t,DI=Z(()=>{f();tM();kW();NW();jie();E5e();_5e();MI();G0t=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,q0t=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,K0t=/^u?int$/;Y0t=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function LI(e){let t={},n=e.length;for(let a=0;a<n;a++){let c=e[a];if(!HA(c))continue;let u=f5e(c);if(!u)throw new Wy({signature:c,type:\"struct\"});let d=u.properties.split(\";\"),p=[],h=d.length;for(let g=0;g<h;g++){let v=d[g].trim();if(!v)continue;let x=Vy(v,{type:\"struct\"});p.push(x)}if(!p.length)throw new dM({signature:c});t[u.name]=p}let r={},o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){let[c,u]=o[a];r[c]=S5e(u,t)}return r}function S5e(e,t,n=new Set){let r=[],o=e.length;for(let i=0;i<o;i++){let a=e[i];if(CW.test(a.type))r.push(a);else{let u=om(J0t,a.type);if(!u?.type)throw new uM({abiParameter:a});let{array:d,type:p}=u;if(p in t){if(n.has(p))throw new fM({type:p});r.push({...a,type:`tuple${d??\"\"}`,components:S5e(t[p]??[],t,new Set([...n,p]))})}else if(Wie(p))r.push(a);else throw new rM({type:p})}}return r}var J0t,MW=Z(()=>{f();tM();kW();NW();jie();x5e();MI();DI();J0t=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function O2(e){let t=LI(e),n=[],r=e.length;for(let o=0;o<r;o++){let i=e[o];HA(i)||n.push(hM(i,t))}return n}var T5e=Z(()=>{f();MI();MW();DI()});function mM(e){let t;if(typeof e==\"string\")t=hM(e);else{let n=LI(e),r=e.length;for(let o=0;o<r;o++){let i=e[o];if(!HA(i)){t=hM(i,n);break}}}if(!t)throw new nM({signature:e});return t}var C5e=Z(()=>{f();kW();MI();MW();DI()});function gM(e){let t=[];if(typeof e==\"string\"){let n=Up(e),r=n.length;for(let o=0;o<r;o++)t.push(Vy(n[o],{modifiers:zie}))}else{let n=LI(e),r=e.length;for(let o=0;o<r;o++){let i=e[o];if(HA(i))continue;let a=Up(i),c=a.length;for(let u=0;u<c;u++)t.push(Vy(a[u],{modifiers:zie,structs:n}))}}if(t.length===0)throw new oM({params:e});return t}var R5e=Z(()=>{f();NW();MI();MW();DI();DI()});var iT=Z(()=>{f();t5e();Hie();T5e();C5e();R5e()});function O5e(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let a=0;a<e.length;a++){let c=e[a];if([\"(\",\")\",\",\"].includes(c)&&(t=!0),c===\"(\"&&r++,c===\")\"&&r--,!!t){if(r===0){if(c===\" \"&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=c,c===\")\"){i=!0;break}continue}if(c===\" \"){e[a-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",t=!1);continue}o+=c,n+=c}}if(!i)throw new Re(\"Unable to normalize signature.\");return o}var k5e=Z(()=>{f();tr()});var N5e,P5e=Z(()=>{f();iT();k5e();N5e=e=>{let t=typeof e==\"string\"?e:oT(e);return O5e(t)}});function DW(e){return ZSe(N5e(e))}var Vie=Z(()=>{f();QSe();P5e()});var Vb,BI=Z(()=>{f();jb();Vie();Vb=e=>Il(DW(e),0,4)});function M5e(e,t={}){typeof t.size<\"u\"&&If(e,{size:t.size});let n=_o(e,t);return qn(n,t)}function D5e(e,t={}){let n=e;if(typeof t.size<\"u\"&&(If(n,{size:t.size}),n=Ui(n)),n.length>1||n[0]>1)throw new Tj(n);return!!n[0]}function Gb(e,t={}){typeof t.size<\"u\"&&If(e,{size:t.size});let n=_o(e,t);return So(n,t)}function L5e(e,t={}){let n=e;return typeof t.size<\"u\"&&(If(n,{size:t.size}),n=Ui(n,{dir:\"right\"})),new TextDecoder().decode(n)}var B5e=Z(()=>{f();I9();kA();ks();xn()});var U5e,LW,UI,BW=Z(()=>{f();U5e=/^(.*)\\\\[([0-9]*)\\\\]$/,LW=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,UI=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function Hi(e,t){if(e.length!==t.length)throw new CI({expectedLength:e.length,givenLength:t.length});let n=X0t({params:e,values:t}),r=qie(n);return r.length===0?\"0x\":r}function X0t({params:e,values:t}){let n=[];for(let r=0;r<e.length;r++)n.push(Gie({param:e[r],value:t[r]}));return n}function Gie({param:e,value:t}){let n=UW(e.type);if(n){let[r,o]=n;return egt(t,{length:r,param:{...e,type:o}})}if(e.type===\"tuple\")return igt(t,{param:e});if(e.type===\"address\")return $0t(t);if(e.type===\"bool\")return ngt(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let r=e.type.startsWith(\"int\"),[,,o=\"256\"]=UI.exec(e.type)??[];return rgt(t,{signed:r,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return tgt(t,{param:e});if(e.type===\"string\")return ogt(t);throw new _W(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function qie(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?t+=32:t+=qr(c)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?(n.push(Ne(t+o,{size:32})),r.push(c),o+=qr(c)):n.push(c)}return Ri([...n,...r])}function $0t(e){if(!Un(e))throw new Fi({address:e});return{dynamic:!1,encoded:Py(e.toLowerCase())}}function egt(e,{length:t,param:n}){let r=t===null;if(!Array.isArray(e))throw new NI(e);if(!r&&e.length!==t)throw new bW({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1,i=[];for(let a=0;a<e.length;a++){let c=Gie({param:n,value:e[a]});c.dynamic&&(o=!0),i.push(c)}if(r||o){let a=qie(i);if(r){let c=Ne(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?Ri([c,a]):c}}if(o)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:Ri(i.map(({encoded:a})=>a))}}function tgt(e,{param:t}){let[,n]=t.type.split(\"bytes\"),r=qr(e);if(!n){let o=e;return r%32!==0&&(o=Py(o,{dir:\"right\",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Ri([Py(Ne(r,{size:32})),o])}}if(r!==Number.parseInt(n,10))throw new vW({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Py(e,{dir:\"right\"})}}function ngt(e){if(typeof e!=\"boolean\")throw new Re(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Py(G3(e))}}function rgt(e,{signed:t,size:n=256}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new rI({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Ne(e,{size:32,signed:t})}}function ogt(e){let t=Pu(e),n=Math.ceil(qr(t)/32),r=[];for(let o=0;o<n;o++)r.push(Py(Il(t,o*32,(o+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:Ri([Py(Ne(qr(t),{size:32})),...r])}}function igt(e,{param:t}){let n=!1,r=[];for(let o=0;o<t.components.length;o++){let i=t.components[o],a=Array.isArray(e)?o:i.name,c=Gie({param:i,value:e[a]});r.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?qie(r):Ri(r.map(({encoded:o})=>o))}}function UW(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}var L0=Z(()=>{f();fs();Fy();tr();I9();Bp();Mc();NA();$h();jb();xn();BW()});function Dc(e,t){let n=typeof t==\"string\"?ci(t):t,r=sI(n);if(qr(n)===0&&e.length>0)throw new D0;if(qr(t)&&qr(t)<32)throw new TI({data:typeof t==\"string\"?t:_o(t),params:e,size:qr(t)});let o=0,i=[];for(let a=0;a<e.length;++a){let c=e[a];r.setPosition(o);let[u,d]=FI(r,c,{staticPosition:0});o+=d,i.push(u)}return i}function FI(e,t,{staticPosition:n}){let r=UW(t.type);if(r){let[o,i]=r;return sgt(e,{...t,type:i},{length:o,staticPosition:n})}if(t.type===\"tuple\")return dgt(e,t,{staticPosition:n});if(t.type===\"address\")return agt(e);if(t.type===\"bool\")return cgt(e);if(t.type.startsWith(\"bytes\"))return ugt(e,t,{staticPosition:n});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return lgt(e,t);if(t.type===\"string\")return fgt(e,{staticPosition:n});throw new SW(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function agt(e){let t=e.readBytes(32);return[Hb(_o(lW(t,-20))),32]}function sgt(e,t,{length:n,staticPosition:r}){if(!n){let a=Gb(e.readBytes(Kie)),c=r+a,u=c+F5e;e.setPosition(c);let d=Gb(e.readBytes(F5e)),p=yM(t),h=0,g=[];for(let y=0;y<d;++y){e.setPosition(u+(p?y*32:h));let[v,x]=FI(e,t,{staticPosition:u});h+=x,g.push(v)}return e.setPosition(r+32),[g,32]}if(yM(t)){let a=Gb(e.readBytes(Kie)),c=r+a,u=[];for(let d=0;d<n;++d){e.setPosition(c+d*32);let[p]=FI(e,t,{staticPosition:c});u.push(p)}return e.setPosition(r+32),[u,32]}let o=0,i=[];for(let a=0;a<n;++a){let[c,u]=FI(e,t,{staticPosition:r+o});o+=u,i.push(c)}return[i,o]}function cgt(e){return[D5e(e.readBytes(32),{size:32}),32]}function ugt(e,t,{staticPosition:n}){let[r,o]=t.type.split(\"bytes\");if(!o){let a=Gb(e.readBytes(32));e.setPosition(n+a);let c=Gb(e.readBytes(32));if(c===0)return e.setPosition(n+32),[\"0x\",32];let u=e.readBytes(c);return e.setPosition(n+32),[_o(u),32]}return[_o(e.readBytes(Number.parseInt(o,10),32)),32]}function lgt(e,t){let n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?M5e(o,{signed:n}):Gb(o,{signed:n}),32]}function dgt(e,t,{staticPosition:n}){let r=t.components.length===0||t.components.some(({name:a})=>!a),o=r?[]:{},i=0;if(yM(t)){let a=Gb(e.readBytes(Kie)),c=n+a;for(let u=0;u<t.components.length;++u){let d=t.components[u];e.setPosition(c+i);let[p,h]=FI(e,d,{staticPosition:c});i+=h,o[r?u:d?.name]=p}return e.setPosition(n+32),[o,32]}for(let a=0;a<t.components.length;++a){let c=t.components[a],[u,d]=FI(e,c,{staticPosition:n});o[r?a:c?.name]=u,i+=d}return[o,i]}function fgt(e,{staticPosition:t}){let n=Gb(e.readBytes(32)),r=t+n;e.setPosition(r);let o=Gb(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(o,32),a=L5e(Ui(i));return e.setPosition(t+32),[a,32]}function yM(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(yM);let n=UW(e.type);return!!(n&&yM({...e,type:n[1]}))}var F5e,Kie,aT=Z(()=>{f();fs();zb();Mj();$h();jb();kA();B5e();Pc();xn();L0();F5e=32,Kie=32});function HI(e){let{abi:t,data:n}=e,r=Il(n,0,4);if(r===\"0x\")throw new D0;let i=[...t||[],hW,YSe].find(a=>a.type===\"error\"&&r===Vb(hu(a)));if(!i)throw new RI(r,{docsPath:\"/docs/contract/decodeErrorResult\"});return{abiItem:i,args:\"inputs\"in i&&i.inputs&&i.inputs.length>0?Dc(i.inputs,Il(n,4)):void 0,errorName:i.name}}var FW=Z(()=>{f();mW();fs();jb();BI();aT();R2()});var $r,Ol=Z(()=>{f();$r=(e,t,n)=>JSON.stringify(e,(r,o)=>{let i=typeof o==\"bigint\"?o.toString():o;return typeof t==\"function\"?t(r,i):i},n)});function Yie({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${n?e.name:\"\"}(${e.inputs.map((o,i)=>`${r&&o.name?`${o.name}: `:\"\"}${typeof t[i]==\"object\"?$r(t[i]):t[i]}`).join(\", \")})`}var H5e=Z(()=>{f();Ol()});var zA,bM=Z(()=>{f();Vie();zA=DW});function Fp(e){let{abi:t,args:n=[],name:r}=e,o=Xr(r,{strict:!1}),i=t.filter(c=>o?c.type===\"function\"?Vb(c)===r:c.type===\"event\"?zA(c)===r:!1:\"name\"in c&&c.name===r);if(i.length===0)return;if(i.length===1)return i[0];let a;for(let c of i){if(!(\"inputs\"in c))continue;if(!n||n.length===0){if(!c.inputs||c.inputs.length===0)return c;continue}if(!c.inputs||c.inputs.length===0||c.inputs.length!==n.length)continue;if(n.every((d,p)=>{let h=\"inputs\"in c&&c.inputs[p];return h?Zie(d,h):!1})){if(a&&\"inputs\"in a&&a.inputs){let d=z5e(c.inputs,a.inputs,n);if(d)throw new AW({abiItem:c,type:d[0]},{abiItem:a,type:d[1]})}a=c}}return a||i[0]}function Zie(e,t){let n=typeof e,r=t.type;switch(r){case\"address\":return Un(e,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,i)=>Zie(Object.values(e)[i],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Zie(o,{...t,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function z5e(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type===\"tuple\"&&i.type===\"tuple\"&&\"components\"in o&&\"components\"in i)return z5e(o.components,i.components,n[r]);let a=[o.type,i.type];if(a.includes(\"address\")&&a.includes(\"bytes20\")?!0:a.includes(\"address\")&&a.includes(\"string\")?Un(n[r],{strict:!1}):a.includes(\"address\")&&a.includes(\"bytes\")?Un(n[r],{strict:!1}):!1)return a}}var jA=Z(()=>{f();fs();S0();Bp();bM();BI()});function j5e(e){return e.reduce((t,{slot:n,value:r})=>`${t}        ${n}: ${r}\\n`,\"\")}function W5e(e){return e.reduce((t,{address:n,...r})=>{let o=`${t}    ${n}:\\n`;return r.nonce&&(o+=`      nonce: ${r.nonce}\\n`),r.balance&&(o+=`      balance: ${r.balance}\\n`),r.code&&(o+=`      code: ${r.code}\\n`),r.state&&(o+=`      state:\\n`,o+=j5e(r.state)),r.stateDiff&&(o+=`      stateDiff:\\n`,o+=j5e(r.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var HW,zW,Qie=Z(()=>{f();tr();HW=class extends Re{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},zW=class extends Re{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}});var V5e,sT,jW=Z(()=>{f();V5e=e=>e,sT=e=>e});var cT,Gy,qb,uT,vM,qy,Kb=Z(()=>{f();ka();mW();FW();R2();H5e();jA();Uj();Y3();fs();tr();Qie();C0();jW();cT=class extends Re{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:p,to:h,value:g,stateOverride:y}){let v=n?jn(n):void 0,x=E2({from:v?.address,to:h,value:typeof g<\"u\"&&`${cI(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${ds(c)} gwei`,maxFeePerGas:typeof u<\"u\"&&`${ds(u)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${ds(d)} gwei`,nonce:p});y&&(x+=`\\n${W5e(y)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",x].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},Gy=class extends Re{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:i,functionName:a,sender:c}){let u=Fp({abi:n,args:r,name:a}),d=u?Yie({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,p=u?hu(u,{includeName:!0}):void 0,h=E2({address:o&&V5e(o),function:p,args:d&&d!==\"()\"&&`${[...Array(a?.length??0).keys()].map(()=>\" \").join(\"\")}${d}`,sender:c});super(t.shortMessage||`An unknown error occurred while executing the contract function \"${a}\".`,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],h&&\"Contract Call:\",h].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=a,this.sender=c}},qb=class extends Re{constructor({abi:t,data:n,functionName:r,message:o}){let i,a,c,u;if(n&&n!==\"0x\")try{a=HI({abi:t,data:n});let{abiItem:p,errorName:h,args:g}=a;if(h===\"Error\")u=g[0];else if(h===\"Panic\"){let[y]=g;u=KSe[y]}else{let y=p?hu(p,{includeName:!0}):void 0,v=p&&g?Yie({abiItem:p,args:g,includeFunctionName:!1,includeName:!1}):void 0;c=[y?`Error: ${y}`:\"\",v&&v!==\"()\"?`       ${[...Array(h?.length??0).keys()].map(()=>\" \").join(\"\")}${v}`:\"\"]}}catch(p){i=p}else o&&(u=o);let d;i instanceof RI&&(d=i.signature,c=[`Unable to decode signature \"${d}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(u&&u!==\"execution reverted\"||d?[`The contract function \"${r}\" reverted with the following ${d?\"signature\":\"reason\"}:`,u||d].join(`\\n`):`The contract function \"${r}\" reverted.`,{cause:i,metaMessages:c,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=n,this.reason=u,this.signature=d}},uT=class extends Re{constructor({functionName:t}){super(`The contract function \"${t}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${t}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\"})}},vM=class extends Re{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory \"${t}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}},qy=class extends Re{constructor({data:t,message:n}){super(n||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}});var B0,WA,wM,lT=Z(()=>{f();Ol();tr();jW();B0=class extends Re{constructor({body:t,cause:n,details:r,headers:o,status:i,url:a}){super(\"HTTP request failed.\",{cause:n,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${sT(a)}`,t&&`Request body: ${$r(t)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=i,this.url=a}},WA=class extends Re{constructor({body:t,error:n,url:r}){super(\"RPC Request failed.\",{cause:n,details:n.message,metaMessages:[`URL: ${sT(r)}`,`Request body: ${$r(t)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}},wM=class extends Re{constructor({body:t,url:n}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${sT(n)}`,`Request body: ${$r(t)}`],name:\"TimeoutError\"})}}});var pgt,kl,xd,dT,fT,pT,hT,Yb,Ky,mT,Hp,gT,k2,VA,yT,fo,bT,vT,wT,xT,Za,N2,ET,AT,_T,ST,TT,P2,xM,CT=Z(()=>{f();tr();lT();pgt=-1,kl=class extends Re{constructor(t,{code:n,docsPath:r,metaMessages:o,name:i,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||t?.metaMessages,name:i||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||t.name,this.code=t instanceof WA?t.code:n??pgt}},xd=class extends kl{constructor(t,n){super(t,n),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},dT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}};Object.defineProperty(dT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});fT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(fT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});pT=class e extends kl{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${n?` \"${n}\"`:\"\"} does not exist / is not available.`})}};Object.defineProperty(pT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});hT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(hT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});Yb=class e extends kl{constructor(t){super(t,{code:e.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(Yb,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});Ky=class e extends kl{constructor(t){super(t,{code:e.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(Ky,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});mT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}};Object.defineProperty(mT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Hp=class e extends kl{constructor(t){super(t,{code:e.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(Hp,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});gT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(gT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});k2=class e extends kl{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${n?` \"${n}\"`:\"\"} is not supported.`})}};Object.defineProperty(k2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});VA=class e extends kl{constructor(t){super(t,{code:e.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}};Object.defineProperty(VA,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});yT=class e extends kl{constructor(t){super(t,{code:e.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(yT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});fo=class e extends xd{constructor(t){super(t,{code:e.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(fo,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});bT=class e extends xd{constructor(t){super(t,{code:e.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}};Object.defineProperty(bT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});vT=class e extends xd{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${n?` \" ${n}\"`:\"\"}.`})}};Object.defineProperty(vT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});wT=class e extends xd{constructor(t){super(t,{code:e.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(wT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});xT=class e extends xd{constructor(t){super(t,{code:e.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}};Object.defineProperty(xT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});Za=class e extends xd{constructor(t){super(t,{code:e.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(Za,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});N2=class e extends xd{constructor(t){super(t,{code:e.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}};Object.defineProperty(N2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});ET=class e extends xd{constructor(t){super(t,{code:e.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}};Object.defineProperty(ET,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});AT=class e extends xd{constructor(t){super(t,{code:e.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}};Object.defineProperty(AT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});_T=class e extends xd{constructor(t){super(t,{code:e.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}};Object.defineProperty(_T,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});ST=class e extends xd{constructor(t){super(t,{code:e.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}};Object.defineProperty(ST,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});TT=class e extends xd{constructor(t){super(t,{code:e.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}};Object.defineProperty(TT,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});P2=class e extends xd{constructor(t){super(t,{code:e.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}};Object.defineProperty(P2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});xM=class extends kl{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}});function GA(e,t){let n=(e.details||\"\").toLowerCase(),r=e instanceof Re?e.walk(o=>o?.code===T2.code):e;return r instanceof Re?new T2({cause:e,message:r.details}):T2.nodeMessage.test(n)?new T2({cause:e,message:e.details}):O0.nodeMessage.test(n)?new O0({cause:e,maxFeePerGas:t?.maxFeePerGas}):yI.nodeMessage.test(n)?new yI({cause:e,maxFeePerGas:t?.maxFeePerGas}):bI.nodeMessage.test(n)?new bI({cause:e,nonce:t?.nonce}):vI.nodeMessage.test(n)?new vI({cause:e,nonce:t?.nonce}):wI.nodeMessage.test(n)?new wI({cause:e,nonce:t?.nonce}):xI.nodeMessage.test(n)?new xI({cause:e}):EI.nodeMessage.test(n)?new EI({cause:e,gas:t?.gas}):AI.nodeMessage.test(n)?new AI({cause:e,gas:t?.gas}):_I.nodeMessage.test(n)?new _I({cause:e}):Fb.nodeMessage.test(n)?new Fb({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new k0({cause:e})}var EM=Z(()=>{f();tr();UA()});function WW(e,{docsPath:t,...n}){let r=(()=>{let o=GA(e,n);return o instanceof k0?e:o})();return new cT(r,{docsPath:t,...n})}var Jie=Z(()=>{f();Kb();UA();EM()});function qA(e,{format:t}){if(!t)return{};let n={};function r(i){let a=Object.keys(i);for(let c of a)c in e&&(n[c]=e[c]),i[c]&&typeof i[c]==\"object\"&&!Array.isArray(i[c])&&r(i[c])}let o=t(e||{});return r(o),n}var AM=Z(()=>{f()});function zp(e){let{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:i}=e,a=t?jn(t):void 0;if(a&&!Un(a.address))throw new Fi({address:a.address});if(i&&!Un(i))throw new Fi({address:i});if(typeof n<\"u\"&&(typeof r<\"u\"||typeof o<\"u\"))throw new Fj;if(r&&r>iI)throw new O0({maxFeePerGas:r});if(o&&r&&o>r)throw new Fb({maxFeePerGas:r,maxPriorityFeePerGas:o})}var KA=Z(()=>{f();ka();gie();Fy();UA();C0();Bp()});var zi,G5e=Z(()=>{f();_0();zi=ta({id:1,name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\"https://eth.merkle.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://etherscan.io\",apiUrl:\"https://api.etherscan.io/api\"}},contracts:{ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:23085558},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}})});var _M,SM,q5e=Z(()=>{f();Y9();_0();_M=1,SM=ta({...P0,id:10,name:\"OP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{default:{name:\"Optimism Explorer\",url:\"https://optimistic.etherscan.io\",apiUrl:\"https://api-optimistic.etherscan.io/api\"}},contracts:{...P0.contracts,disputeGameFactory:{[_M]:{address:\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\"}},l2OutputOracle:{[_M]:{address:\"0xdfe97868233d1aa22e815a266982f2cf17685a27\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4286263},portal:{[_M]:{address:\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\"}},l1StandardBridge:{[_M]:{address:\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\"}}},sourceId:_M})});var TM,Xie,K5e=Z(()=>{f();Y9();_0();TM=11155111,Xie=ta({...P0,id:11155420,name:\"OP Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.optimism.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\",apiUrl:\"https://optimism-sepolia.blockscout.com/api\"}},contracts:{...P0.contracts,disputeGameFactory:{[TM]:{address:\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\"}},l2OutputOracle:{[TM]:{address:\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204},portal:{[TM]:{address:\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\"}},l1StandardBridge:{[TM]:{address:\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\"}}},testnet:!0,sourceId:TM})});var $ie,Y5e=Z(()=>{f();_0();$ie=ta({id:137,name:\"Polygon\",nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://polygon-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://polygonscan.com\",apiUrl:\"https://api.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}}})});var eae,Z5e=Z(()=>{f();_0();eae=ta({id:80001,name:\"Polygon Mumbai\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://80001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\",apiUrl:\"https://api-testnet.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}},testnet:!0})});var CM,Q5e=Z(()=>{f();_0();CM=ta({id:11155111,name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.drpc.org\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\",apiUrl:\"https://api-sepolia.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:751532},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:8928790}},testnet:!0})});var ra=Z(()=>{f();WSe();VSe();GSe();qSe();G5e();q5e();K5e();Y5e();Z5e();Q5e()});var J5e=me(VW=>{\"use strict\";f();(function(){function e(W){if(W==null)return null;if(typeof W==\"function\")return W.$$typeof===re?null:W.displayName||W.name||null;if(typeof W==\"string\")return W;switch(W){case x:return\"Fragment\";case S:return\"Profiler\";case R:return\"StrictMode\";case V:return\"Suspense\";case Q:return\"SuspenseList\";case J:return\"Activity\"}if(typeof W==\"object\")switch(typeof W.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),W.$$typeof){case v:return\"Portal\";case P:return(W.displayName||\"Context\")+\".Provider\";case M:return(W._context.displayName||\"Context\")+\".Consumer\";case z:var G=W.render;return W=W.displayName,W||(W=G.displayName||G.name||\"\",W=W!==\"\"?\"ForwardRef(\"+W+\")\":\"ForwardRef\"),W;case $:return G=W.displayName||null,G!==null?G:e(W.type)||\"Memo\";case oe:G=W._payload,W=W._init;try{return e(W(G))}catch{}}return null}function t(W){return\"\"+W}function n(W){try{t(W);var G=!1}catch{G=!0}if(G){G=console;var O=G.error,j=typeof Symbol==\"function\"&&Symbol.toStringTag&&W[Symbol.toStringTag]||W.constructor.name||\"Object\";return O.call(G,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",j),t(W)}}function r(W){if(W===x)return\"<>\";if(typeof W==\"object\"&&W!==null&&W.$$typeof===oe)return\"<...>\";try{var G=e(W);return G?\"<\"+G+\">\":\"<...>\"}catch{return\"<...>\"}}function o(){var W=q.A;return W===null?null:W.getOwner()}function i(){return Error(\"react-stack-top-frame\")}function a(W){if(K.call(W,\"key\")){var G=Object.getOwnPropertyDescriptor(W,\"key\").get;if(G&&G.isReactWarning)return!1}return W.key!==void 0}function c(W,G){function O(){k||(k=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",G))}O.isReactWarning=!0,Object.defineProperty(W,\"key\",{get:O,configurable:!0})}function u(){var W=e(this.type);return F[W]||(F[W]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),W=this.props.ref,W!==void 0?W:null}function d(W,G,O,j,te,ne,ae,pe){return O=ne.ref,W={$$typeof:y,type:W,key:G,props:ne,_owner:te},(O!==void 0?O:null)!==null?Object.defineProperty(W,\"ref\",{enumerable:!1,get:u}):Object.defineProperty(W,\"ref\",{enumerable:!1,value:null}),W._store={},Object.defineProperty(W._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(W,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(W,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(W,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W}function p(W,G,O,j,te,ne,ae,pe){var ye=G.children;if(ye!==void 0)if(j)if(U(ye)){for(j=0;j<ye.length;j++)h(ye[j]);Object.freeze&&Object.freeze(ye)}else console.error(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else h(ye);if(K.call(G,\"key\")){ye=e(W);var ve=Object.keys(G).filter(function(De){return De!==\"key\"});j=0<ve.length?\"{key: someKey, \"+ve.join(\": ..., \")+\": ...}\":\"{key: someKey}\",H[ye+j]||(ve=0<ve.length?\"{\"+ve.join(\": ..., \")+\": ...}\":\"{}\",console.error(`A props object containing a \"key\" prop is being spread into JSX:\\n  let props = %s;\\n  <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n  let props = %s;\\n  <%s key={someKey} {...props} />`,j,ye,ve,ye),H[ye+j]=!0)}if(ye=null,O!==void 0&&(n(O),ye=\"\"+O),a(G)&&(n(G.key),ye=\"\"+G.key),\"key\"in G){O={};for(var xe in G)xe!==\"key\"&&(O[xe]=G[xe])}else O=G;return ye&&c(O,typeof W==\"function\"?W.displayName||W.name||\"Unknown\":W),d(W,ye,ne,te,o(),O,ae,pe)}function h(W){typeof W==\"object\"&&W!==null&&W.$$typeof===y&&W._store&&(W._store.validated=1)}var g=$e(),y=Symbol.for(\"react.transitional.element\"),v=Symbol.for(\"react.portal\"),x=Symbol.for(\"react.fragment\"),R=Symbol.for(\"react.strict_mode\"),S=Symbol.for(\"react.profiler\");Symbol.for(\"react.provider\");var M=Symbol.for(\"react.consumer\"),P=Symbol.for(\"react.context\"),z=Symbol.for(\"react.forward_ref\"),V=Symbol.for(\"react.suspense\"),Q=Symbol.for(\"react.suspense_list\"),$=Symbol.for(\"react.memo\"),oe=Symbol.for(\"react.lazy\"),J=Symbol.for(\"react.activity\"),re=Symbol.for(\"react.client.reference\"),q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,U=Array.isArray,T=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(W){return W()}};var k,F={},N=g.react_stack_bottom_frame.bind(g,i)(),B=T(r(i)),H={};VW.Fragment=x,VW.jsx=function(W,G,O,j,te){var ne=1e4>q.recentlyCreatedOwnerStacks++;return p(W,G,O,!1,j,te,ne?Error(\"react-stack-top-frame\"):N,ne?T(r(W)):B)},VW.jsxs=function(W,G,O,j,te){var ne=1e4>q.recentlyCreatedOwnerStacks++;return p(W,G,O,!0,j,te,ne?Error(\"react-stack-top-frame\"):N,ne?T(r(W)):B)}})()});var ze=me((ufn,X5e)=>{\"use strict\";f();X5e.exports=J5e()});var a_,tV,L3e,nV,B3e,Aae,_ae,Sae,FM,z2,j2=Z(()=>{f();a_=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"}],tV=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],L3e=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],nV=[...L3e,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],B3e=[...L3e,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],Aae=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],_ae=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],Sae=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],FM=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}],z2=[{type:\"event\",name:\"Approval\",inputs:[{indexed:!0,name:\"owner\",type:\"address\"},{indexed:!0,name:\"spender\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"event\",name:\"Transfer\",inputs:[{indexed:!0,name:\"from\",type:\"address\"},{indexed:!0,name:\"to\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"function\",name:\"allowance\",stateMutability:\"view\",inputs:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"approve\",stateMutability:\"nonpayable\",inputs:[{name:\"spender\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"balanceOf\",stateMutability:\"view\",inputs:[{name:\"account\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"decimals\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{type:\"function\",name:\"name\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"symbol\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"totalSupply\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"transfer\",stateMutability:\"nonpayable\",inputs:[{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"transferFrom\",stateMutability:\"nonpayable\",inputs:[{name:\"sender\",type:\"address\"},{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]}]});function Kp(e){let{abi:t,args:n,functionName:r,data:o}=e,i=t[0];if(r){let c=Fp({abi:t,args:n,name:r});if(!c)throw new zy(r,{docsPath:Tae});i=c}if(i.type!==\"function\")throw new zy(void 0,{docsPath:Tae});if(!i.outputs)throw new OI(i.name,{docsPath:Tae});let a=Dc(i.outputs,o);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}var Tae,s_=Z(()=>{f();fs();aT();jA();Tae=\"/docs/contract/decodeFunctionResult\"});function F3e(e){let{abi:t,args:n,functionName:r}=e,o=t[0];if(r){let i=Fp({abi:t,args:n,name:r});if(!i)throw new zy(r,{docsPath:U3e});o=i}if(o.type!==\"function\")throw new zy(void 0,{docsPath:U3e});return{abi:[o],functionName:Vb(hu(o))}}var U3e,H3e=Z(()=>{f();fs();BI();R2();jA();U3e=\"/docs/contract/encodeFunctionData\"});function vn(e){let{args:t}=e,{abi:n,functionName:r}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:F3e(e),o=n[0],i=r,a=\"inputs\"in o&&o.inputs?Hi(o.inputs,t??[]):void 0;return ls([i,a??\"0x\"])}var Pf=Z(()=>{f();Mc();L0();H3e()});function i8(e){if(!(e instanceof Re))return!1;let t=e.walk(n=>n instanceof qb);return t instanceof qb?t.data?.errorName===\"HttpError\"||t.data?.errorName===\"ResolverError\"||t.data?.errorName===\"ResolverNotContract\"||t.data?.errorName===\"ResolverNotFound\"||t.data?.errorName===\"ReverseAddressMismatch\"||t.data?.errorName===\"UnsupportedResolverProfile\":!1}var rV=Z(()=>{f();tr();Kb()});function Jy(e){let{abi:t,data:n}=e,r=Il(n,0,4),o=t.find(i=>i.type===\"function\"&&r===Vb(hu(i)));if(!o)throw new EW(r,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?Dc(o.inputs,Il(n,4)):void 0}}var Cae=Z(()=>{f();fs();jb();BI();aT();R2()});function Iae(e){let{abi:t,errorName:n,args:r}=e,o=t[0];if(n){let u=Fp({abi:t,args:r,name:n});if(!u)throw new $9(n,{docsPath:Rae});o=u}if(o.type!==\"error\")throw new $9(void 0,{docsPath:Rae});let i=hu(o),a=Vb(i),c=\"0x\";if(r&&r.length>0){if(!o.inputs)throw new wW(o.name,{docsPath:Rae});c=Hi(o.inputs,r)}return ls([a,c])}var Rae,z3e=Z(()=>{f();fs();Mc();BI();L0();R2();jA();Rae=\"/docs/contract/encodeErrorResult\"});function j3e(e){let{abi:t,functionName:n,result:r}=e,o=t[0];if(n){let a=Fp({abi:t,name:n});if(!a)throw new zy(n,{docsPath:Oae});o=a}if(o.type!==\"function\")throw new zy(void 0,{docsPath:Oae});if(!o.outputs)throw new OI(o.name,{docsPath:Oae});let i=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new NI(r)})();return Hi(o.outputs,i)}var Oae,W3e=Z(()=>{f();fs();L0();jA();Oae=\"/docs/contract/encodeFunctionResult\"});async function kae(e){let{data:t,ccipRequest:n}=e,{args:[r]}=Jy({abi:tV,data:t}),o=[],i=[];return await Promise.all(r.map(async(a,c)=>{try{i[c]=a.urls.includes(W2)?await kae({data:a.data,ccipRequest:n}):await n(a),o[c]=!1}catch(u){o[c]=!0,i[c]=Tgt(u)}})),j3e({abi:tV,functionName:\"query\",result:[o,i]})}function Tgt(e){return e.name===\"HttpRequestError\"&&e.status?Iae({abi:tV,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):Iae({abi:[hW],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var W2,HM=Z(()=>{f();j2();mW();Cae();z3e();W3e();W2=\"x-batch-gateway:true\"});function oV(e){if(e.length!==66||e.indexOf(\"[\")!==0||e.indexOf(\"]\")!==65)return null;let t=`0x${e.slice(1,65)}`;return Xr(t)?t:null}var Nae=Z(()=>{f();S0()});function c_(e){let t=new Uint8Array(32).fill(0);if(!e)return _o(t);let n=e.split(\".\");for(let r=n.length-1;r>=0;r-=1){let o=oV(n[r]),i=o?em(o):lr(Mu(n[r]),\"bytes\");t=lr(Ri([t,i]),\"bytes\")}return _o(t)}var iV=Z(()=>{f();Mc();Pc();xn();rm();Nae()});function V3e(e){return`[${e.slice(2)}]`}var G3e=Z(()=>{f()});function q3e(e){let t=new Uint8Array(32).fill(0);return e?oV(e)||lr(Mu(e)):_o(t)}var K3e=Z(()=>{f();Pc();xn();rm();Nae()});function a8(e){let t=e.replace(/^\\\\.|\\\\.$/gm,\"\");if(t.length===0)return new Uint8Array(1);let n=new Uint8Array(Mu(t).byteLength+2),r=0,o=t.split(\".\");for(let i=0;i<o.length;i++){let a=Mu(o[i]);a.byteLength>255&&(a=Mu(V3e(q3e(o[i])))),n[r]=a.length,n.set(a,r+1),r+=a.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var aV=Z(()=>{f();Pc();G3e();K3e()});function kt(e,t,n){let r=e[t.name];if(typeof r==\"function\")return r;let o=e[n];return typeof o==\"function\"?o:i=>t(e,i)}var Do=Z(()=>{f()});function am(e,{abi:t,address:n,args:r,docsPath:o,functionName:i,sender:a}){let c=e instanceof qy?e:e instanceof Re?e.walk(v=>\"data\"in v)||e.walk():{},{code:u,data:d,details:p,message:h,shortMessage:g}=c,y=e instanceof D0?new uT({functionName:i}):[Cgt,Yb.code].includes(u)&&(d||p||h||g)?new qb({abi:t,data:typeof d==\"object\"?d.data:d,functionName:i,message:c instanceof WA?p:g??h}):e;return new Gy(y,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:i,sender:a})}var Cgt,HT=Z(()=>{f();fs();tr();Kb();lT();CT();Cgt=3});function s8(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function G2(e){if(!s8(e))throw new Error(\"Uint8Array expected\")}function c8(e,t){if(typeof t!=\"boolean\")throw new Error(e+\" boolean expected, got \"+t)}function zM(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function Q3e(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?Lae:BigInt(\"0x\"+e)}function u8(e){if(G2(e),J3e)return e.toHex();let t=\"\";for(let n=0;n<e.length;n++)t+=Rgt[e[n]];return t}function Y3e(e){if(e>=V2._0&&e<=V2._9)return e-V2._0;if(e>=V2.A&&e<=V2.F)return e-(V2.A-10);if(e>=V2.a&&e<=V2.f)return e-(V2.a-10)}function jM(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(J3e)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=Y3e(e.charCodeAt(i)),c=Y3e(e.charCodeAt(i+1));if(a===void 0||c===void 0){let u=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+u+\\'\" at index \\'+i)}r[o]=a*16+c}return r}function Yp(e){return Q3e(u8(e))}function Bae(e){return G2(e),Q3e(u8(Uint8Array.from(e).reverse()))}function $b(e,t){return jM(e.toString(16).padStart(t*2,\"0\"))}function Uae(e,t){return $b(e,t).reverse()}function Lc(e,t,n){let r;if(typeof t==\"string\")try{r=jM(t)}catch(i){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+i)}else if(s8(t))r=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(e+\" of length \"+n+\" expected, got \"+o);return r}function Mf(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];G2(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function sV(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function zT(e,t,n){return Pae(e)&&Pae(t)&&Pae(n)&&t<=e&&e<n}function q2(e,t,n,r){if(!zT(t,n,r))throw new Error(\"expected valid \"+e+\": \"+n+\" <= n < \"+r+\", got \"+t)}function X3e(e){let t;for(t=0;e>Lae;e>>=Dae,t+=1);return t}function $3e(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=Mae(e),o=Mae(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},c=(...h)=>n(o,r,...h),u=(h=Mae(0))=>{o=c(Z3e([0]),h),r=c(),h.length!==0&&(o=c(Z3e([1]),h),r=c())},d=()=>{if(i++>=1e3)throw new Error(\"drbg: tried 1000 values\");let h=0,g=[];for(;h<t;){r=c();let y=r.slice();g.push(y),h+=r.length}return Mf(...g)};return(h,g)=>{a(),u(h);let y;for(;!(y=g(d()));)u();return a(),y}}function K2(e,t,n={}){let r=(o,i,a)=>{let c=Igt[i];if(typeof c!=\"function\")throw new Error(\"invalid validator function\");let u=e[o];if(!(a&&u===void 0)&&!c(u,e))throw new Error(\"param \"+String(o)+\" is invalid. Expected \"+i+\", got \"+u)};for(let[o,i]of Object.entries(t))r(o,i,!1);for(let[o,i]of Object.entries(n))r(o,i,!0);return e}function Fae(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var Lae,Dae,J3e,Rgt,V2,Pae,jT,Mae,Z3e,Igt,l8=Z(()=>{f();Lae=BigInt(0),Dae=BigInt(1);J3e=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",Rgt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));V2={_0:48,_9:57,A:65,F:70,a:97,f:102};Pae=e=>typeof e==\"bigint\"&&Lae<=e;jT=e=>(Dae<<BigInt(e))-Dae,Mae=e=>new Uint8Array(e),Z3e=e=>Uint8Array.from(e);Igt={bigint:e=>typeof e==\"bigint\",function:e=>typeof e==\"function\",boolean:e=>typeof e==\"boolean\",string:e=>typeof e==\"string\",stringOrUint8Array:e=>typeof e==\"string\"||s8(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==\"function\"&&Number.isSafeInteger(e.outputLen)}});var eTe,tTe=Z(()=>{f();eTe=\"0.1.1\"});function nTe(){return eTe}var rTe=Z(()=>{f();tTe()});function oTe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?oTe(e.cause,t):t?null:e}var En,Zp=Z(()=>{f();rTe();En=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&\"details\"in n.cause&&typeof n.cause.details==\"string\"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(u=>typeof u==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${nTe()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return oTe(this,t)}}});function d8(e,t){if(H0(e)>t)throw new cV({givenSize:H0(e),maxSize:t})}function iTe(e,t){if(typeof t==\"number\"&&t>0&&t>H0(e)-1)throw new WM({offset:t,position:\"start\",size:H0(e)})}function aTe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&H0(e)!==n-t)throw new WM({offset:n,position:\"end\",size:H0(e)})}function Hae(e){if(e>=Y2.zero&&e<=Y2.nine)return e-Y2.zero;if(e>=Y2.A&&e<=Y2.F)return e-(Y2.A-10);if(e>=Y2.a&&e<=Y2.f)return e-(Y2.a-10)}function sTe(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new uV({size:e.length,targetSize:r,type:\"Bytes\"});let o=new Uint8Array(r);for(let i=0;i<r;i++){let a=n===\"right\";o[a?i:r-i-1]=e[a?i:e.length-i-1]}return o}function zae(e,t={}){let{dir:n=\"left\"}=t,r=e,o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r}var Y2,cTe=Z(()=>{f();u_();Y2={zero:48,nine:57,A:65,F:70,a:97,f:102}});function f8(e,t){if(Qa(e)>t)throw new lV({givenSize:Qa(e),maxSize:t})}function uTe(e,t){if(typeof t==\"number\"&&t>0&&t>Qa(e)-1)throw new VM({offset:t,position:\"start\",size:Qa(e)})}function lTe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&Qa(e)!==n-t)throw new VM({offset:n,position:\"end\",size:Qa(e)})}function jae(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>r*2)throw new dV({size:Math.ceil(o.length/2),targetSize:r,type:\"Hex\"});return`0x${o[n===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function dTe(e,t={}){let{dir:n=\"left\"}=t,r=e.replace(\"0x\",\"\"),o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r===\"0\"?\"0x\":n===\"right\"&&r.length%2===1?`0x${r}0`:`0x${r}`}var Wae=Z(()=>{f();Fu()});function l_(e,t,n){return JSON.stringify(e,(r,o)=>typeof t==\"function\"?t(r,o):typeof o==\"bigint\"?o.toString()+kgt:o,n)}var kgt,GM=Z(()=>{f();kgt=\"#__bigint\"});function Mgt(e){if(!(e instanceof Uint8Array)){if(!e)throw new p8(e);if(typeof e!=\"object\")throw new p8(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new p8(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new p8(e)}}function pTe(e){return e instanceof Uint8Array?e:typeof e==\"string\"?h8(e):Dgt(e)}function Dgt(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function h8(e,t={}){let{size:n}=t,r=e;n&&(f8(e,n),r=tv(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let c=0,u=0;c<i;c++){let d=Hae(o.charCodeAt(u++)),p=Hae(o.charCodeAt(u++));if(d===void 0||p===void 0)throw new En(`Invalid byte sequence (\"${o[u-2]}${o[u-1]}\" in \"${o}\").`);a[c]=d*16+p}return a}function hTe(e,t={}){let{size:n}=t,r=Pgt.encode(e);return typeof n==\"number\"?(d8(r,n),Lgt(r,n)):r}function Lgt(e,t){return sTe(e,{dir:\"right\",size:t})}function H0(e){return e.length}function mTe(e,t,n,r={}){let{strict:o}=r;iTe(e,t);let i=e.slice(t,n);return o&&aTe(i,t,n),i}function gTe(e,t={}){let{size:n}=t;typeof n<\"u\"&&d8(e,n);let r=ac(e,t);return qae(r,t)}function yTe(e,t={}){let{size:n}=t,r=e;if(typeof n<\"u\"&&(d8(r,n),r=Gae(r)),r.length>1||r[0]>1)throw new Vae(r);return!!r[0]}function ev(e,t={}){let{size:n}=t;typeof n<\"u\"&&d8(e,n);let r=ac(e,t);return pV(r,t)}function bTe(e,t={}){let{size:n}=t,r=e;return typeof n<\"u\"&&(d8(r,n),r=Bgt(r)),Ngt.decode(r)}function Gae(e){return zae(e,{dir:\"left\"})}function Bgt(e){return zae(e,{dir:\"right\"})}function vTe(e){try{return Mgt(e),!0}catch{return!1}}var Ngt,Pgt,Vae,p8,cV,WM,uV,u_=Z(()=>{f();Zp();Fu();cTe();Wae();GM();Ngt=new TextDecoder,Pgt=new TextEncoder;Vae=class extends En{constructor(t){super(`Bytes value \\\\`${t}\\\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}},p8=class extends En{constructor(t){super(`Value \\\\`${typeof t==\"object\"?l_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},cV=class extends En{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},WM=class extends En{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},uV=class extends En{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function Hgt(e,t={}){let{strict:n=!1}=t;if(!e)throw new hV(e);if(typeof e!=\"string\")throw new hV(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new mV(e);if(!e.startsWith(\"0x\"))throw new mV(e)}function ps(...e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}function m8(e){return e instanceof Uint8Array?ac(e):Array.isArray(e)?ac(new Uint8Array(e)):e}function gV(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(f8(n,t.size),Z2(n,t.size)):n}function ac(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=Fgt[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(f8(r,t.size),tv(r,t.size)):r}function Ko(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let d=typeof e==\"bigint\"?\"n\":\"\";throw new qM({max:i?`${i}${d}`:void 0,min:`${a}${d}`,signed:n,size:r,value:`${e}${d}`})}let u=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Z2(u,r):u}function g8(e,t={}){return ac(Ugt.encode(e),t)}function Z2(e,t){return jae(e,{dir:\"left\",size:t})}function tv(e,t){return jae(e,{dir:\"right\",size:t})}function Ja(e,t,n,r={}){let{strict:o}=r;uTe(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return o&&lTe(i,t,n),i}function Qa(e){return Math.ceil((e.length-2)/2)}function Kae(e){return dTe(e,{dir:\"left\"})}function qae(e,t={}){let{signed:n}=t;t.size&&f8(e,t.size);let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n)-1n,a=i>>1n;return r<=a?r:r-i-1n}function pV(e,t={}){let{signed:n,size:r}=t;return Number(!n&&!r?e:qae(e,t))}function KM(e,t={}){let{strict:n=!1}=t;try{return Hgt(e,{strict:n}),!0}catch{return!1}}var Ugt,Fgt,qM,hV,mV,lV,VM,dV,Fu=Z(()=>{f();Zp();Wae();GM();Ugt=new TextEncoder,Fgt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));qM=class extends En{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \\\\`${i}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${r?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${n}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${n}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},hV=class extends En{constructor(t){super(`Value \\\\`${typeof t==\"object\"?l_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},mV=class extends En{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},lV=class extends En{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},VM=class extends En{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},dV=class extends En{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function wTe(e){return{address:e.address,amount:Ko(e.amount),index:Ko(e.index),validatorIndex:Ko(e.validatorIndex)}}var xTe=Z(()=>{f();Fu()});function yV(e){return{...typeof e.baseFeePerGas==\"bigint\"&&{baseFeePerGas:Ko(e.baseFeePerGas)},...typeof e.blobBaseFee==\"bigint\"&&{blobBaseFee:Ko(e.blobBaseFee)},...typeof e.feeRecipient==\"string\"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit==\"bigint\"&&{gasLimit:Ko(e.gasLimit)},...typeof e.number==\"bigint\"&&{number:Ko(e.number)},...typeof e.prevRandao==\"bigint\"&&{prevRandao:Ko(e.prevRandao)},...typeof e.time==\"bigint\"&&{time:Ko(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(wTe)}}}var Yae=Z(()=>{f();Fu();xTe()});var ATe,_Te=Z(()=>{f();ATe=\"0x82ad56cb\"});var bV,STe,TTe,y8,YM=Z(()=>{f();bV=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",STe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",TTe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",y8=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});function VT(e){let{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;let o=t.find(a=>\"type\"in a&&a.type===\"constructor\");if(!o)throw new yW({docsPath:Zae});if(!(\"inputs\"in o))throw new X9({docsPath:Zae});if(!o.inputs||o.inputs.length===0)throw new X9({docsPath:Zae});let i=Hi(o.inputs,n);return ls([r,i])}var Zae,vV=Z(()=>{f();fs();Mc();L0();Zae=\"/docs/contract/encodeDeployData\"});function b8(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}var wV=Z(()=>{f()});function xV({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){let i=async()=>{let p=u();a();let h=p.map(({args:g})=>g);h.length!==0&&e(h).then(g=>{o&&Array.isArray(g)&&g.sort(o);for(let y=0;y<p.length;y++){let{resolve:v}=p[y];v?.([g[y],g])}}).catch(g=>{for(let y=0;y<p.length;y++){let{reject:v}=p[y];v?.(g)}})},a=()=>Qae.delete(t),c=()=>u().map(({args:p})=>p),u=()=>Qae.get(t)||[],d=p=>Qae.set(t,[...u(),p]);return{flush:a,async schedule(p){let{promise:h,resolve:g,reject:y}=b8();return n?.([...c(),p])&&i(),u().length>0?(d({args:p,resolve:g,reject:y}),h):(d({args:p,resolve:g,reject:y}),setTimeout(i,r),h)}}}var Qae,Jae=Z(()=>{f();wV();Qae=new Map});function CTe(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new N9({size:n.length,targetSize:66,type:\"hex\"});if(r.length!==66)throw new N9({size:r.length,targetSize:66,type:\"hex\"});return t[n]=r,t},{})}function jgt(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:i}=e,a={};if(i!==void 0&&(a.code=i),t!==void 0&&(a.balance=Ne(t)),n!==void 0&&(a.nonce=Ne(n)),r!==void 0&&(a.state=CTe(r)),o!==void 0){if(a.state)throw new zW;a.stateDiff=CTe(o)}return a}function d_(e){if(!e)return;let t={};for(let{address:n,...r}of e){if(!Un(n,{strict:!1}))throw new Fi({address:n});if(t[n])throw new HW({address:n});t[n]=jgt(r)}return t}var ZM=Z(()=>{f();Fy();Ij();Qie();Bp();xn()});var EV,AV,_V,RTe=Z(()=>{f();Ol();tr();jW();EV=class extends Re{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:i,urls:a}){super(n.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:n,metaMessages:[...n.metaMessages||[],n.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",a&&[\"  Gateway URL(s):\",...a.map(c=>`    ${sT(c)}`)],`  Sender: ${i}`,`  Data: ${r}`,`  Callback selector: ${t}`,`  Extra data: ${o}`].flat(),name:\"OffchainLookupError\"})}},AV=class extends Re{constructor({result:t,url:n}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${sT(n)}`,`Response: ${$r(t)}`],name:\"OffchainLookupResponseMalformedError\"})}},_V=class extends Re{constructor({sender:t,to:n}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`],name:\"OffchainLookupSenderMismatchError\"})}}});function Pl(e,t){if(!Un(e,{strict:!1}))throw new Fi({address:e});if(!Un(t,{strict:!1}))throw new Fi({address:t});return e.toLowerCase()===t.toLowerCase()}var f_=Z(()=>{f();Fy();Bp()});var kTe={};qa(kTe,{ccipRequest:()=>OTe,offchainLookup:()=>Vgt,offchainLookupAbiItem:()=>ITe,offchainLookupSignature:()=>Wgt});async function Vgt(e,{blockNumber:t,blockTag:n,data:r,to:o}){let{args:i}=HI({data:r,abi:[ITe]}),[a,c,u,d,p]=i,{ccipRead:h}=e,g=h&&typeof h?.request==\"function\"?h.request:OTe;try{if(!Pl(o,a))throw new _V({sender:a,to:o});let y=c.includes(W2)?await kae({data:u,ccipRequest:g}):await g({data:u,sender:a,urls:c}),{data:v}=await cm(e,{blockNumber:t,blockTag:n,data:Ri([d,Hi([{type:\"bytes\"},{type:\"bytes\"}],[y,p])]),to:o});return v}catch(y){throw new EV({callbackSelector:d,cause:y,data:r,extraData:p,sender:a,urls:c})}}async function OTe({data:e,sender:t,urls:n}){let r=new Error(\"An unknown error occurred.\");for(let o=0;o<n.length;o++){let i=n[o],a=i.includes(\"{data}\")?\"GET\":\"POST\",c=a===\"POST\"?{data:e,sender:t}:void 0,u=a===\"POST\"?{\"Content-Type\":\"application/json\"}:{};try{let d=await fetch(i.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(c),headers:u,method:a}),p;if(d.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?p=(await d.json()).data:p=await d.text(),!d.ok){r=new B0({body:c,details:p?.error?$r(p.error):d.statusText,headers:d.headers,status:d.status,url:i});continue}if(!Xr(p)){r=new AV({result:p,url:i});continue}return p}catch(d){r=new B0({body:c,details:d.message,url:i})}}throw r}var Wgt,ITe,NTe=Z(()=>{f();GT();RTe();lT();FW();L0();f_();Mc();S0();HM();Ol();Wgt=\"0x556f1830\",ITe={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]}});async function cm(e,t){let{account:n=e.account,authorizationList:r,batch:o=!!e.batch?.multicall,blockNumber:i,blockTag:a=e.experimental_blockTag??\"latest\",accessList:c,blobs:u,blockOverrides:d,code:p,data:h,factory:g,factoryData:y,gas:v,gasPrice:x,maxFeePerBlobGas:R,maxFeePerGas:S,maxPriorityFeePerGas:M,nonce:P,to:z,value:V,stateOverride:Q,...$}=t,oe=n?jn(n):void 0;if(p&&(g||y))throw new Re(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(p&&z)throw new Re(\"Cannot provide both `code` & `to` as parameters.\");let J=p&&h,re=g&&y&&z&&h,q=J||re,K=J?PTe({code:p,data:h}):re?Kgt({data:h,factory:g,factoryData:y,to:z}):h;try{zp(t);let T=(typeof i==\"bigint\"?Ne(i):void 0)||a,k=d?yV(d):void 0,F=d_(Q),N=e.chain?.formatters?.transactionRequest?.format,H=(N||T0)({...qA($,{format:N}),from:oe?.address,accessList:c,authorizationList:r,blobs:u,data:K,gas:v,gasPrice:x,maxFeePerBlobGas:R,maxFeePerGas:S,maxPriorityFeePerGas:M,nonce:P,to:q?void 0:z,value:V});if(o&&Ggt({request:H})&&!F&&!k)try{return await qgt(e,{...H,blockNumber:i,blockTag:a})}catch(O){if(!(O instanceof W9)&&!(O instanceof eT))throw O}let W=(()=>{let O=[H,T];return F&&k?[...O,F,k]:F?[...O,F]:k?[...O,{},k]:O})(),G=await e.request({method:\"eth_call\",params:W});return G===\"0x\"?{data:void 0}:{data:G}}catch(U){let T=Ygt(U),{offchainLookup:k,offchainLookupSignature:F}=await Promise.resolve().then(()=>(NTe(),kTe));if(e.ccipRead!==!1&&T?.slice(0,10)===F&&z)return{data:await k(e,{data:T,to:z})};throw q&&T?.slice(0,10)===\"0x101bb98d\"?new vM({factory:g}):WW(U,{...t,account:oe,chain:e.chain})}}function Ggt({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith(ATe)||!n||Object.values(r).filter(o=>typeof o<\"u\").length>0)}async function qgt(e,t){let{batchSize:n=1024,deployless:r=!1,wait:o=0}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},{blockNumber:i,blockTag:a=e.experimental_blockTag??\"latest\",data:c,to:u}=t,d=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return M0({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new W9})(),h=(typeof i==\"bigint\"?Ne(i):void 0)||a,{schedule:g}=xV({id:`${e.uid}.${h}`,wait:o,shouldSplitBatch(x){return x.reduce((S,{data:M})=>S+(M.length-2),0)>n*2},fn:async x=>{let R=x.map(P=>({allowFailure:!0,callData:P.data,target:P.to})),S=vn({abi:a_,args:[R],functionName:\"aggregate3\"}),M=await e.request({method:\"eth_call\",params:[{...d===null?{data:PTe({code:y8,data:S})}:{to:d,data:S}},h]});return Kp({abi:a_,args:[R],functionName:\"aggregate3\",data:M||\"0x\"})}}),[{returnData:y,success:v}]=await g({data:c,to:u});if(!v)throw new qy({data:y});return y===\"0x\"?{data:void 0}:{data:y}}function PTe(e){let{code:t,data:n}=e;return VT({abi:O2([\"constructor(bytes, bytes)\"]),bytecode:bV,args:[t,n]})}function Kgt(e){let{data:t,factory:n,factoryData:r,to:o}=e;return VT({abi:O2([\"constructor(address, bytes, address, bytes)\"]),bytecode:STe,args:[o,t,n,r]})}function Ygt(e){if(!(e instanceof Re))return;let t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}var GT=Z(()=>{f();iT();Yae();ka();j2();_Te();YM();tr();V9();Kb();s_();vV();Pf();rT();xn();Jie();AM();K3();Jae();ZM();KA()});async function ui(e,t){let{abi:n,address:r,args:o,functionName:i,...a}=t,c=vn({abi:n,args:o,functionName:i});try{let{data:u}=await kt(e,cm,\"call\")({...a,data:c,to:r});return Kp({abi:n,args:o,functionName:i,data:u||\"0x\"})}catch(u){throw am(u,{abi:n,address:r,args:o,docsPath:\"/docs/contract/readContract\",functionName:i})}}var z0=Z(()=>{f();s_();Pf();HT();Do();GT()});async function MTe(e,t){let{blockNumber:n,blockTag:r,coinType:o,name:i,gatewayUrls:a,strict:c}=t,{chain:u}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!u)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return M0({blockNumber:n,chain:u,contract:\"ensUniversalResolver\"})})(),p=u?.ensTlds;if(p&&!p.some(g=>i.endsWith(g)))return null;let h=o!=null?[c_(i),BigInt(o)]:[c_(i)];try{let g=vn({abi:_ae,functionName:\"addr\",args:h}),y={address:d,abi:nV,functionName:\"resolveWithGateways\",args:[Zn(a8(i)),g,a??[W2]],blockNumber:n,blockTag:r},x=await kt(e,ui,\"readContract\")(y);if(x[0]===\"0x\")return null;let R=Kp({abi:_ae,args:h,functionName:\"addr\",data:x[0]});return R===\"0x\"||Ui(R)===\"0x00\"?null:R}catch(g){if(c)throw g;if(i8(g))return null;throw g}}var DTe=Z(()=>{f();j2();s_();Pf();rT();kA();xn();rV();HM();iV();aV();Do();z0()});var SV,p_,v8,TV,LTe=Z(()=>{f();tr();SV=class extends Re{constructor({data:t}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(t)}`],name:\"EnsAvatarInvalidMetadataError\"})}},p_=class extends Re{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:\"EnsAvatarInvalidNftUriError\"})}},v8=class extends Re{constructor({uri:t}){super(`Unable to resolve ENS avatar URI \"${t}\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\"EnsAvatarUriResolutionError\"})}},TV=class extends Re{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}}});async function $gt(e){try{let t=await fetch(e,{method:\"HEAD\"});return t.status===200?t.headers.get(\"content-type\")?.startsWith(\"image/\"):!1}catch(t){return typeof t==\"object\"&&typeof t.response<\"u\"||!Object.hasOwn(globalThis,\"Image\")?!1:new Promise(n=>{let r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function BTe(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function Xae({uri:e,gatewayUrls:t}){let n=Jgt.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=BTe(t?.ipfs,\"https://ipfs.io\"),o=BTe(t?.arweave,\"https://arweave.net\"),i=e.match(Zgt),{protocol:a,subpath:c,target:u,subtarget:d=\"\"}=i?.groups||{},p=a===\"ipns:/\"||c===\"ipns/\",h=a===\"ipfs:/\"||c===\"ipfs/\"||Qgt.test(e);if(e.startsWith(\"http\")&&!p&&!h){let y=e;return t?.arweave&&(y=e.replace(/https:\\\\/\\\\/arweave.net/g,t?.arweave)),{uri:y,isOnChain:!1,isEncoded:!1}}if((p||h)&&u)return{uri:`${r}/${p?\"ipns\":\"ipfs\"}/${u}${d}`,isOnChain:!1,isEncoded:!1};if(a===\"ar:/\"&&u)return{uri:`${o}/${u}${d||\"\"}`,isOnChain:!1,isEncoded:!1};let g=e.replace(Xgt,\"\");if(g.startsWith(\"<svg\")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith(\"data:\")||g.startsWith(\"{\"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new v8({uri:e})}function $ae(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new SV({data:e});return e.image||e.image_url||e.image_data}async function UTe({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(o=>o.json());return await CV({gatewayUrls:e,uri:$ae(n)})}catch{throw new v8({uri:t})}}async function CV({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=Xae({uri:t,gatewayUrls:e});if(r||await $gt(n))return n;throw new v8({uri:t})}function FTe(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[n,r,o]=t.split(\"/\"),[i,a]=n.split(\":\"),[c,u]=r.split(\":\");if(!i||i.toLowerCase()!==\"eip155\")throw new p_({reason:\"Only EIP-155 supported\"});if(!a)throw new p_({reason:\"Chain ID not found\"});if(!u)throw new p_({reason:\"Contract address not found\"});if(!o)throw new p_({reason:\"Token ID not found\"});if(!c)throw new p_({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(a,10),namespace:c.toLowerCase(),contractAddress:u,tokenID:o}}async function HTe(e,{nft:t}){if(t.namespace===\"erc721\")return ui(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(t.namespace===\"erc1155\")return ui(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new TV({namespace:t.namespace})}var Zgt,Qgt,Jgt,Xgt,zTe=Z(()=>{f();z0();LTe();Zgt=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,Qgt=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\\\/(?<target>[\\\\w\\\\-.]+))?(?<subtarget>\\\\/.*)?$/,Jgt=/^data:([a-zA-Z\\\\-/+]*);base64,([^\"].*)/,Xgt=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/});async function jTe(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?eyt(e,{gatewayUrls:t,record:n}):CV({uri:n,gatewayUrls:t})}async function eyt(e,{gatewayUrls:t,record:n}){let r=FTe(n),o=await HTe(e,{nft:r}),{uri:i,isOnChain:a,isEncoded:c}=Xae({uri:o,gatewayUrls:t});if(a&&(i.includes(\"data:application/json;base64,\")||i.startsWith(\"{\"))){let d=c?atob(i.replace(\"data:application/json;base64,\",\"\")):i,p=JSON.parse(d);return CV({uri:$ae(p),gatewayUrls:t})}let u=r.tokenID;return r.namespace===\"erc1155\"&&(u=u.replace(\"0x\",\"\").padStart(64,\"0\")),UTe({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,u)})}var WTe=Z(()=>{f();zTe()});async function RV(e,t){let{blockNumber:n,blockTag:r,key:o,name:i,gatewayUrls:a,strict:c}=t,{chain:u}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!u)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return M0({blockNumber:n,chain:u,contract:\"ensUniversalResolver\"})})(),p=u?.ensTlds;if(p&&!p.some(h=>i.endsWith(h)))return null;try{let h={address:d,abi:nV,args:[Zn(a8(i)),vn({abi:Aae,functionName:\"text\",args:[c_(i),o]}),a??[W2]],functionName:\"resolveWithGateways\",blockNumber:n,blockTag:r},y=await kt(e,ui,\"readContract\")(h);if(y[0]===\"0x\")return null;let v=Kp({abi:Aae,functionName:\"text\",data:y[0]});return v===\"\"?null:v}catch(h){if(c)throw h;if(i8(h))return null;throw h}}var ese=Z(()=>{f();j2();s_();Pf();rT();xn();rV();HM();iV();aV();Do();z0()});async function VTe(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:i,strict:a,universalResolverAddress:c}){let u=await kt(e,RV,\"getEnsText\")({blockNumber:t,blockTag:n,key:\"avatar\",name:o,universalResolverAddress:c,gatewayUrls:i,strict:a});if(!u)return null;try{return await jTe(e,{record:u,gatewayUrls:r})}catch{return null}}var GTe=Z(()=>{f();WTe();Do();ese()});async function qTe(e,t){let{address:n,blockNumber:r,blockTag:o,coinType:i=60n,gatewayUrls:a,strict:c}=t,{chain:u}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!u)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return M0({blockNumber:r,chain:u,contract:\"ensUniversalResolver\"})})();try{let p={address:d,abi:B3e,args:[n,i,a??[W2]],functionName:\"reverseWithGateways\",blockNumber:r,blockTag:o},h=kt(e,ui,\"readContract\"),[g]=await h(p);return g||null}catch(p){if(c)throw p;if(i8(p))return null;throw p}}var KTe=Z(()=>{f();j2();rT();rV();HM();Do();z0()});async function YTe(e,t){let{blockNumber:n,blockTag:r,name:o}=t,{chain:i}=e,a=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!i)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return M0({blockNumber:n,chain:i,contract:\"ensUniversalResolver\"})})(),c=i?.ensTlds;if(c&&!c.some(d=>o.endsWith(d)))throw new Error(`${o} is not a valid ENS TLD (${c?.join(\", \")}) for chain \"${i.name}\" (id: ${i.id}).`);let[u]=await kt(e,ui,\"readContract\")({address:a,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"},{type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[Zn(a8(o))],blockNumber:n,blockTag:r});return u}var ZTe=Z(()=>{f();rT();xn();aV();Do();z0()});async function IV(e,t){let{account:n=e.account,blockNumber:r,blockTag:o=\"latest\",blobs:i,data:a,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:h,to:g,value:y,...v}=t,x=n?jn(n):void 0;try{zp(t);let S=(typeof r==\"bigint\"?Ne(r):void 0)||o,M=e.chain?.formatters?.transactionRequest?.format,z=(M||T0)({...qA(v,{format:M}),from:x?.address,blobs:i,data:a,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:h,to:g,value:y}),V=await e.request({method:\"eth_createAccessList\",params:[z,S]});return{accessList:V.accessList,gasUsed:BigInt(V.gasUsed)}}catch(R){throw WW(R,{...t,account:x,chain:e.chain})}}var tse=Z(()=>{f();ka();xn();Jie();AM();K3();KA()});function h_(e,{method:t}){let n={};return e.transport.type===\"fallback\"&&e.transport.onResponse?.(({method:r,response:o,status:i,transport:a})=>{i===\"success\"&&t===r&&(n[o]=a.request)}),(r=>n[r]||e.request)}var QM=Z(()=>{f()});async function QTe(e){let t=h_(e,{method:\"eth_newBlockFilter\"}),n=await e.request({method:\"eth_newBlockFilter\"});return{id:n,request:t(n),type:\"block\"}}var JTe=Z(()=>{f();QM()});var OV,XTe=Z(()=>{f();tr();OV=class extends Re{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}}});function nv(e){let{abi:t,eventName:n,args:r}=e,o=t[0];if(n){let u=Fp({abi:t,name:n});if(!u)throw new eM(n,{docsPath:$Te});o=u}if(o.type!==\"event\")throw new eM(void 0,{docsPath:$Te});let i=hu(o),a=zA(i),c=[];if(r&&\"inputs\"in o){let u=o.inputs?.filter(p=>\"indexed\"in p&&p.indexed),d=Array.isArray(r)?r:Object.values(r).length>0?u?.map(p=>r[p.name])??[]:[];d.length>0&&(c=u?.map((p,h)=>Array.isArray(d[h])?d[h].map((g,y)=>e6e({param:p,value:d[h][y]})):typeof d[h]<\"u\"&&d[h]!==null?e6e({param:p,value:d[h]}):null)??[])}return[a,...c]}function e6e({param:e,value:t}){if(e.type===\"string\"||e.type===\"bytes\")return lr(em(t));if(e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/))throw new OV(e.type);return Hi([e],[t])}var $Te,w8=Z(()=>{f();fs();XTe();Pc();rm();bM();L0();R2();jA();$Te=\"/docs/contract/encodeEventTopics\"});async function kV(e,t){let{address:n,abi:r,args:o,eventName:i,fromBlock:a,strict:c,toBlock:u}=t,d=h_(e,{method:\"eth_newFilter\"}),p=i?nv({abi:r,args:o,eventName:i}):void 0,h=await e.request({method:\"eth_newFilter\",params:[{address:n,fromBlock:typeof a==\"bigint\"?Ne(a):a,toBlock:typeof u==\"bigint\"?Ne(u):u,topics:p}]});return{abi:r,args:o,eventName:i,id:h,request:d(h),strict:!!c,type:\"event\"}}var nse=Z(()=>{f();w8();xn();QM()});async function NV(e,{address:t,args:n,event:r,events:o,fromBlock:i,strict:a,toBlock:c}={}){let u=o??(r?[r]:void 0),d=h_(e,{method:\"eth_newFilter\"}),p=[];u&&(p=[u.flatMap(y=>nv({abi:[y],eventName:y.name,args:n}))],r&&(p=p[0]));let h=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:typeof i==\"bigint\"?Ne(i):i,toBlock:typeof c==\"bigint\"?Ne(c):c,...p.length?{topics:p}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:i,id:h,request:d(h),strict:!!a,toBlock:c,type:\"event\"}}var rse=Z(()=>{f();w8();xn();QM()});async function PV(e){let t=h_(e,{method:\"eth_newPendingTransactionFilter\"}),n=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:n,request:t(n),type:\"transaction\"}}var ose=Z(()=>{f();QM()});function t6e(e){let t=lr(`0x${e.substring(4)}`).substring(26);return Hb(`0x${t}`)}var n6e=Z(()=>{f();zb();rm()});var MV,JM,ise=Z(()=>{f();I0();MV=class extends PA{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Kj(t);let r=Q3(n);if(this.iHash=t.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=t.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),R0(i)}update(t){return _2(this),this.iHash.update(t),this}digestInto(t){_2(this),Lu(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:a,outputLen:c}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},JM=(e,t,n)=>new MV(e,t).update(n).digest();JM.create=(e,t)=>new MV(e,t)});function sc(e,t){let n=e%t;return n>=Df?n:t+n}function um(e,t,n){let r=e;for(;t-- >Df;)r*=r,r%=n;return r}function DV(e,t){if(e===Df)throw new Error(\"invert: expected non-zero number\");if(t<=Df)throw new Error(\"invert: expected positive modulus, got \"+t);let n=sc(e,t),r=t,o=Df,i=Ed,a=Ed,c=Df;for(;n!==Df;){let d=r/n,p=r%n,h=o-a*d,g=i-c*d;r=n,n=p,o=a,i=c,a=h,c=g}if(r!==Ed)throw new Error(\"invert: does not exist\");return sc(o,t)}function s6e(e,t){let n=(e.ORDER+Ed)/o6e,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error(\"Cannot find square root\");return r}function nyt(e,t){let n=(e.ORDER-i6e)/a6e,r=e.mul(t,qT),o=e.pow(r,n),i=e.mul(t,o),a=e.mul(e.mul(i,qT),o),c=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error(\"Cannot find square root\");return c}function ryt(e){if(e<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let t=e-Ed,n=0;for(;t%qT===Df;)t/=qT,n++;let r=qT,o=XM(e);for(;r6e(o,r)===1;)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return s6e;let i=o.pow(r,t),a=(t+Ed)/qT;return function(u,d){if(u.is0(d))return d;if(r6e(u,d)!==1)throw new Error(\"Cannot find square root\");let p=n,h=u.mul(u.ONE,i),g=u.pow(d,t),y=u.pow(d,a);for(;!u.eql(g,u.ONE);){if(u.is0(g))return u.ZERO;let v=1,x=u.sqr(g);for(;!u.eql(x,u.ONE);)if(v++,x=u.sqr(x),v===p)throw new Error(\"Cannot find square root\");let R=Ed<<BigInt(p-v-1),S=u.pow(h,R);p=v,h=u.sqr(S),g=u.mul(g,h),y=u.mul(y,S)}return y}}function oyt(e){return e%o6e===tyt?s6e:e%a6e===i6e?nyt:ryt(e)}function LV(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"},n=iyt.reduce((r,o)=>(r[o]=\"function\",r),t);return K2(e,n)}function ayt(e,t,n){if(n<Df)throw new Error(\"invalid exponent, negatives unsupported\");if(n===Df)return e.ONE;if(n===Ed)return t;let r=e.ONE,o=t;for(;n>Df;)n&Ed&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Ed;return r}function x8(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((a,c,u)=>e.is0(c)?a:(r[u]=a,e.mul(a,c)),e.ONE),i=e.inv(o);return t.reduceRight((a,c,u)=>e.is0(c)?a:(r[u]=e.mul(a,r[u]),e.mul(a,c)),i),r}function r6e(e,t){let n=(e.ORDER-Ed)/qT,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error(\"invalid Legendre symbol result\");return o?1:i?0:-1}function ase(e,t){t!==void 0&&Dy(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function XM(e,t,n=!1,r={}){if(e<=Df)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let{nBitLength:o,nByteLength:i}=ase(e,t);if(i>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let a,c=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:i,MASK:jT(o),ZERO:Df,ONE:Ed,create:u=>sc(u,e),isValid:u=>{if(typeof u!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof u);return Df<=u&&u<e},is0:u=>u===Df,isOdd:u=>(u&Ed)===Ed,neg:u=>sc(-u,e),eql:(u,d)=>u===d,sqr:u=>sc(u*u,e),add:(u,d)=>sc(u+d,e),sub:(u,d)=>sc(u-d,e),mul:(u,d)=>sc(u*d,e),pow:(u,d)=>ayt(c,u,d),div:(u,d)=>sc(u*DV(d,e),e),sqrN:u=>u*u,addN:(u,d)=>u+d,subN:(u,d)=>u-d,mulN:(u,d)=>u*d,inv:u=>DV(u,e),sqrt:r.sqrt||(u=>(a||(a=oyt(e)),a(c,u))),toBytes:u=>n?Uae(u,i):$b(u,i),fromBytes:u=>{if(u.length!==i)throw new Error(\"Field.fromBytes: expected \"+i+\" bytes, got \"+u.length);return n?Bae(u):Yp(u)},invertBatch:u=>x8(c,u),cmov:(u,d,p)=>p?d:u});return Object.freeze(c)}function c6e(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function sse(e){let t=c6e(e);return t+Math.ceil(t/2)}function u6e(e,t,n=!1){let r=e.length,o=c6e(t),i=sse(t);if(r<16||r<i||r>1024)throw new Error(\"expected \"+i+\"-1024 bytes of input, got \"+r);let a=n?Bae(e):Yp(e),c=sc(a,t-Ed)+Ed;return n?Uae(c,o):$b(c,o)}var Df,Ed,qT,tyt,o6e,i6e,a6e,iyt,$M=Z(()=>{f();I0();l8();Df=BigInt(0),Ed=BigInt(1),qT=BigInt(2),tyt=BigInt(3),o6e=BigInt(4),i6e=BigInt(5),a6e=BigInt(8);iyt=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function cse(e,t){let n=t.negate();return e?n:t}function f6e(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function use(e,t){f6e(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=jT(e),a=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:a}}function d6e(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n,c=Number(e&o),u=e>>a;c>r&&(c-=i,u+=fse);let d=t*r,p=d+Math.abs(c)-1,h=c===0,g=c<0,y=t%2!==0;return{nextN:u,offset:p,isZero:h,isNeg:g,isNegF:y,offsetF:d}}function syt(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error(\"invalid point at index \"+r)})}function cyt(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error(\"invalid scalar at index \"+r)})}function dse(e){return p6e.get(e)||1}function h6e(e,t){return{constTimeNegate:cse,hasPrecomputes(n){return dse(n)!==1},unsafeLadder(n,r,o=e.ZERO){let i=n;for(;r>l6e;)r&fse&&(o=o.add(i)),i=i.double(),r>>=fse;return o},precomputeWindow(n,r){let{windows:o,windowSize:i}=use(r,t),a=[],c=n,u=c;for(let d=0;d<o;d++){u=c,a.push(u);for(let p=1;p<i;p++)u=u.add(c),a.push(u);c=u.double()}return a},wNAF(n,r,o){let i=e.ZERO,a=e.BASE,c=use(n,t);for(let u=0;u<c.windows;u++){let{nextN:d,offset:p,isZero:h,isNeg:g,isNegF:y,offsetF:v}=d6e(o,u,c);o=d,h?a=a.add(cse(y,r[v])):i=i.add(cse(g,r[p]))}return{p:i,f:a}},wNAFUnsafe(n,r,o,i=e.ZERO){let a=use(n,t);for(let c=0;c<a.windows&&o!==l6e;c++){let{nextN:u,offset:d,isZero:p,isNeg:h}=d6e(o,c,a);if(o=u,!p){let g=r[d];i=i.add(h?g.negate():g)}}return i},getPrecomputes(n,r,o){let i=lse.get(r);return i||(i=this.precomputeWindow(r,n),n!==1&&lse.set(r,o(i))),i},wNAFCached(n,r,o){let i=dse(n);return this.wNAF(i,this.getPrecomputes(i,n,o),r)},wNAFCachedUnsafe(n,r,o,i){let a=dse(n);return a===1?this.unsafeLadder(n,r,i):this.wNAFUnsafe(a,this.getPrecomputes(a,n,o),r,i)},setWindowSize(n,r){f6e(r,t),p6e.set(n,r),lse.delete(n)}}}function m6e(e,t,n,r){syt(n,e),cyt(r,t);let o=n.length,i=r.length;if(o!==i)throw new Error(\"arrays of points and scalars must have equal length\");let a=e.ZERO,c=X3e(BigInt(o)),u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);let d=jT(u),p=new Array(Number(d)+1).fill(a),h=Math.floor((t.BITS-1)/u)*u,g=a;for(let y=h;y>=0;y-=u){p.fill(a);for(let x=0;x<i;x++){let R=r[x],S=Number(R>>BigInt(y)&d);p[S]=p[S].add(n[x])}let v=a;for(let x=p.length-1,R=a;x>0;x--)R=R.add(p[x]),v=v.add(R);if(g=g.add(v),y!==0)for(let x=0;x<u;x++)g=g.double()}return g}function pse(e){return LV(e.Fp),K2(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...ase(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}var l6e,fse,lse,p6e,g6e=Z(()=>{f();$M();l8();l6e=BigInt(0),fse=BigInt(1);lse=new WeakMap,p6e=new WeakMap});function y6e(e){e.lowS!==void 0&&c8(\"lowS\",e.lowS),e.prehash!==void 0&&c8(\"prehash\",e.prehash)}function uyt(e){let t=pse(e);K2(t,{a:\"field\",b:\"field\"},{allowInfinityPoint:\"boolean\",allowedPrivateKeyLengths:\"array\",clearCofactor:\"function\",fromBytes:\"function\",isTorsionFree:\"function\",toBytes:\"function\",wrapPrivateKey:\"boolean\"});let{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error(\"invalid endo: CURVE.a must be 0\");if(typeof n!=\"object\"||typeof n.beta!=\"bigint\"||typeof n.splitScalar!=\"function\")throw new Error(\\'invalid endo: expected \"beta\": bigint and \"splitScalar\": function\\')}return Object.freeze({...t})}function hse(e,t){return u8($b(e,t))}function lyt(e){let t=uyt(e),{Fp:n}=t,r=XM(t.n,t.nBitLength),o=t.toBytes||((P,z,V)=>{let Q=z.toAffine();return Mf(Uint8Array.from([4]),n.toBytes(Q.x),n.toBytes(Q.y))}),i=t.fromBytes||(P=>{let z=P.subarray(1),V=n.fromBytes(z.subarray(0,n.BYTES)),Q=n.fromBytes(z.subarray(n.BYTES,2*n.BYTES));return{x:V,y:Q}});function a(P){let{a:z,b:V}=t,Q=n.sqr(P),$=n.mul(Q,P);return n.add(n.add($,n.mul(P,z)),V)}function c(P,z){let V=n.sqr(z),Q=a(P);return n.eql(V,Q)}if(!c(t.Gx,t.Gy))throw new Error(\"bad curve params: generator point\");let u=n.mul(n.pow(t.a,eD),gse),d=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(u,d)))throw new Error(\"bad curve params: a or b\");function p(P){return zT(P,ji,t.n)}function h(P){let{allowedPrivateKeyLengths:z,nByteLength:V,wrapPrivateKey:Q,n:$}=t;if(z&&typeof P!=\"bigint\"){if(s8(P)&&(P=u8(P)),typeof P!=\"string\"||!z.includes(P.length))throw new Error(\"invalid private key\");P=P.padStart(V*2,\"0\")}let oe;try{oe=typeof P==\"bigint\"?P:Yp(Lc(\"private key\",P,V))}catch{throw new Error(\"invalid private key, expected hex or \"+V+\" bytes, got \"+typeof P)}return Q&&(oe=sc(oe,$)),q2(\"private key\",oe,ji,$),oe}function g(P){if(!(P instanceof x))throw new Error(\"ProjectivePoint expected\")}let y=Fae((P,z)=>{let{px:V,py:Q,pz:$}=P;if(n.eql($,n.ONE))return{x:V,y:Q};let oe=P.is0();z==null&&(z=oe?n.ONE:n.inv($));let J=n.mul(V,z),re=n.mul(Q,z),q=n.mul($,z);if(oe)return{x:n.ZERO,y:n.ZERO};if(!n.eql(q,n.ONE))throw new Error(\"invZ was invalid\");return{x:J,y:re}}),v=Fae(P=>{if(P.is0()){if(t.allowInfinityPoint&&!n.is0(P.py))return;throw new Error(\"bad point: ZERO\")}let{x:z,y:V}=P.toAffine();if(!n.isValid(z)||!n.isValid(V))throw new Error(\"bad point: x or y not FE\");if(!c(z,V))throw new Error(\"bad point: equation left != right\");if(!P.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class x{constructor(z,V,Q){if(z==null||!n.isValid(z))throw new Error(\"x required\");if(V==null||!n.isValid(V)||n.is0(V))throw new Error(\"y required\");if(Q==null||!n.isValid(Q))throw new Error(\"z required\");this.px=z,this.py=V,this.pz=Q,Object.freeze(this)}static fromAffine(z){let{x:V,y:Q}=z||{};if(!z||!n.isValid(V)||!n.isValid(Q))throw new Error(\"invalid affine point\");if(z instanceof x)throw new Error(\"projective point not allowed\");let $=oe=>n.eql(oe,n.ZERO);return $(V)&&$(Q)?x.ZERO:new x(V,Q,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(z){let V=x8(n,z.map(Q=>Q.pz));return z.map((Q,$)=>Q.toAffine(V[$])).map(x.fromAffine)}static fromHex(z){let V=x.fromAffine(i(Lc(\"pointHex\",z)));return V.assertValidity(),V}static fromPrivateKey(z){return x.BASE.multiply(h(z))}static msm(z,V){return m6e(x,r,z,V)}_setWindowSize(z){M.setWindowSize(this,z)}assertValidity(){v(this)}hasEvenY(){let{y:z}=this.toAffine();if(n.isOdd)return!n.isOdd(z);throw new Error(\"Field doesn\\'t support isOdd\")}equals(z){g(z);let{px:V,py:Q,pz:$}=this,{px:oe,py:J,pz:re}=z,q=n.eql(n.mul(V,re),n.mul(oe,$)),K=n.eql(n.mul(Q,re),n.mul(J,$));return q&&K}negate(){return new x(this.px,n.neg(this.py),this.pz)}double(){let{a:z,b:V}=t,Q=n.mul(V,eD),{px:$,py:oe,pz:J}=this,re=n.ZERO,q=n.ZERO,K=n.ZERO,U=n.mul($,$),T=n.mul(oe,oe),k=n.mul(J,J),F=n.mul($,oe);return F=n.add(F,F),K=n.mul($,J),K=n.add(K,K),re=n.mul(z,K),q=n.mul(Q,k),q=n.add(re,q),re=n.sub(T,q),q=n.add(T,q),q=n.mul(re,q),re=n.mul(F,re),K=n.mul(Q,K),k=n.mul(z,k),F=n.sub(U,k),F=n.mul(z,F),F=n.add(F,K),K=n.add(U,U),U=n.add(K,U),U=n.add(U,k),U=n.mul(U,F),q=n.add(q,U),k=n.mul(oe,J),k=n.add(k,k),U=n.mul(k,F),re=n.sub(re,U),K=n.mul(k,T),K=n.add(K,K),K=n.add(K,K),new x(re,q,K)}add(z){g(z);let{px:V,py:Q,pz:$}=this,{px:oe,py:J,pz:re}=z,q=n.ZERO,K=n.ZERO,U=n.ZERO,T=t.a,k=n.mul(t.b,eD),F=n.mul(V,oe),N=n.mul(Q,J),B=n.mul($,re),H=n.add(V,Q),W=n.add(oe,J);H=n.mul(H,W),W=n.add(F,N),H=n.sub(H,W),W=n.add(V,$);let G=n.add(oe,re);return W=n.mul(W,G),G=n.add(F,B),W=n.sub(W,G),G=n.add(Q,$),q=n.add(J,re),G=n.mul(G,q),q=n.add(N,B),G=n.sub(G,q),U=n.mul(T,W),q=n.mul(k,B),U=n.add(q,U),q=n.sub(N,U),U=n.add(N,U),K=n.mul(q,U),N=n.add(F,F),N=n.add(N,F),B=n.mul(T,B),W=n.mul(k,W),N=n.add(N,B),B=n.sub(F,B),B=n.mul(T,B),W=n.add(W,B),F=n.mul(N,W),K=n.add(K,F),F=n.mul(G,W),q=n.mul(H,q),q=n.sub(q,F),F=n.mul(H,N),U=n.mul(G,U),U=n.add(U,F),new x(q,K,U)}subtract(z){return this.add(z.negate())}is0(){return this.equals(x.ZERO)}wNAF(z){return M.wNAFCached(this,z,x.normalizeZ)}multiplyUnsafe(z){let{endo:V,n:Q}=t;q2(\"scalar\",z,Xy,Q);let $=x.ZERO;if(z===Xy)return $;if(this.is0()||z===ji)return this;if(!V||M.hasPrecomputes(this))return M.wNAFCachedUnsafe(this,z,x.normalizeZ);let{k1neg:oe,k1:J,k2neg:re,k2:q}=V.splitScalar(z),K=$,U=$,T=this;for(;J>Xy||q>Xy;)J&ji&&(K=K.add(T)),q&ji&&(U=U.add(T)),T=T.double(),J>>=ji,q>>=ji;return oe&&(K=K.negate()),re&&(U=U.negate()),U=new x(n.mul(U.px,V.beta),U.py,U.pz),K.add(U)}multiply(z){let{endo:V,n:Q}=t;q2(\"scalar\",z,ji,Q);let $,oe;if(V){let{k1neg:J,k1:re,k2neg:q,k2:K}=V.splitScalar(z),{p:U,f:T}=this.wNAF(re),{p:k,f:F}=this.wNAF(K);U=M.constTimeNegate(J,U),k=M.constTimeNegate(q,k),k=new x(n.mul(k.px,V.beta),k.py,k.pz),$=U.add(k),oe=T.add(F)}else{let{p:J,f:re}=this.wNAF(z);$=J,oe=re}return x.normalizeZ([$,oe])[0]}multiplyAndAddUnsafe(z,V,Q){let $=x.BASE,oe=(re,q)=>q===Xy||q===ji||!re.equals($)?re.multiplyUnsafe(q):re.multiply(q),J=oe(this,V).add(oe(z,Q));return J.is0()?void 0:J}toAffine(z){return y(this,z)}isTorsionFree(){let{h:z,isTorsionFree:V}=t;if(z===ji)return!0;if(V)return V(x,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:z,clearCofactor:V}=t;return z===ji?this:V?V(x,this):this.multiplyUnsafe(t.h)}toRawBytes(z=!0){return c8(\"isCompressed\",z),this.assertValidity(),o(x,this,z)}toHex(z=!0){return c8(\"isCompressed\",z),u8(this.toRawBytes(z))}}x.BASE=new x(t.Gx,t.Gy,n.ONE),x.ZERO=new x(n.ZERO,n.ONE,n.ZERO);let{endo:R,nBitLength:S}=t,M=h6e(x,R?Math.ceil(S/2):S);return{CURVE:t,ProjectivePoint:x,normPrivateKeyToScalar:h,weierstrassEquation:a,isWithinCurveOrder:p}}function dyt(e){let t=pse(e);return K2(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}function b6e(e){let t=dyt(e),{Fp:n,n:r,nByteLength:o,nBitLength:i}=t,a=n.BYTES+1,c=2*n.BYTES+1;function u(k){return sc(k,r)}function d(k){return DV(k,r)}let{ProjectivePoint:p,normPrivateKeyToScalar:h,weierstrassEquation:g,isWithinCurveOrder:y}=lyt({...t,toBytes(k,F,N){let B=F.toAffine(),H=n.toBytes(B.x),W=Mf;return c8(\"isCompressed\",N),N?W(Uint8Array.from([F.hasEvenY()?2:3]),H):W(Uint8Array.from([4]),H,n.toBytes(B.y))},fromBytes(k){let F=k.length,N=k[0],B=k.subarray(1);if(F===a&&(N===2||N===3)){let H=Yp(B);if(!zT(H,ji,n.ORDER))throw new Error(\"Point is not on curve\");let W=g(H),G;try{G=n.sqrt(W)}catch(te){let ne=te instanceof Error?\": \"+te.message:\"\";throw new Error(\"Point is not on curve\"+ne)}let O=(G&ji)===ji;return(N&1)===1!==O&&(G=n.neg(G)),{x:H,y:G}}else if(F===c&&N===4){let H=n.fromBytes(B.subarray(0,n.BYTES)),W=n.fromBytes(B.subarray(n.BYTES,2*n.BYTES));return{x:H,y:W}}else{let H=a,W=c;throw new Error(\"invalid Point, expected length of \"+H+\", or uncompressed \"+W+\", got \"+F)}}});function v(k){let F=r>>ji;return k>F}function x(k){return v(k)?u(-k):k}let R=(k,F,N)=>Yp(k.slice(F,N));class S{constructor(F,N,B){q2(\"r\",F,ji,r),q2(\"s\",N,ji,r),this.r=F,this.s=N,B!=null&&(this.recovery=B),Object.freeze(this)}static fromCompact(F){let N=o;return F=Lc(\"compactSignature\",F,N*2),new S(R(F,0,N),R(F,N,2*N))}static fromDER(F){let{r:N,s:B}=Q2.toSig(Lc(\"DER\",F));return new S(N,B)}assertValidity(){}addRecoveryBit(F){return new S(this.r,this.s,F)}recoverPublicKey(F){let{r:N,s:B,recovery:H}=this,W=$(Lc(\"msgHash\",F));if(H==null||![0,1,2,3].includes(H))throw new Error(\"recovery id invalid\");let G=H===2||H===3?N+t.n:N;if(G>=n.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let O=(H&1)===0?\"02\":\"03\",j=p.fromHex(O+hse(G,n.BYTES)),te=d(G),ne=u(-W*te),ae=u(B*te),pe=p.BASE.multiplyAndAddUnsafe(j,ne,ae);if(!pe)throw new Error(\"point at infinify\");return pe.assertValidity(),pe}hasHighS(){return v(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,u(-this.s),this.recovery):this}toDERRawBytes(){return jM(this.toDERHex())}toDERHex(){return Q2.hexFromSig(this)}toCompactRawBytes(){return jM(this.toCompactHex())}toCompactHex(){let F=o;return hse(this.r,F)+hse(this.s,F)}}let M={isValidPrivateKey(k){try{return h(k),!0}catch{return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{let k=sse(t.n);return u6e(t.randomBytes(k),t.n)},precompute(k=8,F=p.BASE){return F._setWindowSize(k),F.multiply(BigInt(3)),F}};function P(k,F=!0){return p.fromPrivateKey(k).toRawBytes(F)}function z(k){if(typeof k==\"bigint\")return!1;if(k instanceof p)return!0;let N=Lc(\"key\",k).length,B=n.BYTES,H=B+1,W=2*B+1;if(!(t.allowedPrivateKeyLengths||o===H))return N===H||N===W}function V(k,F,N=!0){if(z(k)===!0)throw new Error(\"first arg must be private key\");if(z(F)===!1)throw new Error(\"second arg must be public key\");return p.fromHex(F).multiply(h(k)).toRawBytes(N)}let Q=t.bits2int||function(k){if(k.length>8192)throw new Error(\"input is too large\");let F=Yp(k),N=k.length*8-i;return N>0?F>>BigInt(N):F},$=t.bits2int_modN||function(k){return u(Q(k))},oe=jT(i);function J(k){return q2(\"num < 2^\"+i,k,Xy,oe),$b(k,o)}function re(k,F,N=q){if([\"recovered\",\"canonical\"].some(ve=>ve in N))throw new Error(\"sign() legacy options not supported\");let{hash:B,randomBytes:H}=t,{lowS:W,prehash:G,extraEntropy:O}=N;W==null&&(W=!0),k=Lc(\"msgHash\",k),y6e(N),G&&(k=Lc(\"prehashed msgHash\",B(k)));let j=$(k),te=h(F),ne=[J(te),J(j)];if(O!=null&&O!==!1){let ve=O===!0?H(n.BYTES):O;ne.push(Lc(\"extraEntropy\",ve))}let ae=Mf(...ne),pe=j;function ye(ve){let xe=Q(ve);if(!y(xe))return;let De=d(xe),Ge=p.BASE.multiply(xe).toAffine(),gt=u(Ge.x);if(gt===Xy)return;let Ye=u(De*u(pe+gt*te));if(Ye===Xy)return;let lt=(Ge.x===gt?0:2)|Number(Ge.y&ji),At=Ye;return W&&v(Ye)&&(At=x(Ye),lt^=1),new S(gt,At,lt)}return{seed:ae,k2sig:ye}}let q={lowS:t.lowS,prehash:!1},K={lowS:t.lowS,prehash:!1};function U(k,F,N=q){let{seed:B,k2sig:H}=re(k,F,N),W=t;return $3e(W.hash.outputLen,W.nByteLength,W.hmac)(B,H)}p.BASE._setWindowSize(8);function T(k,F,N,B=K){let H=k;F=Lc(\"msgHash\",F),N=Lc(\"publicKey\",N);let{lowS:W,prehash:G,format:O}=B;if(y6e(B),\"strict\"in B)throw new Error(\"options.strict was renamed to lowS\");if(O!==void 0&&O!==\"compact\"&&O!==\"der\")throw new Error(\"format must be compact or der\");let j=typeof H==\"string\"||s8(H),te=!j&&!O&&typeof H==\"object\"&&H!==null&&typeof H.r==\"bigint\"&&typeof H.s==\"bigint\";if(!j&&!te)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let ne,ae;try{if(te&&(ne=new S(H.r,H.s)),j){try{O!==\"compact\"&&(ne=S.fromDER(H))}catch(lt){if(!(lt instanceof Q2.Err))throw lt}!ne&&O!==\"der\"&&(ne=S.fromCompact(H))}ae=p.fromHex(N)}catch{return!1}if(!ne||W&&ne.hasHighS())return!1;G&&(F=t.hash(F));let{r:pe,s:ye}=ne,ve=$(F),xe=d(ye),De=u(ve*xe),Ge=u(pe*xe),gt=p.BASE.multiplyAndAddUnsafe(ae,De,Ge)?.toAffine();return gt?u(gt.x)===pe:!1}return{CURVE:t,getPublicKey:P,getSharedSecret:V,sign:U,verify:T,ProjectivePoint:p,Signature:S,utils:M}}function fyt(e,t){let n=e.ORDER,r=Xy;for(let v=n-ji;v%m_===Xy;v/=m_)r+=ji;let o=r,i=m_<<o-ji-ji,a=i*m_,c=(n-ji)/a,u=(c-ji)/m_,d=a-ji,p=i,h=e.pow(t,c),g=e.pow(t,(c+ji)/m_),y=(v,x)=>{let R=h,S=e.pow(x,d),M=e.sqr(S);M=e.mul(M,x);let P=e.mul(v,M);P=e.pow(P,u),P=e.mul(P,S),S=e.mul(P,x),M=e.mul(P,v);let z=e.mul(M,S);P=e.pow(z,p);let V=e.eql(P,e.ONE);S=e.mul(M,g),P=e.mul(z,R),M=e.cmov(S,M,V),z=e.cmov(P,z,V);for(let Q=o;Q>ji;Q--){let $=Q-m_;$=m_<<$-ji;let oe=e.pow(z,$),J=e.eql(oe,e.ONE);S=e.mul(M,R),R=e.mul(R,R),oe=e.mul(z,R),M=e.cmov(S,M,J),z=e.cmov(oe,z,J)}return{isValid:V,value:M}};if(e.ORDER%gse===eD){let v=(e.ORDER-eD)/gse,x=e.sqrt(e.neg(t));y=(R,S)=>{let M=e.sqr(S),P=e.mul(R,S);M=e.mul(M,P);let z=e.pow(M,v);z=e.mul(z,P);let V=e.mul(z,x),Q=e.mul(e.sqr(z),S),$=e.eql(Q,R),oe=e.cmov(V,z,$);return{isValid:$,value:oe}}}return y}function v6e(e,t){if(LV(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let n=fyt(e,t.Z);if(!e.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return r=>{let o,i,a,c,u,d,p,h;o=e.sqr(r),o=e.mul(o,t.Z),i=e.sqr(o),i=e.add(i,o),a=e.add(i,e.ONE),a=e.mul(a,t.B),c=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),c=e.mul(c,t.A),i=e.sqr(a),d=e.sqr(c),u=e.mul(d,t.A),i=e.add(i,u),i=e.mul(i,a),d=e.mul(d,c),u=e.mul(d,t.B),i=e.add(i,u),p=e.mul(o,a);let{isValid:g,value:y}=n(i,d);h=e.mul(o,r),h=e.mul(h,y),p=e.cmov(p,a,g),h=e.cmov(h,y,g);let v=e.isOdd(r)===e.isOdd(h);h=e.cmov(e.neg(h),h,v);let x=x8(e,[c],!0)[0];return p=e.mul(p,x),{x:p,y:h}}}var mse,Q2,Xy,ji,m_,eD,gse,yse=Z(()=>{f();g6e();$M();l8();mse=class extends Error{constructor(t=\"\"){super(t)}},Q2={Err:mse,_tlv:{encode:(e,t)=>{let{Err:n}=Q2;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length&1)throw new n(\"tlv.encode: unpadded data\");let r=t.length/2,o=zM(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");let i=r>127?zM(o.length/2|128):\"\";return zM(e)+i+o+t},decode(e,t){let{Err:n}=Q2,r=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[r++]!==e)throw new n(\"tlv.decode: wrong tlv\");let o=t[r++],i=!!(o&128),a=0;if(!i)a=o;else{let u=o&127;if(!u)throw new n(\"tlv.decode(long): indefinite length not supported\");if(u>4)throw new n(\"tlv.decode(long): byte length is too big\");let d=t.subarray(r,r+u);if(d.length!==u)throw new n(\"tlv.decode: length bytes not complete\");if(d[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(let p of d)a=a<<8|p;if(r+=u,a<128)throw new n(\"tlv.decode(long): not minimal encoding\")}let c=t.subarray(r,r+a);if(c.length!==a)throw new n(\"tlv.decode: wrong value length\");return{v:c,l:t.subarray(r+a)}}},_int:{encode(e){let{Err:t}=Q2;if(e<Xy)throw new t(\"integer: negative integers are not allowed\");let n=zM(e);if(Number.parseInt(n[0],16)&8&&(n=\"00\"+n),n.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(e){let{Err:t}=Q2;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return Yp(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=Q2,o=Lc(\"signature\",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:c,l:u}=r.decode(2,i),{v:d,l:p}=r.decode(2,u);if(p.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:t,_int:n}=Q2,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}};Xy=BigInt(0),ji=BigInt(1),m_=BigInt(2),eD=BigInt(3),gse=BigInt(4)});function pyt(e){return{hash:e,hmac:(t,...n)=>JM(e,t,Bu(...n)),randomBytes:By}}function w6e(e,t){let n=r=>b6e({...e,...pyt(r)});return{...n(t),create:n}}var x6e=Z(()=>{f();ise();I0();yse();});function g_(e,t){if(tD(e),tD(t),e<0||e>=1<<8*t)throw new Error(\"invalid I2OSP input: \"+e);let n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=e&255,e>>>=8;return new Uint8Array(n)}function myt(e,t){let n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function tD(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function gyt(e,t,n,r){G2(e),G2(t),tD(n),t.length>255&&(t=r(Mf(sV(\"H2C-OVERSIZE-DST-\"),t)));let{outputLen:o,blockLen:i}=r,a=Math.ceil(n/o);if(n>65535||a>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let c=Mf(t,g_(t.length,1)),u=g_(0,i),d=g_(n,2),p=new Array(a),h=r(Mf(u,e,d,g_(0,1),c));p[0]=r(Mf(h,g_(1,1),c));for(let y=1;y<=a;y++){let v=[myt(h,p[y-1]),g_(y+1,1),c];p[y]=r(Mf(...v))}return Mf(...p).slice(0,n)}function yyt(e,t,n,r,o){if(G2(e),G2(t),tD(n),t.length>255){let i=Math.ceil(2*r/8);t=o.create({dkLen:i}).update(sV(\"H2C-OVERSIZE-DST-\")).update(t).digest()}if(n>65535||t.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:n}).update(e).update(g_(n,2)).update(t).update(g_(t.length,1)).digest()}function E6e(e,t,n){K2(n,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:r,k:o,m:i,hash:a,expand:c,DST:u}=n;G2(e),tD(t);let d=typeof u==\"string\"?sV(u):u,p=r.toString(2).length,h=Math.ceil((p+o)/8),g=t*i*h,y;if(c===\"xmd\")y=gyt(e,d,g,a);else if(c===\"xof\")y=yyt(e,d,g,o,a);else if(c===\"_internal_pass\")y=e;else throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');let v=new Array(t);for(let x=0;x<t;x++){let R=new Array(i);for(let S=0;S<i;S++){let M=h*(S+x*i),P=y.subarray(M,M+h);R[S]=sc(hyt(P),r)}v[x]=R}return v}function A6e(e,t){let n=t.map(r=>Array.from(r).reverse());return(r,o)=>{let[i,a,c,u]=n.map(h=>h.reduce((g,y)=>e.add(e.mul(g,r),y))),[d,p]=x8(e,[a,u],!0);return r=e.mul(i,d),o=e.mul(o,e.mul(c,p)),{x:r,y:o}}}function _6e(e,t,n){if(typeof t!=\"function\")throw new Error(\"mapToCurve() must be defined\");function r(i){return e.fromAffine(t(i))}function o(i){let a=i.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:n,hashToCurve(i,a){let c=E6e(i,2,{...n,DST:n.DST,...a}),u=r(c[0]),d=r(c[1]);return o(u.add(d))},encodeToCurve(i,a){let c=E6e(i,1,{...n,DST:n.encodeDST,...a});return o(r(c[0]))},mapToCurve(i){if(!Array.isArray(i))throw new Error(\"expected array of bigints\");for(let a of i)if(typeof a!=\"bigint\")throw new Error(\"expected array of bigints\");return o(r(i))}}}var hyt,S6e=Z(()=>{f();$M();l8();hyt=Yp});var N6e={};qa(N6e,{encodeToCurve:()=>Syt,hashToCurve:()=>_yt,schnorr:()=>xyt,secp256k1:()=>$y,secp256k1_hasher:()=>_se});function R6e(e){let t=oD,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=um(p,n,t)*p%t,g=um(h,n,t)*p%t,y=um(g,UV,t)*d%t,v=um(y,o,t)*y%t,x=um(v,i,t)*v%t,R=um(x,c,t)*x%t,S=um(R,u,t)*R%t,M=um(S,c,t)*x%t,P=um(M,n,t)*p%t,z=um(P,a,t)*v%t,V=um(z,r,t)*d%t,Q=um(V,UV,t);if(!y_.eql(y_.sqr(Q),e))throw new Error(\"Cannot find square root\");return Q}function FV(e,...t){let n=C6e[e];if(n===void 0){let r=Uy(Uint8Array.from(e,o=>o.charCodeAt(0)));n=Mf(r,r),C6e[e]=n}return Uy(Mf(n,...t))}function wse(e){let t=$y.utils.normPrivateKeyToScalar(e),n=Ase.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:rD(-t),bytes:Ese(n)}}function I6e(e){q2(\"x\",e,nD,oD);let t=bse(e*e),n=bse(t*e+BigInt(7)),r=R6e(n);r%UV!==xse&&(r=bse(-r));let o=new Ase(e,r,nD);return o.assertValidity(),o}function O6e(...e){return rD(E8(FV(\"BIP0340/challenge\",...e)))}function vyt(e){return wse(e).bytes}function wyt(e,t,n=By(32)){let r=Lc(\"message\",e),{bytes:o,scalar:i}=wse(t),a=Lc(\"auxRand\",n,32),c=vse(i^E8(FV(\"BIP0340/aux\",a))),u=FV(\"BIP0340/nonce\",c,o,r),d=rD(E8(u));if(d===xse)throw new Error(\"sign failed: k is zero\");let{bytes:p,scalar:h}=wse(d),g=O6e(p,o,r),y=new Uint8Array(64);if(y.set(p,0),y.set(vse(rD(h+g*i)),32),!k6e(y,r,o))throw new Error(\"sign: Invalid signature produced\");return y}function k6e(e,t,n){let r=Lc(\"signature\",e,64),o=Lc(\"message\",t),i=Lc(\"publicKey\",n,32);try{let a=I6e(E8(i)),c=E8(r.subarray(0,32));if(!zT(c,nD,oD))return!1;let u=E8(r.subarray(32,64));if(!zT(u,nD,BV))return!1;let d=O6e(vse(c),Ese(a),o),p=byt(a,u,rD(-d));return!(!p||!p.hasEvenY()||p.toAffine().x!==c)}catch{return!1}}var oD,BV,xse,nD,UV,T6e,y_,$y,C6e,Ese,vse,bse,rD,Ase,byt,E8,xyt,Eyt,Ayt,_se,_yt,Syt,iD=Z(()=>{f();mI();I0();x6e();S6e();$M();l8();yse();oD=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),BV=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),xse=BigInt(0),nD=BigInt(1),UV=BigInt(2),T6e=(e,t)=>(e+t/UV)/t;y_=XM(oD,void 0,void 0,{sqrt:R6e}),$y=w6e({a:xse,b:BigInt(7),Fp:y_,n:BV,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=BV,n=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-nD*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),i=n,a=BigInt(\"0x100000000000000000000000000000000\"),c=T6e(i*e,t),u=T6e(-r*e,t),d=sc(e-c*n-u*o,t),p=sc(-c*r-u*i,t),h=d>a,g=p>a;if(h&&(d=t-d),g&&(p=t-p),d>a||p>a)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:h,k1:d,k2neg:g,k2:p}}}},Uy),C6e={};Ese=e=>e.toRawBytes(!0).slice(1),vse=e=>$b(e,32),bse=e=>sc(e,oD),rD=e=>sc(e,BV),Ase=$y.ProjectivePoint,byt=(e,t,n)=>Ase.BASE.multiplyAndAddUnsafe(e,t,n);E8=Yp;xyt={getPublicKey:vyt,sign:wyt,verify:k6e,utils:{randomPrivateKey:$y.utils.randomPrivateKey,lift_x:I6e,pointToBytes:Ese,numberToBytesBE:$b,bytesToNumberBE:Yp,taggedHash:FV,mod:sc}},Eyt=A6e(y_,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map(e=>e.map(t=>BigInt(t)))),Ayt=v6e(y_,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:y_.create(BigInt(\"-11\"))}),_se=_6e($y.ProjectivePoint,e=>{let{x:t,y:n}=Ayt(y_.create(e[0]));return Eyt(t,n)},{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:y_.ORDER,m:1,k:128,expand:\"xmd\",hash:Uy}),_yt=_se.hashToCurve,Syt=_se.encodeToCurve});async function M6e({hash:e,signature:t}){let n=Xr(e)?e:Zn(e),{secp256k1:r}=await Promise.resolve().then(()=>(iD(),N6e));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:d,s:p,v:h,yParity:g}=t,y=Number(g??h),v=P6e(y);return new r.Signature(qn(d),qn(p)).addRecoveryBit(v)}let a=Xr(t)?t:Zn(t);if(qr(a)!==65)throw new Error(\"invalid signature length\");let c=So(`0x${a.slice(130)}`),u=P6e(c);return r.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(u)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function P6e(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error(\"Invalid yParityOrV value\")}var D6e=Z(()=>{f();S0();$h();ks();xn()});async function HV({hash:e,signature:t}){return t6e(await M6e({hash:e,signature:t}))}var Sse=Z(()=>{f();n6e();D6e()});function L6e(e){let{chainId:t,nonce:n,to:r}=e,o=e.contractAddress??e.address,i=lr(ls([\"0x05\",My([t?Ne(t):\"0x\",o,n?Ne(n):\"0x\"])]));return r===\"bytes\"?ci(i):i}var B6e=Z(()=>{f();Mc();Pc();xn();Dj();rm()});async function A8(e){let{authorization:t,signature:n}=e;return HV({hash:L6e(t),signature:n??t})}var zV=Z(()=>{f();Sse();B6e()});var jV,U6e=Z(()=>{f();Uj();Y3();tr();C0();jV=class extends Re{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:p,to:h,value:g}){let y=E2({from:n?.address,to:h,value:typeof g<\"u\"&&`${cI(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${ds(c)} gwei`,maxFeePerGas:typeof u<\"u\"&&`${ds(u)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${ds(d)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",y].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}});function F6e(e,{docsPath:t,...n}){let r=(()=>{let o=GA(e,n);return o instanceof k0?e:o})();return new jV(r,{docsPath:t,...n})}var H6e=Z(()=>{f();U6e();UA();EM()});var WV,b_,VV,GV=Z(()=>{f();Y3();tr();WV=class extends Re{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},b_=class extends Re{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},VV=class extends Re{constructor({maxPriorityFeePerGas:t}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${ds(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}});var _8,Tse=Z(()=>{f();tr();_8=class extends Re{constructor({blockHash:t,blockNumber:n}){let r=\"Block\";t&&(r=`Block at hash \"${t}\"`),n&&(r=`Block at number \"${n}\"`),super(`${r} could not be found.`,{name:\"BlockNotFoundError\"})}}});async function Ad(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",includeTransactions:o}={}){let i=o??!1,a=n!==void 0?Ne(n):void 0,c=null;if(t?c=await e.request({method:\"eth_getBlockByHash\",params:[t,i]},{dedupe:!0}):c=await e.request({method:\"eth_getBlockByNumber\",params:[a||r,i]},{dedupe:!!a}),!c)throw new _8({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||D9)(c)}var KT=Z(()=>{f();Tse();xn();Nj()});async function S8(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}var qV=Z(()=>{f()});async function z6e(e,t){return Cse(e,t)}async function Cse(e,t){let{block:n,chain:r=e.chain,request:o}=t||{};try{let i=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(typeof i==\"function\"){let c=n||await kt(e,Ad,\"getBlock\")({}),u=await i({block:c,client:e,request:o});if(u===null)throw new Error;return u}if(typeof i<\"u\")return i;let a=await e.request({method:\"eth_maxPriorityFeePerGas\"});return qn(a)}catch{let[i,a]=await Promise.all([n?Promise.resolve(n):kt(e,Ad,\"getBlock\")({}),kt(e,S8,\"getGasPrice\")({})]);if(typeof i.baseFeePerGas!=\"bigint\")throw new b_;let c=a-i.baseFeePerGas;return c<0n?0n:c}}var Rse=Z(()=>{f();GV();ks();Do();KT();qV()});async function KV(e,t){return YV(e,t)}async function YV(e,t){let{block:n,chain:r=e.chain,request:o,type:i=\"eip1559\"}=t||{},a=await(async()=>typeof r?.fees?.baseFeeMultiplier==\"function\"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):r?.fees?.baseFeeMultiplier??1.2)();if(a<1)throw new WV;let u=10**(a.toString().split(\".\")[1]?.length??0),d=g=>g*BigInt(Math.ceil(a*u))/BigInt(u),p=n||await kt(e,Ad,\"getBlock\")({});if(typeof r?.fees?.estimateFeesPerGas==\"function\"){let g=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:d,request:o,type:i});if(g!==null)return g}if(i===\"eip1559\"){if(typeof p.baseFeePerGas!=\"bigint\")throw new b_;let g=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await Cse(e,{block:p,chain:r,request:o}),y=d(p.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??y+g,maxPriorityFeePerGas:g}}return{gasPrice:o?.gasPrice??d(await kt(e,S8,\"getGasPrice\")({}))}}var ZV=Z(()=>{f();GV();Do();Rse();KT();qV()});async function v_(e,{address:t,blockTag:n=\"latest\",blockNumber:r}){let o=await e.request({method:\"eth_getTransactionCount\",params:[t,typeof r==\"bigint\"?Ne(r):n]},{dedupe:!!r});return So(o)}var aD=Z(()=>{f();ks();xn()});async function _d(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return So(t)}var J2=Z(()=>{f();ks()});async function w_(e,t){let{account:n=e.account,blobs:r,chain:o,gas:i,kzg:a,nonce:c,nonceManager:u,parameters:d=Ise,type:p}=t,h=n&&jn(n),g={...t,...h?{from:h?.address}:{}},y;async function v(){return y||(y=await kt(e,Ad,\"getBlock\")({blockTag:\"latest\"}),y)}let x;async function R(){return x||(o?o.id:typeof t.chainId<\"u\"?t.chainId:(x=await kt(e,_d,\"getChainId\")({}),x))}if(d.includes(\"nonce\")&&typeof c>\"u\"&&h)if(u){let S=await R();g.nonce=await u.consume({address:h.address,chainId:S,client:e})}else g.nonce=await kt(e,v_,\"getTransactionCount\")({address:h.address,blockTag:\"pending\"});if((d.includes(\"blobVersionedHashes\")||d.includes(\"sidecars\"))&&r&&a){let S=fI({blobs:r,kzg:a});if(d.includes(\"blobVersionedHashes\")){let M=rW({commitments:S,to:\"hex\"});g.blobVersionedHashes=M}if(d.includes(\"sidecars\")){let M=pI({blobs:r,commitments:S,kzg:a}),P=sW({blobs:r,commitments:S,proofs:M,to:\"hex\"});g.sidecars=P}}if(d.includes(\"chainId\")&&(g.chainId=await R()),(d.includes(\"fees\")||d.includes(\"type\"))&&typeof p>\"u\")try{g.type=fW(g)}catch{let S=j6e.get(e.uid);typeof S>\"u\"&&(S=typeof(await v())?.baseFeePerGas==\"bigint\",j6e.set(e.uid,S)),g.type=S?\"eip1559\":\"legacy\"}if(d.includes(\"fees\"))if(g.type!==\"legacy\"&&g.type!==\"eip2930\"){if(typeof g.maxFeePerGas>\"u\"||typeof g.maxPriorityFeePerGas>\"u\"){let S=await v(),{maxFeePerGas:M,maxPriorityFeePerGas:P}=await YV(e,{block:S,chain:o,request:g});if(typeof t.maxPriorityFeePerGas>\"u\"&&t.maxFeePerGas&&t.maxFeePerGas<P)throw new VV({maxPriorityFeePerGas:P});g.maxPriorityFeePerGas=P,g.maxFeePerGas=M}}else{if(typeof t.maxFeePerGas<\"u\"||typeof t.maxPriorityFeePerGas<\"u\")throw new b_;if(typeof t.gasPrice>\"u\"){let S=await v(),{gasPrice:M}=await YV(e,{block:S,chain:o,request:g,type:\"legacy\"});g.gasPrice=M}}return d.includes(\"gas\")&&typeof i>\"u\"&&(g.gas=await kt(e,T8,\"estimateGas\")({...g,account:h&&{address:h.address,type:\"json-rpc\"}})),zp(g),delete g.parameters,g}var Ise,j6e,sD=Z(()=>{f();ka();ZV();QV();KT();aD();GV();Gj();qj();Rie();Oie();Do();KA();Mie();J2();Ise=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],j6e=new Map});async function YT(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\"}){let o=typeof n==\"bigint\"?Ne(n):void 0,i=await e.request({method:\"eth_getBalance\",params:[t,o||r]});return BigInt(i)}var JV=Z(()=>{f();xn()});async function T8(e,t){let{account:n=e.account}=t,r=n?jn(n):void 0;try{let q=function(U){let{block:T,request:k,rpcStateOverride:F}=U;return e.request({method:\"eth_estimateGas\",params:F?[k,T??e.experimental_blockTag??\"latest\",F]:T?[k,T]:[k]})},{accessList:o,authorizationList:i,blobs:a,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:p,gas:h,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:R,value:S,stateOverride:M,...P}=await w_(e,{...t,parameters:r?.type===\"local\"?void 0:[\"blobVersionedHashes\"]}),V=(typeof u==\"bigint\"?Ne(u):void 0)||d,Q=d_(M),$=await(async()=>{if(P.to)return P.to;if(i&&i.length>0)return await A8({authorization:i[0]}).catch(()=>{throw new Re(\"`to` is required. Could not infer from `authorizationList`\")})})();zp(t);let oe=e.chain?.formatters?.transactionRequest?.format,re=(oe||T0)({...qA(P,{format:oe}),from:r?.address,accessList:o,authorizationList:i,blobs:a,blobVersionedHashes:c,data:p,gas:h,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:R,to:$,value:S}),K=BigInt(await q({block:V,request:re,rpcStateOverride:Q}));if(i){let U=await YT(e,{address:re.from}),T=await Promise.all(i.map(async k=>{let{address:F}=k,N=await q({block:V,request:{authorizationList:void 0,data:p,from:r?.address,to:F,value:Ne(U)},rpcStateOverride:Q}).catch(()=>100000n);return 2n*BigInt(N)}));K+=T.reduce((k,F)=>k+F,0n)}return K}catch(o){throw F6e(o,{...t,account:r,chain:e.chain})}}var QV=Z(()=>{f();ka();tr();zV();xn();H6e();AM();K3();ZM();KA();sD();JV()});async function W6e(e,t){let{abi:n,address:r,args:o,functionName:i,dataSuffix:a,...c}=t,u=vn({abi:n,args:o,functionName:i});try{return await kt(e,T8,\"estimateGas\")({data:`${u}${a?a.replace(\"0x\",\"\"):\"\"}`,to:r,...c})}catch(d){let p=c.account?jn(c.account):void 0;throw am(d,{abi:n,address:r,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:i,sender:p?.address})}}var V6e=Z(()=>{f();ka();Pf();HT();Do();QV()});async function G6e(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}var q6e=Z(()=>{f()});function K6e(e){let t=(o,i)=>({clear:()=>i.delete(o),get:()=>i.get(o),set:a=>i.set(o,a)}),n=t(e,Tyt),r=t(e,Cyt);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function Y6e(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let r=K6e(t),o=r.response.get();if(o&&n>0&&Date.now()-o.created.getTime()<n)return o.data;let i=r.promise.get();i||(i=e(),r.promise.set(i));try{let a=await i;return r.response.set({created:new Date,data:a}),a}finally{r.promise.clear()}}var Tyt,Cyt,Z6e=Z(()=>{f();Tyt=new Map,Cyt=new Map});async function rv(e,{cacheTime:t=e.cacheTime}={}){let n=await Y6e(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:Ryt(e.uid),cacheTime:t});return BigInt(n)}var Ryt,C8=Z(()=>{f();Z6e();Ryt=e=>`blockNumber.${e}`});async function Q6e(e,{blockHash:t,blockNumber:n,blockTag:r=\"latest\"}={}){let o=n!==void 0?Ne(n):void 0,i;return t?i=await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):i=await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[o||r]},{dedupe:!!o}),So(i)}var J6e=Z(()=>{f();ks();xn()});async function lm(e,{address:t,blockNumber:n,blockTag:r=\"latest\"}){let o=n!==void 0?Ne(n):void 0,i=await e.request({method:\"eth_getCode\",params:[t,o||r]},{dedupe:!!o});if(i!==\"0x\")return i}var cD=Z(()=>{f();xn()});function X2(e){let{abi:t,data:n,strict:r,topics:o}=e,i=r??!0,[a,...c]=o;if(!a)throw new xW({docsPath:X6e});let u=t.find(x=>x.type===\"event\"&&a===zA(hu(x)));if(!(u&&\"name\"in u)||u.type!==\"event\")throw new II(a,{docsPath:X6e});let{name:d,inputs:p}=u,h=p?.some(x=>!(\"name\"in x&&x.name)),g=h?[]:{},y=p.map((x,R)=>[x,R]).filter(([x])=>\"indexed\"in x&&x.indexed);for(let x=0;x<y.length;x++){let[R,S]=y[x],M=c[x];if(!M)throw new Wb({abiItem:u,param:R});g[h?S:R.name||S]=Iyt({param:R,value:M})}let v=p.filter(x=>!(\"indexed\"in x&&x.indexed));if(v.length>0){if(n&&n!==\"0x\")try{let x=Dc(v,n);if(x)if(h)for(let R=0;R<p.length;R++)g[R]=g[R]??x.shift();else for(let R=0;R<v.length;R++)g[v[R].name]=x[R]}catch(x){if(i)throw x instanceof TI||x instanceof aI?new jy({abiItem:u,data:n,params:v,size:qr(n)}):x}else if(i)throw new jy({abiItem:u,data:\"0x\",params:v,size:0})}return{eventName:d,args:Object.values(g).length>0?g:void 0}}function Iyt({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Dc([e],t)||[])[0]}var X6e,uD=Z(()=>{f();fs();yie();$h();bM();aT();R2();X6e=\"/docs/contract/decodeEventLog\"});function R8(e){let{abi:t,args:n,logs:r,strict:o=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map(a=>{try{let c=t.find(d=>d.type===\"event\"&&a.topics[0]===zA(d));if(!c)return null;let u=X2({...a,abi:[c],strict:o});return i&&!i.includes(u.eventName)||!Oyt({args:u.args,inputs:c.inputs,matchArgs:n})?null:{...u,...a}}catch(c){let u,d;if(c instanceof II)return null;if(c instanceof jy||c instanceof Wb){if(o)return null;u=c.abiItem.name,d=c.abiItem.inputs?.some(p=>!(\"name\"in p&&p.name))}return{...a,args:d?[]:{},eventName:u}}}).filter(Boolean)}function Oyt(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function o(i,a,c){try{return i.type===\"address\"?Pl(a,c):i.type===\"string\"||i.type===\"bytes\"?lr(em(a))===c:a===c}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((i,a)=>{if(i==null)return!0;let c=n[a];return c?(Array.isArray(i)?i:[i]).some(d=>o(c,d,t[a])):!1}):typeof t==\"object\"&&!Array.isArray(t)&&typeof r==\"object\"&&!Array.isArray(r)?Object.entries(r).every(([i,a])=>{if(a==null)return!0;let c=n.find(d=>d.name===i);return c?(Array.isArray(a)?a:[a]).some(d=>o(c,d,t[i])):!1}):!1}var XV=Z(()=>{f();fs();f_();Pc();rm();bM();uD()});async function I8(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:i,events:a,args:c,strict:u}={}){let d=u??!1,p=a??(i?[i]:void 0),h=[];p&&(h=[p.flatMap(x=>nv({abi:[x],eventName:x.name,args:a?void 0:c}))],i&&(h=h[0]));let g;n?g=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:h,blockHash:n}]}):g=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:h,fromBlock:typeof r==\"bigint\"?Ne(r):r,toBlock:typeof o==\"bigint\"?Ne(o):o}]});let y=g.map(v=>Du(v));return p?R8({abi:p,args:c,logs:y,strict:d}):y}var $V=Z(()=>{f();w8();XV();xn();x2()});async function eG(e,t){let{abi:n,address:r,args:o,blockHash:i,eventName:a,fromBlock:c,toBlock:u,strict:d}=t,p=a?Fp({abi:n,name:a}):void 0,h=p?void 0:n.filter(g=>g.type===\"event\");return kt(e,I8,\"getLogs\")({address:r,args:o,blockHash:i,event:p,events:h,fromBlock:c,toBlock:u,strict:d})}var Ose=Z(()=>{f();jA();Do();$V()});var tG,$6e=Z(()=>{f();tr();tG=class extends Re{constructor({address:t}){super(`No EIP-712 domain found on contract \"${t}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${t}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"],name:\"Eip712DomainNotFoundError\"})}}});async function eCe(e,t){let{address:n,factory:r,factoryData:o}=t;try{let[i,a,c,u,d,p,h]=await kt(e,ui,\"readContract\")({abi:kyt,address:n,functionName:\"eip712Domain\",factory:r,factoryData:o});return{domain:{name:a,version:c,chainId:Number(u),verifyingContract:d,salt:p},extensions:h,fields:i}}catch(i){let a=i;throw a.name===\"ContractFunctionExecutionError\"&&a.cause.name===\"ContractFunctionZeroDataError\"?new tG({address:n}):a}}var kyt,tCe=Z(()=>{f();$6e();Do();z0();kyt=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}]});function nCe(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(n=>BigInt(n)))}}var rCe=Z(()=>{f()});async function oCe(e,{blockCount:t,blockNumber:n,blockTag:r=\"latest\",rewardPercentiles:o}){let i=typeof n==\"bigint\"?Ne(n):void 0,a=await e.request({method:\"eth_feeHistory\",params:[Ne(t),i||r,o]},{dedupe:!!i});return nCe(a)}var iCe=Z(()=>{f();xn();rCe()});async function x_(e,{filter:t}){let n=\"strict\"in t&&t.strict,r=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(typeof r[0]==\"string\")return r;let o=r.map(i=>Du(i));return!(\"abi\"in t)||!t.abi?o:R8({abi:t.abi,logs:o,strict:n})}var lD=Z(()=>{f();XV();x2()});async function aCe(e,{filter:t}){let n=t.strict??!1,o=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(i=>Du(i));return t.abi?R8({abi:t.abi,logs:o,strict:n}):o}var sCe=Z(()=>{f();XV();x2()});function ZT(e,t){if(e.length!==t.length)throw new CI({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(cCe(o,i))}return ls(n)}function cCe(e,t,n=!1){if(e===\"address\"){let a=t;if(!Un(a))throw new Fi({address:a});return Ci(a.toLowerCase(),{size:n?32:null})}if(e===\"string\")return Pu(t);if(e===\"bytes\")return t;if(e===\"bool\")return Ci(G3(t),{size:n?32:1});let r=e.match(UI);if(r){let[a,c,u=\"256\"]=r,d=Number.parseInt(u,10)/8;return Ne(t,{size:n?32:d,signed:c===\"int\"})}let o=e.match(LW);if(o){let[a,c]=o;if(Number.parseInt(c,10)!==(t.length-2)/2)throw new kI({expectedSize:Number.parseInt(c,10),givenSize:(t.length-2)/2});return Ci(t,{dir:\"right\",size:n?32:null})}let i=e.match(U5e);if(i&&Array.isArray(t)){let[a,c]=i,u=[];for(let d=0;d<t.length;d++)u.push(cCe(c,t[d],!0));return u.length===0?\"0x\":ls(u)}throw new TW(e)}var uCe=Z(()=>{f();fs();Fy();Bp();Mc();NA();xn();BW()});async function lCe({address:e,authorization:t,signature:n}){return Pl(nr(e),await A8({authorization:t,signature:n}))}var dCe=Z(()=>{f();zb();f_();zV()});function fCe(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(nG.get(n))return nG.get(n);let r=e().finally(()=>nG.delete(n));return nG.set(n,r),r}var nG,pCe=Z(()=>{f();SI();nG=new N0(8192)});async function dD(e){return new Promise(t=>setTimeout(t,e))}var kse=Z(()=>{f()});function dm(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,i)=>{let a=async({count:c=0}={})=>{let u=async({error:d})=>{let p=typeof t==\"function\"?t({count:c,error:d}):t;p&&await dD(p),a({count:c+1})};try{let d=await e();o(d)}catch(d){if(c<n&&await r({count:c,error:d}))return u({error:d});i(d)}};a()})}var fD=Z(()=>{f();kse()});function hCe(e,t={}){return async(n,r={})=>{let{dedupe:o=!1,methods:i,retryDelay:a=150,retryCount:c=3,uid:u}={...t,...r},{method:d}=n;if(i?.exclude?.includes(d))throw new k2(new Error(\"method not supported\"),{method:d});if(i?.include&&!i.include.includes(d))throw new k2(new Error(\"method not supported\"),{method:d});let p=o?Pu(`${u}.${$r(n)}`):void 0;return fCe(()=>dm(async()=>{try{return await e(n)}catch(h){let g=h;switch(g.code){case dT.code:throw new dT(g);case fT.code:throw new fT(g);case pT.code:throw new pT(g,{method:n.method});case hT.code:throw new hT(g);case Yb.code:throw new Yb(g);case Ky.code:throw new Ky(g);case mT.code:throw new mT(g);case Hp.code:throw new Hp(g);case gT.code:throw new gT(g);case k2.code:throw new k2(g,{method:n.method});case VA.code:throw new VA(g);case yT.code:throw new yT(g);case fo.code:throw new fo(g);case bT.code:throw new bT(g);case vT.code:throw new vT(g);case wT.code:throw new wT(g);case xT.code:throw new xT(g);case Za.code:throw new Za(g);case N2.code:throw new N2(g);case ET.code:throw new ET(g);case AT.code:throw new AT(g);case _T.code:throw new _T(g);case ST.code:throw new ST(g);case TT.code:throw new TT(g);case P2.code:throw new P2(g);case 5e3:throw new fo(g);default:throw h instanceof Re?h:new xM(g)}}},{delay:({count:h,error:g})=>{if(g&&g instanceof B0){let y=g?.headers?.get(\"Retry-After\");if(y?.match(/\\\\d/))return Number.parseInt(y,10)*1e3}return~~(1<<h)*a},retryCount:c,shouldRetry:({error:h})=>Nyt(h)}),{enabled:o,id:p})}}function Nyt(e){return\"code\"in e&&typeof e.code==\"number\"?e.code===-1||e.code===VA.code||e.code===Yb.code:e instanceof B0&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}var mCe=Z(()=>{f();tr();lT();CT();xn();pCe();fD();Ol()});function rG(e,{docsPath:t,...n}){let r=(()=>{let o=GA(e,n);return o instanceof k0?e:o})();return new Wj(r,{docsPath:t,...n})}var Nse=Z(()=>{f();UA();C0();EM()});function Pse(e){let{source:t}=e,n=new Map,r=new N0(8192),o=new Map,i=({address:a,chainId:c})=>`${a}.${c}`;return{async consume({address:a,chainId:c,client:u}){let d=i({address:a,chainId:c}),p=this.get({address:a,chainId:c,client:u});this.increment({address:a,chainId:c});let h=await p;return await t.set({address:a,chainId:c},h),r.set(d,h),h},async increment({address:a,chainId:c}){let u=i({address:a,chainId:c}),d=n.get(u)??0;n.set(u,d+1)},async get({address:a,chainId:c,client:u}){let d=i({address:a,chainId:c}),p=o.get(d);return p||(p=(async()=>{try{let g=await t.get({address:a,chainId:c,client:u}),y=r.get(d)??0;return y>0&&g<=y?y+1:(r.delete(d),g)}finally{this.reset({address:a,chainId:c})}})(),o.set(d,p)),(n.get(d)??0)+await p},reset({address:a,chainId:c}){let u=i({address:a,chainId:c});n.delete(u),o.delete(u)}}}function Pyt(){return{async get(e){let{address:t,client:n}=e;return v_(n,{address:t,blockTag:\"pending\"})},set(){}}}var lxn,gCe=Z(()=>{f();aD();SI();lxn=Pse({source:Pyt()})});function QT(e,{errorInstance:t=new Error(\"timed out\"),timeout:n,signal:r}){return new Promise((o,i)=>{(async()=>{let a;try{let c=new AbortController;n>0&&(a=setTimeout(()=>{r?c.abort():i(t)},n)),o(await e({signal:c?.signal||null}))}catch(c){c?.name===\"AbortError\"&&i(t),i(c)}finally{clearTimeout(a)}})()})}var Mse=Z(()=>{f()});function Myt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var Dse,yCe=Z(()=>{f();Dse=Myt()});function bCe(e,t={}){return{async request(n){let{body:r,fetchFn:o=t.fetchFn??fetch,onRequest:i=t.onRequest,onResponse:a=t.onResponse,timeout:c=t.timeout??1e4}=n,u={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:d,method:p,signal:h}=u;try{let g=await QT(async({signal:v})=>{let x={...u,body:Array.isArray(r)?$r(r.map(P=>({jsonrpc:\"2.0\",id:P.id??Dse.take(),...P}))):$r({jsonrpc:\"2.0\",id:r.id??Dse.take(),...r}),headers:{\"Content-Type\":\"application/json\",...d},method:p||\"POST\",signal:h||(c>0?v:null)},R=new Request(e,x),S=await i?.(R,x)??{...x,url:e};return await o(S.url??e,S)},{errorInstance:new wM({body:r,url:e}),timeout:c,signal:!0});a&&await a(g);let y;if(g.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))y=await g.json();else{y=await g.text();try{y=JSON.parse(y||\"{}\")}catch(v){if(g.ok)throw v;y={error:y}}}if(!g.ok)throw new B0({body:r,details:$r(y.error)||g.statusText,headers:g.headers,status:g.status,url:e});return y}catch(g){throw g instanceof B0||g instanceof wM?g:new B0({body:r,cause:g,url:e})}}}}var vCe=Z(()=>{f();lT();Mse();Ol();yCe()});var wCe,xCe=Z(()=>{f();wCe=`\\u0019Ethereum Signed Message:\\n`});function ECe(e){let t=typeof e==\"string\"?Pu(e):typeof e.raw==\"string\"?e.raw:_o(e.raw),n=Pu(`${wCe}${qr(t)}`);return Ri([n,t])}var ACe=Z(()=>{f();xCe();Mc();$h();xn()});function fm(e,t){return lr(ECe(e),t)}var oG=Z(()=>{f();rm();ACe()});var iG,aG,sG,_Ce=Z(()=>{f();Ol();tr();iG=class extends Re{constructor({domain:t}){super(`Invalid domain \"${$r(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},aG=class extends Re{constructor({primaryType:t,types:n}){super(`Invalid primary type \\\\`${t}\\\\` must be one of \\\\`${JSON.stringify(Object.keys(n))}\\\\`.`,{docsPath:\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\",metaMessages:[\"Check that the primary type is a key in `types`.\"]})}},sG=class extends Re{constructor({type:t}){super(`Struct type \"${t}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}}});function SCe(e){let{domain:t,message:n,primaryType:r,types:o}=e,i=(u,d)=>{let p={...d};for(let h of u){let{name:g,type:y}=h;y===\"address\"&&(p[g]=p[g].toLowerCase())}return p},a=o.EIP712Domain?t?i(o.EIP712Domain,t):{}:{},c=(()=>{if(r!==\"EIP712Domain\")return i(o[r],n)})();return $r({domain:a,message:c,primaryType:r,types:o})}function cG(e){let{domain:t,message:n,primaryType:r,types:o}=e,i=(a,c)=>{for(let u of a){let{name:d,type:p}=u,h=c[d],g=p.match(UI);if(g&&(typeof h==\"number\"||typeof h==\"bigint\")){let[x,R,S]=g;Ne(h,{signed:R===\"int\",size:Number.parseInt(S,10)/8})}if(p===\"address\"&&typeof h==\"string\"&&!Un(h))throw new Fi({address:h});let y=p.match(LW);if(y){let[x,R]=y;if(R&&qr(h)!==Number.parseInt(R,10))throw new kI({expectedSize:Number.parseInt(R,10),givenSize:qr(h)})}let v=o[p];v&&(Dyt(p),i(v,h))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new iG({domain:t});i(o.EIP712Domain,t)}if(r!==\"EIP712Domain\")if(o[r])i(o[r],n);else throw new aG({primaryType:r,types:o})}function uG({domain:e}){return[typeof e?.name==\"string\"&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},(typeof e?.chainId==\"number\"||typeof e?.chainId==\"bigint\")&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}function Dyt(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new sG({type:e})}var Lse=Z(()=>{f();fs();Fy();_Ce();Bp();$h();xn();BW();Ol()});function Lf(e){let{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:uG({domain:t}),...e.types};cG({domain:t,message:n,primaryType:r,types:o});let i=[\"0x1901\"];return t&&i.push(TCe({domain:t,types:o})),r!==\"EIP712Domain\"&&i.push(Bse({data:n,primaryType:r,types:o})),lr(Ri(i))}function TCe({domain:e,types:t}){return Bse({data:e,primaryType:\"EIP712Domain\",types:t})}function Bse({data:e,primaryType:t,types:n}){let r=CCe({data:e,primaryType:t,types:n});return lr(r)}function CCe({data:e,primaryType:t,types:n}){let r=[{type:\"bytes32\"}],o=[Lyt({primaryType:t,types:n})];for(let i of n[t]){let[a,c]=ICe({types:n,name:i.name,type:i.type,value:e[i.name]});r.push(a),o.push(c)}return Hi(r,o)}function Lyt({primaryType:e,types:t}){let n=Zn(Byt({primaryType:e,types:t}));return lr(n)}function Byt({primaryType:e,types:t}){let n=\"\",r=RCe({primaryType:e,types:t});r.delete(e);let o=[e,...Array.from(r).sort()];for(let i of o)n+=`${i}(${t[i].map(({name:a,type:c})=>`${c} ${a}`).join(\",\")})`;return n}function RCe({primaryType:e,types:t},n=new Set){let o=e.match(/^\\\\w*/u)?.[0];if(n.has(o)||t[o]===void 0)return n;n.add(o);for(let i of t[o])RCe({primaryType:i.type,types:t},n);return n}function ICe({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:\"bytes32\"},lr(CCe({data:r,primaryType:n,types:e}))];if(n===\"bytes\")return r=`0x${(r.length%2?\"0\":\"\")+r.slice(2)}`,[{type:\"bytes32\"},lr(r)];if(n===\"string\")return[{type:\"bytes32\"},lr(Zn(r))];if(n.lastIndexOf(\"]\")===n.length-1){let o=n.slice(0,n.lastIndexOf(\"[\")),i=r.map(a=>ICe({name:t,type:o,types:e,value:a}));return[{type:\"bytes32\"},lr(Hi(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:n},r]}var lG=Z(()=>{f();L0();Mc();xn();rm();Lse()});var dG,Use=Z(()=>{f();dG=\"0x6492649264926492649264926492649264926492649264926492649264926492\"});function OCe(e){return nT(e,-32)===dG}var kCe=Z(()=>{f();Use();jb()});var fG,NCe=Z(()=>{f();fG=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});var Uyt,pG,PCe=Z(()=>{f();NCe();Uyt={checksum:new fG(8192)},pG=Uyt.checksum});function JT(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=C2(pTe(e));return n===\"Bytes\"?r:ac(r)}var hG=Z(()=>{f();q9();u_();Fu()});function MCe(e,t={}){let{compressed:n}=t,{prefix:r,x:o,y:i}=e;if(n===!1||typeof o==\"bigint\"&&typeof i==\"bigint\"){if(r!==4)throw new mG({prefix:r,cause:new jse});return}if(n===!0||typeof o==\"bigint\"&&typeof i>\"u\"){if(r!==3&&r!==2)throw new mG({prefix:r,cause:new zse});return}throw new Hse({publicKey:e})}function DCe(e){let t=(()=>{if(KM(e))return LCe(e);if(vTe(e))return Hyt(e);let{prefix:n,x:r,y:o}=e;return typeof r==\"bigint\"&&typeof o==\"bigint\"?{prefix:n??4,x:r,y:o}:{prefix:n,x:r}})();return MCe(t),t}function Hyt(e){return LCe(ac(e))}function LCe(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new Wse({publicKey:e});if(e.length===130){let r=BigInt(Ja(e,0,32)),o=BigInt(Ja(e,32,64));return{prefix:4,x:r,y:o}}if(e.length===132){let r=Number(Ja(e,0,1)),o=BigInt(Ja(e,1,33)),i=BigInt(Ja(e,33,65));return{prefix:r,x:o,y:i}}let t=Number(Ja(e,0,1)),n=BigInt(Ja(e,1,33));return{prefix:t,x:n}}function Vse(e,t={}){MCe(e);let{prefix:n,x:r,y:o}=e,{includePrefix:i=!0}=t;return ps(i?Ko(n,{size:1}):\"0x\",Ko(r,{size:32}),typeof o==\"bigint\"?Ko(o,{size:32}):\"0x\")}var Hse,mG,zse,jse,Wse,Gse=Z(()=>{f();u_();Zp();Fu();GM();Hse=class extends En{constructor({publicKey:t}){super(`Value \\\\`${l_(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},mG=class extends En{constructor({prefix:t,cause:n}){super(`Prefix \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},zse=class extends En{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},jse=class extends En{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},Wse=class extends En{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Qa(m8(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function XT(e,t={}){let{strict:n=!0}=t;if(!zyt.test(e))throw new gG({address:e,cause:new qse});if(n){if(e.toLowerCase()===e)return;if(yG(e)!==e)throw new gG({address:e,cause:new Kse})}}function yG(e){if(pG.has(e))return pG.get(e);XT(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=JT(hTe(t),{as:\"Bytes\"}),r=t.split(\"\");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());let o=`0x${r.join(\"\")}`;return pG.set(e,o),o}function jyt(e,t={}){let{checksum:n=!1}=t;return XT(e),n?yG(e):e}function UCe(e,t={}){let n=JT(`0x${Vse(e).slice(4)}`).substring(26);return jyt(`0x${n}`,t)}function bG(e,t={}){let{strict:n=!0}=t??{};try{return XT(e,{strict:n}),!0}catch{return!1}}var zyt,gG,qse,Kse,pD=Z(()=>{f();u_();PCe();Zp();hG();Gse();zyt=/^0x[a-fA-F0-9]{40}$/;gG=class extends En{constructor({address:t,cause:n}){super(`Address \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},qse=class extends En{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},Kse=class extends En{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var FCe,HCe,wG,gEn,yEn,bEn,vEn,wEn,xEn,EEn,AEn,_En,SEn,TEn,CEn,REn,IEn,OEn,kEn,NEn,PEn,MEn,DEn,LEn,BEn,UEn,FEn,HEn,zEn,jEn,WEn,VEn,GEn,qEn,KEn,YEn,ZEn,QEn,JEn,XEn,$En,eAn,tAn,nAn,rAn,oAn,iAn,aAn,sAn,cAn,uAn,lAn,dAn,fAn,pAn,hAn,mAn,gAn,yAn,bAn,vAn,wAn,xAn,EAn,AAn,_An,SAn,TAn,CAn,RAn,IAn,OAn,kAn,NAn,PAn,MAn,DAn,LAn,BAn,UAn,FAn,HAn,zAn,jAn,WAn,VAn,GAn,qAn,KAn,YAn,ZAn,QAn,JAn,XAn,$An,e_n,t_n,n_n,Yse,xG=Z(()=>{f();FCe=/^(.*)\\\\[([0-9]*)\\\\]$/,HCe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,wG=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,gEn=2n**(8n-1n)-1n,yEn=2n**(16n-1n)-1n,bEn=2n**(24n-1n)-1n,vEn=2n**(32n-1n)-1n,wEn=2n**(40n-1n)-1n,xEn=2n**(48n-1n)-1n,EEn=2n**(56n-1n)-1n,AEn=2n**(64n-1n)-1n,_En=2n**(72n-1n)-1n,SEn=2n**(80n-1n)-1n,TEn=2n**(88n-1n)-1n,CEn=2n**(96n-1n)-1n,REn=2n**(104n-1n)-1n,IEn=2n**(112n-1n)-1n,OEn=2n**(120n-1n)-1n,kEn=2n**(128n-1n)-1n,NEn=2n**(136n-1n)-1n,PEn=2n**(144n-1n)-1n,MEn=2n**(152n-1n)-1n,DEn=2n**(160n-1n)-1n,LEn=2n**(168n-1n)-1n,BEn=2n**(176n-1n)-1n,UEn=2n**(184n-1n)-1n,FEn=2n**(192n-1n)-1n,HEn=2n**(200n-1n)-1n,zEn=2n**(208n-1n)-1n,jEn=2n**(216n-1n)-1n,WEn=2n**(224n-1n)-1n,VEn=2n**(232n-1n)-1n,GEn=2n**(240n-1n)-1n,qEn=2n**(248n-1n)-1n,KEn=2n**(256n-1n)-1n,YEn=-(2n**(8n-1n)),ZEn=-(2n**(16n-1n)),QEn=-(2n**(24n-1n)),JEn=-(2n**(32n-1n)),XEn=-(2n**(40n-1n)),$En=-(2n**(48n-1n)),eAn=-(2n**(56n-1n)),tAn=-(2n**(64n-1n)),nAn=-(2n**(72n-1n)),rAn=-(2n**(80n-1n)),oAn=-(2n**(88n-1n)),iAn=-(2n**(96n-1n)),aAn=-(2n**(104n-1n)),sAn=-(2n**(112n-1n)),cAn=-(2n**(120n-1n)),uAn=-(2n**(128n-1n)),lAn=-(2n**(136n-1n)),dAn=-(2n**(144n-1n)),fAn=-(2n**(152n-1n)),pAn=-(2n**(160n-1n)),hAn=-(2n**(168n-1n)),mAn=-(2n**(176n-1n)),gAn=-(2n**(184n-1n)),yAn=-(2n**(192n-1n)),bAn=-(2n**(200n-1n)),vAn=-(2n**(208n-1n)),wAn=-(2n**(216n-1n)),xAn=-(2n**(224n-1n)),EAn=-(2n**(232n-1n)),AAn=-(2n**(240n-1n)),_An=-(2n**(248n-1n)),SAn=-(2n**(256n-1n)),TAn=2n**8n-1n,CAn=2n**16n-1n,RAn=2n**24n-1n,IAn=2n**32n-1n,OAn=2n**40n-1n,kAn=2n**48n-1n,NAn=2n**56n-1n,PAn=2n**64n-1n,MAn=2n**72n-1n,DAn=2n**80n-1n,LAn=2n**88n-1n,BAn=2n**96n-1n,UAn=2n**104n-1n,FAn=2n**112n-1n,HAn=2n**120n-1n,zAn=2n**128n-1n,jAn=2n**136n-1n,WAn=2n**144n-1n,VAn=2n**152n-1n,GAn=2n**160n-1n,qAn=2n**168n-1n,KAn=2n**176n-1n,YAn=2n**184n-1n,ZAn=2n**192n-1n,QAn=2n**200n-1n,JAn=2n**208n-1n,XAn=2n**216n-1n,$An=2n**224n-1n,e_n=2n**232n-1n,t_n=2n**240n-1n,n_n=2n**248n-1n,Yse=2n**256n-1n});function $T(e,t,n){let{checksumAddress:r,staticPosition:o}=n,i=Jse(t.type);if(i){let[a,c]=i;return Vyt(e,{...t,type:c},{checksumAddress:r,length:a,staticPosition:o})}if(t.type===\"tuple\")return Yyt(e,t,{checksumAddress:r,staticPosition:o});if(t.type===\"address\")return Wyt(e,{checksum:r});if(t.type===\"bool\")return Gyt(e);if(t.type.startsWith(\"bytes\"))return qyt(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return Kyt(e,t);if(t.type===\"string\")return Zyt(e,{staticPosition:o});throw new O8(t.type)}function Wyt(e,t={}){let{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?yG(i):i)(ac(mTe(r,-20))),32]}function Vyt(e,t,n){let{checksumAddress:r,length:o,staticPosition:i}=n;if(!o){let u=ev(e.readBytes(Zse)),d=i+u,p=d+jCe;e.setPosition(d);let h=ev(e.readBytes(jCe)),g=hD(t),y=0,v=[];for(let x=0;x<h;++x){e.setPosition(p+(g?x*32:y));let[R,S]=$T(e,t,{checksumAddress:r,staticPosition:p});y+=S,v.push(R)}return e.setPosition(i+32),[v,32]}if(hD(t)){let u=ev(e.readBytes(Zse)),d=i+u,p=[];for(let h=0;h<o;++h){e.setPosition(d+h*32);let[g]=$T(e,t,{checksumAddress:r,staticPosition:d});p.push(g)}return e.setPosition(i+32),[p,32]}let a=0,c=[];for(let u=0;u<o;++u){let[d,p]=$T(e,t,{checksumAddress:r,staticPosition:i+a});a+=p,c.push(d)}return[c,a]}function Gyt(e){return[yTe(e.readBytes(32),{size:32}),32]}function qyt(e,t,{staticPosition:n}){let[r,o]=t.type.split(\"bytes\");if(!o){let a=ev(e.readBytes(32));e.setPosition(n+a);let c=ev(e.readBytes(32));if(c===0)return e.setPosition(n+32),[\"0x\",32];let u=e.readBytes(c);return e.setPosition(n+32),[ac(u),32]}return[ac(e.readBytes(Number.parseInt(o,10),32)),32]}function Kyt(e,t){let n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?gTe(o,{signed:n}):ev(o,{signed:n}),32]}function Yyt(e,t,n){let{checksumAddress:r,staticPosition:o}=n,i=t.components.length===0||t.components.some(({name:u})=>!u),a=i?[]:{},c=0;if(hD(t)){let u=ev(e.readBytes(Zse)),d=o+u;for(let p=0;p<t.components.length;++p){let h=t.components[p];e.setPosition(d+c);let[g,y]=$T(e,h,{checksumAddress:r,staticPosition:d});c+=y,a[i?p:h?.name]=g}return e.setPosition(o+32),[a,32]}for(let u=0;u<t.components.length;++u){let d=t.components[u],[p,h]=$T(e,d,{checksumAddress:r,staticPosition:o});a[i?u:d?.name]=p,c+=h}return[a,c]}function Zyt(e,{staticPosition:t}){let n=ev(e.readBytes(32)),r=t+n;e.setPosition(r);let o=ev(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(o,32),a=bTe(Gae(i));return e.setPosition(t+32),[a,32]}function WCe({checksumAddress:e,parameters:t,values:n}){let r=[];for(let o=0;o<t.length;o++)r.push(Qse({checksumAddress:e,parameter:t[o],value:n[o]}));return r}function Qse({checksumAddress:e=!1,parameter:t,value:n}){let r=t,o=Jse(r.type);if(o){let[i,a]=o;return Jyt(n,{checksumAddress:e,length:i,parameter:{...r,type:a}})}if(r.type===\"tuple\")return n1t(n,{checksumAddress:e,parameter:r});if(r.type===\"address\")return Qyt(n,{checksum:e});if(r.type===\"bool\")return $yt(n);if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\")){let i=r.type.startsWith(\"int\"),[,,a=\"256\"]=wG.exec(r.type)??[];return e1t(n,{signed:i,size:Number(a)})}if(r.type.startsWith(\"bytes\"))return Xyt(n,{type:r.type});if(r.type===\"string\")return t1t(n);throw new O8(r.type)}function EG(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?t+=32:t+=Qa(c)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?(n.push(Ko(t+o,{size:32})),r.push(c),o+=Qa(c)):n.push(c)}return ps(...n,...r)}function Qyt(e,t){let{checksum:n=!1}=t;return XT(e,{strict:n}),{dynamic:!1,encoded:Z2(e.toLowerCase())}}function Jyt(e,t){let{checksumAddress:n,length:r,parameter:o}=t,i=r===null;if(!Array.isArray(e))throw new _G(e);if(!i&&e.length!==r)throw new AG({expectedLength:r,givenLength:e.length,type:`${o.type}[${r}]`});let a=!1,c=[];for(let u=0;u<e.length;u++){let d=Qse({checksumAddress:n,parameter:o,value:e[u]});d.dynamic&&(a=!0),c.push(d)}if(i||a){let u=EG(c);if(i){let d=Ko(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?ps(d,u):d}}if(a)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:ps(...c.map(({encoded:u})=>u))}}function Xyt(e,{type:t}){let[,n]=t.split(\"bytes\"),r=Qa(e);if(!n){let o=e;return r%32!==0&&(o=tv(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:ps(Z2(Ko(r,{size:32})),o)}}if(r!==Number.parseInt(n,10))throw new mD({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:tv(e)}}function $yt(e){if(typeof e!=\"boolean\")throw new En(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Z2(gV(e))}}function e1t(e,{signed:t,size:n}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new qM({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Ko(e,{size:32,signed:t})}}function t1t(e){let t=g8(e),n=Math.ceil(Qa(t)/32),r=[];for(let o=0;o<n;o++)r.push(tv(Ja(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:ps(tv(Ko(Qa(t),{size:32})),...r)}}function n1t(e,t){let{checksumAddress:n,parameter:r}=t,o=!1,i=[];for(let a=0;a<r.components.length;a++){let c=r.components[a],u=Array.isArray(e)?a:c.name,d=Qse({checksumAddress:n,parameter:c,value:e[u]});i.push(d),d.dynamic&&(o=!0)}return{dynamic:o,encoded:o?EG(i):ps(...i.map(({encoded:a})=>a))}}function Jse(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function hD(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(hD);let n=Jse(e.type);return!!(n&&hD({...e,type:n[1]}))}var jCe,Zse,VCe=Z(()=>{f();k8();pD();u_();Zp();Fu();xG();jCe=32,Zse=32});function TG(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(o1t);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}var o1t,SG,Xse,$se,ece=Z(()=>{f();Zp();o1t={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new $se({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Xse({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new SG({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new SG({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};SG=class extends En{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},Xse=class extends En{constructor({length:t,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}},$se=class extends En{constructor({count:t,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}}});function N8(e,t,n={}){let{as:r=\"Array\",checksumAddress:o=!1}=n,i=typeof t==\"string\"?h8(t):t,a=TG(i);if(H0(i)===0&&e.length>0)throw new rce;if(H0(i)&&H0(i)<32)throw new nce({data:typeof t==\"string\"?t:ac(t),parameters:e,size:H0(i)});let c=0,u=r===\"Array\"?[]:{};for(let d=0;d<e.length;++d){let p=e[d];a.setPosition(c);let[h,g]=$T(a,p,{checksumAddress:o,staticPosition:0});c+=g,r===\"Array\"?u.push(h):u[p.name??d]=h}return u}function E_(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new CG({expectedLength:e.length,givenLength:t.length});let o=WCe({checksumAddress:r,parameters:e,values:t}),i=EG(o);return i.length===0?\"0x\":i}function tce(e,t){if(e.length!==t.length)throw new CG({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(tce.encode(o,i))}return ps(...n)}function yD(e){return Array.isArray(e)&&typeof e[0]==\"string\"?gM(e):typeof e==\"string\"?gM(e):e}var nce,rce,AG,mD,CG,_G,O8,k8=Z(()=>{f();iT();pD();u_();Zp();Fu();VCe();ece();xG();(function(e){function t(n,r,o=!1){if(n===\"address\"){let u=r;return XT(u),Z2(u.toLowerCase(),o?32:0)}if(n===\"string\")return g8(r);if(n===\"bytes\")return r;if(n===\"bool\")return Z2(gV(r),o?32:1);let i=n.match(wG);if(i){let[u,d,p=\"256\"]=i,h=Number.parseInt(p,10)/8;return Ko(r,{size:o?32:h,signed:d===\"int\"})}let a=n.match(HCe);if(a){let[u,d]=a;if(Number.parseInt(d,10)!==(r.length-2)/2)throw new mD({expectedSize:Number.parseInt(d,10),value:r});return tv(r,o?32:0)}let c=n.match(FCe);if(c&&Array.isArray(r)){let[u,d]=c,p=[];for(let h=0;h<r.length;h++)p.push(t(d,r[h],!0));return p.length===0?\"0x\":ps(...p)}throw new O8(n)}e.encode=t})(tce||(tce={}));nce=class extends En{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${I2(n)})`,`Data:   ${t} (${r} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}},rce=class extends En{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}},AG=class extends En{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \\\\`${r}\\\\`. Expected: \\\\`${t}\\\\`. Given: \\\\`${n}\\\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}},mD=class extends En{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${Qa(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},CG=class extends En{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},_G=class extends En{constructor(t){super(`Value \\\\`${t}\\\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}},O8=class extends En{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});function i1t(e,t){let{as:n}=t,r=KCe(e),o=TG(new Uint8Array(r.length));return r.encode(o),n===\"Hex\"?ac(o.bytes):o.bytes}function qCe(e,t={}){let{as:n=\"Hex\"}=t;return i1t(e,{as:n})}function KCe(e){return Array.isArray(e)?a1t(e.map(t=>KCe(t))):s1t(e)}function a1t(e){let t=e.reduce((o,i)=>o+i.length,0),n=YCe(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:i}of e)i(o)}}}function s1t(e){let t=typeof e==\"string\"?h8(e):e,n=YCe(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function YCe(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new En(\"Length is too large.\")}var ZCe=Z(()=>{f();u_();Zp();Fu();ece()});function cce(e,t={}){let{recovered:n}=t;if(typeof e.r>\"u\")throw new bD({signature:e});if(typeof e.s>\"u\")throw new bD({signature:e});if(n&&typeof e.yParity>\"u\")throw new bD({signature:e});if(e.r<0n||e.r>Yse)throw new ice({value:e.r});if(e.s<0n||e.s>Yse)throw new ace({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new vD({value:e.yParity})}function u1t(e){return QCe(ac(e))}function QCe(e){if(e.length!==130&&e.length!==132)throw new oce({signature:e});let t=BigInt(Ja(e,0,32)),n=BigInt(Ja(e,32,64)),r=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return dce(o)}catch{throw new vD({value:o})}})();return typeof r>\"u\"?{r:t,s:n}:{r:t,s:n,yParity:r}}function uce(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return lce(e)}function lce(e){let t=typeof e==\"string\"?QCe(e):e instanceof Uint8Array?u1t(e):typeof e.r==\"string\"?d1t(e):e.v?l1t(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return cce(t),t}function l1t(e){return{r:e.r,s:e.s,yParity:dce(e.v)}}function d1t(e){let t=(()=>{let n=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if(typeof n==\"number\"&&typeof r!=\"number\"&&(r=dce(n)),typeof r!=\"number\")throw new vD({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function JCe(e){let{r:t,s:n,yParity:r}=e;return[r?\"0x01\":\"0x\",t===0n?\"0x\":Kae(Ko(t)),n===0n?\"0x\":Kae(Ko(n))]}function dce(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new sce({value:e})}var oce,bD,ice,ace,vD,sce,fce=Z(()=>{f();Zp();Fu();GM();xG();oce=class extends En{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Qa(m8(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},bD=class extends En{constructor({signature:t}){super(`Signature \\\\`${l_(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},ice=class extends En{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},ace=class extends En{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},vD=class extends En{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},sce=class extends En{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});function $Ce(e,t={}){return typeof e.chainId==\"string\"?f1t(e):{...e,...t.signature}}function f1t(e){let{address:t,chainId:n,nonce:r}=e,o=uce(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...o}}function eRe(e){return p1t(e,{presign:!0})}function p1t(e,t={}){let{presign:n}=t;return JT(ps(\"0x05\",qCe(h1t(n?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function h1t(e){let{address:t,chainId:n,nonce:r}=e,o=uce(e);return[n?Ko(n):\"0x\",t,r?Ko(r):\"0x\",...o?JCe(o):[]]}var tRe=Z(()=>{f();hG();Fu();ZCe();fce()});function nRe(e){return UCe(g1t(e))}function g1t(e){let{payload:t,signature:n}=e,{r,s:o,yParity:i}=n,c=new $y.Signature(BigInt(r),BigInt(o)).addRecoveryBit(i).recoverPublicKey(m8(t).substring(2));return DCe(c)}var rRe=Z(()=>{f();iD();pD();Fu();Gse()});var wD={};qa(wD,{InvalidWrappedSignatureError:()=>RG,assert:()=>IG,from:()=>b1t,magicBytes:()=>pce,suffixParameters:()=>hce,unwrap:()=>oRe,validate:()=>w1t,wrap:()=>v1t});function IG(e){if(typeof e==\"string\"){if(Ja(e,-32)!==pce)throw new RG(e)}else cce(e.authorization)}function b1t(e){return typeof e==\"string\"?oRe(e):e}function oRe(e){IG(e);let t=pV(Ja(e,-64,-32)),n=Ja(e,-t-64,-64),r=Ja(e,0,-t-64),[o,i,a]=N8(hce,n);return{authorization:$Ce({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:r,...a&&a!==\"0x\"?{data:a,to:i}:{}}}function v1t(e){let{data:t,signature:n}=e;IG(e);let r=nRe({payload:eRe(e.authorization),signature:lce(e.authorization)}),o=E_(hce,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??r,t??\"0x\"]),i=Ko(Qa(o),{size:32});return ps(n,o,i,pce)}function w1t(e){try{return IG(e),!0}catch{return!1}}var pce,hce,RG,iRe=Z(()=>{f();k8();tRe();Zp();Fu();rRe();fce();pce=\"0x8010801080108010801080108010801080108010801080108010801080108010\",hce=yD(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");RG=class extends En{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}}});var aRe=Z(()=>{f();iRe()});function mce(e){if(!OCe(e))return{signature:e};let[t,n,r]=Dc([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],e);return{address:t,data:n,signature:r}}var sRe=Z(()=>{f();aT();kCe()});function OG(e){let{address:t,data:n,signature:r,to:o=\"hex\"}=e,i=ls([Hi([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,n,r]),dG]);return o===\"hex\"?i:ci(i)}var cRe=Z(()=>{f();Use();L0();Mc();Pc()});var kG,uRe=Z(()=>{f();tr();kG=class extends Re{constructor({value:t}){super(`Number \\\\`${t}\\\\` is not a valid decimal number.`,{name:\"InvalidDecimalNumberError\"})}}});function A_(e,t){if(!/^(-?)([0-9]*)\\\\.?([0-9]*)$/.test(e))throw new kG({value:e});let[n,r=\"0\"]=e.split(\".\"),o=n.startsWith(\"-\");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,\"\"),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r=\"\";else if(r.length>t){let[i,a,c]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],u=Math.round(+`${a}.${c}`);u>9?r=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,\"0\"):r=`${i}${u}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,\"0\");return BigInt(`${o?\"-\":\"\"}${n}${r}`)}var lRe=Z(()=>{f();uRe()});var e6=Z(()=>{f();ka();zb();NA();ks();xn();Y3()});function x1t(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function dRe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?So(e.nonce):void 0,storageProof:e.storageProof?x1t(e.storageProof):void 0}}var fRe=Z(()=>{f();e6()});async function pRe(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){let i=r??\"latest\",a=n!==void 0?Ne(n):void 0,c=await e.request({method:\"eth_getProof\",params:[t,o,a||i]});return dRe(c)}var hRe=Z(()=>{f();xn();fRe()});async function mRe(e,{address:t,blockNumber:n,blockTag:r=\"latest\",slot:o}){let i=n!==void 0?Ne(n):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,i||r]})}var gRe=Z(()=>{f();xn()});async function $2(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:i}){let a=r||\"latest\",c=n!==void 0?Ne(n):void 0,u=null;if(o?u=await e.request({method:\"eth_getTransactionByHash\",params:[o]},{dedupe:!0}):t?u=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,Ne(i)]},{dedupe:!0}):(c||a)&&(u=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[c||a,Ne(i)]},{dedupe:!!c})),!u)throw new uI({blockHash:t,blockNumber:n,blockTag:a,hash:o,index:i});return(e.chain?.formatters?.transaction?.format||q3)(u)}var xD=Z(()=>{f();C0();xn();M9()});async function yRe(e,{hash:t,transactionReceipt:n}){let[r,o]=await Promise.all([kt(e,rv,\"getBlockNumber\")({}),t?kt(e,$2,\"getTransaction\")({hash:t}):void 0]),i=n?.blockNumber||o?.blockNumber;return i?r-i+1n:0n}var bRe=Z(()=>{f();Do();C8();xD()});async function P8(e,{hash:t}){let n=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!n)throw new lI({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||L9)(n)}var gce=Z(()=>{f();C0();B9()});async function ED(e,t){let{account:n,authorizationList:r,allowFailure:o=!0,blockNumber:i,blockTag:a,stateOverride:c}=t,u=t.contracts,{batchSize:d=t.batchSize??1024,deployless:p=t.deployless??!1}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},h=(()=>{if(t.multicallAddress)return t.multicallAddress;if(p)return null;if(e.chain)return M0({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new Error(\"client chain not configured. multicallAddress is required.\")})(),g=[[]],y=0,v=0;for(let S=0;S<u.length;S++){let{abi:M,address:P,args:z,functionName:V}=u[S];try{let Q=vn({abi:M,args:z,functionName:V});v+=(Q.length-2)/2,d>0&&v>d&&g[y].length>0&&(y++,v=(Q.length-2)/2,g[y]=[]),g[y]=[...g[y],{allowFailure:!0,callData:Q,target:P}]}catch(Q){let $=am(Q,{abi:M,address:P,args:z,docsPath:\"/docs/contract/multicall\",functionName:V,sender:n});if(!o)throw $;g[y]=[...g[y],{allowFailure:!0,callData:\"0x\",target:P}]}}let x=await Promise.allSettled(g.map(S=>kt(e,ui,\"readContract\")({...h===null?{code:y8}:{address:h},abi:a_,account:n,args:[S],authorizationList:r,blockNumber:i,blockTag:a,functionName:\"aggregate3\",stateOverride:c}))),R=[];for(let S=0;S<x.length;S++){let M=x[S];if(M.status===\"rejected\"){if(!o)throw M.reason;for(let z=0;z<g[S].length;z++)R.push({status:\"failure\",error:M.reason,result:void 0});continue}let P=M.value;for(let z=0;z<P.length;z++){let{returnData:V,success:Q}=P[z],{callData:$}=g[S][z],{abi:oe,address:J,functionName:re,args:q}=u[R.length];try{if($===\"0x\")throw new D0;if(!Q)throw new qy({data:V});let K=Kp({abi:oe,args:q,data:V,functionName:re});R.push(o?{result:K,status:\"success\"}:K)}catch(K){let U=am(K,{abi:oe,address:J,args:q,docsPath:\"/docs/contract/multicall\",functionName:re});if(!o)throw U;R.push({error:U,result:void 0,status:\"failure\"})}}}if(R.length!==u.length)throw new Re(\"multicall results mismatch\");return R}var yce=Z(()=>{f();j2();YM();fs();tr();Kb();s_();Pf();rT();HT();Do();z0()});async function AD(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",blocks:o,returnFullTransactions:i,traceTransfers:a,validation:c}=t;try{let u=[];for(let g of o){let y=g.blockOverrides?yV(g.blockOverrides):void 0,v=g.calls.map(R=>{let S=R,M=S.account?jn(S.account):void 0,P=S.abi?vn(S):S.data,z={...S,data:S.dataSuffix?Ri([P||\"0x\",S.dataSuffix]):P,from:S.from??M?.address};return zp(z),T0(z)}),x=g.stateOverrides?d_(g.stateOverrides):void 0;u.push({blockOverrides:y,calls:v,stateOverrides:x})}let p=(typeof n==\"bigint\"?Ne(n):void 0)||r;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:u,returnFullTransactions:i,traceTransfers:a,validation:c},p]})).map((g,y)=>({...D9(g),calls:g.calls.map((v,x)=>{let{abi:R,args:S,functionName:M,to:P}=o[y].calls[x],z=v.error?.data??v.returnData,V=BigInt(v.gasUsed),Q=v.logs?.map(re=>Du(re)),$=v.status===\"0x1\"?\"success\":\"failure\",oe=R&&$===\"success\"&&z!==\"0x\"?Kp({abi:R,data:z,functionName:M}):null,J=(()=>{if($===\"success\")return;let re;if(v.error?.data===\"0x\"?re=new D0:v.error&&(re=new qy(v.error)),!!re)return am(re,{abi:R??[],address:P??\"0x\",args:S,functionName:M??\"<unknown>\"})})();return{data:z,gasUsed:V,logs:Q,status:$,...$===\"success\"?{result:oe}:{error:J}}})}))}catch(u){let d=u,p=GA(d,{});throw p instanceof k0?d:p}}var bce=Z(()=>{f();Yae();ka();fs();Kb();UA();s_();Pf();Mc();xn();HT();EM();Nj();x2();K3();ZM();KA()});function PG(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let a=0;a<e.length;a++){let c=e[a];if([\"(\",\")\",\",\"].includes(c)&&(t=!0),c===\"(\"&&r++,c===\")\"&&r--,!!t){if(r===0){if(c===\" \"&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=c,c===\")\"){i=!0;break}continue}if(c===\" \"){e[a-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",t=!1);continue}o+=c,n+=c}}if(!i)throw new En(\"Unable to normalize signature.\");return o}function NG(e,t){let n=typeof e,r=t.type;switch(r){case\"address\":return bG(e,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,i)=>NG(Object.values(e)[i],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(e)&&e.every(o=>NG(o,{...t,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function vce(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type===\"tuple\"&&i.type===\"tuple\"&&\"components\"in o&&\"components\"in i)return vce(o.components,i.components,n[r]);let a=[o.type,i.type];if(a.includes(\"address\")&&a.includes(\"bytes20\")?!0:a.includes(\"address\")&&a.includes(\"string\")?bG(n[r],{strict:!1}):a.includes(\"address\")&&a.includes(\"bytes\")?bG(n[r],{strict:!1}):!1)return a}}var vRe=Z(()=>{f();pD();Zp()});function MG(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)?mM(e):typeof e==\"string\"?mM(e):e;return{...r,...n?{hash:M8(r)}:{}}}function wRe(e,t,n){let{args:r=[],prepare:o=!0}=n??{},i=KM(t,{strict:!1}),a=e.filter(d=>i?d.type===\"function\"||d.type===\"error\"?xce(d)===Ja(t,0,4):d.type===\"event\"?M8(d)===t:!1:\"name\"in d&&d.name===t);if(a.length===0)throw new t6({name:t});if(a.length===1)return{...a[0],...o?{hash:M8(a[0])}:{}};let c;for(let d of a){if(!(\"inputs\"in d))continue;if(!r||r.length===0){if(!d.inputs||d.inputs.length===0)return{...d,...o?{hash:M8(d)}:{}};continue}if(!d.inputs||d.inputs.length===0||d.inputs.length!==r.length)continue;if(r.every((h,g)=>{let y=\"inputs\"in d&&d.inputs[g];return y?NG(h,y):!1})){if(c&&\"inputs\"in c&&c.inputs){let h=vce(d.inputs,c.inputs,r);if(h)throw new wce({abiItem:d,type:h[0]},{abiItem:c,type:h[1]})}c=d}}let u=(()=>{if(c)return c;let[d,...p]=a;return{...d,overloads:p}})();if(!u)throw new t6({name:t});return{...u,...o?{hash:M8(u)}:{}}}function xce(e){return Ja(M8(e),0,4)}function A1t(e){let t=typeof e==\"string\"?e:oT(e);return PG(t)}function M8(e){return typeof e!=\"string\"&&\"hash\"in e&&e.hash?e.hash:JT(g8(A1t(e)))}var wce,t6,Ece=Z(()=>{f();iT();Zp();hG();Fu();vRe();wce=class extends En{constructor(t,n){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${PG(oT(t.abiItem))}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${PG(oT(n.abiItem))}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}},t6=class extends En{constructor({name:t,data:n,type:r=\"item\"}){let o=t?` with name \"${t}\"`:n?` with data \"${n}\"`:\"\";super(`ABI ${r}${o} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}}});function ERe(e,t){let{bytecode:n,args:r}=t;return ps(n,e.inputs?.length&&r?.length?E_(e.inputs,r):\"0x\")}function ARe(e){return MG(e)}var _Re=Z(()=>{f();Ece();k8();Fu()});function SRe(e,...t){let{overloads:n}=e,r=n?S1t([e,...n],e.name,{args:t[0]}):e,o=T1t(r),i=t.length>0?E_(r.inputs,t[0]):void 0;return i?ps(o,i):o}function n6(e,t={}){return MG(e,t)}function S1t(e,t,n){let r=wRe(e,t,n);if(r.type!==\"function\")throw new t6({name:t,type:\"function\"});return r}function T1t(e){return xce(e)}var TRe=Z(()=>{f();Ece();k8();Fu()});var CRe,e1,RRe=Z(()=>{f();CRe=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",e1=\"0x0000000000000000000000000000000000000000\"});async function IRe(e,t){let{blockNumber:n,blockTag:r,calls:o,stateOverrides:i,traceAssetChanges:a,traceTransfers:c,validation:u}=t,d=t.account?jn(t.account):void 0;if(a&&!d)throw new Re(\"`account` is required when `traceAssetChanges` is true\");let p=d?ERe(ARe(\"constructor(bytes, bytes)\"),{bytecode:bV,args:[R1t,SRe(n6(\"function getBalance(address)\"),[d.address])]}):void 0,h=a?await Promise.all(t.calls.map(async B=>{if(!B.data&&!B.abi)return;let{accessList:H}=await IV(e,{account:d.address,...B,data:B.abi?vn(B):B.data});return H.map(({address:W,storageKeys:G})=>G.length>0?W:null)})).then(B=>B.flat().filter(Boolean)):[],g=await AD(e,{blockNumber:n,blockTag:r,blocks:[...a?[{calls:[{data:p}],stateOverrides:i},{calls:h.map((B,H)=>({abi:[n6(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[d.address],to:B,from:e1,nonce:H})),stateOverrides:[{address:e1,nonce:0}]}]:[],{calls:[...o,{}].map(B=>({...B,from:d?.address})),stateOverrides:i},...a?[{calls:[{data:p}]},{calls:h.map((B,H)=>({abi:[n6(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[d.address],to:B,from:e1,nonce:H})),stateOverrides:[{address:e1,nonce:0}]},{calls:h.map((B,H)=>({to:B,abi:[n6(\"function decimals() returns (uint256)\")],functionName:\"decimals\",from:e1,nonce:H})),stateOverrides:[{address:e1,nonce:0}]},{calls:h.map((B,H)=>({to:B,abi:[n6(\"function tokenURI(uint256) returns (string)\")],functionName:\"tokenURI\",args:[0n],from:e1,nonce:H})),stateOverrides:[{address:e1,nonce:0}]},{calls:h.map((B,H)=>({to:B,abi:[n6(\"function symbol() returns (string)\")],functionName:\"symbol\",from:e1,nonce:H})),stateOverrides:[{address:e1,nonce:0}]}]:[]],traceTransfers:c,validation:u}),y=a?g[2]:g[0],[v,x,,R,S,M,P,z]=a?g:[],{calls:V,...Q}=y,$=V.slice(0,-1)??[],oe=v?.calls??[],J=x?.calls??[],re=[...oe,...J].map(B=>B.status===\"success\"?qn(B.data):null),q=R?.calls??[],K=S?.calls??[],U=[...q,...K].map(B=>B.status===\"success\"?qn(B.data):null),T=(M?.calls??[]).map(B=>B.status===\"success\"?B.result:null),k=(z?.calls??[]).map(B=>B.status===\"success\"?B.result:null),F=(P?.calls??[]).map(B=>B.status===\"success\"?B.result:null),N=[];for(let[B,H]of U.entries()){let W=re[B];if(typeof H!=\"bigint\"||typeof W!=\"bigint\")continue;let G=T[B-1],O=k[B-1],j=F[B-1],te=B===0?{address:CRe,decimals:18,symbol:\"ETH\"}:{address:h[B-1],decimals:j||G?Number(G??1):void 0,symbol:O??void 0};N.some(ne=>ne.token.address===te.address)||N.push({token:te,value:{pre:W,post:H,diff:H-W}})}return{assetChanges:N,block:Q,results:$}}var R1t,ORe=Z(()=>{f();_Re();TRe();ka();RRe();YM();tr();Pf();e6();tse();bce();R1t=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\"});async function kRe(e,t){let{abi:n,address:r,args:o,dataSuffix:i,functionName:a,...c}=t,u=c.account?jn(c.account):e.account,d=vn({abi:n,args:o,functionName:a});try{let{data:p}=await kt(e,cm,\"call\")({batch:!1,data:`${d}${i?i.replace(\"0x\",\"\"):\"\"}`,to:r,...c,account:u}),h=Kp({abi:n,args:o,functionName:a,data:p||\"0x\"}),g=n.filter(y=>\"name\"in y&&y.name===t.functionName);return{result:h,request:{abi:g,address:r,args:o,dataSuffix:i,functionName:a,...c,account:u}}}catch(p){throw am(p,{abi:n,address:r,args:o,docsPath:\"/docs/contract/simulateContract\",functionName:a,sender:u?.address})}}var NRe=Z(()=>{f();ka();s_();Pf();HT();Do();GT()});async function __(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}var _D=Z(()=>{f()});var SD={};qa(SD,{InvalidWrappedSignatureError:()=>DG,assert:()=>_ce,from:()=>k1t,magicBytes:()=>Ace,universalSignatureValidatorAbi:()=>O1t,universalSignatureValidatorBytecode:()=>I1t,unwrap:()=>PRe,validate:()=>P1t,wrap:()=>N1t});function _ce(e){if(Ja(e,-32)!==Ace)throw new DG(e)}function k1t(e){return typeof e==\"string\"?PRe(e):e}function PRe(e){_ce(e);let[t,n,r]=N8(yD(\"address, bytes, bytes\"),e);return{data:n,signature:r,to:t}}function N1t(e){let{data:t,signature:n,to:r}=e;return ps(E_(yD(\"address, bytes, bytes\"),[r,t,n]),Ace)}function P1t(e){try{return _ce(e),!0}catch{return!1}}var Ace,I1t,O1t,DG,MRe=Z(()=>{f();k8();Zp();Fu();Ace=\"0x6492649264926492649264926492649264926492649264926492649264926492\",I1t=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",O1t=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}];DG=class extends En{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}}});var DRe=Z(()=>{f();MRe()});function LRe({r:e,s:t,to:n=\"hex\",v:r,yParity:o}){let i=(()=>{if(o===0||o===1)return o;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),a=`0x${new $y.Signature(qn(e),qn(t)).toCompactHex()}${i===0?\"1b\":\"1c\"}`;return n===\"hex\"?a:ci(a)}var BRe=Z(()=>{f();iD();ks();Pc()});async function S_(e,t){let{address:n,hash:r,erc6492VerifierAddress:o=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:i=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,a=(()=>{let c=t.signature;return Xr(c)?c:typeof c==\"object\"&&\"r\"in c&&\"s\"in c?LRe(c):_o(c)})();try{return wD.validate(a)?await M1t(e,{...t,multicallAddress:i,signature:a}):await D1t(e,{...t,verifierAddress:o,signature:a})}catch(c){try{if(Pl(nr(n),await HV({hash:r,signature:a})))return!0}catch{}if(c instanceof ex)return!1;throw c}}async function M1t(e,t){let{address:n,blockNumber:r,blockTag:o,hash:i,multicallAddress:a}=t,{authorization:c,data:u,signature:d,to:p}=wD.unwrap(t.signature);if(await lm(e,{address:n,blockNumber:r,blockTag:o})===ls([\"0xef0100\",c.address]))return await L1t(e,{address:n,blockNumber:r,blockTag:o,hash:i,signature:d});let g={address:c.address,chainId:Number(c.chainId),nonce:Number(c.nonce),r:Ne(c.r,{size:32}),s:Ne(c.s,{size:32}),yParity:c.yParity};if(!await lCe({address:n,authorization:g}))throw new ex;let v=await kt(e,ui,\"readContract\")({...a?{address:a}:{code:y8},authorizationList:[g],abi:a_,blockNumber:r,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...u?[{allowFailure:!0,target:p??n,callData:u}]:[],{allowFailure:!0,target:n,callData:vn({abi:Sae,functionName:\"isValidSignature\",args:[i,d]})}]]});if(v[v.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new ex}async function D1t(e,t){let{address:n,factory:r,factoryData:o,hash:i,signature:a,verifierAddress:c,...u}=t,d=await(async()=>!r&&!o||SD.validate(a)?a:SD.wrap({data:o,signature:a,to:r}))(),p=c?{to:c,data:vn({abi:FM,functionName:\"isValidSig\",args:[n,i,d]}),...u}:{data:VT({abi:FM,args:[n,i,d],bytecode:TTe}),...u},{data:h}=await kt(e,cm,\"call\")(p).catch(g=>{throw g instanceof cT?new ex:g});if(P9(h??\"0x0\"))return!0;throw new ex}async function L1t(e,t){let{address:n,blockNumber:r,blockTag:o,hash:i,signature:a}=t;if((await kt(e,ui,\"readContract\")({address:n,abi:Sae,args:[i,a],blockNumber:r,blockTag:o,functionName:\"isValidSignature\"}).catch(u=>{throw u instanceof Gy?new ex:u})).startsWith(\"0x1626ba7e\"))return!0;throw new ex}var ex,TD=Z(()=>{f();DRe();aRe();j2();YM();Kb();vV();Pf();zb();f_();dCe();Mc();S0();ks();xn();Do();Sse();BRe();GT();cD();z0();ex=class extends Error{}});async function URe(e,{address:t,message:n,factory:r,factoryData:o,signature:i,...a}){let c=fm(n);return S_(e,{address:t,factory:r,factoryData:o,hash:c,signature:i,...a})}var FRe=Z(()=>{f();oG();TD()});async function HRe(e,t){let{address:n,factory:r,factoryData:o,signature:i,message:a,primaryType:c,types:u,domain:d,...p}=t,h=Lf({message:a,primaryType:c,types:u,domain:d});return S_(e,{address:n,factory:r,factoryData:o,hash:h,signature:i,...p})}var zRe=Z(()=>{f();lG();TD()});function Hu(e,t,n){let r=++B1t,o=()=>Sce.get(e)||[],i=()=>{let p=o();Sce.set(e,p.filter(h=>h.id!==r))},a=()=>{let p=o();if(!p.some(g=>g.id===r))return;let h=jRe.get(e);if(p.length===1&&h){let g=h();g instanceof Promise&&g.catch(()=>{})}i()},c=o();if(Sce.set(e,[...c,{id:r,fns:t}]),c&&c.length>0)return a;let u={};for(let p in t)u[p]=((...h)=>{let g=o();if(g.length!==0)for(let y of g)y.fns[p]?.(...h)});let d=n(u);return typeof d==\"function\"&&jRe.set(e,d),a}var Sce,jRe,B1t,tx=Z(()=>{f();Sce=new Map,jRe=new Map,B1t=0});function Qp(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0,i=()=>o=!1;return(async()=>{let c;t&&(c=await e({unpoll:i}));let u=await n?.(c)??r;await dD(u);let d=async()=>{o&&(await e({unpoll:i}),await dD(r),d())};d()})(),i}var T_=Z(()=>{f();kse()});function LG(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:i,pollingInterval:a=e.pollingInterval}){let c=typeof i<\"u\"?i:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),u;return c?(()=>{let h=$r([\"watchBlockNumber\",e.uid,t,n,a]);return Hu(h,{onBlockNumber:r,onError:o},g=>Qp(async()=>{try{let y=await kt(e,rv,\"getBlockNumber\")({cacheTime:0});if(u){if(y===u)return;if(y-u>1&&n)for(let v=u+1n;v<y;v++)g.onBlockNumber(v,u),u=v}(!u||y>u)&&(g.onBlockNumber(y,u),u=y)}catch(y){g.onError?.(y)}},{emitOnBegin:t,interval:a}))})():(()=>{let h=$r([\"watchBlockNumber\",e.uid,t,n]);return Hu(h,{onBlockNumber:r,onError:o},g=>{let y=!0,v=()=>y=!1;return(async()=>{try{let x=(()=>{if(e.transport.type===\"fallback\"){let S=e.transport.transports.find(M=>M.config.type===\"webSocket\"||M.config.type===\"ipc\");return S?S.value:e.transport}return e.transport})(),{unsubscribe:R}=await x.subscribe({params:[\"newHeads\"],onData(S){if(!y)return;let M=qn(S.result?.number);g.onBlockNumber(M,u),u=M},onError(S){g.onError?.(S)}});v=R,y||v()}catch(x){o?.(x)}})(),()=>v()})})()}var Tce=Z(()=>{f();ks();Do();tx();T_();Ol();C8()});async function CD(e,t){let{checkReplacement:n=!0,confirmations:r=1,hash:o,onReplaced:i,retryCount:a=6,retryDelay:c=({count:V})=>~~(1<<V)*200,timeout:u=18e4}=t,d=$r([\"waitForTransactionReceipt\",e.uid,o]),p=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,h,g,y,v=!1,x,R,{promise:S,resolve:M,reject:P}=b8(),z=u?setTimeout(()=>{R?.(),x?.(),P(new Vj({hash:o}))},u):void 0;return x=Hu(d,{onReplaced:i,resolve:M,reject:P},async V=>{if(y=await kt(e,P8,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),y&&r<=1){clearTimeout(z),V.resolve(y),x?.();return}R=kt(e,LG,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(Q){let $=J=>{clearTimeout(z),R?.(),J(),x?.()},oe=Q;if(!v)try{if(y){if(r>1&&(!y.blockNumber||oe-y.blockNumber+1n<r))return;$(()=>V.resolve(y));return}if(n&&!h&&(v=!0,await dm(async()=>{h=await kt(e,$2,\"getTransaction\")({hash:o}),h.blockNumber&&(oe=h.blockNumber)},{delay:c,retryCount:a}),v=!1),y=await kt(e,P8,\"getTransactionReceipt\")({hash:o}),r>1&&(!y.blockNumber||oe-y.blockNumber+1n<r))return;$(()=>V.resolve(y))}catch(J){if(J instanceof uI||J instanceof lI){if(!h){v=!1;return}try{g=h,v=!0;let re=await dm(()=>kt(e,Ad,\"getBlock\")({blockNumber:oe,includeTransactions:!0}),{delay:c,retryCount:a,shouldRetry:({error:U})=>U instanceof _8});v=!1;let q=re.transactions.find(({from:U,nonce:T})=>U===g.from&&T===g.nonce);if(!q||(y=await kt(e,P8,\"getTransactionReceipt\")({hash:q.hash}),r>1&&(!y.blockNumber||oe-y.blockNumber+1n<r)))return;let K=\"replaced\";q.to===g.to&&q.value===g.value&&q.input===g.input?K=\"repriced\":q.from===q.to&&q.value===0n&&(K=\"cancelled\"),$(()=>{V.onReplaced?.({reason:K,replacedTransaction:g,transaction:q,transactionReceipt:y}),V.resolve(y)})}catch(re){$(()=>V.reject(re))}}else $(()=>V.reject(J))}}})}),S}var Cce=Z(()=>{f();Tse();C0();Do();tx();wV();fD();Ol();KT();xD();gce();Tce()});function WRe(e,{blockTag:t=e.experimental_blockTag??\"latest\",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:i,includeTransactions:a,poll:c,pollingInterval:u=e.pollingInterval}){let d=typeof c<\"u\"?c:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),p=a??!1,h;return d?(()=>{let v=$r([\"watchBlocks\",e.uid,t,n,r,p,u]);return Hu(v,{onBlock:o,onError:i},x=>Qp(async()=>{try{let R=await kt(e,Ad,\"getBlock\")({blockTag:t,includeTransactions:p});if(R.number!==null&&h?.number!=null){if(R.number===h.number)return;if(R.number-h.number>1&&n)for(let S=h?.number+1n;S<R.number;S++){let M=await kt(e,Ad,\"getBlock\")({blockNumber:S,includeTransactions:p});x.onBlock(M,h),h=M}}(h?.number==null||t===\"pending\"&&R?.number==null||R.number!==null&&R.number>h.number)&&(x.onBlock(R,h),h=R)}catch(R){x.onError?.(R)}},{emitOnBegin:r,interval:u}))})():(()=>{let v=!0,x=!0,R=()=>v=!1;return(async()=>{try{r&&kt(e,Ad,\"getBlock\")({blockTag:t,includeTransactions:p}).then(P=>{v&&x&&(o(P,void 0),x=!1)}).catch(i);let S=(()=>{if(e.transport.type===\"fallback\"){let P=e.transport.transports.find(z=>z.config.type===\"webSocket\"||z.config.type===\"ipc\");return P?P.value:e.transport}return e.transport})(),{unsubscribe:M}=await S.subscribe({params:[\"newHeads\"],async onData(P){if(!v)return;let z=await kt(e,Ad,\"getBlock\")({blockNumber:P.result?.number,includeTransactions:p}).catch(()=>{});v&&(o(z,h),x=!1,h=z)},onError(P){i?.(P)}});R=M,v||R()}catch(S){i?.(S)}})(),()=>R()})()}var VRe=Z(()=>{f();Do();tx();T_();Ol();KT()});function GRe(e,t){let{abi:n,address:r,args:o,batch:i=!0,eventName:a,fromBlock:c,onError:u,onLogs:d,poll:p,pollingInterval:h=e.pollingInterval,strict:g}=t;return(typeof p<\"u\"?p:typeof c==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")))?(()=>{let R=g??!1,S=$r([\"watchContractEvent\",r,o,i,e.uid,a,h,R,c]);return Hu(S,{onLogs:d,onError:u},M=>{let P;c!==void 0&&(P=c-1n);let z,V=!1,Q=Qp(async()=>{if(!V){try{z=await kt(e,kV,\"createContractEventFilter\")({abi:n,address:r,args:o,eventName:a,strict:R,fromBlock:c})}catch{}V=!0;return}try{let $;if(z)$=await kt(e,x_,\"getFilterChanges\")({filter:z});else{let oe=await kt(e,rv,\"getBlockNumber\")({});P&&P<oe?$=await kt(e,eG,\"getContractEvents\")({abi:n,address:r,args:o,eventName:a,fromBlock:P+1n,toBlock:oe,strict:R}):$=[],P=oe}if($.length===0)return;if(i)M.onLogs($);else for(let oe of $)M.onLogs([oe])}catch($){z&&$ instanceof Ky&&(V=!1),M.onError?.($)}},{emitOnBegin:!0,interval:h});return async()=>{z&&await kt(e,__,\"uninstallFilter\")({filter:z}),Q()}})})():(()=>{let R=g??!1,S=$r([\"watchContractEvent\",r,o,i,e.uid,a,h,R]),M=!0,P=()=>M=!1;return Hu(S,{onLogs:d,onError:u},z=>((async()=>{try{let V=(()=>{if(e.transport.type===\"fallback\"){let oe=e.transport.transports.find(J=>J.config.type===\"webSocket\"||J.config.type===\"ipc\");return oe?oe.value:e.transport}return e.transport})(),Q=a?nv({abi:n,eventName:a,args:o}):[],{unsubscribe:$}=await V.subscribe({params:[\"logs\",{address:r,topics:Q}],onData(oe){if(!M)return;let J=oe.result;try{let{eventName:re,args:q}=X2({abi:n,data:J.data,topics:J.topics,strict:g}),K=Du(J,{args:q,eventName:re});z.onLogs([K])}catch(re){let q,K;if(re instanceof jy||re instanceof Wb){if(g)return;q=re.abiItem.name,K=re.abiItem.inputs?.some(T=>!(\"name\"in T&&T.name))}let U=Du(J,{args:K?[]:{},eventName:q});z.onLogs([U])}},onError(oe){z.onError?.(oe)}});P=$,M||P()}catch(V){u?.(V)}})(),()=>P()))})()}var qRe=Z(()=>{f();fs();CT();uD();w8();x2();Do();tx();T_();Ol();nse();C8();Ose();lD();_D()});function KRe(e,{address:t,args:n,batch:r=!0,event:o,events:i,fromBlock:a,onError:c,onLogs:u,poll:d,pollingInterval:p=e.pollingInterval,strict:h}){let g=typeof d<\"u\"?d:typeof a==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),y=h??!1;return g?(()=>{let R=$r([\"watchEvent\",t,n,r,e.uid,o,p,a]);return Hu(R,{onLogs:u,onError:c},S=>{let M;a!==void 0&&(M=a-1n);let P,z=!1,V=Qp(async()=>{if(!z){try{P=await kt(e,NV,\"createEventFilter\")({address:t,args:n,event:o,events:i,strict:y,fromBlock:a})}catch{}z=!0;return}try{let Q;if(P)Q=await kt(e,x_,\"getFilterChanges\")({filter:P});else{let $=await kt(e,rv,\"getBlockNumber\")({});M&&M!==$?Q=await kt(e,I8,\"getLogs\")({address:t,args:n,event:o,events:i,fromBlock:M+1n,toBlock:$}):Q=[],M=$}if(Q.length===0)return;if(r)S.onLogs(Q);else for(let $ of Q)S.onLogs([$])}catch(Q){P&&Q instanceof Ky&&(z=!1),S.onError?.(Q)}},{emitOnBegin:!0,interval:p});return async()=>{P&&await kt(e,__,\"uninstallFilter\")({filter:P}),V()}})})():(()=>{let R=!0,S=()=>R=!1;return(async()=>{try{let M=(()=>{if(e.transport.type===\"fallback\"){let Q=e.transport.transports.find($=>$.config.type===\"webSocket\"||$.config.type===\"ipc\");return Q?Q.value:e.transport}return e.transport})(),P=i??(o?[o]:void 0),z=[];P&&(z=[P.flatMap($=>nv({abi:[$],eventName:$.name,args:n}))],o&&(z=z[0]));let{unsubscribe:V}=await M.subscribe({params:[\"logs\",{address:t,topics:z}],onData(Q){if(!R)return;let $=Q.result;try{let{eventName:oe,args:J}=X2({abi:P??[],data:$.data,topics:$.topics,strict:y}),re=Du($,{args:J,eventName:oe});u([re])}catch(oe){let J,re;if(oe instanceof jy||oe instanceof Wb){if(h)return;J=oe.abiItem.name,re=oe.abiItem.inputs?.some(K=>!(\"name\"in K&&K.name))}let q=Du($,{args:re?[]:{},eventName:J});u([q])}},onError(Q){c?.(Q)}});S=V,R||S()}catch(M){c?.(M)}})(),()=>S()})()}var YRe=Z(()=>{f();fs();CT();uD();w8();x2();Do();tx();T_();Ol();rse();C8();lD();$V();_D()});function ZRe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:i=e.pollingInterval}){return(typeof o<\"u\"?o:e.transport.type!==\"webSocket\"&&e.transport.type!==\"ipc\")?(()=>{let d=$r([\"watchPendingTransactions\",e.uid,t,i]);return Hu(d,{onTransactions:r,onError:n},p=>{let h,g=Qp(async()=>{try{if(!h)try{h=await kt(e,PV,\"createPendingTransactionFilter\")({});return}catch(v){throw g(),v}let y=await kt(e,x_,\"getFilterChanges\")({filter:h});if(y.length===0)return;if(t)p.onTransactions(y);else for(let v of y)p.onTransactions([v])}catch(y){p.onError?.(y)}},{emitOnBegin:!0,interval:i});return async()=>{h&&await kt(e,__,\"uninstallFilter\")({filter:h}),g()}})})():(()=>{let d=!0,p=()=>d=!1;return(async()=>{try{let{unsubscribe:h}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(g){if(!d)return;let y=g.result;r([y])},onError(g){n?.(g)}});p=h,d||p()}catch(h){n?.(h)}})(),()=>p()})()}var QRe=Z(()=>{f();Do();tx();T_();Ol();ose();lD();_D()});async function JRe(e,{chain:t}){let{id:n,name:r,nativeCurrency:o,rpcUrls:i,blockExplorers:a}=t;await e.request({method:\"wallet_addEthereumChain\",params:[{chainId:Ne(n),chainName:r,nativeCurrency:o,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:c})=>c):void 0}]},{dedupe:!0,retryCount:0})}var XRe=Z(()=>{f();xn()});async function D8(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}var BG=Z(()=>{f()});async function t1(e,t){let{account:n=e.account,chain:r=e.chain,accessList:o,authorizationList:i,blobs:a,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,type:v,value:x,...R}=t;if(typeof n>\"u\")throw new Ns({docsPath:\"/docs/actions/wallet/sendTransaction\"});let S=n?jn(n):null;try{zp(t);let M=await(async()=>{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await A8({authorization:i[0]}).catch(()=>{throw new Re(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(S?.type===\"json-rpc\"||S===null){let P;r!==null&&(P=await kt(e,_d,\"getChainId\")({}),pW({currentChainId:P,chain:r}));let z=e.chain?.formatters?.transactionRequest?.format,Q=(z||T0)({...qA(R,{format:z}),accessList:o,authorizationList:i,blobs:a,chainId:P,data:c,from:S?.address,gas:u,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,to:M,type:v,value:x}),$=Rce.get(e.uid),oe=$?\"wallet_sendTransaction\":\"eth_sendTransaction\";try{return await e.request({method:oe,params:[Q]},{retryCount:0})}catch(J){if($===!1)throw J;let re=J;if(re.name===\"InvalidInputRpcError\"||re.name===\"InvalidParamsRpcError\"||re.name===\"MethodNotFoundRpcError\"||re.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[Q]},{retryCount:0}).then(q=>(Rce.set(e.uid,!0),q)).catch(q=>{let K=q;throw K.name===\"MethodNotFoundRpcError\"||K.name===\"MethodNotSupportedRpcError\"?(Rce.set(e.uid,!1),re):K});throw re}}if(S?.type===\"local\"){let P=await kt(e,w_,\"prepareTransactionRequest\")({account:S,accessList:o,authorizationList:i,blobs:a,chain:r,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,nonceManager:S.nonceManager,parameters:[...Ise,\"sidecars\"],type:v,value:x,...R,to:M}),z=r?.serializers?.transaction,V=await S.signTransaction(P,{serializer:z});return await kt(e,D8,\"sendRawTransaction\")({serializedTransaction:V})}throw S?.type===\"smart\"?new FA({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new FA({docsPath:\"/docs/actions/wallet/sendTransaction\",type:S?.type})}catch(M){throw M instanceof FA?M:rG(M,{...t,account:S,chain:t.chain||void 0})}}var Rce,L8=Z(()=>{f();ka();Hy();tr();zV();Bie();Nse();AM();K3();Do();SI();KA();J2();sD();BG();Rce=new N0(128)});function $Re(e,t){let{abi:n,args:r,bytecode:o,...i}=t,a=VT({abi:n,args:r,bytecode:o});return t1(e,{...i,...i.authorizationList?{to:null}:{},data:a})}var e4e=Z(()=>{f();vV();L8()});async function t4e(e){return e.account?.type===\"local\"?[e.account.address]:(await e.request({method:\"eth_accounts\"},{dedupe:!0})).map(n=>Hb(n))}var n4e=Z(()=>{f();zb()});async function RD(e,t){let{account:n=e.account,capabilities:r,chain:o=e.chain,experimental_fallback:i,experimental_fallbackDelay:a=32,forceAtomic:c=!1,id:u,version:d=\"2.0.0\"}=t,p=n?jn(n):null,h=t.calls.map(g=>{let y=g,v=y.abi?vn({abi:y.abi,functionName:y.functionName,args:y.args}):y.data;return{data:y.dataSuffix&&v?Ri([v,y.dataSuffix]):v,to:y.to,value:y.value?Ne(y.value):void 0}});try{let g=await e.request({method:\"wallet_sendCalls\",params:[{atomicRequired:c,calls:h,capabilities:r,chainId:Ne(o.id),from:p?.address,id:u,version:d}]},{retryCount:0});return typeof g==\"string\"?{id:g}:g}catch(g){let y=g;if(i&&(y.name===\"MethodNotFoundRpcError\"||y.name===\"MethodNotSupportedRpcError\"||y.name===\"UnknownRpcError\"||y.details.toLowerCase().includes(\"does not exist / is not available\")||y.details.toLowerCase().includes(\"missing or invalid. request()\")||y.details.toLowerCase().includes(\"did not match any variant of untagged enum\")||y.details.toLowerCase().includes(\"account upgraded to unsupported contract\")||y.details.toLowerCase().includes(\"eip-7702 not supported\")||y.details.toLowerCase().includes(\"unsupported wc_ method\")||y.details.toLowerCase().includes(\"feature toggled misconfigured\"))){if(r&&Object.values(r).some(M=>!M.optional)){let M=\"non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.\";throw new N2(new Re(M,{details:M}))}if(c&&h.length>1){let S=\"`forceAtomic` is not supported on fallback to `eth_sendTransaction`.\";throw new P2(new Re(S,{details:S}))}let v=[];for(let S of h){let M=t1(e,{account:p,chain:o,data:S.data,to:S.to,value:S.value?qn(S.value):void 0});v.push(M),a>0&&await new Promise(P=>setTimeout(P,a))}let x=await Promise.allSettled(v);if(x.every(S=>S.status===\"rejected\"))throw x[0].reason;let R=x.map(S=>S.status===\"fulfilled\"?S.value:Oce);return{id:Ri([...R,Ne(o.id,{size:32}),Ice])}}throw rG(g,{...t,account:p,chain:t.chain})}}var Ice,Oce,UG=Z(()=>{f();ka();tr();CT();Pf();Mc();ks();xn();Nse();L8();Ice=\"0x5792579257925792579257925792579257925792579257925792579257925792\",Oce=Ne(0,{size:32})});async function r6(e,t){async function n(p){if(p.endsWith(Ice.slice(2))){let g=Ui(nT(p,-64,-32)),y=nT(p,0,-64).slice(2).match(/.{1,64}/g),v=await Promise.all(y.map(R=>Oce.slice(2)!==R?e.request({method:\"eth_getTransactionReceipt\",params:[`0x${R}`]},{dedupe:!0}):void 0)),x=v.some(R=>R===null)?100:v.every(R=>R?.status===\"0x1\")?200:v.every(R=>R?.status===\"0x0\")?500:600;return{atomic:!1,chainId:So(g),receipts:v.filter(Boolean),status:x,version:\"2.0.0\"}}return e.request({method:\"wallet_getCallsStatus\",params:[p]})}let{atomic:r=!1,chainId:o,receipts:i,version:a=\"2.0.0\",...c}=await n(t.id),[u,d]=(()=>{let p=c.status;return p>=100&&p<200?[\"pending\",p]:p>=200&&p<300?[\"success\",p]:p>=300&&p<700?[\"failure\",p]:p===\"CONFIRMED\"?[\"success\",200]:p===\"PENDING\"?[\"pending\",100]:[void 0,p]})();return{...c,atomic:r,chainId:o?So(o):void 0,receipts:i?.map(p=>({...p,blockNumber:qn(p.blockNumber),gasUsed:qn(p.gasUsed),status:mie[p.status]}))??[],statusCode:d,status:u,version:a}}var FG=Z(()=>{f();jb();kA();ks();B9();UG()});async function ID(e,t={}){let{account:n=e.account,chainId:r}=t,o=n?jn(n):void 0,i=r?[o?.address,[Ne(r)]]:[o?.address],a=await e.request({method:\"wallet_getCapabilities\",params:i}),c={};for(let[u,d]of Object.entries(a)){c[Number(u)]={};for(let[p,h]of Object.entries(d))p===\"addSubAccount\"&&(p=\"unstable_addSubAccount\"),c[Number(u)][p]=h}return typeof r==\"number\"?c[r]:c}var kce=Z(()=>{f();ka();xn()});async function r4e(e){return await e.request({method:\"wallet_getPermissions\"},{dedupe:!0})}var o4e=Z(()=>{f()});async function o6(e,t){let{account:n=e.account,chainId:r,nonce:o}=t;if(!n)throw new Ns({docsPath:\"/docs/eip7702/prepareAuthorization\"});let i=jn(n),a=(()=>{if(t.executor)return t.executor===\"self\"?t.executor:jn(t.executor)})(),c={address:t.contractAddress??t.address,chainId:r,nonce:o};return typeof c.chainId>\"u\"&&(c.chainId=e.chain?.id??await kt(e,_d,\"getChainId\")({})),typeof c.nonce>\"u\"&&(c.nonce=await kt(e,v_,\"getTransactionCount\")({address:i.address,blockTag:\"pending\"}),(a===\"self\"||a?.address&&Pl(a.address,i.address))&&(c.nonce+=1)),c}var HG=Z(()=>{f();ka();Hy();f_();Do();J2();aD()});async function i4e(e){return(await e.request({method:\"eth_requestAccounts\"},{dedupe:!0,retryCount:0})).map(n=>nr(n))}var a4e=Z(()=>{f();zb()});async function s4e(e,t){return e.request({method:\"wallet_requestPermissions\",params:[t]},{retryCount:0})}var c4e=Z(()=>{f()});async function OD(e,t){let{id:n}=t;await e.request({method:\"wallet_showCallsStatus\",params:[n]})}var Nce=Z(()=>{f()});async function u4e(e,t){let{account:n=e.account}=t;if(!n)throw new Ns({docsPath:\"/docs/eip7702/signAuthorization\"});let r=jn(n);if(!r.signAuthorization)throw new FA({docsPath:\"/docs/eip7702/signAuthorization\",metaMessages:[\"The `signAuthorization` Action does not support JSON-RPC Accounts.\"],type:r.type});let o=await o6(e,t);return r.signAuthorization(o)}var l4e=Z(()=>{f();ka();Hy();HG()});async function d4e(e,{account:t=e.account,message:n}){if(!t)throw new Ns({docsPath:\"/docs/actions/wallet/signMessage\"});let r=jn(t);if(r.signMessage)return r.signMessage({message:n});let o=typeof n==\"string\"?Pu(n):n.raw instanceof Uint8Array?Zn(n.raw):n.raw;return e.request({method:\"personal_sign\",params:[o,r.address]},{retryCount:0})}var f4e=Z(()=>{f();ka();Hy();xn()});async function p4e(e,t){let{account:n=e.account,chain:r=e.chain,...o}=t;if(!n)throw new Ns({docsPath:\"/docs/actions/wallet/signTransaction\"});let i=jn(n);zp({account:i,...t});let a=await kt(e,_d,\"getChainId\")({});r!==null&&pW({currentChainId:a,chain:r});let u=(r?.formatters||e.chain?.formatters)?.transactionRequest?.format||T0;return i.signTransaction?i.signTransaction({...o,chainId:a},{serializer:e.chain?.serializers?.transaction}):await e.request({method:\"eth_signTransaction\",params:[{...u(o),chainId:Ne(a),from:i.address}]},{retryCount:0})}var h4e=Z(()=>{f();ka();Hy();Bie();xn();K3();Do();KA();J2()});async function m4e(e,t){let{account:n=e.account,domain:r,message:o,primaryType:i}=t;if(!n)throw new Ns({docsPath:\"/docs/actions/wallet/signTypedData\"});let a=jn(n),c={EIP712Domain:uG({domain:r}),...t.types};if(cG({domain:r,message:o,primaryType:i,types:c}),a.signTypedData)return a.signTypedData({domain:r,message:o,primaryType:i,types:c});let u=SCe({domain:r,message:o,primaryType:i,types:c});return e.request({method:\"eth_signTypedData_v4\",params:[a.address,u]},{retryCount:0})}var g4e=Z(()=>{f();ka();Hy();Lse()});async function y4e(e,{id:t}){await e.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(t)}]},{retryCount:0})}var b4e=Z(()=>{f();xn()});var zG,v4e=Z(()=>{f();tr();zG=class extends Re{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:\"BundleFailedError\"}),Object.defineProperty(this,\"result\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}});async function j0(e,t){let{id:n,pollingInterval:r=e.pollingInterval,status:o=({statusCode:x})=>x===200||x>=300,retryCount:i=4,retryDelay:a=({count:x})=>~~(1<<x)*200,timeout:c=6e4,throwOnFailure:u=!1}=t,d=$r([\"waitForCallsStatus\",e.uid,n]),{promise:p,resolve:h,reject:g}=b8(),y,v=Hu(d,{resolve:h,reject:g},x=>{let R=Qp(async()=>{let S=M=>{clearTimeout(y),R(),M(),v()};try{let M=await dm(async()=>{let P=await kt(e,r6,\"getCallsStatus\")({id:n});if(u&&P.status===\"failure\")throw new zG(P);return P},{retryCount:i,delay:a});if(!o(M))return;S(()=>x.resolve(M))}catch(M){S(()=>x.reject(M))}},{interval:r,emitOnBegin:!0});return R});return y=c?setTimeout(()=>{v(),clearTimeout(y),g(new Pce({id:n}))},c):void 0,await p}var Pce,jG=Z(()=>{f();tr();v4e();Do();tx();T_();wV();fD();Ol();FG();Pce=class extends Re{constructor({id:t}){super(`Timed out while waiting for call bundle with id \"${t}\" to be confirmed.`,{name:\"WaitForCallsStatusTimeoutError\"})}}});async function w4e(e,t){return await e.request({method:\"wallet_watchAsset\",params:t},{retryCount:0})}var x4e=Z(()=>{f()});async function E4e(e,t){let{abi:n,account:r=e.account,address:o,args:i,dataSuffix:a,functionName:c,...u}=t;if(typeof r>\"u\")throw new Ns({docsPath:\"/docs/contract/writeContract\"});let d=r?jn(r):null,p=vn({abi:n,args:i,functionName:c});try{return await kt(e,t1,\"sendTransaction\")({data:`${p}${a?a.replace(\"0x\",\"\"):\"\"}`,to:o,account:d,...u})}catch(h){throw am(h,{abi:n,address:o,args:i,docsPath:\"/docs/contract/writeContract\",functionName:c,sender:d?.address})}}var A4e=Z(()=>{f();ka();Hy();Pf();HT();Do();L8()});var Jp=Z(()=>{f();GT();JV();cD();xD();yce();z0();Cce();FG();kce();HG();UG();L8();Nce();jG()});function qG(e=11){if(!GG||VG+e>256*2){GG=\"\",VG=0;for(let t=0;t<256;t++)GG+=(256+Math.random()*256|0).toString(16).substring(1)}return GG.substring(VG,VG+++e)}var VG,GG,Mce=Z(()=>{f();VG=256});function rx(e){let{batch:t,chain:n,ccipRead:r,key:o=\"base\",name:i=\"Base Client\",type:a=\"base\"}=e,c=e.experimental_blockTag??(typeof n?.experimental_preconfirmationTime==\"number\"?\"pending\":void 0),u=n?.blockTime??12e3,d=Math.min(Math.max(Math.floor(u/2),500),4e3),p=e.pollingInterval??d,h=e.cacheTime??p,g=e.account?jn(e.account):void 0,{config:y,request:v,value:x}=e.transport({chain:n,pollingInterval:p}),R={...y,...x},S={account:g,batch:t,cacheTime:h,ccipRead:r,chain:n,key:o,name:i,pollingInterval:p,request:v,transport:R,type:a,uid:qG(),...c?{experimental_blockTag:c}:{}};function M(P){return z=>{let V=z(P);for(let $ in S)delete V[$];let Q={...P,...V};return Object.assign(Q,{extend:M(Q)})}}return Object.assign(S,{extend:M(S)})}var KG=Z(()=>{f();ka();Mce()});function R4e(e){let{scheme:t,statement:n,...r}=e.match(U1t)?.groups??{},{chainId:o,expirationTime:i,issuedAt:a,notBefore:c,requestId:u,...d}=e.match(F1t)?.groups??{},p=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...r,...d,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...a?{issuedAt:new Date(a)}:{},...c?{notBefore:new Date(c)}:{},...u?{requestId:u}:{},...p?{resources:p}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}var U1t,F1t,I4e=Z(()=>{f();U1t=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,F1t=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/});function O4e(e){let{address:t,domain:n,message:r,nonce:o,scheme:i,time:a=new Date}=e;if(n&&r.domain!==n||o&&r.nonce!==o||i&&r.scheme!==i||r.expirationTime&&a>=r.expirationTime||r.notBefore&&a<r.notBefore)return!1;try{if(!r.address||!Un(r.address,{strict:!1})||t&&!Pl(r.address,t))return!1}catch{return!1}return!0}var k4e=Z(()=>{f();Bp();f_()});async function N4e(e,t){let{address:n,domain:r,message:o,nonce:i,scheme:a,signature:c,time:u=new Date,...d}=t,p=R4e(o);if(!p.address||!O4e({address:n,domain:r,message:p,nonce:i,scheme:a,time:u}))return!1;let g=fm(o);return S_(e,{address:p.address,hash:g,signature:c,...d})}var P4e=Z(()=>{f();oG();I4e();k4e();TD()});function j8(e){return{call:t=>cm(e,t),createAccessList:t=>IV(e,t),createBlockFilter:()=>QTe(e),createContractEventFilter:t=>kV(e,t),createEventFilter:t=>NV(e,t),createPendingTransactionFilter:()=>PV(e),estimateContractGas:t=>W6e(e,t),estimateGas:t=>T8(e,t),getBalance:t=>YT(e,t),getBlobBaseFee:()=>G6e(e),getBlock:t=>Ad(e,t),getBlockNumber:t=>rv(e,t),getBlockTransactionCount:t=>Q6e(e,t),getBytecode:t=>lm(e,t),getChainId:()=>_d(e),getCode:t=>lm(e,t),getContractEvents:t=>eG(e,t),getEip712Domain:t=>eCe(e,t),getEnsAddress:t=>MTe(e,t),getEnsAvatar:t=>VTe(e,t),getEnsName:t=>qTe(e,t),getEnsResolver:t=>YTe(e,t),getEnsText:t=>RV(e,t),getFeeHistory:t=>oCe(e,t),estimateFeesPerGas:t=>KV(e,t),getFilterChanges:t=>x_(e,t),getFilterLogs:t=>aCe(e,t),getGasPrice:()=>S8(e),getLogs:t=>I8(e,t),getProof:t=>pRe(e,t),estimateMaxPriorityFeePerGas:t=>z6e(e,t),getStorageAt:t=>mRe(e,t),getTransaction:t=>$2(e,t),getTransactionConfirmations:t=>yRe(e,t),getTransactionCount:t=>v_(e,t),getTransactionReceipt:t=>P8(e,t),multicall:t=>ED(e,t),prepareTransactionRequest:t=>w_(e,t),readContract:t=>ui(e,t),sendRawTransaction:t=>D8(e,t),simulate:t=>AD(e,t),simulateBlocks:t=>AD(e,t),simulateCalls:t=>IRe(e,t),simulateContract:t=>kRe(e,t),verifyHash:t=>S_(e,t),verifyMessage:t=>URe(e,t),verifySiweMessage:t=>N4e(e,t),verifyTypedData:t=>HRe(e,t),uninstallFilter:t=>__(e,t),waitForTransactionReceipt:t=>CD(e,t),watchBlocks:t=>WRe(e,t),watchBlockNumber:t=>LG(e,t),watchContractEvent:t=>GRe(e,t),watchEvent:t=>KRe(e,t),watchPendingTransactions:t=>ZRe(e,t)}}var Dce=Z(()=>{f();DTe();GTe();KTe();ZTe();ese();GT();tse();JTe();nse();rse();ose();V6e();ZV();QV();Rse();JV();q6e();KT();C8();J6e();J2();cD();Ose();tCe();iCe();lD();sCe();qV();$V();hRe();gRe();xD();bRe();aD();gce();yce();z0();bce();ORe();NRe();_D();TD();FRe();zRe();Cce();Tce();VRe();qRe();YRe();QRe();P4e();sD();BG()});function ox(e){let{key:t=\"public\",name:n=\"Public Client\"}=e;return rx({...e,key:t,name:n,type:\"publicClient\"}).extend(j8)}var M4e=Z(()=>{f();KG();Dce()});function Lce(e){return{addChain:t=>JRe(e,t),deployContract:t=>$Re(e,t),getAddresses:()=>t4e(e),getCallsStatus:t=>r6(e,t),getCapabilities:t=>ID(e,t),getChainId:()=>_d(e),getPermissions:()=>r4e(e),prepareAuthorization:t=>o6(e,t),prepareTransactionRequest:t=>w_(e,t),requestAddresses:()=>i4e(e),requestPermissions:t=>s4e(e,t),sendCalls:t=>RD(e,t),sendRawTransaction:t=>D8(e,t),sendTransaction:t=>t1(e,t),showCallsStatus:t=>OD(e,t),signAuthorization:t=>u4e(e,t),signMessage:t=>d4e(e,t),signTransaction:t=>p4e(e,t),signTypedData:t=>m4e(e,t),switchChain:t=>y4e(e,t),waitForCallsStatus:t=>j0(e,t),watchAsset:t=>w4e(e,t),writeContract:t=>E4e(e,t)}}var D4e=Z(()=>{f();J2();XRe();e4e();n4e();FG();kce();o4e();HG();sD();a4e();c4e();UG();BG();L8();Nce();l4e();f4e();h4e();g4e();b4e();jG();x4e();A4e()});function YG({key:e,methods:t,name:n,request:r,retryCount:o=3,retryDelay:i=150,timeout:a,type:c},u){let d=qG();return{config:{key:e,methods:t,name:n,request:r,retryCount:o,retryDelay:i,timeout:a,type:c},request:hCe(r,{methods:t,retryCount:o,retryDelay:i,uid:d}),value:u}}var Bce=Z(()=>{f();mCe();Mce()});function kD(e,t={}){let{key:n=\"custom\",methods:r,name:o=\"Custom Provider\",retryDelay:i}=t;return({retryCount:a})=>YG({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:i,type:\"custom\"})}var L4e=Z(()=>{f();Bce()});var ZG,B4e=Z(()=>{f();tr();ZG=class extends Re{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\",name:\"UrlRequiredError\"})}}});function mu(e,t={}){let{batch:n,fetchFn:r,fetchOptions:o,key:i=\"http\",methods:a,name:c=\"HTTP JSON-RPC\",onFetchRequest:u,onFetchResponse:d,retryDelay:p,raw:h}=t;return({chain:g,retryCount:y,timeout:v})=>{let{batchSize:x=1e3,wait:R=0}=typeof n==\"object\"?n:{},S=t.retryCount??y,M=v??t.timeout??1e4,P=e||g?.rpcUrls.default.http[0];if(!P)throw new ZG;let z=bCe(P,{fetchFn:r,fetchOptions:o,onRequest:u,onResponse:d,timeout:M});return YG({key:i,methods:a,name:c,async request({method:V,params:Q}){let $={method:V,params:Q},{schedule:oe}=xV({id:P,wait:R,shouldSplitBatch(K){return K.length>x},fn:K=>z.request({body:K}),sort:(K,U)=>K.id-U.id}),J=async K=>n?oe(K):[await z.request({body:K})],[{error:re,result:q}]=await J($);if(h)return{error:re,result:q};if(re)throw new WA({body:$,error:re,url:P});return q},retryCount:S,retryDelay:p,timeout:M,type:\"http\"},{fetchOptions:o,url:P})}}var U4e=Z(()=>{f();lT();B4e();Jae();vCe();Bce()});function C_(e){let{r:t,s:n}=$y.Signature.fromCompact(e.slice(2,130)),r=+`0x${e.slice(130)}`,[o,i]=(()=>{if(r===0||r===1)return[void 0,r];if(r===27)return[BigInt(r),0];if(r===28)return[BigInt(r),1];throw new Error(\"Invalid yParityOrV value\")})();return typeof o<\"u\"?{r:Ne(t,{size:32}),s:Ne(n,{size:32}),v:o,yParity:i}:{r:Ne(t,{size:32}),s:Ne(n,{size:32}),yParity:i}}var F4e=Z(()=>{f();iD();xn()});var pn=Z(()=>{f();iT();KG();M4e();Dce();D4e();L4e();U4e();j2();Lj();tr();Kb();CT();aT();uD();Cae();L0();Pf();uCe();zb();Bp();f_();_0();S0();NA();$h();jb();kA();ks();Pc();xn();iV();rm();Cie();fD();Mse();oG();lG();sRe();F4e();Bj();lRe()});var Zce=me((Ikn,Yce)=>{\"use strict\";f();var V1t=Object.prototype.hasOwnProperty,Uf=\"~\";function PD(){}Object.create&&(PD.prototype=Object.create(null),new PD().__proto__||(Uf=!1));function G1t(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function rIe(e,t,n,r,o){if(typeof n!=\"function\")throw new TypeError(\"The listener must be a function\");var i=new G1t(n,r||e,o),a=Uf?Uf+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function rq(e,t){--e._eventsCount===0?e._events=new PD:delete e._events[t]}function Td(){this._events=new PD,this._eventsCount=0}Td.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)V1t.call(n,r)&&t.push(Uf?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Td.prototype.listeners=function(t){var n=Uf?Uf+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a};Td.prototype.listenerCount=function(t){var n=Uf?Uf+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Td.prototype.emit=function(t,n,r,o,i,a){var c=Uf?Uf+t:t;if(!this._events[c])return!1;var u=this._events[c],d=arguments.length,p,h;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,n),!0;case 3:return u.fn.call(u.context,n,r),!0;case 4:return u.fn.call(u.context,n,r,o),!0;case 5:return u.fn.call(u.context,n,r,o,i),!0;case 6:return u.fn.call(u.context,n,r,o,i,a),!0}for(h=1,p=new Array(d-1);h<d;h++)p[h-1]=arguments[h];u.fn.apply(u.context,p)}else{var g=u.length,y;for(h=0;h<g;h++)switch(u[h].once&&this.removeListener(t,u[h].fn,void 0,!0),d){case 1:u[h].fn.call(u[h].context);break;case 2:u[h].fn.call(u[h].context,n);break;case 3:u[h].fn.call(u[h].context,n,r);break;case 4:u[h].fn.call(u[h].context,n,r,o);break;default:if(!p)for(y=1,p=new Array(d-1);y<d;y++)p[y-1]=arguments[y];u[h].fn.apply(u[h].context,p)}}return!0};Td.prototype.on=function(t,n,r){return rIe(this,t,n,r,!1)};Td.prototype.once=function(t,n,r){return rIe(this,t,n,r,!0)};Td.prototype.removeListener=function(t,n,r,o){var i=Uf?Uf+t:t;if(!this._events[i])return this;if(!n)return rq(this,i),this;var a=this._events[i];if(a.fn)a.fn===n&&(!o||a.once)&&(!r||a.context===r)&&rq(this,i);else{for(var c=0,u=[],d=a.length;c<d;c++)(a[c].fn!==n||o&&!a[c].once||r&&a[c].context!==r)&&u.push(a[c]);u.length?this._events[i]=u.length===1?u[0]:u:rq(this,i)}return this};Td.prototype.removeAllListeners=function(t){var n;return t?(n=Uf?Uf+t:t,this._events[n]&&rq(this,n)):(this._events=new PD,this._eventsCount=0),this};Td.prototype.off=Td.prototype.removeListener;Td.prototype.addListener=Td.prototype.on;Td.prefixed=Uf;Td.EventEmitter=Td;typeof Yce<\"u\"&&(Yce.exports=Td)});var q0,oIe,R_=Z(()=>{f();q0=he(Zce(),1),oIe=q0.default});var mIe=me(hIe=>{\"use strict\";f();(function(){function e(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}function t(y,v){p||o.startTransition===void 0||(p=!0,console.error(\"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"));var x=v();if(!h){var R=v();i(x,R)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),h=!0)}R=a({inst:{value:x,getSnapshot:v}});var S=R[0].inst,M=R[1];return u(function(){S.value=x,S.getSnapshot=v,n(S)&&M({inst:S})},[y,x,v]),c(function(){return n(S)&&M({inst:S}),y(function(){n(S)&&M({inst:S})})},[y]),d(x),x}function n(y){var v=y.getSnapshot;y=y.value;try{var x=v();return!i(y,x)}catch{return!0}}function r(y,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=$e(),i=typeof Object.is==\"function\"?Object.is:e,a=o.useState,c=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,p=!1,h=!1,g=typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"?r:t;hIe.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yIe=me((c7n,gIe)=>{\"use strict\";f();gIe.exports=mIe()});var vIe=me(bIe=>{\"use strict\";f();(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=$e(),n=yIe(),r=typeof Object.is==\"function\"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,c=t.useMemo,u=t.useDebugValue;bIe.useSyncExternalStoreWithSelector=function(d,p,h,g,y){var v=i(null);if(v.current===null){var x={hasValue:!1,value:null};v.current=x}else x=v.current;v=c(function(){function S(Q){if(!M){if(M=!0,P=Q,Q=g(Q),y!==void 0&&x.hasValue){var $=x.value;if(y($,Q))return z=$}return z=Q}if($=z,r(P,Q))return $;var oe=g(Q);return y!==void 0&&y($,oe)?(P=Q,$):(P=Q,z=oe)}var M=!1,P,z,V=h===void 0?null:h;return[function(){return S(p())},V===null?void 0:function(){return S(V())}]},[p,h,g,y]);var R=o(d,v[0],v[1]);return a(function(){x.hasValue=!0,x.value=R},[R]),u(R),R},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xIe=me((f7n,wIe)=>{\"use strict\";f();wIe.exports=vIe()});var Eue,FIe=Z(()=>{Eue={name:\"@base-org/account\",version:\"1.1.1\",description:\"Base Account SDK\",keywords:[\"base\",\"account\",\"sdk\",\"web3\"],publishConfig:{access:\"public\"},type:\"module\",main:\"dist/index.js\",types:\"dist/index.d.ts\",browser:\"dist/base-account.min.js\",exports:{\".\":{types:\"./dist/index.d.ts\",import:\"./dist/index.js\",require:\"./dist/index.js\"},\"./payment\":{types:\"./dist/interface/payment/index.d.ts\",import:\"./dist/interface/payment/index.js\",require:\"./dist/interface/payment/index.js\"},\"./ui-assets\":{types:\"./dist/ui/assets/index.d.ts\",import:\"./dist/ui/assets/index.js\",require:\"./dist/ui/assets/index.js\"}},files:[\"dist\",\"README.md\",\"LICENSE\"],sideEffects:!1,repository:\"https://github.com/base/account-sdk.git\",author:\"Base\",license:\"Apache-2.0\",scripts:{clean:\"rm -rf dist && rm -rf node_modules\",pretest:\"node compile-assets.cjs\",test:\"vitest\",\"test:coverage\":\"vitest --coverage\",prebuild:\"rm -rf ./dist\",build:\"node compile-assets.cjs && tsc -p ./tsconfig.build.json && tsc-alias && yarn build:browser\",\"build:browser\":\"rollup -c rollup.config.js\",prepublishOnly:\"yarn build\",dev:\"yarn build && tsc --watch & nodemon --watch dist --delay 1 --exec tsc-alias\",typecheck:\"tsc --noEmit\",lint:\"biome lint .\",format:\"biome format . --write\",\"format:check\":\"biome check . --formatter-enabled=true --linter-enabled=false --organize-imports-enabled=false\",size:\"size-limit\"},dependencies:{\"@noble/hashes\":\"1.4.0\",clsx:\"1.2.1\",eventemitter3:\"5.0.1\",\"idb-keyval\":\"6.2.1\",ox:\"0.6.9\",preact:\"10.24.2\",viem:\"^2.31.7\",zustand:\"5.0.3\"},devDependencies:{\"@rollup/plugin-commonjs\":\"^25.0.7\",\"@rollup/plugin-json\":\"^6.1.0\",\"@rollup/plugin-node-resolve\":\"^15.2.3\",\"@rollup/plugin-replace\":\"^5.0.5\",\"@rollup/plugin-typescript\":\"^11.1.6\",\"@size-limit/preset-big-lib\":\"^11.1.6\",\"@testing-library/jest-dom\":\"^6.5.0\",\"@testing-library/preact\":\"^3.2.4\",\"@types/node\":\"^14.18.54\",\"@vitest/coverage-v8\":\"2.1.2\",\"@vitest/web-worker\":\"3.2.1\",\"fake-indexeddb\":\"^6.0.0\",glob:\"^11.0.0\",\"jest-websocket-mock\":\"^2.4.0\",jsdom:\"^25.0.1\",nodemon:\"^3.1.0\",rollup:\"^4.9.6\",\"rollup-plugin-terser\":\"^7.0.2\",sass:\"^1.64.1\",\"size-limit\":\"^11.1.6\",\"tsc-alias\":\"^1.8.8\",tslib:\"^2.6.0\",typescript:\"^5.1.6\",vitest:\"^2.1.9\"},\"size-limit\":[{path:\"./dist/index.js\",limit:\"31 KB\",import:\"*\"}]}});var HIe,gq,I_,Z0,ix=Z(()=>{f();FIe();HIe=\"https://keys.coinbase.com/connect\",gq=\"https://rpc.wallet.coinbase.com\",I_=Eue.name,Z0=Eue.version});function jD(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;let a=u=>u===null?null:JSON.parse(u,t?.reviver),c=(i=n.getItem(o))!=null?i:null;return c instanceof Promise?c.then(a):a(c)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,t?.replacer)),removeItem:o=>n.removeItem(o)}}var Aue,$1t,yq,_ue=Z(()=>{f();Aue=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(r){return Aue(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Aue(r)(n)}}}},$1t=(e,t)=>(n,r,o)=>{let i={storage:jD(()=>localStorage),partialize:x=>x,version:0,merge:(x,R)=>({...R,...x}),...t},a=!1,c=new Set,u=new Set,d=i.storage;if(!d)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${i.name}\\', the given storage is currently unavailable.`),n(...x)},r,o);let p=()=>{let x=i.partialize({...r()});return d.setItem(i.name,{state:x,version:i.version})},h=o.setState;o.setState=(x,R)=>{h(x,R),p()};let g=e((...x)=>{n(...x),p()},r,o);o.getInitialState=()=>g;let y,v=()=>{var x,R;if(!d)return;a=!1,c.forEach(M=>{var P;return M((P=r())!=null?P:g)});let S=((R=i.onRehydrateStorage)==null?void 0:R.call(i,(x=r())!=null?x:g))||void 0;return Aue(d.getItem.bind(d))(i.name).then(M=>{if(M)if(typeof M.version==\"number\"&&M.version!==i.version){if(i.migrate){let P=i.migrate(M.state,M.version);return P instanceof Promise?P.then(z=>[!0,z]):[!0,P]}console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var P;let[z,V]=M;if(y=i.merge(V,(P=r())!=null?P:g),n(y,!0),z)return p()}).then(()=>{S?.(y,void 0),y=r(),a=!0,u.forEach(M=>M(y))}).catch(M=>{S?.(void 0,M)})};return o.persist={setOptions:x=>{i={...i,...x},x.storage&&(d=x.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(u.add(x),()=>{u.delete(x)})},i.skipHydration||v(),y||g},yq=$1t});var zIe,Q0,s6=Z(()=>{f();zIe=e=>{let t,n=new Set,r=(d,p)=>{let h=typeof d==\"function\"?d(t):d;if(!Object.is(h,t)){let g=t;t=p??(typeof h!=\"object\"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=t=e(r,o,c);return c},Q0=e=>e?zIe(e):zIe});var ebt,tbt,nbt,rbt,obt,ibt,abt,cc,sbt,cbt,ubt,lbt,dbt,fbt,Sue,pbt,Ut,$p=Z(()=>{f();ix();_ue();s6();ebt=()=>({chains:[]}),tbt=()=>({keys:{}}),nbt=()=>({account:{}}),rbt=()=>({subAccount:void 0}),obt=()=>({subAccountConfig:{}}),ibt=()=>({spendPermissions:[]}),abt=()=>({config:{version:Z0}}),cc=Q0(yq((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ebt(...e)),tbt(...e)),nbt(...e)),rbt(...e)),ibt(...e)),abt(...e)),obt(...e)),{name:\"base-acc-sdk.store\",storage:jD(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),sbt={get:()=>cc.getState().subAccountConfig,set:e=>{cc.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{cc.setState({subAccountConfig:{}})}},cbt={get:()=>cc.getState().subAccount,set:e=>{cc.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{cc.setState({subAccount:void 0})}},ubt={get:()=>cc.getState().spendPermissions,set:e=>{cc.setState({spendPermissions:e})},clear:()=>{cc.setState({spendPermissions:[]})}},lbt={get:()=>cc.getState().account,set:e=>{cc.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{cc.setState({account:{}})}},dbt={get:()=>cc.getState().chains,set:e=>{cc.setState({chains:e})},clear:()=>{cc.setState({chains:[]})}},fbt={get:e=>cc.getState().keys[e],set:(e,t)=>{cc.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[e]:t})}))},clear:()=>{cc.setState({keys:{}})}},Sue={get:()=>cc.getState().config,set:e=>{cc.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},pbt={subAccounts:cbt,subAccountsConfig:sbt,spendPermissions:ubt,account:lbt,chains:dbt,keys:fbt,config:Sue},Ut=Object.assign(Object.assign({},cc),pbt)});var jIe,WIe=Z(()=>{f();jIe=\\'!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\"\")}}};e.exports=t},562:e=>{var t,n;t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\"\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\"=\");return n.join(\"\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\"\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\"binary\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\"Illegal argument \"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\"mark.\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\"4g\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\"Perfume.js:\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\"slow-2g\":case\"2g\":case\"3g\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\"number\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\"CLS\",\"INP\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\"serviceWorker\"in c?c.serviceWorker.controller?\"controlled\":\"supported\":\"unsupported\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\"CLS\",\"INP\"].includes(e)?u():(s=u,\"requestIdleCallback\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\"self\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\"good\":t<=L[e][1]?\"needsImprovement\":\"poor\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\"number\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\"FCP\"===n&&(b.value=i),[\"FCP\",\"LCP\"].includes(n)&&!T[0]&&(T[0]=S(\"longtask\",I)),\"FID\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\"TBT\",rating:U(\"TBT\",w.value),value:w.value,navigationType:o}),R(\"dataConsumption\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},z=function(e){if(\"loading\"===document.readyState)return\"loading\";var t=F();if(t){if(e<t.domInteractive)return\"loading\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\"dom-interactive\";if(0===t.domComplete||e<t.domComplete)return\"dom-content-loaded\"}return\"complete\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\"\")},$=function(e,t){var n=\"\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\"#\"+r.id:K(r)+(r.className&&r.className.length?\".\"+r.className.replace(/\\\\\\\\s+/g,\".\"):\"\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\">\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\"navigate\";return W()>=0?r=\"back-forward-cache\":n&&(r=document.prerendering||V()>0?\"prerender\":document.wasDiscarded?\"restore\":n.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\"pagehide\"!==r.type&&\"hidden\"!==document.visibilityState||(e(r),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\"poor\":e>t[0]?\"needs-improvement\":\"good\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\"hidden\"===document.visibilityState&&te>-1&&(te=\"visibilitychange\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\"visibilitychange\",re,!0),addEventListener(\"prerenderingchange\",re,!0)},ae=function(){removeEventListener(\"visibilitychange\",re,!0),removeEventListener(\"prerenderingchange\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\"FCP\"),o=X(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\"FCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\"first-input\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",n,ce),removeEventListener(\"pointercancel\",r,ce)};addEventListener(\"pointerup\",n,ce),addEventListener(\"pointercancel\",r,ce)}(t,e):le(t,e)}},me=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\"TTFB\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\"TTFB\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\"ET\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\"resourceTiming\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\"CLS\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\"layout-shift\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\"CLS\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\"FID\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\"first-input\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\"FID\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\"LCP\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\"largest-contentful-paint\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\"LCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\"resource\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\"interactionCount\"in performance||D||(D=X(\"event\",be,{type:\"event\",buffered:!0,durationThreshold:0}));var r,i=J(\"INP\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\"first-input\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\"event\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\"first-input\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\"INP\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\"resource\",je),a.isElementTiming&&S(\"element\",Oe)},Ie=function(e){var t=\"usageDetails\"in e?e.usageDetails:{};R(\"storageEstimate\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\"step.\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\"good\":e<=t[1]?\"needsImprovement\":\"poor\"}(d,c);d>=0&&(N(\"userJourneyStep\",d,m,{stepName:e},void 0),u.measure(\"step.\".concat(e,\"_vitals_\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\"stepVital\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\"\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\"9.0.0-rc.3\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\"PerformanceObserver\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\"visibilitychange\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\"navigation\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\"navigationTiming\",t),t.redirectTime&&q({attribution:{},name:\"RT\",rating:U(\"RT\",t.redirectTime),value:t.redirectTime}),R(\"networkInformation\",function(){if(\"connection\"in c){var e=c.connection;return\"object\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\"function\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\"mark_\".concat(e,\"_start\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\"mark_\".concat(e,\"_end\")),delete g[e];var r=function(e){u.measure(e,\"mark_\".concat(e,\"_start\"),\"mark_\".concat(e,\"_end\"));var t=u.getEntriesByName(e).pop();return t&&\"measure\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\"mark_\".concat(e,\"_start\")),u.clearMarks(\"mark_\".concat(e,\"_end\")))},e.prototype.markNTBT=function(){var e=this;this.start(\"ntbt\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\"ntbt\",{},!1),q({attribution:{},name:\"NTBT\",rating:U(\"NTBT\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\"use strict\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\"use strict\";var o=\"function\",s=\"undefined\",c=\"object\",u=\"string\",l=\"major\",d=\"model\",p=\"name\",m=\"type\",f=\"vendor\",v=\"version\",g=\"architecture\",b=\"console\",h=\"mobile\",w=\"tablet\",y=\"smarttv\",T=\"wearable\",k=\"embedded\",_=\"Amazon\",S=\"Apple\",E=\"ASUS\",x=\"BlackBerry\",O=\"Browser\",j=\"Chrome\",N=\"Firefox\",I=\"Google\",P=\"Huawei\",M=\"LG\",B=\"Microsoft\",C=\"Motorola\",D=\"Opera\",A=\"Samsung\",L=\"Sharp\",U=\"Sony\",R=\"Xiaomi\",q=\"Zebra\",F=\"Facebook\",z=\"Chromium OS\",K=\"Mac OS\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\"\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\"?\"===n?a:n}else if(Q(t[n],e))return\"?\"===n?a:n;return e},X={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Chrome\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Edge\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Mini\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"UC\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\"WeChat(Win) Desktop\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"WeChat\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Konqueror\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\"IE\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Yandex\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 Secure \"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" Focus\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Touch\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Coc Coc\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Dolphin\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Coast\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"MIUI \"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\"360 \"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 \"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\" \"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\"GSA\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"TikTok\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\" Headless\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\" WebView\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\"Android \"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\"Mobile Safari\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\"Netscape\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\" Reality\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\"amd64\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\"ia32\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\"arm64\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[g,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\"\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\"OPPO\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\"Vivo\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\"Realme\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\"Lenovo\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\" \"],[f,\"Nokia\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\"Xperia Tablet\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\"OnePlus\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\"HTC\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\" \"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\"Acer\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\"Meizu\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\"Fairphone\"],[m,h]],[/(u304aa)/i],[d,[f,\"AT&T\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\"Siemens\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\"RCA\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\"Dell\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\"Verizon\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\"Barnes & Noble\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\"NuVision\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\"ZTE\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\"ZTE\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\"Swiss\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\"Swiss\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\"Zeki\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\"Dragon Touch\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\"Insignia\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\"NextBook\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\"Voice\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\"LvTel\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\"Essential\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\"Envizen\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\"MachSpeed\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\"Rotor\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\"Nvidia\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\" \"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\"SmartTV\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\" TV\"],[m,y]],[/crkey/i],[[d,j+\"cast\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\"Nvidia\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\"Generic\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"EdgeHTML\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Blink\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\"Windows\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\".\"],[p,\"iOS\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\".\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\"Symbian\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" OS\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"webOS\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\"watchOS\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\"cast\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\"Solaris\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\"\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\"\").split(\".\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\"Brave\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\"Macintosh\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\"iPad\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\"Unknown\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.35\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\"object\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{\"use strict\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\"fbclid\",e.gclid=\"gclid\",e.msclkid=\"msclkid\",e.ptclid=\"ptclid\",e.ttclid=\"ttclid\",e.utm_source=\"utm_source\",e.utm_medium=\"utm_medium\",e.utm_campaign=\"utm_campaign\",e.utm_term=\"utm_term\",e.utm_content=\"utm_content\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\"low\",e.high=\"high\",e}({}),d=function(e){return e.count=\"count\",e.rate=\"rate\",e.gauge=\"gauge\",e.distribution=\"distribution\",e.histogram=\"histogram\",e}({}),p=function(e){return e.commerce_merchant=\"commerce_merchant\",e.device=\"device\",e.edp_fingerprint_id=\"edp_fingerprint_id\",e.nft_user=\"nft_user\",e.user=\"user\",e.wallet_user=\"wallet_user\",e.uuid=\"user_uuid\",e}({}),m=function(e){return e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\",e}({}),f=function(e){return e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e}({}),v=function(e){return e.unknown=\"unknown\",e.web=\"web\",e.android=\"android\",e.ios=\"ios\",e.mobile_web=\"mobile_web\",e.tablet_web=\"tablet_web\",e.server=\"server\",e.windows=\"windows\",e.macos=\"macos\",e.extension=\"extension\",e}({}),g=function(e){return e.web=\"Web\",e.ios=\"iOS\",e.android=\"Android\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\"notLoggedIn\",e[e.loggedIn=1]=\"loggedIn\",e}({}),h=function(e){return e.ac=\"ac\",e.af=\"af\",e.ah=\"ah\",e.al=\"al\",e.am=\"am\",e.ar=\"ar\",e.as=\"as\",e}({}),w=function(e){return e.pv=\"pv\",e}({}),y=function(e){return e.xs=\"xs\",e.s=\"s\",e.m=\"m\",e.l=\"l\",e.xl=\"xl\",e.xxl=\"xxl\",e}({});const T=\"https://analytics-service-dev.cbhq.net\",k=3e5,_=5e3,S=\"analytics-db\",E=\"experiment-exposure-db\",x=\"Analytics SDK:\",O=Object.values(e),j=\"pageview\",N=\"session_duration\",I={navigationTiming:{eventName:\"perf_navigation_timing\"},redirectTime:{eventName:\"perf_redirect_time\"},RT:{eventName:\"perf_redirect_time\"},TTFB:{eventName:\"perf_time_to_first_byte\"},networkInformation:{eventName:\"perf_network_information\"},storageEstimate:{eventName:\"perf_storage_estimate\"},FCP:{eventName:\"perf_first_contentful_paint\"},FID:{eventName:\"perf_first_input_delay\"},LCP:{eventName:\"perf_largest_contentful_paint\"},CLS:{eventName:\"perf_cumulative_layout_shift\"},TBT:{eventName:\"perf_total_blocking_time\"},NTBT:{eventName:\"perf_navigation_total_blocking_time\"},INP:{eventName:\"perf_interact_to_next_paint\"},ET:{eventName:\"perf_element_timing\"},userJourneyStep:{eventName:\"perf_user_journey_step\"}},P=\"1\",M=\"web\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\"/amp\",metricsEndPoint:e+\"/metrics\",exposureEndpoint:e+\"/track-exposures\",tracesEndpoint:e+\"/traces\"}}const A=B({authCookie:\"logged_in\",amplitudeApiKey:\"\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\"\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\"https://analytics-service-internal-dev.cbhq.net\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\"https://analytics-service-internal.cbhq.net\":\"https://as.coinbase.com\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\"android\"===A.platform}function F(){return\"ios\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\"serviceWorker\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\"(max-width: 560px)\").matches:return v.mobile_web;case window.matchMedia(\"(max-width: 1024px, min-width: 561px)\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\"requestIdleCallback\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\"ua_parser_start\");const t=new(Q())(null!=(e=W.userAgent)?e:\"\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\"ua_parser_end\"),performance.measure(\"ua_parser\",\"ua_parser_start\",\"ua_parser_end\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\"\",pageKeyRegex:{},pagePath:\"\",prevPageKey:\"\",prevPagePath:\"\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\"\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\"\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\"\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\"\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\"\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\"action\",\"component_type\",\"component_name\",\"context\",\"logging_id\"],ke=[\"num_non_hardware_accounts\",\"ujs\"],_e=\"ujs_\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\"IdentityFlow property names must have snake case format\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\"SDK platform not initialized\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\"done\"===t)return Ke.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||$e.get(e);if(\"store\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e};function Ve(e){return\"function\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"complete\",i),e.removeEventListener(\"error\",a),e.removeEventListener(\"abort\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\"AbortError\",\"AbortError\")),r()};e.addEventListener(\"complete\",i),e.addEventListener(\"error\",a),e.addEventListener(\"abort\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"success\",i),e.removeEventListener(\"error\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\"success\",i),e.addEventListener(\"error\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"],Ze=[\"put\",\"add\",\"delete\",\"clear\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\"string\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\"\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\"readwrite\":\"readonly\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\"IndexedDB:Get:InternalError\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\"IndexedDB:Set:InternalError\"))}},st=()=>{\"server\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\"rgb(5,177,105)\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\"Started new session:\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\"@cbhq/client-analytics\",version:\"10.6.0\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\"true\":\"false\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\"application/x-www-form-urlencoded; charset=UTF-8\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\"application/json\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\"POST\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\"Content-Type\",kt),H.jwt&&e.setRequestHeader(\"authorization\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\"sendBeacon\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\"Content-Type\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\"POST\",mode:\"no-cors\",headers:e,body:c}).catch((e=>{i(e,{context:\"AnalyticsSDKApiError\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\"\";return Et()(\"2\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\"CircularJsonReference\",this.message=e,\"function\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\"DomReferenceInAnalyticsEvent\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\"userId not set in Logged-in\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\", \"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\"string\",\"number\",\"boolean\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\"\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\"unknown\"),{listEventType:r});n=a,A.onError(new Nt(\"Found DOM element reference\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\"2\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\"Batch Events\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\"number\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\"missing logData\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Metrics\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\"unknown\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\"hidden\",n=!1)=>{cn||(addEventListener(\"pagehide\",un),addEventListener(\"beforeunload\",(()=>{})),cn=!0),addEventListener(\"visibilitychange\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\"\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\"upgradeneeded\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\"blocked\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\"close\",(()=>a())),i&&e.addEventListener(\"versionchange\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\"keyval-store\",1,{upgrade(e){e.createObjectStore(\"keyval\")}});rt({idbKeyval:{get:async t=>(await e).get(\"keyval\",t),set:async(t,n)=>(await e).put(\"keyval\",n,t),delete:async t=>(await e).delete(\"keyval\",t),keys:async()=>(await e).getAllKeys(\"keyval\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\"Initialized Analytics:\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\"Initialized Analytics IndexedDB:\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\"hidden\"),ln((()=>{pn()}),\"visible\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\"resize\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\"unsupported\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\"\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\"navigationTiming\"===r)t&&\"number\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\"TTFB\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\"networkInformation\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\"storageEstimate\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\"perf_storage_estimate_caches\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\"perf_storage_estimate_indexed_db\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\"CLS\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\"FID\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\"\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\"userJourneyStep\"===r?($t(\"perf_user_journey_step\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\"\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\"LCP\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\"Identify:\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\"routeChangeComplete\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\"cb_button\",uuid:\"e921a074-40e6-4371-8700-134d5cd633e6\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Traces\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\"x-datadog-origin\":\"rum\",\"x-datadog-parent-id\":t,\"x-datadog-sampling-priority\":\"1\",\"x-datadog-trace-id\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\"performance\"in window&&\"mark\"in performance&&\"getEntriesByName\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\"\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\"end\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\"start\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]||(Wn(e,\"start\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\"start\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]&&(Wn(e,\"end\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\"\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\"X-CB-Device-ID\":H.deviceId||\"unknown\",\"X-CB-Is-Logged-In\":H.userId?\"true\":\"false\",\"X-CB-Pagekey\":re.pageKey||\"unknown\",\"X-CB-UJS\":(e=Se.ujs,void 0===e||0===e.length?\"\":e.join(\",\")),\"X-CB-Platform\":A.platform||\"unknown\",\"X-CB-Project-Name\":A.projectName||\"unknown\",\"X-CB-Session-UUID\":oe.sessionUUID||\"unknown\",\"X-CB-Version-Name\":A.version?String(A.version):\"unknown\"};var e}})(),r})()}));\\'});var VIe,hbt,GIe=Z(()=>{f();$p();WIe();VIe=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let n=document.createElement(\"script\");n.textContent=jIe,n.type=\"text/javascript\",document.head.appendChild(n),hbt(),document.head.removeChild(n),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),hbt=()=>{var e,t,n;if(typeof window<\"u\"){let r=(n=(e=Ut.config.get().deviceId)!==null&&e!==void 0?e:(t=window.crypto)===null||t===void 0?void 0:t.randomUUID())!==null&&n!==void 0?n:\"\";if(window.ClientAnalytics){let{init:o,identify:i,PlatformName:a}=window.ClientAnalytics;o({isProd:!0,amplitudeApiKey:\"c66737ad47ec354ced777935b0af822e\",platform:a.web,projectName:\"base_account_sdk\",showDebugLogging:!1,version:\"1.0.0\",apiEndpoint:\"https://cca-lite.coinbase.com\"}),i({deviceId:r}),Ut.config.set({deviceId:r})}}}});var qIe,Tue,Cd,bq,c6=Z(()=>{f();qIe=\"0xba5ed110efdba3d005bfc882d75358acbbb85842\",Tue=\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\",Cd=[{inputs:[],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"AlreadyOwner\",type:\"error\"},{inputs:[],name:\"Initialized\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidEthereumAddressOwner\",type:\"error\"},{inputs:[{name:\"key\",type:\"uint256\"}],name:\"InvalidNonceKey\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidOwnerBytesLength\",type:\"error\"},{inputs:[],name:\"LastOwner\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"NoOwnerAtIndex\",type:\"error\"},{inputs:[{name:\"ownersRemaining\",type:\"uint256\"}],name:\"NotLastOwner\",type:\"error\"},{inputs:[{name:\"selector\",type:\"bytes4\"}],name:\"SelectorNotAllowed\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{inputs:[],name:\"UnauthorizedCallContext\",type:\"error\"},{inputs:[],name:\"UpgradeFailed\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"expectedOwner\",type:\"bytes\"},{name:\"actualOwner\",type:\"bytes\"}],name:\"WrongOwnerAtIndex\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"AddOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"RemoveOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"implementation\",type:\"address\"}],name:\"Upgraded\",type:\"event\"},{stateMutability:\"payable\",type:\"fallback\"},{inputs:[],name:\"REPLAYABLE_NONCE_KEY\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owner\",type:\"address\"}],name:\"addOwnerAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"addOwnerPublicKey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"functionSelector\",type:\"bytes4\"}],name:\"canSkipChainIdValidation\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"pure\",type:\"function\"},{inputs:[],name:\"domainSeparator\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"entryPoint\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"execute\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"executeBatch\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"calls\",type:\"bytes[]\"}],name:\"executeWithoutChainIdValidation\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHashWithoutChainId\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"$\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"}],name:\"initialize\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"isOwnerAddress\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"bytes\"}],name:\"isOwnerBytes\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"isOwnerPublicKey\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],name:\"isValidSignature\",outputs:[{name:\"result\",type:\"bytes4\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"nextOwnerIndex\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"ownerAtIndex\",outputs:[{name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ownerCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"proxiableUUID\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeLastOwner\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeOwnerAtIndex\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"removedOwnersCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"}],name:\"replaySafeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"newImplementation\",type:\"address\"},{name:\"data\",type:\"bytes\"}],name:\"upgradeToAndCall\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"missingAccountFunds\",type:\"uint256\"}],name:\"validateUserOp\",outputs:[{name:\"validationData\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}],bq=[{inputs:[{name:\"implementation_\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{inputs:[],name:\"OwnerRequired\",type:\"error\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"createAccount\",outputs:[{name:\"account\",type:\"address\"}],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"getAddress\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"initCodeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}]});var Na,vq,WD=Z(()=>{f();Na={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},vq={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});function wq(e,t=ZIe){if(e&&Number.isInteger(e)){let n=e.toString();if(Cue(vq,n))return vq[n].message;if(JIe(e))return mbt}return t}function gbt(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(vq[t]||JIe(e))}function QIe(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Cue(e,\"code\")&&gbt(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,Cue(r,\"data\")&&(n.data=r.data)):(n.message=wq(n.code),n.data={originalError:KIe(e)})}else n.code=Na.rpc.internal,n.message=YIe(e,\"message\")?e.message:ZIe,n.data={originalError:KIe(e)};return t&&(n.stack=YIe(e,\"stack\")?e.stack:void 0),n}function JIe(e){return e>=-32099&&e<=-32e3}function KIe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Cue(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function YIe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var ZIe,mbt,Rue=Z(()=>{f();WD();ZIe=\"Unspecified error message.\",mbt=\"Unspecified server error.\"});function J0(e,t){let[n,r]=XIe(t);return new VD(e,n||wq(e),r)}function q8(e,t){let[n,r]=XIe(t);return new xq(e,n||wq(e),r)}function XIe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function ybt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function Iue(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"data\"in e&&e.code===-32090&&typeof e.data==\"object\"&&e.data!==null&&\"type\"in e.data&&e.data.type===\"INSUFFICIENT_FUNDS\"}function Eq(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function $Ie(e){try{let t=JSON.parse(e.details);return new VD(t.code,t.message,t.data)}catch{return null}}var Ft,VD,xq,eh=Z(()=>{f();WD();Rue();Ft={rpc:{parse:e=>J0(Na.rpc.parse,e),invalidRequest:e=>J0(Na.rpc.invalidRequest,e),invalidParams:e=>J0(Na.rpc.invalidParams,e),methodNotFound:e=>J0(Na.rpc.methodNotFound,e),internal:e=>J0(Na.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return J0(t,e)},invalidInput:e=>J0(Na.rpc.invalidInput,e),resourceNotFound:e=>J0(Na.rpc.resourceNotFound,e),resourceUnavailable:e=>J0(Na.rpc.resourceUnavailable,e),transactionRejected:e=>J0(Na.rpc.transactionRejected,e),methodNotSupported:e=>J0(Na.rpc.methodNotSupported,e),limitExceeded:e=>J0(Na.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>q8(Na.provider.userRejectedRequest,e),unauthorized:e=>q8(Na.provider.unauthorized,e),unsupportedMethod:e=>q8(Na.provider.unsupportedMethod,e),disconnected:e=>q8(Na.provider.disconnected,e),chainDisconnected:e=>q8(Na.provider.chainDisconnected,e),unsupportedChain:e=>q8(Na.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new xq(t,n,r)}}};VD=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},xq=class extends VD{constructor(t,n,r){if(!ybt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}}});function Dl(e,t,n){if(e==null)throw t??Ft.rpc.invalidParams({message:n??\"value must be present\",data:e})}function ov(e,t){if(!Array.isArray(e))throw Ft.rpc.invalidParams({message:t??\"value must be an array\",data:e})}var K8=Z(()=>{f();eh()});var bbt,vbt,e8e,t8e,Oue=Z(()=>{f();bbt=`Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to \\'same-origin\\'. This is to ensure that the SDK can communicate with the Base Account app.\\n\\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.`,vbt=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?\"undefined\":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\"u\"){e=\"non-browser-env\";return}try{let t=`${window.location.origin}${window.location.pathname}`,n=await fetch(t,{method:\"HEAD\"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let r=n.headers.get(\"Cross-Origin-Opener-Policy\");e=r??\"null\",e===\"same-origin\"&&console.error(bbt)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:e8e,getCrossOriginOpenerPolicy:t8e}=vbt()});function n8e(e){if(e){if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error(\"Attribution cannot contain both auto and dataSuffix properties\");if(e.telemetry&&typeof e.telemetry!=\"boolean\")throw new Error(\"Telemetry must be a boolean\")}}function kue(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var r8e=Z(()=>{f()});function wo(e,t,n){var r,o,i;window.ClientAnalytics&&((r=window.ClientAnalytics)===null||r===void 0||r.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:Z0,sdkName:I_,appName:(i=(o=Ut.config.get().metadata)===null||o===void 0?void 0:o.appName)!==null&&i!==void 0?i:\"\",appOrigin:window.location.origin}),n))}var eo,to,no,u6=Z(()=>{f();ix();$p();(function(e){e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\"})(eo||(eo={}));(function(e){e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e.error=\"error\"})(to||(to={}));(function(e){e.low=\"low\",e.high=\"high\"})(no||(no={}))});var o8e,i8e,a8e,s8e=Z(()=>{f();u6();o8e=()=>{wo(\"communicator.popup_setup.started\",{action:to.unknown,componentType:eo.unknown},no.high)},i8e=()=>{wo(\"communicator.popup_setup.completed\",{action:to.unknown,componentType:eo.unknown},no.high)},a8e=()=>{wo(\"communicator.popup_unload.received\",{action:to.unknown,componentType:eo.unknown},no.high)}});var Y8,Aq,iv,_q=Z(()=>{f();u6();Y8=({dialogContext:e})=>{wo(`dialog.${e}.shown`,{action:to.render,componentType:eo.modal,dialogContext:e},no.high)},Aq=({dialogContext:e})=>{wo(`dialog.${e}.dismissed`,{action:to.dismiss,componentType:eo.modal,dialogContext:e},no.high)},iv=({dialogContext:e,dialogAction:t})=>{wo(`dialog.${e}.action_clicked`,{action:to.click,componentType:eo.button,dialogContext:e,dialogAction:t},no.high)}});var c8e,u8e=Z(()=>{f();c8e=`\\n@font-face {\\n  font-family: \"BaseSans-Regular\";\\n  src: url(\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScqgQ1RW16VovNJTZ2uagkVSeuNje11QubnvZpYVB7yUGi4thNqJYBdoegR2V9jiA4dEhCOgf3Va7muEqhcRKz0dDNOVV47+hxPO9qkzFCUg5glpCZxKbOGFxehX5nYwGEBZOQwyRFIY5oljSrLwkSIj35dugPRJKk8G3GwUgw06hpknM0qqcUdO/UkzLvviWielabhCp59zPCaOnnqLtK3qXfP4Jz+vAum7Q0/NuZGXK9lUJKTpCEJ7ENfKrSzrLJy8uqLLgUD5sssqscpk8OS7HhGv36H+Ct59wJukpOmwpgFOqL6vCNd0ISNjq/nA5E/OXNVV0dR7EKTAKiB1ZvW+tSlyr7EWdJ3qxDtA8codE8WQY4xkT9EJF26FGP+iQKnwv66klyovCkLwlr8Lxu3nv/5/MNMUKMiAhhDtdkGsM0RAwRI8QYaRhCUNgOUAO4Bi0u3DhL0aZoKaLFsXHublwTFwWef9oP2rlv3sxftRCxRCOKSDVvItZINGlFPFkmbqay38SW9hmQLI2pME5qCPQ47vfu8GC3f2SvxM2MUAmZO8ThjH049p2ZcUbGnTPWOHudo8vMLNEQRUvt3y9qA6U5Uu9ZONvHHhBR/BdN1Kcsoz6KD7j59iAmJA4eESNxvpq3Y6fp1ru163hU2GRzm8rmg0BhMJKgMIaf9nO3qg2ztI6m8ncflWgaGnQInYUqlufvbIecf9zg3KdoiqIpiqLnHzctBAhpSGNI+CSBCoxSmdVel2WMzJgqpdvlRLu9sTnXnnhOLGfKTLCJOTM9UWa8ezmfeyz//739L9vet2xVfdv8v/dtfXvfXldd46q+pW+rqhpVVXVV1biGGqPGGGOMMSIiRkSEOCIiIiIiIiKOIyJEHBHHETH/+Nz8/5kozOTkkPZ9M9uZRYC0pVwIQS5XK0nOJvA8lOVX3YrZypBnvvvmw25iURRFUTRNURRFURRFURRFURRF0TRNUzRN0TRN0/zRttoUsFC40OU9euRGFjGNjc8DAIWhNhWIqEFFnL7nFu2CjlFaJxxJRqf6Ung+Jvp73GVuoRtcHv8zeSKBU33dLOlWLJ0kBS4NEvIIaJvcM3ZuaDO0PkAHB26nUXSKoiiKorCiM7PySCWqIBxaeL2g/EBoVNGFPYv0QhLD6BUFa7FVDM8hh4gg8ggWk0GkW3K9iQBYnQnPTdjg3A60rt4SpU4u7oiFDsrYvgxqdHDejpIzYZgbzk8QuuLh/8fU3Bf+KRCpqkoCWRYOgAZ6Z5rQmDGR2/bhWlmYKohLc8ntExu5JXwnk4LxI3Dc4OHi4/9eZ9m+b3l93mMfUbzJKYRFQ1QlXco0TebrSbL0JXsjyd5bw4HXPtI6YPvIcDe3DiFVQLb3iLxBgC4dNk2KLk2ZpkxREncp6io8fL/sm+2zzdT+IY9D0m6/Y4Tb+s6iqZrfMxvuf9tUfXJvk9JjSEMeYnYhCoOwOIYhfWJUUa2kkNlJpML5EP/eVKu0P5sQZjyxnCmOds/xprjWpqAZcY3TaO585D3x+jeeuj+aGBIYUWAPxDGOwjgjW4Pf//+GJyFLEJQZZ5xG63XOmMhaQ53VznlFa3y22daGl256F+cXhBeFxoYXXhZfePD8O32lcfRutrIm2gQ7oUjxl7L8lWnl5GWsjrVZocNaAAtYi4twUQmBxeWB71Q+jf0X4QkWtlmSCs9F9QVYKjgMPC1YEQfHiQ1IA75IGACGQSXDpvfmW2GhW4TDy9KXWhTKEVQViiAk0uAR7iVCIrxEwlP9Tf+zRMPFdQxv5oIEg///pmZK8yodlcqgE4BywtDq/vc9azWnlY7kGdlbOg4NZKEs8O+WPP07CTSbOoxcSiiOX6QEN+t/J+H/fye5TqG9dlWtqrVWRESMyIsRI0bEWhVH3///6xjuE3wV5isP2bQlhMJa/PCAB7e9XrJlnx4vRqoCxJEeHtsI0x9/s5owdGxp17TXIikE8RSCxh6y+31+b1Pbj1sa9nZsapXA6RS3w2leokH/w4wAP/6mRgHw09uiJICffvQeEZQY/BH8E+WJYYuQkGD11BMhJcNy5oJw5Yrlxg3hzh3LQxgiXDhWhAjEGGOw5BSISJFYUWIQsWKx4oxHJEjAmiARoaHBmqgMMc8ClDkxSGKjw2RK5iCZm1JsyrIcyYqswGZl9iDZmxNoTuYrkm/pRNNFvZHyqUC0gupnpCx1EFOHqhHBggLBgJnAPGAJFElsNCDYJGVStElG0cRmItSr1aA7AqYxnAnd7KY4NcTHPZpvggwLTE5jQFCdzRz7ZK4J0n+yOBxfPLubEYQhClMafQx9v+JB6UbImj03AQYbTS6OWrJUJhSP0p/2es1yt0Omr7Egj5366fr4ua6v3dbt9Ruc/3R947/ZvnkHjg3y7lUgoL2UBP/MNpUuiyQu8YoquufZv6iCKqyOV+sY2sKGZqwbj8bn9uvFkxPI5wJN4YqTdR3cr39S/T4cB2JUjhcpltUvgRzIldzOJ3mQJ8XXdymUZumXYxErv47qa0tRnWmroa07s59NsWk3Q2f+HEC/bJfPh/PLFdHXxHmv5nfeueJkzg3Zs+zvMTCTf967JdTaNjTKjk5xsRvd5QGPed4r3vZnH/nrwvoTeZY4lfsvixW3mtfjU+A83xeuevacM9d5qon6fOTg/79PrhPLMWMcwa3bv3J36RZlxnBgAJ2KMoyFYTREKn+ZKsvGlEcUkroTk15wKDTCoMoIwHgRFQNDXIa8HgfEacoFAzxuOQ7CC3jkglmPV3om8ky0iIPACWPlXBxA16FBIDBeeJaRPVKUYhqoHSvO1VEgVUajSwqlmlIalK25HF6e7le5QsHuVNO9EEUGvScieDTMCFZkT4wSprN3PWQynglxJhmiQBMhZVkvQGCuhy3sGznDAIAvIckysxSNLSamjH8rL/iQ6kCmCWULlOP5La5Cs7pTIL3W4dKITAHf4EO4q5DGYsYTJxAmKicRJgvAnGZ4X3BH3jdqsaKPhrAlcd9II/pGQ57oVzQUSmFQLm+lopVwjzel0YxGq1ZiNdKcpfuGqsZq1tfw2zUtj7I82jLYr2C4PWYaWZ7sU0shbvISKvr5PPYncRCxIBcTsIcjEmiZi+j6+xZjUG3QSJJkOZ0oBjriBHZXeDFRTOILE8ls/Z1QmBmC1XFrmI7FjqdMACayJ1Eg7HQJdDV0dWgN4VgRHHE5ABPlwkwJvi3SNGU/lasiDqPyamkvpWzzBjsBryYXJNXRm2tksf66FHEGdBmprXMO/1yFsdTx4ATRRPEkkcqIE5HnoBB2PKcIq8ZzlSN8HCKVJBHWJzP1NxSViSkoDNOJZpubo9BJtAXOIPRT0X9kVclq8tUZa+iMJY1nT2BPZE5i7yWMRBxEHkXREryFuA1pTeFkz16JKs2eU2cambRkOYZ51DBJkZdkdOBO1AQu0xoxEcLlwSSBqtBzWJOQp2j/YPUah4IrAyPcIIRHuRyjYm79IrehQq6t9gjOo6A5WAlDn6G/Slwapo9gn6z1M9KX/NyrefcT219m/6T9N1+VuBqwus3JnHV46zL3MhVy1okYqZS3Xcm8i7xvbUEzwFWV2XeQ5F6iBJcLUUfaS0gcx2wRFtPjKKVzUzgM0nCXr5JMDXgZL8jbNiPYm2wRUCU4+QQoQ91iwHod68TgjVRIY/cPoxKynq70EPJKDlY+WP8/iJENKyo2DdZO0RFCRWl8qYaUyVu2HuXo8nyFlO7UrXuhigi9UUMhCoNpZKOmo7sejsnhitMeFwkw4jbF6eKNCUQeE6I3hF/ZyCJFXdBcy2HclbkniyIr5XDCacLlCrDJrYNzhmcQdHmIRFtGVnnvci45/f5axEx9ZsTly7CRjYpavpZsBLBW4871xpXwuoQwsnGRf67JdGbERWSYIk+XT4QhBZrEundut/S4Oy7OUn2eBVcfMACKZwtZ7vfPkikU8liT8fgJ5pPMqQKnI5sNt3bV9WYXwYCRCmnsJx3RJ0l+6/QvNvRMxawtzC4Ve/pNF9wma6m7xmLp3uXhEaPZS1FUrC1TzWgWUWglgRYfAJF3xGHMqRcDDrmxOBMSnoPnyRB33z8pwsi4oobUmtOoPmfI6dsqlqf6FaTnHQrVMCiFey0ybwY8BcJphGVwiQEUb5+AImiIJCpVoEz+stnFThmZ5E4N86YgEtlZrpMAyaHS6KGQgEAbv7A3kKrhuJCjbuekZkO95mq0dxThTHgj4YjVXu1K1PWIIag9EYMgwH0ZijiLLKJU4NcXx1Mn0CaKJlGNAIcDCHic5Z4StDNOHDZbv7+bRDOSrhiJiqUFgdtxi51Q7pTJTgfRP3jnYS57EIs1CW8ysRQSOk7m7p9jnJzgFFd83PHxxGcIp4ThMwUXE6dU7Um6wBbQywdbvtjyw5Y/tgKwFYjFERNm1a5XNt/KwddMfBXgEfF6P19vBIZYb/EKsmGvtlsHs+XFXT+ugvmLV07hpJyoQKWFFlnspNPOvvt2rlm7l9m0J0S8iAXrI96AQ2JiYmJiYmLiEdmal3VYUVKSJGl/JWzgCM7bBzojlGUlYKF0vU265E+2EO5klB3PUFBWMSOTWolpoaFoor5MkPQ+o6HQ6Cn1jcK8p1zf/YRhp1TgHVfurATSOreWKNSiPbLa8byeBD23wXWgdW5KdhHedfE2EVhUMJNDKaHcdLor9Imh3DvtcFL4Y17E00B5ZStaY9uaXDZpgKZvEZQWWXJKPeq0IL6r24RivS9KJYVHJYSovb2ndPFvOUyxNC5yeXqLW8iJswKBh0zx3z52tby6PyMqltMpj0zteLz4NqK7DmHRrSN3WD3G46yxswltmY2NwFA2nSDKgZ0E5DEBoia2rObDAAy4OTgcRC0G2k3EcdVx6veK9H6BhqHA7y3odv5qPTAUKppb7vWymulmK8NNz9UZ5jiQJkwI7CAgGWfJEzgo9yDmmkgT4PNBHqF2vDigI4wa1Xv17/28Vbquyn7/PLcDQ2HYy7B08iq8MdA4eUgQlpf5zvZaqBf15lCE0M6cNvZpEiAZ2F45nOBqF+dUbKHUUI6ne4MAYbiTVO3lqVfKb1ayIi5FXpcDlGlyjhzkw/MZmPmoh5QQiZDYcpOgDpXi/1NnChbIDPU5wLQ8scKEcyYn50pPz42BgbtUaTxkyOAjWzZfOXL4yZXLX74iAWabrb8yZQYwMxtoo40GOeywwYlIhCGZk0WGZllWGJNV+Z4i1dkqNtuzgyY7s0tSbuYmbe7mgcmlLKUppSoVfU2oCabWxNIxlKGMMiujZsip3MpVVPmVr7gKa5aSKq1SpTW/Fiir8qowv6qqihnd6DqwsPbVo8IQKQ1qjbIrwYlZoLkRJG+6WZugMZshWKeMxCutGYpJve3Mw28xpYiLzi/bdEFwn1ZxmiUMnnpvH8aVtrQW0e6ZDVGIx3ato8cXg9yY3yVwTMWfoZlZasK15xoRJu19atJdVE3aaQooW7py90yx2b0cRnPzQLBQ9HYIGRn2cTuDUU7mqC7QMta7GWFHwDrFdMaTcOwsxz9wFp3hDa95kR4xMURdxCne5kuXVot3fK/AUBFTYyTNwCHho0m3WELrjocfdeK8R76XC8sKb0xtLZNbrPCKR+W4yRFYr8cdWSVxbPijn5fJ7dmOHZjFHoTyqEnGo/iRX/s9m7fejl9nco980fKEe9ZO25rQGIkA8mLmLDUilOb3hTSBN5ZhC0Ppw8fWDJvl6bLWs0om0vNerrzWNo7vz22ZHyX5BJRxLb61CbxsxLC/f5mvCpm9CxpgTGm0mMU2ZFnhZmZoe6P4i3wiNZ1xall2cbaXQ86Jfv1ui0W+Kk5xF7+1CfzDjUdlRyiYgjb1nopTbRc0MOZlydBSGxnHwAhJUwDznPM7XDt5mXHPiztGft91q4ufPGYV8ntnHuOxMKEus9qnCt4NAkC+2EOcjJKkrO8V9zTVQBEfQC4jeS/RQnV12bAEfNhtdUrQOHvFgfxCMpQbaavfRzKKxDFTDhQebuPIyrNyoFCxIqVGLXIygcMhw8uTcy82JZhpiA9XPjuXa+2v0tRpHrJVh8XK5SMI2G7k5DKT7ct2NPJACAlHBetq03f4yQjYWor/KH89NyFNy6aAZfcCPXd/KIF6JBZmc5T156XLzGXJ6MrrokXOWYTZ8OxwfvkjfV6609pkows0w3++aaoWq81hGOyO+h91VBj9Q4+GbwdWiL4yGuSCYyG/BJvVEvDPNPPUi95/VtmyVu0ZmtjUTqqtrR1eiucax2SM5Dze5puIrOflYNPzPKDLhEOv3R+QCE6s+kYtThtQN9QWNv4pwg7GeX2ZlZuQjUN0+tJo0EhUQYT74ymt1oWww35CO+AP+pL6ZgkTZ3Wao8595eNLZjMLXf7QO+Lga81u4TXJUfseAUH/HUsQlPWkQjsn53QV0IokfPU5gcVDN5ey+5t/vund2zM6bridM6h2XdYc2rWHOxatInPllyuGRjh9IZYZl58tA2aPqPK1Vr4jdOa288nZZpQ7JVr4H9lus4hh34OJSGzsgMM+54OzceTY8RNo+nDGutrGPteGPgeE/1zbksih71QDck2qru1lzrsO3fCRj3u9a7IvUWQeivblx00HrgguaQaOhFNG90eTaTPiE1hZsmZF3DoqkHkvm96X74dPYlNQzL1amVzbtptuuJlbeG4gNT2/YNDl+QW7XZ5fkHRZPkP5+kcReN5h0kWyvX/e6p5gc8+NRL07spHCH+2Qx+WzOq7LbDniVvfiXkpoeJQHO8Z8SBxht2BXAhj2Jzm3n1Im7V6xn69XYgk4QIRv5rxFPj8O0co68Vyf//bCf8Fdw3aZ8cS8HAX5tR4zee2G0yXLKziJFiw3a1ETRLImUkmXNb/o1KSR2LTx660Fb7pEx70N2SQQlMaVbODmgGOQwr/lRE1Naqc4ZRbi6VjvlJin37FoOqdevRtc19fpT1/qnqn9a7tHFY9UqzpDo4lLkicwxZgdbr9cQCcL1RYpOzfhViLum2j+Hnr7rNbUcezQpcv7btFZt8+vKrMfwG8XH9DENOGzsdKbtETTVWkl6BjpCUxSzIwsRFY+FBM7HQcNJx2XKLdBHj1eA2j9GG2sFk4fnkLQJKZdoRCW0eXQY6bw6Be3zWpH2S6bfVUHeKfKLuRdIdxWSx49aXgT8KHhi8rvIQzms9Wgl3JkmrVAPwXDALqp6NfGsA66abA76rEfTJLcIyD2OFRj6qpzORp7s0x9OhT37VXoWOfVutBNcpUfkaoEq8FVJ1bjYKkZTRvzQ4rFHwcVj707OBPwdhdXInSbuJNg2oJsG3U7kO2ibo9sh5H7jLb0UDpluIKgmT4x+uSJAOBQmWiNQQRgp2FnNM+socVkyhyrmnpmqXIthgZ8WW3FNxaLAtcGHLOJ0KEdPfjPSVqMTgKwC5BtUnQpWD2btmzZtGnRIsWirkXLJP2yfHL8AkYsiAL6FAAAACwAgAmAGgBkAAAQFAQAwAwgCOAAAJDmvbEQSgEE221AWyelstEKZQgqgS17Ej9CG6DoT/ltRouXPH2bsuOGbsfK9G09wEGh4y1CwT5bvHuo4CIDCMJTw/imZd1CkGbc0X+fJB8VfwstEHU8nbbw/prowT8+QDElmOTENPMhPIH9OQwAY8EO+eTC1Th7grqzUhB/I1P+/I3cdwFOBijV1cHNzpc6XwlnuwudrXY2QLDwulnjduhXzAMbOs1tlEOFU1xSlYtN8eoOA+w8CNgeIvGjEgKjpnY+hnqUGC5KXJEuF23bJdl3IFBvylAZLiNltIyViTJZpsq0zCt1ZKeNV9uDOlFOm+lumh2D4PCme846TPbB1MXXp3yFqIH4JP8RF11Bj434iCvhEOiRndy7bVvxImrlRTeGPuoGbPiNuBXvhXvfwIzyVM/q0ZzssNlH5Vcqb+SwNJ2pDLqSJ5+Hc/lXeG4XoQ7qsBXatFHt2dGdHRtzHAKuLkEVuXdjU/sV4SF9YE4eRKDEp+LMDkVJ4f1PoJ05MGcPtuP3oN9kGHGc2FGjN9Wg2Mhtt2HbxjUPPOE2DFtBYFdh27IrOa97qTg45+w4N67GmJ2NPCR+O0x/mXMr0ZNELM3b1MpG1Fl31zhRqA4lMITwfGI9ewFaNvwzZrtnHbH8exZX+Lvw9NW3LWYvzO2H9S5cCgamDlK9FTIzok2VzzHx/kQbCYZI0Mr3sN4rIdGlYuJTlb8ScvMb59MEnj7zfC6chza9q1d/Hvky/H30h3/umz/OpVwXd+FEPVKVRRliMamNSkN9LpaDbA2WRweqpS6Yy9p0D8ORZ/l/4NsJ40YQ8nSWzTI8aDIqSy659mEfsseNVcQrJJwGjBxsL0R3XUw1ejDUQYu83qwQRIIkDC4y0IGUaE8HhEIkhYM8EQRFTlPBbx+BWhn+tSyXCpUNlx+gquaWmKKCHh7suwwjoEiFYNYLUCDaN7J7C6vmUgFUnIqg4gvR349ExWJcCTbVyzSJJCiVWFoiU3CsDfPyxG/ho23WoejWZMFlH14J+MbuKdOgjMrPh+CrCtNwxfZkUXRnqkyp2wzVszCYMSfzZIud10vRzY1qXpiOvBgHn3NT64jZwVZ5kySmxqOgbzXvdVjvs+9D9aFHrHYun+nXgMm0OvpteB/2jJaVtkzUmKTw870LUPiqSwL0d1/xEAke1Q06jlw3zEYA61w2Ir3G7KQ4JYNugXpEpR2YwArLWQ/wYz8s5CkFI0leRyjairkhOrLH821NEizyjCVWLXXTMg2rPGqNh631pFTjSgMyiWUb0jqr1vurjf5sk4bNHrbHjn2ec8CaY5ac8miK4nxWFz3setysXvs7f/SrxQBdieVDKnqGnjwUOgNpC8+faj7452LYUnbKOQkPjtCu12aD/tW0ZkvOIz0TYz3ObsDK3HBpPoS7iNmi/ri4taWB5TyzXussUmqZYFm1Qqg7anpwGCzUZj0dZcruDQ4JVsGlAEy51TgJQcmj4Ofqr1kE3xzWDpkbLmGoIy7VNk0myZJqQmmhTFRBGL95ptCU7lRXEUePHfRUmJs4Q80q8dJEPGFZc3viyQyl2U7JUVJVoLS4YbPfiAMDeQiEnz1VkZEpI47g7AB5bFN4xoH3Q6JY7VTT5eIiCW0dUXXC1EAa6HOapEqqIaXVsgXLEW0lMNgEhg7WZSLepw1qXp+/G112mm4fEqbzM6q7qtPVtLfH5YrWMLdA8wJ1VJ/Gl8RJNaM0VbbIuCxTbilV1KKHEOizScXw5VxEECO1Ahq9DlxEjwwnI9hKFQQNMSa7l1xGKMryIZn1IsSRazKku35uq48KArOpuFsizFNpYXXzQpJ19VSjyiQUzYTwZk4j6VWW9YnPGhl9QjBXj12TgQ/C0i5j2iqz6Ni9YiLUoFvGVPHmZc8ygVeJvpRtBDhCQdSjgp0H5cMgPI2v5kSIhBUek11XqFDo4mFsOUigHZHDdfWsbj1mjHds0eTdhqHqvA90JAyFA2h4IdOtFuXCdGjBnBzrhytcHpxG7EPsDGq6ajZKOMgLPwvseVivwsGprWFci0EgWSNXm2D4KZPRGsxfO/qiYWLnUrWQj+1EeAb9l9Yh3vF7Jaoo60gWWsO8XVO1ZWWLqxyKmimiCkSUjt0qKmsk6MeTa+M6LvPikN21Tbur9GYGjxhqRfZ4dPHzoNRF22K37yMi2L5ybdg8LCFAgy9qGrCVgV/d+RouxrozXm+C/kTDSfpKEDRy8rpYeEC1Dnr1KgPZeDLVrjsQ+f3TtIJ0wszCrDYpJu2atbhuyr/+88fyAGJhnCK8tnBpMIkmAxw8tCQ6QWZBlEUhfygkuxi3Nj0NMv5uf8my9FrKiujULNoLEkkpuACFOsdLy0VHmPmwVjJKVMg0hWxXy60qzvgT93/zDASBgCVgtcBgG1jZnHjySL/3ZzfjYxEpJJKwKZn9XSrqMalXd3QKM0aady60NbvEV2VaqBXKCmUFs55Fe0yGh78QlMvhliIGqsuC7PVcFiqeN5opodCSHG31djSKAfni6uKLWywMFItABqchMUzVGFio2Ad6cAjHfTh5OFu4nGSv05+FeRAtSJKBLFOW0opy+kOt2rTr0Kmr6j79rh69+vTn0dO7jWE8JjCJipbnT3+3cBKLackdy7FKrLu7NmNrrataPMh4ZHZiF0/tox256Ts/+Om6v2XyN1yIm5lHWMXOVXkgyicgFJE1YkhIycjN5y0qqCqmEhyR59AWsBQrFavW5hmoA7BDyAHQmX8EzQTjmWFhZWPn4OTiHvYhpgXhhYRFRMXEJSSlpKuMfFk5eQVFJThCj97hJjQKHB1bFDunKhGNT/69RdwlJKiy7icdSERzFqFwoQizItXka1Jy8xoU1fCoRsQ0MqZRUY2OSilRvDqypmQ1bJnSkpGtdkf1i9+6QjcFS9xD0R/06q+o/i3+7w+pS3cvudth65kq91eN1shK0tQs2jPnQajzio9fYFhs3ikFDxTqI4XytRoCkEFMCCzwMwg13CKih/oycDtOgcMxcEzqwb7JaAND0R2sT1PQwgq6gtxl+/IrNLbI8cknFDopKXsILgtvOG+kcfl6LTk2Ja54rWjUqFGpRuUse0rggAr1ehnLRfDMVn0jzkfeD1Th1KJBU9fyyPD1QR8rt+xqJWtzNmh0+iOv4xqK+DDjI/nYJz6tG6f45iR2VWOPV4dxjjruZOTNDbd878dJk1Va2Q25vMYvWOUXKcLTZBWdXWnaWTMZq6t6bLhmsAS339Wo7Z2130MJPb/l3W2TtpN2bwrIHst6ab2cp0kYBRuLZbmBiIjKYDfEMONMyJPUpmBqKLVuhjALsagei2WJpZZZbkW1UmWV1dZYa70NNtpks6222W6HndU+xAGH4giOOeGUM84676LLrsZ13PSdH/w0IclskQdW+RAQqhLqUjJyVa+qfoOGjaZxHlSr1XWda8sYbnSg6FBYRYzWGooyIKVmtInOiCOGHwlngtXMLKxs7BycXNzLRflkKSPitEqURLUIzygCOj1XQragBIvj9frEeBDeD1rDdH4QxAJlV0ENCCP2lpf7BdQf3yys/2ZT8q6dcGL1B8J9l/kA8jK0xzG+YrPE61KZS74wXRyoAtQCGgBNgJZgA70hommwpiGahgKGaRqBGIkYY8tYW8ZpGm/LBE0TbZlkx2SKKXZEfaVVS8xNbfZN1fAQoJ1lhoNGPz/jyItzvCQve8WrXjvjdaBkAQAAgAZ0CNo3LDZLuqXe7RLE8hErrFqpaZXV1lj77lJFStNk6lG2UOtsWb+LDdhok822Vtvs2G6HndUu+/bM73VgnzfsTwccdGj4MOCIpqOOOe6Ek07FGWouibMW581Fl111PW5U3Ixb5jvf+8GPfrpdh8KMRVL3EEUb/uD6es39batbEeYRVrFzzbshyAObeZ2PX0BQKCLfy2P6JeyUslemwzHYL58LlIqmNOl4mLY79XsMmmGjxvOkVtMneU6jBeUle614rNr8GiXSRnViwzUzoxlXzQe+6hDyMPB4HUsdLX7koMeOgv8HQ1SZYHNmFlY2dg5OLu5hH8Jd0MZCwjmiu2hGDHEJSanhNGYZzWXl5BUUleAIPXqrPmD9BgwaMlw1HYxCn7Gly93bunW1PtWkTPOBSYdeyGO+4Js/Y8Vcgdc3g0zMAxp/aaFuK8bjtm8J2Yl8vBZKtUgmS/XXpuSHmc4Sh3Qy6tLThb8JIzBnwLC0yxn7xJ1qvy89S0echGytnerg/JiPTcSUpqGwbuNxRkzdcGygjsGu7nFMfL/DENmeLkHp1fynBiH0ynteEoxFXT9I+Vr+B5anb3EBJlGoBIZn0nV3zUtD9IatheS/H5dgdFZWEGyiMvAXCjawqQm1N73m4sVrqbPOevVinyb2eZsb09bZkZlzoutt361x6dOnz4rCezI8zIQNHxzY3u1t6nh48qaDvxdMIP8vJ6J3rUFd4aW3U6uSiOXsZFZ4Nhuac7DT6hMtx/L9LnxCcKmZgcSuLeU8q+JBSq0l8u8kfro7GwBYuk05Y6HhN7TPOsF5nAFRc2sLiWIfOTpRNJsQdqYmwRmnG4HUEUvkLmgnjF2NdbtsygZEX2AmglWeVUQBR+CSuS0PvJUeVIJa90Ku8pkJmHzUUMrG4M17auJ2czdRWGMLxcCLBJIICx5dcMChQ8N7rXTnRvwVj4dewe7Esnx+gWtUFdQfLuxjoT6r5keqifKmEJrFY0N16Aomg6XLMaD9PBy1IhGP8cmxxE6kFKMT8U90oFSHPoXPrMhaI2684f4UD6/jqfNWgiZS6lSfUdS2t0dnH7XBDTWVci2LmYQIIqiABtkywWquj6Hu0VlRv6Yu44ghDjR8Fu841TSWaBg5fmUC3iDEQoxUUoe49WfKcYxkChEYhz5xhw6zwoL7GTHSKVRV3zZtMOUq79yxmfNhOAszMrOsFo/7XR/rNa+thcgfPexJnnnquozk2OZKmdas5POZW/UdvA6oMoaNlrXMad0vW/LWcl2vkC9Sb8ZfCsYRd/mxLUp4qQICWjPJSqkk9Whi3pADZ5Rad3S7OWSTUZuLM39Tzg3dVOBBZDGHPkhuoVdQOZyi5vRKO+a1gFK7X0RQTFbxqiQ7onb0A86RzqgPVUhwrcvyk4wBISNOfIK2bKn4KC9475hNcCxRU4tRxSp+5fzwiBlEtjuxqDn8nN9hP+9MdHtV0zKBn2v7YbL5JvaafwUtKcnIitUrwtoFbrXZE2KnN9Itxs8W9/Uc07Z2/MDjfutJH5kve9dCZYXLXoyegoRZ5nZtVnIpZ7tZwhjjbnE3V2wwPQhyDhwIgTtmBEXlxRnTnDR0yB56ft1jdaYtg34ykR4qjo4FqCNMmjkUJbFiL1Q1dK+PZJSKFpSDx7p4WkhYjLq5S0uKU4ncgXZcEgLETSTAcVEzVXU3hjAolG6dNu0Ol0+65WKwinN7trbxHLdxNEnQeCDpK6eycMoLpT1QTb1patlVYlyRP+WKnbli9nOuuvYcRWIvulGSsZaT1BWPhGYYvgw+myFRcv1KfKSBAhmLk8llXmKeR4d9YIGo2jaIxkw18YrAD0GzvcbK5CHpSCYlqlhmUL7l2VySneUSBHI9PCuTospHSSLtKXer+hiKJOohWaacxc1TfwkksrENmoHAzS1mt+u4ICa+hwJW3XRVXp4h0zKcagHxR10Z38irUa6Br8uZhCdMvqZUGcu9vyEw7n30XQ3DWT73UJsRLMrClf06BSU6xDWYdFOhH8MA3d41bQziQ5Ep04pQtpehdhAd8Y6BTP85SNLDv6Y6/IwjJ15jK4XQ1ODsGRucRNsLmeXdUBQPVC3Hr2MpVXgNiobDPpOkitgn3lwaLkAx0zke6ofyp5INMlU8IGpKfOHtQmhkaruTMC7gcWfpQQwgdGOmSI2rSYAMkdmcDPzCojyQUkhxZH8QXuzxXk/FrUEvtC7PMqahRBKXZIAjPLGiC1K+srkjJY/9SwXdbiw8EccNzYR3ZM64ccyP9WVy6JTCVXycajLWzzMdODwSC3tk/LhBmzWqjZnnsQ1bQvyPvKfZ0ON5UqvDZpjJuW12mUSf61q5CnkspBdpWypdrJYEjKwK3X7ZanYjAaIo4L1UmEgqLv5P8k3GKDkjQ0Fe0jbGbDcvGqs1EEKTB9eTvkT/ZsnpiZ4Izp5YEfh8sjSXotXrE6d2GBF7tbp+e8Vp9wmXzJ4fIy9qk5Cc2NrNM3n7dIGLOrZYs1pnoK6rDLquD6NltTMrqR00iRjsVR6xZ0zyhB6wEYboNuNfXOhESlibm02RZQ+wyyY641qIpyaBMCwMBgIQyKoljZFogNeXyoAcOFIVtbu77mZyjK7kqltvHlx4FpBZ3ikDm60Cphpu6EMf26Ps+N/SYVfpy2DkmEwJx9vttsCQXqk0kk31RX+AC0vY9soc8Dsgp05VC9MzAQfa4SyCeyEeQIDOkCHyL2ZOYQCiQq0kP5iB6xDabQ9c/ZjAW+raaBa06pTAvKyPcU6iEZ+jR2ol+fmQatsfh7BmjO0xXCxYX6CD5F4yH9Dye8RFsEsCPWgvBS92iUd7Q84vm1sSGH1okwRxlPC4pUNJD2bZwEwzwd4dkbhMJaYYIbD9W2EyMxnp8BTZGMq1z7Pbi9bgYF2XaEJjvyYhFKWBxRHZuXSEmZxemyKm2f4sAyStAyKQr67qXutE11TfDvZJq+OzTk3UrQ8rWcLqWQCcIhU21QWXEtazl18N5p7IzkQZNQdSgL2BQELveSwRlOVBvxsHI0bmKPlioCYAiDDxA0jNiKxR43ZYLBEI51wqIiXK5JnevaxKOc5DtEaWbWeWkd7tRX3iSGzMinwUCUZX9+NvfnHgzotYrvykZQjMkbvFEKaiDorBLBhPa429dkDk8sqGTas9e+2IfCgJYe1gjko47PQXI6kmT13UNTv+9cFXiyEC6Y/k9fGZ8y++YYigsbSDkkVtyraImbyL2f0C9tdg71A/jOA/5K6/Z7XVw1bNlKIdcyLKaFZLtnsScr2jm6r8Epa4VgSOvK/tBsCUex7TFGXzDXazqFWbduPoHZM8xvMm/rjllPiRtMYzv1M4mbRyr1Vdk87EjrGkCmq571UZ50RWA+a3RZU0HrXaZSNLsQm5BDF3b9WKVerXfWKRXx7HswZfuIqYDWJ5qw0vLEkPrsthb5DxajQuXeOL2NPEmqQKpfyQSyTDgHcXUw4zvkW+3D6T4CCpPRJIZCOStZ3ze8lrfW+Hb5E8mRbD3FHEfPExn9GNHW1PXlj3/qSvpOk5iL/hgdMbpBYK1hE4VNzUm/qZ3wJw1xqMEVJxxGc4XtIhIfWOX8QQlfBWK7uKXyh7L7nPKxVbzpXsGn1DYW9neWF3Dk4d3aGeowbag+tWTOxtdK9qLY9dCZzjKbIgmNpUhJGRgZRv345AUnFQ03xBWkhD47i+Iu2LbmbhYeVFsTmvm8bi8EQSRoCvt/rxAt9qhrAYYVExcXlJBSlpf7areSI2HKJCUEFAY5P4EdoAA8tbTXHLodtEHDHgs7OA0AaExFMpbLQA9PQELkQS3mSeiji9GrOjRqC9L6BN6fhJ6/FABJu3RmC4DhmEAEK4RmGY3iTaYhabsUWcfjxnpWixSUcdx8rnL+AE9OAfH8yJFoJtNNNmtu7i+vBQipl3S0ZQj3SeYJI/eGyWYqatKtJVpaGCQy6r3MumX1COw1ktFr33B9TELSqLiigpmhIzZ07PnzdJtoIAfuhi1Q3XBqRJquJ0u7R8FOJJZOiIOsMoeksZGIc1cpNhMmpRRvTfnZzcPKq8xtHaAEAEuAAyQQkm7RQ21rLpYOlVc9I8Qb4MrINSAEGiDSCoU1orrVAHQSowYofxI7QBFE+KNhwtMt30BGrHFfqOqekJRsBBoeMRUod9Nnr3UMFRBhCEp4bxJKduUXHPWM1znxpeWnRLQzvqeDqNsPlrogf/+GBLSYFgkhOtWIfY2LWewyEL/EE1M9GicHnubCKIl6k5FcoyQNCZPjjcebPzsXDDRgLfc2VGwCABYoUboD/UkyLfch+z2e3mXjNZUx8l2T7Cal6k9vkVMtO6miH95X9GXFgZ/9oECBUZpHFmJCMbD56jQsqIPk5tpPZdtT8SZayFKCax0UL2SzKb+qUa2OqJUCLUCC1CjzAishC5iGJEKaIcsQSxClEN7gOPgKfAC4gGRBOSdw0kRVD/9qsAUfg94hBiCAsl7SW9N+mcToMKPiutrqb7xgsqqCH/OmYwHm1CZ5hDlO7sUOjr9YiOamWroe/T+jZ2VudCP6tLoV/WS3pVV3dNb4f+FPQXuqGbuqVPd2tfg/5N6N+H/lPov4b+x27vjkkFPDBmAMZswwHGQsNrBIyBY/gIgbHZjJmqqZnJ0wDjqGma+XMWjItgXAHjOhi3wLgLxgMwHoPxDIyXYLwB4715fJ6F8RUYX4XxbRg/hPFzGL+F8WcY/5ydi20E9+4DAAgIMBCgMMEMDDgIkKBAgwELDvyFi5AgQ4EKDRZYYbv9OhxwwoALbnjuve8E8RVwQinokIVH+EX/GBqjIyKiKKlp6RllyVWsVLlshcrVatahzwgqukVr7nscj+KfeBZvoj06hDMyjmyeL6vPiKlRyZrt0dgRo6NUY6A21ldi6LF+pIxd48A4NtLGWQk5Fa3ZPBgPx49OUhfNbuje/sDg0PDI6FduTgobn5icmp6ZnZtfWFxaXlld27IVbWhHHR3oRANdu/dMaz5/J+ffAuaMVqYXD504d+XmylErV69dv/Gsc3PxpZeffeHl1+btd+T6R6bmlhdfy9d+/LP8z+//ktvvEGD3TGxdP4lPsEl6UpiUJvVJdzKeLEIbU5dL7aeMmIpzWdVN2/XTnWlj2p6eTAfT4fRx+jr9nJrRH9rrB4KhcCTa1ByLJ5KpdCabyxeKpXKlWmtpbWuvd3Q2urp7evu6kozh3Ye/LGaIz1vOilb9atDvNLe10XY1xv4OdaTjnGyis13octe62a4We5CqmhVIc9XrnLnbMFatCzmxF3eI00YfVulA4nCWyxB/tyeWvbPabsuretVtnpu6Xxu8GZIKlFFQBf26zV0yMxMc3EHylA49G6K93h5o9vRwFhZIvYiyWYMDmDcM2zxcCUuT9kuqzk2Hw34HhwvOKf0K7Q1SNv0mh0u7eq9qEz5ZzRFh1SV66tkJxamGU489rswd2Jv49DfWCzDRAKyZRW8W6MBu27KbkH/7qaezYDMbBYK3AUttq/OwdWmYGoIaE3hgnIHoMAPGm+m1AFiRZqHweA8SHqFzjNdUlQhWSKmIwZ6ZB5YMr0c6dNspeEgQMdsNsFU1VHcDZTGHHJUx/5A+2TeAQXokjRHS0ezFzJnHAiZ69Q1f9o16MJvFz9h3Q2qi9bYivfmSA5oicO8C9w2oRHd2HpyNMsp2mzCh01OepYCrSul1am2HRpbnHhMF7oWXhafrBv1vXV1EXUgYdzyVz1C3NEBtt108GDTzgH5uqLA4Ka0l37TY2DrNNqPTz+mcvmFow+L32Dl6EYPJplvnqy7KT1XtOoy3CUtr2LJU33oH6eAZ2uRCVmClFwztmy/22GLQF+u39Zu9wcWJfFNp6KaCCDMojpVb291NCEOxTNt87m3P1P1p33gqgG0WD08jYnGChImoo7PrJBaDHDV5pPjWI/LvR6AfK66OZrCs8dQBqLzJfDXbx90Izo3GVMKgAJdgL1a1YqtqLEk36gAobM0X9wyrYmbbME1VaVV/Gt/bBGDmgTX60BP0BJKgBETtly34FrsFVW5x7HmGYKl/30YEGIA1yGBCQ40kMtpotkKEklBQkIoSo5c449hTGc/BBIkcTZTMmc4Unspt4K3GNiFq/ULuoCZqzY7ROuENvXc+WKE93bA61kRiZ6QJ91P0yXA/02PybzFUhKclpt7et82LAAAAAAAAAIIgCEB8NsTlJ51/HEK8INJLgIGGCyEXQ0UjmUE6k3yzzFNpmTXW2awWSVkD6YZwd1Mjva+Ne1GDU2aWfuvHSKPhjM94s+JtPxPoZYBo4yWa5Lqbvunwv05dDCAhlLjGPZ4JiyHTELQsdRAF04CZEJl+yHXoZzDT9eqJiDhw4ZWC/UirmNXZbs9N8hLZ8Hvqz4WIRBsnEfEH6qnnmVpi2oPalC2CJAUBUyBh2KmReMTsUf38xVCjRYiipKalZ5QlV7FS5ZZYpVqN7fao16BJi9NaETUNrV+cJtWvh12MdOH7/dbrvYmE3Qk03AcCTHjSDWysiTW4klQfVuVU3nqkJzDRzOBUSiGWmkM5YtIblVLiZ576vR6c8Tp0BqTINN8BnVmC/6Bst4YSaQ+IpLvmjkf+8cwb7TpCdxPkeFh8REhRoEabfgawEHGYUB4BgUmKZliOh4BDwSIgo2GC0ow+UZ9fIBSJJVInZ5lcoVSpNVqd3mA0mS1Wm4urm7vdw9Ph5e3j6+fl2wwwUzAiRtLsm6x5NL/Wvw1to5EhBen1IFkK0raCtDaQJgYk2SD1FWwVnuBJDI9HlkIwMezSti6IH49kPx71NTmkIP1O9npQAX6DURbPVoHlUmZMwZjWV8WjG6XUpJ9PynqVLnbV/i+yzG5QNzXSDIVZMRZQmqOdHCvlFuMtU0Vsk63s1NrLQZ1fuDiihY+TzglwywMDPfLYCC98NCpeGWBspifL+EqeCRxCSmvydL1gR3byuSPYWhqzzfPEL4Y/YE+VaC4t8MbFauyiFUp/2WYiYjIe/PRn8DuSd0yfgmf92688ROH3iENIaliQdLOJO510Qkfmwy+b9ytlefRL59XjYINDDW2jnbQHin8atR84BBwFTgCngXPAReAKcB24RaTwYuTCYRqvauAX2AfDAlL8nno8/dJzwc9RbUn0JD3UXSez6bVqF8jvjI9zQf598eMeP93BsuNeI8lfu9ZtAbsQ9/YOjQYZvlrL/UaO8gOlvr64cFCNDQ0KAG1YfBgO9Py/EegDQ/9Z2Bs8DA3zDQV7MO8L/A1cJHgbFllIgc/h/6wDHEUF4f3B76goAtt/AIGFBhIuNIiIQoOJZPwQYv+/GXALItNm9HmcdnCzxA8EUHHBCkxeRz2CoCSETzuBmWI50/t+F95POAQ4IsPZDvrbVZDdBNidnz342BPoQ9+hbLj8GYD896WANCAdA6TKUmyBZb5Xo1adQ/7zSrvOcERM7CKLV4IyNCFRRBlNdDHGlMKUpjKrsi5bsycH0piWnM2V3MkfeZZ3+VqUCqmkHDAgOYpjg0757IAIMAWoqdymisKBmlp7cB4KMnUNAjK1BQcy9UksyNRvcKCm+XzYCwdmP6w9/OJI6VG2+5JjrLj02Ivj2uPNJ2Q2+bbzY7XV2WtO3iuUbCBJdSzBgsxyFQ5k1nMWHpNv29nm4xj5lJ19GbnPzjFPcE1zrgPyXTvXNUPvIPyWv8p/7dxzlQvBg5p7qT5xm3iEkk/ZefbhMvnz1LwHgY133LK/t/A78x1HhumHEDb6EkSG+BbwEZ/ic3xJfv0X558BpB/3a/JTnDlZkMosyYqsSXVqsicNaUlr7uSfvElH8VRa9uVYLuVVfqLryeEVUhGV/JmHogId6h6Y0MAIDY2OuLiTEhmRHVoc5aH10RxZl44FNXQ2FkM34n7ceRIH8Sr0Y3wJ/RwdoSJDL4RCJYCFyqIQByqoxz8GfYwxxwoUaJxxBwOWQEIJJwYCyaSRQTb5FFNONfU000YXfYwwAQ0689xhjXts85g9DnjFWz7yhQ98pkOQlDp0SUhikhBM5yUrBSlKRerSlr6MZS4roYSWs9wPUWeChVf0lNKUoaWqjObV1CjKVPVo4H9HnhCt7xCYyCq0sSM5QgMXFRFULN+1PEdWK59mHE6ur6IXLocz61V2RzFc2Kyqe1fCFWrV083Dje1qZliEO7vVzrQMD/arm2UVntCrn20dXhzWMMemqI+aqCskISif0xm9FHKFh7GQJyJ2Fp11BnQHYiCJnuklHMIpfYYpZkdO1MbUWFhYgYlFsTLmxLwojB0xP7ZFWVlpAvlGURhiffCABRwQAStgDewLG1jhFrJwCdfoBgRACGyiB5BG77CLXtEn+oZjFpyFZKFZWHiHRziHV7iHZ/wSDXEwbCMzpkdq/BDFUVJYio4lsSyWR2UsiH3xY9TFT7EutkdNbI0thWpmjAl5jA1FREZUREdMxEZEDI8RMTJGxegIjpAIjbAIj/rYHwfi59RMLdRKbdROHdRJXdRNPUiP/CgIc1ab9uiAytm2Ylvp2fZsR9F+RelQ7GHtqY7dpM+i/+vTALtHg9TPHrD7dMvu0gVt04Io2Zt+y1cuVam6muo01Fqn/YRva7ce/e6g4TN1/xNx1px5C7alEGmcBBOoTaSVQm8qg2m+Y5QmXYZM2XLMkKvALLOVMduo1k677LbHXgcddsRRv2txyhnnPPV8oKIKSsoqmr284PNH48l0Nr9+/Ub5UNaycvMam5pbKK2LOEGqpmU7rucHYRQnaZYXXT+M07ys236cV8dD3AKIMKGMexEpSpIMHJ5AJJEpVBqXxxcIRWKJVCZXKFVqjbZsGRA1SG1SBnFJK/8ZIRLG9quuuq6sgCRi2VRkvVQs0i8bOZ1NGn4WHst23C4pef99+U9YWzt7B0cnZxc0BovDE4gkMoVKozOYLDaHy+MLhGKJVCZXKP1hCBQGRyBRaAwWhycQSWQKlUZn8NWR737645+hT1ZeUVKlRp3D5aFZXvQFQpFYIpXJFUqVqtxodbYrtcZtinZQs9Nb0jF50MasQB0EtEgTduekMlQs5fNDMh5B00WBIsYmOCEJTRiCpfFCCB4hziyZzTjGIAOoDsFy4IVCCJZ9/3eyItXfSOtsd88LDJ4NuzRjSLiHRSGH2ZhQ9rH1B4qQHRc++hsujEKcBEk5iiVxmHMUs2ybuaRUawLjEdKCCp80Cs+tM7epNCcSpCH04ymOOGKyTmcivzvaY5ZtM5eUsiM+9CMNR4zYC0S4RRuXsOKmua7CjSl5IzvEAYIzjztZPkOkoCxcK4NXpqFkNpY944MMtiYkT2DpvX7vNNZ8DDSagopWKlNjcAjhBjpMOilfGIQxUJYbpo0PjSvkRcx/DJdTSmKQpdA8hAvc+JSU4YJjY0GwYd14CDJchDgaepnyEaN5nbyxl5SFntxBGd9s39pQYWKo6aQ356ZxssVYwjHcZAy0Pisu/AwWIkqCZN4pwC33sRR1CDF5vNdyZEyx1gh79DzmIvZ+c+1xSMCxeGsIO5T+Yyuw85UbL2mWQ0HBGtH4hSFP6u6nY5ph38vKkwRVCxWXuChbMyoRxhE23sU+HRs7GQtRXS5/hdDfvZ6xIuWiUo1mZz1CsPkNkxXspcuDR1FJos+PkY+MnV7ZZ+PK0rA0O2Vvs2MszX1T3+xgXnOf1DXbm9/aO42oTXUy++2S+clsiqu0fQ76dQ74aVxgYHR+3lJn55CV/gvra9R/JU4pqhcpmK8X52Ro4QqpOSpjngXwPRjHZbI3v2EpxGipCewZ+TIMBce0HYZhZO/qXobssdyrflf3WONAULlU7v57h7Rz0kDBf24D1ZGxEmjK99wHHe+CryRr0WjG3X8E9dx0q89rJdece+7R1PdwxCYJo7X80qt77pFNNKIiW59rXntzV0c58ZiqxuO56Z0fd3XE3g194WErkbM2vralVHMt0690nqvBiWUxgG1NYfMtvNfffNQhbWUv3Llf4YyZs2bPsV+acAgfZiLDiK69R9GIZfP4CVs4Jlwz3P27yS1qz4Hyti3vr91h+w73VN3O+uy/gd/eBvXHR8Wu2+24sG1BKsoK0lzGp5VUa2sKsHuvjWXz9EN+KZJo1JbqGU2l6Km5ErHTNszylW7lV8ZNwx3Mcuv6lkMLtjuSgxduEWf1CrkOIc3FdyGG8pSlHBVRK2pNu1EBFUKp5c4l7VZ+akeTOiulYiph4yZwqeBRphyFpFIsJweAwwvw8eqikh+dOnuo8BP/2QkV9EC53qfzQMCMBkjqR35kkiAYVMJBI909PL2Y3j6+fnSGTu8G39ipSsNmzdt36sqT/wnL+6bxp11QV6IeQb3qaovGNdWPMROmzJi7xoIlQ+pa9CLqTdJHSF8GRbFHe8sqyO/TzhphQPBYQi6Gisr/hMZTi6M2iU6iGO7pIBRJIUmMBAoTqbinE288tSgqWonc8w0viYbWrMUY5UhcP2rCTCHBuYhH6qVsmdggAUY10sD+3QYKFmCtjqtUObgFwqkbDj+OZ7ebdrYP/k6mnC622X82fuAn2hc2PqFsJXiC9Us5cuNTfhixxpfvMqwsf/QiAT1ryAd1CQJM4rY4wVYgatLeTVFC1PuEI7eEeA7Jn9iPhDV54RKz32EvB4T0xD4qHFlnRWlqYiXVpNLW5EqulNLVFBQhJQOL90fpK67GlbLiS1XjK6EmlLoSUZRmAcRId3MfJqUPAON4YMMU1Nh+L6sIYKzaL0JWXe4EbRo0VjLUtBxDp8+s7Fb4w3Wo9k2wFLDx9S4uaIHJqZX/E8CUj5QRBOgEl4OFdAcDNLAc6FB/RIAp/otB9poZwptj6yR4yjyc//fe9Erjn5AkprT61rA6XGfq4YHpq5Kezb35tGGtJfzLpCBqEBKkHjIN+QbjhNnChGDiMAgMAZOGKcKUYZowY1g4LB6WBaPAemBU2DTsFlwUjoBLwy/BveBZ8Cp4F3wYPg6fgi/CjxGMCA7RAyFBiCMgCHmEOQKD8EMsnA88//78abhJalXqrkyyDFmmWJ7/gOkP7ew6/ecUAOXNwUAjwyViwJDEaH9xF+njM3dE2ENImrnaeh6iCklZHw3yFQZgfDBBmBhMAga7NCvBNGYUDUshqEcshHfCB+BjcCoRhNsSrI4JNUqt3FqMTIpMljzPAflDLv9nUsyp7rV5s+hmTv2nxm/hSdIJ7sTyxOLk2onxydUT5ROZf5dqZpdeu+9frL3o335hhRRcQP755ZNLztlnETQ+p38de3twePD6IF8HsMeFomocJzsGisj+vf2N/bX9+f25fdr+5H7vftE+YT92X+xp8t6/vXd71/bge5AncU88Abj1Dv6bpZOh1NYCEFPLDDCB/PxAqp9IbdunC999z9He6R+6hVxgnIeuLBsOg6zQG4A/Qja2u9jLBfccUHPNvMP61rSmjb3rXZv4jM/a1Dd9rzeHBlq3rSlMZSfTmM6uZjGrPSxqUXtZwlL2tro17bcfQeRAgE12fqSAoUqNjxQkWPXqBaOZFuKrb40DwAUAuHAKw4dfAkFCkogRd5MEiDQwCCTSpGVSpCiLEmXZNGjKZcxYvnDhCkSLVyhFlnIUFI169GhCRdVs2rSWvQVJKAC4ioIHrRAQ2kiT1u6SSzqgeOmUJcukQlWoOnWZN2DYojHjVlBNWbNo0cYeQ5K7AG6M4ME9zFhs4sVrCz8B28SJewgC4hF58h4zZ24HBsYTWH52dwGC3fI9WOyReQbfd9FFv7Db+5ew+Lew+Hd+5We/+M3+AZHfwZKv/O8A+T3e86nv+9znfu6L/cr8LXvM+iSQf8AP0w3kP/CfnCJ6WybA/++vAkz+3UcVyJ8OsyMYv1i4EgIEmr+vFtTj34WEeY6wLP4qFtNpZy6Ceo178DxExvMDKbmxziKH6LgxYj++AVkDd5JgqYNonl6SSbQmS5ZCZ8opA4Zj6A/+Usv9YIOtdqq1yx677fWjn9Spt9/P38HxhfGgXx3SqMlvjjridzcEPVLR+RdQCHKEWkSG01ZcoZ6UrbZH3bBrr6Di3bNti5fH4UsOYB+adH6Fexggwv3CuikzbERkVQkICsMNSZPuppSm+tBcqvlg2nZW4b3bRUGuMDvzU57FKq1QYaVlB+ls1SG6C3ccoP8yYJP3GZNoeRkbRSLNSUyiIgeZdEWBehsYp8BYGba6DDj2ewB7AZqwmt/mDAEGyacLoSEGja50GmAEKkC7SqiJ94eg5FgKOAKUsEIAHWIxYElnwgZpHrPw5mJkN59cddZcybgSRqRBCWbOEh8OWQsAE+iVymLsFldeV0L5WDC4AJmcB9S4J+UqoBduVfMuTlOc3GUmWd/jGFY0564i8uOG5hlftgDwCnNA8BZBsYhOswIQwhWF6dt8OALaYSwedKH7ODOW3cHE8IN+0E6nfF5xJfRNCE86capKMYhKsFEI3cRbBu1TKtGVrpDcceKfMJ4EBDz5VqvSlNEcgZU0Q/md2J4sBIi/OSuuRUiEeZqejHxEAabquj14d3ZCXWknVh0SBfQc/xJD0hMm2uUpMNfQBydaWoaaHrVoDJbLlPFWXvjkc7Wd1IPvAEfG1c6s2uRxV7mVjbzAxfU9vsjzwRrwV4A4Ot6873uQJcEILvfYBkDN+l7hnSLW07szHQYINAavQA2BE1DXZWI4ZMDEyGwTRAMEqQrbklKBrgoKYWB6uoCLINAYvGpq/iE+YwdBIFJdkjXpKXfNDBgEKQMZU1XrTI2YfBygIN8IzbjIvsebn2DGicziVGOSaoi8GrtJMe+yyMZ2o7DL+KUcvIXcM19CRxAT7YoNTQcEp9IrYLaD4pIR67lELxDHGlifUAER6tFtYs+phQwZ31TKbsO5SUUKVNEzySPu8Ch337aiQvNaYi1NJyDZUuPrgfjlZQjCJmOGA5ExiFi2XaniIpKhFn0eKA2ZKaOQRsVESFodpNZvmaIjP/01266JYZx/nxRjtcNKScAA8dhU8O5sdV1oa0JED/fhukPe+8t2nE5TYphEQy/WtFe19cAymvH7FXcWTt1nD4Z3Wkg3/QyoF8rSfWKmnXm6mtilee+apxT3tJYb5vn83NP23KeE6wEDbClbr6+rQuFl1AYWuPd6V8az0Mp4iEZVF0oTI9j3yijllD6kLBDKAqGMhDK2QpVBylR27vdVnLQ9KnCWe7y6msGEF3g02EWCoUYLa7RoIYFWK6ro0bZylTBCssCuwzRv6jurXd3gCvVe7NVR5nZ/Lyw0nKGxxH14F2exhmiFrkkHVRkWdh+ADs4Ca9yiUWBouV+pjZyFceDFlLRVkhcXqoXrtf9rfW998zlFsA1DST4M+snX29OUFjnYtcjD+7ZPz+31tioL3AUhPioWfFFUVXg558jr6/5aQbUejIEJO1A+d9wt5eWFVG4e+mE0QDA/P4gLzprIoA54jwWvFztN6hKJLtzs4jtsnFBLFzc05DUJ9Jf/y4xFyBBQaR/VXvanlgkl+FCUeekryLdbnJ0uIK1GOJO8EFDycBF9v1AFUJJ9xVku500rusFrT9AyZqyT6iyTbJFviRInXD2LxoOVeLDOtjj2/xFPHjKvv+AVh1IE6kHjulPayttxNgonYXwu6ra52QsOW367pzsodNYEOForJl1ozRglsFtLoDj7L+O2a+V2SW6d8z8tpbrkDVUcylydDrHHOWPa6liftrZ3glbgH4KEaWUWx89jCRG6JWyxCNbMn1jqLiphMZB2RZg0rISoOFQeuE3essXR3IKgEEl4sdzicHQ/A+vah1u6PFbooidTGW6QsoTy6qC9gyqKHJ1FQllTDPE1zN3KT3syUUa0AmD5UBI0LFbCmWJjIB1/tnyFqtAVXILLnW4FnBvhVbyCuZZW5xG967u1PyxX+LevfHthAe0/Na+0zUHAdL8epNilHrYtEHGSk72IkY2yc5y8Diut3tucMg5WY1xG5NR2mx1xQLNfzrlxr8YBmnLS0UzxMpycfF36/ZzGHJRrkIh45UpqeiAmv0eCBEL1GisPGiXB1TzU4QaMwe92I1EHZfmKrNiQJudkugYXzp+GFwU1rHOtBCIFfCqOjp0TQtGahAmIk5i0TplTUC1MX2o59XUkzhWensTqnvuWe9IKZx2KI55yDuQYhRDp6wyKeF/QByer1ebuEMoMw3iRLKV+dqKkctIejQctap+V1FC6Q4NheBhbZnapibToTUHwCCxSybqDu5za9CzoNlu7RnBnMXei4JwVZ0QTFKfWkYwnYzHiCQ9HzpiGQi9Yzs40RoWNHQWgtt4aQJkJ02oDVO5gmLBTmSPCLMjfUYUi6B6VMduod9gIywWtXAL6RIoyf3sgBvqTNj1eFtDC43sf/hoZc3KjhdNGtDQ6eVcwlSgfRyvgzcQGhSqBawnm6Mm5tKAxV8geHMvqNtuEXC3MAlbzKQMwkNVCuRiijnWqJNap45HQx5LUrq+HKQIGmWJZMLjOtQIZmtjI+wiDQrEKFqfcH9GANAl3TRNwb0vL70oz+w61y+M/mp+7qWlqieSrGTNIVdCCRI2zdTVw3OPyaJR7A3N8LUQZvtE0aPuk+0m+qaQ3EvmXCm7ogk1C1lljIKOsMMM0HmSjUdHdf3CsstIBtziejYltarbw8ajuS6Jik6xWxHj6XLYegYSkRn32bAuOtEV5SCvhzfDrNSrIMLQU52qGhABmgGGRwwp6+G34m68OvUhV9L2v/0HTb1Zu5BR9ZEoj3/O6708zMs0flqpMclIxEE7xB0f5ZUq1ZWyPmKCQMZhBxgpTLYeE/PinUCa/JnHXrqYYCHBelC0hCqPNtR5eYEAvj1XUGuHqXTPuGXpNuMBJ0EEes8ZJx5OZjtYx2chAuzwrSqH/Rs9LXElbfXf+2opglvwHzE1P/wJh6qd9fTYyuAbef20xw61zfs99S3u7Fb8U6pa56FXLLumMBZOqUBztxx0eq8cwJZDRuGwXk6pByv3EvctSeiNee/TA6W7aN+8gR4S6J84LAgo/kyaIxEs4+4ophRL+Pwwk7uPQp5wcPVcCh6Mr7MEAX5hi+yBg8otaHjsFBIgn9YnlBtjFqEj4LbV9dWtVK14vgbWp6cJvhWWRk6I81oWWxNxUJvkYsfVvhkiWnMJi0jgdcNLnu0DMQh9/Bpx56OCEDQaCgdCpWb//xFlsKuluyldPj1r9t3+r/NuRk4ym7Mi9f3jNu7ZbXPc+R41mW8+ctfQWJ6UUnUvMLQp/F1f0nRuqEG36cfnvWPMixWtYkeWVV/JR/f8fnNl4CYsWtzarHpSEGKldP443V0NjOM2JMAkanKIfczMQOGURiuDt1iPhX0j1fxx737DP8PIAD8hpwYEG8/fUlAvt7wMgsbU4Bg46jcskoIEZmKSZJZkIqdeT4Hnpn4/Dv6hBP0wHUZIG/SSvsE/RBthg7vZwoYkcDhdf4mw9LovKTCagCBOeqGH6E0iLkcTeo1bA4jN4VRMg7JqWFn/QupgY/AAW2TOmcw2A3wlhDANfkEGZCakZ0vSQzneKuNO8TlGCT+f0OGL7uleP8ia+10EUFQK1kHZcURuaBZfEu8FBDEEa9DE/1RD4pUksRnek0V/xHvZxcjKAkA55QDFICoSdkXjSg4j/9ybe4MMw2oTR+h29wF/f+jcNCzstcBouomHJOv6nkP6n8fTa9M9JRDp6wJ+Pfp8OrUV1Yi5+h9JRhf3e4vuR/ro9kyYCTC4SNaAEEkpiR3EgOoADIRpRiL1gEpMk6F1Ny+GV0tlNqtkwtcrgHVvZuYyQP121Bp7CKyU8fbY8lodukc+RSIl8BWBt7wL8rEC01uAsl2Qje96JRAWfDIsgp6PQoMKL204CU5ISXjVkuIAGlXJ2mwNfZvNESeLshKPE5NNTS/3ZIh9IcLwQ7sLaqgdUk+ERxiyPBNOUlnBklrJZC/63WcRcPBGFuc66xM0MQ2PrQUqW3xDB9cQuN7ivwdUY89bf9mMq1mcwPQDfKU6vCNN6xGpZIXM1+ZADMClVZfIT54NkbgerD3r1keGXYYVVy1Q/IqYR8dWdKWKf4UjNhJ3iYxJ0fyFCduRmBp4DbIlu3UkLcEAMALiU0wF/KlVPgXu/BDI8sMTeRRJiD9tY2gZr/RuyubYhYUIpl87wUhBkCk0HXiTP+HBHieZ5Yk4IP/BZxtj+RPMHRdGPLXXWaDYSUxJ4MD7Ej0ST+d6zyRS5WQBRA3ObPkYmGz041CS8OXEEvpGqgDohwIBKjgr7JsK0nsemHRQj6VOskHPEy8iLFuLLJomavW8JdHmKo0x5xGtZGWqJy7IlhDqRNBU+Xi+F4nyjagJXFoddRj16yNj9Oy/L7rGG+ecPjA0ZGETn+SKgshQ7V0246IgZetQ7PGb2zBLCgMQcdAElMSX5lbeGTnzJSQKbT3JNK+8Tpv/9wpCA+HICNr9KHEUfTiZt9CsAaEl4fBtJQzKlF+OGQjMTQqeD4MQ2ygYd2eCGAasoPpexzoKgXIpJpG4ClCAKNQI23hMLOPgmkaB3SivgF5AFKqJ6LRBEjTfhUJENX/2S+wFT0Y14VrNn9t3cxFJVmDMx33knNwIqM97hvhiC/nN5fHjLk6ZHBk9RuvU47LPloMGLP9ikja5/04UKEWXi3PkxVZM1R4/DHdMI8h4AAi5BPoRdBxvx4IcUcIk6CIjc4cVsRY62PkroGG5KuwNAxXTIJpCLqTPUEgdcORx1ew4W8vrQVo8fvAr5NN2/Y5FNuOsBB63WBotLqKShinMJbJGmp8jqJ6Rc+RLSoo7M3JCymzXFXux9gSm6FapRfcbY0wdeKMX5aYhMWYjnJVIezYlVVtMC8YZ3A4QsQ77Tz8QbUFADDQBArPXNvFJI9o0cS4xGd6BbV6UM1rr6bzw3Ptspzdh8sCSrxRwpfIeUSNntozq8ZxBmPdkRVZ6cI1KcTfC9pBz2pKGTj5vOiz827EhwfP4iPzeiZDX+2Cdmks5X7fM2JLd8nbgShuoujeX9Rv8l8Waodi4GM2+fTTMr7HREX+KkRCklv41dTpIWpyUHKtmSAdHDNEmKJadKknxpl8iZga1Oki770+LMVK3uM+6geBWZYMLn2PvfD+ZV8KR9xFqw7e342fQ4jy9992OonFNxh5djiymPhXCfOms9OISUtpCpPe1R7iFGQiNhitQwksIOgDmaZYrzAvNShO8Y31KEBE7PS1zzrCLxdEDRCeYdn5q8zx02yKQ9OiDD9U0oYT9GgXMHthQMQfnv7+JWGtUimMiz5eRiz8kdp6MFq3sKT88HTr3oyPLjLkciLxuehPm7nGlN9iDtXWNL46FkTPU9uuHtGIjqe4mUCWq9cngqdw1JfXhEQg2fljC9GmwleeiCbKq3bpVcBOdXMHzEfjIEH/NNTFhsqmfP99g6O83G/5RmI4U+0xe4gg1vMzQk/slp0AdpUz88PfYHZHU8HETHR2GKDV7SpMHRSZTwRS+Nu9cTO5LL1xrrt7Aa02OhTmifbM8FOI7CUzyP3qIOqWM+YKuRKZ6o4AguQmPjPe4N0sAHmagmQtXIdC4EKozQbfNCDMARQ+J+8sSzHQj8G5KWIPsd6zPu7Ci23OuGUNr3EnNtleF0AI6C/kACzEZTFgmyf5VcF73JQhJaYSdheeaLFGJqkSkhBCW0fo+jdi3z30UaFBMGStvMW4HTT5OQsWtHMBKjO9lNSvquTX6YJhIlKwsrbrPFXYlQPuOuPC699mSUljyqwrlQNLnAZzqOuFMce95rhSwoUYQKKCfl5i2cjHFXw2gIng56kgNCsT/8S/Qqei2cKPo8fkHY+lxGGn02PfOtVxyFlCkfLZl9q8gPpFRDNVRANxCcqUOiKm56mBtFhIJrbEwajuL4AlwfgPq+Og9TrRHvYbyIFzDXMvSk8r468F86rbl8dbiwWsLOfb18Wtwb3S+q3soLQTPKUcizoPjSVE+uF/NW9o79QWk8KN8u2VLz1KhciCZ7U48QYWjqY2Pl4PwYhagGk7z/rIX1Ao7t88el3Xrad3PfmdJaXo71n9HMqOjj3bBV560dHppOD6VuQk3SdmbiXYRESIR8mYYYT8RoGPJkTLkmiF5w4fRqvsC2vIjORQR8qdei27yoWOSqUmvF2Oo0KkqxWSdF5PykQLFv9Ro3R3lWb3Mc02WUZpdwgALXuD5k757oK9ZhSFGl7FnG+xJWmaaa0kSfVlpwka9cnOLR0+4K8goTOEqAENi55IAAv1gurQ9/YT99BpRpvkBPBBks58t8sHw4ON6cBVUHmoh1JhGjLpK0iX3ioZ6ySJt7d1nbae2SoOVtC3XYCYssL9ZDSJlcD1+NrHKnJxUnEDqJnWXUvPJ4KHFWwUD+lcI7ECApRbUnStANoSbvEZWmIzPOC4HgUcWzrCrX1tRPAPdmoQLQqmKwIWLQIvu8wJIjc3aeOGaeel5Lt5BbfDxF7J2cqgxgF5SSBpS+0KBSTfF7kwsrRGWOfEgVElWQZuEw2x/twehokNrhb4wxnmNiIuwZt6Jo60bbIsiSfGldKCu0K7iPyoWOtArE/pxz9CyOCkTiQjtTqC223x8lXNZHKUbIsorGibLFmfCmYXFyZcrDsz0qItomoK+yLXdo15hzhEauTMjybjuf20dvopwMJObw+pPTapzTxwsCiuusVXoZwSjs19WuCXhWNDdN72FTFw+eg8kR+O+Y08kHgd52cpY3li+W901elrebiiXCVbe8/ZiWt52flsivuiU97OcrUN07Vqasu2zFyvrwqZJlA/CucFk8tcpX8adOCbL+kSpk3f2lEBUy6tRSTle453C5l8dlOyJd0V8xUUaVdLmdI9Dl5jqZwhzBLq+VHCnnSlfSQNxp7Nf6J6EAvaKUf6+u9grsTMt0Wlw4agFipWqlVm1HF/JYWCsPy3B746Xgs1GCEG+8gu5S/PhNZmXdtZWK6yqdYAlwdPkvKAR7FZne3H9v7s9W+JV23bn1g/nxErr89MLnZeryBzsYHZnLLaPxuwC16INVBghGoUTMZAcza3OtgiIgcwDR+OgIPwhADvRwgh+/5/1jeygkVoPVldogNTUdwdbH5sYCQ0uE8uvtEAvZD42qxMUFmjY73HinqqI5q7FcIKMsbH2Gpn6QWy1nJlpnmTdRRpZ76NuJFZU+5E7J9yeU8NqhkhXediXcbHsD02DRQMVS7tSN7QQ1sqFsVm2hr/ra3RGe7sSxlPxMXT0oFmsaknOVL3zHIkLTa7YAX5OFy0u324kSc9O3dc3lyCXLk7BaWdyiLey5ggx7yL25o99XtqZR7XUeChfD1gFR1du1PucsU7Ep4I92Rj7+d1lH3iWUBjLBL5mE83gfqwoOfuEGHiL5SnRTj+hmH5yMhZO9eK6UniRSH7q0W51UdGMIm3spyBoO8Xqoh11UPiizgCKtTazeG1wtbfBTeJD7VORDsAevVQYoKypulqKogKQiHiZ4IahuBEGHrab+HM5gCScGuhtv0F+hGBg4T8MuMsr/QiE/GAhE1JqqDK/QrsOtprsxi+6XAMxnHS06XUGWCZgRP+INmgCW9xvaDBUHhvuOABapBjhRdFozTUw+kRkTY4tMw8yyg/kmRsG/fzK8//tJ08nfTrBFxXNbXxZzHszXdrk7J0B8NLoczTqayW0Hk5EKy3mEbaJoADQ96B/F4vEyj64VQxuqoMG/yQa60PuHQk3rwu4pQe68NzMineXqnj8c52smUfr5NxYkapevdDVKzqwY8GbJBhiaouXirnX+d7DAWSdsvGLvjQ2F1GO4snHCRov+nLOjHV2D/OIQoOWwfZpx7SKNoaNtEmysTTK2Vri4thcUuba5uLu1FRXKgj4my5tEjMpLRaiEC7XTGNic7dvE0Fr+EgQ2kKIXmHRaMpDOhhqZmmfalj9Y6B6Ym88KJzYWm0pKnJcJmlxl41b3QhD8Gdmdnaeb6T4EAjHoij/R1a8pK/heyMXAUGMLVzdLC2/Pa6q62DG719BiYhJ1ho4N3+2YqV5+/6n6Tgcd8PpRjCOZGHnYbkRq6VUtROWnqqpnzHXujZHPeG1ddUaNEoW8Zvi9TZI1h+1dnwlW4mfOg7cVOeQhctZ0FmmIlAPCRVJEElgoN08EBMzT7eggiYVykOiWZkHNcv8hAaUUqN0xLd6IEm94PGV3NBVnSIkzUmdQ3Sjxo0n/XR45sKZO8vg7nKOQrBXrJtM0wOwPgh9Qk/MJ0T3egWlJ2JDym1x5+4ILIv8tz/95e0sPFqXm7RXs62qhLfAa0nwbuEG2IPfObbwRi6wPioquTArBZ0fFpfeEhBOCvX1T4/ywxcFCfgcSVP5Hc3d+bvZu3bdB3BDN6SDfzJx65g6+a1EOpc6YSBEeDD7QGvtw2AKfTwG+kHWWbZfB52JO+Th8YjUl+WZJcyo+K0r0+kNWxioN09lSwRaYvFmLU/jcR46Nm+f4QBwkfNgyLtV2FLkWbS+X85t2SD/XtiNoEeXuWXKbnfGj+wXsAC6KuJ6E205bFxV6OBNT00ZIqm6Mja9pTCLUtYG7SJV0+NZs1yP4dgEIgHwRftafUkiJRyJ9YQmVEU0nT/fwozoxgfrZ1yMIlVgYMhZe2JbSL/zs8wypKTUA20wipjeSsIENKekxNwoSaYXJ0VH5ybT8RHD+NSl82CIuFdUvyO32+jbn4XTjNlYhJvhwOqbWXdPkrm6C2oybLJQjXz4WiHdjbMr5FzvT8EuldpEPE/y9X//B7P7pDCJfDC8Oa3unDi0OgbSKjeMz7h+ZL46O8GFCON3frtBRC9vzkiBqIu+bFhvgXxbO77d/dkLoYGnh98G46floY4fv3cZWKhrutjt8DSe/O6H+ZWvgYtjuauKlseE0jaePLyZ2VLPYTueTbhnsxcYYzOISsgyv2flacsrhcKMca9eejd9ThMCN0Vi8faLRBMyHEuZobhM/1pDh8LKx8zemNvc4qH8cC0rudF6Ub7i9W+djFE2NOyceQq4j3MioCQxJqYkl3KwBAhASSU9ylPQy0s/1ht8wZP9xixQYAswkzOqnid43e5ZwdjXp6K/lZc7p8PQbgVhSJL5x1C8Knx62SAzDRQElPuiS8RTV9n4dToA2yxJWdjrzrNK7Q7n8z73Nj7guP6uMPXqal9/wvvEy+a3GQTCP2tvCSOHwHxz3OqlcazEymtmRph/z9H3zHyfbZ8qS2vk8K5zdRe8aQ869fqwfzZ5kl8+Wx4IrX6BlLLgpeih/Q32oAG2WDV/5y41t2F9vLpEf19Y+5r38rDLuaD+vYO54h7NnfKI86fbohat14vaO413HXWfsLu4u7p0AiwDC8z+VZhQD92jeYTjvqkW4Sym4sSwZbr93VtVLCvMxNPuqF/nxIkx9SBFsH47aS30yIkQAY72vIRICn/fZKrn5wfCjPqk+oBQOrWQPm74dKlC3RUWZ0lYr2PHTdJxAfR3RE3p6HZCL4vsF8Uflh3zKPfzKh+XxRyqefqkLP3YJv17MdVgBI64NYemR2KD0uLBqoDbo7oz1cSFzndeUIurxAtN0dnx5GRv+Fh0vUA+1LWGXHmdlWd3jcOZ6T9VX5YTj/Tyx/byE4/IyCu4XKP0nd3P+Db336IUlPFTE5wZjGnfLffYKRizWPaDWFRgJkSLSov380yPDSSAZ8p/8c+jUU0QUNTQlrTnOE5PmXwBtl7bkS9IIddHOchwUfD/EfM9rclf37vuUkmgX53jPLGirrD5PpkyggZm9PMGCKvEJsMw9nx2a/TgHHkJYLw7i8dm1Hul50t3VuztsvevD4zcIvJQgkT6IqszKiJbOvpR4QAKBAsyklzzRszK8lFlrPuysFA96dk/AgeTFx9R1nhfbBbj+XToYZXHhh3vw/3zW++Mha5giMk4RfD9yTi/66dWLdOt9B7UvOgLWX5WiRpDctJOvA42GkMozjrjK9a6/gLn8bxdItNc956VFjgGXolRONKoJeH80/hCsMqu6s6rCYZuURQLi50m/TvnaT6HDkOrVjgJ73dhoU5KUM1s/FzWXmIAQ30RHAetlgbIPU9OL+7MjR5F1TGsSNFLOgmLx28gK7+RMamrDO36QSOFOuQ5WIP4dDgpOiIJNwEzalEQouPS7B22zKTz7JKTxm5rdt1xd1b+SRR5Y1ExWDtwg+5cUXj0G+1Psax79dyFuhb5BGUO3GlsG6eTgkkCI5yZigGsLcpAt1otPaxL/PsvPCmx3vugME1M8XRHsskO/iwpV0cuYnN2zrNK7DFwgnyQUjj7DL72qepV/46gGeZm5ZHCIvKpf+EC+kHHkfaYrd1F9YVxsZy54iaE2Uh85eHqieWr7pJVka382fseAb8QeNV0jLXmkgtegZ8gjdvg/hxKKO9gmJwUXZMl8dVRcbAzPyEXDtxWHb2Xm9s2WVYgFaofySLAhAm2qbL0aaMu9HfcCw3CZ4fjMIv9AUAs2AbfKrv0H+8Ce2Eaxsi7aXHfyxjgx7JKPS2KL0EEUjP989Ok//pOmacQMEgAv7st0hIJ1pZ03tsJB1kYqqHWzc2G9v3kThw8ihoVkZ2JiNwPxIVlhwRn5PmG0u2cAad6Qw4vKD0fv4evLKtsre0XLHl5U9Wbn9S+on2ngIho6wSqS9qxZ/hGsBRs0pDSGGkrgfcxcXtbX3vQZcEN+/9krUnZX2DrbyssjydpI30/HlydfsE6sMzs9/3nvSPdBFbRw+XLGoCveMsbxqi9vnpAlZ54cxkQJZ17+YRhksqKcXO2p9MZ5oSWhv42/E6T5ZAfagBFk/cO7TewmJiomPwIfnR+F2cTef/MWRAgbg6d8SDSc7wz6kTARAE+eeWxxItVIzm9qPWBIuso1XhUYcp6geNkAoZjTkNP//gHwzwGv/H8QWN92hSP/hQMDYkefZq8bzE2MIrrHh2RE2JQw7sjO7yA8oq+HAutH1zzgql3IB9e8oN49gGhi7uJuibQwc6Q7mplLWTm5WVxpmzA1XTHQcafD6DpuRstV/kQbGCQCVo77aCxEWin0xNxlPmDSxHTV4bYyd6M7piaTT5RaUQ8qWs24g1+yCnbNxgfNJ0IRlGjtm8i1u6F+NbPHRPaymQ3GXlCwTUyktXcChHowMn9/Yvgbfv+JEZ9smBc7DVFPffNiDaS6Vr7DO7DGu+LWERhbzmY77gLfs7ab0Kb3dzv46iKnstPGgsVHgs6mjwIsVRCXGRKkxHJ2wrMBygnED5WaOrvsdeP2ySOhuR3B4LRIbwW0xDV1BV99Q2FzEZOEAWMbfv2rBCd9eDkVPGkICMjN9E1G+SbnZgYEZufedGtozsAUFgUGlhS6JjY3uSaWFAUGFBYSvSgNN90gLkmdgyedg0mJHYMnHYPgo7wKSSVHJfNtXPOnK7YwDdunic3vMpVzlEnK8mDwgLJL4R7xt16VQIk4ftQr0bSk2LTuFe9qaepjnyQTLV3sKu2mrW0mhdXx9i5yFYcbSlkQ3UpezI72v2qXbKJfqplzD3exMvFGJ8rGSDc7S7traZpJBejO0w2gJbYTZe9mozauR7tY24Y7pV4g7cCvxzra2kc6pF1wYIcURbeZOZQFyl+gtYIR83MR/CpszM9ON7/2Lpo+Z1s7Z4emJ+BdJSkt0L50zJvW1kNMaq9kSzPUHW+ZLcjg16/NU0df95c+pkCzetSKu4Pzqj/n1QS36eZ3QEiPKEB3zTsV5zH2S5guAFU01NJWM7vSXcPpW5OYlFqaFKNjlcy2yVRUzWV5W27/ipWbh558OrcFW6Q8UDwIhPfBm1/JNsv2ZT/dAqBmK9DFPbXkB0Ln6bZ0IMuw1J3z1GkujrMQPn2Ka85Pqdl6UFd/f7sWPXz1dfcf8BesPTe20NWysxARMOKk4WcWBTIUyGv6DrEFiX84K/pBPAjwoGcoVhQAK9H5OzKafHNk+C/P92ay0jl9N1c9fVdXAz0XV300HxA7tDikL4YmDZFQNJTwKkQDppfCDtbHyZYoP00dMzMNbXtzlvBhPvJkFTm9vfqmG64o2rOKIFJaDMqOjW9AMfq6eJboSfG0PEO0qbaWtYGpy01zAzMdvLmRuoatXu2YYNp4YQa5lYzLTFcSMeOd6I9OnskDfERS+yn94xRsJNqrt3hgWFAmLoRU7Be4KSoHk9dqi7F3NGWLRiha1rq5xRup1QOxtZMn3J8PT3N9vP8csNhlAeZHlwHzIyQ/Y2Hk4EYcFG+zFQfc34RHRNoxtfcTq24AvRXZpYXyisVFucXFivJOhVovnIOTZ1i9Z5iTA7APkOuTa36JaEQMzD1lgl9/mkXbvcp+xatv+P6RN4kYkZeKgM51tcZyXQ/MJGXODZsJpov+CWXZ588Jc6OvbcMQX+aqREuLQPthvYHO+ifW57w+u1Vk4shpSqLgd/Jb+TyH/SFxPJlEnhs5tBbdKEBbK5wHnf440dRZ5/UA466wP0fY4TrPfAjKPQg7CcZw7H4jf5wKKX+NMRvZ7pEPdxgeFVdFVbFuPW3+kQrpyBgUDVEyuySPCspiNZSOCrS6fslMUsnikhwqkMxqKBUVYCXx8qVQP9TRMVtmMBGHMRfpAwMTfj4UG9YVGzEUE9F1DKy+SEn/b8Xg5cm+bWD8di/y8muSxeyjbDwdP/ZmjhbxcSFcVjarWiqaSHZMW2MeKUMSOTZlXlVJqbbR8kJ7KI9N0kkVVUVX1c86u/gpMWZIcrZJxnc29xJoNKKjnGtje0I+jjtIM2v6GTLkEPNvZPAZ10xvdma8HzbYorZW6cVy4DYHjpICnf06AbpAT0yxgjCW+fI77rhO88/f/3XK33bK5/LeuHbmfqMahtp7U+S36J7QkZWR0OQ2kexvc87Nf5ulW9Hg67K1RdmmpKDuevpUcoo1XR9Q+gJ9PZbsEfRp4UXnxrlo7AbY8GUfRpLdgj4vbptWJetA9vdaZYt5BwUJx2WDrgVygkzxTtbioy7ZckjGRKfK3P08wnFidA0J+1/4dcrffkpyRR0vjLkUqpHKkJlWKYo0p7/FWXqnT9Vct/Rkzo5UR0w6JFN2+OPnmyfBP+a6pJSKzPibGSkxhc0BiTF4TwwhJpSc093YvDKRZEEnRnVoYJc+3q3DReW5SiDj4eTxXH+L+nTfXqXAZMo9U07Zd/Vcgpi4ymc1LnM+5dONsYgRqhGkNNvZtcs+p5P2pZAjv/aSBQR+7fKFPb52Id+cu0iz5C+YtrXLZZ+q6KmwsrOHYsK6YsKHYsO7vlt87f+6nHO31T4Ta5C2e+2FRhcCTIwDL+PPGrMECTtHBwRjEj4dlb+jTiV3OUqjkKrWI87hJU/y8Uc1SB7mHzoH0qk6hQ9kCv6OduRsxV4MQCoFrsdoG2Zxx1QURUQ15QomdBtb4Z0c0xracY5vJRJb8iOJdg67EZX42OXDUnblQFI8TlaidwXQFD0doQxUAyM2792VMy0mkmbBLmjzwKFWaaTXLmcpacjGq5240aS2xh8150rTuzE+DDBEh+q/OhoAqf2en/GjMj/h215Rhi1ZFQt3JlamCbpJx93SddKylN5RuX6pi9lBOpqm21y2dOP2qZTum4lc6nJ13eRKXv70am319HLSvUpiKkmbfAebwEyVxHyfM1ttPy2CCo3L8K1tt6ugA7nsX+/qsQrbWuXf2u/5HO5tfpy/aSIRQ4tDbb3RKJSmBsom2tpGQ8u6/c0dg6zOYXzR/AcF5cORDJ9r11f1a+EKFz5c1EbXbXo9rTVn+E5NiJz1wqGV6mNf9xpafGWhHpQzdCfmTwow2VIpUlLwyD5KoWoEk82TopjFJmRfFDIDB7Dt4miLPm6CleOSE1LBZdA9KOey7ychjftHKcdACl2F5fRmTrQ+rU9eXlwIbnmFpguztstbLFvgWKlA1F8jd9X4jp5SLCnIqCqT5hlafweB9FW6t5IhuS3BxtzEzM7MncKQjFQJ7a4+R3mupLpSyOed36gFvC8kMzwwJcUz3I139npz86O2YZf2r8j8yOlWjlr/16dmy3RUnC+pykPAWvpIBJ+y5Cwt5X7H/kL364TdfxfaT6nvp+Y5KZnfiv52Ue3RHgj50VK1K5P59fmszpvT5s+fPv9hzTH668dYW/ZWvIfYza+Mq3z0mGGLnmjEV5LF1FiPNXv0Uch8Hbh8ButAnM8gznNEZL808HCt5ErYTKguqE4g7jVL678ifT8r9Y3Hk9x+SrGiuNj3i14EMsKkr9J9DYygdFslcrWM6Fx83W65omuIp6QyLmyz4nDhAuaeP3veovH0RTfa7AvNDPI2QGGrkHBicDc23b0i+42QAJ70hmYFeevouS1CX4NzsntBaxf1/vU8EndOKUTLYS6jfbUV6bd88bHki/HEN+THxHZmCybF1ZVmYSt/PVYpwfnbNSuvc8SSC7ldNWyxwfqudKjh8l3vx3MRgzqM5fwVq7X4noz6/FvjrDsX8ekXKGcrvscgxfDyVaVchPnluMrboGn/g90Dv+lwv7gZz1x+7DcTFTzjty+P7WeoFr5od0mxvKxoiXNjfJU73eLKGcpZ2lm6u7S7lDeUx0Xma8flu0/vglr/ysLKgs0CnkKedy/Ik5nFGCNMKdOGgwAD4rmMpUmXLAd6HcqyC54OPB8ZcJ3gUcS+G7dYtfhJiL0S+d6oeG8oORRLzMYA5qTcD0Q6/7ht2MUDRSm1nG7wpzc0C+ebWeb+cxOMda1wT45jP4QWOSW4Y1oNCA4vkw+Z5dfaLsFnqdFmcOa7P6/qruVV8BTi3k7Etg5WbU3DVPNJ57BQJZ4cY6UCzV+kmssEsWZOB9AIvCucsEdlelJrjGOGkrwkt+PQD13jOkHg0dqJ0igR43iyr4ADcSGD+Ggz/4fMH3R0ocl+a7y3rB0xWOnWgz96OQc+Xmx32hom3TvX7uyUruSvJfmkhR6yExaXTU1yFvsdOLXcI5LHOLHwxMdq3jaGK/v+2mH9YN5l2MurjMPZYG61VUiL//7dff8W8IdI/an2XDlQntgjFd68zohvNCnaOmDZ324YPgB4E7uK5VTkv91YuBnkeX3DxcvTWaCWYkrkugwqM6EUOwV2TfwmXB+6TWXQShO3pb+82xr7nqV5vr/ffortXX12tUrWrqxlfN+0n1o9aiiw4G+MBeNpqt3m/Sk7k6mlwkOshRuyueO9+n/bkNaeH/1SFzU6DucBeamg/HD84eR16v1gHS+Ehtfd4JSX3FdeIi8zFw8OZ6zrFz6QKzwzMkDeClXxQGh4boXcTMiXscJVN57ipoKY+E5wiMvBCQfpVdhjLRGh1NplEKrAUSJVzV5Zu1ck41uAs0rThxR/E3YYdFNcUZYL929ulexJwRHOzmRIUo2UqcxwJbcxq4a/mr9MhsQlX/mJyHKarFcUk35D4q224lVZlSHDBHNrVAupDGIRxOQEqTMlYBWJg0QXxKzhUeUpVgZ/nezzJgfSQgYJnMN63Pao/1hqoQ/17rfdsaAOdz6BucY5tttbF/CN/Gn8xfZp648taVBFipufZo2BK0ME4xNEMiKaFWQSEjdLRZlCPPS92aWI9kOjeSVyyV26I//USYrIMs684oBIkUxzPIT6safgBNFSZF1WdALuWxE+FBPedSyX3WOUX2g/xTY2LpftPhVKgSn7V8/Azb6QzGCMuj76O+Irp3QAY5CLPLwl2as0YI0f/bndIHMu98Wgbuj4HTYocOc1PejFGjMfJF/otgue+alB56qZ/Md0auCeGtYbZpmot2qo+hyLbFlBADfAXBmmKJAB8F256qmzl5RR7XC8dIaScHT/IsBlIqNjL6tPhZIgsHrLO5+6j3cYvMdH+ppN4vFDv8vbkezpu3fgP32cJf923IhsJv5snCxzGnA4HZDyw/wbAKJlpBThBFZqZU8I2LHp1dkvzlQAgTz3wgiu0RW0NtAE91GxuvLb7o3GU+UzCOJ6+YuHtf0XEKM4pTmgGyga8/tlZ1vjeIQqGhYCMFFHhY+pOjkTfCOdDg6kJJUh73jxRTTI+6piitsUNIOdhwVrFdriv7+xOX4LsLx2sHUAVuYFqB0jUTw/nIuMN5IbAQv2e0FsAfDb3oKJbwGNAzY7J1f7ClOdTR3K3OW5Fncpfhnr5pk0Ow1HegZt57ri9Mm+eoYndg8ptSOGBgThV2IgSTZ1qakRS7Ifzv3UUJIl9d5XQwPCi4J/peMcAeO2FuiHX01WmmFKASEqIv9GqnBXXCiSww4dtjPhFYzz9Pxgbwm/6lZ7JdbLqNon+FpzGrZHOUB4WOEiOENNmEhlv0I+A6IBPgHemjc7TXL8p5+iwJKTHJXVR5eymF8xWT7ozsTqxMX5wcAEECExhjGsUYFLIZqjRX41X15wDv5Ns/a5AI8eiAa1zeDPDY08xnUE+QdSPjQf0g7Jl+YrBbYPSD4zPi8uaCQ0mKkBGBV7paXNpKV6eaakzqSkAVI51gkRVSPA36ZFSWO0Giucl6cyrLdSwU0tfBJwRTMD5rmSOM6Lqzl/GMOxdpdVnCAgADxYAmQLgq2wvVcjQOcxMHqmQAesc4zewiKXVlfSOot2ABHkmNvXFsepR9YwbCaQLvInoOI4qz9fILpn315X19zR3czc3uOaro3BXgubeA+ZqkbOT/bTfsoGyWXd6Tmj/aD12DXLzC5ZtsFrd+lP282qNH5cx4qh0lV0VCkjWXQpRNs4vaErhTQ5+KA4083D2NzFzdjUzd3MGLApC53WhGklwSXXn4OK44aR/AiUU5CFiMh3C2/T4I7ckoLuvCBzK+8jEUtRxyCbiOH82mwL5+s6Wi7W1yzcbDR13a1YK9NszENRFvoGqGtqqiD5OKUqVQDf1YWGO0aVgEyoTxCpQ7lx7JV0obFc+ZyZq7uZsYuHqZFkG5s7uoFOs5xSqkmpUsWYrg08U6KJtHvBCi/vulIH6+MUSxssPJIP6pmL1tzU045ycr6uC/XbusxM6thgmF+DpqRv0Ew+OFCa7WqL47oeRCaRZ4dNBYgVM8WsA53XYhW3kSkNfmzIbTTTG0PJ1el1z3kGmXcbelCimxG33dOU+N6FaKXBpdcPgmaaKMGQPC3/MEuMvpAoasjRNTu11szC0wi5vVYgucP5b7QsqiCOHBIkfO4qWfBi1msyVdjBKDV19o6ec1jqTWsLmueTfeWy1MlnRQUOWtmnGS069AgvqfVuKWNAREFcZ4i0rPMGJ/n/b6OAyqtd+bwPvU3NXwdVKkIVic46YqI6MkqkRyplX4eaG9/UXyI9VXuCZYOyxYZl3sjKvx4udB0RnpEPrex3c/PCyY+2/3CwFy4zFPp+He3lwlDAyUl1V3lB+UD5zS8LP3enaT/3F+BZoV2hJ59FIlIi/ILT4sJEwBBg9me6aF7PZFmv2M2VbBgghYRVBiOQN8VyWtJKbs3XiD8gr+euk9Zh0+HpEf7exOAwFAWNDCOGeGNIwXgkUIEI3/vmVkPd5oMzH/cvDBys9E3dzS2DB9jw4n+U/ojjweKHqv/jxAVjxd9XJYgLEc4uJZ8VEFeS2E+yTtqXABE0CclsVD5X1zLNyHK0Er+ynzFa7ixgz0VLQmkJd4fPH0Dn9s5d6BO/sDe/LzF6fhNchUEr+aJm5yP5Kqsi+ebmeCMV+SLn5yL5qoREmjucHN54ptf9jXMINdXyIcAzZez582ucnT/6koiHHk4OerR5A3RX6odTrVK4UBMnkbqI3hDPa4sKFhFx1ZyEpOJlTXqFjASZtURsrkqhkHvxVf80dow+78U0MzDXVVU7aCIxDQi63+sPE1nECoXV0DE3V4cMI5pXEYI2sDU3rq/UgyVF/WE1jcpfba9IHIgND7kuHH+jSLslTLimnM3qD3Jyz0d7sm3dmpCz99HA9bHPNNYqR9rYyHgnVWuyHQIHhEilvSI5pZvA0ZiX6u8gRXrm6/CenU7y1Z9WNhRIzqBdYFp4zrWoV5pyY9LFxTukQhfqekrd6SEDwTtMDD4MOF/qoOwwc6AgWi13P4FDeYeoSKF5D4iRsEcmrhIJTyoKMf9tAy1JO+lpsNKsGgKn1mVbuBBX4trgpqGILbHJdalCMjQ+fbgjiwbL1WxWrn3KSY6OKF8eELcO3W+34Y/TmtB0aUjp9QOGwm2nX2DZvwqRFBpg/dOOYckNgdbDYY3kcLXXoRUTrueAIyK5N2LMw/n+8vrCKGYm5WlGQrYVg4cGQ6pktzmPpFHMw/L0Jjy4MZUZl8eZoRLm61v6Yfh4sFXMdah5pkoUU4GvYnr8DzChc7oHqjqTVc4N5HNKavi2QJ3LuCnmibXLuKeM4g3t6IKRsArL00dJWz9XwgDYTU5DTVdqUz05xNPUDO7YFuXTaBDHlqHKyepe8PanZiRNd0bU/tnV+9thII/EPyuYmoKyPWtVT1Z68Q/yqai7v7s3OW58GHqZUFXxsaqSsLA4t83HdeccH/t2IGR8EBinSCYmjg9CLm/zsJ87y8t1/cTiHKG68mN1BeEydHw4Ma63F+QgJ6Djg8mJAamEOA8o6Q3ArrwhQScGEwm9fbg/MRHp0CmgPiqwfqJK/ggnx3XTPPuTE8aHJCaAiIkAYhIyMbSU/HITNVi0oG6WtBASKijJD6D9o4Tk3hwjMTnWBt15wMZ57So71w31OsCtordZua5eDxl3Jc+FPLW7bz82eWhU4kFyOSUhvpQCCHhY6GoDg6r00boL2c6EuiCDsJ20DQGh1WVewcsvajKRZxANrn497xgkW6bP0vtUrw4AFX3oLUenh5kucYt27j1DD9Z1iAHhWk1+eZdb8MIKn9BGGm4n0IBQl+1cd2GUPqiqNgCYZdeUFhclJjbUiLPc5iS3VD47yLx11edY6MamKsynqAz40yQGhwmE/t7uXittWJKm/EVypsfp/aPitHWapHtWERKBGWSbW+xuRsjjzdSchOEgWQxSiMlzjDxwg1Cpd5K6/CgicSyhqTsnt6knIa6uJzenrhuowKCHw4m5DcTwwpbueYl1qoXJxOKbi5WTIgua2hfO3ixL48mFxdxnWfGfS/pdsmu+xdtacza4ZdYcx9pXH90z2YT/gAXkKgkFuUHSC7/9VESI7zyQIwIW0+V5B30wvwJYTJ8A4Xk4QDjx02HVYdknPpoU8r+W/9qRUjTgixhaGgL/iN+Om7tQrz7IQE0dV5BqHODen4qVfUMuWzEfPaWPtIubpJWvrSluXrlfqYuutzXM2gBb6OjUjrNNVHVRdUKl4a1DkkcS/+dvhjVut6xqThou1xOBPbGxUUZIFjCHObp7oJm2LDgpcJsBqAvU2karKS9L5Lwd5/raR6s5UFzrkZX/2OM8wZ2g/B+vhyzjNuaH5fO/j4zhN8PXKbw4dPEoDxjd+67tfUEM0leOdhBHD+dQeREkHq8fP0Qc76xoRyRbkdAimYfT/1o2KG11FCraGqWuTecKdDFQxbEkiZgnf1VlJN/8fJtAP7ytXXp4BGXhrf3E994dHT6fycOrbESb38K0WOvKL6jYiwg0xy2s4jp+5mbqa9/2KuJVpgaNo6He+rp41k5QLxi9gS04mvqmyGNmpNaZNpLGRSHjMlPQYMqbFGC/V0XYvLcwz1eWjO1VQS24dzCzL18ouu+enY6emaOHqdnoKmFjONUqIFjh+3rOj3akEib2spxqO5jPak2pShPEDfo3XLWpsHiAHzAe8O9VITYhFqYfYLMXEbD6Bzt0h+25iOgLW/gINIgVCXugLS1dW1yt2DW70boadXXl4Bypa1FNS3/KNJcWE2f3HIWYdhy05jk9Q+3U0+M/72AX946CQrc2Vzf3tsKC+ZhgCqLIFzVPtGl+jq+JN3Kuge/UzM5b1t96J4METW191UZVLX3NAk2tn5r2yQGO18Jr8wZKqChbK6s4Ktue/N7B76rZqtuMPdVXUCXDMrI8st1l/LhTqZIKlbcB1yE2pYK14glDrEiFwNgM1LMbFaLL2BxiKSreV1ZzPdtQS1VOWIPaGzZ/FayxptQ3cRXyY5NX34zfL8wLkgtUaP9wXGJ3b39vYmLvMOS7J0AvuX+TPJidmDygZ3fHJce9oFRg+cpddD8yAv0aZObETwKJDi/nHZb85g7UdHQyxj6SrmXr/jEbMHNmGjyC2bsrtegU4OwmD4DvjHTposMBop8+wwHlAeiCY5lULAACEmCUCrJptHTbAHLvP/FrMb4uKu/Lzqrsf1/aLV7abap4WLnWnW+vFRdmnibtwBYg0zAOtPVwDjaV/C5Q8f/04vJ7+tiSgd/yj92VztsSi+hxBZUBygfiwZzTjA113U0twm/PngwLV/y1ide3sQ7QU1NxveTBO52/6VxnIbHs3QB16GUdtPC7TFD5dU8txcsW8s7c0/mtuYoVfMyV8eaN/41HfIJe+PG/t/ybd9xX317kYptdU4zvUg1n8V7DPmFRwuObH+0TUBbJ71c0Y6IPsqYFztAoyK5ZYiRFCqflc+24WyvOUvwlBrO6X8uRrMEmhmGsSku8lYuTJfFbEFT5bFoKDVgyfarLbt+4aL2i8s2rRNr7c0o2gda+NhG4c9pV1/SueHTPDH+Q9vp3Q33BrS04iX8313D4voMr+OcrzUvhUjj6d3KZWz5I4vyzBlm3PaTZg3rwPljxvhml7jleSgX6zgIaj9WKWUVMzGc/KxH3sWJWrOSlbJOqot+bJDE7J1eHRgcnV7vwYVl+aTZpW9n2Svsv2j+UkxsadY9JBjJ5Vvrehf6WEJPXIRc6smwF+ALsvigHR1c7SgzuFLXJJG0rE2+1aRUvyy/NdM/hoe2d3G0u2Di7268GkZVfTfZS0VuQ9BVXgQrIuVdLt2Epcsd4om6x3Gk1PYWSSuB4bsSuYnkV+QIfWWQOlXTx9nQuHDd75KyT53nS2lhL2tNuCeEryPJc/YMBe+cgNad5UfeYpG1ljWUZXpS3eTXpR8xFKbel+4Q2fDm86v70la9yGHtMb72j5VyT1sSmK2UlHhEhYDv1t52WyGH0/TV9mkHnS8u4iIY2vlnIF662yo8dfC+H7ilKywWzbL1bI5XDHQhIpAUp8IygA7Gj/iD2SRlEb3IyK5gIjBc9dSpvbb/0TVqBTUw8ZhVzE6MtpHPhB0FnoZ/KXScncCko0JFiUNjUM5CFAfmQ9k/j0YaPd6INPo52tEuPf8Z2rvEu/jlTXnzuZ7P22wyyX0XJuR8/MRd8prmOb+f5KMbT010mNDBG0hvLiHBnf8ML+95WkIasUHB4QiDtTd2XmOJ72MSn1XbjSBMk4dHgI63RD29aEF9azRTWUFhiFSl+fdnRolYaPNCsiXdrS9BRm2/MbywIEvQbU+OrsFBS0E6INJFGEh0seJLKlIlnpfuqYkWswSKCySzx6IpHRgbNeOTs3FCrFLvWOYtl3G2ImAvnhGKfdRRGROaCBD0tUGJi7qV5xjlg4bVdksTeauW3ReZ+mgOoXkSIVGjjErFfslRkzkcqPbU+EBGXoKNEYGnIPKNKZnlsDuK8Mo5E5njEuUsuYrL15YgisBUSvAsblMUeq6Eo+JsClQMYgp85pEdl3NUXFDykTmUya0fa9zetKpOeQDbqkHKVb1pTUum/6Vg9nWNi9Juqld80MaRx9dSNdctvileOZO2cV/5N/xV2gjby9nW3iljvbtdwrX0mPVUuiBBxyHm+PxuvVVexIIQAUXcI5qfrbTUKdhKIknKtVsEaJUFAnYrcGVDwTwuw/IOwEhmkHypVihiVeqbpwYEBlI1pdIiVAij8T/cfkkPBe2U0XnT45T8B+Lok93LB367IUcu3+zhY1FhBCKPxar9uP8OAhXK4fuCVmjaTqjF7JJitNAtqbr9jO/lnwzxL2aWRNeDeVKT3bbvbIMZvcnXy6y35wcAkaBk0iTpDNtGfcmcLf7UCFpMsJYiDO7I+4DUzx9uOZmbNE6YmDL6JKzHZB4i0qXkKISzMp5g/5qQJbN2aGRwELO/2ZCZl4+DSan9yiXLXTczd3C0Bc7Wls8u50jVmbg6YWdKisS4gckwxd72+HitnNwulrnEz02y8hHPQVQVmXVgju35Xc1WJCNHcFZ+fg/fCW17Jtsj2Zv+cO7ARl+uVa3mJaEL0zz0cNwgQdz0FUP8Ssa/7sJ1Lie3rf+q02ggbJ/5thFylhdRUh2/pJj0ThX5Pa7xJPakm1Xm1YHAWsHLehyQ4kbVbv5KAXAAbV9U20ADMoMULRRVNB6oz2hrVbfn5IWl2wgZwhEmutXN0b4zzPGHqFXOHbaLRBNKnSSM/XlP3msVzZeUQZeUiFWU7PtCgOAtCsusIMZnVQXvJf9MBD8ih5Mf7ZZOrZNGW63bmZOey/r5qcmljCyli2dHIxFrP0dTc0lhByv6hULdDXr1sSN8KG1tCj4SsYFqm1fUDl661lOaikkksIaXUWyCcCC6t/eXIjIzF5eMibwR/2GFUg/dT+1LQd6WpRV65onOlZ8rWDVI+3zjw/9fmqa9f95c9pkCyelSK+zaMTaGjLc4ZPd+n4JMsRAj+AMoAfa5r8MRAV9uJezH3Ta7F3FFnRW6Kns3Erz03ttTVsrMUETDe0NURBD7OwHggoP933QbKebjVF4MK/4sJ+6Iq8ekKAzCHwnfab5SNnfe15LmK2EulSJlr9NQTbvhK++kTSOW19Q4CPhduk6cZsqbIkwxBjDNMRpLDKVpeU5+2BGd3+AJjwtyVHSDmBtIxDCqGxAJy3pmsLDKZxxLpBoX/pgI31YEpphXiTUeSwlsdT/q6KTtOeuZQ6UAhYyn2Yn5Rlak8tj5BwOfMfjAHnd3YZJLTCQo2LkQUAVy2XIaTjTwB+6HYs6h7jggSpIq5wwGebZpsFBXNay8udCFQWlwIxYcnoAjt72t/LYXr25TvXIYhH5Q7Q0z3M7i5I7rvyeIcem3UVvk5oX6Nqk+KxF1YM3SpzqtZC/XNqb2cGgfNVAFcJqh6qwUU1pe2Mg0hyzyyT381sti+2elEQxiEQdhGhHU6l/Xfwq+9uF9mT1wXziV60omCgv2sF3hBXpmknKOc+Sau+bOiLVx9Q+q692NBApWHVnvSyTQPlTyhUB35WLezOxFEu6lndtuHgoaUDBQwcL+d3sHHv3q9SoihO0MeDn9/dnz6ZJaBG4wpLD4xqi4qSYQNhMX9hLgKts//hhESouqjCCkET1F7bELY9WKbGhO0SY3NWcs9Y7TxnqV5xF+b7ljfbhux0Tr3CnT+7AIMUw6hKcU/Et13PPouqt8rCX3U8v8xWj3E5pBA8V/b6J1wKE13t1NiK38VEbNBktvY571aNpvRERsB9uXHeSHofjG8NKwdkUpGP9VEAivHwspGC76/HbaGJSjY5/i/S5loiqnUTvUCXKn178zu7WfQq5MUM/3y/YwqdeWQFsbDuX1kCXRJfoOdsp3TR0xNSbfKYVPXtmd5/NADmnCBLq6pRT+gdmVrea37r0q4Au0I9QcRPTCvdl5COrWqOm0yITF9srpqrpSQi126g/W+s8TpHctRSR9PTEgbV7kr3sucX12eXwbctRU6+y8PeSpBleV6rXJxtpdHu7ig0uPXkQta3t7FGaWZcsVf/qlCwBWeS0UKT+ViL50XvOGl5768v6mokTrkqAjUh3alBGQioOODiYm9/b29iTqS2lP1SJbaKvBfU1PHVNuFTgwmE7p7u/uToZLJCBkG6ddLoYZ2drPd1ZmkF4s4jQJfVSm4TARkYigxgZxr4l1YARevCji4O6EEZOKfQo8Mn4zwIkAvCUnzyXYpxg0B1FvdQTlOLwh/6XsK4mEYOthDQQmoyWfskuWTFloCXNubxCzAL5SeTwcsWC6LCx0MrbR017h8b/r53i69DTZq8pPHu3oyROSRF+/oj2zWPP4fRuWdYP797K3HmnoRXnbIsaL8++62AjDXNR/uL4tjgphWWW/3/yx61zNC+d7jV742tH14KZk3jGqz4O2G0LlTUlqU1Hq6Wq9v2wvt5Qx5bebwkJ5v5g4dp/7GWP8KbDN1H6DsfyV0vZw+zdhi9OsrDH2aoYALS4iytjB2nby2MLeM58YjaQaSzCSWJaGd11imEJY+yrJ8aGcbSwWz1GuS/sTSi1m2QSzzIcsaRzvdFtDdK32bvNv0nXttn1J9N4uo6UXUj+6LPktZJ1nwCkRCO7qWO4RmPLans1jHBO7rpZSVduq1VHWUb38b6dvUFI8NSnTVtQ9Q3NsI3Ev0SUoX98R9OGRqxv9Cq41rV1jaYjitfCPakbQpJKONsl5TVGgcqRHTS0naO7KIqt5E06elTqm83sHb/JpoLV0P0LZKJY1+kjuSok9KH4GyO566W/077CV1g6IhxIjhZsi4HZ69raYtBuR/Zd2c5KJwHUlUHUm95hu1WozadKLaxoiU79Yjua3ewzxwQgVu85kKnni29Oz3mGI6xOUgqn7rObKXXlQexgD4bQaztEVNypPq4BaIIgdjapZLXU3eWzdssPd/dyuligP0uvOSbx7aCrA8VzROQkUX4iZ0J2X0vDOHKvY7wE5UXeVaDZWhUweVV3ptR7ft3FwUD7EVPB4V31VNr97z+CDvQ+B6lrImhbeF2FAWj4vt2lMa0NMe5WJzvW7Jqobm3eetEqqOPGekLapzNeve5JA0RpeDB/UHt/uUG5R3VZSUHvTvpChLKw1Xv02JfgNYlRLkZSqKkqasAGBQ2pRXdImGJUXw16NuVa0jp8b7M93qceR+qlQU7Bb+BE9BpgLckXr1M/BpP7jlLyC3gh9t/d8Rthv+ImQ/yOWmwZyWI9TYbjIit0peGmti2NVl/GxQRxclvqkBUwHlrqdJrSJ7wJhvQf+BAHsA8DM+VtZbZG5ey5D79DmvKB8VjBlyhmHUjzn6J95elryqYFgs5h4eIDQPJY8xNrC2Udwydc7uJvEUY5hhw1HcGEBRBziPfuSmyfeRYxQO2j02j2A/p11baPpPqf239P7G0un0a4RBa7WZa6O89daoddeIgz5GrEYjth/ErdOZv5NyWy9ia/iC+6vYdohZD1n9ynaOVb42ql+KuWUR8y3djCef76XOCRTbJ8lzMf0ErlfDAdNHdsOeFSmhYWa/pg9sWOx1y04BK2xfBgUpvbx1tK7kG5fZ7Fkv5iti6D/PIiulzu0rV7KcMZZ6DjGfdyJNirT9mFsHXFxb5LRfsJ6zrMfq+yP9luw+gFsgb9pLniKok8SlR833vp6Wxn1qwn1BY2X9A9/eUQRM/SVDOGuPwmq6RU3vBdbaufc0m5vq3gGBKlCgRz1vTN/ucWj4wnc9hMc+rOYMxeOoYgWvbGWWaZfVDlk8y08KjYQFdnG9L5RGm2Yew6xRNuwgZgwirD7po8xaZ8vIS4yFtV72yOVq7zPnYjEf/v8IM0xeNyraQhXJrn3qLYVcAOkS8dbQaravN3jZu8dQ0KqqjRS2Sk5FUcuHWi3d5qif9bR9XBSl9h2Hzc2Uiz5J7+eSp6MTqFZksYXymFVYKdXsKxeUxd2u/zrGtoP2UBttv9hmHzTNulen0Wb1zZ6tvKYa1BVJJ5d4f2rs13Sl6K3px/rWBlq3gC/LdYS79U9g3oN/gUC9bR0eUCAI2AgAc8ULAbCYmDcfVAFfiDl8E+ge39GI+aF7AodPwSYpawjMUNF80Lt68gVxbpBWt7t6B595GKR3A+KSgSdYOTxFFfMMrVKexYbnBRxiO5zjklFrIMB85c8TBOVvnsIxhwhTt7h2FjYxSWTyojIpZxjnIXIhhW3oCbt9B1LefcM/DAU5BWWDLj4dFS/KXAwWGoThHdLC6GQxUN7mCZHxRWRAWk46KBErrVTOIStnGcHjUx+lADnYnOeJFbOfJTkqIZBnmbmgKq0iLZsGzmypFOaONJQyOV+daXLDHlpZs02FeGuhmq6khWsrlL54JGIFz4wZ8qLgrwB47wtfyeS4EYIp6w0zNVEfLuvMTA4GbCdHGhTmKzHDd6AiW1Tcmw3samYlXGNbmYmOymaQww8mXWXO3G4YTXk8T8l5ObKcjehz4ZZBgJWlZ9mZKcsdFeR9aEi5pLd7sveY9uTWDEIXk8EkTVaNLP8Fs0ronlOBX1iDH7zMVKD8fNMmYRZK1tufwr9DhxIGDJbcz75hsYNu7kMeUe2JSiv+/rzJXrURYIl7zKrCESssD49FTniUbthsn48+aLfdT845o57BNKukuuA7Z513WauLLnnK6LorrtovzRur3XLDTemee2mxTBmmy5bFZKscM82QK0+BfIWKPFNslhKzzTVHo23KlJpnvhdeafoIDWMd1+tfnYKdg7MfQ+XmQfhoDBaHJxBJfPwCHX1xKSQsIiomLiEpJS0jK9fVbaigqKSsoqpGVtfQ1CrK/lhEj6JPP2GgvQ0bET56xozHlnaZNGXajFlz5u/T98dfr7zOgSMnWvKOG8G1z3xeMLz58IXlx1+AQEGCmypEKBx8h94UJlyESFGie+y5XXueOrBjvxtixIoTjyBBIimizE0pUqkRrZ+IJANZZjVlyZazGZevgAzfN4lyFSpVqVajVp16DYSPDYJHZOxz77wRoxakmUXWbbE27c24hVaHTl269ejVp9+AQUOGjRg1ZtyESVRTaKbNlNstdLfNmjNvgRbd9w0rVq1Zt+Guezbdt2XbAw898phucl+VwvfMd1Wr8p9WxWq1K1CqrPc++OgTHeVkk5uPQbfH6zM5AFGSFVXTjfCmmJb99R8YhPRu3sXNw4vGYCnohQTiEX38AoISCX/JRsXEJSSlpGn5CQneLcONCp6QNpyQcNx6PABEmGRT1GYeFTugbZeKJS+WEaoDSnZurSFod3O9wWgyW+jupdKkv0qT6DiDcWkWK1GqjJozJcYXJc2Ha900DlHE+3Njxk2YRDWFZtqMW+g+f7qfc/yci0+Wxt4RBFjS2yQYvVHba6TtmT0MT2CGWmu3B7h0NxsJz34tgTeuVhfa2bGiBWe1qnCerixYGhQz8mJLLC9hSVheaf1fDjm+gYbx2iDhhmoVXko7ufdBBCEHX1lJ/+vVtUB5J7dudxqtPkEi61uevxXMuU8WbhBVwVXehdvSCy0Cb5PYreziuXWQS7yf5m4/cp5fvasw5/sGE5t15IuAI7+gAZi/EfAAIjUE4TLExzTWuhvfYhNW8JQtHyfRxZqRN0y8Vn1QMPDn4uuJS3keO3mSxJ5Fj/IlkGcjz+vPbnrv/v0ijUJMTV16Knhr1CgH34hRFbyHlPp/vfp+BJbUycg65iY/8HOWR4tdwz/qrUcSyDFBPJZWAnM8bgZXRrvm8b+rIpB80XGyg5cqHr+b89HXp06+lcsrq905U9So/fZaojghbITFohKSPezfZ5ZnpNAzJGS0KVdYmI3oNc42pt3+IhDFwnAKQUpnke7xghOjpMHPSoxUEgQlViMkGb5xPJBAtEADR978daOC3UPz+0iZ3Y/lb/Zo5uXsl3c7X6Sqw5PNxfESfnOX/w9FRMGlYliAEIygGE6hEpIWocKGAcQmqMHQIzkAQTE8NICnAgAhGEExnPJ0vQo9hQWlT/tAygC9GYcR/YxsqppEj6QAEIIRFMMp1HsxlTEpNHHPrSkN0TsLump727KmLMWwCkWClG+VOoVcyR3XhyU7HKVJZb2h0vqYQg2IflGwiBjLaSorzh+reFQqdTMsCZsAQjCGE5KxSzoadcLA4pEms9omODzkxLDR2MCJGFggBCMohkvpGeJ4HMsMOB5t5D5wQwMbXTrxd83uiEZ/M+J45t4iSDp6M/QmyGgRWjHyjyAcDr+24qsVHF8uAS/f2sLld2UOfYA7DNjChs1d32q+6yvoGzwbPYBQL05R3KXh23B5Bv2+p6bHFC43+P84NW4xncptt3AzzpuvXgxmSltF/7O4mo+wKtKeRhWj6TUUZ+z10CDBLZrIfpmZ5dV85JSjJ8XtrbLKjfAsXYA2P6dpVSlbwGbajXkuWjhyuFo4TrNKxVsiv7q0LbsIV/68zaUw71X59WXD5jnGZ9/PIGNaHjWNLEsDQC4XjFFIFgwCJB3T3t527K03IHYWlrvsV6U3c3HwLqfxS3JoOBFCM1GUp0bjZnGUIfGARIkqkS8OkzYRZrInSqUjcSzadAtfvW5T8KozAYu2LVH+0IXgc/FDcZc8IAgdAkHeUIKLGlBOpeSbmRiW+qc9coGyIpCZZVkSOyCCstC0wWqVbY0pFfUYVD3f7wTQHgAHpsBBAEBZBODgEQhlQ9M02rp3srA5pxUvYzSOoIlKTVvxlCFQdXmtrIU6M23TVHXnxpybFR2q0n0oGtxUtrZLDQrx9VX8xWL2MQ1TqQ/dLnEbObO+tMox40BUNWblCpOi7bKmbV0AFHbZirNFCzOtBwGZTd32dTB53RcxFFjyCLV2PEsIu915+ZmaNkSyxlHXLzOkKfTNxHHI38JVhtawdFurteI9E7eSVO9nK4gSUgx3msEz1qCOpAhB0ZjbF6w5z7RVvThX0nYhtKQon2eZu1hmrcOB8RrPzrLotXhZc9RU2dTMaVVWSycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/JZ9U1UQv8muyogzfjq3zcXfBk5dUaandemo1Lpu+gfxRS0quGhm0MTixgxyGUTXdZZIb8fSeJ5iIbyL6xxlDU1z1Ondoq5WK/TiBmGFViZDOT9TXHjq9J/1n/df9F/2X2XX2eLqMYT6Bda7m7tPU7tesjePu86yzG/3v77fxWK6k+sviyhq2vJhA9bGk3/X5eN/AAAA\")\\n    format(\"woff2\");\\n  font-weight: normal;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n`});function d8e(){if(document.head.querySelector(`style[base-sdk-font=\"${l8e}\"]`))return;let t=document.createElement(\"style\");t.setAttribute(\"base-sdk-font\",l8e),t.textContent=c8e,document.head.appendChild(t)}var l8e,f8e=Z(()=>{f();u8e();l8e=\"BaseSans-Regular\"});function O_(e,t){for(var n in t)e[n]=t[n];return e}function w8e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Yo(e,t,n){var r,o,i,a={};for(i in t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Iq.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Tq(e,a,r,o,null)}function Tq(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++y8e,__i:-1,__u:0};return o==null&&Oi.vnode!=null&&Oi.vnode(i),i}function Q8(e){return e.children}function Cq(e,t){this.props=e,this.context=t}function Z8(e,t){if(t==null)return e.__?Z8(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?Z8(e):null}function x8e(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return x8e(e)}}function h8e(e){(!e.__d&&(e.__d=!0)&&l6.push(e)&&!Rq.__r++||p8e!==Oi.debounceRendering)&&((p8e=Oi.debounceRendering)||b8e)(Rq)}function Rq(){var e,t,n,r,o,i,a,c;for(l6.sort(Nue);e=l6.shift();)e.__d&&(t=l6.length,r=void 0,i=(o=(n=e).__v).__e,a=[],c=[],n.__P&&((r=O_({},o)).__v=o.__v+1,Oi.vnode&&Oi.vnode(r),Bue(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,i??Z8(o),!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,_8e(a,r,c),r.__e!=i&&x8e(r)),l6.length>t&&l6.sort(Nue));Rq.__r=0}function E8e(e,t,n,r,o,i,a,c,u,d,p){var h,g,y,v,x,R=r&&r.__k||v8e,S=t.length;for(n.__d=u,Abt(n,t,R),u=n.__d,h=0;h<S;h++)(y=n.__k[h])!=null&&(g=y.__i===-1?GD:R[y.__i]||GD,y.__i=h,Bue(e,y,g,o,i,a,c,u,d,p),v=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&Uue(g.ref,null,y),p.push(y.ref,y.__c||v,y)),x==null&&v!=null&&(x=v),65536&y.__u||g.__k===y.__k?u=A8e(y,u,e):typeof y.type==\"function\"&&y.__d!==void 0?u=y.__d:v&&(u=v.nextSibling),y.__d=void 0,y.__u&=-196609);n.__d=u,n.__e=x}function Abt(e,t,n){var r,o,i,a,c,u=t.length,d=n.length,p=d,h=0;for(e.__k=[],r=0;r<u;r++)(o=t[r])!=null&&typeof o!=\"boolean\"&&typeof o!=\"function\"?(a=r+h,(o=e.__k[r]=typeof o==\"string\"||typeof o==\"number\"||typeof o==\"bigint\"||o.constructor==String?Tq(null,o,null,null,null):Lue(o)?Tq(Q8,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Tq(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(c=o.__i=_bt(o,n,a,p))!==-1&&(p--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&h--,typeof o.type!=\"function\"&&(o.__u|=65536)):c!==a&&(c==a-1?h--:c==a+1?h++:(c>a?h--:h++,o.__u|=65536))):o=e.__k[r]=null;if(p)for(r=0;r<d;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Z8(i)),S8e(i,i))}function A8e(e,t,n){var r,o;if(typeof e.type==\"function\"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=A8e(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Z8(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function _bt(e,t,n,r){var o=e.key,i=e.type,a=n-1,c=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&(131072&u.__u)==0)return n;if(r>(u!=null&&(131072&u.__u)==0?1:0))for(;a>=0||c<t.length;){if(a>=0){if((u=t[a])&&(131072&u.__u)==0&&o==u.key&&i===u.type)return a;a--}if(c<t.length){if((u=t[c])&&(131072&u.__u)==0&&o==u.key&&i===u.type)return c;c++}}return-1}function m8e(e,t,n){t[0]===\"-\"?e.setProperty(t,n??\"\"):e[t]=n==null?\"\":typeof n!=\"number\"||Ebt.test(t)?n:n+\"px\"}function Sq(e,t,n,r,o){var i;e:if(t===\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||m8e(e.style,t,\"\");if(n)for(t in n)r&&n[t]===r[t]||m8e(e.style,t,n[t])}else if(t[0]===\"o\"&&t[1]===\"n\")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase()in e||t===\"onFocusOut\"||t===\"onFocusIn\"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Due,e.addEventListener(t,i?Mue:Pue,i)):e.removeEventListener(t,i?Mue:Pue,i);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=n??\"\";break e}catch{}typeof n==\"function\"||(n==null||n===!1&&t[4]!==\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&n==1?\"\":n))}}function g8e(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Due++;else if(t.t<n.u)return;return n(Oi.event?Oi.event(t):t)}}}function Bue(e,t,n,r,o,i,a,c,u,d){var p,h,g,y,v,x,R,S,M,P,z,V,Q,$,oe,J,re=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=Oi.__b)&&p(t);e:if(typeof re==\"function\")try{if(S=t.props,M=\"prototype\"in re&&re.prototype.render,P=(p=re.contextType)&&r[p.__c],z=p?P?P.props.value:p.__:r,n.__c?R=(h=t.__c=n.__c).__=h.__E:(M?t.__c=h=new re(S,z):(t.__c=h=new Cq(S,z),h.constructor=re,h.render=Tbt),P&&P.sub(h),h.props=S,h.state||(h.state={}),h.context=z,h.__n=r,g=h.__d=!0,h.__h=[],h._sb=[]),M&&h.__s==null&&(h.__s=h.state),M&&re.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=O_({},h.__s)),O_(h.__s,re.getDerivedStateFromProps(S,h.__s))),y=h.props,v=h.state,h.__v=t,g)M&&re.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),M&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(M&&re.getDerivedStateFromProps==null&&S!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,z),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,z)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(q){q&&(q.__=t)}),V=0;V<h._sb.length;V++)h.__h.push(h._sb[V]);h._sb=[],h.__h.length&&a.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,z),M&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,v,x)})}if(h.context=z,h.props=S,h.__P=e,h.__e=!1,Q=Oi.__r,$=0,M){for(h.state=h.__s,h.__d=!1,Q&&Q(t),p=h.render(h.props,h.state,h.context),oe=0;oe<h._sb.length;oe++)h.__h.push(h._sb[oe]);h._sb=[]}else do h.__d=!1,Q&&Q(t),p=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++$<25);h.state=h.__s,h.getChildContext!=null&&(r=O_(O_({},r),h.getChildContext())),M&&!g&&h.getSnapshotBeforeUpdate!=null&&(x=h.getSnapshotBeforeUpdate(y,v)),E8e(e,Lue(J=p!=null&&p.type===Q8&&p.key==null?p.props.children:p)?J:[J],t,n,r,o,i,a,c,u,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),R&&(h.__E=h.__=null)}catch(q){if(t.__v=null,u||i!=null){for(t.__u|=u?160:32;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;Oi.__e(q,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Sbt(n.__e,t,n,r,o,i,a,u,d);(p=Oi.diffed)&&p(t)}function _8e(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Uue(n[r],n[++r],n[++r]);Oi.__c&&Oi.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){Oi.__e(i,o.__v)}})}function Sbt(e,t,n,r,o,i,a,c,u){var d,p,h,g,y,v,x,R=n.props,S=t.props,M=t.type;if(M===\"svg\"?o=\"http://www.w3.org/2000/svg\":M===\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),i!=null){for(d=0;d<i.length;d++)if((y=i[d])&&\"setAttribute\"in y==!!M&&(M?y.localName===M:y.nodeType===3)){e=y,i[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(S);e=document.createElementNS(o,M,S.is&&S),c&&(Oi.__m&&Oi.__m(t,i),c=!1),i=null}if(M===null)R===S||c&&e.data===S||(e.data=S);else{if(i=i&&Iq.call(e.childNodes),R=n.props||GD,!c&&i!=null)for(R={},d=0;d<e.attributes.length;d++)R[(y=e.attributes[d]).name]=y.value;for(d in R)if(y=R[d],d!=\"children\"){if(d==\"dangerouslySetInnerHTML\")h=y;else if(!(d in S)){if(d==\"value\"&&\"defaultValue\"in S||d==\"checked\"&&\"defaultChecked\"in S)continue;Sq(e,d,null,y,o)}}for(d in S)y=S[d],d==\"children\"?g=y:d==\"dangerouslySetInnerHTML\"?p=y:d==\"value\"?v=y:d==\"checked\"?x=y:c&&typeof y!=\"function\"||R[d]===y||Sq(e,d,y,R[d],o);if(p)c||h&&(p.__html===h.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),E8e(e,Lue(g)?g:[g],t,n,r,M===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,i,a,i?i[0]:n.__k&&Z8(n,0),c,u),i!=null)for(d=i.length;d--;)w8e(i[d]);c||(d=\"value\",M===\"progress\"&&v==null?e.removeAttribute(\"value\"):v!==void 0&&(v!==e[d]||M===\"progress\"&&!v||M===\"option\"&&v!==R[d])&&Sq(e,d,v,R[d],o),d=\"checked\",x!==void 0&&x!==e[d]&&Sq(e,d,x,R[d],o))}return e}function Uue(e,t,n){try{if(typeof e==\"function\"){var r=typeof e.__u==\"function\";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){Oi.__e(o,n)}}function S8e(e,t,n){var r,o;if(Oi.unmount&&Oi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Uue(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Oi.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&S8e(r[o],t,n||typeof e.type!=\"function\");n||w8e(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Tbt(e,t,n){return this.constructor(e,n)}function k_(e,t,n){var r,o,i,a;Oi.__&&Oi.__(e,t),o=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,i=[],a=[],Bue(t,e=(!r&&n||t).__k=Yo(Q8,null,[e]),o||GD,GD,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Iq.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),_8e(i,e,a)}var Iq,Oi,y8e,wbt,l6,p8e,b8e,Nue,Due,Pue,Mue,xbt,GD,v8e,Ebt,Lue,av=Z(()=>{f();GD={},v8e=[],Ebt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lue=Array.isArray;Iq=v8e.slice,Oi={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},y8e=0,wbt=function(e){return e!=null&&e.constructor==null},Cq.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=O_({},this.state),typeof e==\"function\"&&(e=e(O_({},n),this.props)),e&&O_(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),h8e(this))},Cq.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),h8e(this))},Cq.prototype.render=Q8,l6=[],b8e=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nue=function(e,t){return e.__v.__b-t.__v.__b},Rq.__r=0,Due=0,Pue=g8e(!1),Mue=g8e(!0),xbt=0});function Pa(e,t,n,r,o,i){t||(t={});var a,c,u=t;\"ref\"in t&&(a=t.ref,delete t.ref);var d={type:e,props:u,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Cbt,__i:-1,__u:0,__source:o,__self:i};if(typeof e==\"function\"&&(a=e.defaultProps))for(c in a)u[c]===void 0&&(u[c]=a[c]);return Oi.vnode&&Oi.vnode(d),d}var Cbt,MDn,Fue=Z(()=>{f();av();av();Cbt=0,MDn=Array.isArray});var J8={};qa(J8,{clsx:()=>hm,default:()=>Rbt});function T8e(e){var t,n,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=T8e(e[t]))&&(r&&(r+=\" \"),r+=n);else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}function hm(){for(var e,t,n=0,r=\"\";n<arguments.length;)(e=arguments[n++])&&(t=T8e(e))&&(r&&(r+=\" \"),r+=t);return r}var Rbt,ax=Z(()=>{f();Rbt=hm});async function C8e(e){return Ibt(e)}function Ibt(e,t=4){return`${e.slice(0,2+t)}...${e.slice(-t)}`}var R8e=Z(()=>{f()});var I8e,O8e,k8e=Z(()=>{f();I8e=\"#FFF\",O8e=\"#0000FF\"});var N8e,P8e=Z(()=>{f();Fue();k8e();N8e=({fill:e})=>Pa(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:Pa(\"path\",{d:\"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z\",fill:e===\"blue\"?O8e:I8e})})});function Wue(e,t){Uc.__h&&Uc.__h(uc,e,zue||t),zue=0;var n=uc.__H||(uc.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function n1(e){return zue=1,Obt(G8e,e)}function Obt(e,t,n){var r=Wue(qD++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G8e(void 0,t),function(c){var u=r.__N?r.__N[0]:r.__[0],d=r.t(u,c);u!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=uc,!uc.u)){var o=function(c,u,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(g){return!!g.__c});if(p.every(function(g){return!g.__N}))return!i||i.call(this,c,u,d);var h=!1;return p.forEach(function(g){if(g.__N){var y=g.__[0];g.__=g.__N,g.__N=void 0,y!==g.__[0]&&(h=!0)}}),!(!h&&r.__c.props===c)&&(!i||i.call(this,c,u,d))};uc.u=!0;var i=uc.shouldComponentUpdate,a=uc.componentWillUpdate;uc.componentWillUpdate=function(c,u,d){if(this.__e){var p=i;i=void 0,o(c,u,d),i=p}a&&a.call(this,c,u,d)},uc.shouldComponentUpdate=o}return r.__N||r.__}function X8(e,t){var n=Wue(qD++,3);!Uc.__s&&V8e(n.__H,t)&&(n.__=e,n.i=t,uc.__H.__h.push(n))}function W8e(e,t){var n=Wue(qD++,7);return V8e(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function kbt(){for(var e;e=j8e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oq),e.__H.__h.forEach(jue),e.__H.__h=[]}catch(t){e.__H.__h=[],Uc.__e(t,e.__v)}}function Nbt(e){var t,n=function(){clearTimeout(r),z8e&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);z8e&&(t=requestAnimationFrame(n))}function Oq(e){var t=uc,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),uc=t}function jue(e){var t=uc;e.__c=e.__(),uc=t}function V8e(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G8e(e,t){return typeof t==\"function\"?t(e):t}var qD,uc,Hue,M8e,zue,j8e,Uc,D8e,L8e,B8e,U8e,F8e,H8e,z8e,Vue=Z(()=>{f();av();zue=0,j8e=[],Uc=Oi,D8e=Uc.__b,L8e=Uc.__r,B8e=Uc.diffed,U8e=Uc.__c,F8e=Uc.unmount,H8e=Uc.__;Uc.__b=function(e){uc=null,D8e&&D8e(e)},Uc.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),H8e&&H8e(e,t)},Uc.__r=function(e){L8e&&L8e(e),qD=0;var t=(uc=e.__c).__H;t&&(Hue===uc?(t.__h=[],uc.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Oq),t.__h.forEach(jue),t.__h=[],qD=0)),Hue=uc},Uc.diffed=function(e){B8e&&B8e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(j8e.push(t)!==1&&M8e===Uc.requestAnimationFrame||((M8e=Uc.requestAnimationFrame)||Nbt)(kbt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Hue=uc=null},Uc.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Oq),n.__h=n.__h.filter(function(r){return!r.__||jue(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Uc.__e(r,n.__v)}}),U8e&&U8e(e,t)},Uc.unmount=function(e){F8e&&F8e(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Oq(r)}catch(o){t=o}}),n.__H=void 0,t&&Uc.__e(t,n.__v))};z8e=typeof requestAnimationFrame==\"function\"});var q8e,K8e=Z(()=>{f();q8e=\\'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:\"BaseSans-Regular\",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:\"BaseSans-Regular\",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:\"BaseSans-Regular\",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}\\'});function Y8e(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}var Pbt,Mbt,kq,Dbt,Lbt,Z8e=Z(()=>{f();av();Fue();ax();av();R8e();$p();P8e();Vue();K8e();Pbt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+\";Mbt=()=>{let[e,t]=n1(!1);return X8(()=>{let n=()=>{t(Y8e())};return n(),window.addEventListener(\"resize\",n),window.addEventListener(\"orientationchange\",n),()=>{window.removeEventListener(\"resize\",n),window.removeEventListener(\"orientationchange\",n)}},[]),e?Pa(\"div\",{class:\"-base-acc-sdk-dialog-handle-bar\"}):null},kq=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-base-acc-sdk-dialog-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;this.items.set(n,t),this.render()}clear(){this.items.clear(),this.root&&k_(null,this.root)}render(){this.root&&k_(Pa(\"div\",{children:Pa(Dbt,{children:Array.from(this.items.entries()).map(([t,n])=>Yo(Lbt,Object.assign({},n,{key:t,handleClose:()=>{var r;this.clear(),(r=n.onClose)===null||r===void 0||r.call(n)}})))})}),this.root)}},Dbt=e=>{let[t,n]=n1(0),[r,o]=n1(!1),[i,a]=n1(0),c=p=>{if(!Y8e())return;let h=p.touches[0];a(h.clientY),o(!0)},u=p=>{if(!r)return;let g=p.touches[0].clientY-i;g>0&&(n(g),p.preventDefault())},d=()=>{if(r)if(o(!1),t>100){let p=document.querySelector(\".-base-acc-sdk-dialog-instance-header-close\");p&&p.click()}else n(0)};return Pa(\"div\",{class:hm(\"-base-acc-sdk-dialog-container\"),children:[Pa(\"style\",{children:q8e}),Pa(\"div\",{class:\"-base-acc-sdk-dialog-backdrop\",onTouchStart:c,onTouchMove:u,onTouchEnd:d,children:Pa(\"div\",{class:\"-base-acc-sdk-dialog\",style:{transform:`translateY(${t}px)`,transition:r?\"none\":\"transform 0.2s ease-out\"},children:[Pa(Mbt,{}),e.children]})})]})},Lbt=({title:e,message:t,actionItems:n,handleClose:r})=>{let[o,i]=n1(!0),[a,c]=n1(!0),[u,d]=n1(null);X8(()=>{let g=window.setTimeout(()=>{i(!1)},1);return()=>{window.clearTimeout(g)}},[]),X8(()=>{(async()=>{var y;let v=(y=Ut.account.get().accounts)===null||y===void 0?void 0:y[0];if(v){let x=await C8e(v);d(x)}c(!1)})()},[]);let p=W8e(()=>u?`Signed in as ${u}`:\"Base Account\",[u]),h=!a;return Pa(\"div\",{class:hm(\"-base-acc-sdk-dialog-instance\",o&&\"-base-acc-sdk-dialog-instance-hidden\"),children:[Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-header\",children:[Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-icon-and-title\",children:[Pa(N8e,{fill:\"blue\"}),h&&Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-icon-and-title-title\",children:p})]}),Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-close\",onClick:r,children:Pa(\"img\",{src:Pbt,class:\"-base-acc-sdk-dialog-instance-header-close-icon\"})})]}),Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-content\",children:[Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-content-title\",children:e}),Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-content-message\",children:t})]}),n&&n.length>0&&Pa(\"div\",{class:\"-base-acc-sdk-dialog-instance-actions\",children:n.map((g,y)=>Pa(\"button\",{class:hm(\"-base-acc-sdk-dialog-instance-button\",g.variant===\"primary\"&&\"-base-acc-sdk-dialog-instance-button-primary\",g.variant===\"secondary\"&&\"-base-acc-sdk-dialog-instance-button-secondary\"),onClick:g.onClick,children:g.text},y))})]})}});function $8(){if(!Nq){let e=document.createElement(\"div\");e.className=\"-base-acc-sdk-css-reset\",document.body.appendChild(e),Nq=new kq,Nq.attach(e)}return d8e(),Nq}var Nq,Pq=Z(()=>{f();f8e();Z8e();Nq=null});function X8e(e){let t=(window.innerWidth-Q8e)/2+window.screenX,n=(window.innerHeight-J8e)/2+window.screenY;Fbt(e);function r(){let i=`wallet_${crypto.randomUUID()}`,a=window.open(e,i,`width=${Q8e}, height=${J8e}, left=${t}, top=${n}`);return a?.focus(),a||null}let o=r();return o?Promise.resolve(o):Hbt(r)}function $8e(e){e&&!e.closed&&e.close()}function Fbt(e){let t={sdkName:I_,sdkVersion:Z0,origin:window.location.origin,coop:t8e()};for(let[n,r]of Object.entries(t))e.searchParams.has(n)||e.searchParams.append(n,r.toString())}function Hbt(e){var t,n;let r=(n=(t=Ut.config.get().metadata)===null||t===void 0?void 0:t.appName)!==null&&n!==void 0?n:\"App\",o=$8();return new Promise((i,a)=>{Y8({dialogContext:\"popup_blocked\"}),o.presentItem({title:Bbt.replace(\"{app}\",r),message:Ubt,onClose:()=>{iv({dialogContext:\"popup_blocked\",dialogAction:\"cancel\"}),a(Ft.rpc.internal(\"Popup window was blocked\"))},actionItems:[{text:\"Try again\",variant:\"primary\",onClick:()=>{iv({dialogContext:\"popup_blocked\",dialogAction:\"confirm\"});let c=e();c?i(c):a(Ft.rpc.internal(\"Popup window was blocked\")),o.clear()}},{text:\"Cancel\",variant:\"secondary\",onClick:()=>{iv({dialogContext:\"popup_blocked\",dialogAction:\"cancel\"}),a(Ft.rpc.internal(\"Popup window was blocked\")),o.clear()}}]})})}var Q8e,J8e,Bbt,Ubt,eOe=Z(()=>{f();ix();eh();_q();$p();Pq();Oue();Q8e=420,J8e=700,Bbt=\"{app} wants to continue in Base Account\",Ubt=\"This action requires your permission to open a new window.\"});var Mq,tOe=Z(()=>{f();ix();eh();s8e();eOe();Mq=class{constructor({url:t=HIe,metadata:n,preference:r}){this.popup=null,this.listeners=new Map,this.postMessage=async o=>{(await this.waitForPopupLoaded()).postMessage(o,this.url.origin)},this.postRequestAndWaitForResponse=async o=>{let i=this.onMessage(({requestId:a})=>a===o.id);return this.postMessage(o),await i},this.onMessage=async o=>new Promise((i,a)=>{let c=u=>{if(u.origin!==this.url.origin)return;let d=u.data;o(d)&&(i(d),window.removeEventListener(\"message\",c),this.listeners.delete(c))};window.addEventListener(\"message\",c),this.listeners.set(c,{reject:a})}),this.disconnect=()=>{$8e(this.popup),this.popup=null,this.listeners.forEach(({reject:o},i)=>{o(Ft.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",i)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(o8e(),this.popup=await X8e(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),a8e()}).catch(()=>{}),this.onMessage(({event:o})=>o===\"PopupLoaded\").then(o=>{this.postMessage({requestId:o.id,data:{version:Z0,sdkName:I_,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw Ft.rpc.internal();return i8e(),this.popup})),this.url=new URL(t),this.metadata=n,this.preference=r}}});function nOe(e){let t=QIe(jbt(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");return n.searchParams.set(\"version\",Z0),n.searchParams.set(\"code\",t.code.toString()),n.searchParams.set(\"message\",t.message),Object.assign(Object.assign({},t),{docUrl:n.href})}function zbt(e){return e.errorMessage!==void 0}function jbt(e){var t;if(typeof e==\"string\")return{message:e,code:Na.rpc.internal};if(zbt(e)){let n=e.errorMessage,r=(t=e.errorCode)!==null&&t!==void 0?t:n.match(/(denied|rejected)/i)?Na.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:n,code:r,data:{method:e.method}})}return e}var rOe=Z(()=>{f();ix();WD();Rue()});var Dq,oOe=Z(()=>{f();R_();Dq=class extends q0.default{}});var iOe,aOe,sOe,cOe=Z(()=>{f();u6();iOe=({method:e,correlationId:t})=>{wo(\"provider.request.started\",{action:to.unknown,componentType:eo.unknown,method:e,signerType:\"base-account\",correlationId:t},no.high)},aOe=({method:e,correlationId:t,errorMessage:n})=>{wo(\"provider.request.error\",{action:to.error,componentType:eo.unknown,method:e,signerType:\"base-account\",correlationId:t,errorMessage:n},no.high)},sOe=({method:e,correlationId:t})=>{wo(\"provider.request.responded\",{action:to.unknown,componentType:eo.unknown,method:e,signerType:\"base-account\",correlationId:t},no.high)}});function Gue(){return e=>e}function Lq(e){return Math.floor(e)}var KD,Wbt,Vbt,uOe=Z(()=>{f();KD=Gue(),Wbt=Gue();Vbt=Gue()});function dOe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function fOe(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function Bq(e){return KD(`0x${BigInt(e).toString(16)}`)}function qbt(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function pOe(e){return qbt(e)?e.slice(2):e}function Kbt(e){if(typeof e!=\"string\")return!1;let t=pOe(e).toLowerCase();return lOe.test(t)}function Uq(e,t=!1){if(typeof e==\"string\"){let n=pOe(e).toLowerCase();if(lOe.test(n))return KD(t?`0x${n}`:n)}throw Ft.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function Ybt(e,t=!1){let n=Uq(e,!1);return n.length%2===1&&(n=KD(`0${n}`)),t?KD(`0x${n}`):n}function hOe(e){if(typeof e==\"number\"&&Number.isInteger(e))return Lq(e);if(typeof e==\"string\"){if(Gbt.test(e))return Lq(Number(e));if(Kbt(e))return Lq(Number(BigInt(Ybt(e,!0))))}throw Ft.rpc.invalidParams(`Not an integer: ${String(e)}`)}var Gbt,lOe,YD=Z(()=>{f();eh();uOe();Gbt=/^[0-9]*$/,lOe=/^[a-f0-9]*$/});var mOe,gOe,yOe,bOe,vOe,wOe,xOe=Z(()=>{f();$p();u6();mOe=({method:e,correlationId:t})=>{var n;wo(\"scw_signer.handshake.started\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},gOe=({method:e,correlationId:t,errorMessage:n})=>{var r;wo(\"scw_signer.handshake.error\",{action:to.error,componentType:eo.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},no.high)},yOe=({method:e,correlationId:t})=>{var n;wo(\"scw_signer.handshake.completed\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},bOe=({method:e,correlationId:t})=>{var n;wo(\"scw_signer.request.started\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},vOe=({method:e,correlationId:t,errorMessage:n})=>{var r;wo(\"scw_signer.request.error\",{action:to.error,componentType:eo.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},no.high)},wOe=({method:e,correlationId:t})=>{var n;wo(\"scw_signer.request.completed\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)}});var EOe,AOe,_Oe,SOe,TOe,COe,ROe,IOe,OOe,kOe=Z(()=>{f();$p();u6();EOe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.request.started\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},AOe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.request.completed\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},_Oe=({method:e,correlationId:t,errorMessage:n})=>{var r;wo(\"scw_sub_account.request.error\",{action:to.error,componentType:eo.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},no.high)},SOe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.add_owner.started\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},TOe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.add_owner.completed\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},COe=({method:e,correlationId:t,errorMessage:n})=>{var r;wo(\"scw_sub_account.add_owner.error\",{action:to.error,componentType:eo.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},no.high)},ROe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.insufficient_balance.error_handling.started\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},IOe=({method:e,correlationId:t})=>{var n;wo(\"scw_sub_account.insufficient_balance.error_handling.completed\",{action:to.unknown,componentType:eo.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},no.high)},OOe=({method:e,correlationId:t,errorMessage:n})=>{var r;wo(\"scw_sub_account.insufficient_balance.error_handling.error\",{action:to.error,componentType:eo.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},no.high)}});var eO,NOe=Z(()=>{f();eO=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var ZD,POe=Z(()=>{f();ZD=[{inputs:[{name:\"preOpGas\",type:\"uint256\"},{name:\"paid\",type:\"uint256\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"targetSuccess\",type:\"bool\"},{name:\"targetResult\",type:\"bytes\"}],name:\"ExecutionResult\",type:\"error\"},{inputs:[{name:\"opIndex\",type:\"uint256\"},{name:\"reason\",type:\"string\"}],name:\"FailedOp\",type:\"error\"},{inputs:[{name:\"sender\",type:\"address\"}],name:\"SenderAddressResult\",type:\"error\"},{inputs:[{name:\"aggregator\",type:\"address\"}],name:\"SignatureValidationFailed\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"}],name:\"ValidationResult\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"},{components:[{name:\"aggregator\",type:\"address\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"stakeInfo\",type:\"tuple\"}],name:\"aggregatorInfo\",type:\"tuple\"}],name:\"ValidationResultWithAggregation\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"factory\",type:\"address\"},{indexed:!1,name:\"paymaster\",type:\"address\"}],name:\"AccountDeployed\",type:\"event\"},{anonymous:!1,inputs:[],name:\"BeforeExecution\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalDeposit\",type:\"uint256\"}],name:\"Deposited\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"aggregator\",type:\"address\"}],name:\"SignatureAggregatorChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalStaked\",type:\"uint256\"},{indexed:!1,name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"StakeLocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawTime\",type:\"uint256\"}],name:\"StakeUnlocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"StakeWithdrawn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!0,name:\"paymaster\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"success\",type:\"bool\"},{indexed:!1,name:\"actualGasCost\",type:\"uint256\"},{indexed:!1,name:\"actualGasUsed\",type:\"uint256\"}],name:\"UserOperationEvent\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"revertReason\",type:\"bytes\"}],name:\"UserOperationRevertReason\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"Withdrawn\",type:\"event\"},{inputs:[],name:\"SIG_VALIDATION_FAILED\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"},{name:\"sender\",type:\"address\"},{name:\"paymasterAndData\",type:\"bytes\"}],name:\"_validateSenderAndPaymaster\",outputs:[],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"unstakeDelaySec\",type:\"uint32\"}],name:\"addStake\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"depositTo\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"}],name:\"deposits\",outputs:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"getDepositInfo\",outputs:[{components:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],name:\"info\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"sender\",type:\"address\"},{name:\"key\",type:\"uint192\"}],name:\"getNonce\",outputs:[{name:\"nonce\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"}],name:\"getSenderAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOps\",type:\"tuple[]\"},{name:\"aggregator\",type:\"address\"},{name:\"signature\",type:\"bytes\"}],name:\"opsPerAggregator\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleAggregatedOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"ops\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"key\",type:\"uint192\"}],name:\"incrementNonce\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"callData\",type:\"bytes\"},{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"paymaster\",type:\"address\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"}],name:\"mUserOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"prefund\",type:\"uint256\"},{name:\"contextOffset\",type:\"uint256\"},{name:\"preOpGas\",type:\"uint256\"}],name:\"opInfo\",type:\"tuple\"},{name:\"context\",type:\"bytes\"}],name:\"innerHandleOp\",outputs:[{name:\"actualGasCost\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"},{name:\"\",type:\"uint192\"}],name:\"nonceSequenceNumber\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"op\",type:\"tuple\"},{name:\"target\",type:\"address\"},{name:\"targetCallData\",type:\"bytes\"}],name:\"simulateHandleOp\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"simulateValidation\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"unlockStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"}],name:\"withdrawStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"},{name:\"withdrawAmount\",type:\"uint256\"}],name:\"withdrawTo\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}]});function Fq(e){let{authorization:t,factory:n,factoryData:r}=e;if(n===\"0x7702\"||n===\"0x7702000000000000000000000000000000000000\"){if(!t)return\"0x7702000000000000000000000000000000000000\";let o=t.address;return Ri([o,r??\"0x\"])}return n?Ri([n,r??\"0x\"]):\"0x\"}var que=Z(()=>{f();Mc()});function Hq(e){let{callGasLimit:t,callData:n,maxPriorityFeePerGas:r,maxFeePerGas:o,paymaster:i,paymasterData:a,paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:u,sender:d,signature:p=\"0x\",verificationGasLimit:h}=e,g=Ri([Ci(Ne(h||0n),{size:16}),Ci(Ne(t||0n),{size:16})]),y=Fq(e),v=Ri([Ci(Ne(r||0n),{size:16}),Ci(Ne(o||0n),{size:16})]),x=e.nonce??0n,R=i?Ri([i,Ci(Ne(u||0n),{size:16}),Ci(Ne(c||0n),{size:16}),a||\"0x\"]):\"0x\",S=e.preVerificationGas??0n;return{accountGasLimits:g,callData:n,initCode:y,gasFees:v,nonce:x,paymasterAndData:R,preVerificationGas:S,sender:d,signature:p}}var Kue=Z(()=>{f();Mc();NA();e6();que()});function MOe(e){let{chainId:t,entryPointAddress:n,userOperation:r}=e,o=Hq(r);return{types:Zbt,primaryType:\"PackedUserOperation\",domain:{name:\"ERC4337\",version:\"1\",chainId:t,verifyingContract:n},message:o}}var Zbt,DOe=Z(()=>{f();Kue();Zbt={PackedUserOperation:[{type:\"address\",name:\"sender\"},{type:\"uint256\",name:\"nonce\"},{type:\"bytes\",name:\"initCode\"},{type:\"bytes\",name:\"callData\"},{type:\"bytes32\",name:\"accountGasLimits\"},{type:\"uint256\",name:\"preVerificationGas\"},{type:\"bytes32\",name:\"gasFees\"},{type:\"bytes\",name:\"paymasterAndData\"}]}});function QD(e){let{chainId:t,entryPointAddress:n,entryPointVersion:r}=e,o=e.userOperation,{authorization:i,callData:a=\"0x\",callGasLimit:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:p,paymasterAndData:h=\"0x\",preVerificationGas:g,sender:y,verificationGasLimit:v}=o;if(r===\"0.8\")return Lf(MOe({chainId:t,entryPointAddress:n,userOperation:o}));let x=(()=>{if(r===\"0.6\"){let R=o.initCode?.slice(0,42),S=o.initCode?.slice(42),M=Fq({authorization:i,factory:R,factoryData:S});return Hi([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"bytes32\"}],[y,p,lr(M),lr(a),c,v,g,u,d,lr(h)])}if(r===\"0.7\"){let R=Hq(o);return Hi([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"}],[R.sender,R.nonce,lr(R.initCode),lr(R.callData),R.accountGasLimits,R.preVerificationGas,R.gasFees,lr(R.paymasterAndData)])}throw new Error(`entryPointVersion \"${r}\" not supported.`)})();return lr(Hi([{type:\"bytes32\"},{type:\"address\"},{type:\"uint256\"}],[lr(x),n,BigInt(t)]))}var LOe=Z(()=>{f();L0();rm();lG();que();DOe();Kue()});async function JD(e){let{extend:t,nonceKeyManager:n=Pse({source:{get(){return Date.now()},set(){}}}),...r}=e,o=!1,i=await e.getAddress();return{...t,...r,address:i,async getFactoryArgs(){return\"isDeployed\"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(a){let c=a?.key??BigInt(await n.consume({address:i,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...a,key:c}):await ui(e.client,{abi:O2([\"function getNonce(address, uint192) pure returns (uint256)\"]),address:e.entryPoint.address,functionName:\"getNonce\",args:[i,c]})},async isDeployed(){return o?!0:(o=!!await kt(e.client,lm,\"getCode\")({address:i}),o)},...e.sign?{async sign(a){let[{factory:c,factoryData:u},d]=await Promise.all([this.getFactoryArgs(),e.sign(a)]);return c&&u?OG({address:c,data:u,signature:d}):d}}:{},async signMessage(a){let[{factory:c,factoryData:u},d]=await Promise.all([this.getFactoryArgs(),e.signMessage(a)]);return c&&u&&c!==\"0x7702\"?OG({address:c,data:u,signature:d}):d},async signTypedData(a){let[{factory:c,factoryData:u},d]=await Promise.all([this.getFactoryArgs(),e.signTypedData(a)]);return c&&u&&c!==\"0x7702\"?OG({address:c,data:u,signature:d}):d},type:\"smart\"}}var BOe=Z(()=>{f();iT();cD();z0();Do();gCe();cRe()});var UOe=Z(()=>{f();});var tO,sv,nO,rO,oO,iO,aO,sO,cO,uO,lO,dO,fO,d6,pO,cv,hO,mO,f6,p6,gO,yO,h6,bO,m6,vO,wO,xO,EO,g6,y6,b6,v6,zq,AO,_O,Yue=Z(()=>{f();tr();tO=class extends Re{constructor({cause:t}){super(\"Smart Account is not deployed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.\",\"- An incorrect `sender` address is provided.\"],name:\"AccountNotDeployedError\"})}};Object.defineProperty(tO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});sv=class extends Re{constructor({cause:t,data:n,message:r}={}){let o=r?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${o?`with reason: ${o}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n}};Object.defineProperty(sv,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(sv,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});nO=class extends Re{constructor({cause:t}){super(\"Failed to send funds to beneficiary.\",{cause:t,name:\"FailedToSendToBeneficiaryError\"})}};Object.defineProperty(nO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});rO=class extends Re{constructor({cause:t}){super(\"Gas value overflowed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- one of the gas values exceeded 2**120 (uint120)\"].filter(Boolean),name:\"GasValuesOverflowError\"})}};Object.defineProperty(rO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});oO=class extends Re{constructor({cause:t}){super(\"The `handleOps` function was called by the Bundler with a gas limit too low.\",{cause:t,name:\"HandleOpsOutOfGasError\"})}};Object.defineProperty(oO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});iO=class extends Re{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Failed to simulate deployment for Smart Account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- Invalid `factory`/`factoryData` or `initCode` properties are present\",\"- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)\",`- Smart Account deployment execution reverted with an error\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeFailedError\"})}};Object.defineProperty(iO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});aO=class extends Re{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Smart Account initialization implementation did not create an account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- `factory`/`factoryData` or `initCode` properties are invalid\",`- Smart Account initialization implementation is incorrect\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeMustCreateSenderError\"})}};Object.defineProperty(aO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});sO=class extends Re{constructor({cause:t,factory:n,factoryData:r,initCode:o,sender:i}){super(\"Smart Account initialization implementation does not return the expected sender.\",{cause:t,metaMessages:[\"This could arise when:\",`Smart Account initialization implementation does not return a sender address\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`,i&&`sender: ${i}`].filter(Boolean),name:\"InitCodeMustReturnSenderError\"})}};Object.defineProperty(sO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});cO=class extends Re{constructor({cause:t}){super(\"Smart Account does not have sufficient funds to execute the User Operation.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Smart Account does not have sufficient funds to cover the required prefund, or\",\"- a Paymaster was not provided\"].filter(Boolean),name:\"InsufficientPrefundError\"})}};Object.defineProperty(cO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});uO=class extends Re{constructor({cause:t}){super(\"Bundler attempted to call an invalid function on the EntryPoint.\",{cause:t,name:\"InternalCallOnlyError\"})}};Object.defineProperty(uO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});lO=class extends Re{constructor({cause:t}){super(\"Bundler used an invalid aggregator for handling aggregated User Operations.\",{cause:t,name:\"InvalidAggregatorError\"})}};Object.defineProperty(lO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});dO=class extends Re{constructor({cause:t,nonce:n}){super(\"Invalid Smart Account nonce used for User Operation.\",{cause:t,metaMessages:[n&&`nonce: ${n}`].filter(Boolean),name:\"InvalidAccountNonceError\"})}};Object.defineProperty(dO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});fO=class extends Re{constructor({cause:t}){super(\"Bundler has not set a beneficiary address.\",{cause:t,name:\"InvalidBeneficiaryError\"})}};Object.defineProperty(fO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});d6=class extends Re{constructor({cause:t}){super(\"Invalid fields set on User Operation.\",{cause:t,name:\"InvalidFieldsError\"})}};Object.defineProperty(d6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});pO=class extends Re{constructor({cause:t,paymasterAndData:n}){super(\"Paymaster properties provided are invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `paymasterAndData` property is of an incorrect length\\\\n\",n&&`paymasterAndData: ${n}`].filter(Boolean),name:\"InvalidPaymasterAndDataError\"})}};Object.defineProperty(pO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});cv=class extends Re{constructor({cause:t}){super(\"Paymaster deposit for the User Operation is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Paymaster has deposited less than the expected amount via the `deposit` function\"].filter(Boolean),name:\"PaymasterDepositTooLowError\"})}};Object.defineProperty(cv,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32508});Object.defineProperty(cv,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});hO=class extends Re{constructor({cause:t}){super(\"The `validatePaymasterUserOp` function on the Paymaster reverted.\",{cause:t,name:\"PaymasterFunctionRevertedError\"})}};Object.defineProperty(hO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});mO=class extends Re{constructor({cause:t}){super(\"The Paymaster contract has not been deployed.\",{cause:t,name:\"PaymasterNotDeployedError\"})}};Object.defineProperty(mO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});f6=class extends Re{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\",{cause:t,name:\"PaymasterRateLimitError\"})}};Object.defineProperty(f6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32504});p6=class extends Re{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\",{cause:t,name:\"PaymasterStakeTooLowError\"})}};Object.defineProperty(p6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32505});gO=class extends Re{constructor({cause:t}){super(\"Paymaster `postOp` function reverted.\",{cause:t,name:\"PaymasterPostOpFunctionRevertedError\"})}};Object.defineProperty(gO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});yO=class extends Re{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Smart Account has already been deployed.\",{cause:t,metaMessages:[\"Remove the following properties and try again:\",n&&\"`factory`\",r&&\"`factoryData`\",o&&\"`initCode`\"].filter(Boolean),name:\"SenderAlreadyConstructedError\"})}};Object.defineProperty(yO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});h6=class extends Re{constructor({cause:t}){super(\"UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).\",{cause:t,name:\"SignatureCheckFailedError\"})}};Object.defineProperty(h6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32507});bO=class extends Re{constructor({cause:t}){super(\"The `validateUserOp` function on the Smart Account reverted.\",{cause:t,name:\"SmartAccountFunctionRevertedError\"})}};Object.defineProperty(bO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});m6=class extends Re{constructor({cause:t}){super(\"UserOperation rejected because account specified unsupported signature aggregator.\",{cause:t,name:\"UnsupportedSignatureAggregatorError\"})}};Object.defineProperty(m6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32506});vO=class extends Re{constructor({cause:t}){super(\"User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied\"].filter(Boolean),name:\"UserOperationExpiredError\"})}};Object.defineProperty(vO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});wO=class extends Re{constructor({cause:t}){super(\"Paymaster for User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied\"].filter(Boolean),name:\"UserOperationPaymasterExpiredError\"})}};Object.defineProperty(wO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});xO=class extends Re{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account\"].filter(Boolean),name:\"UserOperationSignatureError\"})}};Object.defineProperty(xO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});EO=class extends Re{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster\"].filter(Boolean),name:\"UserOperationPaymasterSignatureError\"})}};Object.defineProperty(EO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});g6=class extends Re{constructor({cause:t}){super(\"User Operation rejected by EntryPoint\\'s `simulateValidation` during account creation or validation.\",{cause:t,name:\"UserOperationRejectedByEntryPointError\"})}};Object.defineProperty(g6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32500});y6=class extends Re{constructor({cause:t}){super(\"User Operation rejected by Paymaster\\'s `validatePaymasterUserOp`.\",{cause:t,name:\"UserOperationRejectedByPaymasterError\"})}};Object.defineProperty(y6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32501});b6=class extends Re{constructor({cause:t}){super(\"User Operation rejected with op code validation error.\",{cause:t,name:\"UserOperationRejectedByOpCodeError\"})}};Object.defineProperty(b6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32502});v6=class extends Re{constructor({cause:t}){super(\"UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).\",{cause:t,name:\"UserOperationOutOfTimeRangeError\"})}};Object.defineProperty(v6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32503});zq=class extends Re{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:\"UnknownBundlerError\"})}},AO=class extends Re{constructor({cause:t}){super(\"User Operation verification gas limit exceeded.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the gas used for verification exceeded the `verificationGasLimit`\"].filter(Boolean),name:\"VerificationGasLimitExceededError\"})}};Object.defineProperty(AO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});_O=class extends Re{constructor({cause:t}){super(\"User Operation verification gas limit is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `verificationGasLimit` is too low to verify the User Operation\"].filter(Boolean),name:\"VerificationGasLimitTooLowError\"})}};Object.defineProperty(_O,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/})});var jq,Wq,Vq,XD,$D=Z(()=>{f();tr();C0();e6();jq=class extends Re{constructor(t,{callData:n,callGasLimit:r,docsPath:o,factory:i,factoryData:a,initCode:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:p,paymaster:h,paymasterAndData:g,paymasterData:y,paymasterPostOpGasLimit:v,paymasterVerificationGasLimit:x,preVerificationGas:R,sender:S,signature:M,verificationGasLimit:P}){let z=E2({callData:n,callGasLimit:r,factory:i,factoryData:a,initCode:c,maxFeePerGas:typeof u<\"u\"&&`${ds(u)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${ds(d)} gwei`,nonce:p,paymaster:h,paymasterAndData:g,paymasterData:y,paymasterPostOpGasLimit:v,paymasterVerificationGasLimit:x,preVerificationGas:R,sender:S,signature:M,verificationGasLimit:P});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",z].filter(Boolean),name:\"UserOperationExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},Wq=class extends Re{constructor({hash:t}){super(`User Operation receipt with hash \"${t}\" could not be found. The User Operation may not have been processed yet.`,{name:\"UserOperationReceiptNotFoundError\"})}},Vq=class extends Re{constructor({hash:t}){super(`User Operation with hash \"${t}\" could not be found.`,{name:\"UserOperationNotFoundError\"})}},XD=class extends Re{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash \"${t}\" to be confirmed.`,{name:\"WaitForUserOperationReceiptTimeoutError\"})}}});function FOe(e,t){let n=(e.details||\"\").toLowerCase();if(tO.message.test(n))return new tO({cause:e});if(nO.message.test(n))return new nO({cause:e});if(rO.message.test(n))return new rO({cause:e});if(oO.message.test(n))return new oO({cause:e});if(iO.message.test(n))return new iO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(aO.message.test(n))return new aO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(sO.message.test(n))return new sO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(cO.message.test(n))return new cO({cause:e});if(uO.message.test(n))return new uO({cause:e});if(dO.message.test(n))return new dO({cause:e,nonce:t.nonce});if(lO.message.test(n))return new lO({cause:e});if(fO.message.test(n))return new fO({cause:e});if(pO.message.test(n))return new pO({cause:e});if(cv.message.test(n))return new cv({cause:e});if(hO.message.test(n))return new hO({cause:e});if(mO.message.test(n))return new mO({cause:e});if(gO.message.test(n))return new gO({cause:e});if(bO.message.test(n))return new bO({cause:e});if(yO.message.test(n))return new yO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(vO.message.test(n))return new vO({cause:e});if(wO.message.test(n))return new wO({cause:e});if(EO.message.test(n))return new EO({cause:e});if(xO.message.test(n))return new xO({cause:e});if(AO.message.test(n))return new AO({cause:e});if(_O.message.test(n))return new _O({cause:e});let r=e.walk(o=>Qbt.some(i=>i.code===o.code));if(r){if(r.code===sv.code)return new sv({cause:e,data:r.data,message:r.details});if(r.code===d6.code)return new d6({cause:e});if(r.code===cv.code)return new cv({cause:e});if(r.code===f6.code)return new f6({cause:e});if(r.code===p6.code)return new p6({cause:e});if(r.code===h6.code)return new h6({cause:e});if(r.code===m6.code)return new m6({cause:e});if(r.code===v6.code)return new v6({cause:e});if(r.code===g6.code)return new g6({cause:e});if(r.code===y6.code)return new y6({cause:e});if(r.code===b6.code)return new b6({cause:e})}return new zq({cause:e})}var Qbt,HOe=Z(()=>{f();Yue();Qbt=[sv,d6,cv,f6,p6,h6,m6,v6,g6,y6,b6]});function Gq(e,{calls:t,docsPath:n,...r}){let o=(()=>{let i=FOe(e,r);if(t&&i instanceof sv){let a=Jbt(i),c=t?.filter(u=>u.abi);if(a&&c.length>0)return Xbt({calls:c,revertData:a})}return i})();return new jq(o,{docsPath:n,...r})}function Jbt(e){let t;return e.walk(n=>{let r=n;if(typeof r.data==\"string\"||typeof r.data?.revertData==\"string\"||!(r instanceof Re)&&typeof r.message==\"string\"){let o=(r.data?.revertData||r.data||r.message).match?.(/(0x[A-Za-z0-9]*)/);if(o)return t=o[1],!0}return!1}),t}function Xbt(e){let{calls:t,revertData:n}=e,{abi:r,functionName:o,args:i,to:a}=(()=>{let u=t?.filter(p=>!!p.abi);if(u.length===1)return u[0];let d=u.filter(p=>{try{return!!HI({abi:p.abi,data:n})}catch{return!1}});return d.length===1?d[0]:{abi:[],functionName:u.reduce((p,h)=>`${p?`${p} | `:\"\"}${h.functionName}`,\"\"),args:void 0,to:void 0}})(),c=n===\"0x\"?new uT({functionName:o}):new qb({abi:r,data:n,functionName:o});return new Gy(c,{abi:r,args:i,contractAddress:a,functionName:o})}var Zue=Z(()=>{f();tr();Kb();FW();Yue();$D();HOe()});function zOe(e){let t={};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),t}var jOe=Z(()=>{f()});function N_(e){let t={};return typeof e.callData<\"u\"&&(t.callData=e.callData),typeof e.callGasLimit<\"u\"&&(t.callGasLimit=Ne(e.callGasLimit)),typeof e.factory<\"u\"&&(t.factory=e.factory),typeof e.factoryData<\"u\"&&(t.factoryData=e.factoryData),typeof e.initCode<\"u\"&&(t.initCode=e.initCode),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=Ne(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=Ne(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=Ne(e.nonce)),typeof e.paymaster<\"u\"&&(t.paymaster=e.paymaster),typeof e.paymasterAndData<\"u\"&&(t.paymasterAndData=e.paymasterAndData||\"0x\"),typeof e.paymasterData<\"u\"&&(t.paymasterData=e.paymasterData),typeof e.paymasterPostOpGasLimit<\"u\"&&(t.paymasterPostOpGasLimit=Ne(e.paymasterPostOpGasLimit)),typeof e.paymasterVerificationGasLimit<\"u\"&&(t.paymasterVerificationGasLimit=Ne(e.paymasterVerificationGasLimit)),typeof e.preVerificationGas<\"u\"&&(t.preVerificationGas=Ne(e.preVerificationGas)),typeof e.sender<\"u\"&&(t.sender=e.sender),typeof e.signature<\"u\"&&(t.signature=e.signature),typeof e.verificationGasLimit<\"u\"&&(t.verificationGasLimit=Ne(e.verificationGasLimit)),typeof e.authorization<\"u\"&&(t.eip7702Auth=$bt(e.authorization)),t}function $bt(e){return{address:e.address,chainId:Ne(e.chainId),nonce:Ne(e.nonce),r:e.r?Ne(BigInt(e.r),{size:32}):Ci(\"0x\",{size:32}),s:e.s?Ne(BigInt(e.s),{size:32}):Ci(\"0x\",{size:32}),yParity:e.yParity?Ne(e.yParity,{size:1}):Ci(\"0x\",{size:32})}}var eL=Z(()=>{f();xn();e6()});async function WOe(e,t){let{chainId:n,entryPointAddress:r,context:o,...i}=t,a=N_(i),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:u,...d}=await e.request({method:\"pm_getPaymasterData\",params:[{...a,callGasLimit:a.callGasLimit??\"0x0\",verificationGasLimit:a.verificationGasLimit??\"0x0\",preVerificationGas:a.preVerificationGas??\"0x0\"},r,Ne(n),o]});return{...d,...c&&{paymasterPostOpGasLimit:qn(c)},...u&&{paymasterVerificationGasLimit:qn(u)}}}var VOe=Z(()=>{f();ks();xn();eL()});async function GOe(e,t){let{chainId:n,entryPointAddress:r,context:o,...i}=t,a=N_(i),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:u,...d}=await e.request({method:\"pm_getPaymasterStubData\",params:[{...a,callGasLimit:a.callGasLimit??\"0x0\",verificationGasLimit:a.verificationGasLimit??\"0x0\",preVerificationGas:a.preVerificationGas??\"0x0\"},r,Ne(n),o]});return{...d,...c&&{paymasterPostOpGasLimit:qn(c)},...u&&{paymasterVerificationGasLimit:qn(u)}}}var qOe=Z(()=>{f();ks();xn();eL()});async function SO(e,t){let n=t,{account:r=e.account,parameters:o=evt,stateOverride:i}=n;if(!r)throw new Ns;let a=jn(r),c=e,u=n.paymaster??c?.paymaster,d=typeof u==\"string\"?u:void 0,{getPaymasterStubData:p,getPaymasterData:h}=(()=>{if(u===!0)return{getPaymasterStubData:Q=>kt(c,GOe,\"getPaymasterStubData\")(Q),getPaymasterData:Q=>kt(c,WOe,\"getPaymasterData\")(Q)};if(typeof u==\"object\"){let{getPaymasterStubData:Q,getPaymasterData:$}=u;return{getPaymasterStubData:$&&Q?Q:$,getPaymasterData:$&&Q?$:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),g=n.paymasterContext?n.paymasterContext:c?.paymasterContext,y={...n,paymaster:d,sender:a.address},[v,x,R,S,M]=await Promise.all([(async()=>n.calls?a.encodeCalls(n.calls.map(Q=>{let $=Q;return $.abi?{data:vn($),to:$.to,value:$.value}:$})):n.callData)(),(async()=>{if(!o.includes(\"factory\"))return;if(n.initCode)return{initCode:n.initCode};if(n.factory&&n.factoryData)return{factory:n.factory,factoryData:n.factoryData};let{factory:Q,factoryData:$}=await a.getFactoryArgs();return a.entryPoint.version===\"0.6\"?{initCode:Q&&$?Ri([Q,$]):void 0}:{factory:Q,factoryData:$}})(),(async()=>{if(o.includes(\"fees\")){if(typeof n.maxFeePerGas==\"bigint\"&&typeof n.maxPriorityFeePerGas==\"bigint\")return y;if(c?.userOperation?.estimateFeesPerGas){let Q=await c.userOperation.estimateFeesPerGas({account:a,bundlerClient:c,userOperation:y});return{...y,...Q}}try{let Q=c.client??e,$=await kt(Q,KV,\"estimateFeesPerGas\")({chain:Q.chain,type:\"eip1559\"});return{maxFeePerGas:typeof n.maxFeePerGas==\"bigint\"?n.maxFeePerGas:BigInt(2n*$.maxFeePerGas),maxPriorityFeePerGas:typeof n.maxPriorityFeePerGas==\"bigint\"?n.maxPriorityFeePerGas:BigInt(2n*$.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(o.includes(\"nonce\"))return typeof n.nonce==\"bigint\"?n.nonce:a.getNonce()})(),(async()=>{if(o.includes(\"authorization\")){if(typeof n.authorization==\"object\")return n.authorization;if(a.authorization&&!await a.isDeployed())return{...await o6(a.client,a.authorization),r:\"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000\",s:\"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",yParity:1}}})()]);typeof v<\"u\"&&(y.callData=v),typeof x<\"u\"&&(y={...y,...x}),typeof R<\"u\"&&(y={...y,...R}),typeof S<\"u\"&&(y.nonce=S),typeof M<\"u\"&&(y.authorization=M),o.includes(\"signature\")&&(typeof n.signature<\"u\"?y.signature=n.signature:y.signature=await a.getStubSignature(y)),a.entryPoint.version===\"0.6\"&&!y.initCode&&(y.initCode=\"0x\");let P;async function z(){return P||(e.chain?e.chain.id:(P=await kt(e,_d,\"getChainId\")({}),P))}let V=!1;if(o.includes(\"paymaster\")&&p&&!d&&!n.paymasterAndData){let{isFinal:Q=!1,sponsor:$,...oe}=await p({chainId:await z(),entryPointAddress:a.entryPoint.address,context:g,...y});V=Q,y={...y,...oe}}if(a.entryPoint.version===\"0.6\"&&!y.paymasterAndData&&(y.paymasterAndData=\"0x\"),o.includes(\"gas\")){if(a.userOperation?.estimateGas){let Q=await a.userOperation.estimateGas(y);y={...y,...Q}}if(typeof y.callGasLimit>\"u\"||typeof y.preVerificationGas>\"u\"||typeof y.verificationGasLimit>\"u\"||y.paymaster&&typeof y.paymasterPostOpGasLimit>\"u\"||y.paymaster&&typeof y.paymasterVerificationGasLimit>\"u\"){let Q=await kt(c,Kq,\"estimateUserOperationGas\")({account:a,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:i,...y.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...y});y={...y,callGasLimit:y.callGasLimit??Q.callGasLimit,preVerificationGas:y.preVerificationGas??Q.preVerificationGas,verificationGasLimit:y.verificationGasLimit??Q.verificationGasLimit,paymasterPostOpGasLimit:y.paymasterPostOpGasLimit??Q.paymasterPostOpGasLimit,paymasterVerificationGasLimit:y.paymasterVerificationGasLimit??Q.paymasterVerificationGasLimit}}}if(o.includes(\"paymaster\")&&h&&!d&&!n.paymasterAndData&&!V){let Q=await h({chainId:await z(),entryPointAddress:a.entryPoint.address,context:g,...y});y={...y,...Q}}return delete y.calls,delete y.parameters,delete y.paymasterContext,typeof y.paymaster!=\"string\"&&delete y.paymaster,y}var evt,qq=Z(()=>{f();ka();Jp();ZV();J2();Hy();Pf();Mc();Do();VOe();qOe();Que();evt=[\"factory\",\"fees\",\"gas\",\"paymaster\",\"nonce\",\"signature\",\"authorization\"]});async function Kq(e,t){let{account:n=e.account,entryPointAddress:r,stateOverride:o}=t;if(!n&&!t.sender)throw new Ns;let i=n?jn(n):void 0,a=d_(o),c=i?await kt(e,SO,\"prepareUserOperation\")({...t,parameters:[\"authorization\",\"factory\",\"nonce\",\"paymaster\",\"signature\"]}):t;try{let u=[N_(c),r??i?.entryPoint?.address],d=await e.request({method:\"eth_estimateUserOperationGas\",params:a?[...u,a]:[...u]});return zOe(d)}catch(u){let d=t.calls;throw Gq(u,{...c,...d?{calls:d}:{}})}}var Que=Z(()=>{f();ka();Hy();Do();ZM();Zue();jOe();eL();qq()});function KOe(e){return e.request({method:\"eth_supportedEntryPoints\"})}var YOe=Z(()=>{f()});function ZOe(e){let t={...e};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.maxFeePerGas&&(t.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.nonce&&(t.nonce=BigInt(e.nonce)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),t}var QOe=Z(()=>{f()});async function JOe(e,{hash:t}){let n=await e.request({method:\"eth_getUserOperationByHash\",params:[t]},{dedupe:!0});if(!n)throw new Vq({hash:t});let{blockHash:r,blockNumber:o,entryPoint:i,transactionHash:a,userOperation:c}=n;return{blockHash:r,blockNumber:BigInt(o),entryPoint:i,transactionHash:a,userOperation:ZOe(c)}}var XOe=Z(()=>{f();$D();QOe()});function $Oe(e){let t={...e};return e.actualGasCost&&(t.actualGasCost=BigInt(e.actualGasCost)),e.actualGasUsed&&(t.actualGasUsed=BigInt(e.actualGasUsed)),e.logs&&(t.logs=e.logs.map(n=>Du(n))),e.receipt&&(t.receipt=L9(t.receipt)),t}var eke=Z(()=>{f();x2();B9()});async function Yq(e,{hash:t}){let n=await e.request({method:\"eth_getUserOperationReceipt\",params:[t]},{dedupe:!0});if(!n)throw new Wq({hash:t});return $Oe(n)}var Jue=Z(()=>{f();$D();eke()});async function tke(e,t){let{account:n=e.account,entryPointAddress:r}=t;if(!n&&!t.sender)throw new Ns;let o=n?jn(n):void 0,i=o?await kt(e,SO,\"prepareUserOperation\")(t):t,a=t.signature||await o?.signUserOperation?.(i),c=N_({...i,signature:a});try{return await e.request({method:\"eth_sendUserOperation\",params:[c,r??o?.entryPoint?.address]},{retryCount:0})}catch(u){let d=t.calls;throw Gq(u,{...i,...d?{calls:d}:{},signature:a})}}var nke=Z(()=>{f();ka();Hy();Do();Zue();eL();qq()});function rke(e,t){let{hash:n,pollingInterval:r=e.pollingInterval,retryCount:o,timeout:i=12e4}=t,a=0,c=$r([\"waitForUserOperationReceipt\",e.uid,n]);return new Promise((u,d)=>{let p=Hu(c,{resolve:u,reject:d},h=>{let g=v=>{y(),v(),p()},y=Qp(async()=>{o&&a>=o&&g(()=>h.reject(new XD({hash:n})));try{let v=await kt(e,Yq,\"getUserOperationReceipt\")({hash:n});g(()=>h.resolve(v))}catch(v){let x=v;x.name!==\"UserOperationReceiptNotFoundError\"&&g(()=>h.reject(x))}a++},{emitOnBegin:!0,interval:r});return i&&setTimeout(()=>g(()=>h.reject(new XD({hash:n}))),i),y})})}var oke=Z(()=>{f();Do();tx();T_();Ol();$D();Jue()});function ike(e){return{estimateUserOperationGas:t=>Kq(e,t),getChainId:()=>_d(e),getSupportedEntryPoints:()=>KOe(e),getUserOperation:t=>JOe(e,t),getUserOperationReceipt:t=>Yq(e,t),prepareUserOperation:t=>SO(e,t),sendUserOperation:t=>tke(e,t),waitForUserOperationReceipt:t=>rke(e,t)}}var ake=Z(()=>{f();J2();Que();YOe();XOe();Jue();qq();nke();oke()});function tL(e){let{client:t,key:n=\"bundler\",name:r=\"Bundler Client\",paymaster:o,paymasterContext:i,transport:a,userOperation:c}=e;return Object.assign(rx({...e,chain:e.chain??t?.chain,key:n,name:r,transport:a,type:\"bundlerClient\"}),{client:t,paymaster:o,paymasterContext:i,userOperation:c}).extend(ike)}var ske=Z(()=>{f();KG();ake()});var nL,cke=Z(()=>{f();nL=\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\"});var rL=Z(()=>{f();BOe();ske();POe();cke();LOe()});var Xue,uke=Z(()=>{f();s6();Xue=Q0(()=>({}))});function $ue(e){e.forEach(t=>{var n,r,o,i,a,c,u,d;if(!t.rpcUrl)return;let p=ta({id:t.id,rpcUrls:{default:{http:[t.rpcUrl]}},name:(r=(n=t.nativeCurrency)===null||n===void 0?void 0:n.name)!==null&&r!==void 0?r:\"\",nativeCurrency:{name:(i=(o=t.nativeCurrency)===null||o===void 0?void 0:o.name)!==null&&i!==void 0?i:\"\",symbol:(c=(a=t.nativeCurrency)===null||a===void 0?void 0:a.symbol)!==null&&c!==void 0?c:\"\",decimals:(d=(u=t.nativeCurrency)===null||u===void 0?void 0:u.decimal)!==null&&d!==void 0?d:18}}),h=ox({chain:p,transport:mu(t.rpcUrl)}),g=tL({client:h,transport:mu(t.rpcUrl)});Xue.setState({[t.id]:{client:h,bundlerClient:g}})})}function Zq(e){var t;return(t=Xue.getState()[e])===null||t===void 0?void 0:t.client}var ele=Z(()=>{f();pn();rL();uke()});var Qq,r1,tle=Z(()=>{f();s6();Qq=Q0(()=>({correlationIds:new Map})),r1={get:e=>Qq.getState().correlationIds.get(e),set:(e,t)=>{Qq.setState(n=>{let r=new Map(n.correlationIds);return r.set(e,t),{correlationIds:r}})},delete:e=>{Qq.setState(t=>{let n=new Map(t.correlationIds);return n.delete(e),{correlationIds:n}})},clear:()=>{Qq.setState({correlationIds:new Map})}}});function oL(e){if(typeof e!=\"object\"||e===null)throw Ft.rpc.internal(\"sub account info is not an object\");if(!(\"address\"in e))throw Ft.rpc.internal(\"sub account is invalid\");if(\"address\"in e&&typeof e.address==\"string\"&&!Un(e.address))throw Ft.rpc.internal(\"sub account address is invalid\");if(\"factory\"in e&&typeof e.factory==\"string\"&&!Un(e.factory))throw Ft.rpc.internal(\"sub account factory address is invalid\");if(\"factoryData\"in e&&typeof e.factoryData==\"string\"&&!Xr(e.factoryData))throw Ft.rpc.internal(\"sub account factory data is invalid\")}var lke=Z(()=>{f();pn();eh()});async function dke(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function fke(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function tvt(e,t){let n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},e,new TextEncoder().encode(t));return{iv:n,cipherText:r}}async function nvt(e,{iv:t,cipherText:n}){let r=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,n);return new TextDecoder().decode(r)}function pke(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function Jq(e,t){let n=pke(e),r=await crypto.subtle.exportKey(n,t);return dOe(new Uint8Array(r))}async function Xq(e,t){let n=pke(e),r=fOe(t).buffer;return await crypto.subtle.importKey(n,new Uint8Array(r),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function hke(e,t){let n=JSON.stringify(e,(r,o)=>{if(!(o instanceof Error))return o;let i=o;return Object.assign(Object.assign({},i.code?{code:i.code}:{}),{message:i.message})});return tvt(t,n)}async function mke(e,t){return JSON.parse(await nvt(t,e))}var nle=Z(()=>{f();YD()});async function TO(e,t){let n=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),r=await window.fetch(t,{method:\"POST\",body:JSON.stringify(n),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":Z0,\"X-Cbw-Sdk-Platform\":I_}}),{result:o,error:i}=await r.json();if(i)throw i;return o}function gke(e){if(!e||typeof e!=\"object\"||Array.isArray(e))throw Ft.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:n}=e;if(typeof t!=\"string\"||t.length===0)throw Ft.rpc.invalidParams({message:\"\\'args.method\\' must be a non-empty string.\",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\"object\"||n===null))throw Ft.rpc.invalidParams({message:\"\\'args.params\\' must be an object or array if provided.\",data:e});switch(t){case\"eth_sign\":case\"eth_signTypedData_v2\":case\"eth_subscribe\":case\"eth_unsubscribe\":throw Ft.provider.unsupportedMethod()}}var rle=Z(()=>{f();ix();eh()});var yke=Z(()=>{f()});var bke,vke=Z(()=>{f();bke=\"0.1.1\"});function wke(){return bke}var xke=Z(()=>{f();vke()});function Eke(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?Eke(e.cause,t):t?null:e}var Ir,sx=Z(()=>{f();xke();Ir=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(u=>typeof u==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${wke()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return Eke(this,t)}}});function cx(e,t=\"\"){if(typeof e!=\"boolean\"){let n=t&&`\"${t}\"`;throw new Error(n+\"expected boolean, got type=\"+typeof e)}return e}function mm(e,t,n=\"\"){let r=Bb(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let a=n&&`\"${n}\" `,c=i?` of length ${t}`:\"\",u=r?`length=${o}`:`type=${typeof e}`;throw new Error(a+\"expected Uint8Array\"+c+\", got \"+u)}return e}function CO(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function sle(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?ale:BigInt(\"0x\"+e)}function w6(e){return sle(nm(e))}function uv(e){return Lu(e),sle(nm(Uint8Array.from(e).reverse()))}function iL(e,t){return MA(e.toString(16).padStart(t*2,\"0\"))}function $q(e,t){return iL(e,t).reverse()}function ki(e,t,n){let r;if(typeof t==\"string\")try{r=MA(t)}catch(i){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+i)}else if(Bb(t))r=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(e+\" of length \"+n+\" expected, got \"+o);return r}function eK(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function tK(e){return Uint8Array.from(e)}function cle(e,t,n){return ole(e)&&ole(t)&&ole(n)&&t<=e&&e<n}function RO(e,t,n,r){if(!cle(t,n,r))throw new Error(\"expected valid \"+e+\": \"+n+\" <= n < \"+r+\", got \"+t)}function aL(e){let t;for(t=0;e>ale;e>>=ile,t+=1);return t}function ule(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=y=>new Uint8Array(y),o=y=>Uint8Array.of(y),i=r(e),a=r(e),c=0,u=()=>{i.fill(1),a.fill(0),c=0},d=(...y)=>n(a,i,...y),p=(y=r(0))=>{a=d(o(0),y),i=d(),y.length!==0&&(a=d(o(1),y),i=d())},h=()=>{if(c++>=1e3)throw new Error(\"drbg: tried 1000 values\");let y=0,v=[];for(;y<t;){i=d();let x=i.slice();v.push(x),y+=i.length}return Bu(...v)};return(y,v)=>{u(),p(y);let x;for(;!(x=v(h()));)p();return u(),x}}function M_(e,t,n={}){if(!e||typeof e!=\"object\")throw new Error(\"expected valid options object\");function r(o,i,a){let c=e[o];if(a&&c===void 0)return;let u=typeof c;if(u!==i||c===null)throw new Error(`param \"${o}\" is invalid: expected ${i}, got ${u}`)}Object.entries(t).forEach(([o,i])=>r(o,i,!1)),Object.entries(n).forEach(([o,i])=>r(o,i,!0))}function x6(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var ale,ile,ole,ux,nK,E6=Z(()=>{f();I0();I0();ale=BigInt(0),ile=BigInt(1);ole=e=>typeof e==\"bigint\"&&ale<=e;ux=e=>(ile<<BigInt(e))-ile;nK=()=>{throw new Error(\"not implemented\")}});var Ake,_ke=Z(()=>{f();E6();Ake=eK});function D_(e,t,n){return JSON.stringify(e,(r,o)=>typeof t==\"function\"?t(r,o):typeof o==\"bigint\"?o.toString()+svt:o,n)}var svt,IO=Z(()=>{f();svt=\"#__bigint\"});function cL(e,t){if(A6(e)>t)throw new rK({givenSize:A6(e),maxSize:t})}function Ske(e,t){if(typeof t==\"number\"&&t>0&&t>A6(e)-1)throw new uL({offset:t,position:\"start\",size:A6(e)})}function Tke(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&A6(e)!==n-t)throw new uL({offset:n,position:\"end\",size:A6(e)})}function lle(e){if(e>=lx.zero&&e<=lx.nine)return e-lx.zero;if(e>=lx.A&&e<=lx.F)return e-(lx.A-10);if(e>=lx.a&&e<=lx.f)return e-(lx.a-10)}function Cke(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new oK({size:e.length,targetSize:r,type:\"Bytes\"});let o=new Uint8Array(r);for(let i=0;i<r;i++){let a=n===\"right\";o[a?i:r-i-1]=e[a?i:e.length-i-1]}return o}function Rke(e,t={}){let{dir:n=\"left\"}=t,r=e,o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r}var lx,dle=Z(()=>{f();X0();lx={zero:48,nine:57,A:65,F:70,a:97,f:102}});function _6(e,t){if(Ff(e)>t)throw new lL({givenSize:Ff(e),maxSize:t})}function Oke(e,t){if(typeof t==\"number\"&&t>0&&t>Ff(e)-1)throw new OO({offset:t,position:\"start\",size:Ff(e)})}function kke(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&Ff(e)!==n-t)throw new OO({offset:n,position:\"end\",size:Ff(e)})}function fle(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>r*2)throw new dL({size:Math.ceil(o.length/2),targetSize:r,type:\"Hex\"});return`0x${o[n===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function ple(e,t={}){let{dir:n=\"left\"}=t,r=e.replace(\"0x\",\"\"),o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r===\"0\"?\"0x\":n===\"right\"&&r.length%2===1?`0x${r}0`:`0x${r}`}var hle=Z(()=>{f();lv()});var Fc={};qa(Fc,{IntegerOutOfRangeError:()=>iK,InvalidHexBooleanError:()=>aK,InvalidHexTypeError:()=>fL,InvalidHexValueError:()=>pL,InvalidLengthError:()=>mle,SizeExceedsPaddingSizeError:()=>dL,SizeOverflowError:()=>lL,SliceOffsetOutOfBoundsError:()=>OO,assert:()=>Pke,concat:()=>i1,from:()=>kO,fromBoolean:()=>gle,fromBytes:()=>Ds,fromNumber:()=>Hc,fromString:()=>NO,isEqual:()=>lvt,padLeft:()=>PO,padRight:()=>MO,random:()=>dvt,size:()=>Ff,slice:()=>$0,toBigInt:()=>sK,toBoolean:()=>pvt,toBytes:()=>hvt,toNumber:()=>Mke,toString:()=>mvt,trimLeft:()=>hL,trimRight:()=>fvt,validate:()=>cK});function Pke(e,t={}){let{strict:n=!1}=t;if(!e)throw new fL(e);if(typeof e!=\"string\")throw new fL(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new pL(e);if(!e.startsWith(\"0x\"))throw new pL(e)}function i1(...e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}function kO(e){return e instanceof Uint8Array?Ds(e):Array.isArray(e)?Ds(new Uint8Array(e)):e}function gle(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(_6(n,t.size),PO(n,t.size)):n}function Ds(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=uvt[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(_6(r,t.size),MO(r,t.size)):r}function Hc(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let d=typeof e==\"bigint\"?\"n\":\"\";throw new iK({max:i?`${i}${d}`:void 0,min:`${a}${d}`,signed:n,size:r,value:`${e}${d}`})}let u=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?PO(u,r):u}function NO(e,t={}){return Ds(cvt.encode(e),t)}function lvt(e,t){return Ake(zu(e),zu(t))}function PO(e,t){return fle(e,{dir:\"left\",size:t})}function MO(e,t){return fle(e,{dir:\"right\",size:t})}function dvt(e){return Ds(Dke(e))}function $0(e,t,n,r={}){let{strict:o}=r;Oke(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return o&&kke(i,t,n),i}function Ff(e){return Math.ceil((e.length-2)/2)}function hL(e){return ple(e,{dir:\"left\"})}function fvt(e){return ple(e,{dir:\"right\"})}function sK(e,t={}){let{signed:n}=t;t.size&&_6(e,t.size);let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n)-1n,a=i>>1n;return r<=a?r:r-i-1n}function pvt(e,t={}){t.size&&_6(e,t.size);let n=hL(e);if(n===\"0x\")return!1;if(n===\"0x1\")return!0;throw new aK(e)}function hvt(e,t={}){return zu(e,t)}function Mke(e,t={}){let{signed:n,size:r}=t;return Number(!n&&!r?e:sK(e,t))}function mvt(e,t={}){let{size:n}=t,r=zu(e);return n&&(cL(r,n),r=Lke(r)),new TextDecoder().decode(r)}function cK(e,t={}){let{strict:n=!1}=t;try{return Pke(e,{strict:n}),!0}catch{return!1}}var cvt,uvt,iK,aK,fL,pL,mle,lL,OO,dL,lv=Z(()=>{f();_ke();X0();sx();IO();dle();hle();cvt=new TextEncoder,uvt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));iK=class extends Ir{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \\\\`${i}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${r?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${n}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${n}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},aK=class extends Ir{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is not a valid boolean.`,{metaMessages:[\\'The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexBooleanError\"})}},fL=class extends Ir{constructor(t){super(`Value \\\\`${typeof t==\"object\"?D_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},pL=class extends Ir{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},mle=class extends Ir{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is an odd length (${t.length-2} nibbles).`,{metaMessages:[\"It must be an even length.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidLengthError\"})}},lL=class extends Ir{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},OO=class extends Ir{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},dL=class extends Ir{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function yvt(e){if(!(e instanceof Uint8Array)){if(!e)throw new DO(e);if(typeof e!=\"object\")throw new DO(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new DO(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new DO(e)}}function uK(...e){let t=0;for(let r of e)t+=r.length;let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function LO(e){return e instanceof Uint8Array?e:typeof e==\"string\"?zu(e):yle(e)}function yle(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function zu(e,t={}){let{size:n}=t,r=e;n&&(_6(e,n),r=MO(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let c=0,u=0;c<i;c++){let d=lle(o.charCodeAt(u++)),p=lle(o.charCodeAt(u++));if(d===void 0||p===void 0)throw new Ir(`Invalid byte sequence (\"${o[u-2]}${o[u-1]}\" in \"${o}\").`);a[c]=d*16+p}return a}function ble(e,t){let n=Hc(e,t);return zu(n)}function BO(e,t={}){let{size:n}=t,r=gvt.encode(e);return typeof n==\"number\"?(cL(r,n),bvt(r,n)):r}function bvt(e,t){return Cke(e,{dir:\"right\",size:t})}function Dke(e){return crypto.getRandomValues(new Uint8Array(e))}function A6(e){return e.length}function vle(e,t,n,r={}){let{strict:o}=r;Ske(e,t);let i=e.slice(t,n);return o&&Tke(i,t,n),i}function wle(e,t={}){let{size:n}=t;typeof n<\"u\"&&cL(e,n);let r=Ds(e,t);return sK(r,t)}function Lke(e){return Rke(e,{dir:\"right\"})}function Bke(e){try{return yvt(e),!0}catch{return!1}}var gvt,DO,rK,uL,oK,X0=Z(()=>{f();sx();lv();IO();dle();hle();gvt=new TextEncoder;DO=class extends Ir{constructor(t){super(`Value \\\\`${typeof t==\"object\"?D_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},rK=class extends Ir{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},uL=class extends Ir{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},oK=class extends Ir{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function lK(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=C2(LO(e));return n===\"Bytes\"?r:Ds(r)}function dK(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=$3(LO(e));return n===\"Bytes\"?r:Ds(r)}var fK=Z(()=>{f();q9();nW();X0();lv()});var pK,Uke=Z(()=>{f();pK=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});var vvt,hK,Ele=Z(()=>{f();Uke();vvt={checksum:new pK(8192)},hK=vvt.checksum});var Hf={};qa(Hf,{InvalidCompressedPrefixError:()=>gK,InvalidError:()=>mK,InvalidPrefixError:()=>mL,InvalidSerializedSizeError:()=>bK,InvalidUncompressedPrefixError:()=>yK,assert:()=>vK,compress:()=>wvt,from:()=>S6,fromBytes:()=>Hke,fromHex:()=>Ale,toBytes:()=>_le,toHex:()=>wK,validate:()=>xvt});function vK(e,t={}){let{compressed:n}=t,{prefix:r,x:o,y:i}=e;if(n===!1||typeof o==\"bigint\"&&typeof i==\"bigint\"){if(r!==4)throw new mL({prefix:r,cause:new yK});return}if(n===!0||typeof o==\"bigint\"&&typeof i>\"u\"){if(r!==3&&r!==2)throw new mL({prefix:r,cause:new gK});return}throw new mK({publicKey:e})}function wvt(e){let{x:t,y:n}=e;return{prefix:n%2n===0n?2:3,x:t}}function S6(e){let t=(()=>{if(cK(e))return Ale(e);if(Bke(e))return Hke(e);let{prefix:n,x:r,y:o}=e;return typeof r==\"bigint\"&&typeof o==\"bigint\"?{prefix:n??4,x:r,y:o}:{prefix:n,x:r}})();return vK(t),t}function Hke(e){return Ale(Ds(e))}function Ale(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new bK({publicKey:e});if(e.length===130){let r=BigInt($0(e,0,32)),o=BigInt($0(e,32,64));return{prefix:4,x:r,y:o}}if(e.length===132){let r=Number($0(e,0,1)),o=BigInt($0(e,1,33)),i=BigInt($0(e,33,65));return{prefix:r,x:o,y:i}}let t=Number($0(e,0,1)),n=BigInt($0(e,1,33));return{prefix:t,x:n}}function _le(e,t={}){return zu(wK(e,t))}function wK(e,t={}){vK(e);let{prefix:n,x:r,y:o}=e,{includePrefix:i=!0}=t;return i1(i?Hc(n,{size:1}):\"0x\",Hc(r,{size:32}),typeof o==\"bigint\"?Hc(o,{size:32}):\"0x\")}function xvt(e,t={}){try{return vK(e,t),!0}catch{return!1}}var mK,mL,gK,yK,bK,gL=Z(()=>{f();X0();sx();lv();IO();mK=class extends Ir{constructor({publicKey:t}){super(`Value \\\\`${D_(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},mL=class extends Ir{constructor({prefix:t,cause:n}){super(`Prefix \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},gK=class extends Ir{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},yK=class extends Ir{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},bK=class extends Ir{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Ff(kO(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function Cle(e,t={}){let{strict:n=!0}=t;if(!Evt.test(e))throw new xK({address:e,cause:new Sle});if(n){if(e.toLowerCase()===e)return;if(Avt(e)!==e)throw new xK({address:e,cause:new Tle})}}function Avt(e){if(hK.has(e))return hK.get(e);Cle(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=lK(BO(t),{as:\"Bytes\"}),r=t.split(\"\");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());let o=`0x${r.join(\"\")}`;return hK.set(e,o),o}var Evt,xK,Sle,Tle,Rle=Z(()=>{f();X0();Ele();sx();fK();Evt=/^0x[a-fA-F0-9]{40}$/;xK=class extends Ir{constructor({address:t,cause:n}){super(`Address \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},Sle=class extends Ir{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},Tle=class extends Ir{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var jke=Z(()=>{f()});var Wke,Vke,Gke,VHn,GHn,qHn,KHn,YHn,ZHn,QHn,JHn,XHn,$Hn,ezn,tzn,nzn,rzn,ozn,izn,azn,szn,czn,uzn,lzn,dzn,fzn,pzn,hzn,mzn,gzn,yzn,bzn,vzn,wzn,xzn,Ezn,Azn,_zn,Szn,Tzn,Czn,Rzn,Izn,Ozn,kzn,Nzn,Pzn,Mzn,Dzn,Lzn,Bzn,Uzn,Fzn,Hzn,zzn,jzn,Wzn,Vzn,Gzn,qzn,Kzn,Yzn,Zzn,Qzn,Jzn,Xzn,$zn,ejn,tjn,njn,rjn,ojn,ijn,ajn,sjn,cjn,ujn,ljn,djn,fjn,pjn,hjn,mjn,gjn,yjn,bjn,vjn,wjn,xjn,Ejn,Ajn,_jn,Sjn,Tjn,Cjn,Rjn,Ijn,Ojn,Ile,EK=Z(()=>{f();Wke=/^(.*)\\\\[([0-9]*)\\\\]$/,Vke=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Gke=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,VHn=2n**(8n-1n)-1n,GHn=2n**(16n-1n)-1n,qHn=2n**(24n-1n)-1n,KHn=2n**(32n-1n)-1n,YHn=2n**(40n-1n)-1n,ZHn=2n**(48n-1n)-1n,QHn=2n**(56n-1n)-1n,JHn=2n**(64n-1n)-1n,XHn=2n**(72n-1n)-1n,$Hn=2n**(80n-1n)-1n,ezn=2n**(88n-1n)-1n,tzn=2n**(96n-1n)-1n,nzn=2n**(104n-1n)-1n,rzn=2n**(112n-1n)-1n,ozn=2n**(120n-1n)-1n,izn=2n**(128n-1n)-1n,azn=2n**(136n-1n)-1n,szn=2n**(144n-1n)-1n,czn=2n**(152n-1n)-1n,uzn=2n**(160n-1n)-1n,lzn=2n**(168n-1n)-1n,dzn=2n**(176n-1n)-1n,fzn=2n**(184n-1n)-1n,pzn=2n**(192n-1n)-1n,hzn=2n**(200n-1n)-1n,mzn=2n**(208n-1n)-1n,gzn=2n**(216n-1n)-1n,yzn=2n**(224n-1n)-1n,bzn=2n**(232n-1n)-1n,vzn=2n**(240n-1n)-1n,wzn=2n**(248n-1n)-1n,xzn=2n**(256n-1n)-1n,Ezn=-(2n**(8n-1n)),Azn=-(2n**(16n-1n)),_zn=-(2n**(24n-1n)),Szn=-(2n**(32n-1n)),Tzn=-(2n**(40n-1n)),Czn=-(2n**(48n-1n)),Rzn=-(2n**(56n-1n)),Izn=-(2n**(64n-1n)),Ozn=-(2n**(72n-1n)),kzn=-(2n**(80n-1n)),Nzn=-(2n**(88n-1n)),Pzn=-(2n**(96n-1n)),Mzn=-(2n**(104n-1n)),Dzn=-(2n**(112n-1n)),Lzn=-(2n**(120n-1n)),Bzn=-(2n**(128n-1n)),Uzn=-(2n**(136n-1n)),Fzn=-(2n**(144n-1n)),Hzn=-(2n**(152n-1n)),zzn=-(2n**(160n-1n)),jzn=-(2n**(168n-1n)),Wzn=-(2n**(176n-1n)),Vzn=-(2n**(184n-1n)),Gzn=-(2n**(192n-1n)),qzn=-(2n**(200n-1n)),Kzn=-(2n**(208n-1n)),Yzn=-(2n**(216n-1n)),Zzn=-(2n**(224n-1n)),Qzn=-(2n**(232n-1n)),Jzn=-(2n**(240n-1n)),Xzn=-(2n**(248n-1n)),$zn=-(2n**(256n-1n)),ejn=2n**8n-1n,tjn=2n**16n-1n,njn=2n**24n-1n,rjn=2n**32n-1n,ojn=2n**40n-1n,ijn=2n**48n-1n,ajn=2n**56n-1n,sjn=2n**64n-1n,cjn=2n**72n-1n,ujn=2n**80n-1n,ljn=2n**88n-1n,djn=2n**96n-1n,fjn=2n**104n-1n,pjn=2n**112n-1n,hjn=2n**120n-1n,mjn=2n**128n-1n,gjn=2n**136n-1n,yjn=2n**144n-1n,bjn=2n**152n-1n,vjn=2n**160n-1n,wjn=2n**168n-1n,xjn=2n**176n-1n,Ejn=2n**184n-1n,Ajn=2n**192n-1n,_jn=2n**200n-1n,Sjn=2n**208n-1n,Tjn=2n**216n-1n,Cjn=2n**224n-1n,Rjn=2n**232n-1n,Ijn=2n**240n-1n,Ojn=2n**248n-1n,Ile=2n**256n-1n});function kle(e,t){if(e.length!==t.length)throw new Ple({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(kle.encode(o,i))}return i1(...n)}var Nle,Ple,Mle,qke=Z(()=>{f();Rle();sx();lv();EK();(function(e){function t(n,r,o=!1){if(n===\"address\"){let u=r;return Cle(u),PO(u.toLowerCase(),o?32:0)}if(n===\"string\")return NO(r);if(n===\"bytes\")return r;if(n===\"bool\")return PO(gle(r),o?32:1);let i=n.match(Gke);if(i){let[u,d,p=\"256\"]=i,h=Number.parseInt(p)/8;return Hc(r,{size:o?32:h,signed:d===\"int\"})}let a=n.match(Vke);if(a){let[u,d]=a;if(Number.parseInt(d)!==(r.length-2)/2)throw new Nle({expectedSize:Number.parseInt(d),value:r});return MO(r,o?32:0)}let c=n.match(Wke);if(c&&Array.isArray(r)){let[u,d]=c,p=[];for(let h=0;h<r.length;h++)p.push(t(d,r[h],!0));return p.length===0?\"0x\":i1(...p)}throw new Mle(n)}e.encode=t})(kle||(kle={}));Nle=class extends Ir{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${Ff(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},Ple=class extends Ir{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},Mle=class extends Ir{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});var Kke=Z(()=>{f()});var Yke=Z(()=>{f()});var Zke=Z(()=>{f()});var Qke=Z(()=>{f()});var Jke=Z(()=>{f()});var Xke=Z(()=>{f()});var $ke=Z(()=>{f()});var eNe=Z(()=>{f()});function Ls(e,t){let n=e%t;return n>=zf?n:t+n}function Xa(e,t,n){let r=e;for(;t-- >zf;)r*=r,r%=n;return r}function tNe(e,t){if(e===zf)throw new Error(\"invert: expected non-zero number\");if(t<=zf)throw new Error(\"invert: expected positive modulus, got \"+t);let n=Ls(e,t),r=t,o=zf,i=ju,a=ju,c=zf;for(;n!==zf;){let d=r/n,p=r%n,h=o-a*d,g=i-c*d;r=n,n=p,o=a,i=c,a=h,c=g}if(r!==ju)throw new Error(\"invert: does not exist\");return Ls(o,t)}function Dle(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error(\"Cannot find square root\")}function cNe(e,t){let n=(e.ORDER+ju)/oNe,r=e.pow(t,n);return Dle(e,r,t),r}function Dvt(e,t){let n=(e.ORDER-iNe)/aNe,r=e.mul(t,T6),o=e.pow(r,n),i=e.mul(t,o),a=e.mul(e.mul(i,T6),o),c=e.mul(i,e.sub(a,e.ONE));return Dle(e,c,t),c}function Lvt(e){let t=Ll(e),n=uNe(e),r=n(t,t.neg(t.ONE)),o=n(t,r),i=n(t,t.neg(r)),a=(e+Pvt)/sNe;return(c,u)=>{let d=c.pow(u,a),p=c.mul(d,r),h=c.mul(d,o),g=c.mul(d,i),y=c.eql(c.sqr(p),u),v=c.eql(c.sqr(h),u);d=c.cmov(d,p,y),p=c.cmov(g,h,v);let x=c.eql(c.sqr(p),u),R=c.cmov(d,p,x);return Dle(c,R,u),R}}function uNe(e){if(e<rNe)throw new Error(\"sqrt is not defined for small field\");let t=e-ju,n=0;for(;t%T6===zf;)t/=T6,n++;let r=T6,o=Ll(e);for(;nNe(o,r)===1;)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return cNe;let i=o.pow(r,t),a=(t+ju)/T6;return function(u,d){if(u.is0(d))return d;if(nNe(u,d)!==1)throw new Error(\"Cannot find square root\");let p=n,h=u.mul(u.ONE,i),g=u.pow(d,t),y=u.pow(d,a);for(;!u.eql(g,u.ONE);){if(u.is0(g))return u.ZERO;let v=1,x=u.sqr(g);for(;!u.eql(x,u.ONE);)if(v++,x=u.sqr(x),v===p)throw new Error(\"Cannot find square root\");let R=ju<<BigInt(p-v-1),S=u.pow(h,R);p=v,h=u.sqr(S),g=u.mul(g,h),y=u.mul(y,S)}return y}}function Bvt(e){return e%oNe===rNe?cNe:e%aNe===iNe?Dvt:e%sNe===Mvt?Lvt(e):uNe(e)}function Lle(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"number\",BITS:\"number\"},n=Uvt.reduce((r,o)=>(r[o]=\"function\",r),t);return M_(e,n),e}function Fvt(e,t,n){if(n<zf)throw new Error(\"invalid exponent, negatives unsupported\");if(n===zf)return e.ONE;if(n===ju)return t;let r=e.ONE,o=t;for(;n>zf;)n&ju&&(r=e.mul(r,o)),o=e.sqr(o),n>>=ju;return r}function yL(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((a,c,u)=>e.is0(c)?a:(r[u]=a,e.mul(a,c)),e.ONE),i=e.inv(o);return t.reduceRight((a,c,u)=>e.is0(c)?a:(r[u]=e.mul(a,r[u]),e.mul(a,c)),i),r}function nNe(e,t){let n=(e.ORDER-ju)/T6,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error(\"invalid Legendre symbol result\");return o?1:i?0:-1}function AK(e,t){t!==void 0&&Dy(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Ll(e,t,n=!1,r={}){if(e<=zf)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let o,i,a=!1,c;if(typeof t==\"object\"&&t!=null){if(r.sqrt||n)throw new Error(\"cannot specify opts in two arguments\");let g=t;g.BITS&&(o=g.BITS),g.sqrt&&(i=g.sqrt),typeof g.isLE==\"boolean\"&&(n=g.isLE),typeof g.modFromBytes==\"boolean\"&&(a=g.modFromBytes),c=g.allowedLengths}else typeof t==\"number\"&&(o=t),r.sqrt&&(i=r.sqrt);let{nBitLength:u,nByteLength:d}=AK(e,o);if(d>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let p,h=Object.freeze({ORDER:e,isLE:n,BITS:u,BYTES:d,MASK:ux(u),ZERO:zf,ONE:ju,allowedLengths:c,create:g=>Ls(g,e),isValid:g=>{if(typeof g!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof g);return zf<=g&&g<e},is0:g=>g===zf,isValidNot0:g=>!h.is0(g)&&h.isValid(g),isOdd:g=>(g&ju)===ju,neg:g=>Ls(-g,e),eql:(g,y)=>g===y,sqr:g=>Ls(g*g,e),add:(g,y)=>Ls(g+y,e),sub:(g,y)=>Ls(g-y,e),mul:(g,y)=>Ls(g*y,e),pow:(g,y)=>Fvt(h,g,y),div:(g,y)=>Ls(g*tNe(y,e),e),sqrN:g=>g*g,addN:(g,y)=>g+y,subN:(g,y)=>g-y,mulN:(g,y)=>g*y,inv:g=>tNe(g,e),sqrt:i||(g=>(p||(p=Bvt(e)),p(h,g))),toBytes:g=>n?$q(g,d):iL(g,d),fromBytes:(g,y=!0)=>{if(c){if(!c.includes(g.length)||g.length>d)throw new Error(\"Field.fromBytes: expected \"+c+\" bytes, got \"+g.length);let x=new Uint8Array(d);x.set(g,n?0:x.length-g.length),g=x}if(g.length!==d)throw new Error(\"Field.fromBytes: expected \"+d+\" bytes, got \"+g.length);let v=n?uv(g):w6(g);if(a&&(v=Ls(v,e)),!y&&!h.isValid(v))throw new Error(\"invalid field element: outside of range 0..ORDER\");return v},invertBatch:g=>yL(h,g),cmov:(g,y,v)=>v?y:g});return Object.freeze(h)}function lNe(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function Ble(e){let t=lNe(e);return t+Math.ceil(t/2)}function Ule(e,t,n=!1){let r=e.length,o=lNe(t),i=Ble(t);if(r<16||r<i||r>1024)throw new Error(\"expected \"+i+\"-1024 bytes of input, got \"+r);let a=n?uv(e):w6(e),c=Ls(a,t-ju)+ju;return n?$q(c,o):iL(c,o)}var zf,ju,T6,rNe,oNe,iNe,Pvt,aNe,Mvt,sNe,dx,Uvt,C6=Z(()=>{f();E6();zf=BigInt(0),ju=BigInt(1),T6=BigInt(2),rNe=BigInt(3),oNe=BigInt(4),iNe=BigInt(5),Pvt=BigInt(7),aNe=BigInt(8),Mvt=BigInt(9),sNe=BigInt(16);dx=(e,t)=>(Ls(e,t)&ju)===ju,Uvt=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function bL(e,t){let n=t.negate();return e?n:t}function fx(e,t){let n=yL(e.Fp,t.map(r=>r.Z));return t.map((r,o)=>e.fromAffine(r.toAffine(n[o])))}function hNe(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function Fle(e,t){hNe(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=ux(e),a=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:a}}function dNe(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n,c=Number(e&o),u=e>>a;c>r&&(c-=i,u+=R6);let d=t*r,p=d+Math.abs(c)-1,h=c===0,g=c<0,y=t%2!==0;return{nextN:u,offset:p,isZero:h,isNeg:g,isNegF:y,offsetF:d}}function Hvt(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error(\"invalid point at index \"+r)})}function zvt(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error(\"invalid scalar at index \"+r)})}function zle(e){return mNe.get(e)||1}function fNe(e){if(e!==UO)throw new Error(\"invalid wNAF\")}function gNe(e,t,n,r){let o=t,i=e.ZERO,a=e.ZERO;for(;n>UO||r>UO;)n&R6&&(i=i.add(o)),r&R6&&(a=a.add(o)),o=o.double(),n>>=R6,r>>=R6;return{p1:i,p2:a}}function HO(e,t,n,r){Hvt(n,e),zvt(r,t);let o=n.length,i=r.length;if(o!==i)throw new Error(\"arrays of points and scalars must have equal length\");let a=e.ZERO,c=aL(BigInt(o)),u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);let d=ux(u),p=new Array(Number(d)+1).fill(a),h=Math.floor((t.BITS-1)/u)*u,g=a;for(let y=h;y>=0;y-=u){p.fill(a);for(let x=0;x<i;x++){let R=r[x],S=Number(R>>BigInt(y)&d);p[S]=p[S].add(n[x])}let v=a;for(let x=p.length-1,R=a;x>0;x--)R=R.add(p[x]),v=v.add(R);if(g=g.add(v),y!==0)for(let x=0;x<u;x++)g=g.double()}return g}function pNe(e,t,n){if(t){if(t.ORDER!==e)throw new Error(\"Field.ORDER must match order: Fp == p, Fn == n\");return Lle(t),t}else return Ll(e,{isLE:n})}function _K(e,t,n={},r){if(r===void 0&&(r=e===\"edwards\"),!t||typeof t!=\"object\")throw new Error(`expected valid ${e} CURVE object`);for(let u of[\"p\",\"n\",\"h\"]){let d=t[u];if(!(typeof d==\"bigint\"&&d>UO))throw new Error(`CURVE.${u} must be positive bigint`)}let o=pNe(t.p,n.Fp,r),i=pNe(t.n,n.Fn,r),c=[\"Gx\",\"Gy\",\"a\",e===\"weierstrass\"?\"b\":\"d\"];for(let u of c)if(!o.isValid(t[u]))throw new Error(`CURVE.${u} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:i}}var UO,R6,Hle,mNe,FO,SK=Z(()=>{f();E6();C6();UO=BigInt(0),R6=BigInt(1);Hle=new WeakMap,mNe=new WeakMap;FO=class{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let o=t;for(;n>UO;)n&R6&&(r=r.add(o)),o=o.double(),n>>=R6;return r}precomputeWindow(t,n){let{windows:r,windowSize:o}=Fle(n,this.bits),i=[],a=t,c=a;for(let u=0;u<r;u++){c=a,i.push(c);for(let d=1;d<o;d++)c=c.add(a),i.push(c);a=c.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error(\"invalid scalar\");let o=this.ZERO,i=this.BASE,a=Fle(t,this.bits);for(let c=0;c<a.windows;c++){let{nextN:u,offset:d,isZero:p,isNeg:h,isNegF:g,offsetF:y}=dNe(r,c,a);r=u,p?i=i.add(bL(g,n[y])):o=o.add(bL(h,n[d]))}return fNe(r),{p:o,f:i}}wNAFUnsafe(t,n,r,o=this.ZERO){let i=Fle(t,this.bits);for(let a=0;a<i.windows&&r!==UO;a++){let{nextN:c,offset:u,isZero:d,isNeg:p}=dNe(r,a,i);if(r=c,!d){let h=n[u];o=o.add(p?h.negate():h)}}return fNe(r),o}getPrecomputes(t,n,r){let o=Hle.get(n);return o||(o=this.precomputeWindow(n,t),t!==1&&(typeof r==\"function\"&&(o=r(o)),Hle.set(n,o))),o}cached(t,n,r){let o=zle(t);return this.wNAF(o,this.getPrecomputes(o,t,r),n)}unsafe(t,n,r,o){let i=zle(t);return i===1?this._unsafeLadder(t,n,o):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,o)}createCache(t,n){hNe(n,this.bits),mNe.set(t,n),Hle.delete(t)}hasCache(t){return zle(t)!==1}}});function jvt(e,t,n){let[[r,o],[i,a]]=t,c=yNe(a*e,n),u=yNe(-o*e,n),d=e-c*r-u*i,p=-c*o-u*a,h=d<hx,g=p<hx;h&&(d=-d),g&&(p=-p);let y=ux(Math.ceil(aL(n)/2))+jO;if(d<hx||d>=y||p<hx||p>=y)throw new Error(\"splitScalar (endomorphism): failed, k=\"+e);return{k1neg:h,k1:d,k2neg:g,k2:p}}function Wle(e){if(![\"compact\",\"recovered\",\"der\"].includes(e))throw new Error(\\'Signature format must be \"compact\", \"recovered\", or \"der\"\\');return e}function jle(e,t){let n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return cx(n.lowS,\"lowS\"),cx(n.prehash,\"prehash\"),n.format!==void 0&&Wle(n.format),n}function zO(e,t){let{BYTES:n}=e,r;if(typeof t==\"bigint\")r=t;else{let o=ki(\"private key\",t);try{r=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error(\"invalid private key: out of range [1..N-1]\");return r}function Vvt(e,t={}){let n=_K(\"weierstrass\",e,t),{Fp:r,Fn:o}=n,i=n.CURVE,{h:a,n:c}=i;M_(t,{},{allowInfinityPoint:\"boolean\",clearCofactor:\"function\",isTorsionFree:\"function\",fromBytes:\"function\",toBytes:\"function\",endo:\"object\",wrapPrivateKey:\"boolean\"});let{endo:u}=t;if(u&&(!r.is0(i.a)||typeof u.beta!=\"bigint\"||!Array.isArray(u.basises)))throw new Error(\\'invalid endo: expected \"beta\": bigint and \"basises\": array\\');let d=wNe(r,o);function p(){if(!r.isOdd)throw new Error(\"compression is not supported: Field does not have .isOdd()\")}function h(K,U,T){let{x:k,y:F}=U.toAffine(),N=r.toBytes(k);if(cx(T,\"isCompressed\"),T){p();let B=!r.isOdd(F);return Bu(vNe(B),N)}else return Bu(Uint8Array.of(4),N,r.toBytes(F))}function g(K){mm(K,void 0,\"Point\");let{publicKey:U,publicKeyUncompressed:T}=d,k=K.length,F=K[0],N=K.subarray(1);if(k===U&&(F===2||F===3)){let B=r.fromBytes(N);if(!r.isValid(B))throw new Error(\"bad point: is not on curve, wrong x\");let H=x(B),W;try{W=r.sqrt(H)}catch(j){let te=j instanceof Error?\": \"+j.message:\"\";throw new Error(\"bad point: is not on curve, sqrt error\"+te)}p();let G=r.isOdd(W);return(F&1)===1!==G&&(W=r.neg(W)),{x:B,y:W}}else if(k===T&&F===4){let B=r.BYTES,H=r.fromBytes(N.subarray(0,B)),W=r.fromBytes(N.subarray(B,B*2));if(!R(H,W))throw new Error(\"bad point: is not on curve\");return{x:H,y:W}}else throw new Error(`bad point: got length ${k}, expected compressed=${U} or uncompressed=${T}`)}let y=t.toBytes||h,v=t.fromBytes||g;function x(K){let U=r.sqr(K),T=r.mul(U,K);return r.add(r.add(T,r.mul(K,i.a)),i.b)}function R(K,U){let T=r.sqr(U),k=x(K);return r.eql(T,k)}if(!R(i.Gx,i.Gy))throw new Error(\"bad curve params: generator point\");let S=r.mul(r.pow(i.a,TK),Wvt),M=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(S,M)))throw new Error(\"bad curve params: a or b\");function P(K,U,T=!1){if(!r.isValid(U)||T&&r.is0(U))throw new Error(`bad point coordinate ${K}`);return U}function z(K){if(!(K instanceof J))throw new Error(\"ProjectivePoint expected\")}function V(K){if(!u||!u.basises)throw new Error(\"no endo\");return jvt(K,u.basises,o.ORDER)}let Q=x6((K,U)=>{let{X:T,Y:k,Z:F}=K;if(r.eql(F,r.ONE))return{x:T,y:k};let N=K.is0();U==null&&(U=N?r.ONE:r.inv(F));let B=r.mul(T,U),H=r.mul(k,U),W=r.mul(F,U);if(N)return{x:r.ZERO,y:r.ZERO};if(!r.eql(W,r.ONE))throw new Error(\"invZ was invalid\");return{x:B,y:H}}),$=x6(K=>{if(K.is0()){if(t.allowInfinityPoint&&!r.is0(K.Y))return;throw new Error(\"bad point: ZERO\")}let{x:U,y:T}=K.toAffine();if(!r.isValid(U)||!r.isValid(T))throw new Error(\"bad point: x or y not field elements\");if(!R(U,T))throw new Error(\"bad point: equation left != right\");if(!K.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});function oe(K,U,T,k,F){return T=new J(r.mul(T.X,K),T.Y,T.Z),U=bL(k,U),T=bL(F,T),U.add(T)}class J{constructor(U,T,k){this.X=P(\"x\",U),this.Y=P(\"y\",T,!0),this.Z=P(\"z\",k),Object.freeze(this)}static CURVE(){return i}static fromAffine(U){let{x:T,y:k}=U||{};if(!U||!r.isValid(T)||!r.isValid(k))throw new Error(\"invalid affine point\");if(U instanceof J)throw new Error(\"projective point not allowed\");return r.is0(T)&&r.is0(k)?J.ZERO:new J(T,k,r.ONE)}static fromBytes(U){let T=J.fromAffine(v(mm(U,void 0,\"point\")));return T.assertValidity(),T}static fromHex(U){return J.fromBytes(ki(\"pointHex\",U))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(U=8,T=!0){return q.createCache(this,U),T||this.multiply(TK),this}assertValidity(){$(this)}hasEvenY(){let{y:U}=this.toAffine();if(!r.isOdd)throw new Error(\"Field doesn\\'t support isOdd\");return!r.isOdd(U)}equals(U){z(U);let{X:T,Y:k,Z:F}=this,{X:N,Y:B,Z:H}=U,W=r.eql(r.mul(T,H),r.mul(N,F)),G=r.eql(r.mul(k,H),r.mul(B,F));return W&&G}negate(){return new J(this.X,r.neg(this.Y),this.Z)}double(){let{a:U,b:T}=i,k=r.mul(T,TK),{X:F,Y:N,Z:B}=this,H=r.ZERO,W=r.ZERO,G=r.ZERO,O=r.mul(F,F),j=r.mul(N,N),te=r.mul(B,B),ne=r.mul(F,N);return ne=r.add(ne,ne),G=r.mul(F,B),G=r.add(G,G),H=r.mul(U,G),W=r.mul(k,te),W=r.add(H,W),H=r.sub(j,W),W=r.add(j,W),W=r.mul(H,W),H=r.mul(ne,H),G=r.mul(k,G),te=r.mul(U,te),ne=r.sub(O,te),ne=r.mul(U,ne),ne=r.add(ne,G),G=r.add(O,O),O=r.add(G,O),O=r.add(O,te),O=r.mul(O,ne),W=r.add(W,O),te=r.mul(N,B),te=r.add(te,te),O=r.mul(te,ne),H=r.sub(H,O),G=r.mul(te,j),G=r.add(G,G),G=r.add(G,G),new J(H,W,G)}add(U){z(U);let{X:T,Y:k,Z:F}=this,{X:N,Y:B,Z:H}=U,W=r.ZERO,G=r.ZERO,O=r.ZERO,j=i.a,te=r.mul(i.b,TK),ne=r.mul(T,N),ae=r.mul(k,B),pe=r.mul(F,H),ye=r.add(T,k),ve=r.add(N,B);ye=r.mul(ye,ve),ve=r.add(ne,ae),ye=r.sub(ye,ve),ve=r.add(T,F);let xe=r.add(N,H);return ve=r.mul(ve,xe),xe=r.add(ne,pe),ve=r.sub(ve,xe),xe=r.add(k,F),W=r.add(B,H),xe=r.mul(xe,W),W=r.add(ae,pe),xe=r.sub(xe,W),O=r.mul(j,ve),W=r.mul(te,pe),O=r.add(W,O),W=r.sub(ae,O),O=r.add(ae,O),G=r.mul(W,O),ae=r.add(ne,ne),ae=r.add(ae,ne),pe=r.mul(j,pe),ve=r.mul(te,ve),ae=r.add(ae,pe),pe=r.sub(ne,pe),pe=r.mul(j,pe),ve=r.add(ve,pe),ne=r.mul(ae,ve),G=r.add(G,ne),ne=r.mul(xe,ve),W=r.mul(ye,W),W=r.sub(W,ne),ne=r.mul(ye,ae),O=r.mul(xe,O),O=r.add(O,ne),new J(W,G,O)}subtract(U){return this.add(U.negate())}is0(){return this.equals(J.ZERO)}multiply(U){let{endo:T}=t;if(!o.isValidNot0(U))throw new Error(\"invalid scalar: out of range\");let k,F,N=B=>q.cached(this,B,H=>fx(J,H));if(T){let{k1neg:B,k1:H,k2neg:W,k2:G}=V(U),{p:O,f:j}=N(H),{p:te,f:ne}=N(G);F=j.add(ne),k=oe(T.beta,O,te,B,W)}else{let{p:B,f:H}=N(U);k=B,F=H}return fx(J,[k,F])[0]}multiplyUnsafe(U){let{endo:T}=t,k=this;if(!o.isValid(U))throw new Error(\"invalid scalar: out of range\");if(U===hx||k.is0())return J.ZERO;if(U===jO)return k;if(q.hasCache(this))return this.multiply(U);if(T){let{k1neg:F,k1:N,k2neg:B,k2:H}=V(U),{p1:W,p2:G}=gNe(J,k,N,H);return oe(T.beta,W,G,F,B)}else return q.unsafe(k,U)}multiplyAndAddUnsafe(U,T,k){let F=this.multiplyUnsafe(T).add(U.multiplyUnsafe(k));return F.is0()?void 0:F}toAffine(U){return Q(this,U)}isTorsionFree(){let{isTorsionFree:U}=t;return a===jO?!0:U?U(J,this):q.unsafe(this,c).is0()}clearCofactor(){let{clearCofactor:U}=t;return a===jO?this:U?U(J,this):this.multiplyUnsafe(a)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}toBytes(U=!0){return cx(U,\"isCompressed\"),this.assertValidity(),y(J,this,U)}toHex(U=!0){return nm(this.toBytes(U))}toString(){return`<Point ${this.is0()?\"ZERO\":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(U=!0){return this.toBytes(U)}_setWindowSize(U){this.precompute(U)}static normalizeZ(U){return fx(J,U)}static msm(U,T){return HO(J,o,U,T)}static fromPrivateKey(U){return J.BASE.multiply(zO(o,U))}}J.BASE=new J(i.Gx,i.Gy,r.ONE),J.ZERO=new J(r.ZERO,r.ONE,r.ZERO),J.Fp=r,J.Fn=o;let re=o.BITS,q=new FO(J,t.endo?Math.ceil(re/2):re);return J.BASE.precompute(8),J}function vNe(e){return Uint8Array.of(e?2:3)}function wNe(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Gvt(e,t={}){let{Fn:n}=e,r=t.randomBytes||By,o=Object.assign(wNe(e.Fp,n),{seed:Ble(n.ORDER)});function i(y){try{return!!zO(n,y)}catch{return!1}}function a(y,v){let{publicKey:x,publicKeyUncompressed:R}=o;try{let S=y.length;return v===!0&&S!==x||v===!1&&S!==R?!1:!!e.fromBytes(y)}catch{return!1}}function c(y=r(o.seed)){return Ule(mm(y,o.seed,\"seed\"),n.ORDER)}function u(y,v=!0){return e.BASE.multiply(zO(n,y)).toBytes(v)}function d(y){let v=c(y);return{secretKey:v,publicKey:u(v)}}function p(y){if(typeof y==\"bigint\")return!1;if(y instanceof e)return!0;let{secretKey:v,publicKey:x,publicKeyUncompressed:R}=o;if(n.allowedLengths||v===x)return;let S=ki(\"key\",y).length;return S===x||S===R}function h(y,v,x=!0){if(p(y)===!0)throw new Error(\"first arg must be private key\");if(p(v)===!1)throw new Error(\"second arg must be public key\");let R=zO(n,y);return e.fromHex(v).multiply(R).toBytes(x)}return Object.freeze({getPublicKey:u,getSharedSecret:h,keygen:d,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:a,randomSecretKey:c,isValidPrivateKey:i,randomPrivateKey:c,normPrivateKeyToScalar:y=>zO(n,y),precompute(y=8,v=e.BASE){return v.precompute(y,!1)}},lengths:o})}function qvt(e,t,n={}){Kj(t),M_(n,{},{hmac:\"function\",lowS:\"boolean\",randomBytes:\"function\",bits2int:\"function\",bits2int_modN:\"function\"});let r=n.randomBytes||By,o=n.hmac||((T,...k)=>JM(t,T,Bu(...k))),{Fp:i,Fn:a}=e,{ORDER:c,BITS:u}=a,{keygen:d,getPublicKey:p,getSharedSecret:h,utils:g,lengths:y}=Gvt(e,n),v={prehash:!1,lowS:typeof n.lowS==\"boolean\"?n.lowS:!1,format:void 0,extraEntropy:!1},x=\"compact\";function R(T){let k=c>>jO;return T>k}function S(T,k){if(!a.isValidNot0(k))throw new Error(`invalid signature ${T}: out of range 1..Point.Fn.ORDER`);return k}function M(T,k){Wle(k);let F=y.signature,N=k===\"compact\"?F:k===\"recovered\"?F+1:void 0;return mm(T,N,`${k} signature`)}class P{constructor(k,F,N){this.r=S(\"r\",k),this.s=S(\"s\",F),N!=null&&(this.recovery=N),Object.freeze(this)}static fromBytes(k,F=x){M(k,F);let N;if(F===\"der\"){let{r:G,s:O}=px.toSig(mm(k));return new P(G,O)}F===\"recovered\"&&(N=k[0],F=\"compact\",k=k.subarray(1));let B=a.BYTES,H=k.subarray(0,B),W=k.subarray(B,B*2);return new P(a.fromBytes(H),a.fromBytes(W),N)}static fromHex(k,F){return this.fromBytes(MA(k),F)}addRecoveryBit(k){return new P(this.r,this.s,k)}recoverPublicKey(k){let F=i.ORDER,{r:N,s:B,recovery:H}=this;if(H==null||![0,1,2,3].includes(H))throw new Error(\"recovery id invalid\");if(c*bNe<F&&H>1)throw new Error(\"recovery id is ambiguous for h>1 curve\");let G=H===2||H===3?N+c:N;if(!i.isValid(G))throw new Error(\"recovery id 2 or 3 invalid\");let O=i.toBytes(G),j=e.fromBytes(Bu(vNe((H&1)===0),O)),te=a.inv(G),ne=V(ki(\"msgHash\",k)),ae=a.create(-ne*te),pe=a.create(B*te),ye=e.BASE.multiplyUnsafe(ae).add(j.multiplyUnsafe(pe));if(ye.is0())throw new Error(\"point at infinify\");return ye.assertValidity(),ye}hasHighS(){return R(this.s)}toBytes(k=x){if(Wle(k),k===\"der\")return MA(px.hexFromSig(this));let F=a.toBytes(this.r),N=a.toBytes(this.s);if(k===\"recovered\"){if(this.recovery==null)throw new Error(\"recovery bit must be present\");return Bu(Uint8Array.of(this.recovery),F,N)}return Bu(F,N)}toHex(k){return nm(this.toBytes(k))}assertValidity(){}static fromCompact(k){return P.fromBytes(ki(\"sig\",k),\"compact\")}static fromDER(k){return P.fromBytes(ki(\"sig\",k),\"der\")}normalizeS(){return this.hasHighS()?new P(this.r,a.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes(\"der\")}toDERHex(){return nm(this.toBytes(\"der\"))}toCompactRawBytes(){return this.toBytes(\"compact\")}toCompactHex(){return nm(this.toBytes(\"compact\"))}}let z=n.bits2int||function(k){if(k.length>8192)throw new Error(\"input is too large\");let F=w6(k),N=k.length*8-u;return N>0?F>>BigInt(N):F},V=n.bits2int_modN||function(k){return a.create(z(k))},Q=ux(u);function $(T){return RO(\"num < 2^\"+u,T,hx,Q),a.toBytes(T)}function oe(T,k){return mm(T,void 0,\"message\"),k?mm(t(T),void 0,\"prehashed message\"):T}function J(T,k,F){if([\"recovered\",\"canonical\"].some(ae=>ae in F))throw new Error(\"sign() legacy options not supported\");let{lowS:N,prehash:B,extraEntropy:H}=jle(F,v);T=oe(T,B);let W=V(T),G=zO(a,k),O=[$(G),$(W)];if(H!=null&&H!==!1){let ae=H===!0?r(y.secretKey):H;O.push(ki(\"extraEntropy\",ae))}let j=Bu(...O),te=W;function ne(ae){let pe=z(ae);if(!a.isValidNot0(pe))return;let ye=a.inv(pe),ve=e.BASE.multiply(pe).toAffine(),xe=a.create(ve.x);if(xe===hx)return;let De=a.create(ye*a.create(te+xe*G));if(De===hx)return;let Ge=(ve.x===xe?0:2)|Number(ve.y&jO),gt=De;return N&&R(De)&&(gt=a.neg(De),Ge^=1),new P(xe,gt,Ge)}return{seed:j,k2sig:ne}}function re(T,k,F={}){T=ki(\"message\",T);let{seed:N,k2sig:B}=J(T,k,F);return ule(t.outputLen,a.BYTES,o)(N,B)}function q(T){let k,F=typeof T==\"string\"||Bb(T),N=!F&&T!==null&&typeof T==\"object\"&&typeof T.r==\"bigint\"&&typeof T.s==\"bigint\";if(!F&&!N)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");if(N)k=new P(T.r,T.s);else if(F){try{k=P.fromBytes(ki(\"sig\",T),\"der\")}catch(B){if(!(B instanceof px.Err))throw B}if(!k)try{k=P.fromBytes(ki(\"sig\",T),\"compact\")}catch{return!1}}return k||!1}function K(T,k,F,N={}){let{lowS:B,prehash:H,format:W}=jle(N,v);if(F=ki(\"publicKey\",F),k=oe(ki(\"message\",k),H),\"strict\"in N)throw new Error(\"options.strict was renamed to lowS\");let G=W===void 0?q(T):P.fromBytes(ki(\"sig\",T),W);if(G===!1)return!1;try{let O=e.fromBytes(F);if(B&&G.hasHighS())return!1;let{r:j,s:te}=G,ne=V(k),ae=a.inv(te),pe=a.create(ne*ae),ye=a.create(j*ae),ve=e.BASE.multiplyUnsafe(pe).add(O.multiplyUnsafe(ye));return ve.is0()?!1:a.create(ve.x)===j}catch{return!1}}function U(T,k,F={}){let{prehash:N}=jle(F,v);return k=oe(k,N),P.fromBytes(T,\"recovered\").recoverPublicKey(k).toBytes()}return Object.freeze({keygen:d,getPublicKey:p,getSharedSecret:h,utils:g,lengths:y,Point:e,sign:re,verify:K,recoverPublicKey:U,Signature:P,hash:t})}function Kvt(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(a=>Math.ceil(a/2)))):void 0,o=Ll(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),i={Fp:n,Fn:o,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function Yvt(e){let{CURVE:t,curveOpts:n}=Kvt(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function Zvt(e,t){let n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,AK(n.Fn.ORDER,n.Fn.BITS))})}function xNe(e){let{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:o}=Yvt(e),i=Vvt(t,n),a=qvt(i,r,o);return Zvt(e,a)}var yNe,Vle,px,hx,jO,bNe,TK,Wvt,ENe=Z(()=>{f();ise();I0();E6();SK();C6();yNe=(e,t)=>(e+(e>=0?t:-t)/bNe)/t;Vle=class extends Error{constructor(t=\"\"){super(t)}},px={Err:Vle,_tlv:{encode:(e,t)=>{let{Err:n}=px;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length&1)throw new n(\"tlv.encode: unpadded data\");let r=t.length/2,o=CO(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");let i=r>127?CO(o.length/2|128):\"\";return CO(e)+i+o+t},decode(e,t){let{Err:n}=px,r=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[r++]!==e)throw new n(\"tlv.decode: wrong tlv\");let o=t[r++],i=!!(o&128),a=0;if(!i)a=o;else{let u=o&127;if(!u)throw new n(\"tlv.decode(long): indefinite length not supported\");if(u>4)throw new n(\"tlv.decode(long): byte length is too big\");let d=t.subarray(r,r+u);if(d.length!==u)throw new n(\"tlv.decode: length bytes not complete\");if(d[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(let p of d)a=a<<8|p;if(r+=u,a<128)throw new n(\"tlv.decode(long): not minimal encoding\")}let c=t.subarray(r,r+a);if(c.length!==a)throw new n(\"tlv.decode: wrong value length\");return{v:c,l:t.subarray(r+a)}}},_int:{encode(e){let{Err:t}=px;if(e<hx)throw new t(\"integer: negative integers are not allowed\");let n=CO(e);if(Number.parseInt(n[0],16)&8&&(n=\"00\"+n),n.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(e){let{Err:t}=px;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return w6(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=px,o=ki(\"signature\",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:c,l:u}=r.decode(2,i),{v:d,l:p}=r.decode(2,u);if(p.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:t,_int:n}=px,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}},hx=BigInt(0),jO=BigInt(1),bNe=BigInt(2),TK=BigInt(3),Wvt=BigInt(4)});function WO(e,t){let n=r=>xNe({...e,hash:r});return{...n(t),create:n}}var Gle=Z(()=>{f();ENe();});function Jvt(e){let t=Kle.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=Xa(p,n,t)*p%t,g=Xa(h,n,t)*p%t,y=Xa(g,ANe,t)*d%t,v=Xa(y,o,t)*y%t,x=Xa(v,i,t)*v%t,R=Xa(x,c,t)*x%t,S=Xa(R,u,t)*R%t,M=Xa(S,c,t)*x%t,P=Xa(M,n,t)*p%t,z=Xa(P,a,t)*v%t,V=Xa(z,r,t)*d%t,Q=Xa(V,ANe,t);if(!qle.eql(qle.sqr(Q),e))throw new Error(\"Cannot find square root\");return Q}var Kle,Qvt,ANe,qle,L_,Yle=Z(()=>{f();mI();Gle();C6();Kle={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),n:BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(\"0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\"),Gy:BigInt(\"0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\")},Qvt={beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),basises:[[BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),-BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\")],[BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\")]]},ANe=BigInt(2);qle=Ll(Kle.p,{sqrt:Jvt}),L_=WO({...Kle,Fp:qle,lowS:!0,endo:Qvt},Uy)});var eg={};qa(eg,{InvalidRError:()=>RK,InvalidSError:()=>IK,InvalidSerializedSizeError:()=>CK,InvalidVError:()=>OK,InvalidYParityError:()=>I6,MissingPropertiesError:()=>VO,assert:()=>kK,extract:()=>Xvt,from:()=>Zle,fromBytes:()=>_Ne,fromDerBytes:()=>$vt,fromDerHex:()=>SNe,fromHex:()=>O6,fromLegacy:()=>TNe,fromRpc:()=>CNe,fromTuple:()=>ewt,toBytes:()=>twt,toDerBytes:()=>nwt,toDerHex:()=>rwt,toHex:()=>RNe,toLegacy:()=>owt,toRpc:()=>iwt,toTuple:()=>awt,vToYParity:()=>NK,validate:()=>swt,yParityToV:()=>Qle});function kK(e,t={}){let{recovered:n}=t;if(typeof e.r>\"u\")throw new VO({signature:e});if(typeof e.s>\"u\")throw new VO({signature:e});if(n&&typeof e.yParity>\"u\")throw new VO({signature:e});if(e.r<0n||e.r>Ile)throw new RK({value:e.r});if(e.s<0n||e.s>Ile)throw new IK({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new I6({value:e.yParity})}function _Ne(e){return O6(Ds(e))}function O6(e){if(e.length!==130&&e.length!==132)throw new CK({signature:e});let t=BigInt($0(e,0,32)),n=BigInt($0(e,32,64)),r=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return NK(o)}catch{throw new I6({value:o})}})();return typeof r>\"u\"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Xvt(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return Zle(e)}function Zle(e){let t=typeof e==\"string\"?O6(e):e instanceof Uint8Array?_Ne(e):typeof e.r==\"string\"?CNe(e):e.v?TNe(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return kK(t),t}function $vt(e){return SNe(Ds(e))}function SNe(e){let{r:t,s:n}=L_.Signature.fromDER(kO(e).slice(2));return{r:t,s:n}}function TNe(e){return{r:e.r,s:e.s,yParity:NK(e.v)}}function CNe(e){let t=(()=>{let n=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if(typeof n==\"number\"&&typeof r!=\"number\"&&(r=NK(n)),typeof r!=\"number\")throw new I6({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function ewt(e){let[t,n,r]=e;return Zle({r:n===\"0x\"?0n:BigInt(n),s:r===\"0x\"?0n:BigInt(r),yParity:t===\"0x\"?0:Number(t)})}function twt(e){return zu(RNe(e))}function RNe(e){kK(e);let t=e.r,n=e.s;return i1(Hc(t,{size:32}),Hc(n,{size:32}),typeof e.yParity==\"number\"?Hc(Qle(e.yParity),{size:1}):\"0x\")}function nwt(e){return new L_.Signature(e.r,e.s).toDERRawBytes()}function rwt(e){return`0x${new L_.Signature(e.r,e.s).toDERHex()}`}function owt(e){return{r:e.r,s:e.s,v:Qle(e.yParity)}}function iwt(e){let{r:t,s:n,yParity:r}=e;return{r:Hc(t,{size:32}),s:Hc(n,{size:32}),yParity:r===0?\"0x0\":\"0x1\"}}function awt(e){let{r:t,s:n,yParity:r}=e;return[r?\"0x01\":\"0x\",t===0n?\"0x\":hL(Hc(t)),n===0n?\"0x\":hL(Hc(n))]}function swt(e,t={}){try{return kK(e,t),!0}catch{return!1}}function NK(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new OK({value:e})}function Qle(e){if(e===0)return 27;if(e===1)return 28;throw new I6({value:e})}var CK,VO,RK,IK,I6,OK,PK=Z(()=>{f();Yle();X0();sx();lv();IO();EK();CK=class extends Ir{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Ff(kO(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},VO=class extends Ir{constructor({signature:t}){super(`Signature \\\\`${D_(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},RK=class extends Ir{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},IK=class extends Ir{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},I6=class extends Ir{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},OK=class extends Ir{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});var INe=Z(()=>{f()});var ONe=Z(()=>{f()});function fwt(e,t={}){let{pad:n=!0,url:r=!1}=t,o=new Uint8Array(Math.ceil(e.length/3)*4);for(let u=0,d=0;d<e.length;u+=4,d+=3){let p=(e[d]<<16)+(e[d+1]<<8)+(e[d+2]|0);o[u]=MK[p>>18],o[u+1]=MK[p>>12&63],o[u+2]=MK[p>>6&63],o[u+3]=MK[p&63]}let i=e.length%3,a=Math.floor(e.length/3)*4+(i&&i+1),c=dwt.decode(new Uint8Array(o.buffer,0,a));return n&&i===1&&(c+=\"==\"),n&&i===2&&(c+=\"=\"),r&&(c=c.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\")),c}function kNe(e,t={}){return fwt(zu(e),t)}function LK(e){let t=e.replace(/=+$/,\"\"),n=t.length,r=new Uint8Array(n+3);lwt.encodeInto(t+\"===\",r);for(let i=0,a=0;i<t.length;i+=4,a+=3){let c=(DK[r[i]]<<18)+(DK[r[i+1]]<<12)+(DK[r[i+2]]<<6)+DK[r[i+3]];r[a]=c>>16,r[a+1]=c>>8&255,r[a+2]=c&255}let o=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(r.buffer,0,o)}var lwt,dwt,MK,DK,Jle=Z(()=>{f();X0();lwt=new TextEncoder,dwt=new TextDecoder,MK=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),DK={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});var PNe=Z(()=>{f()});var MNe=Z(()=>{f()});var DNe,mwt,LNe,gwt,yWn,BNe=Z(()=>{f();DNe=6,mwt=32,LNe=4096,gwt=mwt*LNe,yWn=gwt*DNe-1-1*LNe*DNe});var UNe=Z(()=>{f()});var FNe=Z(()=>{f()});var HNe=Z(()=>{f()});var zNe=Z(()=>{f()});var jNe=Z(()=>{f()});var WNe=Z(()=>{f()});var VNe=Z(()=>{f()});var GNe=Z(()=>{f()});function Cwt(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),o=1,i=[0,1];for(let V=1;V<r;V++)i.push(o+=n());let a=n(),c=t;t+=a;let u=0,d=0;function p(){return u==0&&(d=d<<8|e[t++],u=8),d>>--u&1}let h=31,g=2**h,y=g>>>1,v=y>>1,x=g-1,R=0;for(let V=0;V<h;V++)R=R<<1|p();let S=[],M=0,P=g;for(;;){let V=Math.floor(((R-M+1)*o-1)/P),Q=0,$=r;for(;$-Q>1;){let re=Q+$>>>1;V<i[re]?$=re:Q=re}if(Q==0)break;S.push(Q);let oe=M+Math.floor(P*i[Q]/o),J=M+Math.floor(P*i[Q+1]/o)-1;for(;((oe^J)&y)==0;)R=R<<1&x|p(),oe=oe<<1&x,J=J<<1&x|1;for(;oe&~J&v;)R=R&y|R<<1&x>>>1|p(),oe=oe<<1^y,J=(J^y)<<1|y|1;M=oe,P=1+J-oe}let z=r-4;return S.map(V=>{switch(V-z){case 3:return z+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return z+256+(e[c++]<<8|e[c++]);case 1:return z+e[c++];default:return V-1}})}function Rwt(e){let t=0;return()=>e[t++]}function JNe(e){return Rwt(Cwt(Iwt(e)))}function Iwt(e){let t=[];[...\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"].forEach((o,i)=>t[o.charCodeAt(0)]=i);let n=e.length,r=new Uint8Array(6*n>>3);for(let o=0,i=0,a=0,c=0;o<n;o++)c=c<<6|t[e.charCodeAt(o)],a+=6,a>=8&&(r[i++]=c>>(a-=8));return r}function Owt(e){return e&1?~e>>1:e>>1}function kwt(e,t){let n=Array(e);for(let r=0,o=0;r<e;r++)n[r]=o+=Owt(t());return n}function xL(e,t=0){let n=[];for(;;){let r=e(),o=e();if(!o)break;t+=r;for(let i=0;i<o;i++)n.push(t+i);t+=o+1}return n}function XNe(e){return EL(()=>{let t=xL(e);if(t.length)return t})}function $Ne(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(Nwt(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(Pwt(n,e))}return t.flat()}function EL(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function e7e(e,t,n){let r=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)kwt(e,n).forEach((i,a)=>r[a].push(i));return r}function Nwt(e,t){let n=1+t(),r=t(),o=EL(t);return e7e(o.length,1+e,t).flatMap((a,c)=>{let[u,...d]=a;return Array(o[c]).fill().map((p,h)=>{let g=h*r;return[u+h*n,d.map(y=>y+g)]})})}function Pwt(e,t){let n=1+t();return e7e(n,1+e,t).map(o=>[o[0],o.slice(1)])}function Mwt(e){let t=[],n=xL(e);return o(r([]),[]),t;function r(i){let a=e(),c=EL(()=>{let u=xL(e).map(d=>n[d]);if(u.length)return r(u)});return{S:a,B:c,Q:i}}function o({S:i,B:a},c,u){if(!(i&4&&u===c[c.length-1])){i&2&&(u=c[c.length-1]),i&1&&t.push(c);for(let d of a)for(let p of d.Q)o(d,[...c,p],u)}}}function Dwt(e){return e.toString(16).toUpperCase().padStart(2,\"0\")}function t7e(e){return`{${Dwt(e)}}`}function Lwt(e){let t=[];for(let n=0,r=e.length;n<r;){let o=e.codePointAt(n);n+=o<65536?1:2,t.push(o)}return t}function KO(e){let n=e.length;if(n<4096)return String.fromCodePoint(...e);let r=[];for(let o=0;o<n;)r.push(String.fromCodePoint(...e.slice(o,o+=4096)));return r.join(\"\")}function Bwt(e,t){let n=e.length,r=n-t.length;for(let o=0;r==0&&o<n;o++)r=e[o]-t[o];return r}function vL(e){return e>>24&255}function o7e(e){return e&16777215}function Vwt(){let e=JNe(Uwt);$le=new Map(XNe(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),YNe=new Set(xL(e)),ede=new Map,BK=new Map;for(let[t,n]of $Ne(e)){if(!YNe.has(t)&&n.length==2){let[r,o]=n,i=BK.get(r);i||(i=new Map,BK.set(r,i)),i.set(o,t)}ede.set(t,n.reverse())}}function i7e(e){return e>=AL&&e<Hwt}function Gwt(e,t){if(e>=UK&&e<zwt&&t>=FK&&t<jwt)return AL+(e-UK)*zK+(t-FK)*YO;if(i7e(e)&&t>HK&&t<Wwt&&(e-AL)%YO==0)return e+(t-HK);{let n=BK.get(e);return n&&(n=n.get(t),n)?n:-1}}function a7e(e){$le||Vwt();let t=[],n=[],r=!1;function o(i){let a=$le.get(i);a&&(r=!0,i|=a),t.push(i)}for(let i of e)for(;;){if(i<128)t.push(i);else if(i7e(i)){let a=i-AL,c=a/zK|0,u=a%zK/YO|0,d=a%YO;o(UK+c),o(FK+u),d>0&&o(HK+d)}else{let a=ede.get(i);a?n.push(...a):o(i)}if(!n.length)break;i=n.pop()}if(r&&t.length>1){let i=vL(t[0]);for(let a=1;a<t.length;a++){let c=vL(t[a]);if(c==0||i<=c){i=c;continue}let u=a-1;for(;;){let d=t[u+1];if(t[u+1]=t[u],t[u]=d,!u||(i=vL(t[--u]),i<=c))break}i=vL(t[a])}}return t}function qwt(e){let t=[],n=[],r=-1,o=0;for(let i of e){let a=vL(i),c=o7e(i);if(r==-1)a==0?r=c:t.push(c);else if(o>0&&o>=a)a==0?(t.push(r,...n),n.length=0,r=c):n.push(c),o=a;else{let u=Gwt(r,c);u>=0?r=u:o==0&&a==0?(t.push(r),r=c):(n.push(c),o=a)}}return r>=0&&t.push(r,...n),t}function s7e(e){return a7e(e).map(o7e)}function Kwt(e){return qwt(a7e(e))}function _L(e,t){return e.P.has(t)||e.Q.has(t)}function ode(){if(nde)return;let e=JNe(Twt),t=()=>xL(e),n=()=>new Set(t()),r=(p,h)=>h.forEach(g=>p.add(g));nde=new Map($Ne(e)),d7e=n(),N6=t(),WK=new Set(t().map(p=>N6[p])),N6=new Set(N6),f7e=n(),Ywt=n();let o=XNe(e),i=e(),a=()=>{let p=new Set;return t().forEach(h=>r(p,o[h])),r(p,t()),p};qO=EL(p=>{let h=EL(e).map(g=>g+96);if(h.length){let g=p>=i;h[0]-=32,h=KO(h),g&&(h=`Restricted[${h}]`);let y=a(),v=a(),x=!e();return{N:h,P:y,Q:v,M:x,R:g}}}),Xle=n(),GO=new Map;let c=t().concat(jK(Xle)).sort((p,h)=>p-h);c.forEach((p,h)=>{let g=e(),y=c[h]=g?c[h-g]:{V:[],M:new Map};y.V.push(p),Xle.has(p)||GO.set(p,y)});for(let{V:p,M:h}of new Set(GO.values())){let g=[];for(let v of p){let x=qO.filter(S=>_L(S,v)),R=g.find(({G:S})=>x.some(M=>S.has(M)));R||(R={G:new Set,V:[]},g.push(R)),R.V.push(v),r(R.G,x)}let y=g.flatMap(v=>jK(v.G));for(let{G:v,V:x}of g){let R=new Set(y.filter(S=>!v.has(S)));for(let S of x)h.set(S,R)}}k6=new Set;let u=new Set,d=p=>k6.has(p)?u.add(p):k6.add(p);for(let p of qO){for(let h of p.P)d(h);for(let h of p.Q)d(h)}for(let p of k6)!GO.has(p)&&!u.has(p)&&GO.set(p,l7e);r(k6,s7e(k6)),QNe=Mwt(e).map(p=>tde.from(p)).sort(Bwt),rde=new Map;for(let p of QNe){let h=[rde];for(let g of p){let y=h.map(v=>{let x=v.get(g);return x||(x=new Map,v.set(g,x)),x});g===u7e?h.push(...y):h=y}for(let g of h)g.V=p}}function ide(e){return(p7e(e)?\"\":`${ade(VK([e]))} `)+t7e(e)}function ade(e){return`\"${e}\"\\\\u200E`}function Zwt(e){if(e.length>=4&&e[2]==ZNe&&e[3]==ZNe)throw new Error(`invalid label extension: \"${KO(e.slice(0,4))}\"`)}function Qwt(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error(\"underscore allowed only at start\")}function Jwt(e){let t=e[0],n=qNe.get(t);if(n)throw wL(`leading ${n}`);let r=e.length,o=-1;for(let i=1;i<r;i++){t=e[i];let a=qNe.get(t);if(a){if(o==i)throw wL(`${n} + ${a}`);o=i+1,n=a}}if(o==r)throw wL(`trailing ${n}`)}function VK(e,t=1/0,n=t7e){let r=[];Xwt(e[0])&&r.push(\"\\\\u25CC\"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,i=e.length;for(let a=0;a<i;a++){let c=e[a];p7e(c)&&(r.push(KO(e.slice(o,a))),r.push(n(c)),o=a+1)}return r.push(KO(e.slice(o,i))),r.join(\"\")}function Xwt(e,t){return ode(),t?WK.has(e):N6.has(e)}function p7e(e){return ode(),f7e.has(e)}function sde(e){return n2t($wt(e,Kwt,i2t))}function $wt(e,t,n){if(!e)return[];ode();let r=0;return e.split(c7e).map(o=>{let i=Lwt(o),a={input:i,offset:r};r+=i.length+1;try{let c=a.tokens=o2t(i,t,n),u=c.length,d;if(!u)throw new Error(\"empty label\");let p=a.output=c.flat();if(Qwt(p),!(a.emoji=u>1||c[0].is_emoji)&&p.every(g=>g<128))Zwt(p),d=\"ASCII\";else{let g=c.flatMap(y=>y.is_emoji?[]:y);if(!g.length)d=\"Emoji\";else{if(N6.has(p[0]))throw wL(\"leading combining mark\");for(let x=1;x<u;x++){let R=c[x];if(!R.is_emoji&&N6.has(R[0]))throw wL(`emoji + combining mark: \"${KO(c[x-1])} + ${VK([R[0]])}\"`)}Jwt(p);let y=jK(new Set(g)),[v]=t2t(y);r2t(v,g),e2t(v,y),d=v.N}}a.type=d}catch(c){a.error=c}return a})}function e2t(e,t){let n,r=[];for(let o of t){let i=GO.get(o);if(i===l7e)return;if(i){let a=i.M.get(o);if(n=n?n.filter(c=>a.has(c)):jK(a),!n.length)return}else r.push(o)}if(n){for(let o of n)if(r.every(i=>_L(o,i)))throw new Error(`whole-script confusable: ${e.N}/${o.N}`)}}function t2t(e){let t=qO;for(let n of e){let r=t.filter(o=>_L(o,n));if(!r.length)throw qO.some(o=>_L(o,n))?m7e(t[0],n):h7e(n);if(t=r,r.length==1)break}return t}function n2t(e){return e.map(({input:t,error:n,output:r})=>{if(n){let o=n.message;throw new Error(e.length==1?o:`Invalid label ${ade(VK(t,63))}: ${o}`)}return KO(r)}).join(c7e)}function h7e(e){return new Error(`disallowed character: ${ide(e)}`)}function m7e(e,t){let n=ide(t),r=qO.find(o=>o.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function wL(e){return new Error(`illegal placement: ${e}`)}function r2t(e,t){for(let n of t)if(!_L(e,n))throw m7e(e,n);if(e.M){let n=s7e(t);for(let r=1,o=n.length;r<o;r++)if(WK.has(n[r])){let i=r+1;for(let a;i<o&&WK.has(a=n[i]);i++)for(let c=r;c<i;c++)if(n[c]==a)throw new Error(`duplicate non-spacing marks: ${ide(a)}`);if(i-r>KNe)throw new Error(`excessive non-spacing marks: ${ade(VK(n.slice(r-1,i)))} (${i-r}/${KNe})`);r=i}}}function o2t(e,t,n){let r=[],o=[];for(e=e.slice().reverse();e.length;){let i=a2t(e);if(i)o.length&&(r.push(t(o)),o=[]),r.push(n(i));else{let a=e.pop();if(k6.has(a))o.push(a);else{let c=nde.get(a);if(c)o.push(...c);else if(!d7e.has(a))throw h7e(a)}}}return o.length&&r.push(t(o)),r}function i2t(e){return e.filter(t=>t!=u7e)}function a2t(e,t){let n=rde,r,o=e.length;for(;o&&(n=n.get(e[--o]),!!n);){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(o).reverse()),e.length=o)}return r}var Twt,qNe,KNe,Uwt,AL,UK,FK,HK,n7e,r7e,YO,zK,Fwt,Hwt,zwt,jwt,Wwt,$le,YNe,ede,BK,ZNe,c7e,u7e,l7e,jK,tde,nde,d7e,N6,WK,f7e,Ywt,qO,Xle,GO,k6,QNe,rde,cde=Z(()=>{f();Twt=\"AEkU4AngDVgB0QKRAQYBOwDqATEAnwDbAIUApABsAOAAbwCRAEYAiQBPAHYAPgA+ACsANwAlAGMAHwAvACsAJQAWAC8AGwAiACIALwAUACsAEQAiAAsAGwARABcAGAA6ACkALAAsADUAFgAsABEAHQAhAA8AGwAdABUAFgAZAA0ADQAXABAAGQAUABIEqgYJAR4UFjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqfu75wzbIM8IuykDsRQ7APcta6MAoX0YABcEJdcWAR0AuRnNBPoJIEw3CZcJiB4bVllM44NCABMADAAVAA5rVAAhAA4AR+4V2D3zOVjKleYuChAdX01YPewAEwAMABUADmsgXECXAMPrABsAOQzFABsVW6n7Adq4HB0FWwXiAtCfAsSwCkwcpGUUcxptTPUAuw1nAuEACy00iRfJkQKBewETGwC9DWcC4QALLQFIUCWRTAoDLfsFMgnXaRetAddDAEkrEncCMRYhAusnuTdrADnhAfUlAMcOy7UBG2OBALEFAAUAitNJBRvDHwcXAKgn0QGhKy0DmwBnAQoZPu03dAQYFwCqAccCIQDTKxJzOvNQsAWQOncnNUgF+icFWQVYr7gFaTtdQhI6WEGXe5NmX6H4CxMDxQcl8XcjBKNLAlNTAnUbqycBj6OlNVsDRRcEg2EJANEGqz8vIwcpAjldAGsBYR9xAIMdGQCVAUm3ACdpFwGvxQM3LSFDUwFvWQZlAmUA8UkXAykBBQBJQQCrAF0AcwArtQYH8+8ZjX8ACSEAKQCzG0cB0QHbBwsxl3iB6AAKABEANAA9ADgzd3nTwBBfEFwBTQlMbDoVCwKsD6YL5REVDNEqy9PYADSpB+sDUwfrA1MDUwfrB+sDUwfrA1MDUwNTA1McCvAa08AQXw9IBG0FjgWLBNYIgyZJEYEHKAjSVA10HhxHA0UA/CMlSRw7kzMLJUJMDE0DB/w2QmynfTgDRzGrVPWQogPLMk85bAEecRKgACoPcxw1tU5+ekdxoApLT661f0liTmcCvjqoP/gKIQmTb7t3TgY9EBcnoRDzDC8BsQE3DelL1ATtBjcExR95GRUPyZWYCKEt2QzpJt8unYBWI/EqfwXpS/A82QtJUWQPVQthCd86X4FKAx0BCSKHCtkNNQhpEO8KxWcN4RFBBzUD0UmWAKEG/QsNHTEVsSYMYqgLBTlzBvca8guLJqsTJXr4Bc8aHQZJASUa+wDLLuOFrFotXBhPWwX/CyEjwxSkUBwNIUCzeEQaFwcRJaUCjUNsSoNRMh6PIfI8OQ1iLg9ReAfxPAEZSwt9PJpGp0UKEc4+iT1EIkVMKAQxeywrJ4cJyw+BDLV8bgFVCR0JrQxtEy0REzfBCDUHFSmXICcRCB1GkWCWBPObA+8TzQMHBTsJPQcPA7EcKRMqFSUFCYEg0wLvNtEurwKLVnwBEwXHDyEf2xBMR9wO5QiXAmEDfyXnACkVHQATIpcIP18AW4/UUwEuxwjDamgjcANjFONdEW8HjQ5TB6McLxW7HN1wxF4HhgQon6sJVwFxCZUBWwTfCAU1V4ycID1nT4tUGJcgXUE7XfgCLQxhFZtEuYd0AocPZxIXATEBbwc1DP0CcxHpEWcQkQjnhgA1sTP0OiEESyF/IA0KIwNLbMoLIyb1DPRlAZ8SXgMINDl36menYLIgF/kHFTLBQVwh7QuOT8kMmBq9GD5UKhngB7sD7xrvJ+ZBUwX7A58POkkz6gS5C2UIhwk7AEUOnxMH0xhmCm2MzAEthwGzlQNTjX8Ca4sGMwcHAGMHgwV14QAZAqMInwABAMsDUwA1AqkHmQAVAIE9ATkDIysBHeECiwOPCC3HAZErAe8lBBe/DBEA8zNuRgLDrQKAZmaeBdlUAooCRTEBSSEEAUpDTQOrbd0A1wBHBg/bQwERp0bHFt8/AdtrJwDDAPcAATEHAT0ByQHvaQCzAVsLLQmer7EBSeUlAH8AEWcB0wKFANkAMQB77QFPAEkFVfUFzwJLRQENLRQnU10BtwMbAS8BCQB1BseJocUDGwRpB88CEBcV3QLvKgexAyLbE8lCwQK92lEAMhIKNAq1CrQfX/NcLwItbj1MAAofpD7DP0oFTTtPO1Q7TztUO087VDtPO1Q7TztUA5O73rveCmhfQWHnDKIN0ETEOkUT12BNYC4TxC2zFL0VyiVSGTkauCcBJeBVBQ8ALc9mLAgoNHEXuAA7KWSDPWOCHiwKRxzjU41U9C0XAK1LnjOrDagbEUQ8BUN16WImFgoKHgJkfQJiPldJq1c3HAKh8wJolAJmBQKfgDgXBwJmNwJmIgRqBHsDfw8Dfo45AjlzEzl+Oh8fAmwZAjIyOAYCbcMCbarrhi9jQScBYwDaAN0ARgEHlAyJAPoHvgAJsQJ3KwJ2njsCeUc/Ani2GVjXRapG0wJ8OwJ6xAJ9BQJ87AVVBRxH/Eh5XyAAJxFJVEpXERNKyALQ/QLQyEsjA4hLA4fiRMGRLgLynVz/AwOqS8pMKSHLTUhNqwKLOwKK1L0XAxk/YwGzAo4zAo5YPJN9Ao7VAo5YdFGwUzEGUtBUgQKT9wKTCADlABhVGlWrVcwCLBcpkYIy3XhiRTc1ApebAu+uWB2kAFUhApaLApZ4mAClWahaBX1JADcClrEClkpcQFzNApnHAplgXMZdAxUCnJc5vjqZApwSAp+XAp60hgAZCy0mCwKd7QKejgCxOWEwYesCns8CoGoBpQKemxsCnkqhY8RkIyEnAierAiZ6AqD3AqBIAqLZAqHAAqYrAqXKAqf7AHkCp+5oeGit/0VqGGrNAqzfAqyqAq1jAqz+AlcZAlXYArHd0wMfSmyTArK5CQKy5BNs3G1fbURbAyXJArZYNztujAMpQQK4WgK5QxECuSZzcDJw3QK9FQK71nCSAzINAr6Ecf4DM20CvhZzHnNLAsPHAsMAc350RzFBdNwDPKMDPJYDPbsCxXgCxkMCxgyFAshlTQLIQALJSwLJKgJkmQLdznh1XXiqeSFLzAMYn2b+AmHwGe+VIHsHXo5etw0Cz2cCz2grR0/O7w+bAMKpAs9vASXmA04OfkcBAtwjAtuGAtJLA1JYA1NbAP0DVYiAhTvHEulcQYIYgs+CyoOJAtrDAtnahAyERac4A4ahACsDZAqGbVX1AFEC32EC3rRvcwLiK+0QAfMsIwH0lwHyzoMC6+8C6Wx1Aur1AurgAPVDAbUC7oUC65iWppb/Au47A4XcmHVw3HGdAvL/AGUDjhKZjwL3DwORagOSgwL3lAL51QL4YpoYmqe3M5saA51/Av72ARcANZ8Yn68DBYkDpmYDptUAzcEDBmahhKIBBQMMRQELARsHaQZdtWMBALcEZ7sNhx6vCQATcTUAHwMvEkkDhXsBXyMdAIzrAB0A5p8Dm40IswYbn8EApwURu+kdPT4WeAVoNz5AK0IhQrRfcRFfvACWxQUyAJBMGZu5OyZgMhG6zw4vGMYYicn2BVcFWAVXBVgFYwVYBVcFWAVXBVgFVwVYBVcFWEYVCNeFZwICAgpkXukrBMkDsQYvu7sAuwSnuwDnQCkWsgVGPmk+cEI/QrZfdTdf6ABYETOrAIz+zGvL/KbnRno9JiMEKxYnNjV+bd9qwfEZwixpAWvXbjAXBV8FasnBybgIz0lbAAAACnxefYu+ADM/gQADFtEG5a0jBQCMwwsDAQ0A5WUdPSQfSkKxQrxBOCNfJ2A2JzgjCcE9CkQ/Qz54PoE+cD5xAolCvElCO1/LTk9qTQosa1QvagtuH1/gMzobCWebCmIjKzwdJkKrQrwrzAHL/F/JDh8uCQgJIn6d32o6LUoXyavJrAllwcvMCmBBXw/lEKMRAJONHUVCJRupbTnOOAozP0M+cEI/HAcKHUxHbFssLVrhvBIKfe0dK0I/HF0ISgkOM1RDQjcEO0OcLAqBGy1CPxv1CFMiIxgwMQAFj2HwXgpxZMlgC2AtI25DYBk5AhseYLMGAmsQZU5gTREBZOdgFWCVYH1gs2BLYJFoFhcGtQ7cVam8WgtDFqsBuyvNwQIfFQAcAx4BeQJsLzCVUoABigq4RxoA5CN0jgrKDaZN6gGbAoecTwVAXwD39wkANBZXDAulDCQfuq9HAE8MNAAVE58rggh6AtILS2URGwDYTgZ1BAoeWgAxALa4AZonCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cKAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4AZonLTsOzgKQGHtQu1jIdHKO16WbDvWZFT0b7AEpEFwSBg8bAccJOhCTBRArDDYLABEAs84BAgCkAOEAmIIABWtXLwAUAFsbxi5sdioNwRACOyQz0+EcHgsbfQJ7Ls6hHATBCqrxbAA3OS0Opge7CQAQOi7OERkAfavaHA+7GkcczaF3HgE9Kl8cAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvC7OoSoJPA67BZgBG2sKD4sa4QHDARELuxY7AKALOxC7BBige9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewAHuwG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOwAuuwLrDlaouwAeuwJVICp/AAG7AALjAAg7FTwVuwAbuwG9KOClWw6/xAD0AGj7L7ZtvgNIo7vIqDsDAbuVJ0sAAlsACrsEAOfdGbsIGnsIoQUK/3AA37unuxjbGruji3lyBvupm4MAErsGGwsBvAAAhgBtuwYAC7unOwEaO7oIoZzKAbsL7QfAqTsA4XsBvwAA5QAVuwAG+wAJuwBpiwAauwAOuwIYu45pFfsAAVsADmsALkseAAa7ABe7CCEADUoBwgC3ryYBwAAAtAAOmwG+J+QAsloAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAAFDsAEWsAD4sADesADbsAGQsGFhsAFTsAbpsWswG7ALoAEzsDAGkrCgDhSwACOwAEUgAXewUbAAbQABi7AAv7AF+7AGv7AOSLAbsAF3YBvAABcguhAAVKHgF7KFIAOUUA/gcNDHIAKCpwAaQFCF4BvF4jDAkHb0tsXyqJHzwUYi02A6EKtAHYABYC0QNuAXZyR1IUIQNPAhU+ASwGA3NGvHtSekAAKQAxAfsAUwrbAHuQLAErAHblDREyRgFKAFcFAAFQAQeKzAB4OwQgpQBaANYVAJVoNx+LAM1rsQDP1BYIwnVzGxhWHQnRAYiQqyJTU01IEjzCifkAfxw3QCkr4BGXTwByASksMClCGQ8DMFUE98XuAEtl3ABqAnECPxF6Osd4LjXVBgUAEBsdCggMKgQfHSlOU04IuboAChLNACYAARoAhgCJAI41AO4AtADgAJ08ALsAqwCmAKEA8gCfANMAnADrAQwBBwDAAHkAWgDLAM0BBwDXAOsAiACiATUA4wDYANUDAQcqM9TU1NS2wNzN0M5DMhcBTQFXL0cBVQFkAWMBVgFHS0NFaA0BThUHCAMyNgwHACINJCYpLDg6Oj09PT4/DkAeUVFRUVNTUlMpVFVXVlYcXWFhYGJhI2ZocG9ycnJycnJ0dHR0dHR0dHR0dHZ2d3Z1WwBA7ABFAJYAdAAuAGLyAIoAUwBTADMCc+kAh//y8gBgAI/sAJsASwBeAGD5+aoAgQCBAGUAUgCtAB4AsgB/AjwCPwD4AOMA+gD6AOQA+wDlAOUA5ADiACkCdwFNATwBOgFQAToBOgE6ATUBNAE0ATQBGAFUDwArCAAATRcKFgMVFg4AigCSAKIASwBkGAItAHAAaQCRAxIDJCoDHkE+RykAiwJLAMMCUwKgALoCkgKSApICkgKSApIChwKSApICkgKSApICkgKRApEClAKcApMCkgKSApACkAKQApACjgKRAnEB0AKTApsCkgKSApEWeQsA+gUDpwJdAjYXAVAQNQLeEQorEwFKNxNNkQF3pDwBZVkA/wM9RwEAAJMpHhiPagApYABpAC4AiQOUzIvwroRaBborDsIRAZ3VdCoLBCMxbAEzWmwBsgDdfoB/foB+gYKCfoOGhH6FiIaAh4KIgol+in6LfoyKjX6Ofo+CkH6RfpJ+k36Ug5WIloKXftoC2WzhAtdsAIJsJGygAINsbARCBD8EQQREBEIESARFBEAERgRIBEcEQwRFBEgAlmZsAKMDh2wAtGYBBWwAyVFsbADPbAIMbAD2WmwA9gEZAPYA9AD0APUA9AN8XmzUhCNlvwD2APQA9AD1APQcbGwAiVpsAPYAiQEZAPYAiQLsAPYAiQN8XmzUhCNlvxxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN8XmzUhCNlvxxsbACJWmwBGQD2AIkA9gCJAuwA9gCJA3xebNSEI2W/HGwCQwE2bAJKATlsAkvBbGwCV2xsA54C7AOeA54DnwOfA58DnwN8XmzUhCNlvxxsbACJWmwBGQOeAIkDngCJAuwDngCJA3xebNSEI2W/HGwEN2wAiQQ4AIkGjTFtIC9s1m4DJmwA/QDGWgJsbABVWv4UMgJsbACJAmwAVAEAuV5sAmxebGwAiV5sAmxebD3YAEls1gJsbEZFNiJ9FGVAe8xvEZKvxVfKZszAVTBzYBH2d1iyUXEHH7twNw7eZF5JJRHI5EgaRr5D20/3dfONrFLSq5qSrrgd2CEUq722WBQ/LzpA+bx1oREI5xy4BDSZNun0ZWORUJqInZSyMaioyvfSI0l5uFDzbWaQ28/zdB0hwR4OQZ0/jn9ALSLNikjFYGfqR389qtFlhD3a6KdIh97rhZYpywuLc7o8ql5/X8KCbPU3L/QlmCowhRXhsGDvg6wUNprA9bM/49uxlAj7ZVy3ouEY/BgFXBNyK0TLrSjZWeJm/T4nz6QGLT3cJNtWRZVZTvIdtaxMMJRHgig9+S11LjBh7Inr06ykoch1U097Rw0hvgmOrydQyaWcEQDg0RavuMuT0zYabUZl1e33HNSK1oNUCS03eh+9C2EvF3fq9h+XBaAMFuoWeZf+mfZgL4HzyiKDIUtfNU4oFu0aE9qt3VA3U4D3fOSrAcYVnjG3cSkp1vhXZnp3JQm4JknKdBitO2NVnGCYQwU3YMWHWB87NEd+4AHuOKI8BSIH92reW0pfs+kWCTJxDCbRjFv8Cfc4/DSBYJScJYTeAEgg9wTEvcwd/QuHRHqGzAQ4fXf5FUI1lPrO+fvEcPl4JInM1z9AtBT2bL4QYEREe7KiSnnxTwtmAFjn8lqT3mND8qTktX2F16Ae9cakqJ6/pEQsHURqyqWlRMCzKXRKfCHT7sYHWx9/T/ugYTFY6iVN3Btm58ATJR5alYZybKMWojwOw3HbFn23NFyeLl7+Er82RchyYuBoGQ3j7SAWNxiYvp5U+Fq/DEzB9cG5DlJWsqkosRze92OVlCtQEYo1S1lF72Z8xWc4ld/+fFcfTEDTFb9d8tJGQ75dpJEvcWyGmGBiTbiWDdGOcw93Dmxq5ISUrmasygONfHLvhgo83HQZenbdBtSzBkvYrCEQ/xEDMhMZsN6gqplx5jGG9mSQLhM81UEdEeJ59sdNJDAFy/gPyJoKlwPZgB/MkC/kICLiCB8va+nCdO2ry4aDfkmPFpF/H/SGQ3LJ6aAv9dtJ8DniHtLOckZix0BVb0iR5V3LAp521LBSIi6AtV7r2ZB/hQEvAw54EFNOQcFnl1xGUIc67tqK1INNwD2n/RbwgzO9h45LM6VMuN8V1ZNIQ6t+Xy3lTqyVCD5kqLy/t3/b8MLbgDg8JIWDkSZ+LrGhhr+gYpH+pr1TnCUnZPjpUdw6bSL6MWVXoDDciQDWECwU2e6VEpfrcOBbrSOijqGkEIoJPbpmeJLkcwbvA0yWIixQVjo0HnYh7fji+Dfdq1mtV1lG2Zz9R7eFMHS+FK7nybutu2fwzDpFldO2pZBshsHJWaltn3PWOoGJpCT2jE8EHOuC6FkejNWcfsWCqNqMLP9xTwcWArj2EiiI7D+EaDi7/2cqHL1gPiF6C/J7aUo7RQqogPZ11WqbyP97nsoMxPOC78wZMF7B1Y0g7JNXJV/nN1m4xx8hbqWz07KSaqr5hE4icB326DMR/vUKX9LoNjle/ZWtbUhrTAcsdgrLlG5Ne8aiR0bS/2ZhpNOVVxavWIZsEM/rd68EB4vjbbD13NkMK1qvMk74vGbSkL7ULO0sZ9R6APSCo6KH+Xn98wEdw1bCPAnDTaBsD6sidAGN58uiH4a3ovG1KyZAu2XtyGgF/vgWKGxw9R1lfAVcfuYE71DHuxtTzfGZnHaDpDGWmfEq0N4GawE7yIkaoz8jcmVmzJe1ydM8q0p08YIxFcY1YcqQc1djWBEoNETDFcgk5waRftEJasPREkrV++N/TOKkERF1fCLrXS8DFGYGRBeECMQRNEs0ES3FzUtXCcNxpYEM3Uei6XodZruXUIRnn+UXf2b/r7n1vQutoi6WoIbW7svDNWBbUWcDUc7F9SJK3bvSy9KIqhgyJHoW2Kpvv0J4ob14HFXGWWVsYXJzjwxS+SADShTgCRjhoDgjAYRGxwJ1Vonw+cpnCKhz8NQPrb0SFxHIRbmG95Q2hlC4mDxvPBRbkFa60cvWakd7f0kVBxxktzZ9agPJEWyA63RSHYVqt8cPrs2uFJ3rS3k9ETGKn5+A6F9IOrdZHfT1biEyUJKEvwzuscwshGCBJvd16TrefW03xVnJf4xvs72PdxrMidjJO8EiWyN/VWyB3fv9kc34YIuZTFtXGo9DuG3H1Uka5FgBMwDPEvRcSabi3WakNQkXFecJlFk6buLVk5YHpuKWTw6oF632FPPSVIVl5hgUAeHhj0t/sw/PEEvThLQDDFE34eCg/rLOyXT3r+L98oRKrlTO0MdALYQ3rRQqC7d822dJPGxF1K4J2TtfPSMFaCAg0n0NGk9yiaKKOJD1v2aBX9HUOIawjjfvwCmjHZJTR62R9c9x33JnBjWrN4QYEOmehy0oZMP9XM9Zyi6TYoe07PaLceRXcCWZiY/imRUWW6+mci7+wMxSdwMdbXckXtvhJH8sc4iQcTwm7yp+3f7CaesTTQB2qkgeXh+wFiSMXfMlH7Yil0OoZ2QTtRLTip2O0cLZ4SstqWHZ6H+8A2kZXhpm0kPbL9dUanTOvziqIUh6Ambwa3WrCb2eWbuCN3L1hgWUmjRC3JoL3dBhR3imSQI8xuCMfsszlji7cSShNSYdqCXPxEVwbqO9i5B6hf93YI7aeyI8jxgcVXK0I/klbvhSXjkjOIwZgPdVwmsFW7HGPLUAvDRuKm+itybRg7c8+Yqqjg824Qf+/NxsBSUNAK9KCoJpauFqK0XQULrWYj4FnxeKDuvr54iokpi+D57e6Y1zxRJJdsHnDR3JyraCUufHBRTKODWBVzthjm4k3/Hv+Q990XDVR+KW+TcJX045LW86EKhz/97aqj89A8ZvTk1//tczosU90loIPVaHuWegJU3wP//7XHcO7c0yQM2jM/IhQKrf8hiObHWiWDZManF8Uf/HzbmDfC2wT//aiZ4hGTv/xzgKwdb1sD6cGEkceow0s3b89/zg+3plyRm0HlZi886j5wUwFhdHiDTaBidZRo5cx/tMeLyguOATbzq17ydhzbrpxunuHx6lbFGiO97gsd4dk//7iCIo+Ew+hG2so5kvv+ITG4c1fzHPtu1Xn5QfUnqY3/uByVmB7gmnE/E+5zdm+6nDmoews5fr+NzThdSHzK4bBQOL9c4O8OI0xLSqjJ4lbniLJg1aFpQRLwaSMZmpkC9e/j6FOVrTQ6a/a4alGgfrl2ZL1sbHUQ3DOI7ntq9diHFfm3t1mul3rdJEJCHnlW/hlQntipMrpeMs7fUr6wK370D7VbXH0DUHzdYfRg/6Z11Ult1sffJS+heHbco15Sxy3+rDnPesqH1lajk0yu02hPUvEUqvcUXWXL7Ad0wNGMx5gOle4XJxq/r/YY0xdco2wRSEGwcT7YADlBrHc9ZbvzOL0QwyWCWWChB9Obg800v7tyBWaNvdwz+fL7Ph9i2irEeJkRgOzeEDw+JiD/V93vH9FgMEoFIJMoIuogmicZohf94SBuPn6hXaV9jP4VVVA/bu+Wg8S88GLtmEPSNRLdtlXx2XL/nuM8nKkhnlnjaropiKKLIH94pLIASci0pDBfj9Hi5BfaTSXQg5+PMjQX91Ktk4MOqK1K99l4BRPv5+vNovGZ3IxQv8ICvjV4/diThpoaM8uvd3D9d/DE477w3yAbW3IDm2i73pZ9aEj38JqS6h/s8/xgmUIVcuq2JTgefAyuoafzQxAuRASeg3NtG3ach/JEkyuX+JDt2PnDZTShUhyHHG3ttBg/6lhAchGjLJBtopj4e01MlCp2yqQRTr4sBBXru+lKaoanwYX8y2aWCJiR3KnhCOkYVFSvsO0oDRujUFOEptiNDTYrJoUbvOyvl4AhC9h3wORiTXK1MrpMfnvdnndnR/HRVSusMBgIxwrLdn3vq1VcncPiD0SquTx/kNmxeFyCT4uXVUd9AL+rSGmuq7OOCzDKeVPjiNWVaoP5KOFqYq5Xcuf/xW9S+u9eIq9GAtZWtQlgkRecjRtvG1NR4WXXpn+pwsTBTIy079Ikg8rSef1aVapIFcXCd6C2wHVjLXR+N0tw4Taw6x6H90BFRgNrtlq2up6hHKuV3inM5RJaQWZHd84e6RsKkk9po3dk9by54tpPw7cBkFas/G+GbHwuG+AwP55BZyXILTHCIVrPpXHEaUPYfL6nphJP1Rc10xG4UaCeY4IHCwuur8xmSQDgY4aVwhzWhjbtSHG8JO6P2i2nC9/0Bfx0zk6dYQq3aw7k5vIObD7SEKrxhz0fQ0+YTOfHW23CBNeZci1qNsUDhoeqmfyP6PvjoEjHk8QbrFyQVZPHVWijnb8YCM65iYNoEbvnchStZ/9cKg5Vd45j8KnB6UjzXl/bkyZx7VoD47ocUUi117WwgySSb4rXgLJ52Mv5XJbp3I+uBP81BUvOjy4Cacgi+GWWlC/8dwgqwiojjUBDnEOxyRyowwLQfytFra1OZS4XvRYr4uoamAfG3I/p2bA7G90yqKThH8Ke00Tqd+3l3dmJpaCZelBMYjGqNLVa3SM4+LQeL56gY6Bymy2LQPVOxjWfj5tq4o74swcxhyGJPynkS5xAjOXZP1/FAYcBT3u6qLoIkEfErwo4gozmyI1YCvM0oyI3ghjGPQSsof2sKUhq91WsKy9cYWN+4A2v4pG/Mxpdc6w6kI/HX7Xb0TuihmsiOy2wQIsrZbUmr3OBSUo6oDJNgQp+YqYkgTgYcWZDgawJw3DFfdzT//PhVUidgB2qa8uw/j9ToHBAS33iT8YLhhAfyXG0bQUFp7QmH7oQ3i6Flf4OTZLvJdh8pfuflmWu2ohm5pTiSg1pl3vq9uluTJwqXfh1hqy8e2iHoD+Y35gCIViTo6VOtK5dD8HYClucJucXASzwe2kPj4S4eYQtmkYHagXhAzp/F541xE8YFYqSPszDuz3soWzHy0p3E2jwZNQaIcGU9FNQwQxeDw0ZlK9dxXrj9IUHGUPTOyib8CqXmbZ7Ex54bn1rLx3qqAavu/gh6XjV0GmN1p+yyMK9HN5uYEvxgbAk43tsheREhyI+Q5WLIneKTGPmYiM/lxOp8fvqHy8YgXK0TlMiX0tliLI2JtfmWZP8eVV732sdYm+pcWzDzEmKLJZyeelyaZKkjPnnUO9keDwtgiLnmd5+t+Sr5y8brRnlvxcWEWfCqIALQYHvaXx6jTg4dAlye469uGwwOZVZCILLfGjaMg4LUCNMTtMSp1aC2y/3wR2t1v3w/iNBRQ+bNbtDqL2NAr7K4rUcyqbSpNrXZgAWXvjxBBtfYLK1uRYt3q2pfXJOAL0HtWcEwJLddOSJKV1SwvcvEuzg/4MPnA8MIUJOLqm3qI6wFyN99Ck6zYaV/zGSAzF/PGsaNa4vPLe5QnyuqVUnVQ6xELA6gbe53aGgeke+R/ycb2LJVyc7BhuzI90zA+c6wUDTb7NH//gdDSl2u/aW7lRJm8m1fLtPxcNuEM5JbkOCZKPM88HUsLRoC1pmKKlvWyeAXuxILbu0snpSxf8N+RgtLUSe5n2gdjOjoSTaN7mMZ7bF+cWk/MS8mFD4pcyl5UN7CbpFZH2a+Pm1VAnUTVfbw8qrmz1G9m5aKmRzY1SMhhPrlCn2t4uNUXNA3IFe6NOjSC1DEaAFZAfDlEkQCsbNhsZPj6NQPDSB3tLiTo0ZYoEbIeEIaKtU3Wk60rEszawTFuyHVd365LA/c/uarABN5M5rGq/dqTG3Ilye/5EKiYisisuzqNaZjmWv0z9TORc0CKbaTea214oNM9u2sXUZub/eqM3Pi/PjRSyQiOSwPWif2asTgu6hS6fb5UGosCWxdedMqdViIUUSSdIJx+qQ4KShfTT39VAWZbi+mB+iKICNwpt6cflY57Rcbs6d1kA26Iru73cuxYVlSvuJdcR5VfDYZRk8X0AXePROyw3Le6LaUdmTLzYsoNhhgQpd67xVNiHgk3pakmndeIAtTC4DCXy9oS6eU4CWxDdVmY53pKNbdAKmQsP37lrJZC6iDXMELGKcHjNuuZgcDyY8W/yv6ha3DX7OWm/35fpvhw55oitf4V+GULlcPWYyGGuVBdro19c8u0RDddDun40W7G5cSIzHLh/qZxb59R+EPY+wZ2XerkUim92hhXpKyW6WtAh6zQS97DrPyjCvKi3pCw96LeKynOpyjtsMQc2RmI/20zFOZcSa2AK++PoRcT6zeJyxlBZ7kk5mhqXGkLlM2hFKc+/T544xXP0Ua38Q6xdPTLTeG1PHnLMaOvksUQMrEFTB/lizCirmFQL8zYVU+OTeYQEFaITsBSMMYexS9HkajO2gGIf2micvntCZJsZQEwIH3/4JGJQGflBuH5rNXmnRRYXDQs3ZoEQoMtYDr1kFKUS/siiQSUxcTH9XYeBZiKDDFQoExREO9dddKQLO3BwMHvymCSTFyY+vxn3D27NDx6OlU092D5EDUwilttqVHpjJQDUceJYCLsK2swfXeNUVrBJT/w/sk+7si8rPtiMFis+oxvGdGQxirMBID700T39mULuNHzOyN+xBfcFACZcyngF1aSpv0JPkNUrAZTqfplv509cGXFUiEEm5dZb+OsP/blizqdK45/dSsIrufYTrCPY2lgJD6k6QljTfXVlHfYKSq+MsagyUcaMintyr95bD8kdTAeYNLNsMmo/Wdd8a2nStBP49ARIjqqpUHWY4q4mvO5Cq/CgCP+4/B+5zutGwX5pssgVLr1+fIM7WWLfiUQDk4c6ZdHZOWv5hG3g2dgQ5NXnpIY+BWwJpaouf25bXnjDzbHnQNofH/c6m+dEAS9Gs2h7pFRPKOBDnqswZ8KZjhId1ytHUTs533KwBoSiImoxKQUgZ7z6pA9QB3sZ8Cq0vwutJTTkfbX8AzCpm2cFXx/P22niUMHauU8IGc+78R6TsutoonoqFuoNA3l80t387YHMoL5KGAT1JO4zmx+vJ0LbLHlicHraSVYvJjnO9p++qnWgKw9OwFVVUagvZuf9qfiuum+hIicxP1q4zDnzkHsCNriLxBpxY9N+UOmqzdY1MunLMDgkMyi3uvnN3UBXJeZ8YLs5xr8QrOhimYoKuGBebZHAiBIkViv3DG8k2oNpp5OIgX6ulqaRN8V62QUPjn5tl1kPXhT9bcd8qIm8gi4or/FGbvQ6pgGSHmnayrugmf5E0upGxPRf/3xOtitGMaHLKJVm5zhglmVfI91o0yxhJZVS/5wQ8zfxK8Ylw0WmHXoGfRkoBRx9Hsnl/6sgTjAVwpmNuSeZtBwlX4qB8Bh8lxjqBDIuFGJ4I1wxN0XRlAAslzqMKwQfyA7OkuivCXfv+i+3XmhcBFM2n4jdT+NyUmBnQJPV3F2sZfKvJhUlXzSosFR4VevVVcOkFnnjdiRWc0TeSYxj41sJGYMbZTeLI3GvyZ8/gAAudQ1+4oFX+enX5V49MczGCYVBuoC4kHjp7ZVxj+clBwPr9k+v05SsezQK3enxLs1Nt/N7c7AImVUysjGou4iOohHo83Zs9/MI/OWB+OyXzOBD93NbApGHXrv8CVRHp2bwH+xB55cfNrdqFD35HSMx4iVmtzYAmSCIV8kXsHoq3DIb93riTWbubnjxbBW5zConVtbxLRStXHkIyAByaozME952Gc9aAdAbBpZSVCH88Uwb/4bPTVOVl+WoMYD7JIvK8VcMrJ8zHV4bbG0Dg7Kx17A4ej/ZcZ2Z5pVuVLUH1E/AccUTKm81SE+LQ6STTUDscUk0x2OWIbEORhg69tdoTGNkA1RfkGIRZHr5mCXOpLC55WWzCZoGPFUVtZRHwh0nq039CDdjEPo+JyaxSQAvDgR6Iqvxy0frrtEG1A385N81l05SSzN+IDm9bypF9m92EUqblnauZ5sjc37wRykOdl7w4o8WMgQsjii3EE/aJYDfHs1cH6DNBEujjcCc8qAefYFyIAURDcDnzun5UmkbBQsU4eu/W8I9nBE0qJKTdg2hwjq0+XV7a3TJ7R+alvJZCRia9lJ+grNB9dbrOmWEvUotMjvDhq4wV/kq4fvIBkzUGpDeYH74rne8uU3dgoNZdR9pUL6q9YDNRfOiF6Dyk+SYXQIghTjm9qR4tBHh0gnmF/9q3Qv22EzaLhSvDlDOxMrrCNRmLCl1jApzLrBCPn2mjn5zqK7OYK7VxOfQ5GfBfoPdyQwqFEgCVHkJ9oTnagRM3R0+rsuN5jQv9icCav/p1WqiEXSzCdLd/WEA6z6dDP7tPqPbeDYKAkVcz1lLGbFOC9b7cBd3MV0Ve8dZ89oR7OnxGS7uVpSry8banVZwpJg+nkH1jRBYa2BvBMY2xITH9ERXCjHzdZxs+ipdXP2DY7X+eWiBhtT2L0RRGTLPeazn5tpl4tu8iE2rWig731iuJDRbCHHy+g/Mb9+miAyVqfIpXT/iZeOxOxODO0hEpLM78I1+G2Z45yi3lS1K3m4WMQ559Lp4UML5vZUjYGJuxl+OPpUH5klpyBujkjprhei0TmUik10gjvNUp8mDkWlNKikmYspaVTqewbnOzJrmz8FLIpsT67EJLHIIfeDcWEfiP+DJrZ1jfxpoAb2abeMqLx+9RuZGzQoYtYVGgAWwEM9Kek2vPIeBNAKD6ao7nw6sgvfeLZPoXkbYO/tStHJdKzk+WFSFEU2NcALJAEP6S8pcnqqBBt57dwTrzQNCIdk2SocK4dLRbD/pu/VryKnm65ZYXiJCfHJk3mx9MRSl+nSK6OqEBSoGjz0/LADddwF/HqcfK3K3O+6YUGQcmj8pZL4PhZ6KrGkb8B38FmDvvLd3XQXbvS/FQmrXFTvJNkaN/FGo83KuS43BK1UfVnIqigGkCoP5fBda2MwAGTGNKX9K9t4Bx83pMFc5KSORmWKv+8VoVggWxoaBz3/9IBh6RwLd1tebwy89xvE5z6EEpXpDfrXWfRsMs6+ekUHH6idVosno55+xQ8Zqzelh0bxtJTgCcH3Z3/Cxlx9eNIS4JIFKOAVrDqbrXRszmY55a5+niJGHtkO3b6mnIDxLa1WXc7BAe33mt2KyM4Fbc3R6/WVTQN8QhlqAtave2WsQTqzWeSlKuGUVIJRqtObpv294rS0kDN1RKzdstZTXJebR2HlzsQ4P3NbMHUqFZMZw+/IKXnh4t+lY8qocp/B1oMszR03EFs3bPeND8QkItMvllObeCz3SZAjqZrobmLcrpFyQV7mwBjg3C3C8/bc5goQhv8j/IXMLGnt4mF7tybRDG5G0polxoUScQkPvmnga2/K+aapKeqSL0BTmo1Cm5g+booNOtdyKva2KoefRURaBk7113QKo3y+WTuFKtgETIK8HRluYS9DvlcciCDvnG8UaJRfZE2siZsiTHvRmN80xkUIInHeRZl5Re/+ATL6VhKFi8CZ/n/jbFV6T5pZ+Uoppvsi3qjacVFOJgWWfdlwVHKPW/TJO3na9hRM9bS2yo2rEsC6IBzRReVO6IesJU7PItzOamr+ROFfwGZmZ7ue8HNxAgLJKb7P3p8dMqk6Be5PJaT/5Rdc1deYVihWH9cjVKc9uz5EnfHqxLUkOO8iJUENBNVf5LyNy8zjLu/78k5WNTywiPfYeX3CPk7yc6CI3lum/CEZwfUaNpcI3KsPqfn2lmz3kd/acQjKA1ebkJaiuLD+epQ/Fc1llHXXMzofWzz/Kd29SNmOhcjMWw1jq1g3YfrXZ9rzXDYW4ZttfgfMi6oCUtBs0PkMVuxmq5lxEoCaSXPSqCJJ7MlKdRDidVt0AFlxk5cTdX++sBF2+E35mjwfm8ERVxH0FvuAQtsfA4V2G0TKTUxeyRGVjd/u6F1SvuAiU2/WaQjcNCU4Ep7VunXCYSbZj3U3wzu/LWM5MPlYuyQ3FOOCD/zt7K295hY2JhwF+ODDIZ676vGQFKveEQYkWj7lkK7rVmD7MhU0Y/tF8EcTTpo4/yqOufbd/zWIpMajnbDuWK2vn6OPPtz2rc9MIBNlPd8tt+yf+7SC4wqEPbozKMCwY5Bygx4JmoIEDsixWRDcdHd6S3/dZMHXOJAAv7+NIstl00crgSqHZKAEe4g3G4dzIV51EeZB01r7p8GNlfUnG/GjZgNGsqXZdYMBVtAtFNv3hJWPve4GvqZ2XxuiNkHTz5kxWgr0PjQdJlVywJ9Zf2ZvqeeTbolKtvK54re2Lq5BoyzfsRtvDfyao3kmyFzDQ88nM+qx83w74RDlkngtYiArI05Epre3GgBeSlMig0pE6RGQaFznKkGeb0SozLCyiOtxh7hgwZlbKbClzUUfC8ntMiHUOZE375RhTy9c4DA+oMLkUDkztSybZbdmP1xpaIbjUpPAHBq3cIq+CBFzbMlMMCCkUQ6d9LGV6GYCsYiEWZIy3nBnuxOYXeU4YTGDSin9e4/pCjPtQSHlg5LMEvIlF0ElthqrF129iK2RPBEWd3XWOl3SWV5uz5VUyZYp5kEFmz7QfP/B1W1BBzQ2iTGbSVT79lUHzcGXz3PJceSgz4uknETUwo0xffpr2KUvZF0i/r2sL3IFIClYx8CbIZE6Qt7MDJbOPB3xMScwaOcWG66IJfCnDkb0D2Mb+PHzX+oiCbxeTIogtyN+s2NJirNACk/OACSOTtV6vscwbzW4M168xqaI+RzR47S1nlV/rOoZnid87n/Ima2XYa3un3BuGAisNjb8eLMT9OnMtazQROFCuO1HiZXaOc0oUDbNC4eKLToOx8DzVhMgGA8XIAQ2x3b6I0uEyLssQjJX3QphcUMx4KsMgJ+72km4N2aqkBF2coKmUEt1eqIMGn+5txMT4kYVGd3ALO+y9Z4PP3d3l48JQK8s9ZZ/Qx/+NBKgBEJFlQ32psoJiihGO7FSYM5L81q72kaAYcilEFMG+ZK1BcMqELkflyCV7v8JEXLO4Rf/oZYNZHZVjJhfL6fnpP9Tio3Euue5uS7FMkfGOeRCTrBZ06Caev7tgufeTrX34Ur/Vvc+b8ksiIShNJtuF9WmYxOZ4xg8y6zTdy3KAB2y5kYkcRnXsptWwAFyKZ2I/QGySNeoQLkINUMloC+5L3WuMMx297Q1xUYLKqZ9XHavaobo6QQv4auMm+i84IhxRpPt9nUmcav9NcjCcP+TcMmxsQZ/F3mgeoA0fQgwvTsyXuuTaM3Sqtv2jaaajmaFQpK9W6uIbeqwvSDo34ZrY6elDUHwSCjHRRmlwmyy+eOra64Ssq0XSXYljMHtKY+FShcMkHsEUY/4Bw63dJ6KpwDaxmthlDdbdE+TvYF3v33cGSKqO+1H1pKYhJMvZD5ckQcHyNF8zrtiR5b0ko6NPGoRexUZTYP6VbUdn3zzxGBOi8Z0OqHjGqYxRXwN3mYi0GYEEZYq+Q3QvdKcEHILLLj8S+VFepSfErtmfZCdvxbfIifFSpEzKi+7VJsLMT+zEFeyp1OdwRC1VZrfTLIyR7xTPUcZFYPD9qI7D70uTb4hdpqPXsJIRNYbZtNwch1OI3trh3u2ScoQyM9POnInsUa+OovcwkUP1UfIzPb95n4BaF2ev57NHAej0+BVMF9/Cj9663HN2/JN3SQgslL914bKfiTTDFAz9PlQEL/dSv1H8xl3mtWxh1McFO9EJXlRDaKQDsyKO4vOJW90NFE6yw2tjbc2GeF95sbs0I9enAa6QwQVf/kJQhAD2BzUDKggOyjy1TEhED6sfk+418lQy3c/uj8aw8UEzZ6hIMCd8RohAkumMtIj9m73l2yPWoGHVTPaywkC7Yj9tBM1NxMgcrDwRtk4RO2WHT7Ql5kQCKdJj6kNuOTeyEBYBjLMhGz+O5/YGa84HEiTYEpZ6fFzy26GG2hWtTyteuYrhSyG56BjsT/wQeLRytpTY3D7sIMqZnJ9z1FDrfyjFlGl2TNw9BQysbaxOuwYYZs/7I6BANgkqCknWZC7/BBXvaeKwAmC959I+G39BUE9bExkNlbRoFRyEtNzv+NJ91FuisG3JCS6uYBeRnfv8AkAfKTeg9EYamqnsGfAV7d0f9DghHEQ5IsPGDIUhgoSj7obM4Bu5uhQ3/CYEDTHc92AsFvDK4XGrwUeGBWBHPlS+f4x+CxmmHz2sAGmSFNt65kwZC64mnaoWlu2310laYn8r62AqsR5dfjyK18MEdurdagldzfJtjFXlZs7St4QhdPiye6TPh2/ZAQLU/Fip5s7TDEM16KtRWrK9hmxnQ7bmfa/+7pa10Z8WDPK3NuJ+NN/RAbQ5vHx2uX0Lm7/w7cAEH/hvZA+mt7J7zGw7YtQYwnNN6dpgwkGjjrS3yQoeoYt1EnczmtmJfQZWzUlP3Hlg9Wzlr9IH23q3thGth+QNEANFettxKfskkGOlLk8AqoKJwDqOxAa6UzAx07plSSyNBJSGco9zjnC5gGbDoKvsMDuBR6bGRlGzJ+hFsGa/Izt78aI+WZ6dJlZKp4pGISuv9rV0sAS0MWEwCmfauO7oQZMiakHU35LBxiyJoOMddhUWgcZuC8r4Ksvn75TTcQXLJ7kWtYhGuGqPd9dZuFjBWQHNwosXY5snbHFQq72CvHXhIg+shQxycuLOuWYErwCLZeF24b7F78pO7xw4X6lIAR02hUOf5087Rl0nOaeb6CK4i/KA/EZv76ftOWZtjwxslNr0E/u8rWUmnf3amfg6UZmBAluuoj3Dd7UV+9IAJ6iYcDfSJlgmIImohjfIUMJ27z+opj50Ak9af2LCNrWrBJvMovA1OeNO+MF/MwZvnaCxTgG7Cw4QfSPF6AYCGFt21M8PySZFeV3t2Rqqs5JMzMYzGRgq4o+UaKRgBf9GHi/9X9HXA3wxkCsd/UhnHSh2zUVDiraio/6nP4y3XJqs8ABfALAtCYU7DHPMPRjgcM6Ad/HiSXDAbOdSMkvGZPAkHs8wuQTy6X2Ov/JFvcPuKfV3/r9Q28\",qNe=new Map([[8217,\"apostrophe\"],[8260,\"fraction slash\"],[12539,\"middle dot\"]]),KNe=4;Uwt=\"AEUDVgHLCGMATwDUADIAdAAhADQAFAAtABQAIQAPACcADQASAAoAGAAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAeYDMwCxCl8B8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobWgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vAITAdQZWxDzALN9AhsZVwIcGSkCBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rlr3JG9m8w9lIAXltp/v8kfWaIaaR9OwpAES/I3ZVamDXSgB/UsOgAG6D0tq+5CIqE15FiAhV3yA2VhCQ7tj+m6xXaF53FIfGi/IAZIskMGAi2MU7MDVJNCbMzERyHZi+osdPtnFVbvq653O8rwaCy4IAf9OOok65AqJUtUriUfYsGPPVbe6jm0s9lbKlPCUKjdkHsFsEhvX4kT39ZCtAAbwQdn/h4TpO5hTByWAmr5n+Wuwhdegv6bmvX4LyOes3z2+cuHv2JFYwVMNuq2gzn8YHTjlUQd39osyWei4NKl3LAdfxlO876hh5ENp/cOvpuI9bF55guEthLLPOXjD4dktTH04P5TvZrWTM0e4+BHJxj7MLApXIFOs0sWKhNkG8iwuM5wR83my6V3wW06abhDzTXYfOr/ZpFXgXzmv4d12FFyP00/dPGbIVGV5ao8UufGzUwp/IHx6v/wDWJr9iaoCulhWwlZ7A8q/NMoD12+mBdNRgJYnThRLtMx1Bgwttn8/4Qn2CDfOSup9GVXEvA21ILgp0owHYxNOkpwLWz0G7K+WREIDjIzUzSn8I99CuJSmSpPyH0Ke6/NERYiNx+3dncSebPnOUnnWD61AhJ1n/tSLZmU5wYO5GfgzyAYJm6VL91LxZ8hL1lfximQxIDMRhIecQZBmeE5R0XlrpvwplVrJwpa8BBCdp93GPP9lyBeZ2zkRr920CR3cYbKpKHfogvm0nV7XdDz6EbjzlxADCMjSLXuXpIpyuizy39yY+I+H9rmpoIF3YwEjlH9MgGgWcCNTjHEWMqAbprn2Ox7rOHupaVE3lNyg3nt5XaZID6Y+uml5Ja+aOPu+BI+DZbiJVfaspUadakWUX6TA4dETkIqdJJHYnU4Z4yKpt5y8rVIahoMUf8A8kWtAQNCTbjp71gx3/zVdqNz1Sutkw0gFIMVm2BF4Xdv/0olw+NaDIR9Bb3DPweZA2K/cw+/b+AwyWl9ZOP67A9nexmeTNjfdzPGf9J6E6BMPKa5lJh+qNsdUz3HBUevU71eQFCqOcxiIYhacAhh/8PX0J5DdSViZ6WazDDx7cukJNpMfEkYLJ5Ao4vLoVd3d25Pg4qaVa2p2D2L3WvYPJ5Yf/A/MSxptjlgXL/KJtP2U0cRv2I09ATAiWCJYuRwiapeKFsqmi18yMMulDp3HdcIldq+7jkwsJUOHLHCzzzBw5XFvL0CAmo1ub456z7zb7shk3KPGCLZzr47oT1k/j06XNnJvG3Udv6XrP+wsqTBlZ5MaNPt9FOs/4Bt/ja/vbVhTNpBFl9Gq7MqINvGlWKOAwQzwOZy+EzSdjAqKJVV2YcskTuM94aIK+kc/AZaXiZLPREUDpkXIV947IFfj+85TrqPqLfkGcxgboMQjosf+az+odLNXdyp1mDNGsqSdK/pJ2Ca04mt/4d6s1X+lncOEYaGBBeW4pApGcjf7/XJCFbj3N3mFb+BtlIcw8ZiDKoClFX9Rf0bxCqtLpicObKJzBVVHr/6u4siH2hK75RNv7w9GfTbhJOQBYiFUZAByY4rn37tZBHT//kqKsNi3ryL9AqXJRzqiMIJMhILjoi/i8LVEsbu+Ih9bsyW16sgQqjYLO0qda6KaCPKj3DQcu6CfV5lKtjS3ZCdqLAZkOey9MR+QutJBGiz/r15GVD6rCVwJR4UUKC4GNJkfDf00OMW8aQtLSAGLXV8MIi9mbbl/qQEpxCm2L5hutFX4ekeLH4QgBWUFKs/2VVMKy46WtFE6AbwgmYm/Z0yHk5veDIrcl2HpVqb/rSE0PC9EbDzJEWqeaPhh7vF369Umq2kSiB3s5rBI6c/7N9bkRu4h2n+/h5nSwy+7n+/I+6oXQVANo2Jb5zDwtiBPf1ySCzHdT6yJShMzqSRZfnykX49CaFaxhoVF4PBhEuECJ1PrFYSpmHuyYsl14DTAV9ZxRms1XiR/kBrjhZjidOt0UNe+GSml7XNgpVw8YsUTmZXLTK+6iYnyW/wYR1W4UXwOi14xpFROHb6HcZzksgF5DbL2AFXzKNwHU2adjdAY+KCyM/cwRTBkkq/a227NI0q6DR2MkMCRu620t79bGcYUmACtqN3mk/0uNwd3JSXHqE1kzf6Yyj0W2083JNDRnIXDlgBxJ6uf58NN1f6FQiRCWB4egF8QDx74AixV8oTyw7PluIjr3/rj/WzgwPSq4xPojaF7V0xqG2u5ti2L1h6yYHv73Isrukr0kURDIEjClBsBx7kdcXUxaYMS0syT3ymLzDzslNDWQOT1Tao1YNmJHARUenhCkmV9tqCPGI5GqZaRpkiPxyjoncWjyOHYGqvbvRX+Bn1pn7EhRNXa1lqJPmoeN5VqdqIDPhEVhFsyG0d4iQEIYX0wZUbY2XbZWYlpZ/l66IrDDY0q1C1YzBDpHC4h05YqHQLqS9anyl22JQ6lEvjvdBwMHfE7z0luCXD34/rFeDa2TmSeEAykSpYO5j1G/nsgpR3qn0qaQEmLjnnLfcz+veoYqPnRqmRGwCJ6FJ3Gm/Z1/aVX5PSb03MMnjAf41ww54sD5k8FrkfBP+K0b1MrYpapWjtpZfve2HVf4ickX3LKSOhu7qI1Vd4c1kNrn2ajy1t4y93JhV4fnWCKq7OmFpcr7FjdJCXPTql0Drr14Ho3Z87+GPQ4Z/DcTiGqtvZxlRYi8cNuhXABveZIwNl/BX1huhVLaFax5OqypUrQRyb9OE3SSkPlDdy5uo5XGg2EIGEjLY1MO5cr1ibfiFWV7zspcTgkBKkwo5jPyAin04LqizZXb2tDRgwKJjGx4cVk3ngAQixwcxjYAg2Q7vmUR/hpwInMdw7OhC2qyf41vTPkudQAORS0DdLtOGQxb4fH2VYGsvJCkeWPeUwtf1/tuIhzXEThoCZzzSJqqjUtbaPI3ntHm3T5uf849hGUA0zU8ni5W+EEn3/0Y6oUhQFw9z0aGjkljBbAlFXc0y82G2wkd7VdgWa5KTgJJNjNwZMfmdnUIUn1JU5LiWX5UZEZbVlKSN76mlmjUR2ku+fucTNlO4IAAahnLjBhlvQNR9pe9swGBgq0YR7P3VCyI/seYwQ4QBzy9X+HPePgoF8WfKaJ4MBOhLCGHae6Z8xkNXwni9QAKvTNtVA56x8YJflZ/VvONRSlsSLmiSyNMnTjTaE1ko81zkzGEnVwEhjCzlwIqpxmpDAqwsEmtpdr3xpc7i/ZX3f2TzT3M0FdxIEQvO1jgmmiN+D1YpMduAzEhBtj2OBkMN/rv6p7Th4pSH6f5aH3aTvwFTl7EOSgGASI7ttyMehzpm4AVyK+bFEaFg9gnZsSUPpsbAe/0RFhrH+EXZ12Z7thf4dzN1+Sn+G8QrDA1VKaN4IFxD1rQz9Xq9Coii9S9/hPbTGjyBwFH3H1UdQuz5KsgPDEHua4/kPg2Gp/IIItsaLWBqiT9XH45MiQxSosGJ56H/0F2cjcCFd72l1665RNHURdC3lspI77esfJsl+rXXabkAy7vxDXG/XGGcKpwiKDPFfvMEgjkAHil4Za1F36RnyxxvdIAzvgfH8knukYDck07tc++DP4TdWeI7HXuq5Yl6VVFrUQtf64/dkXewlKZSHQo6YvCSpREB0GDrz+Ys2GfO8nw2SwrYwaf88AifzlPvP17bf1mI3AuccJvAjZIpBmqvharKFAebEjVKfGAwpQjWoXlm9LROsq9bCk1UeQ3CJxJqprzssS/Q04JeS1ReCCubL3J7sx86spkP4eNpp95UF+8K748icIs8vdILFklk9skQqi1So6cx3X906pvy1vz+KipTJ8fiVJxsV5MmT0XwA\",AL=44032,UK=4352,FK=4449,HK=4519,n7e=19,r7e=21,YO=28,zK=r7e*YO,Fwt=n7e*zK,Hwt=AL+Fwt,zwt=UK+n7e,jwt=FK+r7e,Wwt=HK+YO;ZNe=45,c7e=\".\",u7e=65039,l7e=1,jK=e=>Array.from(e);tde=class extends Array{get is_emoji(){return!0}}});var g7e=Z(()=>{f();cde()});var y7e=Z(()=>{f()});var b7e=Z(()=>{f()});var v7e=Z(()=>{f()});var w7e=Z(()=>{f()});var x7e=Z(()=>{f()});var E7e=Z(()=>{f();UOe()});var A7e=Z(()=>{f()});var th,ude,lde,dde,fde,pde,hde,mde,gde,yde,bde,vde,wde,_7e=Z(()=>{f();th=class extends Error{constructor(t){let{code:n,message:r,data:o}=t;super(r),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.BaseError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.data=o}},ude=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Missing or invalid parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidInputError\"})}};Object.defineProperty(ude,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});lde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not found.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceNotFoundError\"})}};Object.defineProperty(lde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});dde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not available.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceUnavailableError\"})}};Object.defineProperty(dde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});fde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Transaction creation failed.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.TransactionRejectedError\"})}};Object.defineProperty(fde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});pde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method is not implemented.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotSupportedError\"})}};Object.defineProperty(pde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});hde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Rate limit exceeded.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.LimitExceededError\"})}};Object.defineProperty(hde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});mde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"JSON-RPC version not supported.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.VersionNotSupportedError\"})}};Object.defineProperty(mde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});gde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Input is not a valid JSON-RPC request.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidRequestError\"})}};Object.defineProperty(gde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});yde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method does not exist.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotFoundError\"})}};Object.defineProperty(yde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});bde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Invalid method parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidParamsError\"})}};Object.defineProperty(bde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});vde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Internal JSON-RPC error.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InternalError\"})}};Object.defineProperty(vde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});wde=class e extends th{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Failed to parse JSON-RPC response.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ParseError\"})}};Object.defineProperty(wde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700})});var P6,xde,Ede,Ade,_de,Sde,S7e=Z(()=>{f();R_();P6=class extends Error{constructor(t,n){super(n),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=n}},xde=class extends P6{constructor({message:t=\"The user rejected the request.\"}={}){super(4001,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UserRejectedRequestError\"})}};Object.defineProperty(xde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});Ede=class extends P6{constructor({message:t=\"The requested method and/or account has not been authorized by the user.\"}={}){super(4100,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnauthorizedError\"})}};Object.defineProperty(Ede,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});Ade=class extends P6{constructor({message:t=\"The provider does not support the requested method.\"}={}){super(4200,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnsupportedMethodError\"})}};Object.defineProperty(Ade,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});_de=class extends P6{constructor({message:t=\"The provider is disconnected from all chains.\"}={}){super(4900,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.DisconnectedError\"})}};Object.defineProperty(_de,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});Sde=class extends P6{constructor({message:t=\"The provider is not connected to the requested chain.\"}={}){super(4901,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.ChainDisconnectedError\"})}};Object.defineProperty(Sde,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901})});var T7e=Z(()=>{f()});var C7e=Z(()=>{f()});var R7e=Z(()=>{f()});var I7e,O7e,k7e,v2t,w2t,x2t,Tde,JWn,XWn,N7e=Z(()=>{f();mI();Gle();C6();I7e={p:BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\"),n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),h:BigInt(1),a:BigInt(\"0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc\"),b:BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\")},O7e={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\"),n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),h:BigInt(1),a:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc\"),b:BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\")},k7e={p:BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),h:BigInt(1),a:BigInt(\"0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc\"),b:BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\")},v2t=Ll(I7e.p),w2t=Ll(O7e.p),x2t=Ll(k7e.p),Tde=WO({...I7e,Fp:v2t,lowS:!1},Uy),JWn=WO({...O7e,Fp:w2t,lowS:!1},ySe),XWn=WO({...k7e,Fp:x2t,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},tW)});var ZO,P7e,GK=Z(()=>{f();N7e();ZO=Tde,P7e=Tde});function M7e(e){let{hash:t,payload:n,publicKey:r,signature:o}=e;return P7e.verify(o,n instanceof Uint8Array?n:zu(n),wK(r).substring(2),...t?[{prehash:!0,lowS:!0}]:[])}var Cde=Z(()=>{f();GK();X0();gL()});var L7e=Z(()=>{f()});var B7e=Z(()=>{f()});var U7e=Z(()=>{f()});var F7e=Z(()=>{f()});var H7e=Z(()=>{f()});var z7e=Z(()=>{f()});var j7e=Z(()=>{f()});var W7e=Z(()=>{f()});var V7e=Z(()=>{f()});var G7e=Z(()=>{f()});var q7e=Z(()=>{f()});var K7e=Z(()=>{f()});var Y7e=Z(()=>{f()});function Z7e(e){let t=e[4]===0?5:4,n=t+32,r=e[n+2]===0?n+3:n+2,o=BigInt(Ds(e.slice(t,n))),i=BigInt(Ds(e.slice(r)));return{r:o,s:i>ZO.CURVE.n/2n?ZO.CURVE.n-i:i}}async function Q7e(e){try{let t=e.getPublicKey();if(!t)throw new B_;let n=new Uint8Array(t),r=await crypto.subtle.importKey(\"spki\",new Uint8Array(n),{name:\"ECDSA\",namedCurve:\"P-256\",hash:\"SHA-256\"},!0,[\"verify\"]),o=new Uint8Array(await crypto.subtle.exportKey(\"raw\",r));return S6(o)}catch(t){if(t.message!==\"Permission denied to access object\")throw t;let n=new Uint8Array(e.attestationObject),r=32,o=88,i=u=>{let d=new Uint8Array([u,o,r]);for(let p=0;p<n.length-d.length;p++)if(d.every((h,g)=>n[p+g]===h))return p+d.length;throw new B_},a=i(33),c=i(34);return S6(new Uint8Array([4,...n.slice(a,a+r),...n.slice(c,c+r)]))}}var J7e=Z(()=>{f();GK();lv();gL();Rde()});var QO={};qa(QO,{CredentialCreationFailedError:()=>B_,CredentialRequestFailedError:()=>SL,createChallenge:()=>X7e,createCredential:()=>L2t,getAuthenticatorData:()=>$7e,getClientDataJSON:()=>ePe,getCredentialCreationOptions:()=>tPe,getCredentialRequestOptions:()=>nPe,getSignPayload:()=>B2t,sign:()=>U2t,verify:()=>F2t});async function L2t(e){let{createFn:t=window.navigator.credentials.create.bind(window.navigator.credentials),...n}=e,r=tPe(n);try{let o=await t(r);if(!o)throw new B_;let i=o.response,a=await Q7e(i);return{id:o.id,publicKey:a,raw:o}}catch(o){throw new B_({cause:o})}}function $7e(e={}){let{flag:t=5,rpId:n=window.location.hostname,signCount:r=0}=e,o=dK(NO(n)),i=Hc(t,{size:1}),a=Hc(r,{size:4});return i1(o,i,a)}function ePe(e){let{challenge:t,crossOrigin:n=!1,extraClientData:r,origin:o=window.location.origin}=e;return JSON.stringify({type:\"webauthn.get\",challenge:kNe(t,{url:!0,pad:!1}),origin:o,crossOrigin:n,...r})}function tPe(e){let{attestation:t=\"none\",authenticatorSelection:n={residentKey:\"preferred\",requireResidentKey:!1,userVerification:\"required\"},challenge:r=X7e,excludeCredentialIds:o,name:i,rp:a={id:window.location.hostname,name:window.document.title},user:c,extensions:u}=e,d=c?.name??i;return{publicKey:{attestation:t,authenticatorSelection:n,challenge:r,...o?{excludeCredentials:o?.map(p=>({id:LK(p),type:\"public-key\"}))}:{},pubKeyCredParams:[{type:\"public-key\",alg:-7}],rp:a,user:{id:c?.id??lK(BO(d),{as:\"Bytes\"}),name:d,displayName:c?.displayName??d},extensions:u}}}function nPe(e){let{credentialId:t,challenge:n,rpId:r=window.location.hostname,userVerification:o=\"required\"}=e;return{publicKey:{...t?{allowCredentials:[{id:LK(t),type:\"public-key\"}]}:{},challenge:zu(n),rpId:r,userVerification:o}}}function B2t(e){let{challenge:t,crossOrigin:n,extraClientData:r,flag:o,origin:i,rpId:a,signCount:c,userVerification:u=\"required\"}=e,d=$7e({flag:o,rpId:a,signCount:c}),p=ePe({challenge:t,crossOrigin:n,extraClientData:r,origin:i}),h=dK(NO(p)),g=p.indexOf(\\'\"challenge\"\\'),y=p.indexOf(\\'\"type\"\\'),v={authenticatorData:d,clientDataJSON:p,challengeIndex:g,typeIndex:y,userVerificationRequired:u===\"required\"},x=i1(d,h);return{metadata:v,payload:x}}async function U2t(e){let{getFn:t=window.navigator.credentials.get.bind(window.navigator.credentials),...n}=e,r=nPe(n);try{let o=await t(r);if(!o)throw new SL;let i=o.response,a=String.fromCharCode(...new Uint8Array(i.clientDataJSON)),c=a.indexOf(\\'\"challenge\"\\'),u=a.indexOf(\\'\"type\"\\'),d=Z7e(new Uint8Array(i.signature));return{metadata:{authenticatorData:Ds(new Uint8Array(i.authenticatorData)),clientDataJSON:a,challengeIndex:c,typeIndex:u,userVerificationRequired:r.publicKey.userVerification===\"required\"},signature:d,raw:o}}catch(o){throw new SL({cause:o})}}function F2t(e){let{challenge:t,hash:n=!0,metadata:r,publicKey:o,signature:i}=e,{authenticatorData:a,challengeIndex:c,clientDataJSON:u,typeIndex:d,userVerificationRequired:p}=r,h=zu(a);if(h.length<37)return!1;let g=h[32];if((g&1)!==1||p&&(g&4)!==4||(g&8)!==8&&(g&16)===16)return!1;let y=\\'\"type\":\"webauthn.get\"\\';if(y!==u.slice(Number(d),y.length+1))return!1;let v=u.slice(Number(c)).match(/^\"challenge\":\"(.*?)\"/);if(!v)return!1;let[x,R]=v;if(Ds(LK(R))!==t)return!1;let S=dK(BO(u),{as:\"Bytes\"}),M=uK(h,S);return M7e({hash:n,payload:M,publicKey:o,signature:i})}var X7e,B_,SL,Rde=Z(()=>{f();Jle();X0();sx();fK();lv();Cde();J7e();X7e=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);B_=class extends Ir{constructor({cause:t}={}){super(\"Failed to create credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialCreationFailedError\"})}},SL=class extends Ir{constructor({cause:t}={}){super(\"Failed to request credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialRequestFailedError\"})}}});var U_={};qa(U_,{createKeyPair:()=>H2t,sign:()=>z2t,verify:()=>j2t});async function H2t(e={}){let{extractable:t=!1}=e,n=await globalThis.crypto.subtle.generateKey({name:\"ECDSA\",namedCurve:\"P-256\"},t,[\"sign\",\"verify\"]),r=await globalThis.crypto.subtle.exportKey(\"raw\",n.publicKey),o=S6(new Uint8Array(r));return{privateKey:n.privateKey,publicKey:o}}async function z2t(e){let{payload:t,privateKey:n}=e,r=await globalThis.crypto.subtle.sign({name:\"ECDSA\",hash:\"SHA-256\"},n,LO(t)),o=yle(new Uint8Array(r)),i=wle(vle(o,0,32)),a=wle(vle(o,32,64));return a>ZO.CURVE.n/2n&&(a=ZO.CURVE.n-a),{r:i,s:a}}async function j2t(e){let{payload:t,signature:n}=e,r=await globalThis.crypto.subtle.importKey(\"raw\",_le(e.publicKey),{name:\"ECDSA\",namedCurve:\"P-256\"},!0,[\"verify\"]);return await globalThis.crypto.subtle.verify({name:\"ECDSA\",hash:\"SHA-256\"},r,uK(ble(n.r),ble(n.s)),LO(t))}var rPe=Z(()=>{f();GK();X0();gL()});var TL=Z(()=>{f();yke();Kke();Yke();Zke();Qke();jke();qke();Jke();Xke();Rle();$ke();INe();ONe();Jle();PNe();BNe();HNe();zNe();jNe();WNe();VNe();X0();Ele();GNe();g7e();sx();y7e();fK();v7e();lv();w7e();IO();MNe();x7e();E7e();A7e();S7e();gL();eNe();T7e();C7e();_7e();R7e();b7e();Cde();PK();L7e();EK();B7e();UNe();F7e();H7e();z7e();j7e();W7e();V7e();G7e();q7e();K7e();Y7e();U7e();Rde();rPe();FNe()});function qK(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function CL(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=qK(n);return(o,i)=>r.then(a=>i(a.transaction(t,o).objectStore(t)))}function Ode(){return Ide||(Ide=CL(\"keyval-store\",\"keyval\")),Ide}function KK(e,t=Ode()){return t(\"readonly\",n=>qK(n.get(e)))}function YK(e,t,n=Ode()){return n(\"readwrite\",r=>(r.put(t,e),qK(r.transaction)))}function ZK(e,t=Ode()){return t(\"readwrite\",n=>(n.delete(e),qK(n.transaction)))}var Ide,kde=Z(()=>{f()});function oPe(e,t){let n=typeof indexedDB<\"u\"?CL(e,t):void 0;return{getItem:async r=>{let o=await KK(r,n);return o||null},removeItem:async r=>ZK(r,n),setItem:async(r,o)=>YK(r,o,n)}}var iPe=Z(()=>{f();kde()});async function G2t(){let e=await U_.createKeyPair({extractable:!1}),t=Fc.slice(Hf.toHex(e.publicKey),1);return await F_.setItem(t,e),await F_.setItem(QK,t),e}async function aPe(){let e=await F_.getItem(QK);if(!e)return null;let t=await F_.getItem(e);return t||null}async function q2t(){let e=await aPe();if(!e){let t=await G2t(),n=Fc.slice(Hf.toHex(t.publicKey),1);return await F_.setItem(n,t),await F_.setItem(QK,n),t}return e}async function K2t(){let e=await q2t(),t=Fc.slice(Hf.toHex(e.publicKey),1),n=async r=>{let{payload:o,metadata:i}=QO.getSignPayload({challenge:r,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),a=await U_.sign({payload:o,privateKey:e.privateKey});return{signature:eg.toHex(a),raw:{},webauthn:i}};return{id:t,publicKey:t,async sign({hash:r}){return n(r)},async signMessage({message:r}){return n(fm(r))},async signTypedData(r){return n(Lf(r))},type:\"webAuthn\"}}async function M6(){return{account:await K2t()}}async function sPe(){let e=await aPe();e&&(await F_.removeItem(Fc.slice(Hf.toHex(e.publicKey),1)),await F_.removeItem(QK))}var W2t,V2t,QK,F_,JK=Z(()=>{f();TL();pn();iPe();W2t=\"base-acc-sdk\",V2t=\"keys\",QK=\"activeId\",F_=oPe(W2t,V2t)});var cPe,uPe,lPe,XK,dPe=Z(()=>{f();$p();nle();cPe={storageKey:\"ownPrivateKey\",keyType:\"private\"},uPe={storageKey:\"ownPublicKey\",keyType:\"public\"},lPe={storageKey:\"peerPublicKey\",keyType:\"public\"},XK=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(lPe,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Ut.keys.clear()}async generateKeyPair(){let t=await dke();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(cPe,t.privateKey),await this.storeKey(uPe,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(cPe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(uPe)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(lPe)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await fke(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let n=Ut.keys.get(t.storageKey);return n?Xq(t.keyType,n):null}async storeKey(t,n){let r=await Jq(t.keyType,n);Ut.keys.set(t.storageKey,r)}}});function D6(e,t){if(!(typeof e!=\"object\"||e===null))return t.split(/[.[\\\\]]+/).filter(Boolean).reduce((n,r)=>{if(typeof n==\"object\"&&n!==null)return n[r]},e)}var Nde=Z(()=>{f()});function Pde(e){var t;if(!Array.isArray(e.params))return null;switch(e.method){case\"personal_sign\":return e.params[1];case\"eth_signTypedData_v4\":return e.params[0];case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":return(t=e.params[0])===null||t===void 0?void 0:t.from;default:return null}}function fPe(e,t){if(!Array.isArray(e.params))throw Ft.rpc.invalidParams();let n=[...e.params];switch(e.method){case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":n[0].from=t;break;case\"eth_signTypedData_v4\":n[0]=t;break;case\"personal_sign\":n[1]=t;break;default:break}return Object.assign(Object.assign({},e),{params:n})}function Mde(e){var t;if(!e||!Array.isArray(e)||!(!((t=e[0])===null||t===void 0)&&t.chainId))throw Ft.rpc.invalidParams();if(typeof e[0].chainId!=\"string\"&&typeof e[0].chainId!=\"number\")throw Ft.rpc.invalidParams()}function pPe(e){if(!e||!Array.isArray(e)||e.length!==1&&e.length!==2)throw Ft.rpc.invalidParams();if(typeof e[0]!=\"string\"||!Un(e[0]))throw Ft.rpc.invalidParams();if(e.length===2){if(!Array.isArray(e[1]))throw Ft.rpc.invalidParams();for(let t of e[1])if(typeof t!=\"string\"||!t.startsWith(\"0x\"))throw Ft.rpc.invalidParams()}}function JO(e,t){let n=Object.assign({},e);if(t&&e.method.startsWith(\"wallet_\")){let r=D6(n,\"params.0.capabilities\");if(typeof r>\"u\"&&(r={}),typeof r!=\"object\")throw Ft.rpc.invalidParams();r=Object.assign(Object.assign({},t),r),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:r}))}return n}async function RL(){var e;let t=(e=Ut.subAccountsConfig.get())!==null&&e!==void 0?e:{},n={};if(t.enableAutoSubAccounts){let{account:r}=t.toOwnerAccount?await t.toOwnerAccount():await M6();if(!r)throw Ft.provider.unauthorized(\"No owner account found\");n.addSubAccount={account:{type:\"create\",keys:[{type:r.address?\"address\":\"webauthn-p256\",publicKey:r.address||r.publicKey}]}}}Ut.subAccountsConfig.set({capabilities:n})}function hPe(e){if(!(e.method===\"coinbase_fetchPermissions\"&&e.params===void 0)){if(e.method===\"coinbase_fetchPermissions\"&&Array.isArray(e.params)&&e.params.length===1&&typeof e.params[0]==\"object\"){if(typeof e.params[0].account!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Ft.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].account must be a hex string\");if(typeof e.params[0].chainId!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Ft.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\");if(typeof e.params[0].spender!=\"string\"||!e.params[0].spender.startsWith(\"0x\"))throw Ft.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].spender must be a hex string\");return}throw Ft.rpc.invalidParams()}}function mPe(e){var t,n,r;if(e.params!==void 0)return e;let o=(t=Ut.getState().account.accounts)===null||t===void 0?void 0:t[0],i=(n=Ut.getState().account.chain)===null||n===void 0?void 0:n.id,a=(r=Ut.getState().subAccount)===null||r===void 0?void 0:r.address;if(!o||!a||!i)throw Ft.rpc.invalidParams(\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\");return{method:\"coinbase_fetchPermissions\",params:[{account:o,chainId:Ne(i),spender:a}]}}function gPe({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Tue},types:{SpendPermission:[{name:\"account\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermission\",message:{account:e.account,spender:e.spender,token:e.token,allowance:e.allowance,period:e.period,start:e.start,end:e.end,salt:e.salt,extraData:e.extraData}}}function yPe({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Tue},types:{SpendPermissionBatch:[{name:\"account\",type:\"address\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"permissions\",type:\"PermissionDetails[]\"}],PermissionDetails:[{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermissionBatch\",message:{account:e.account,period:e.period,start:e.start,end:e.end,permissions:e.permissions.map(n=>({spender:n.spender,token:n.token,allowance:n.allowance,salt:n.salt,extraData:n.extraData}))}}}async function $K({client:e,id:t}){var n;let r=await j0(e,{id:t});if(r.status===\"success\")return(n=r.receipts)===null||n===void 0?void 0:n[0].transactionHash;throw Ft.rpc.internal(\"failed to send transaction\")}function eY({calls:e,from:t,chainId:n,capabilities:r}){let o=Sue.get().paymasterUrls,i={method:\"wallet_sendCalls\",params:[{version:\"1.0\",calls:e,chainId:Ne(n),from:t,atomicRequired:!0,capabilities:r}]};return o?.[n]&&(i=JO(i,{paymasterService:{url:o?.[n]}})),i}async function bPe(){let e=$8();return await new Promise(n=>{Y8({dialogContext:\"sub_account_insufficient_balance\"}),e.presentItem({title:\"Insufficient spend permission\",message:\"Your spend permission\\'s remaining balance cannot cover this transaction. Please choose how to proceed:\",onClose:()=>{Aq({dialogContext:\"sub_account_insufficient_balance\"}),e.clear()},actionItems:[{text:\"Edit spend permission\",variant:\"primary\",onClick:()=>{iv({dialogContext:\"sub_account_insufficient_balance\",dialogAction:\"create_permission\"}),e.clear(),n(\"update_permission\")}},{text:\"Use primary account\",variant:\"secondary\",onClick:()=>{iv({dialogContext:\"sub_account_insufficient_balance\",dialogAction:\"continue_in_popup\"}),e.clear(),n(\"continue_popup\")}}]})})}function vPe({errorData:e,sourceAddress:t}){var n;let r=[];for(let[o,{amount:i,sources:a}]of Object.entries((n=e?.required)!==null&&n!==void 0?n:{})){if(a.filter(u=>qn(u.balance)>=qn(i)&&u.address.toLowerCase()===t?.toLowerCase()).length===0)throw new Error(\"Source address has insufficient balance for a token\");r.push({token:o,requiredAmount:qn(i)})}return r}function wPe(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function xPe(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function Y2t(e){return Il(lr(Zn(e)),0,16)}function EPe({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return Y2t(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function APe(e,t){var n;if(!Array.isArray(e?.params))return!1;let r=(n=e.params[0])===null||n===void 0?void 0:n.capabilities;return!r||typeof r!=\"object\"?!1:t in r}function IL(e,t){let n=e.filter(r=>r!==t);return[t,...n]}function OL(e,t){return[...e.filter(r=>r!==t),t]}async function _Pe(){let e=Ut.spendPermissions.get(),t=Ut.subAccounts.get(),n=Ut.account.get().accounts;return n?{accounts:n?.map(o=>({address:o,capabilities:{subAccounts:t?[t]:void 0,spendPermissions:e.length>0?{permissions:e}:void 0}}))}:null}var kL=Z(()=>{f();pn();pn();eh();_q();$p();Pq();Nde();Jp();JK();c6()});function Z2t(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function tY(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return Z2t(t)}function SPe({webauthn:e,signature:t,id:n}){let r=eg.fromHex(t);return{id:n,rawId:tY(Mu(n)),response:{authenticatorData:tY(ci(e.authenticatorData)),clientDataJSON:tY(Mu(e.clientDataJSON)),signature:tY(Q2t(r.r,r.s))},type:JSON.parse(e.clientDataJSON).type}}function Q2t(e,t){let n=ci(Ui(Ne(e))),r=ci(Ui(Ne(t))),o=n.length,i=r.length,a=o+i+4,c=new Uint8Array(a+2);return c[0]=48,c[1]=a,c[2]=2,c[3]=o,c.set(n,4),c[o+4]=2,c[o+5]=i,c.set(r,o+6),c}var TPe=Z(()=>{f();TL();pn()});async function CPe(e){let{owner:t,ownerIndex:n,address:r,client:o,factoryData:i}=e,a={abi:ZD,address:nL,version:\"0.6\"},c={abi:bq,address:qIe};return JD({client:o,entryPoint:a,extend:{abi:Cd,factory:c},async decodeCalls(u){let d=Jy({abi:Cd,data:u});if(d.functionName===\"execute\")return[{to:d.args[0],value:d.args[1],data:d.args[2]}];if(d.functionName===\"executeBatch\")return d.args[0].map(p=>({to:p.target,value:p.value,data:p.data}));throw new Re(`unable to decode calls for \"${d.functionName}\"`)},async encodeCalls(u){var d,p;return u.length===1?vn({abi:Cd,functionName:\"execute\",args:[u[0].to,(d=u[0].value)!==null&&d!==void 0?d:BigInt(0),(p=u[0].data)!==null&&p!==void 0?p:\"0x\"]}):vn({abi:Cd,functionName:\"executeBatch\",args:[u.map(h=>{var g,y;return{data:(g=h.data)!==null&&g!==void 0?g:\"0x\",target:h.to,value:(y=h.value)!==null&&y!==void 0?y:BigInt(0)}})]})},async getAddress(){return r},async getFactoryArgs(){return i?{factory:c.address,factoryData:i}:{factory:c.address,factoryData:i}},async getStubSignature(){return t.type===\"webAuthn\"?\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\":NL({ownerIndex:n,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(u){let d=await this.getAddress(),p=Dde({address:d,chainId:o.chain.id,hash:u.hash}),h=await nY({hash:p,owner:t});return NL({ownerIndex:n,signature:h})},async signMessage(u){let{message:d}=u,p=await this.getAddress(),h=Dde({address:p,chainId:o.chain.id,hash:fm(d)}),g=await nY({hash:h,owner:t});return NL({ownerIndex:n,signature:g})},async signTypedData(u){let{domain:d,types:p,primaryType:h,message:g}=u,y=await this.getAddress(),v=Dde({address:y,chainId:o.chain.id,hash:Lf({domain:d,message:g,primaryType:h,types:p})}),x=await nY({hash:v,owner:t});return NL({ownerIndex:n,signature:x})},async signUserOperation(u){let{chainId:d=o.chain.id}=u,p=J2t(u,[\"chainId\"]),h=await this.getAddress(),g=QD({chainId:d,entryPointAddress:a.address,entryPointVersion:a.version,userOperation:Object.assign(Object.assign({},p),{sender:h})}),y=await nY({hash:g,owner:t});return NL({ownerIndex:n,signature:y})},userOperation:{async estimateGas(u){var d;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((d=u.verificationGasLimit)!==null&&d!==void 0?d:BigInt(0)),8e5))}}}})}async function nY({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:n,webauthn:r}=await t.sign({hash:e});return X2t({signature:n,webauthn:r})}if(t.sign)return t.sign({hash:e});throw new Re(\"`owner` does not support raw sign.\")}function Dde({address:e,chainId:t,hash:n}){return Lf({domain:{chainId:t,name:\"Coinbase Smart Wallet\",verifyingContract:e,version:\"1\"},types:{CoinbaseSmartWalletMessage:[{name:\"hash\",type:\"bytes32\"}]},primaryType:\"CoinbaseSmartWalletMessage\",message:{hash:n}})}function X2t({webauthn:e,signature:t}){let{r:n,s:r}=O6(t);return Hi([{components:[{name:\"authenticatorData\",type:\"bytes\"},{name:\"clientDataJSON\",type:\"bytes\"},{name:\"challengeIndex\",type:\"uint256\"},{name:\"typeIndex\",type:\"uint256\"},{name:\"r\",type:\"uint256\"},{name:\"s\",type:\"uint256\"}],type:\"tuple\"}],[{authenticatorData:e.authenticatorData,clientDataJSON:Pu(e.clientDataJSON),challengeIndex:BigInt(e.challengeIndex),typeIndex:BigInt(e.typeIndex),r:n,s:r}])}function NL(e){let{ownerIndex:t=0}=e,n=(()=>{if(qr(e.signature)!==65)return e.signature;let r=C_(e.signature);return ZT([\"bytes32\",\"bytes32\",\"uint8\"],[r.r,r.s,r.yParity===0?27:28])})();return Hi([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:n}])}var J2t,RPe=Z(()=>{f();PK();pn();rL();c6();J2t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}});async function IPe({address:e,client:t,factory:n,factoryData:r,owner:o,ownerIndex:i,parentAddress:a,attribution:c}){var u;let d={address:e,factory:n,factoryData:r},p=(u=t.chain)===null||u===void 0?void 0:u.id;if(!p)throw Ft.rpc.internal(\"chainId not found\");let h=await CPe({owner:o,ownerIndex:i??1,address:e,client:t,factoryData:r}),g=async y=>{var v,x,R,S,M,P;try{switch(y.method){case\"wallet_addSubAccount\":return d;case\"eth_accounts\":return[d.address];case\"eth_coinbase\":return d.address;case\"net_version\":return p.toString();case\"eth_chainId\":return Ne(p);case\"eth_sendTransaction\":{ov(y.params);let z=y.params[0];Dl(z.to,Ft.rpc.invalidParams(\"to is required\"));let V={to:z.to,data:Uq((v=z.data)!==null&&v!==void 0?v:\"0x\",!0),value:Uq((x=z.value)!==null&&x!==void 0?x:\"0x\",!0),from:(R=z.from)!==null&&R!==void 0?R:d.address},Q=eY({calls:[V],chainId:p,from:V.from}),$=await g(Q);return $K({client:t,id:$})}case\"wallet_sendCalls\":{ov(y.params);let z=D6(y.params[0],\"chainId\");if(!z)throw Ft.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Ft.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Ft.rpc.invalidParams(\"params are required\");if(!(\"calls\"in y.params[0]))throw Ft.rpc.invalidParams(\"calls are required\");let V={method:\"wallet_prepareCalls\",params:[{version:\"1.0\",calls:y.params[0].calls,chainId:z,from:d.address,capabilities:\"capabilities\"in y.params[0]?y.params[0].capabilities:{}}]};a&&(V=JO(V,{funding:[{type:\"spendPermission\",data:{autoApply:!0,sources:[a],preference:\"PREFER_DIRECT_BALANCE\"}}]}));let Q=await g(V),$=await((M=(S=o).sign)===null||M===void 0?void 0:M.call(S,{hash:tm(Q.signatureRequest.hash)})),oe;if(!$)throw Ft.rpc.internal(\"signature not found\");return Xr($)?oe={type:\"secp256k1\",data:{address:o.address,signature:$}}:oe={type:\"webauthn\",data:{signature:JSON.stringify(SPe(Object.assign({id:(P=o.id)!==null&&P!==void 0?P:\"1\"},$))),publicKey:o.publicKey}},(await g({method:\"wallet_sendPreparedCalls\",params:[{version:\"1.0\",type:Q.type,data:Q.userOp,chainId:Q.chainId,signature:oe}]}))[0]}case\"wallet_sendPreparedCalls\":{ov(y.params);let z=D6(y.params[0],\"chainId\");if(!z)throw Ft.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Ft.rpc.invalidParams(\"chainId must be a hex encoded integer\");return await t.request({method:\"wallet_sendPreparedCalls\",params:y.params})}case\"wallet_prepareCalls\":{ov(y.params);let z=D6(y.params[0],\"chainId\");if(!z)throw Ft.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Ft.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Ft.rpc.invalidParams(\"params are required\");if(!D6(y.params[0],\"calls\"))throw Ft.rpc.invalidParams(\"calls are required\");let V=y.params[0];return c&&V.capabilities&&!(\"attribution\"in V.capabilities)&&(V.capabilities.attribution=c),await t.request({method:\"wallet_prepareCalls\",params:[Object.assign(Object.assign({},y.params[0]),{chainId:z})]})}case\"personal_sign\":{if(ov(y.params),!Xr(y.params[0]))throw Ft.rpc.invalidParams(\"message must be a hex encoded string\");let z=tm(y.params[0]);return h.signMessage({message:z})}case\"eth_signTypedData_v4\":{ov(y.params);let z=typeof y.params[1]==\"string\"?JSON.parse(y.params[1]):y.params[1];return h.signTypedData(z)}case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"wallet_addEthereumChain\":case\"wallet_switchEthereumChain\":default:throw Ft.rpc.methodNotSupported()}}catch(z){if(Eq(z)){let V=$Ie(z);if(V)throw V}throw z}};return{request:g}}var OPe=Z(()=>{f();eh();YD();K8();TPe();Nde();pn();kL();RPe()});async function rY({address:e,client:t,publicKey:n,factory:r,factoryData:o}){if(!await lm(t,{address:e})&&r&&o){let c=Jy({abi:bq,data:o});if(c.functionName!==\"createAccount\")throw Ft.rpc.internal(\"unknown factory function\");let[u]=c.args;return u.findIndex(d=>d.toLowerCase()===kPe(n).toLowerCase())}let a=await ui(t,{address:e,abi:Cd,functionName:\"ownerCount\"});for(let c=Number(a)-1;c>=0;c--){let u=await ui(t,{address:e,abi:Cd,functionName:\"ownerAtIndex\",args:[BigInt(c)]}),d=kPe(n);if(u.toLowerCase()===d.toLowerCase())return c}return-1}function kPe(e){return Un(e)?Ci(e):e}var Lde=Z(()=>{f();eh();pn();Jp();c6()});var oY=Z(()=>{f();jG()});async function NPe(){var e,t;let n=(t=(e=Ut.config.get().metadata)===null||e===void 0?void 0:e.appName)!==null&&t!==void 0?t:\"App\",r=$8();return new Promise(o=>{Y8({dialogContext:\"sub_account_add_owner\"}),r.presentItem({title:`Re-authorize ${n}`,message:`${n} has lost access to your account. Please sign at the next step to re-authorize ${n}`,onClose:()=>{Aq({dialogContext:\"sub_account_add_owner\"}),o(\"cancel\")},actionItems:[{text:\"Continue\",variant:\"primary\",onClick:()=>{iv({dialogContext:\"sub_account_add_owner\",dialogAction:\"confirm\"}),r.clear(),o(\"authenticate\")}},{text:\"Not now\",variant:\"secondary\",onClick:()=>{iv({dialogContext:\"sub_account_add_owner\",dialogAction:\"cancel\"}),r.clear(),o(\"cancel\")}}]})})}var PPe=Z(()=>{f();_q();$p();Pq()});async function MPe({ownerAccount:e,globalAccountRequest:t}){var n,r;let o=Ut.account.get(),i=Ut.subAccounts.get(),a=(n=o.accounts)===null||n===void 0?void 0:n.find(v=>v.toLowerCase()!==i?.address.toLowerCase());Dl(a,Ft.provider.unauthorized(\"no global account\")),Dl((r=o.chain)===null||r===void 0?void 0:r.id,Ft.provider.unauthorized(\"no chain id\")),Dl(i?.address,Ft.provider.unauthorized(\"no sub account\"));let c=[];if(e.type===\"local\"&&e.address&&c.push({to:i.address,data:vn({abi:Cd,functionName:\"addOwnerAddress\",args:[e.address]}),value:Zn(0)}),e.publicKey){let[v,x]=Dc([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);c.push({to:i.address,data:vn({abi:Cd,functionName:\"addOwnerPublicKey\",args:[v,x]}),value:Zn(0)})}let u={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:c,chainId:Ne(84532),from:a}]};if(await NPe()===\"cancel\")throw Ft.provider.unauthorized(\"user cancelled\");let p=await t(u),h=Zq(o.chain.id);if(Dl(h,Ft.rpc.internal(`client not found for chainId ${o.chain.id}`)),(await j0(h,{id:p})).status!==\"success\")throw Ft.rpc.internal(\"add owner call failed\");let y=await rY({address:i.address,publicKey:e.type===\"local\"&&e.address?e.address:e.publicKey,client:h});if(y===-1)throw Ft.rpc.internal(\"failed to find owner index\");return y}var DPe=Z(()=>{f();eh();ele();$p();K8();pn();oY();c6();Lde();PPe()});async function LPe({errorData:e,globalAccountAddress:t,subAccountAddress:n,client:r,request:o,subAccountRequest:i,globalAccountRequest:a}){var c;let u=(c=r.chain)===null||c===void 0?void 0:c.id;Dl(u,Ft.rpc.internal(\"invalid chainId\"));let d=vPe({errorData:e,sourceAddress:t}),p=await bPe();if(p===\"cancel\")throw new Error(\"User cancelled funding\");let h,g=3600*24,y=3;if(p===\"update_permission\"){if(d.length===1){let P=d[0],z=gPe({spendPermission:{token:P.token,allowance:Ne(P.requiredAmount*BigInt(y)),period:g,account:t,spender:n,start:0,end:0xffffffffffff,salt:Ne(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\"0x\"},chainId:u});h={method:\"eth_signTypedData_v4\",params:[t,z]}}else{let P=yPe({spendPermissionBatch:{account:t,period:g,start:0,end:0xffffffffffff,permissions:d.map(z=>({token:z.token,allowance:Ne(z.requiredAmount*BigInt(y)),period:g,account:t,spender:n,salt:\"0x0\",extraData:\"0x\"}))},chainId:u});h={method:\"eth_signTypedData_v4\",params:[t,P]}}try{await a(h)}catch(P){throw console.error(P),new Error(\"User denied spend permission request\")}return i(o)}let v=d.map(P=>P.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:n,value:Ne(P.requiredAmount),data:\"0x\"}:{to:P.token,value:\"0x0\",data:vn({abi:z2,functionName:\"transfer\",args:[n,P.requiredAmount]})}),x;if(o.method===\"wallet_sendCalls\"&&wPe(o.params))x=o.params[0];else if(o.method===\"eth_sendTransaction\"&&xPe(o.params))x=eY({calls:[o.params[0]],chainId:u,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let R=vn({abi:Cd,functionName:\"executeBatch\",args:[x.calls.map(P=>{var z,V;return{target:P.to,value:qn((z=P.value)!==null&&z!==void 0?z:\"0x0\"),data:(V=P.data)!==null&&V!==void 0?V:\"0x\"}})]}),S=[...v,{data:R,to:n,value:\"0x0\"}],M=await a({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},x),{calls:S,from:t})]});return o.method===\"eth_sendTransaction\"?$K({client:r,id:M}):M}var BPe=Z(()=>{f();eh();K8();pn();kL();c6()});var iY,UPe=Z(()=>{f();ix();pn();eh();xOe();kOe();NOe();YD();ele();tle();$p();K8();lke();nle();rle();JK();dPe();kL();OPe();Lde();DPe();BPe();iY=class{constructor(t){var n,r,o,i;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new XK;let{account:a,chains:c}=Ut.getState();this.accounts=(n=a.accounts)!==null&&n!==void 0?n:[],this.chain=(r=a.chain)!==null&&r!==void 0?r:{id:(i=(o=t.metadata.appChainIds)===null||o===void 0?void 0:o[0])!==null&&i!==void 0?i:1},c&&$ue(c)}get isConnected(){return this.accounts.length>0}async handshake(t){var n,r,o;let i=r1.get(t);mOe({method:t.method,correlationId:i});try{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let a=await this.createRequestMessage({handshake:{method:t.method,params:(o=t.params)!==null&&o!==void 0?o:[]}},i),c=await this.communicator.postRequestAndWaitForResponse(a);if(\"failure\"in c.content)throw c.content.failure;let u=await Xq(\"public\",c.sender);await this.keyManager.setPeerPublicKey(u);let d=await this.decryptResponseMessage(c);this.handleResponse(t,d),yOe({method:t.method,correlationId:i})}catch(a){throw gOe({method:t.method,correlationId:i,errorMessage:eO(a)}),a}}async request(t){let n=r1.get(t);bOe({method:t.method,correlationId:n});try{let r=await this._request(t);return wOe({method:t.method,correlationId:n}),r}catch(r){throw vOe({method:t.method,correlationId:n,errorMessage:eO(r)}),r}}async _request(t){var n,r,o,i,a,c,u,d,p,h;if(this.accounts.length===0)switch(t.method){case\"wallet_switchEthereumChain\":{Mde(t.params),this.chain.id=Number(t.params[0].chainId);return}case\"wallet_connect\":{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n)),await RL();let g={};APe(t,\"addSubAccount\")&&(g=(i=(o=Ut.subAccountsConfig.get())===null||o===void 0?void 0:o.capabilities)!==null&&i!==void 0?i:{});let y=JO(t,g);return this.sendRequestToPopup(y)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw Ft.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let g=r1.get(t);EOe({method:t.method,correlationId:g});try{let y=await this.sendRequestToSubAccountSigner(t);return AOe({method:t.method,correlationId:g}),y}catch(y){throw _Oe({method:t.method,correlationId:g,errorMessage:eO(y)}),y}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let g=Ut.subAccounts.get(),y=Ut.subAccountsConfig.get();return g?.address&&(this.accounts=y?.enableAutoSubAccounts?IL(this.accounts,g.address):OL(this.accounts,g.address)),(a=this.callback)===null||a===void 0||a.call(this,\"connect\",{chainId:Ne(this.chain.id)}),this.accounts}case\"eth_coinbase\":return this.accounts[0];case\"net_version\":return this.chain.id;case\"eth_chainId\":return Ne(this.chain.id);case\"wallet_getCapabilities\":return this.handleGetCapabilitiesRequest(t);case\"wallet_switchEthereumChain\":return this.handleSwitchChainRequest(t);case\"eth_ecRecover\":case\"personal_sign\":case\"wallet_sign\":case\"personal_ecRecover\":case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":case\"wallet_addEthereumChain\":case\"wallet_watchAsset\":case\"wallet_sendCalls\":case\"wallet_showCallsStatus\":case\"wallet_grantPermissions\":return this.sendRequestToPopup(t);case\"wallet_connect\":{let g=await _Pe();if(g)return g;await((u=(c=this.communicator).waitForPopupLoaded)===null||u===void 0?void 0:u.call(c)),await RL();let y=Ut.subAccountsConfig.get(),v=JO(t,(d=y?.capabilities)!==null&&d!==void 0?d:{}),x=await this.sendRequestToPopup(v);return(p=this.callback)===null||p===void 0||p.call(this,\"connect\",{chainId:Ne(this.chain.id)}),x}case\"wallet_getSubAccounts\":{let g=Ut.subAccounts.get();if(g?.address)return{subAccounts:[g]};if(!this.chain.rpcUrl)throw Ft.rpc.internal(\"No RPC URL set for chain\");let y=await TO(t,this.chain.rpcUrl);if(ov(y.subAccounts,\"subAccounts\"),y.subAccounts.length>0){oL(y.subAccounts[0]);let v=y.subAccounts[0];Ut.subAccounts.set({address:v.address,factory:v.factory,factoryData:v.factoryData})}return y}case\"wallet_addSubAccount\":return this.addSubAccount(t);case\"coinbase_fetchPermissions\":{hPe(t);let g=mPe(t),y=await TO(g,gq),v=So((h=g.params)===null||h===void 0?void 0:h[0].chainId);return Ut.spendPermissions.set(y.permissions.map(x=>Object.assign(Object.assign({},x),{chainId:v}))),y}default:if(!this.chain.rpcUrl)throw Ft.rpc.internal(\"No RPC URL set for chain\");return TO(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var n,r;await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let o=await this.sendEncryptedRequest(t),i=await this.decryptResponseMessage(o);return this.handleResponse(t,i)}async handleResponse(t,n){var r,o,i,a,c;let u=n.result;if(\"error\"in u)throw u.error;switch(t.method){case\"eth_requestAccounts\":{let d=u.value;this.accounts=d,Ut.account.set({accounts:d,chain:this.chain}),(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",d);break}case\"wallet_connect\":{let d=u.value,p=d.accounts.map(S=>S.address);this.accounts=p,Ut.account.set({accounts:p});let h=d.accounts.at(0),g=h?.capabilities;if(g?.subAccounts){let S=g?.subAccounts;ov(S,\"subAccounts\"),oL(S[0]),Ut.subAccounts.set({address:S[0].address,factory:S[0].factory,factoryData:S[0].factoryData})}let y=[this.accounts[0]],v=Ut.subAccounts.get(),x=Ut.subAccountsConfig.get();v?.address&&(this.accounts=x?.enableAutoSubAccounts?IL(this.accounts,v.address):OL(this.accounts,v.address));let R=(i=(o=d?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||i===void 0?void 0:i.spendPermissions;R&&\"permissions\"in R&&Ut.spendPermissions.set(R?.permissions),(a=this.callback)===null||a===void 0||a.call(this,\"accountsChanged\",y);break}case\"wallet_addSubAccount\":{oL(u.value);let d=u.value;Ut.subAccounts.set(d);let p=Ut.subAccountsConfig.get();this.accounts=p?.enableAutoSubAccounts?IL(this.accounts,d.address):OL(this.accounts,d.address),(c=this.callback)===null||c===void 0||c.call(this,\"accountsChanged\",this.accounts);break}default:break}return u.value}async cleanup(){var t,n;let r=Ut.config.get().metadata;await this.keyManager.clear(),Ut.account.clear(),Ut.subAccounts.clear(),Ut.spendPermissions.clear(),Ut.chains.clear(),this.accounts=[],this.chain={id:(n=(t=r?.appChainIds)===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(t){Mde(t.params);let n=hOe(t.params[0].chainId);if(this.updateChain(n))return null;let o=await this.sendRequestToPopup(t);return o===null&&this.updateChain(n),o}async handleGetCapabilitiesRequest(t){pPe(t.params);let n=t.params[0],r=t.params[1];if(!this.accounts.some(c=>Pl(c,n)))throw Ft.provider.unauthorized(\"no active account found when getting capabilities\");let o=Ut.getState().account.capabilities;if(!o)return{};if(!r||r.length===0)return o;let i=new Set(r.map(c=>So(c)));return Object.fromEntries(Object.entries(o).filter(([c])=>{try{let u=So(c);return i.has(u)}catch{return!1}}))}async sendEncryptedRequest(t){let n=await this.keyManager.getSharedSecret();if(!n)throw Ft.provider.unauthorized(\"No shared secret found when encrypting request\");let r=await hke({action:t,chainId:this.chain.id},n),o=r1.get(t),i=await this.createRequestMessage({encrypted:r},o);return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(t,n){let r=await Jq(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:n,sender:r,content:t,timestamp:new Date}}async decryptResponseMessage(t){var n,r,o;let i=t.content;if(\"failure\"in i)throw i.failure;let a=await this.keyManager.getSharedSecret();if(!a)throw Ft.provider.unauthorized(\"Invalid session: no shared secret found when decrypting response\");let c=await mke(i.encrypted,a),u=(n=c.data)===null||n===void 0?void 0:n.chains;if(u){let p=(r=c.data)===null||r===void 0?void 0:r.nativeCurrencies,h=Object.entries(u).map(([g,y])=>{let v=p?.[Number(g)];return Object.assign({id:Number(g),rpcUrl:y},v?{nativeCurrency:v}:{})});Ut.chains.set(h),this.updateChain(this.chain.id,h),$ue(h)}let d=(o=c.data)===null||o===void 0?void 0:o.capabilities;return d&&Ut.account.set({capabilities:d}),c}updateChain(t,n){var r;let o=Ut.getState(),i=n??o.chains,a=i?.find(c=>c.id===t);return a?(a!==this.chain&&(this.chain=a,Ut.account.set({chain:a}),(r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",Bq(a.id))),!0):!1}async addSubAccount(t){var n,r,o,i;let c=Ut.getState().subAccount,u=Ut.subAccountsConfig.get();if(c?.address)return this.accounts=u?.enableAutoSubAccounts?IL(this.accounts,c.address):OL(this.accounts,c.address),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",this.accounts),c;if(await((o=(r=this.communicator).waitForPopupLoaded)===null||o===void 0?void 0:o.call(r)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&t.params[0].account.type===\"create\"){let p;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)p=t.params[0].account.keys;else{let h=(i=Ut.subAccountsConfig.get())!==null&&i!==void 0?i:{},{account:g}=h.toOwnerAccount?await h.toOwnerAccount():await M6();if(!g)throw Ft.provider.unauthorized(\"could not get subaccount owner account when adding sub account\");p=[{type:g.address?\"address\":\"webauthn-p256\",publicKey:g.address||g.publicKey}]}t.params[0].account.keys=p}let d=await this.sendRequestToPopup(t);return oL(d),d}shouldRequestUseSubAccountSigner(t){let n=Pde(t),r=Ut.subAccounts.get();return n?n.toLowerCase()===r?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(t){var n;let r=Ut.subAccounts.get(),o=Ut.subAccountsConfig.get(),i=Ut.config.get();Dl(r?.address,Ft.provider.unauthorized(\"no active sub account when sending request to sub account signer\"));let a=o?.toOwnerAccount?await o.toOwnerAccount():await M6();Dl(a?.account,Ft.provider.unauthorized(\"no active sub account owner when sending request to sub account signer\")),Pde(t)===void 0&&(t=fPe(t,r.address));let u=Zq(this.chain.id);Dl(u,Ft.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let d=this.accounts.find(v=>v.toLowerCase()!==r.address.toLowerCase());Dl(d,Ft.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let p=EPe({attribution:(n=i.preference)===null||n===void 0?void 0:n.attribution,dappOrigin:window.location.origin}),h=a.account.type===\"local\"?a.account.address:a.account.publicKey,g=await rY({address:r.address,factory:r.factory,factoryData:r.factoryData,publicKey:h,client:u});if(g===-1){let v=r1.get(t);SOe({method:t.method,correlationId:v});try{g=await MPe({ownerAccount:a.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),TOe({method:t.method,correlationId:v})}catch(x){return COe({method:t.method,correlationId:v,errorMessage:eO(x)}),Ft.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:y}=await IPe({address:r.address,owner:a.account,client:u,factory:r.factory,factoryData:r.factoryData,parentAddress:d,attribution:p?{suffix:p}:void 0,ownerIndex:g});try{return await y(t)}catch(v){let x;if(Eq(v))x=JSON.parse(v.details);else if(Iue(v))x=v;else throw v;if(!(Iue(x)&&x.data)||!x.data)throw v;let R=r1.get(t);ROe({method:t.method,correlationId:R});try{let S=await LPe({errorData:x.data,globalAccountAddress:d,subAccountAddress:r.address,client:u,request:t,subAccountRequest:y,globalAccountRequest:this.request.bind(this)});return IOe({method:t.method,correlationId:R}),S}catch(S){throw console.error(S),OOe({method:t.method,correlationId:R,errorMessage:eO(S)}),v}}}}});var $2t,aY,FPe=Z(()=>{f();tOe();ix();WD();eh();rOe();oOe();cOe();YD();UPe();kL();tle();$p();rle();$2t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},aY=class extends Dq{constructor(t){var{metadata:n}=t,r=t.preference,{walletUrl:o}=r,i=$2t(r,[\"walletUrl\"]);super(),this.isBaseAccount=!0,this.communicator=new Mq({url:o,metadata:n,preference:i}),this.signer=new iY({metadata:n,communicator:this.communicator,callback:this.emit.bind(this)})}async request(t){let n=crypto.randomUUID();r1.set(t,n),iOe({method:t.method,correlationId:n});try{let r=await this._request(t);return sOe({method:t.method,correlationId:n}),r}catch(r){throw aOe({method:t.method,correlationId:n,errorMessage:r instanceof Error?r.message:\"\"}),r}finally{r1.delete(t)}}async _request(t){var n,r;try{if(gke(t),!this.signer.isConnected)switch(t.method){case\"eth_requestAccounts\":{await this.signer.handshake({method:\"handshake\"}),await RL(),await this.signer.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:Object.assign({},(r=(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.capabilities)!==null&&r!==void 0?r:{})}]});break}case\"wallet_connect\":return await this.signer.handshake({method:\"handshake\"}),await this.signer.request(t);case\"wallet_sendCalls\":case\"wallet_sign\":try{return await this.signer.handshake({method:\"handshake\"}),await this.signer.request(t)}finally{await this.signer.cleanup()}case\"wallet_getCallsStatus\":return await TO(t,gq);case\"eth_accounts\":return[];case\"net_version\":return 1;case\"eth_chainId\":return Bq(1);default:throw Ft.provider.unauthorized(\"Must call \\'eth_requestAccounts\\' before other methods\")}return await this.signer.request(t)}catch(o){let{code:i}=o;return i===Na.provider.unauthorized&&await this.disconnect(),Promise.reject(nOe(o))}}async disconnect(){await this.signer.cleanup(),r1.clear(),this.emit(\"disconnect\",Ft.provider.disconnected(\"User initiated disconnection\"))}}});function HPe(){var e,t;let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n?.[ext]?n:null}var ext,zPe=Z(()=>{f();ext=\"isCoinbaseBrowser\"});function sY(e){var t,n,r,o;let i={metadata:{appName:e.appName||\"App\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:(t=e.preference)!==null&&t!==void 0?t:{},paymasterUrls:e.paymasterUrls};!((n=e.subAccounts)===null||n===void 0)&&n.toOwnerAccount&&kue(e.subAccounts.toOwnerAccount),Ut.subAccountsConfig.set({toOwnerAccount:(r=e.subAccounts)===null||r===void 0?void 0:r.toOwnerAccount,enableAutoSubAccounts:(o=e.subAccounts)===null||o===void 0?void 0:o.enableAutoSubAccounts}),Ut.config.set(i),Ut.persist.rehydrate(),e8e(),n8e(i.preference),i.preference.telemetry!==!1&&VIe();let a=null,c={getProvider:()=>{var u;return a||(a=(u=HPe())!==null&&u!==void 0?u:new aY(i)),a},subAccount:{async create(u){var d;return await((d=c.getProvider())===null||d===void 0?void 0:d.request({method:\"wallet_addSubAccount\",params:[{version:\"1\",account:u}]}))},async get(){var u,d;let p=Ut.subAccounts.get();if(p?.address)return p;let g=(d=(await((u=c.getProvider())===null||u===void 0?void 0:u.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||d===void 0?void 0:d.subAccounts;return Array.isArray(g)?g[0]:null},addOwner:async({address:u,publicKey:d,chainId:p})=>{var h,g;let y=Ut.subAccounts.get(),v=Ut.account.get();Dl(v,new Error(\"account does not exist\")),Dl(y?.address,new Error(\"subaccount does not exist\"));let x=[];if(d){let[R,S]=Dc([{type:\"bytes32\"},{type:\"bytes32\"}],d);x.push({to:y.address,data:vn({abi:Cd,functionName:\"addOwnerPublicKey\",args:[R,S]}),value:Zn(0)})}return u&&x.push({to:y.address,data:vn({abi:Cd,functionName:\"addOwnerAddress\",args:[u]}),value:Zn(0)}),await((h=c.getProvider())===null||h===void 0?void 0:h.request({method:\"wallet_sendCalls\",params:[{calls:x,chainId:Zn(p),from:(g=v.accounts)===null||g===void 0?void 0:g[0],version:\"1\"}]}))},setToOwnerAccount(u){kue(u),Ut.subAccountsConfig.set({toOwnerAccount:u})}}};return c}var Bde=Z(()=>{f();GIe();c6();$p();K8();Oue();r8e();pn();FPe();zPe()});var L6,XO,cY,PL=Z(()=>{f();L6={USDC:{decimals:6,addresses:{base:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",baseSepolia:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\"}}},XO={base:8453,baseSepolia:84532},cY=[{name:\"transfer\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{name:\"to\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bool\"}]},{name:\"Transfer\",type:\"event\",anonymous:!1,inputs:[{name:\"from\",type:\"address\",indexed:!0},{name:\"to\",type:\"address\",indexed:!0},{name:\"value\",type:\"uint256\",indexed:!1}]}]});var jPe,WPe,VPe,GPe,ML,Ude,Fde=Z(()=>{f();u6();jPe=({amount:e,testnet:t,correlationId:n})=>{wo(\"payment.pay.started\",{action:to.process,componentType:eo.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t},no.high)},WPe=({amount:e,testnet:t,correlationId:n,errorMessage:r})=>{wo(\"payment.pay.error\",{action:to.error,componentType:eo.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t,errorMessage:r},no.high)},VPe=({amount:e,testnet:t,correlationId:n})=>{wo(\"payment.pay.completed\",{action:to.process,componentType:eo.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t},no.high)},GPe=({testnet:e,correlationId:t})=>{wo(\"payment.status_check.started\",{action:to.process,componentType:eo.unknown,method:\"getPaymentStatus\",correlationId:t,signerType:\"base-account\",testnet:e},no.low)},ML=({testnet:e,status:t,correlationId:n})=>{wo(\"payment.status_check.completed\",{action:to.process,componentType:eo.unknown,method:\"getPaymentStatus\",correlationId:n,signerType:\"base-account\",testnet:e,status:t},no.low)},Ude=({testnet:e,correlationId:t,errorMessage:n})=>{wo(\"payment.status_check.error\",{action:to.error,componentType:eo.unknown,method:\"getPaymentStatus\",correlationId:t,errorMessage:n,signerType:\"base-account\",testnet:e},no.low)}});async function DL(e){var t;let{id:n,testnet:r=!1,telemetry:o=!0}=e,i=crypto.randomUUID();o&&GPe({testnet:r,correlationId:i});try{let a=r?\"https://api.developer.coinbase.com/rpc/v1/base-sepolia/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O\":\"https://api.developer.coinbase.com/rpc/v1/base/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O\",c=await fetch(a,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({jsonrpc:\"2.0\",id:1,method:\"eth_getUserOperationReceipt\",params:[n]})}).then(h=>h.json());if(c.error){console.error(\"[getPaymentStatus] RPC error:\",c.error);let h=c.error.message||\"Network error\";return o&&Ude({testnet:r,correlationId:i,errorMessage:h}),{status:\"failed\",id:n,message:\"Unable to check payment status. Please try again later.\",error:h}}if(!c.result){let h=await fetch(a,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({jsonrpc:\"2.0\",id:2,method:\"eth_getUserOperationByHash\",params:[n]})}).then(y=>y.json());return h.result?(o&&ML({testnet:r,status:\"pending\",correlationId:i}),{status:\"pending\",id:n,message:\"Your payment is being processed. This usually takes a few seconds.\",sender:h.result.sender}):(o&&ML({testnet:r,status:\"not_found\",correlationId:i}),{status:\"not_found\",id:n,message:\"Payment not found. Please check your transaction ID.\"})}let{success:u,receipt:d,reason:p}=c.result;if(u){let h,g;if(d?.logs){let v=r?\"baseSepolia\":\"base\",x=L6.USDC.addresses[v].toLowerCase();for(let R of d.logs)if(((t=R.address)===null||t===void 0?void 0:t.toLowerCase())===x)try{let S=X2({abi:cY,data:R.data,topics:R.topics});if(S.eventName===\"Transfer\"&&S.args){let M=S.args;if(M.value&&M.to){h=na(M.value,6),g=M.to;break}}}catch(S){console.error(\"[getPaymentStatus] Error parsing log:\",S)}}return o&&ML({testnet:r,status:\"completed\",correlationId:i}),{status:\"completed\",id:n,message:\"Payment completed successfully\",sender:c.result.sender,amount:h,recipient:g}}else{let h=\"Payment could not be completed\";return p&&(p.toLowerCase().includes(\"insufficient\")?h=\"Insufficient USDC balance\":p.toLowerCase().includes(\"revert\")?h=\"Payment was rejected\":h=p),o&&ML({testnet:r,status:\"failed\",correlationId:i}),{status:\"failed\",id:n,message:\"Payment failed\",sender:c.result.sender,error:h}}}catch(a){console.error(\"[getPaymentStatus] Error checking status:\",a);let c=a instanceof Error?a.message:\"Connection error\";return o&&Ude({testnet:r,correlationId:i,errorMessage:c}),{status:\"failed\",id:n,message:\"Unable to check payment status\",error:c}}}var Hde=Z(()=>{f();pn();Fde();PL()});function txt(e,t,n=!0){let r=typeof window<\"u\"?window.location.origin:\"Base Pay SDK\";return sY({appName:r,appChainIds:[e],preference:{telemetry:n,walletUrl:t}})}async function nxt(e,t){var n;let o=await e.getProvider().request({method:\"wallet_sendCalls\",params:[t]}),i,a;if(typeof o==\"string\"&&o.length>=66)i=o.slice(0,66);else if(typeof o==\"object\"&&o!==null){let c=o;if(typeof c.id==\"string\"&&c.id.length>=66)i=c.id.slice(0,66),!((n=c.capabilities)===null||n===void 0)&&n.dataCallback&&(a=c.capabilities.dataCallback);else throw new Error(`Could not extract transaction hash from object response. Available fields: ${Object.keys(c).join(\", \")}`)}else throw new Error(`Unexpected response format from wallet_sendCalls: expected string with length > 66 or object with id, got ${typeof o}`);return{transactionHash:i,payerInfoResponses:a}}async function qPe(e,t,n,r=!0){let i=XO[t?\"baseSepolia\":\"base\"],a=txt(i,n,r),c=a.getProvider();try{return await nxt(a,e)}finally{await c.disconnect()}}var KPe=Z(()=>{f();Bde();PL()});function rxt(e,t){let n=A_(t,L6.USDC.decimals);return vn({abi:cY,functionName:\"transfer\",args:[e,n]})}function oxt(e,t,n){let r=t?\"baseSepolia\":\"base\",o=XO[r],a={to:L6.USDC.addresses[r],data:e,value:\"0x0\"},c={};return n&&n.requests.length>0&&(c.dataCallback={requests:n.requests.map(d=>{var p;return{type:d.type,optional:(p=d.optional)!==null&&p!==void 0?p:!1}}),callbackURL:n.callbackURL}),{version:\"2.0.0\",chainId:o,calls:[a],capabilities:c}}function YPe(e,t,n,r){let o=rxt(e,t);return oxt(o,n,r)}var ZPe=Z(()=>{f();pn();PL()});function QPe(e,t){if(typeof e!=\"string\")throw new Error(\"Invalid amount: must be a string\");let n=parseFloat(e);if(isNaN(n))throw new Error(\"Invalid amount: must be a valid number\");if(n<=0)throw new Error(\"Invalid amount: must be greater than 0\");let r=e.indexOf(\".\");if(r!==-1&&e.length-r-1>t)throw new Error(`Invalid amount: pay only supports up to ${t} decimal places`)}function JPe(e){if(!e)throw new Error(\"Invalid address: address is required\");if(!Un(e))throw new Error(\"Invalid address: must be a valid Ethereum address\")}var XPe=Z(()=>{f();pn()});async function LL(e){var t;let{amount:n,to:r,testnet:o=!1,payerInfo:i,walletUrl:a,telemetry:c=!0}=e,u=crypto.randomUUID();c&&jPe({amount:n,testnet:o,correlationId:u});try{QPe(n,2),JPe(r);let d=YPe(r,n,o,i),p=await qPe(d,o,a,c);return c&&VPe({amount:n,testnet:o,correlationId:u}),{success:!0,id:p.transactionHash,amount:n,to:r,payerInfoResponses:p.payerInfoResponses}}catch(d){let p=\"Unknown error occurred\";if(d instanceof Error)p=d.message;else if(typeof d==\"string\")p=d;else if(d&&typeof d==\"object\"){let h=d;typeof h?.message==\"string\"?p=h.message:typeof((t=h?.error)===null||t===void 0?void 0:t.message)==\"string\"?p=h.error.message:typeof h?.reason==\"string\"&&(p=h.reason)}return c&&WPe({amount:n,testnet:o,correlationId:u,errorMessage:p}),{success:!1,error:p,amount:n,to:r}}}var zde=Z(()=>{f();Fde();KPe();ZPe();XPe()});var jde,$Pe=Z(()=>{f();PL();Hde();zde();jde={pay:LL,getPaymentStatus:DL,constants:{CHAIN_IDS:XO,TOKENS:L6},types:{}}});var e9e=Z(()=>{f();$Pe();Hde();zde()});var t9e={};qa(t9e,{base:()=>jde,createBaseAccountSDK:()=>sY,getCryptoKeyAccount:()=>M6,getPaymentStatus:()=>DL,pay:()=>LL,removeCryptoKey:()=>sPe});var n9e=Z(()=>{f();Bde();JK();e9e()});var tg,uY,B6=Z(()=>{f();tg=\"4.3.6\",uY=\"@coinbase/wallet-sdk\"});var ixt,axt,sxt,cxt,uxt,lxt,dxt,lc,fxt,pxt,hxt,mxt,gxt,yxt,Wde,bxt,Bt,ng=Z(()=>{f();_ue();s6();B6();ixt=()=>({chains:[]}),axt=()=>({keys:{}}),sxt=()=>({account:{}}),cxt=()=>({subAccount:void 0}),uxt=()=>({subAccountConfig:{}}),lxt=()=>({spendPermissions:[]}),dxt=()=>({config:{version:tg}}),lc=Q0(yq((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ixt(...e)),axt(...e)),sxt(...e)),cxt(...e)),lxt(...e)),dxt(...e)),uxt(...e)),{name:\"cbwsdk.store\",storage:jD(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),fxt={get:()=>lc.getState().subAccountConfig,set:e=>{lc.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{lc.setState({subAccountConfig:{}})}},pxt={get:()=>lc.getState().subAccount,set:e=>{lc.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{lc.setState({subAccount:void 0})}},hxt={get:()=>lc.getState().spendPermissions,set:e=>{lc.setState({spendPermissions:e})},clear:()=>{lc.setState({spendPermissions:[]})}},mxt={get:()=>lc.getState().account,set:e=>{lc.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{lc.setState({account:{}})}},gxt={get:()=>lc.getState().chains,set:e=>{lc.setState({chains:e})},clear:()=>{lc.setState({chains:[]})}},yxt={get:e=>lc.getState().keys[e],set:(e,t)=>{lc.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[e]:t})}))},clear:()=>{lc.setState({keys:{}})}},Wde={get:()=>lc.getState().config,set:e=>{lc.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},bxt={subAccounts:pxt,subAccountsConfig:fxt,spendPermissions:hxt,account:mxt,chains:gxt,keys:yxt,config:Wde},Bt=Object.assign(Object.assign({},lc),bxt)});var r9e,o9e=Z(()=>{f();r9e=\\'!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\"\")}}};e.exports=t},562:e=>{var t,n;t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\"\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\"=\");return n.join(\"\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\"\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\"binary\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\"Illegal argument \"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\"mark.\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\"4g\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\"Perfume.js:\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\"slow-2g\":case\"2g\":case\"3g\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\"number\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\"CLS\",\"INP\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\"serviceWorker\"in c?c.serviceWorker.controller?\"controlled\":\"supported\":\"unsupported\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\"CLS\",\"INP\"].includes(e)?u():(s=u,\"requestIdleCallback\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\"self\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\"good\":t<=L[e][1]?\"needsImprovement\":\"poor\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\"number\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\"FCP\"===n&&(b.value=i),[\"FCP\",\"LCP\"].includes(n)&&!T[0]&&(T[0]=S(\"longtask\",I)),\"FID\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\"TBT\",rating:U(\"TBT\",w.value),value:w.value,navigationType:o}),R(\"dataConsumption\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},z=function(e){if(\"loading\"===document.readyState)return\"loading\";var t=F();if(t){if(e<t.domInteractive)return\"loading\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\"dom-interactive\";if(0===t.domComplete||e<t.domComplete)return\"dom-content-loaded\"}return\"complete\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\"\")},$=function(e,t){var n=\"\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\"#\"+r.id:K(r)+(r.className&&r.className.length?\".\"+r.className.replace(/\\\\\\\\s+/g,\".\"):\"\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\">\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\"navigate\";return W()>=0?r=\"back-forward-cache\":n&&(r=document.prerendering||V()>0?\"prerender\":document.wasDiscarded?\"restore\":n.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\"pagehide\"!==r.type&&\"hidden\"!==document.visibilityState||(e(r),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\"poor\":e>t[0]?\"needs-improvement\":\"good\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\"hidden\"===document.visibilityState&&te>-1&&(te=\"visibilitychange\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\"visibilitychange\",re,!0),addEventListener(\"prerenderingchange\",re,!0)},ae=function(){removeEventListener(\"visibilitychange\",re,!0),removeEventListener(\"prerenderingchange\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\"FCP\"),o=X(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\"FCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\"first-input\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",n,ce),removeEventListener(\"pointercancel\",r,ce)};addEventListener(\"pointerup\",n,ce),addEventListener(\"pointercancel\",r,ce)}(t,e):le(t,e)}},me=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\"TTFB\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\"TTFB\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\"ET\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\"resourceTiming\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\"CLS\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\"layout-shift\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\"CLS\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\"FID\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\"first-input\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\"FID\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\"LCP\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\"largest-contentful-paint\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\"LCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\"resource\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\"interactionCount\"in performance||D||(D=X(\"event\",be,{type:\"event\",buffered:!0,durationThreshold:0}));var r,i=J(\"INP\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\"first-input\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\"event\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\"first-input\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\"INP\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\"resource\",je),a.isElementTiming&&S(\"element\",Oe)},Ie=function(e){var t=\"usageDetails\"in e?e.usageDetails:{};R(\"storageEstimate\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\"step.\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\"good\":e<=t[1]?\"needsImprovement\":\"poor\"}(d,c);d>=0&&(N(\"userJourneyStep\",d,m,{stepName:e},void 0),u.measure(\"step.\".concat(e,\"_vitals_\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\"stepVital\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\"\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\"9.0.0-rc.3\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\"PerformanceObserver\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\"visibilitychange\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\"navigation\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\"navigationTiming\",t),t.redirectTime&&q({attribution:{},name:\"RT\",rating:U(\"RT\",t.redirectTime),value:t.redirectTime}),R(\"networkInformation\",function(){if(\"connection\"in c){var e=c.connection;return\"object\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\"function\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\"mark_\".concat(e,\"_start\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\"mark_\".concat(e,\"_end\")),delete g[e];var r=function(e){u.measure(e,\"mark_\".concat(e,\"_start\"),\"mark_\".concat(e,\"_end\"));var t=u.getEntriesByName(e).pop();return t&&\"measure\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\"mark_\".concat(e,\"_start\")),u.clearMarks(\"mark_\".concat(e,\"_end\")))},e.prototype.markNTBT=function(){var e=this;this.start(\"ntbt\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\"ntbt\",{},!1),q({attribution:{},name:\"NTBT\",rating:U(\"NTBT\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\"use strict\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\"use strict\";var o=\"function\",s=\"undefined\",c=\"object\",u=\"string\",l=\"major\",d=\"model\",p=\"name\",m=\"type\",f=\"vendor\",v=\"version\",g=\"architecture\",b=\"console\",h=\"mobile\",w=\"tablet\",y=\"smarttv\",T=\"wearable\",k=\"embedded\",_=\"Amazon\",S=\"Apple\",E=\"ASUS\",x=\"BlackBerry\",O=\"Browser\",j=\"Chrome\",N=\"Firefox\",I=\"Google\",P=\"Huawei\",M=\"LG\",B=\"Microsoft\",C=\"Motorola\",D=\"Opera\",A=\"Samsung\",L=\"Sharp\",U=\"Sony\",R=\"Xiaomi\",q=\"Zebra\",F=\"Facebook\",z=\"Chromium OS\",K=\"Mac OS\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\"\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\"?\"===n?a:n}else if(Q(t[n],e))return\"?\"===n?a:n;return e},X={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Chrome\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Edge\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Mini\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"UC\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\"WeChat(Win) Desktop\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"WeChat\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Konqueror\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\"IE\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Yandex\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 Secure \"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" Focus\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Touch\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Coc Coc\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Dolphin\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Coast\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"MIUI \"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\"360 \"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 \"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\" \"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\"GSA\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"TikTok\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\" Headless\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\" WebView\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\"Android \"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\"Mobile Safari\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\"Netscape\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\" Reality\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\"amd64\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\"ia32\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\"arm64\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[g,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\"\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\"OPPO\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\"Vivo\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\"Realme\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\"Lenovo\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\" \"],[f,\"Nokia\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\"Xperia Tablet\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\"OnePlus\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\"HTC\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\" \"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\"Acer\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\"Meizu\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\"Fairphone\"],[m,h]],[/(u304aa)/i],[d,[f,\"AT&T\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\"Siemens\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\"RCA\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\"Dell\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\"Verizon\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\"Barnes & Noble\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\"NuVision\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\"ZTE\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\"ZTE\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\"Swiss\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\"Swiss\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\"Zeki\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\"Dragon Touch\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\"Insignia\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\"NextBook\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\"Voice\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\"LvTel\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\"Essential\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\"Envizen\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\"MachSpeed\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\"Rotor\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\"Nvidia\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\" \"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\"SmartTV\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\" TV\"],[m,y]],[/crkey/i],[[d,j+\"cast\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\"Nvidia\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\"Generic\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"EdgeHTML\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Blink\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\"Windows\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\".\"],[p,\"iOS\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\".\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\"Symbian\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" OS\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"webOS\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\"watchOS\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\"cast\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\"Solaris\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\"\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\"\").split(\".\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\"Brave\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\"Macintosh\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\"iPad\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\"Unknown\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.35\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\"object\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{\"use strict\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\"fbclid\",e.gclid=\"gclid\",e.msclkid=\"msclkid\",e.ptclid=\"ptclid\",e.ttclid=\"ttclid\",e.utm_source=\"utm_source\",e.utm_medium=\"utm_medium\",e.utm_campaign=\"utm_campaign\",e.utm_term=\"utm_term\",e.utm_content=\"utm_content\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\"low\",e.high=\"high\",e}({}),d=function(e){return e.count=\"count\",e.rate=\"rate\",e.gauge=\"gauge\",e.distribution=\"distribution\",e.histogram=\"histogram\",e}({}),p=function(e){return e.commerce_merchant=\"commerce_merchant\",e.device=\"device\",e.edp_fingerprint_id=\"edp_fingerprint_id\",e.nft_user=\"nft_user\",e.user=\"user\",e.wallet_user=\"wallet_user\",e.uuid=\"user_uuid\",e}({}),m=function(e){return e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\",e}({}),f=function(e){return e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e}({}),v=function(e){return e.unknown=\"unknown\",e.web=\"web\",e.android=\"android\",e.ios=\"ios\",e.mobile_web=\"mobile_web\",e.tablet_web=\"tablet_web\",e.server=\"server\",e.windows=\"windows\",e.macos=\"macos\",e.extension=\"extension\",e}({}),g=function(e){return e.web=\"Web\",e.ios=\"iOS\",e.android=\"Android\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\"notLoggedIn\",e[e.loggedIn=1]=\"loggedIn\",e}({}),h=function(e){return e.ac=\"ac\",e.af=\"af\",e.ah=\"ah\",e.al=\"al\",e.am=\"am\",e.ar=\"ar\",e.as=\"as\",e}({}),w=function(e){return e.pv=\"pv\",e}({}),y=function(e){return e.xs=\"xs\",e.s=\"s\",e.m=\"m\",e.l=\"l\",e.xl=\"xl\",e.xxl=\"xxl\",e}({});const T=\"https://analytics-service-dev.cbhq.net\",k=3e5,_=5e3,S=\"analytics-db\",E=\"experiment-exposure-db\",x=\"Analytics SDK:\",O=Object.values(e),j=\"pageview\",N=\"session_duration\",I={navigationTiming:{eventName:\"perf_navigation_timing\"},redirectTime:{eventName:\"perf_redirect_time\"},RT:{eventName:\"perf_redirect_time\"},TTFB:{eventName:\"perf_time_to_first_byte\"},networkInformation:{eventName:\"perf_network_information\"},storageEstimate:{eventName:\"perf_storage_estimate\"},FCP:{eventName:\"perf_first_contentful_paint\"},FID:{eventName:\"perf_first_input_delay\"},LCP:{eventName:\"perf_largest_contentful_paint\"},CLS:{eventName:\"perf_cumulative_layout_shift\"},TBT:{eventName:\"perf_total_blocking_time\"},NTBT:{eventName:\"perf_navigation_total_blocking_time\"},INP:{eventName:\"perf_interact_to_next_paint\"},ET:{eventName:\"perf_element_timing\"},userJourneyStep:{eventName:\"perf_user_journey_step\"}},P=\"1\",M=\"web\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\"/amp\",metricsEndPoint:e+\"/metrics\",exposureEndpoint:e+\"/track-exposures\",tracesEndpoint:e+\"/traces\"}}const A=B({authCookie:\"logged_in\",amplitudeApiKey:\"\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\"\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\"https://analytics-service-internal-dev.cbhq.net\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\"https://analytics-service-internal.cbhq.net\":\"https://as.coinbase.com\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\"android\"===A.platform}function F(){return\"ios\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\"serviceWorker\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\"(max-width: 560px)\").matches:return v.mobile_web;case window.matchMedia(\"(max-width: 1024px, min-width: 561px)\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\"requestIdleCallback\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\"ua_parser_start\");const t=new(Q())(null!=(e=W.userAgent)?e:\"\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\"ua_parser_end\"),performance.measure(\"ua_parser\",\"ua_parser_start\",\"ua_parser_end\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\"\",pageKeyRegex:{},pagePath:\"\",prevPageKey:\"\",prevPagePath:\"\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\"\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\"\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\"\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\"\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\"\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\"action\",\"component_type\",\"component_name\",\"context\",\"logging_id\"],ke=[\"num_non_hardware_accounts\",\"ujs\"],_e=\"ujs_\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\"IdentityFlow property names must have snake case format\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\"SDK platform not initialized\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\"done\"===t)return Ke.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||$e.get(e);if(\"store\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e};function Ve(e){return\"function\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"complete\",i),e.removeEventListener(\"error\",a),e.removeEventListener(\"abort\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\"AbortError\",\"AbortError\")),r()};e.addEventListener(\"complete\",i),e.addEventListener(\"error\",a),e.addEventListener(\"abort\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"success\",i),e.removeEventListener(\"error\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\"success\",i),e.addEventListener(\"error\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"],Ze=[\"put\",\"add\",\"delete\",\"clear\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\"string\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\"\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\"readwrite\":\"readonly\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\"IndexedDB:Get:InternalError\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\"IndexedDB:Set:InternalError\"))}},st=()=>{\"server\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\"rgb(5,177,105)\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\"Started new session:\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\"@cbhq/client-analytics\",version:\"10.6.0\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\"true\":\"false\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\"application/x-www-form-urlencoded; charset=UTF-8\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\"application/json\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\"POST\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\"Content-Type\",kt),H.jwt&&e.setRequestHeader(\"authorization\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\"sendBeacon\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\"Content-Type\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\"POST\",mode:\"no-cors\",headers:e,body:c}).catch((e=>{i(e,{context:\"AnalyticsSDKApiError\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\"\";return Et()(\"2\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\"CircularJsonReference\",this.message=e,\"function\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\"DomReferenceInAnalyticsEvent\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\"userId not set in Logged-in\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\", \"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\"string\",\"number\",\"boolean\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\"\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\"unknown\"),{listEventType:r});n=a,A.onError(new Nt(\"Found DOM element reference\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\"2\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\"Batch Events\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\"number\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\"missing logData\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Metrics\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\"unknown\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\"hidden\",n=!1)=>{cn||(addEventListener(\"pagehide\",un),addEventListener(\"beforeunload\",(()=>{})),cn=!0),addEventListener(\"visibilitychange\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\"\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\"upgradeneeded\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\"blocked\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\"close\",(()=>a())),i&&e.addEventListener(\"versionchange\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\"keyval-store\",1,{upgrade(e){e.createObjectStore(\"keyval\")}});rt({idbKeyval:{get:async t=>(await e).get(\"keyval\",t),set:async(t,n)=>(await e).put(\"keyval\",n,t),delete:async t=>(await e).delete(\"keyval\",t),keys:async()=>(await e).getAllKeys(\"keyval\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\"Initialized Analytics:\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\"Initialized Analytics IndexedDB:\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\"hidden\"),ln((()=>{pn()}),\"visible\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\"resize\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\"unsupported\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\"\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\"navigationTiming\"===r)t&&\"number\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\"TTFB\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\"networkInformation\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\"storageEstimate\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\"perf_storage_estimate_caches\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\"perf_storage_estimate_indexed_db\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\"CLS\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\"FID\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\"\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\"userJourneyStep\"===r?($t(\"perf_user_journey_step\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\"\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\"LCP\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\"Identify:\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\"routeChangeComplete\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\"cb_button\",uuid:\"e921a074-40e6-4371-8700-134d5cd633e6\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Traces\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\"x-datadog-origin\":\"rum\",\"x-datadog-parent-id\":t,\"x-datadog-sampling-priority\":\"1\",\"x-datadog-trace-id\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\"performance\"in window&&\"mark\"in performance&&\"getEntriesByName\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\"\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\"end\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\"start\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]||(Wn(e,\"start\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\"start\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]&&(Wn(e,\"end\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\"\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\"X-CB-Device-ID\":H.deviceId||\"unknown\",\"X-CB-Is-Logged-In\":H.userId?\"true\":\"false\",\"X-CB-Pagekey\":re.pageKey||\"unknown\",\"X-CB-UJS\":(e=Se.ujs,void 0===e||0===e.length?\"\":e.join(\",\")),\"X-CB-Platform\":A.platform||\"unknown\",\"X-CB-Project-Name\":A.projectName||\"unknown\",\"X-CB-Session-UUID\":oe.sessionUUID||\"unknown\",\"X-CB-Version-Name\":A.version?String(A.version):\"unknown\"};var e}})(),r})()}));\\'});var lY,vxt,Vde=Z(()=>{f();ng();o9e();lY=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let n=document.createElement(\"script\");n.textContent=r9e,n.type=\"text/javascript\",document.head.appendChild(n),vxt(),document.head.removeChild(n),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),vxt=()=>{var e,t,n;if(typeof window<\"u\"){let r=(n=(e=Bt.config.get().deviceId)!==null&&e!==void 0?e:(t=window.crypto)===null||t===void 0?void 0:t.randomUUID())!==null&&n!==void 0?n:\"\";if(window.ClientAnalytics){let{init:o,identify:i,PlatformName:a}=window.ClientAnalytics;o({isProd:!0,amplitudeApiKey:\"c66737ad47ec354ced777935b0af822e\",platform:a.web,projectName:\"base_account_sdk\",showDebugLogging:!1,version:\"1.0.0\",apiEndpoint:\"https://cca-lite.coinbase.com\"}),i({deviceId:r}),Bt.config.set({deviceId:r})}}}});var Ma,dY,UL=Z(()=>{f();Ma={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},dY={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});function fY(e,t=s9e){if(e&&Number.isInteger(e)){let n=e.toString();if(Gde(dY,n))return dY[n].message;if(u9e(e))return wxt}return t}function xxt(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(dY[t]||u9e(e))}function c9e(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Gde(e,\"code\")&&xxt(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,Gde(r,\"data\")&&(n.data=r.data)):(n.message=fY(n.code),n.data={originalError:i9e(e)})}else n.code=Ma.rpc.internal,n.message=a9e(e,\"message\")?e.message:s9e,n.data={originalError:i9e(e)};return t&&(n.stack=a9e(e,\"stack\")?e.stack:void 0),n}function u9e(e){return e>=-32099&&e<=-32e3}function i9e(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Gde(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a9e(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var s9e,wxt,qde=Z(()=>{f();UL();s9e=\"Unspecified error message.\",wxt=\"Unspecified server error.\"});function rg(e,t){let[n,r]=l9e(t);return new FL(e,n||fY(e),r)}function $O(e,t){let[n,r]=l9e(t);return new pY(e,n||fY(e),r)}function l9e(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function Ext(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function Kde(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"data\"in e&&e.code===-32090&&typeof e.data==\"object\"&&e.data!==null&&\"type\"in e.data&&e.data.type===\"INSUFFICIENT_FUNDS\"}function hY(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function d9e(e){try{let t=JSON.parse(e.details);return new FL(t.code,t.message,t.data)}catch{return null}}var Tt,FL,pY,Rd=Z(()=>{f();UL();qde();Tt={rpc:{parse:e=>rg(Ma.rpc.parse,e),invalidRequest:e=>rg(Ma.rpc.invalidRequest,e),invalidParams:e=>rg(Ma.rpc.invalidParams,e),methodNotFound:e=>rg(Ma.rpc.methodNotFound,e),internal:e=>rg(Ma.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return rg(t,e)},invalidInput:e=>rg(Ma.rpc.invalidInput,e),resourceNotFound:e=>rg(Ma.rpc.resourceNotFound,e),resourceUnavailable:e=>rg(Ma.rpc.resourceUnavailable,e),transactionRejected:e=>rg(Ma.rpc.transactionRejected,e),methodNotSupported:e=>rg(Ma.rpc.methodNotSupported,e),limitExceeded:e=>rg(Ma.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>$O(Ma.provider.userRejectedRequest,e),unauthorized:e=>$O(Ma.provider.unauthorized,e),unsupportedMethod:e=>$O(Ma.provider.unsupportedMethod,e),disconnected:e=>$O(Ma.provider.disconnected,e),chainDisconnected:e=>$O(Ma.provider.chainDisconnected,e),unsupportedChain:e=>$O(Ma.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new pY(t,n,r)}}};FL=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},pY=class extends FL{constructor(t,n,r){if(!Ext(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}}});function Yde(){return e=>e}function a1(e){return Math.floor(e)}var ek,f9e,Axt,Zde=Z(()=>{f();ek=Yde(),f9e=Yde();Axt=Yde()});function mx(e){return HL(crypto.getRandomValues(new Uint8Array(e)))}function HL(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function tk(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function U6(e,t=!1){let n=e.toString(\"hex\");return ek(t?`0x${n}`:n)}function mY(e){return U6(bY(e),!0)}function s1(e){return f9e(e.toString(10))}function gx(e){return ek(`0x${BigInt(e).toString(16)}`)}function m9e(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function Qde(e){return m9e(e)?e.slice(2):e}function Jde(e){return m9e(e)?`0x${e.slice(2)}`:`0x${e}`}function gY(e){if(typeof e!=\"string\")return!1;let t=Qde(e).toLowerCase();return h9e.test(t)}function yY(e,t=!1){if(typeof e==\"string\"){let n=Qde(e).toLowerCase();if(h9e.test(n))return ek(t?`0x${n}`:n)}throw Tt.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function Xde(e,t=!1){let n=yY(e,!1);return n.length%2===1&&(n=ek(`0${n}`)),t?ek(`0x${n}`):n}function yx(e){if(typeof e==\"string\"){let t=Qde(e).toLowerCase();if(gY(t)&&t.length===40)return Jde(t)}throw Tt.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function bY(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(gY(e)){let t=Xde(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw Tt.rpc.invalidParams(`Not binary data: ${String(e)}`)}function F6(e){if(typeof e==\"number\"&&Number.isInteger(e))return a1(e);if(typeof e==\"string\"){if(p9e.test(e))return a1(Number(e));if(gY(e))return a1(Number(BigInt(Xde(e,!0))))}throw Tt.rpc.invalidParams(`Not an integer: ${String(e)}`)}function nk(e){if(e!==null&&(typeof e==\"bigint\"||_xt(e)))return BigInt(e.toString(10));if(typeof e==\"number\")return BigInt(F6(e));if(typeof e==\"string\"){if(p9e.test(e))return BigInt(e);if(gY(e))return BigInt(Xde(e,!0))}throw Tt.rpc.invalidParams(`Not an integer: ${String(e)}`)}function g9e(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw Tt.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function _xt(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}function y9e(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:n}=document.location,r=e?e.getAttribute(\"href\"):null;return!r||r.startsWith(\"javascript:\")||r.startsWith(\"vbscript:\")?`${t}//${n}/favicon.ico`:r.startsWith(\"http://\")||r.startsWith(\"https://\")||r.startsWith(\"data:\")?r:r.startsWith(\"//\")?t+r:`${t}//${n}${r}`}var p9e,h9e,c1=Z(()=>{f();Rd();Zde();p9e=/^[0-9]*$/,h9e=/^[a-f0-9]*$/});var Sxt,Txt,vY,b9e,wY=Z(()=>{f();Sxt=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to \\'same-origin\\'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.\\n\\nPlease see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,Txt=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?\"undefined\":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\"u\"){e=\"non-browser-env\";return}try{let t=`${window.location.origin}${window.location.pathname}`,n=await fetch(t,{method:\"HEAD\"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let r=n.headers.get(\"Cross-Origin-Opener-Policy\");e=r??\"null\",e===\"same-origin\"&&console.error(Sxt)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:vY,getCrossOriginOpenerPolicy:b9e}=Txt()});async function H_(e,t){let n=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),r=await window.fetch(t,{method:\"POST\",body:JSON.stringify(n),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":tg,\"X-Cbw-Sdk-Platform\":uY}}),{result:o,error:i}=await r.json();if(i)throw i;return o}function Cxt(){return globalThis.coinbaseWalletExtension}function Rxt(){var e,t;try{let n=globalThis;return(e=n.ethereum)!==null&&e!==void 0?e:(t=n.top)===null||t===void 0?void 0:t.ethereum}catch{return}}function xY({metadata:e,preference:t}){var n,r;let{appName:o,appLogoUrl:i,appChainIds:a}=e;if(t.options!==\"smartWalletOnly\"){let u=Cxt();if(u)return(n=u.setAppInfo)===null||n===void 0||n.call(u,o,i,a,t),u}let c=Rxt();if(c?.isCoinbaseBrowser)return(r=c.setAppInfo)===null||r===void 0||r.call(c,o,i,a,t),c}function v9e(e){if(!e||typeof e!=\"object\"||Array.isArray(e))throw Tt.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:n}=e;if(typeof t!=\"string\"||t.length===0)throw Tt.rpc.invalidParams({message:\"\\'args.method\\' must be a non-empty string.\",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\"object\"||n===null))throw Tt.rpc.invalidParams({message:\"\\'args.params\\' must be an object or array if provided.\",data:e});switch(t){case\"eth_sign\":case\"eth_signTypedData_v2\":case\"eth_subscribe\":case\"eth_unsubscribe\":throw Tt.provider.unsupportedMethod()}}var rk=Z(()=>{f();B6();Rd()});function EY(e){if(e){if(![\"all\",\"smartWalletOnly\",\"eoaOnly\"].includes(e.options))throw new Error(`Invalid options: ${e.options}`);if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error(\"Attribution cannot contain both auto and dataSuffix properties\");if(e.telemetry&&typeof e.telemetry!=\"boolean\")throw new Error(\"Telemetry must be a boolean\")}}function $de(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var efe=Z(()=>{f()});var w9e,AY,tfe,x9e,ok=Z(()=>{f();w9e=\"https://keys.coinbase.com/connect\",AY=\"https://rpc.wallet.coinbase.com\",tfe=\"https://www.walletlink.org\",x9e=\"https://go.cb-w.com/walletlink\"});function Tr(e,t,n){var r,o,i,a;window.ClientAnalytics&&((r=window.ClientAnalytics)===null||r===void 0||r.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:tg,appName:(i=(o=Bt.config.get().metadata)===null||o===void 0?void 0:o.appName)!==null&&i!==void 0?i:\"\",appOrigin:window.location.origin,appPreferredSigner:(a=Bt.config.get().preference)===null||a===void 0?void 0:a.options}),n))}var fr,pr,hr,z_=Z(()=>{f();ng();B6();(function(e){e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\"})(fr||(fr={}));(function(e){e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e.error=\"error\"})(pr||(pr={}));(function(e){e.low=\"low\",e.high=\"high\"})(hr||(hr={}))});var E9e,A9e,_9e,S9e=Z(()=>{f();z_();E9e=()=>{Tr(\"communicator.popup_setup.started\",{action:pr.unknown,componentType:fr.unknown},hr.high)},A9e=()=>{Tr(\"communicator.popup_setup.completed\",{action:pr.unknown,componentType:fr.unknown},hr.high)},_9e=()=>{Tr(\"communicator.popup_unload.received\",{action:pr.unknown,componentType:fr.unknown},hr.high)}});var ik,bx,_Y=Z(()=>{f();z_();ik=({snackbarContext:e})=>{Tr(`snackbar.${e}.shown`,{action:pr.render,componentType:fr.modal,snackbarContext:e},hr.high)},bx=({snackbarContext:e,snackbarAction:t})=>{Tr(`snackbar.${e}.action_clicked`,{action:pr.click,componentType:fr.button,snackbarContext:e,snackbarAction:t},hr.high)}});var T9e,C9e=Z(()=>{f();T9e=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});function SY(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(T9e)),document.documentElement.appendChild(e)}var nfe=Z(()=>{f();C9e()});function Ixt(){try{return window.frameElement!==null}catch{return!1}}function R9e(){try{return Ixt()&&window.top?window.top.location:window.location}catch{return window.location}}function I9e(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}function TY(){var e,t;return(t=(e=window?.matchMedia)===null||e===void 0?void 0:e.call(window,\"(prefers-color-scheme: dark)\").matches)!==null&&t!==void 0?t:!1}var zL=Z(()=>{f()});var O9e,k9e=Z(()=>{f();O9e=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var Oxt,kxt,ak,rfe,Nxt,CY=Z(()=>{f();ax();av();av();Vue();zL();k9e();Oxt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",kxt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",ak=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=TY()}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;return this.items.set(n,t),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&k_(Yo(\"div\",null,Yo(rfe,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,n])=>Yo(Nxt,Object.assign({},n,{key:t}))))),this.root)}},rfe=e=>Yo(\"div\",{class:hm(\"-cbwsdk-snackbar-container\")},Yo(\"style\",null,O9e),Yo(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),Nxt=({autoExpand:e,message:t,menuItems:n})=>{let[r,o]=n1(!0),[i,a]=n1(e??!1);X8(()=>{let u=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{a(!i)};return Yo(\"div\",{class:hm(\"-cbwsdk-snackbar-instance\",r&&\"-cbwsdk-snackbar-instance-hidden\",i&&\"-cbwsdk-snackbar-instance-expanded\")},Yo(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:c},Yo(\"img\",{src:Oxt,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",Yo(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),Yo(\"div\",{class:\"-gear-container\"},!i&&Yo(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},Yo(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),Yo(\"img\",{src:kxt,class:\"-gear-icon\",title:\"Expand\"}))),n&&n.length>0&&Yo(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},n.map((u,d)=>Yo(\"div\",{class:hm(\"-cbwsdk-snackbar-instance-menu-item\",u.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:u.onClick,key:d},Yo(\"svg\",{width:u.svgWidth,height:u.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},Yo(\"path\",{\"fill-rule\":u.defaultFillRule,\"clip-rule\":u.defaultClipRule,d:u.path,fill:\"#AAAAAA\"})),Yo(\"span\",{class:hm(\"-cbwsdk-snackbar-instance-menu-item-info\",u.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},u.info)))))}});var ofe,RY,ife=Z(()=>{f();nfe();CY();ofe=\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",RY=class{constructor(){this.attached=!1,this.snackbar=new ak}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,n=document.createElement(\"div\");n.className=\"-cbwsdk-css-reset\",t.appendChild(n),this.snackbar.attach(n),this.attached=!0,SY()}showConnecting(t){let n;return t.isUnlinkedErrorState?n={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:n={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:ofe,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(n)}}});function M9e(e){let t=(window.innerWidth-N9e)/2+window.screenX,n=(window.innerHeight-P9e)/2+window.screenY;Dxt(e);function r(){let i=`wallet_${crypto.randomUUID()}`,a=window.open(e,i,`width=${N9e}, height=${P9e}, left=${t}, top=${n}`);return a?.focus(),a||null}let o=r();if(!o){let i=jL();return new Promise((a,c)=>{ik({snackbarContext:\"popup_blocked\"}),i.presentItem({autoExpand:!0,message:Mxt,menuItems:[Object.assign(Object.assign({},Pxt),{onClick:()=>{bx({snackbarContext:\"popup_blocked\",snackbarAction:\"confirm\"}),o=r(),o?a(o):c(Tt.rpc.internal(\"Popup window was blocked\")),i.clear()}})]})})}return Promise.resolve(o)}function D9e(e){e&&!e.closed&&e.close()}function Dxt(e){let t={sdkName:uY,sdkVersion:tg,origin:window.location.origin,coop:b9e()};for(let[n,r]of Object.entries(t))e.searchParams.has(n)||e.searchParams.append(n,r.toString())}function jL(){if(!IY){let e=document.createElement(\"div\");e.className=\"-cbwsdk-css-reset\",document.body.appendChild(e),IY=new ak,IY.attach(e)}return IY}var N9e,P9e,Pxt,Mxt,IY,OY=Z(()=>{f();Rd();_Y();ife();CY();B6();wY();N9e=420,P9e=700,Pxt={isRed:!1,info:\"Retry\",svgWidth:\"10\",svgHeight:\"11\",path:ofe,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\"},Mxt=\"Popup was blocked. Try again.\",IY=null});var kY,L9e=Z(()=>{f();ok();Rd();S9e();OY();B6();kY=class{constructor({url:t=w9e,metadata:n,preference:r}){this.popup=null,this.listeners=new Map,this.postMessage=async o=>{(await this.waitForPopupLoaded()).postMessage(o,this.url.origin)},this.postRequestAndWaitForResponse=async o=>{let i=this.onMessage(({requestId:a})=>a===o.id);return this.postMessage(o),await i},this.onMessage=async o=>new Promise((i,a)=>{let c=u=>{if(u.origin!==this.url.origin)return;let d=u.data;o(d)&&(i(d),window.removeEventListener(\"message\",c),this.listeners.delete(c))};window.addEventListener(\"message\",c),this.listeners.set(c,{reject:a})}),this.disconnect=()=>{D9e(this.popup),this.popup=null,this.listeners.forEach(({reject:o},i)=>{o(Tt.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",i)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(E9e(),this.popup=await M9e(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),_9e()}).catch(()=>{}),this.onMessage(({event:o})=>o===\"PopupLoaded\").then(o=>{this.postMessage({requestId:o.id,data:{version:tg,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw Tt.rpc.internal();return A9e(),this.popup})),this.url=new URL(t),this.metadata=n,this.preference=r}}});function zc(e){return e.errorMessage!==void 0}var NY=Z(()=>{f()});function B9e(e){let t=c9e(Lxt(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");return n.searchParams.set(\"version\",tg),n.searchParams.set(\"code\",t.code.toString()),n.searchParams.set(\"message\",t.message),Object.assign(Object.assign({},t),{docUrl:n.href})}function Lxt(e){var t;if(typeof e==\"string\")return{message:e,code:Ma.rpc.internal};if(zc(e)){let n=e.errorMessage,r=(t=e.errorCode)!==null&&t!==void 0?t:n.match(/(denied|rejected)/i)?Ma.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:n,code:r,data:{method:e.method}})}return e}var U9e=Z(()=>{f();B6();NY();UL();qde()});var PY,F9e=Z(()=>{f();R_();PY=class extends q0.default{}});var dv,WL=Z(()=>{f();dv=class e{constructor(t,n){this.scope=t,this.module=n}storeObject(t,n){this.setItem(t,JSON.stringify(n))}loadObject(t){let n=this.getItem(t);return n?JSON.parse(n):void 0}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),n=[];for(let r=0;r<localStorage.length;r++){let o=localStorage.key(r);typeof o==\"string\"&&o.startsWith(t)&&n.push(o)}n.forEach(r=>localStorage.removeItem(r))}scopedKey(t){return`-${this.scope}${this.module?`:${this.module}`:\"\"}:${t}`}static clearAll(){new e(\"CBWSDK\").clear(),new e(\"walletlink\").clear()}}});var H9e,z9e,j9e,W9e,V9e,G9e=Z(()=>{f();z_();H9e=({signerType:e})=>{Tr(\"provider.signer.loaded_from_storage\",{action:pr.measurement,componentType:fr.unknown,signerType:e},hr.low)},z9e=({method:e,correlationId:t})=>{Tr(\"provider.request.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t},hr.high)},j9e=({method:e,correlationId:t,signerType:n,errorMessage:r})=>{Tr(\"provider.request.error\",{action:pr.error,componentType:fr.unknown,method:e,signerType:n,correlationId:t,errorMessage:r},hr.high)},W9e=({method:e,signerType:t,correlationId:n})=>{Tr(\"provider.request.responded\",{action:pr.unknown,componentType:fr.unknown,method:e,signerType:t,correlationId:n},hr.high)},V9e=()=>{Tr(\"provider.enable_function.called\",{action:pr.measurement,componentType:fr.unknown},hr.high)}});var q9e,K9e,Y9e=Z(()=>{f();z_();q9e=()=>{Tr(\"signer.selection.requested\",{action:pr.unknown,componentType:fr.unknown},hr.high)},K9e=e=>{Tr(\"signer.selection.responded\",{action:pr.unknown,componentType:fr.unknown,signerType:e},hr.high)}});var MY,nh,DY=Z(()=>{f();s6();MY=Q0(()=>({correlationIds:new Map})),nh={get:e=>MY.getState().correlationIds.get(e),set:(e,t)=>{MY.setState(n=>{let r=new Map(n.correlationIds);return r.set(e,t),{correlationIds:r}})},delete:e=>{MY.setState(t=>{let n=new Map(t.correlationIds);return n.delete(e),{correlationIds:n}})},clear:()=>{MY.setState({correlationIds:new Map})}}});var Z9e,Q9e,J9e,X9e,$9e,eMe,tMe=Z(()=>{f();ng();z_();Z9e=({method:e,correlationId:t})=>{var n;Tr(\"scw_signer.handshake.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},Q9e=({method:e,correlationId:t,errorMessage:n})=>{var r;Tr(\"scw_signer.handshake.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},hr.high)},J9e=({method:e,correlationId:t})=>{var n;Tr(\"scw_signer.handshake.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},X9e=({method:e,correlationId:t})=>{var n;Tr(\"scw_signer.request.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},$9e=({method:e,correlationId:t,errorMessage:n})=>{var r;Tr(\"scw_signer.request.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},hr.high)},eMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_signer.request.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)}});var nMe,rMe,oMe,iMe,aMe,sMe,cMe,uMe,lMe,dMe=Z(()=>{f();ng();z_();nMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.request.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},rMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.request.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},oMe=({method:e,correlationId:t,errorMessage:n})=>{var r;Tr(\"scw_sub_account.request.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},hr.high)},iMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.add_owner.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},aMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.add_owner.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},sMe=({method:e,correlationId:t,errorMessage:n})=>{var r;Tr(\"scw_sub_account.add_owner.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},hr.high)},cMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.insufficient_balance.error_handling.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},uMe=({method:e,correlationId:t})=>{var n;Tr(\"scw_sub_account.insufficient_balance.error_handling.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},hr.high)},lMe=({method:e,correlationId:t,errorMessage:n})=>{var r;Tr(\"scw_sub_account.insufficient_balance.error_handling.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},hr.high)}});var vx,afe=Z(()=>{f();vx=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var sfe,fMe=Z(()=>{f();s6();sfe=Q0(()=>({}))});function cfe(e){e.forEach(t=>{var n,r,o,i,a,c,u,d;if(!t.rpcUrl)return;let p=ta({id:t.id,rpcUrls:{default:{http:[t.rpcUrl]}},name:(r=(n=t.nativeCurrency)===null||n===void 0?void 0:n.name)!==null&&r!==void 0?r:\"\",nativeCurrency:{name:(i=(o=t.nativeCurrency)===null||o===void 0?void 0:o.name)!==null&&i!==void 0?i:\"\",symbol:(c=(a=t.nativeCurrency)===null||a===void 0?void 0:a.symbol)!==null&&c!==void 0?c:\"\",decimals:(d=(u=t.nativeCurrency)===null||u===void 0?void 0:u.decimal)!==null&&d!==void 0?d:18}}),h=ox({chain:p,transport:mu(t.rpcUrl)}),g=tL({client:h,transport:mu(t.rpcUrl)});sfe.setState({[t.id]:{client:h,bundlerClient:g}})})}function LY(e){var t;return(t=sfe.getState()[e])===null||t===void 0?void 0:t.client}var ufe=Z(()=>{f();pn();rL();fMe()});function Wu(e,t,n){if(e==null)throw t??Tt.rpc.invalidParams({message:n??\"value must be present\",data:e})}function fv(e,t){if(!Array.isArray(e))throw Tt.rpc.invalidParams({message:t??\"value must be an array\",data:e})}var sk=Z(()=>{f();Rd()});function VL(e){if(typeof e!=\"object\"||e===null)throw Tt.rpc.internal(\"sub account info is not an object\");if(!(\"address\"in e))throw Tt.rpc.internal(\"sub account is invalid\");if(\"address\"in e&&typeof e.address==\"string\"&&!Un(e.address))throw Tt.rpc.internal(\"sub account address is invalid\");if(\"factory\"in e&&typeof e.factory==\"string\"&&!Un(e.factory))throw Tt.rpc.internal(\"sub account factory address is invalid\");if(\"factoryData\"in e&&typeof e.factoryData==\"string\"&&!Xr(e.factoryData))throw Tt.rpc.internal(\"sub account factory data is invalid\")}var pMe=Z(()=>{f();pn();Rd()});async function hMe(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function mMe(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function Bxt(e,t){let n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},e,new TextEncoder().encode(t));return{iv:n,cipherText:r}}async function Uxt(e,{iv:t,cipherText:n}){let r=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,n);return new TextDecoder().decode(r)}function gMe(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function BY(e,t){let n=gMe(e),r=await crypto.subtle.exportKey(n,t);return HL(new Uint8Array(r))}async function UY(e,t){let n=gMe(e),r=tk(t).buffer;return await crypto.subtle.importKey(n,new Uint8Array(r),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function yMe(e,t){let n=JSON.stringify(e,(r,o)=>{if(!(o instanceof Error))return o;let i=o;return Object.assign(Object.assign({},i.code?{code:i.code}:{}),{message:i.message})});return Bxt(t,n)}async function bMe(e,t){return JSON.parse(await Uxt(t,e))}var lfe=Z(()=>{f();c1()});function vMe(e,t){let n=typeof indexedDB<\"u\"?CL(e,t):void 0;return{getItem:async r=>{let o=await KK(r,n);return o||null},removeItem:async r=>ZK(r,n),setItem:async(r,o)=>YK(r,o,n)}}var wMe=Z(()=>{f();kde()});async function zxt(){let e=await U_.createKeyPair({extractable:!1}),t=Fc.slice(Hf.toHex(e.publicKey),1);return await j_.setItem(t,e),await j_.setItem(FY,t),e}async function xMe(){let e=await j_.getItem(FY);if(!e)return null;let t=await j_.getItem(e);return t||null}async function jxt(){let e=await xMe();if(!e){let t=await zxt(),n=Fc.slice(Hf.toHex(t.publicKey),1);return await j_.setItem(n,t),await j_.setItem(FY,n),t}return e}async function Wxt(){let e=await jxt(),t=Fc.slice(Hf.toHex(e.publicKey),1),n=async r=>{let{payload:o,metadata:i}=QO.getSignPayload({challenge:r,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),a=await U_.sign({payload:o,privateKey:e.privateKey});return{signature:eg.toHex(a),raw:{},webauthn:i}};return{id:t,publicKey:t,async sign({hash:r}){return n(r)},async signMessage({message:r}){return n(fm(r))},async signTypedData(r){return n(Lf(r))},type:\"webAuthn\"}}async function H6(){return{account:await Wxt()}}async function EMe(){let e=await xMe();e&&(await j_.removeItem(Fc.slice(Hf.toHex(e.publicKey),1)),await j_.removeItem(FY))}var Fxt,Hxt,FY,j_,HY=Z(()=>{f();TL();pn();wMe();Fxt=\"cbwsdk\",Hxt=\"keys\",FY=\"activeId\",j_=vMe(Fxt,Hxt)});var AMe,_Me,SMe,zY,TMe=Z(()=>{f();ng();lfe();AMe={storageKey:\"ownPrivateKey\",keyType:\"private\"},_Me={storageKey:\"ownPublicKey\",keyType:\"public\"},SMe={storageKey:\"peerPublicKey\",keyType:\"public\"},zY=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(SMe,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Bt.keys.clear()}async generateKeyPair(){let t=await hMe();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(AMe,t.privateKey),await this.storeKey(_Me,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(AMe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(_Me)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(SMe)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await mMe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let n=Bt.keys.get(t.storageKey);return n?UY(t.keyType,n):null}async storeKey(t,n){let r=await BY(t.keyType,n);Bt.keys.set(t.storageKey,r)}}});function z6(e,t){if(!(typeof e!=\"object\"||e===null))return t.split(/[.[\\\\]]+/).filter(Boolean).reduce((n,r)=>{if(typeof n==\"object\"&&n!==null)return n[r]},e)}var dfe=Z(()=>{f()});var jY,ffe,Id,WY,j6=Z(()=>{f();jY=\"0x0ba5ed0c6aa8c49038f819e587e2633c4a9f428a\",ffe=\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\",Id=[{inputs:[],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"AlreadyOwner\",type:\"error\"},{inputs:[],name:\"Initialized\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidEthereumAddressOwner\",type:\"error\"},{inputs:[{name:\"key\",type:\"uint256\"}],name:\"InvalidNonceKey\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidOwnerBytesLength\",type:\"error\"},{inputs:[],name:\"LastOwner\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"NoOwnerAtIndex\",type:\"error\"},{inputs:[{name:\"ownersRemaining\",type:\"uint256\"}],name:\"NotLastOwner\",type:\"error\"},{inputs:[{name:\"selector\",type:\"bytes4\"}],name:\"SelectorNotAllowed\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{inputs:[],name:\"UnauthorizedCallContext\",type:\"error\"},{inputs:[],name:\"UpgradeFailed\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"expectedOwner\",type:\"bytes\"},{name:\"actualOwner\",type:\"bytes\"}],name:\"WrongOwnerAtIndex\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"AddOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"RemoveOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"implementation\",type:\"address\"}],name:\"Upgraded\",type:\"event\"},{stateMutability:\"payable\",type:\"fallback\"},{inputs:[],name:\"REPLAYABLE_NONCE_KEY\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owner\",type:\"address\"}],name:\"addOwnerAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"addOwnerPublicKey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"functionSelector\",type:\"bytes4\"}],name:\"canSkipChainIdValidation\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"pure\",type:\"function\"},{inputs:[],name:\"domainSeparator\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"entryPoint\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"execute\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"executeBatch\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"calls\",type:\"bytes[]\"}],name:\"executeWithoutChainIdValidation\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHashWithoutChainId\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"$\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"}],name:\"initialize\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"isOwnerAddress\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"bytes\"}],name:\"isOwnerBytes\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"isOwnerPublicKey\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],name:\"isValidSignature\",outputs:[{name:\"result\",type:\"bytes4\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"nextOwnerIndex\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"ownerAtIndex\",outputs:[{name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ownerCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"proxiableUUID\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeLastOwner\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeOwnerAtIndex\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"removedOwnersCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"}],name:\"replaySafeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"newImplementation\",type:\"address\"},{name:\"data\",type:\"bytes\"}],name:\"upgradeToAndCall\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"missingAccountFunds\",type:\"uint256\"}],name:\"validateUserOp\",outputs:[{name:\"validationData\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}],WY=[{inputs:[{name:\"implementation_\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{inputs:[],name:\"OwnerRequired\",type:\"error\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"createAccount\",outputs:[{name:\"account\",type:\"address\"}],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"getAddress\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"initCodeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}]});function pfe(e){var t;if(!Array.isArray(e.params))return null;switch(e.method){case\"personal_sign\":return e.params[1];case\"eth_signTypedData_v4\":return e.params[0];case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":return(t=e.params[0])===null||t===void 0?void 0:t.from;default:return null}}function CMe(e,t){if(!Array.isArray(e.params))throw Tt.rpc.invalidParams();let n=[...e.params];switch(e.method){case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":n[0].from=t;break;case\"eth_signTypedData_v4\":n[0]=t;break;case\"personal_sign\":n[1]=t;break;default:break}return Object.assign(Object.assign({},e),{params:n})}function hfe(e){var t;if(!e||!Array.isArray(e)||!(!((t=e[0])===null||t===void 0)&&t.chainId))throw Tt.rpc.invalidParams();if(typeof e[0].chainId!=\"string\"&&typeof e[0].chainId!=\"number\")throw Tt.rpc.invalidParams()}function RMe(e){if(!e||!Array.isArray(e)||e.length!==1&&e.length!==2)throw Tt.rpc.invalidParams();if(typeof e[0]!=\"string\"||!Un(e[0]))throw Tt.rpc.invalidParams();if(e.length===2){if(!Array.isArray(e[1]))throw Tt.rpc.invalidParams();for(let t of e[1])if(typeof t!=\"string\"||!t.startsWith(\"0x\"))throw Tt.rpc.invalidParams()}}function ck(e,t){let n=Object.assign({},e);if(t&&e.method.startsWith(\"wallet_\")){let r=z6(n,\"params.0.capabilities\");if(typeof r>\"u\"&&(r={}),typeof r!=\"object\")throw Tt.rpc.invalidParams();r=Object.assign(Object.assign({},t),r),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:r}))}return n}async function VY(){var e;let t=(e=Bt.subAccountsConfig.get())!==null&&e!==void 0?e:{},n={};if(t.enableAutoSubAccounts){let{account:r}=t.toOwnerAccount?await t.toOwnerAccount():await H6();if(!r)throw Tt.provider.unauthorized(\"No owner account found\");n.addSubAccount={account:{type:\"create\",keys:[{type:r.address?\"address\":\"webauthn-p256\",publicKey:r.address||r.publicKey}]}}}Bt.subAccountsConfig.set({capabilities:n})}function IMe(e){if(!(e.method===\"coinbase_fetchPermissions\"&&e.params===void 0)){if(e.method===\"coinbase_fetchPermissions\"&&Array.isArray(e.params)&&e.params.length===1&&typeof e.params[0]==\"object\"){if(typeof e.params[0].account!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Tt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].account must be a hex string\");if(typeof e.params[0].chainId!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Tt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\");if(typeof e.params[0].spender!=\"string\"||!e.params[0].spender.startsWith(\"0x\"))throw Tt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].spender must be a hex string\");return}throw Tt.rpc.invalidParams()}}function OMe(e){var t,n,r;if(e.params!==void 0)return e;let o=(t=Bt.getState().account.accounts)===null||t===void 0?void 0:t[0],i=(n=Bt.getState().account.chain)===null||n===void 0?void 0:n.id,a=(r=Bt.getState().subAccount)===null||r===void 0?void 0:r.address;if(!o||!a||!i)throw Tt.rpc.invalidParams(\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\");return{method:\"coinbase_fetchPermissions\",params:[{account:o,chainId:Ne(i),spender:a}]}}function kMe({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:ffe},types:{SpendPermission:[{name:\"account\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermission\",message:{account:e.account,spender:e.spender,token:e.token,allowance:e.allowance,period:e.period,start:e.start,end:e.end,salt:e.salt,extraData:e.extraData}}}function NMe({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:ffe},types:{SpendPermissionBatch:[{name:\"account\",type:\"address\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"permissions\",type:\"PermissionDetails[]\"}],PermissionDetails:[{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermissionBatch\",message:{account:e.account,period:e.period,start:e.start,end:e.end,permissions:e.permissions.map(n=>({spender:n.spender,token:n.token,allowance:n.allowance,salt:n.salt,extraData:n.extraData}))}}}async function GY({client:e,id:t}){var n;let r=await j0(e,{id:t});if(r.status===\"success\")return(n=r.receipts)===null||n===void 0?void 0:n[0].transactionHash;throw Tt.rpc.internal(\"failed to send transaction\")}function qY({calls:e,from:t,chainId:n,capabilities:r}){let o=Wde.get().paymasterUrls,i={method:\"wallet_sendCalls\",params:[{version:\"1.0\",calls:e,chainId:Ne(n),from:t,atomicRequired:!0,capabilities:r}]};return o?.[n]&&(i=ck(i,{paymasterService:{url:o?.[n]}})),i}async function PMe(){let e=jL();return await new Promise(n=>{ik({snackbarContext:\"sub_account_insufficient_balance\"}),e.presentItem({autoExpand:!0,message:\"Insufficient spend permission. Choose how to proceed:\",menuItems:[{isRed:!1,info:\"Create new Spend Permission\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{bx({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"create_permission\"}),e.clear(),n(\"update_permission\")}},{isRed:!1,info:\"Continue in Popup\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{bx({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"continue_in_popup\"}),e.clear(),n(\"continue_popup\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{bx({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"cancel\"}),e.clear(),n(\"cancel\")}}]})})}function MMe({errorData:e,sourceAddress:t}){var n;let r=[];for(let[o,{amount:i,sources:a}]of Object.entries((n=e?.required)!==null&&n!==void 0?n:{})){if(a.filter(u=>qn(u.balance)>=qn(i)&&u.address.toLowerCase()===t?.toLowerCase()).length===0)throw new Error(\"Source address has insufficient balance for a token\");r.push({token:o,requiredAmount:qn(i)})}return r}function DMe(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function LMe(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function Vxt(e){return Il(lr(Zn(e)),0,16)}function BMe({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return Vxt(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function UMe(e,t){var n;if(!Array.isArray(e?.params))return!1;let r=(n=e.params[0])===null||n===void 0?void 0:n.capabilities;return!r||typeof r!=\"object\"?!1:t in r}function GL(e,t){let n=e.filter(r=>r!==t);return[t,...n]}function qL(e,t){return[...e.filter(r=>r!==t),t]}async function FMe(){let e=Bt.spendPermissions.get(),t=Bt.subAccounts.get(),n=Bt.account.get().accounts;return n?{accounts:n?.map(o=>({address:o,capabilities:{subAccounts:t?[t]:void 0,spendPermissions:e.length>0?{permissions:e}:void 0}}))}:null}var KY=Z(()=>{f();pn();pn();Rd();_Y();ng();dfe();OY();oY();HY();j6()});function Gxt(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function YY(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return Gxt(t)}function HMe({webauthn:e,signature:t,id:n}){let r=eg.fromHex(t);return{id:n,rawId:YY(Mu(n)),response:{authenticatorData:YY(ci(e.authenticatorData)),clientDataJSON:YY(Mu(e.clientDataJSON)),signature:YY(qxt(r.r,r.s))},type:JSON.parse(e.clientDataJSON).type}}function qxt(e,t){let n=ci(Ui(Ne(e))),r=ci(Ui(Ne(t))),o=n.length,i=r.length,a=o+i+4,c=new Uint8Array(a+2);return c[0]=48,c[1]=a,c[2]=2,c[3]=o,c.set(n,4),c[o+4]=2,c[o+5]=i,c.set(r,o+6),c}var zMe=Z(()=>{f();TL();pn()});async function jMe(e){let{owner:t,ownerIndex:n,address:r,client:o,factoryData:i}=e,a={abi:ZD,address:nL,version:\"0.6\"},c={abi:WY,address:jY};return JD({client:o,entryPoint:a,extend:{abi:Id,factory:c},async decodeCalls(u){let d=Jy({abi:Id,data:u});if(d.functionName===\"execute\")return[{to:d.args[0],value:d.args[1],data:d.args[2]}];if(d.functionName===\"executeBatch\")return d.args[0].map(p=>({to:p.target,value:p.value,data:p.data}));throw new Re(`unable to decode calls for \"${d.functionName}\"`)},async encodeCalls(u){var d,p;return u.length===1?vn({abi:Id,functionName:\"execute\",args:[u[0].to,(d=u[0].value)!==null&&d!==void 0?d:BigInt(0),(p=u[0].data)!==null&&p!==void 0?p:\"0x\"]}):vn({abi:Id,functionName:\"executeBatch\",args:[u.map(h=>{var g,y;return{data:(g=h.data)!==null&&g!==void 0?g:\"0x\",target:h.to,value:(y=h.value)!==null&&y!==void 0?y:BigInt(0)}})]})},async getAddress(){return r},async getFactoryArgs(){return i?{factory:c.address,factoryData:i}:{factory:c.address,factoryData:i}},async getStubSignature(){return t.type===\"webAuthn\"?\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\":KL({ownerIndex:n,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(u){let d=await this.getAddress(),p=mfe({address:d,chainId:o.chain.id,hash:u.hash}),h=await ZY({hash:p,owner:t});return KL({ownerIndex:n,signature:h})},async signMessage(u){let{message:d}=u,p=await this.getAddress(),h=mfe({address:p,chainId:o.chain.id,hash:fm(d)}),g=await ZY({hash:h,owner:t});return KL({ownerIndex:n,signature:g})},async signTypedData(u){let{domain:d,types:p,primaryType:h,message:g}=u,y=await this.getAddress(),v=mfe({address:y,chainId:o.chain.id,hash:Lf({domain:d,message:g,primaryType:h,types:p})}),x=await ZY({hash:v,owner:t});return KL({ownerIndex:n,signature:x})},async signUserOperation(u){let{chainId:d=o.chain.id}=u,p=Kxt(u,[\"chainId\"]),h=await this.getAddress(),g=QD({chainId:d,entryPointAddress:a.address,entryPointVersion:a.version,userOperation:Object.assign(Object.assign({},p),{sender:h})}),y=await ZY({hash:g,owner:t});return KL({ownerIndex:n,signature:y})},userOperation:{async estimateGas(u){var d;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((d=u.verificationGasLimit)!==null&&d!==void 0?d:BigInt(0)),8e5))}}}})}async function ZY({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:n,webauthn:r}=await t.sign({hash:e});return Yxt({signature:n,webauthn:r})}if(t.sign)return t.sign({hash:e});throw new Re(\"`owner` does not support raw sign.\")}function mfe({address:e,chainId:t,hash:n}){return Lf({domain:{chainId:t,name:\"Coinbase Smart Wallet\",verifyingContract:e,version:\"1\"},types:{CoinbaseSmartWalletMessage:[{name:\"hash\",type:\"bytes32\"}]},primaryType:\"CoinbaseSmartWalletMessage\",message:{hash:n}})}function Yxt({webauthn:e,signature:t}){let{r:n,s:r}=O6(t);return Hi([{components:[{name:\"authenticatorData\",type:\"bytes\"},{name:\"clientDataJSON\",type:\"bytes\"},{name:\"challengeIndex\",type:\"uint256\"},{name:\"typeIndex\",type:\"uint256\"},{name:\"r\",type:\"uint256\"},{name:\"s\",type:\"uint256\"}],type:\"tuple\"}],[{authenticatorData:e.authenticatorData,clientDataJSON:Pu(e.clientDataJSON),challengeIndex:BigInt(e.challengeIndex),typeIndex:BigInt(e.typeIndex),r:n,s:r}])}function KL(e){let{ownerIndex:t=0}=e,n=(()=>{if(qr(e.signature)!==65)return e.signature;let r=C_(e.signature);return ZT([\"bytes32\",\"bytes32\",\"uint8\"],[r.r,r.s,r.yParity===0?27:28])})();return Hi([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:n}])}var Kxt,WMe=Z(()=>{f();PK();pn();rL();j6();Kxt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}});async function VMe({address:e,client:t,factory:n,factoryData:r,owner:o,ownerIndex:i,parentAddress:a,attribution:c}){var u;let d={address:e,factory:n,factoryData:r},p=(u=t.chain)===null||u===void 0?void 0:u.id;if(!p)throw Tt.rpc.internal(\"chainId not found\");let h=await jMe({owner:o,ownerIndex:i??1,address:e,client:t,factoryData:r}),g=async y=>{var v,x,R,S,M,P;try{switch(y.method){case\"wallet_addSubAccount\":return d;case\"eth_accounts\":return[d.address];case\"eth_coinbase\":return d.address;case\"net_version\":return p.toString();case\"eth_chainId\":return Ne(p);case\"eth_sendTransaction\":{fv(y.params);let z=y.params[0];Wu(z.to,Tt.rpc.invalidParams(\"to is required\"));let V={to:z.to,data:yY((v=z.data)!==null&&v!==void 0?v:\"0x\",!0),value:yY((x=z.value)!==null&&x!==void 0?x:\"0x\",!0),from:(R=z.from)!==null&&R!==void 0?R:d.address},Q=qY({calls:[V],chainId:p,from:V.from}),$=await g(Q);return GY({client:t,id:$})}case\"wallet_sendCalls\":{fv(y.params);let z=z6(y.params[0],\"chainId\");if(!z)throw Tt.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Tt.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Tt.rpc.invalidParams(\"params are required\");if(!(\"calls\"in y.params[0]))throw Tt.rpc.invalidParams(\"calls are required\");let V={method:\"wallet_prepareCalls\",params:[{version:\"1.0\",calls:y.params[0].calls,chainId:z,from:d.address,capabilities:\"capabilities\"in y.params[0]?y.params[0].capabilities:{}}]};a&&(V=ck(V,{funding:[{type:\"spendPermission\",data:{autoApply:!0,sources:[a],preference:\"PREFER_DIRECT_BALANCE\"}}]}));let Q=await g(V),$=await((M=(S=o).sign)===null||M===void 0?void 0:M.call(S,{hash:tm(Q.signatureRequest.hash)})),oe;if(!$)throw Tt.rpc.internal(\"signature not found\");return Xr($)?oe={type:\"secp256k1\",data:{address:o.address,signature:$}}:oe={type:\"webauthn\",data:{signature:JSON.stringify(HMe(Object.assign({id:(P=o.id)!==null&&P!==void 0?P:\"1\"},$))),publicKey:o.publicKey}},(await g({method:\"wallet_sendPreparedCalls\",params:[{version:\"1.0\",type:Q.type,data:Q.userOp,chainId:Q.chainId,signature:oe}]}))[0]}case\"wallet_sendPreparedCalls\":{fv(y.params);let z=z6(y.params[0],\"chainId\");if(!z)throw Tt.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Tt.rpc.invalidParams(\"chainId must be a hex encoded integer\");return await t.request({method:\"wallet_sendPreparedCalls\",params:y.params})}case\"wallet_prepareCalls\":{fv(y.params);let z=z6(y.params[0],\"chainId\");if(!z)throw Tt.rpc.invalidParams(\"chainId is required\");if(!Xr(z))throw Tt.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Tt.rpc.invalidParams(\"params are required\");if(!z6(y.params[0],\"calls\"))throw Tt.rpc.invalidParams(\"calls are required\");let V=y.params[0];return c&&V.capabilities&&!(\"attribution\"in V.capabilities)&&(V.capabilities.attribution=c),await t.request({method:\"wallet_prepareCalls\",params:[Object.assign(Object.assign({},y.params[0]),{chainId:z})]})}case\"personal_sign\":{if(fv(y.params),!Xr(y.params[0]))throw Tt.rpc.invalidParams(\"message must be a hex encoded string\");let z=tm(y.params[0]);return h.signMessage({message:z})}case\"eth_signTypedData_v4\":{fv(y.params);let z=typeof y.params[1]==\"string\"?JSON.parse(y.params[1]):y.params[1];return h.signTypedData(z)}case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"wallet_addEthereumChain\":case\"wallet_switchEthereumChain\":default:throw Tt.rpc.methodNotSupported()}}catch(z){if(hY(z)){let V=d9e(z);if(V)throw V}throw z}};return{request:g}}var GMe=Z(()=>{f();Rd();c1();sk();zMe();dfe();pn();KY();WMe()});async function QY({address:e,client:t,publicKey:n,factory:r,factoryData:o}){if(!await lm(t,{address:e})&&r&&o){if(nr(r)!==nr(jY))throw Tt.rpc.internal(\"unknown factory address\");let c=Jy({abi:WY,data:o});if(c.functionName!==\"createAccount\")throw Tt.rpc.internal(\"unknown factory function\");let[u]=c.args;return u.findIndex(d=>d.toLowerCase()===qMe(n).toLowerCase())}let a=await ui(t,{address:e,abi:Id,functionName:\"ownerCount\"});for(let c=Number(a)-1;c>=0;c--){let u=await ui(t,{address:e,abi:Id,functionName:\"ownerAtIndex\",args:[BigInt(c)]}),d=qMe(n);if(u.toLowerCase()===d.toLowerCase())return c}return-1}function qMe(e){return Un(e)?Ci(e):e}var gfe=Z(()=>{f();Rd();pn();Jp();j6()});async function KMe(){let e=jL();return new Promise(t=>{ik({snackbarContext:\"sub_account_add_owner\"}),e.presentItem({autoExpand:!0,message:\"App requires a signer update\",menuItems:[{isRed:!1,info:\"Confirm\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{bx({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"confirm\"}),e.clear(),t(\"authenticate\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{bx({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"cancel\"}),e.clear(),t(\"cancel\")}}]})})}var YMe=Z(()=>{f();_Y();OY()});async function ZMe({ownerAccount:e,globalAccountRequest:t}){var n,r;let o=Bt.account.get(),i=Bt.subAccounts.get(),a=(n=o.accounts)===null||n===void 0?void 0:n.find(v=>v.toLowerCase()!==i?.address.toLowerCase());Wu(a,Tt.provider.unauthorized(\"no global account\")),Wu((r=o.chain)===null||r===void 0?void 0:r.id,Tt.provider.unauthorized(\"no chain id\")),Wu(i?.address,Tt.provider.unauthorized(\"no sub account\"));let c=[];if(e.type===\"local\"&&e.address&&c.push({to:i.address,data:vn({abi:Id,functionName:\"addOwnerAddress\",args:[e.address]}),value:Zn(0)}),e.publicKey){let[v,x]=Dc([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);c.push({to:i.address,data:vn({abi:Id,functionName:\"addOwnerPublicKey\",args:[v,x]}),value:Zn(0)})}let u={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:c,chainId:Ne(84532),from:a}]};if(await KMe()===\"cancel\")throw Tt.provider.unauthorized(\"user cancelled\");let p=await t(u),h=LY(o.chain.id);if(Wu(h,Tt.rpc.internal(`client not found for chainId ${o.chain.id}`)),(await j0(h,{id:p})).status!==\"success\")throw Tt.rpc.internal(\"add owner call failed\");let y=await QY({address:i.address,publicKey:e.type===\"local\"&&e.address?e.address:e.publicKey,client:h});if(y===-1)throw Tt.rpc.internal(\"failed to find owner index\");return y}var QMe=Z(()=>{f();Rd();ufe();ng();sk();pn();oY();j6();gfe();YMe()});async function JMe({errorData:e,globalAccountAddress:t,subAccountAddress:n,client:r,request:o,subAccountRequest:i,globalAccountRequest:a}){var c;let u=(c=r.chain)===null||c===void 0?void 0:c.id;Wu(u,Tt.rpc.internal(\"invalid chainId\"));let d=MMe({errorData:e,sourceAddress:t}),p=await PMe();if(p===\"cancel\")throw new Error(\"User cancelled funding\");let h,g=3600*24,y=3;if(p===\"update_permission\"){if(d.length===1){let P=d[0],z=kMe({spendPermission:{token:P.token,allowance:Ne(P.requiredAmount*BigInt(y)),period:g,account:t,spender:n,start:0,end:0xffffffffffff,salt:Ne(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\"0x\"},chainId:u});h={method:\"eth_signTypedData_v4\",params:[t,z]}}else{let P=NMe({spendPermissionBatch:{account:t,period:g,start:0,end:0xffffffffffff,permissions:d.map(z=>({token:z.token,allowance:Ne(z.requiredAmount*BigInt(y)),period:g,account:t,spender:n,salt:\"0x0\",extraData:\"0x\"}))},chainId:u});h={method:\"eth_signTypedData_v4\",params:[t,P]}}try{await a(h)}catch(P){throw console.error(P),new Error(\"User denied spend permission request\")}return i(o)}let v=d.map(P=>P.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:n,value:Ne(P.requiredAmount),data:\"0x\"}:{to:P.token,value:\"0x0\",data:vn({abi:z2,functionName:\"transfer\",args:[n,P.requiredAmount]})}),x;if(o.method===\"wallet_sendCalls\"&&DMe(o.params))x=o.params[0];else if(o.method===\"eth_sendTransaction\"&&LMe(o.params))x=qY({calls:[o.params[0]],chainId:u,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let R=vn({abi:Id,functionName:\"executeBatch\",args:[x.calls.map(P=>{var z,V;return{target:P.to,value:qn((z=P.value)!==null&&z!==void 0?z:\"0x0\"),data:(V=P.data)!==null&&V!==void 0?V:\"0x\"}})]}),S=[...v,{data:R,to:n,value:\"0x0\"}],M=await a({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},x),{calls:S,from:t})]});return o.method===\"eth_sendTransaction\"?GY({client:r,id:M}):M}var XMe=Z(()=>{f();Rd();sk();pn();KY();j6()});var YL,$Me=Z(()=>{f();ok();pn();Rd();tMe();dMe();afe();c1();ufe();DY();ng();sk();pMe();lfe();rk();HY();TMe();KY();GMe();gfe();QMe();XMe();YL=class{constructor(t){var n,r,o,i;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new zY;let{account:a,chains:c}=Bt.getState();this.accounts=(n=a.accounts)!==null&&n!==void 0?n:[],this.chain=(r=a.chain)!==null&&r!==void 0?r:{id:(i=(o=t.metadata.appChainIds)===null||o===void 0?void 0:o[0])!==null&&i!==void 0?i:1},c&&cfe(c)}async handshake(t){var n,r,o;let i=nh.get(t);Z9e({method:t.method,correlationId:i});try{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let a=await this.createRequestMessage({handshake:{method:t.method,params:(o=t.params)!==null&&o!==void 0?o:[]}},i),c=await this.communicator.postRequestAndWaitForResponse(a);if(\"failure\"in c.content)throw c.content.failure;let u=await UY(\"public\",c.sender);await this.keyManager.setPeerPublicKey(u);let d=await this.decryptResponseMessage(c);this.handleResponse(t,d),J9e({method:t.method,correlationId:i})}catch(a){throw Q9e({method:t.method,correlationId:i,errorMessage:vx(a)}),a}}async request(t){let n=nh.get(t);X9e({method:t.method,correlationId:n});try{let r=await this._request(t);return eMe({method:t.method,correlationId:n}),r}catch(r){throw $9e({method:t.method,correlationId:n,errorMessage:vx(r)}),r}}async _request(t){var n,r,o,i,a,c,u,d,p,h,g,y,v,x;if(this.accounts.length===0)switch(t.method){case\"eth_requestAccounts\":return await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n)),await VY(),await this.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:Object.assign({},(i=(o=Bt.subAccountsConfig.get())===null||o===void 0?void 0:o.capabilities)!==null&&i!==void 0?i:{})}]}),this.accounts;case\"wallet_switchEthereumChain\":{hfe(t.params),this.chain.id=Number(t.params[0].chainId);return}case\"wallet_connect\":{await((c=(a=this.communicator).waitForPopupLoaded)===null||c===void 0?void 0:c.call(a)),await VY();let R={};UMe(t,\"addSubAccount\")&&(R=(d=(u=Bt.subAccountsConfig.get())===null||u===void 0?void 0:u.capabilities)!==null&&d!==void 0?d:{});let S=ck(t,R);return this.sendRequestToPopup(S)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw Tt.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let R=nh.get(t);nMe({method:t.method,correlationId:R});try{let S=await this.sendRequestToSubAccountSigner(t);return rMe({method:t.method,correlationId:R}),S}catch(S){throw oMe({method:t.method,correlationId:R,errorMessage:vx(S)}),S}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let R=Bt.subAccounts.get(),S=Bt.subAccountsConfig.get();return R?.address&&(this.accounts=S?.enableAutoSubAccounts?GL(this.accounts,R.address):qL(this.accounts,R.address)),(p=this.callback)===null||p===void 0||p.call(this,\"connect\",{chainId:Ne(this.chain.id)}),this.accounts}case\"eth_coinbase\":return this.accounts[0];case\"net_version\":return this.chain.id;case\"eth_chainId\":return Ne(this.chain.id);case\"wallet_getCapabilities\":return this.handleGetCapabilitiesRequest(t);case\"wallet_switchEthereumChain\":return this.handleSwitchChainRequest(t);case\"eth_ecRecover\":case\"personal_sign\":case\"wallet_sign\":case\"personal_ecRecover\":case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":case\"wallet_addEthereumChain\":case\"wallet_watchAsset\":case\"wallet_sendCalls\":case\"wallet_showCallsStatus\":case\"wallet_grantPermissions\":return this.sendRequestToPopup(t);case\"wallet_connect\":{let R=await FMe();if(R)return R;await((g=(h=this.communicator).waitForPopupLoaded)===null||g===void 0?void 0:g.call(h)),await VY();let S=Bt.subAccountsConfig.get(),M=ck(t,(y=S?.capabilities)!==null&&y!==void 0?y:{});return(v=this.callback)===null||v===void 0||v.call(this,\"connect\",{chainId:Ne(this.chain.id)}),this.sendRequestToPopup(M)}case\"wallet_getSubAccounts\":{let R=Bt.subAccounts.get();if(R?.address)return{subAccounts:[R]};if(!this.chain.rpcUrl)throw Tt.rpc.internal(\"No RPC URL set for chain\");let S=await H_(t,this.chain.rpcUrl);if(fv(S.subAccounts,\"subAccounts\"),S.subAccounts.length>0){VL(S.subAccounts[0]);let M=S.subAccounts[0];Bt.subAccounts.set({address:M.address,factory:M.factory,factoryData:M.factoryData})}return S}case\"wallet_addSubAccount\":return this.addSubAccount(t);case\"coinbase_fetchPermissions\":{IMe(t);let R=OMe(t),S=await H_(R,AY),M=So((x=R.params)===null||x===void 0?void 0:x[0].chainId);return Bt.spendPermissions.set(S.permissions.map(P=>Object.assign(Object.assign({},P),{chainId:M}))),S}default:if(!this.chain.rpcUrl)throw Tt.rpc.internal(\"No RPC URL set for chain\");return H_(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var n,r;await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let o=await this.sendEncryptedRequest(t),i=await this.decryptResponseMessage(o);return this.handleResponse(t,i)}async handleResponse(t,n){var r,o,i,a,c;let u=n.result;if(\"error\"in u)throw u.error;switch(t.method){case\"eth_requestAccounts\":{let d=u.value;this.accounts=d,Bt.account.set({accounts:d,chain:this.chain}),(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",d);break}case\"wallet_connect\":{let d=u.value,p=d.accounts.map(S=>S.address);this.accounts=p,Bt.account.set({accounts:p});let h=d.accounts.at(0),g=h?.capabilities;if(g?.subAccounts){let S=g?.subAccounts;fv(S,\"subAccounts\"),VL(S[0]),Bt.subAccounts.set({address:S[0].address,factory:S[0].factory,factoryData:S[0].factoryData})}let y=[this.accounts[0]],v=Bt.subAccounts.get(),x=Bt.subAccountsConfig.get();v?.address&&(this.accounts=x?.enableAutoSubAccounts?GL(this.accounts,v.address):qL(this.accounts,v.address));let R=(i=(o=d?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||i===void 0?void 0:i.spendPermissions;R&&\"permissions\"in R&&Bt.spendPermissions.set(R?.permissions),(a=this.callback)===null||a===void 0||a.call(this,\"accountsChanged\",y);break}case\"wallet_addSubAccount\":{VL(u.value);let d=u.value;Bt.subAccounts.set(d);let p=Bt.subAccountsConfig.get();this.accounts=p?.enableAutoSubAccounts?GL(this.accounts,d.address):qL(this.accounts,d.address),(c=this.callback)===null||c===void 0||c.call(this,\"accountsChanged\",this.accounts);break}default:break}return u.value}async cleanup(){var t,n;let r=Bt.config.get().metadata;await this.keyManager.clear(),Bt.account.clear(),Bt.subAccounts.clear(),Bt.spendPermissions.clear(),Bt.chains.clear(),this.accounts=[],this.chain={id:(n=(t=r?.appChainIds)===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(t){hfe(t.params);let n=F6(t.params[0].chainId);if(this.updateChain(n))return null;let o=await this.sendRequestToPopup(t);return o===null&&this.updateChain(n),o}async handleGetCapabilitiesRequest(t){RMe(t.params);let n=t.params[0],r=t.params[1];if(!this.accounts.some(c=>Pl(c,n)))throw Tt.provider.unauthorized(\"no active account found when getting capabilities\");let o=Bt.getState().account.capabilities;if(!o)return{};if(!r||r.length===0)return o;let i=new Set(r.map(c=>So(c)));return Object.fromEntries(Object.entries(o).filter(([c])=>{try{let u=So(c);return i.has(u)}catch{return!1}}))}async sendEncryptedRequest(t){let n=await this.keyManager.getSharedSecret();if(!n)throw Tt.provider.unauthorized(\"No shared secret found when encrypting request\");let r=await yMe({action:t,chainId:this.chain.id},n),o=nh.get(t),i=await this.createRequestMessage({encrypted:r},o);return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(t,n){let r=await BY(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:n,sender:r,content:t,timestamp:new Date}}async decryptResponseMessage(t){var n,r,o;let i=t.content;if(\"failure\"in i)throw i.failure;let a=await this.keyManager.getSharedSecret();if(!a)throw Tt.provider.unauthorized(\"Invalid session: no shared secret found when decrypting response\");let c=await bMe(i.encrypted,a),u=(n=c.data)===null||n===void 0?void 0:n.chains;if(u){let p=(r=c.data)===null||r===void 0?void 0:r.nativeCurrencies,h=Object.entries(u).map(([g,y])=>{let v=p?.[Number(g)];return Object.assign({id:Number(g),rpcUrl:y},v?{nativeCurrency:v}:{})});Bt.chains.set(h),this.updateChain(this.chain.id,h),cfe(h)}let d=(o=c.data)===null||o===void 0?void 0:o.capabilities;return d&&Bt.account.set({capabilities:d}),c}updateChain(t,n){var r;let o=Bt.getState(),i=n??o.chains,a=i?.find(c=>c.id===t);return a?(a!==this.chain&&(this.chain=a,Bt.account.set({chain:a}),(r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",gx(a.id))),!0):!1}async addSubAccount(t){var n,r,o,i;let c=Bt.getState().subAccount,u=Bt.subAccountsConfig.get();if(c?.address)return this.accounts=u?.enableAutoSubAccounts?GL(this.accounts,c.address):qL(this.accounts,c.address),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",this.accounts),c;if(await((o=(r=this.communicator).waitForPopupLoaded)===null||o===void 0?void 0:o.call(r)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&t.params[0].account.type===\"create\"){let p;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)p=t.params[0].account.keys;else{let h=(i=Bt.subAccountsConfig.get())!==null&&i!==void 0?i:{},{account:g}=h.toOwnerAccount?await h.toOwnerAccount():await H6();if(!g)throw Tt.provider.unauthorized(\"could not get subaccount owner account when adding sub account\");p=[{type:g.address?\"address\":\"webauthn-p256\",publicKey:g.address||g.publicKey}]}t.params[0].account.keys=p}let d=await this.sendRequestToPopup(t);return VL(d),d}shouldRequestUseSubAccountSigner(t){let n=pfe(t),r=Bt.subAccounts.get();return n?n.toLowerCase()===r?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(t){var n;let r=Bt.subAccounts.get(),o=Bt.subAccountsConfig.get(),i=Bt.config.get();Wu(r?.address,Tt.provider.unauthorized(\"no active sub account when sending request to sub account signer\"));let a=o?.toOwnerAccount?await o.toOwnerAccount():await H6();Wu(a?.account,Tt.provider.unauthorized(\"no active sub account owner when sending request to sub account signer\")),pfe(t)===void 0&&(t=CMe(t,r.address));let u=LY(this.chain.id);Wu(u,Tt.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let d=this.accounts.find(v=>v.toLowerCase()!==r.address.toLowerCase());Wu(d,Tt.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let p=BMe({attribution:(n=i.preference)===null||n===void 0?void 0:n.attribution,dappOrigin:window.location.origin}),h=a.account.type===\"local\"?a.account.address:a.account.publicKey,g=await QY({address:r.address,factory:r.factory,factoryData:r.factoryData,publicKey:h,client:u});if(g===-1){let v=nh.get(t);iMe({method:t.method,correlationId:v});try{g=await ZMe({ownerAccount:a.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),aMe({method:t.method,correlationId:v})}catch(x){return sMe({method:t.method,correlationId:v,errorMessage:vx(x)}),Tt.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:y}=await VMe({address:r.address,owner:a.account,client:u,factory:r.factory,factoryData:r.factoryData,parentAddress:d,attribution:p?{suffix:p}:void 0,ownerIndex:g});try{return await y(t)}catch(v){let x;if(hY(v))x=JSON.parse(v.details);else if(Kde(v))x=v;else throw v;if(!(Kde(x)&&x.data)||!x.data)throw v;let R=nh.get(t);cMe({method:t.method,correlationId:R});try{let S=await JMe({errorData:x.data,globalAccountAddress:d,subAccountAddress:r.address,client:u,request:t,subAccountRequest:y,globalAccountRequest:this.request.bind(this)});return uMe({method:t.method,correlationId:R}),S}catch(S){throw console.error(S),lMe({method:t.method,correlationId:R,errorMessage:vx(S)}),v}}}}});var eDe,tDe,nDe,rDe,oDe,iDe,yfe,aDe,bfe=Z(()=>{f();z_();eDe=({method:e,correlationId:t})=>{Tr(\"walletlink_signer.handshake.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t},hr.high)},tDe=({method:e,correlationId:t,errorMessage:n})=>{Tr(\"walletlink_signer.handshake.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n},hr.high)},nDe=({method:e,correlationId:t})=>{Tr(\"walletlink_signer.handshake.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t},hr.high)},rDe=({method:e,correlationId:t})=>{Tr(\"walletlink_signer.request.started\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t},hr.high)},oDe=({method:e,correlationId:t,errorMessage:n})=>{Tr(\"walletlink_signer.request.error\",{action:pr.error,componentType:fr.unknown,method:e,correlationId:t,errorMessage:n},hr.high)},iDe=({method:e,correlationId:t})=>{Tr(\"walletlink_signer.request.completed\",{action:pr.unknown,componentType:fr.unknown,method:e,correlationId:t},hr.high)},yfe=()=>{Tr(\"walletlink_signer.walletlink_connection.connection_failed\",{action:pr.measurement,componentType:fr.unknown},hr.high)},aDe=()=>{Tr(\"walletlink_signer.walletlink_connection.fetch_unseen_events_failed\",{action:pr.measurement,componentType:fr.unknown},hr.high)}});var wfe=me(Bl=>{\"use strict\";f();Object.defineProperty(Bl,\"__esModule\",{value:!0});Bl.output=Bl.exists=Bl.hash=Bl.bytes=Bl.bool=Bl.number=Bl.isBytes=void 0;function JY(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Bl.number=JY;function sDe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}Bl.bool=sDe;function cDe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}Bl.isBytes=cDe;function vfe(e,...t){if(!cDe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Bl.bytes=vfe;function uDe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");JY(e.outputLen),JY(e.blockLen)}Bl.hash=uDe;function lDe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}Bl.exists=lDe;function dDe(e,t){vfe(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}Bl.output=dDe;var Zxt={number:JY,bool:sDe,bytes:vfe,hash:uDe,exists:lDe,output:dDe};Bl.default=Zxt});var PDe=me(Qn=>{\"use strict\";f();Object.defineProperty(Qn,\"__esModule\",{value:!0});Qn.add5L=Qn.add5H=Qn.add4H=Qn.add4L=Qn.add3H=Qn.add3L=Qn.add=Qn.rotlBL=Qn.rotlBH=Qn.rotlSL=Qn.rotlSH=Qn.rotr32L=Qn.rotr32H=Qn.rotrBL=Qn.rotrBH=Qn.rotrSL=Qn.rotrSH=Qn.shrSL=Qn.shrSH=Qn.toBig=Qn.split=Qn.fromBig=void 0;var XY=BigInt(2**32-1),xfe=BigInt(32);function Efe(e,t=!1){return t?{h:Number(e&XY),l:Number(e>>xfe&XY)}:{h:Number(e>>xfe&XY)|0,l:Number(e&XY)|0}}Qn.fromBig=Efe;function fDe(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:a}=Efe(e[o],t);[n[o],r[o]]=[i,a]}return[n,r]}Qn.split=fDe;var pDe=(e,t)=>BigInt(e>>>0)<<xfe|BigInt(t>>>0);Qn.toBig=pDe;var hDe=(e,t,n)=>e>>>n;Qn.shrSH=hDe;var mDe=(e,t,n)=>e<<32-n|t>>>n;Qn.shrSL=mDe;var gDe=(e,t,n)=>e>>>n|t<<32-n;Qn.rotrSH=gDe;var yDe=(e,t,n)=>e<<32-n|t>>>n;Qn.rotrSL=yDe;var bDe=(e,t,n)=>e<<64-n|t>>>n-32;Qn.rotrBH=bDe;var vDe=(e,t,n)=>e>>>n-32|t<<64-n;Qn.rotrBL=vDe;var wDe=(e,t)=>t;Qn.rotr32H=wDe;var xDe=(e,t)=>e;Qn.rotr32L=xDe;var EDe=(e,t,n)=>e<<n|t>>>32-n;Qn.rotlSH=EDe;var ADe=(e,t,n)=>t<<n|e>>>32-n;Qn.rotlSL=ADe;var _De=(e,t,n)=>t<<n-32|e>>>64-n;Qn.rotlBH=_De;var SDe=(e,t,n)=>e<<n-32|t>>>64-n;Qn.rotlBL=SDe;function TDe(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}Qn.add=TDe;var CDe=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);Qn.add3L=CDe;var RDe=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;Qn.add3H=RDe;var IDe=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);Qn.add4L=IDe;var ODe=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;Qn.add4H=ODe;var kDe=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);Qn.add5L=kDe;var NDe=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;Qn.add5H=NDe;var Qxt={fromBig:Efe,split:fDe,toBig:pDe,shrSH:hDe,shrSL:mDe,rotrSH:gDe,rotrSL:yDe,rotrBH:bDe,rotrBL:vDe,rotr32H:wDe,rotr32L:xDe,rotlSH:EDe,rotlSL:ADe,rotlBH:_De,rotlBL:SDe,add:TDe,add3L:CDe,add3H:RDe,add4L:IDe,add4H:ODe,add5H:NDe,add5L:kDe};Qn.default=Qxt});var MDe=me($Y=>{\"use strict\";f();Object.defineProperty($Y,\"__esModule\",{value:!0});$Y.crypto=void 0;$Y.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});var BDe=me(Nn=>{\"use strict\";f();Object.defineProperty(Nn,\"__esModule\",{value:!0});Nn.randomBytes=Nn.wrapXOFConstructorWithOpts=Nn.wrapConstructorWithOpts=Nn.wrapConstructor=Nn.checkOpts=Nn.Hash=Nn.concatBytes=Nn.toBytes=Nn.utf8ToBytes=Nn.asyncLoop=Nn.nextTick=Nn.hexToBytes=Nn.bytesToHex=Nn.byteSwap32=Nn.byteSwapIfBE=Nn.byteSwap=Nn.isLE=Nn.rotl=Nn.rotr=Nn.createView=Nn.u32=Nn.u8=Nn.isBytes=void 0;var Afe=MDe(),Sfe=wfe();function Jxt(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}Nn.isBytes=Jxt;var Xxt=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);Nn.u8=Xxt;var $xt=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));Nn.u32=$xt;var eEt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);Nn.createView=eEt;var tEt=(e,t)=>e<<32-t|e>>>t;Nn.rotr=tEt;var nEt=(e,t)=>e<<t|e>>>32-t>>>0;Nn.rotl=nEt;Nn.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var rEt=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;Nn.byteSwap=rEt;Nn.byteSwapIfBE=Nn.isLE?e=>e:e=>(0,Nn.byteSwap)(e);function oEt(e){for(let t=0;t<e.length;t++)e[t]=(0,Nn.byteSwap)(e[t])}Nn.byteSwap32=oEt;var iEt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function aEt(e){(0,Sfe.bytes)(e);let t=\"\";for(let n=0;n<e.length;n++)t+=iEt[e[n]];return t}Nn.bytesToHex=aEt;var wx={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function DDe(e){if(e>=wx._0&&e<=wx._9)return e-wx._0;if(e>=wx._A&&e<=wx._F)return e-(wx._A-10);if(e>=wx._a&&e<=wx._f)return e-(wx._a-10)}function sEt(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=DDe(e.charCodeAt(i)),c=DDe(e.charCodeAt(i+1));if(a===void 0||c===void 0){let u=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+u+\\'\" at index \\'+i)}r[o]=a*16+c}return r}Nn.hexToBytes=sEt;var cEt=async()=>{};Nn.nextTick=cEt;async function uEt(e,t,n){let r=Date.now();for(let o=0;o<e;o++){n(o);let i=Date.now()-r;i>=0&&i<t||(await(0,Nn.nextTick)(),r+=i)}}Nn.asyncLoop=uEt;function LDe(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}Nn.utf8ToBytes=LDe;function eZ(e){return typeof e==\"string\"&&(e=LDe(e)),(0,Sfe.bytes)(e),e}Nn.toBytes=eZ;function lEt(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];(0,Sfe.bytes)(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}Nn.concatBytes=lEt;var _fe=class{clone(){return this._cloneInto()}};Nn.Hash=_fe;var dEt={}.toString;function fEt(e,t){if(t!==void 0&&dEt.call(t)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(e,t)}Nn.checkOpts=fEt;function pEt(e){let t=r=>e().update(eZ(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}Nn.wrapConstructor=pEt;function hEt(e){let t=(r,o)=>e(o).update(eZ(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Nn.wrapConstructorWithOpts=hEt;function mEt(e){let t=(r,o)=>e(o).update(eZ(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Nn.wrapXOFConstructorWithOpts=mEt;function gEt(e=32){if(Afe.crypto&&typeof Afe.crypto.getRandomValues==\"function\")return Afe.crypto.getRandomValues(new Uint8Array(e));throw new Error(\"crypto.getRandomValues must be defined\")}Nn.randomBytes=gEt});var GDe=me(ya=>{\"use strict\";f();Object.defineProperty(ya,\"__esModule\",{value:!0});ya.shake256=ya.shake128=ya.keccak_512=ya.keccak_384=ya.keccak_256=ya.keccak_224=ya.sha3_512=ya.sha3_384=ya.sha3_256=ya.sha3_224=ya.Keccak=ya.keccakP=void 0;var uk=wfe(),QL=PDe(),xx=BDe(),HDe=[],zDe=[],jDe=[],yEt=BigInt(0),ZL=BigInt(1),bEt=BigInt(2),vEt=BigInt(7),wEt=BigInt(256),xEt=BigInt(113);for(let e=0,t=ZL,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],HDe.push(2*(5*r+n)),zDe.push((e+1)*(e+2)/2%64);let o=yEt;for(let i=0;i<7;i++)t=(t<<ZL^(t>>vEt)*xEt)%wEt,t&bEt&&(o^=ZL<<(ZL<<BigInt(i))-ZL);jDe.push(o)}var[EEt,AEt]=(0,QL.split)(jDe,!0),UDe=(e,t,n)=>n>32?(0,QL.rotlBH)(e,t,n):(0,QL.rotlSH)(e,t,n),FDe=(e,t,n)=>n>32?(0,QL.rotlBL)(e,t,n):(0,QL.rotlSL)(e,t,n);function WDe(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){let c=(a+8)%10,u=(a+2)%10,d=n[u],p=n[u+1],h=UDe(d,p,1)^n[c],g=FDe(d,p,1)^n[c+1];for(let y=0;y<50;y+=10)e[a+y]^=h,e[a+y+1]^=g}let o=e[2],i=e[3];for(let a=0;a<24;a++){let c=zDe[a],u=UDe(o,i,c),d=FDe(o,i,c),p=HDe[a];o=e[p],i=e[p+1],e[p]=u,e[p+1]=d}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)n[c]=e[a+c];for(let c=0;c<10;c++)e[a+c]^=~n[(c+2)%10]&n[(c+4)%10]}e[0]^=EEt[r],e[1]^=AEt[r]}n.fill(0)}ya.keccakP=WDe;var JL=class e extends xx.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,uk.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error(\"Sha3 supports only keccak-f1600 function\");this.state=new Uint8Array(200),this.state32=(0,xx.u32)(this.state)}keccak(){xx.isLE||(0,xx.byteSwap32)(this.state32),WDe(this.state32,this.rounds),xx.isLE||(0,xx.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,uk.exists)(this);let{blockLen:n,state:r}=this;t=(0,xx.toBytes)(t);let o=t.length;for(let i=0;i<o;){let a=Math.min(n-this.pos,o-i);for(let c=0;c<a;c++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){(0,uk.exists)(this,!1),(0,uk.bytes)(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return(0,uk.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,uk.output)(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new e(n,r,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}};ya.Keccak=JL;var W_=(e,t,n)=>(0,xx.wrapConstructor)(()=>new JL(t,e,n));ya.sha3_224=W_(6,144,224/8);ya.sha3_256=W_(6,136,256/8);ya.sha3_384=W_(6,104,384/8);ya.sha3_512=W_(6,72,512/8);ya.keccak_224=W_(1,144,224/8);ya.keccak_256=W_(1,136,256/8);ya.keccak_384=W_(1,104,384/8);ya.keccak_512=W_(1,72,512/8);var VDe=(e,t,n)=>(0,xx.wrapXOFConstructorWithOpts)((r={})=>new JL(t,e,r.dkLen===void 0?n:r.dkLen,!0));ya.shake128=VDe(31,168,128/8);ya.shake256=VDe(31,136,256/8)});var Tfe=me((bXn,XDe)=>{f();var{keccak_256:_Et}=GDe();function qDe(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function SEt(e){return`0x${e.toString(16)}`}function TEt(e){let t=SEt(e);return new globalThis.Buffer(ZDe(t.slice(2)),\"hex\")}function CEt(e){return e.toString(2).length}function KDe(e,t){let n=e.toString(16);n.length%2!==0&&(n=\"0\"+n);let r=n.match(/.{1,2}/g).map(o=>parseInt(o,16));for(;r.length<t;)r.unshift(0);return globalThis.Buffer.from(r)}function REt(e,t){let n=e<0n,r;if(n){let o=(1n<<BigInt(t))-1n;r=(~e&o)+1n}else r=e;return r&=(1n<<BigInt(t))-1n,r}function YDe(e,t,n){let r=qDe(t);return e=tZ(e),n?e.length<t?(e.copy(r),r):e.slice(0,t):e.length<t?(e.copy(r,t-e.length),r):e.slice(-t)}function IEt(e,t){return YDe(e,t,!0)}function tZ(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")QDe(e)?e=globalThis.Buffer.from(ZDe(JDe(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=TEt(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(typeof e==\"bigint\")e=KDe(e);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function OEt(e){return e=tZ(e),\"0x\"+e.toString(\"hex\")}function kEt(e,t){if(e=tZ(e),t||(t=256),t!==256)throw new Error(\"unsupported\");return globalThis.Buffer.from(_Et(new Uint8Array(e)))}function ZDe(e){return e.length%2?\"0\"+e:e}function QDe(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function JDe(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}XDe.exports={zeros:qDe,setLength:YDe,setLengthRight:IEt,isHexString:QDe,stripHexPrefix:JDe,toBuffer:tZ,bufferToHex:OEt,keccak:kEt,bitLengthFromBigInt:CEt,bufferBEFromBigInt:KDe,twosFromBigInt:REt}});var oLe=me((wXn,rLe)=>{f();var jf=Tfe();function eLe(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function lk(e){return Number.parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function $De(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function tLe(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":Number.parseInt(t[2],10):null}function W6(e){var t=typeof e;if(t===\"string\"||t===\"number\")return BigInt(e);if(t===\"bigint\")return e;throw new Error(\"Argument is not a number\")}function pv(e,t){var n,r,o,i;if(e===\"address\")return pv(\"uint160\",W6(t));if(e===\"bool\")return pv(\"uint8\",t?1:0);if(e===\"string\")return pv(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(PEt(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(n=tLe(e),n!==\"dynamic\"&&n!==0&&t.length>n)throw new Error(\"Elements exceed array size: \"+n);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(i in t)o.push(pv(e,t[i]));if(n===\"dynamic\"){var a=pv(\"uint256\",t.length);o.unshift(a)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([pv(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,jf.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(n=lk(e),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);return jf.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(n=lk(e),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);r=W6(t);let c=jf.bitLengthFromBigInt(r);if(c>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+c);if(r<0)throw new Error(\"Supplied uint is negative\");return jf.bufferBEFromBigInt(r,32)}else if(e.startsWith(\"int\")){if(n=lk(e),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);r=W6(t);let c=jf.bitLengthFromBigInt(r);if(c>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+c);let u=jf.twosFromBigInt(r,256);return jf.bufferBEFromBigInt(u,32)}else if(e.startsWith(\"ufixed\")){if(n=$De(e),r=W6(t),r<0)throw new Error(\"Supplied ufixed is negative\");return pv(\"uint256\",r*BigInt(2)**BigInt(n[1]))}else if(e.startsWith(\"fixed\"))return n=$De(e),pv(\"int256\",W6(t)*BigInt(2)**BigInt(n[1]))}throw new Error(\"Unsupported or invalid type: \"+e)}function NEt(e){return e===\"string\"||e===\"bytes\"||tLe(e)===\"dynamic\"}function PEt(e){return e.lastIndexOf(\"]\")===e.length-1}function MEt(e,t){var n=[],r=[],o=32*e.length;for(var i in e){var a=eLe(e[i]),c=t[i],u=pv(a,c);NEt(a)?(n.push(pv(\"uint256\",o)),r.push(u),o+=u.length):n.push(u)}return globalThis.Buffer.concat(n.concat(r))}function nLe(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var n,r,o=[],i=0;i<e.length;i++){var a=eLe(e[i]),c=t[i];if(a===\"bytes\")o.push(c);else if(a===\"string\")o.push(new globalThis.Buffer(c,\"utf8\"));else if(a===\"bool\")o.push(new globalThis.Buffer(c?\"01\":\"00\",\"hex\"));else if(a===\"address\")o.push(jf.setLength(c,20));else if(a.startsWith(\"bytes\")){if(n=lk(a),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);o.push(jf.setLengthRight(c,n))}else if(a.startsWith(\"uint\")){if(n=lk(a),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);r=W6(c);let u=jf.bitLengthFromBigInt(r);if(u>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+u);o.push(jf.bufferBEFromBigInt(r,n/8))}else if(a.startsWith(\"int\")){if(n=lk(a),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);r=W6(c);let u=jf.bitLengthFromBigInt(r);if(u>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+u);let d=jf.twosFromBigInt(r,n);o.push(jf.bufferBEFromBigInt(d,n/8))}else throw new Error(\"Unsupported or invalid type: \"+a)}return globalThis.Buffer.concat(o)}function DEt(e,t){return jf.keccak(nLe(e,t))}rLe.exports={rawEncode:MEt,solidityPack:nLe,soliditySHA3:DEt}});var sLe=me((EXn,aLe)=>{f();var u1=Tfe(),XL=oLe(),iLe={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},Cfe={encodeData(e,t,n,r=!0){let o=[\"bytes32\"],i=[this.hashType(e,n)];if(r){let a=(c,u,d)=>{if(n[u]!==void 0)return[\"bytes32\",d==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":u1.keccak(this.encodeData(u,d,n,r))];if(d===void 0)throw new Error(`missing value for field ${c} of type ${u}`);if(u===\"bytes\")return[\"bytes32\",u1.keccak(d)];if(u===\"string\")return typeof d==\"string\"&&(d=globalThis.Buffer.from(d,\"utf8\")),[\"bytes32\",u1.keccak(d)];if(u.lastIndexOf(\"]\")===u.length-1){let p=u.slice(0,u.lastIndexOf(\"[\")),h=d.map(g=>a(c,p,g));return[\"bytes32\",u1.keccak(XL.rawEncode(h.map(([g])=>g),h.map(([,g])=>g)))]}return[u,d]};for(let c of n[e]){let[u,d]=a(c.name,c.type,t[c.name]);o.push(u),i.push(d)}}else for(let a of n[e]){let c=t[a.name];if(c!==void 0)if(a.type===\"bytes\")o.push(\"bytes32\"),c=u1.keccak(c),i.push(c);else if(a.type===\"string\")o.push(\"bytes32\"),typeof c==\"string\"&&(c=globalThis.Buffer.from(c,\"utf8\")),c=u1.keccak(c),i.push(c);else if(n[a.type]!==void 0)o.push(\"bytes32\"),c=u1.keccak(this.encodeData(a.type,c,n,r)),i.push(c);else{if(a.type.lastIndexOf(\"]\")===a.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(a.type),i.push(c)}}return XL.rawEncode(o,i)},encodeType(e,t){let n=\"\",r=this.findTypeDependencies(e,t).filter(o=>o!==e);r=[e].concat(r.sort());for(let o of r){if(!t[o])throw new Error(\"No type definition specified: \"+o);n+=o+\"(\"+t[o].map(({name:a,type:c})=>c+\" \"+a).join(\",\")+\")\"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\\\\w*/)[0],n.includes(e)||t[e]===void 0)return n;n.push(e);for(let r of t[e])for(let o of this.findTypeDependencies(r.type,t,n))!n.includes(o)&&n.push(o);return n},hashStruct(e,t,n,r=!0){return u1.keccak(this.encodeData(e,t,n,r))},hashType(e,t){return u1.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in iLe.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),r=[globalThis.Buffer.from(\"1901\",\"hex\")];return r.push(this.hashStruct(\"EIP712Domain\",n.domain,n.types,t)),n.primaryType!==\"EIP712Domain\"&&r.push(this.hashStruct(n.primaryType,n.message,n.types,t)),u1.keccak(globalThis.Buffer.concat(r))}};aLe.exports={TYPED_MESSAGE_SCHEMA:iLe,TypedDataUtils:Cfe,hashForSignTypedDataLegacy:function(e){return LEt(e.data)},hashForSignTypedData_v3:function(e){return Cfe.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return Cfe.hash(e.data)}};function LEt(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let n=e.map(function(i){return i.type===\"bytes\"?u1.toBuffer(i.value):i.value}),r=e.map(function(i){return i.type}),o=e.map(function(i){if(!i.name)throw t;return i.type+\" \"+i.name});return XL.soliditySHA3([\"bytes32\",\"bytes32\"],[XL.soliditySHA3(new Array(e.length).fill(\"string\"),o),XL.soliditySHA3(r,n)])}});var cLe,$L,uLe,nZ=Z(()=>{f();cLe=\"walletUsername\",$L=\"Addresses\",uLe=\"AppVersion\"});var rZ,lLe=Z(()=>{f();c1();rZ=class{constructor(t){this.secret=t}async encrypt(t){let n=this.secret;if(n.length!==64)throw new Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",tk(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),i=new TextEncoder,a=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},o,i.encode(t)),c=16,u=a.slice(a.byteLength-c),d=a.slice(0,a.byteLength-c),p=new Uint8Array(u),h=new Uint8Array(d),g=new Uint8Array([...r,...p,...h]);return HL(g)}async decrypt(t){let n=this.secret;if(n.length!==64)throw new Error(\"secret must be 256 bits\");return new Promise((r,o)=>{(async()=>{let i=await crypto.subtle.importKey(\"raw\",tk(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),a=tk(t),c=a.slice(0,12),u=a.slice(12,28),d=a.slice(28),p=new Uint8Array([...d,...u]),h={name:\"AES-GCM\",iv:new Uint8Array(c)};try{let g=await window.crypto.subtle.decrypt(h,i,p),y=new TextDecoder;r(y.decode(g))}catch(g){o(g)}})()})}}});var oZ,dLe=Z(()=>{f();oZ=class{constructor(t,n,r){this.linkAPIUrl=t,this.sessionId=n;let o=`${n}:${r}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(n=>console.error(\"Unable to mark events as seen:\",n))}async fetchUnseenEvents(){var t;let n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){let{events:r,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let i=(t=r?.filter(a=>a.event===\"Web3Response\").map(a=>({type:\"Event\",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(i),i}throw new Error(`Check unseen events failed: ${n.status}`)}}});var l1,V6,fLe=Z(()=>{f();(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(l1||(l1={}));V6=class e{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.isDisconnecting=!1,this.url=t.replace(/^http/,\"ws\"),this.instanceId=e.instanceCounter++,e.activeInstances.add(this.instanceId)}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");if(this.isDisconnecting)throw new Error(\"WebSocket is disconnecting, cannot reconnect on same instance\");return new Promise((t,n)=>{var r;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(i){n(i);return}(r=this.connectionStateListener)===null||r===void 0||r.call(this,l1.CONNECTING),o.onclose=i=>{var a;this.clearWebSocket(),o.readyState!==WebSocket.OPEN&&n(new Error(`websocket error ${i.code}: ${i.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,l1.DISCONNECTED)},o.onopen=i=>{var a;t(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,l1.CONNECTED),e.pendingData.length>0&&([...e.pendingData].forEach(u=>this.sendData(u)),e.pendingData=[])},o.onmessage=i=>{var a,c;if(i.data===\"h\")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:\"Heartbeat\"});else try{let u=JSON.parse(i.data);(c=this.incomingDataListener)===null||c===void 0||c.call(this,u)}catch{}}})}disconnect(){var t;let{webSocket:n}=this;if(n){this.isDisconnecting=!0,this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,l1.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(t){let{webSocket:n}=this;if(!n){e.pendingData.push(t),this.isDisconnecting||this.connect();return}if(n.readyState!==WebSocket.OPEN){e.pendingData.push(t);return}n.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}cleanup(){e.activeInstances.delete(this.instanceId)}};V6.instanceCounter=0;V6.activeInstances=new Set;V6.pendingData=[]});var pLe,BEt,iZ,hLe=Z(()=>{f();bfe();Zde();nZ();lLe();dLe();fLe();pLe=1e4,BEt=6e4,iZ=class{constructor({session:t,linkAPIUrl:n,listener:r}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=a1(1),this.reconnectAttempts=0,this.isReconnecting=!1,this._connected=!1,this._linked=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=i=>{if(!i)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",c=>i.JsonRpcUrl&&this.handleChainUpdated(c,i.JsonRpcUrl)]]).forEach((c,u)=>{let d=i[u];d!==void 0&&c(d)})},this.handleDestroyed=i=>{var a;i===\"1\"&&((a=this.listener)===null||a===void 0||a.resetAndReload())},this.handleAccountUpdated=async i=>{var a;try{let c=await this.cipher.decrypt(i);(a=this.listener)===null||a===void 0||a.accountUpdated(c)}catch{}},this.handleMetadataUpdated=async(i,a)=>{var c;try{let u=await this.cipher.decrypt(a);(c=this.listener)===null||c===void 0||c.metadataUpdated(i,u)}catch{}},this.handleWalletUsernameUpdated=async i=>{this.handleMetadataUpdated(cLe,i)},this.handleAppVersionUpdated=async i=>{this.handleMetadataUpdated(uLe,i)},this.handleChainUpdated=async(i,a)=>{var c;try{let u=await this.cipher.decrypt(i),d=await this.cipher.decrypt(a);(c=this.listener)===null||c===void 0||c.chainUpdated(u,d)}catch{}},this.session=t,this.cipher=new rZ(t.secret),this.listener=r,this.linkAPIUrl=n,this.WebSocketClass=WebSocket;let o=this.createWebSocket();this.ws=o,this.http=new oZ(n,t.id,t.key),this.setupVisibilityChangeHandler()}createWebSocket(){let t=new V6(`${this.linkAPIUrl}/rpc`,this.WebSocketClass);return this.activeWsInstance=t,t.setConnectionStateListener(async n=>{if(t!==this.activeWsInstance)return;let r=!1;switch(n){case l1.DISCONNECTED:this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.lastHeartbeatResponse=0,r=!1,this.destroyed||(async()=>{if(this.isReconnecting)return;this.isReconnecting=!0;let i=this.reconnectAttempts===0?0:3e3;await new Promise(a=>setTimeout(a,i)),!this.destroyed&&t===this.activeWsInstance?(this.reconnectAttempts++,\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{yfe()}).finally(()=>{this.isReconnecting=!1})):this.isReconnecting=!1})();break;case l1.CONNECTED:this.reconnectAttempts=0;try{r=await this.handleConnected(),this.fetchUnseenEventsAPI().catch(()=>{})}catch{break}this.connected=r,this.updateLastHeartbeat(),this.heartbeatIntervalId&&clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=window.setInterval(()=>{this.heartbeat()},pLe),setTimeout(()=>{this.heartbeat()},100);break;case l1.CONNECTING:break}n!==l1.CONNECTED&&(this.connected=r)}),t.setIncomingDataListener(n=>{var r;switch(n.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let o=n.type===\"IsLinkedOK\"?n.linked:void 0;this.linked=o||n.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{this.handleSessionMetadataUpdated(n.metadata);break}case\"Event\":{this.handleIncomingEvent(n);break}}n.id!==void 0&&((r=this.requestResolutions.get(n.id))===null||r===void 0||r(n))}),t}setupVisibilityChangeHandler(){this.visibilityChangeHandler=()=>{!document.hidden&&!this.destroyed&&(this.connected?this.heartbeat():this.reconnectWithFreshWebSocket())},this.focusHandler=()=>{!this.destroyed&&!this.connected&&this.reconnectWithFreshWebSocket()},document.addEventListener(\"visibilitychange\",this.visibilityChangeHandler),window.addEventListener(\"focus\",this.focusHandler),window.addEventListener(\"pageshow\",t=>{t.persisted&&this.focusHandler&&this.focusHandler()})}reconnectWithFreshWebSocket(){if(this.destroyed)return;let t=this.ws;this.activeWsInstance=void 0,t.disconnect(),\"cleanup\"in t&&typeof t.cleanup==\"function\"&&t.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{yfe()})}connect(){if(this.destroyed)throw new Error(\"instance is destroyed\");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:\"SetSessionConfig\",id:a1(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:\"1\"}},{timeout:1e3}),this.destroyed=!0,this.activeWsInstance=void 0,this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.visibilityChangeHandler&&document.removeEventListener(\"visibilitychange\",this.visibilityChangeHandler),this.focusHandler&&window.removeEventListener(\"focus\",this.focusHandler),this.ws.disconnect(),\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.listener=void 0)}get connected(){return this._connected}set connected(t){this._connected=t}get linked(){return this._linked}set linked(t){var n,r;this._linked=t,t&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.linkedUpdated(t)}setOnceLinked(t){return new Promise(n=>{this.linked?t().then(n):this.onceLinked=()=>{t().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(t){var n;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let r=await this.cipher.decrypt(t.data),o=JSON.parse(r);if(o.type!==\"WEB3_RESPONSE\")return;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(o.id,o.response)}catch{}}async checkUnseenEvents(){await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){try{(await this.http.fetchUnseenEvents()).forEach(n=>{this.handleIncomingEvent(n)})}catch{aDe()}}async publishEvent(t,n,r=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,location:location.href,relaySource:\"coinbaseWalletExtension\"in window&&window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:a1(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:r};return this.setOnceLinked(async()=>{let a=await this.makeRequest(i);if(a.type===\"Fail\")throw new Error(a.error||\"failed to publish event\");return a.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>pLe*2){this.ws.disconnect();return}if(this.connected)try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,n={timeout:BEt}){let r=t.id;this.sendData(t);let o;return Promise.race([new Promise((i,a)=>{o=window.setTimeout(()=>{a(new Error(`request ${r} timed out`))},n.timeout)}),new Promise(i=>{this.requestResolutions.set(r,a=>{clearTimeout(o),i(a),this.requestResolutions.delete(r)})})])}async handleConnected(){return(await this.makeRequest({type:\"HostSession\",id:a1(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type===\"Fail\"?!1:(this.sendData({type:\"IsLinked\",id:a1(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:\"GetSessionConfig\",id:a1(this.nextReqId++),sessionId:this.session.id}),!0)}}});var aZ,mLe=Z(()=>{f();c1();aZ=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,n=Jde(t.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),t}}});function UEt(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function sZ(e,...t){if(!UEt(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function Rfe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function gLe(e,t){sZ(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}var Ife=Z(()=>{f()});function yLe(e){sZ(e);let t=\"\";for(let n=0;n<e.length;n++)t+=FEt[e[n]];return t}function HEt(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ofe(e){return typeof e==\"string\"&&(e=HEt(e)),sZ(e),e}function bLe(e){let t=r=>e().update(Ofe(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}var uZ,d1,KXn,FEt,cZ,YXn,lZ=Z(()=>{f();Ife();uZ=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),d1=(e,t)=>e<<32-t|e>>>t,KXn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,FEt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));cZ=class{clone(){return this._cloneInto()}},YXn={}.toString});function zEt(e,t,n,r){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,n,r);let o=BigInt(32),i=BigInt(4294967295),a=Number(n>>o&i),c=Number(n&i),u=r?4:0,d=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+d,c,r)}var vLe,wLe,dZ,xLe=Z(()=>{f();Ife();lZ();vLe=(e,t,n)=>e&t^~e&n,wLe=(e,t,n)=>e&t^e&n^t&n,dZ=class extends cZ{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=uZ(this.buffer)}update(t){Rfe(this);let{view:n,buffer:r,blockLen:o}=this;t=Ofe(t);let i=t.length;for(let a=0;a<i;){let c=Math.min(o-this.pos,i-a);if(c===o){let u=uZ(t);for(;o<=i-a;a+=o)this.process(u,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Rfe(this),gLe(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:a}=this;n[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>o-a&&(this.process(r,0),a=0);for(let h=a;h<o;h++)n[h]=0;zEt(r,o-8,BigInt(this.length*8),i),this.process(r,0);let c=uZ(t),u=this.outputLen;if(u%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let d=u/4,p=this.get();if(d>p.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let h=0;h<d;h++)c.setUint32(4*h,p[h],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:a,pos:c}=this;return t.length=o,t.pos=c,t.finished=i,t.destroyed=a,o%n&&t.buffer.set(r),t}}});var jEt,V_,G_,kfe,ELe,ALe=Z(()=>{f();xLe();lZ();jEt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),V_=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),G_=new Uint32Array(64),kfe=class extends dZ{constructor(){super(64,32,8,!1),this.A=V_[0]|0,this.B=V_[1]|0,this.C=V_[2]|0,this.D=V_[3]|0,this.E=V_[4]|0,this.F=V_[5]|0,this.G=V_[6]|0,this.H=V_[7]|0}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:u}=this;return[t,n,r,o,i,a,c,u]}set(t,n,r,o,i,a,c,u){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=a|0,this.G=c|0,this.H=u|0}process(t,n){for(let h=0;h<16;h++,n+=4)G_[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=G_[h-15],y=G_[h-2],v=d1(g,7)^d1(g,18)^g>>>3,x=d1(y,17)^d1(y,19)^y>>>10;G_[h]=x+G_[h-7]+v+G_[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let g=d1(c,6)^d1(c,11)^d1(c,25),y=p+g+vLe(c,u,d)+jEt[h]+G_[h]|0,x=(d1(r,2)^d1(r,13)^d1(r,22))+wLe(r,o,i)|0;p=d,d=u,u=c,c=a+y|0,a=i,i=o,o=r,r=y+x|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,o,i,a,c,u,d,p)}roundClean(){G_.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},ELe=bLe(()=>new kfe)});var _Le,SLe,TLe,dk,CLe=Z(()=>{f();ALe();lZ();c1();_Le=\"session:id\",SLe=\"session:secret\",TLe=\"session:linked\",dk=class e{constructor(t,n,r,o=!1){this.storage=t,this.id=n,this.secret=r,this.key=yLe(ELe(`${n}, ${r} WalletLink`)),this._linked=!!o}static create(t){let n=mx(16),r=mx(32);return new e(t,n,r).save()}static load(t){let n=t.getItem(_Le),r=t.getItem(TLe),o=t.getItem(SLe);return n&&o?new e(t,n,o,r===\"1\"):null}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this.storage.setItem(_Le,this.id),this.storage.setItem(SLe,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(TLe,this._linked?\"1\":\"0\")}}});var RLe,ILe=Z(()=>{f();RLe=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var fZ,WEt,OLe=Z(()=>{f();ax();av();av();nfe();CY();zL();ILe();fZ=class{constructor(){this.root=null,this.darkMode=TY()}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),SY()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&(k_(null,this.root),t&&k_(Yo(WEt,Object.assign({},t,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}},WEt=({title:e,buttonText:t,darkMode:n,onButtonClick:r,onDismiss:o})=>{let i=n?\"dark\":\"light\";return Yo(rfe,{darkMode:n},Yo(\"div\",{class:\"-cbwsdk-redirect-dialog\"},Yo(\"style\",null,RLe),Yo(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),Yo(\"div\",{class:hm(\"-cbwsdk-redirect-dialog-box\",i)},Yo(\"p\",null,e),Yo(\"button\",{onClick:r},t))))}});var eB,kLe=Z(()=>{f();ok();OLe();zL();eB=class{constructor(){this.attached=!1,this.redirectDialog=new fZ}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(t){let n=new URL(x9e);n.searchParams.append(\"redirect_url\",R9e().href),t&&n.searchParams.append(\"wl_url\",t);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=n.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(t){this.redirectToCoinbaseWallet(t),setTimeout(()=>{this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}})},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}}});var tB,NLe=Z(()=>{f();Rd();WL();c1();hLe();nZ();mLe();CLe();NY();zL();ife();kLe();tB=class e{constructor(t){this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.isMobileWeb=I9e(),this.linkedUpdated=i=>{this.isLinked=i;let a=this.storage.getItem($L);if(i&&(this._session.linked=i),this.isUnlinkedErrorState=!1,a){let c=a.split(\" \"),u=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";c[0]!==\"\"&&!i&&this._session.linked&&!u&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(i,a)=>{this.storage.setItem(i,a)},this.chainUpdated=(i,a)=>{this.chainCallbackParams.chainId===i&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:i,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(a,Number.parseInt(i,10)))},this.accountUpdated=i=>{this.accountsCallback&&this.accountsCallback([i]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(a=>{this.invokeCallback(a,{method:\"requestEthereumAccounts\",result:[i]})}),e.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.metadata=t.metadata,this.accountsCallback=t.accountsCallback,this.chainCallback=t.chainCallback;let{session:n,ui:r,connection:o}=this.subscribe();this._session=n,this.connection=o,this.relayEventManager=new aZ,this.ui=r,this.ui.attach()}subscribe(){let t=dk.load(this.storage)||dk.create(this.storage),{linkAPIUrl:n}=this,r=new iZ({session:t,linkAPIUrl:n,listener:this}),o=this.isMobileWeb?new eB:new RY;return r.connect(),{session:t,ui:o,connection:r}}resetAndReload(){this.connection.destroy().then(()=>{let t=dk.load(this.storage);t?.id===this._session.id&&dv.clearAll(),document.location.reload()}).catch(t=>{})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:s1(t.weiValue),data:U6(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?s1(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?s1(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?s1(t.gasPriceInWei):null,gasLimit:t.gasLimit?s1(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:s1(t.weiValue),data:U6(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?s1(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?s1(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?s1(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?s1(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,n){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:U6(t,!0),chainId:n}})}getWalletLinkSession(){return this._session}sendRequest(t){let n=null,r=mx(8),o=i=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,i),n?.()};return new Promise((i,a)=>{n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,c=>{if(n?.(),zc(c))return a(new Error(c.errorMessage));i(c)}),this.publishWeb3RequestEvent(r,t)})}publishWeb3RequestEvent(t,n){let r={type:\"WEB3_REQUEST\",id:t,request:n};this.publishEvent(\"Web3Request\",r,!0).then(o=>{}).catch(o=>{this.handleWeb3ResponseMessage(r.id,{method:n.method,errorMessage:o.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(n.method)}openCoinbaseWalletDeeplink(t){if(this.ui instanceof eB)switch(t){case\"requestEthereumAccounts\":case\"switchEthereumChain\":return;default:window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(t){let n={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",n,!1).then()}publishEvent(t,n,r){return this.connection.publishEvent(t,n,r)}handleWeb3ResponseMessage(t,n){if(n.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(r=>this.invokeCallback(r,n)),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t,n)}handleErrorResponse(t,n,r){var o;let i=(o=r?.message)!==null&&o!==void 0?o:\"Unspecified error message.\";this.handleWeb3ResponseMessage(t,{method:n,errorMessage:i})}invokeCallback(t,n){let r=this.relayEventManager.callbacks.get(t);r&&(r(n),this.relayEventManager.callbacks.delete(t))}requestEthereumAccounts(){let{appName:t,appLogoUrl:n}=this.metadata,r={method:\"requestEthereumAccounts\",params:{appName:t,appLogoUrl:n}},o=null,i=mx(8);return new Promise((a,c)=>{this.relayEventManager.callbacks.set(i,u=>{if(o?.(),zc(u))return c(new Error(u.errorMessage));a(u)}),e.accountRequestCallbackIds.add(i),this.publishWeb3RequestEvent(i,r)})}watchAsset(t,n,r,o,i,a){let c={method:\"watchAsset\",params:{type:t,options:{address:n,symbol:r,decimals:o,image:i},chainId:a}},u=null,d=mx(8),p=h=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,h),u?.()};return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload}),new Promise((h,g)=>{this.relayEventManager.callbacks.set(d,y=>{if(u?.(),zc(y))return g(new Error(y.errorMessage));h(y)}),this.publishWeb3RequestEvent(d,c)})}addEthereumChain(t,n,r,o,i,a){let c={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:n,blockExplorerUrls:o,chainName:i,iconUrls:r,nativeCurrency:a}},u=null,d=mx(8),p=h=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,h),u?.()};return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload}),new Promise((h,g)=>{this.relayEventManager.callbacks.set(d,y=>{if(u?.(),zc(y))return g(new Error(y.errorMessage));h(y)}),this.publishWeb3RequestEvent(d,c)})}switchEthereumChain(t,n){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:n})},o=null,i=mx(8),a=c=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,r.method,c),o?.()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}),new Promise((c,u)=>{this.relayEventManager.callbacks.set(i,d=>{if(o?.(),zc(d)&&d.errorCode)return u(Tt.provider.custom({code:d.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if(zc(d))return u(new Error(d.errorMessage));c(d)}),this.publishWeb3RequestEvent(i,r)})}};tB.accountRequestCallbackIds=new Set});var nB,PLe,MLe,rB,DLe=Z(()=>{f();ok();Rd();WL();bfe();afe();c1();DY();rk();nB=he(sLe(),1);NLe();nZ();NY();PLe=\"DefaultChainId\",MLe=\"DefaultJsonRpcUrl\",rB=class{constructor(t){this._relay=null,this._addresses=[],this.metadata=t.metadata,this._storage=new dv(\"walletlink\",tfe),this.callback=t.callback||null;let n=this._storage.getItem($L);if(n){let r=n.split(\" \");r[0]!==\"\"&&(this._addresses=r.map(o=>yx(o)))}this.initializeRelay()}getSession(){let t=this.initializeRelay(),{id:n,secret:r}=t.getWalletLinkSession();return{id:n,secret:r}}async handshake(t){let n=\"eth_requestAccounts\",r=nh.get(t);eDe({method:n,correlationId:r});try{await this._eth_requestAccounts(),nDe({method:n,correlationId:r})}catch(o){throw tDe({method:n,correlationId:r,errorMessage:vx(o)}),o}}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(MLe))!==null&&t!==void 0?t:void 0}set jsonRpcUrl(t){this._storage.setItem(MLe,t)}updateProviderInfo(t,n){var r;this.jsonRpcUrl=t;let o=this.getChainId();this._storage.setItem(PLe,n.toString(10)),F6(n)!==o&&((r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",gx(n)))}async watchAsset(t){let n=Array.isArray(t)?t[0]:t;if(!n.type)throw Tt.rpc.invalidParams(\"Type is required\");if(n?.type!==\"ERC20\")throw Tt.rpc.invalidParams(`Asset of type \\'${n.type}\\' is not supported`);if(!n?.options)throw Tt.rpc.invalidParams(\"Options are required\");if(!n?.options.address)throw Tt.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:o,symbol:i,image:a,decimals:c}=n.options,d=await this.initializeRelay().watchAsset(n.type,o,i,c,a,r?.toString());return zc(d)?!1:!!d.result}async addEthereumChain(t){var n,r;let o=t[0];if(((n=o.rpcUrls)===null||n===void 0?void 0:n.length)===0)throw Tt.rpc.invalidParams(\"please pass in at least 1 rpcUrl\");if(!o.chainName||o.chainName.trim()===\"\")throw Tt.rpc.invalidParams(\"chainName is a required field\");if(!o.nativeCurrency)throw Tt.rpc.invalidParams(\"nativeCurrency is a required field\");let i=Number.parseInt(o.chainId,16);if(i===this.getChainId())return!1;let a=this.initializeRelay(),{rpcUrls:c=[],blockExplorerUrls:u=[],chainName:d,iconUrls:p=[],nativeCurrency:h}=o,g=await a.addEthereumChain(i.toString(),c,p,u,d,h);if(zc(g))return!1;if(((r=g.result)===null||r===void 0?void 0:r.isApproved)===!0)return this.updateProviderInfo(c[0],i),null;throw Tt.rpc.internal(\"unable to add ethereum chain\")}async switchEthereumChain(t){let n=t[0],r=Number.parseInt(n.chainId,16),i=await this.initializeRelay().switchEthereumChain(r.toString(10),this.selectedAddress||void 0);if(zc(i))throw i;let a=i.result;return a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,r),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(t,n){var r;if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let o=t.map(i=>yx(i));JSON.stringify(o)!==JSON.stringify(this._addresses)&&(this._addresses=o,(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",o),this._storage.setItem($L,o.join(\" \")))}async request(t){let n=nh.get(t);rDe({method:t.method,correlationId:n});try{let r=await this._request(t);return iDe({method:t.method,correlationId:n}),r}catch(r){throw oDe({method:t.method,correlationId:n,errorMessage:vx(r)}),r}}async _request(t){let n=t.params||[];switch(t.method){case\"eth_accounts\":return[...this._addresses];case\"eth_coinbase\":return this.selectedAddress||null;case\"net_version\":return this.getChainId().toString(10);case\"eth_chainId\":return gx(this.getChainId());case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_ecRecover\":case\"personal_ecRecover\":return this.ecRecover(t);case\"personal_sign\":return this.personalSign(t);case\"eth_signTransaction\":return this._eth_signTransaction(n);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(n);case\"eth_sendTransaction\":return this._eth_sendTransaction(n);case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this.signTypedData(t);case\"wallet_addEthereumChain\":return this.addEthereumChain(n);case\"wallet_switchEthereumChain\":return this.switchEthereumChain(n);case\"wallet_watchAsset\":return this.watchAsset(n);default:if(!this.jsonRpcUrl)throw Tt.rpc.internal(\"No RPC URL set for chain\");return H_(t,this.jsonRpcUrl)}}_ensureKnownAddress(t){let n=yx(t);if(!this._addresses.map(o=>yx(o)).includes(n))throw new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let n=t.from?yx(t.from):this.selectedAddress;if(!n)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(n);let r=t.to?yx(t.to):null,o=t.value!=null?nk(t.value):BigInt(0),i=t.data?bY(t.data):globalThis.Buffer.alloc(0),a=t.nonce!=null?F6(t.nonce):null,c=t.gasPrice!=null?nk(t.gasPrice):null,u=t.maxFeePerGas!=null?nk(t.maxFeePerGas):null,d=t.maxPriorityFeePerGas!=null?nk(t.maxPriorityFeePerGas):null,p=t.gas!=null?nk(t.gas):null,h=t.chainId?F6(t.chainId):this.getChainId();return{fromAddress:n,toAddress:r,weiValue:o,data:i,nonce:a,gasPriceInWei:c,maxFeePerGas:u,maxPriorityFeePerGas:d,gasLimit:p,chainId:h}}async ecRecover(t){let{method:n,params:r}=t;if(!Array.isArray(r))throw Tt.rpc.invalidParams();let i=await this.initializeRelay().sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:mY(r[0]),signature:mY(r[1]),addPrefix:n===\"personal_ecRecover\"}});if(zc(i))throw i;return i.result}getChainId(){var t;return Number.parseInt((t=this._storage.getItem(PLe))!==null&&t!==void 0?t:\"1\",10)}async _eth_requestAccounts(){var t,n;if(this._addresses.length>0)return(t=this.callback)===null||t===void 0||t.call(this,\"connect\",{chainId:gx(this.getChainId())}),this._addresses;let o=await this.initializeRelay().requestEthereumAccounts();if(zc(o))throw o;if(!o.result)throw new Error(\"accounts received is empty\");return this._setAddresses(o.result),(n=this.callback)===null||n===void 0||n.call(this,\"connect\",{chainId:gx(this.getChainId())}),this._addresses}async personalSign({params:t}){if(!Array.isArray(t))throw Tt.rpc.invalidParams();let n=t[1],r=t[0];this._ensureKnownAddress(n);let i=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:yx(n),message:mY(r),addPrefix:!0,typedDataJson:null}});if(zc(i))throw i;return i.result}async _eth_signTransaction(t){let n=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signEthereumTransaction(n);if(zc(o))throw o;return o.result}async _eth_sendRawTransaction(t){let n=bY(t[0]),o=await this.initializeRelay().submitEthereumTransaction(n,this.getChainId());if(zc(o))throw o;return o.result}async _eth_sendTransaction(t){let n=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signAndSubmitEthereumTransaction(n);if(zc(o))throw o;return o.result}async signTypedData(t){let{method:n,params:r}=t;if(!Array.isArray(r))throw Tt.rpc.invalidParams();let o=d=>{let p={eth_signTypedData_v1:nB.default.hashForSignTypedDataLegacy,eth_signTypedData_v3:nB.default.hashForSignTypedData_v3,eth_signTypedData_v4:nB.default.hashForSignTypedData_v4,eth_signTypedData:nB.default.hashForSignTypedData_v4};return U6(p[n]({data:g9e(d)}),!0)},i=r[n===\"eth_signTypedData_v1\"?1:0],a=r[n===\"eth_signTypedData_v1\"?0:1];this._ensureKnownAddress(i);let u=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:yx(i),message:o(a),typedDataJson:JSON.stringify(a,null,2),addPrefix:!1}});if(zc(u))throw u;return u.result}initializeRelay(){return this._relay||(this._relay=new tB({linkAPIUrl:tfe,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}});function ULe(){return BLe.getItem(LLe)}function FLe(e){BLe.setItem(LLe,e)}function Nfe(e){if(e)return e instanceof YL?\"scw\":\"walletlink\"}async function HLe(e){let{communicator:t,metadata:n,handshakeRequest:r,callback:o}=e;VEt(t,n,o,r).catch(()=>{});let i={id:crypto.randomUUID(),event:\"selectSignerType\",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:r})},{data:a}=await t.postRequestAndWaitForResponse(i);return a}function zLe(e){let{signerType:t,metadata:n,communicator:r,callback:o}=e;switch(t){case\"scw\":return new YL({metadata:n,callback:o,communicator:r});case\"walletlink\":return new rB({metadata:n,callback:o})}}async function VEt(e,t,n,r){await e.onMessage(({event:i})=>i===\"WalletLinkSessionRequest\");let o=new rB({metadata:t,callback:n});e.postMessage({event:\"WalletLinkUpdate\",data:{session:o.getSession()}}),await o.handshake(r),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}var LLe,BLe,jLe=Z(()=>{f();WL();$Me();DLe();LLe=\"SignerType\",BLe=new dv(\"CBWSDK\",\"SignerConfigurator\")});var GEt,fk,Pfe=Z(()=>{f();L9e();ok();UL();Rd();U9e();F9e();WL();G9e();Y9e();c1();DY();ng();rk();jLe();GEt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},fk=class extends PY{constructor(t){var{metadata:n}=t,r=t.preference,{keysUrl:o}=r,i=GEt(r,[\"keysUrl\"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=n,this.preference=i,this.communicator=new kY({url:o,metadata:n,preference:i});let a=ULe();a&&(this.signer=this.initSigner(a),H9e({signerType:a}))}async request(t){let n=crypto.randomUUID();nh.set(t,n),z9e({method:t.method,correlationId:n});try{let r=await this._request(t);return W9e({method:t.method,signerType:Nfe(this.signer),correlationId:n}),r}catch(r){throw j9e({method:t.method,correlationId:n,signerType:Nfe(this.signer),errorMessage:r instanceof Error?r.message:\"\"}),r}finally{nh.delete(t)}}async _request(t){try{if(v9e(t),!this.signer)switch(t.method){case\"eth_requestAccounts\":{let r,o=Bt.subAccountsConfig.get();o?.enableAutoSubAccounts?r=\"scw\":r=await this.requestSignerSelection(t);let i=this.initSigner(r);r===\"scw\"&&o?.enableAutoSubAccounts?(await i.handshake({method:\"handshake\"}),await i.request(t)):await i.handshake(t),this.signer=i,FLe(r);break}case\"wallet_connect\":{let r=this.initSigner(\"scw\");await r.handshake({method:\"handshake\"});let o=await r.request(t);return this.signer=r,o}case\"wallet_sendCalls\":case\"wallet_sign\":{let r=this.initSigner(\"scw\");await r.handshake({method:\"handshake\"});let o=await r.request(t);return await r.cleanup(),o}case\"wallet_getCallsStatus\":return await H_(t,AY);case\"net_version\":return 1;case\"eth_chainId\":return gx(1);default:throw Tt.provider.unauthorized(\"Must call \\'eth_requestAccounts\\' before other methods\")}return await this.signer.request(t)}catch(n){let{code:r}=n;return r===Ma.provider.unauthorized&&this.disconnect(),Promise.reject(B9e(n))}}async enable(){return console.warn(\\'.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.\\'),V9e(),await this.request({method:\"eth_requestAccounts\"})}async disconnect(){var t;await((t=this.signer)===null||t===void 0?void 0:t.cleanup()),this.signer=null,dv.clearAll(),nh.clear(),this.emit(\"disconnect\",Tt.provider.disconnected(\"User initiated disconnection\"))}async requestSignerSelection(t){q9e();let n=await HLe({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:t,callback:this.emit.bind(this)});return K9e(n),n}initSigner(t){return zLe({signerType:t,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}});var WLe,VLe=Z(()=>{f();WLe=(e,t)=>{let n;switch(e){case\"standard\":return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return n=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}}});var pk,Mfe=Z(()=>{f();Vde();c1();ng();wY();rk();efe();Pfe();VLe();pk=class{constructor(t){Bt.persist.rehydrate(),this.metadata={appName:t.appName||\"Dapp\",appLogoUrl:t.appLogoUrl||y9e(),appChainIds:t.appChainIds||[]},Bt.config.set({metadata:this.metadata}),vY()}makeWeb3Provider(t={options:\"all\"}){var n;EY(t),t.telemetry!==!1&&lY(),Bt.config.set({preference:t});let r={metadata:this.metadata,preference:t};return(n=xY(r))!==null&&n!==void 0?n:new fk(r)}getCoinbaseWalletLogo(t,n=240){return WLe(t,n)}}});function GLe(e){var t;let n={metadata:e.metadata,preference:e.preference};return(t=xY(n))!==null&&t!==void 0?t:new fk(n)}var qLe=Z(()=>{f();rk();Pfe()});function KLe(e){var t,n,r,o;let i={metadata:{appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:Object.assign(qEt,(t=e.preference)!==null&&t!==void 0?t:{}),paymasterUrls:e.paymasterUrls};!((n=e.subAccounts)===null||n===void 0)&&n.toOwnerAccount&&$de(e.subAccounts.toOwnerAccount),Bt.subAccountsConfig.set({toOwnerAccount:(r=e.subAccounts)===null||r===void 0?void 0:r.toOwnerAccount,enableAutoSubAccounts:(o=e.subAccounts)===null||o===void 0?void 0:o.enableAutoSubAccounts}),Bt.config.set(i),Bt.persist.rehydrate(),vY(),i.preference.telemetry!==!1&&lY(),EY(i.preference);let a=null,c={getProvider(){return a||(a=GLe(i)),a.sdk=c,a},subAccount:{async create(u){var d,p;let h=Bt.getState();return Wu((d=h.subAccount)===null||d===void 0?void 0:d.address,new Error(\"subaccount already exists\")),await((p=c.getProvider())===null||p===void 0?void 0:p.request({method:\"wallet_addSubAccount\",params:[{version:\"1\",account:u}]}))},async get(){var u,d;let p=Bt.subAccounts.get();if(p?.address)return p;let g=(d=(await((u=c.getProvider())===null||u===void 0?void 0:u.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||d===void 0?void 0:d.subAccounts;return Array.isArray(g)?g[0]:null},async addOwner({address:u,publicKey:d,chainId:p}){var h,g;let y=Bt.subAccounts.get(),v=Bt.account.get();Wu(v,new Error(\"account does not exist\")),Wu(y?.address,new Error(\"subaccount does not exist\"));let x=[];if(d){let[R,S]=Dc([{type:\"bytes32\"},{type:\"bytes32\"}],d);x.push({to:y.address,data:vn({abi:Id,functionName:\"addOwnerPublicKey\",args:[R,S]}),value:Zn(0)})}return u&&x.push({to:y.address,data:vn({abi:Id,functionName:\"addOwnerAddress\",args:[u]}),value:Zn(0)}),await((h=c.getProvider())===null||h===void 0?void 0:h.request({method:\"wallet_sendCalls\",params:[{calls:x,chainId:Zn(p),from:(g=v.accounts)===null||g===void 0?void 0:g[0],version:\"1\"}]}))},setToOwnerAccount(u){$de(u),Bt.subAccountsConfig.set({toOwnerAccount:u})}}};return c}var qEt,YLe=Z(()=>{f();pn();Vde();j6();sk();wY();efe();qLe();ng();qEt={options:\"all\"}});var ZLe={};qa(ZLe,{CoinbaseWalletSDK:()=>pk,createCoinbaseWalletSDK:()=>KLe,default:()=>KEt,getCryptoKeyAccount:()=>H6,removeCryptoKey:()=>EMe});var KEt,QLe=Z(()=>{f();Mfe();Mfe();YLe();HY();KEt=pk});var JLe=me(pZ=>{\"use strict\";f();Object.defineProperty(pZ,\"__esModule\",{value:!0});pZ.walletLogo=void 0;var YEt=(e,t)=>{let n;switch(e){case\"standard\":return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return n=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}};pZ.walletLogo=YEt});var XLe=me(hZ=>{\"use strict\";f();Object.defineProperty(hZ,\"__esModule\",{value:!0});hZ.LINK_API_URL=void 0;hZ.LINK_API_URL=\"https://www.walletlink.org\"});var $Le=me(()=>{f()});var G6=me((eBe,Dfe)=>{f();(function(e,t){\"use strict\";function n(U,T){if(!U)throw new Error(T||\"Assertion failed\")}function r(U,T){U.super_=T;var k=function(){};k.prototype=T.prototype,U.prototype=new k,U.prototype.constructor=U}function o(U,T,k){if(o.isBN(U))return U;this.negative=0,this.words=null,this.length=0,this.red=null,U!==null&&((T===\"le\"||T===\"be\")&&(k=T,T=10),this._init(U||0,T||10,k||\"be\"))}typeof e==\"object\"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?i=window.Buffer:i=$Le().Buffer}catch{}o.isBN=function(T){return T instanceof o?!0:T!==null&&typeof T==\"object\"&&T.constructor.wordSize===o.wordSize&&Array.isArray(T.words)},o.max=function(T,k){return T.cmp(k)>0?T:k},o.min=function(T,k){return T.cmp(k)<0?T:k},o.prototype._init=function(T,k,F){if(typeof T==\"number\")return this._initNumber(T,k,F);if(typeof T==\"object\")return this._initArray(T,k,F);k===\"hex\"&&(k=16),n(k===(k|0)&&k>=2&&k<=36),T=T.toString().replace(/\\\\s+/g,\"\");var N=0;T[0]===\"-\"&&(N++,this.negative=1),N<T.length&&(k===16?this._parseHex(T,N,F):(this._parseBase(T,k,N),F===\"le\"&&this._initArray(this.toArray(),k,F)))},o.prototype._initNumber=function(T,k,F){T<0&&(this.negative=1,T=-T),T<67108864?(this.words=[T&67108863],this.length=1):T<4503599627370496?(this.words=[T&67108863,T/67108864&67108863],this.length=2):(n(T<9007199254740992),this.words=[T&67108863,T/67108864&67108863,1],this.length=3),F===\"le\"&&this._initArray(this.toArray(),k,F)},o.prototype._initArray=function(T,k,F){if(n(typeof T.length==\"number\"),T.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(T.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var B,H,W=0;if(F===\"be\")for(N=T.length-1,B=0;N>=0;N-=3)H=T[N]|T[N-1]<<8|T[N-2]<<16,this.words[B]|=H<<W&67108863,this.words[B+1]=H>>>26-W&67108863,W+=24,W>=26&&(W-=26,B++);else if(F===\"le\")for(N=0,B=0;N<T.length;N+=3)H=T[N]|T[N+1]<<8|T[N+2]<<16,this.words[B]|=H<<W&67108863,this.words[B+1]=H>>>26-W&67108863,W+=24,W>=26&&(W-=26,B++);return this._strip()};function a(U,T){var k=U.charCodeAt(T);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;n(!1,\"Invalid character in \"+U)}function c(U,T,k){var F=a(U,k);return k-1>=T&&(F|=a(U,k-1)<<4),F}o.prototype._parseHex=function(T,k,F){this.length=Math.ceil((T.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var B=0,H=0,W;if(F===\"be\")for(N=T.length-1;N>=k;N-=2)W=c(T,k,N)<<B,this.words[H]|=W&67108863,B>=18?(B-=18,H+=1,this.words[H]|=W>>>26):B+=8;else{var G=T.length-k;for(N=G%2===0?k+1:k;N<T.length;N+=2)W=c(T,k,N)<<B,this.words[H]|=W&67108863,B>=18?(B-=18,H+=1,this.words[H]|=W>>>26):B+=8}this._strip()};function u(U,T,k,F){for(var N=0,B=0,H=Math.min(U.length,k),W=T;W<H;W++){var G=U.charCodeAt(W)-48;N*=F,G>=49?B=G-49+10:G>=17?B=G-17+10:B=G,n(G>=0&&B<F,\"Invalid character\"),N+=B}return N}o.prototype._parseBase=function(T,k,F){this.words=[0],this.length=1;for(var N=0,B=1;B<=67108863;B*=k)N++;N--,B=B/k|0;for(var H=T.length-F,W=H%N,G=Math.min(H,H-W)+F,O=0,j=F;j<G;j+=N)O=u(T,j,j+N,k),this.imuln(B),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(W!==0){var te=1;for(O=u(T,j,T.length,k),j=0;j<W;j++)te*=k;this.imuln(te),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this._strip()},o.prototype.copy=function(T){T.words=new Array(this.length);for(var k=0;k<this.length;k++)T.words[k]=this.words[k];T.length=this.length,T.negative=this.negative,T.red=this.red};function d(U,T){U.words=T.words,U.length=T.length,U.negative=T.negative,U.red=T.red}if(o.prototype._move=function(T){d(T,this)},o.prototype.clone=function(){var T=new o(null);return this.copy(T),T},o.prototype._expand=function(T){for(;this.length<T;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<\"u\"&&typeof Symbol.for==\"function\")try{o.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=p}catch{o.prototype.inspect=p}else o.prototype.inspect=p;function p(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var h=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(T,k){T=T||10,k=k|0||1;var F;if(T===16||T===\"hex\"){F=\"\";for(var N=0,B=0,H=0;H<this.length;H++){var W=this.words[H],G=((W<<N|B)&16777215).toString(16);B=W>>>24-N&16777215,N+=2,N>=26&&(N-=26,H--),B!==0||H!==this.length-1?F=h[6-G.length]+G+F:F=G+F}for(B!==0&&(F=B.toString(16)+F);F.length%k!==0;)F=\"0\"+F;return this.negative!==0&&(F=\"-\"+F),F}if(T===(T|0)&&T>=2&&T<=36){var O=g[T],j=y[T];F=\"\";var te=this.clone();for(te.negative=0;!te.isZero();){var ne=te.modrn(j).toString(T);te=te.idivn(j),te.isZero()?F=ne+F:F=h[O-ne.length]+ne+F}for(this.isZero()&&(F=\"0\"+F);F.length%k!==0;)F=\"0\"+F;return this.negative!==0&&(F=\"-\"+F),F}n(!1,\"Base should be between 2 and 36\")},o.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-T:T},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(T,k){return this.toArrayLike(i,T,k)}),o.prototype.toArray=function(T,k){return this.toArrayLike(Array,T,k)};var v=function(T,k){return T.allocUnsafe?T.allocUnsafe(k):new T(k)};o.prototype.toArrayLike=function(T,k,F){this._strip();var N=this.byteLength(),B=F||Math.max(1,N);n(N<=B,\"byte array longer than desired length\"),n(B>0,\"Requested array length <= 0\");var H=v(T,B),W=k===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+W](H,N),H},o.prototype._toArrayLikeLE=function(T,k){for(var F=0,N=0,B=0,H=0;B<this.length;B++){var W=this.words[B]<<H|N;T[F++]=W&255,F<T.length&&(T[F++]=W>>8&255),F<T.length&&(T[F++]=W>>16&255),H===6?(F<T.length&&(T[F++]=W>>24&255),N=0,H=0):(N=W>>>24,H+=2)}if(F<T.length)for(T[F++]=N;F<T.length;)T[F++]=0},o.prototype._toArrayLikeBE=function(T,k){for(var F=T.length-1,N=0,B=0,H=0;B<this.length;B++){var W=this.words[B]<<H|N;T[F--]=W&255,F>=0&&(T[F--]=W>>8&255),F>=0&&(T[F--]=W>>16&255),H===6?(F>=0&&(T[F--]=W>>24&255),N=0,H=0):(N=W>>>24,H+=2)}if(F>=0)for(T[F--]=N;F>=0;)T[F--]=0},Math.clz32?o.prototype._countBits=function(T){return 32-Math.clz32(T)}:o.prototype._countBits=function(T){var k=T,F=0;return k>=4096&&(F+=13,k>>>=13),k>=64&&(F+=7,k>>>=7),k>=8&&(F+=4,k>>>=4),k>=2&&(F+=2,k>>>=2),F+k},o.prototype._zeroBits=function(T){if(T===0)return 26;var k=T,F=0;return(k&8191)===0&&(F+=13,k>>>=13),(k&127)===0&&(F+=7,k>>>=7),(k&15)===0&&(F+=4,k>>>=4),(k&3)===0&&(F+=2,k>>>=2),(k&1)===0&&F++,F},o.prototype.bitLength=function(){var T=this.words[this.length-1],k=this._countBits(T);return(this.length-1)*26+k};function x(U){for(var T=new Array(U.bitLength()),k=0;k<T.length;k++){var F=k/26|0,N=k%26;T[k]=U.words[F]>>>N&1}return T}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,k=0;k<this.length;k++){var F=this._zeroBits(this.words[k]);if(T+=F,F!==26)break}return T},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(T){return this.negative!==0?this.abs().inotn(T).iaddn(1):this.clone()},o.prototype.fromTwos=function(T){return this.testn(T-1)?this.notn(T).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(T){for(;this.length<T.length;)this.words[this.length++]=0;for(var k=0;k<T.length;k++)this.words[k]=this.words[k]|T.words[k];return this._strip()},o.prototype.ior=function(T){return n((this.negative|T.negative)===0),this.iuor(T)},o.prototype.or=function(T){return this.length>T.length?this.clone().ior(T):T.clone().ior(this)},o.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},o.prototype.iuand=function(T){var k;this.length>T.length?k=T:k=this;for(var F=0;F<k.length;F++)this.words[F]=this.words[F]&T.words[F];return this.length=k.length,this._strip()},o.prototype.iand=function(T){return n((this.negative|T.negative)===0),this.iuand(T)},o.prototype.and=function(T){return this.length>T.length?this.clone().iand(T):T.clone().iand(this)},o.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},o.prototype.iuxor=function(T){var k,F;this.length>T.length?(k=this,F=T):(k=T,F=this);for(var N=0;N<F.length;N++)this.words[N]=k.words[N]^F.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this._strip()},o.prototype.ixor=function(T){return n((this.negative|T.negative)===0),this.iuxor(T)},o.prototype.xor=function(T){return this.length>T.length?this.clone().ixor(T):T.clone().ixor(this)},o.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},o.prototype.inotn=function(T){n(typeof T==\"number\"&&T>=0);var k=Math.ceil(T/26)|0,F=T%26;this._expand(k),F>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return F>0&&(this.words[N]=~this.words[N]&67108863>>26-F),this._strip()},o.prototype.notn=function(T){return this.clone().inotn(T)},o.prototype.setn=function(T,k){n(typeof T==\"number\"&&T>=0);var F=T/26|0,N=T%26;return this._expand(F+1),k?this.words[F]=this.words[F]|1<<N:this.words[F]=this.words[F]&~(1<<N),this._strip()},o.prototype.iadd=function(T){var k;if(this.negative!==0&&T.negative===0)return this.negative=0,k=this.isub(T),this.negative^=1,this._normSign();if(this.negative===0&&T.negative!==0)return T.negative=0,k=this.isub(T),T.negative=1,k._normSign();var F,N;this.length>T.length?(F=this,N=T):(F=T,N=this);for(var B=0,H=0;H<N.length;H++)k=(F.words[H]|0)+(N.words[H]|0)+B,this.words[H]=k&67108863,B=k>>>26;for(;B!==0&&H<F.length;H++)k=(F.words[H]|0)+B,this.words[H]=k&67108863,B=k>>>26;if(this.length=F.length,B!==0)this.words[this.length]=B,this.length++;else if(F!==this)for(;H<F.length;H++)this.words[H]=F.words[H];return this},o.prototype.add=function(T){var k;return T.negative!==0&&this.negative===0?(T.negative=0,k=this.sub(T),T.negative^=1,k):T.negative===0&&this.negative!==0?(this.negative=0,k=T.sub(this),this.negative=1,k):this.length>T.length?this.clone().iadd(T):T.clone().iadd(this)},o.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var k=this.iadd(T);return T.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var F=this.cmp(T);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,B;F>0?(N=this,B=T):(N=T,B=this);for(var H=0,W=0;W<B.length;W++)k=(N.words[W]|0)-(B.words[W]|0)+H,H=k>>26,this.words[W]=k&67108863;for(;H!==0&&W<N.length;W++)k=(N.words[W]|0)+H,H=k>>26,this.words[W]=k&67108863;if(H===0&&W<N.length&&N!==this)for(;W<N.length;W++)this.words[W]=N.words[W];return this.length=Math.max(this.length,W),N!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(T){return this.clone().isub(T)};function R(U,T,k){k.negative=T.negative^U.negative;var F=U.length+T.length|0;k.length=F,F=F-1|0;var N=U.words[0]|0,B=T.words[0]|0,H=N*B,W=H&67108863,G=H/67108864|0;k.words[0]=W;for(var O=1;O<F;O++){for(var j=G>>>26,te=G&67108863,ne=Math.min(O,T.length-1),ae=Math.max(0,O-U.length+1);ae<=ne;ae++){var pe=O-ae|0;N=U.words[pe]|0,B=T.words[ae]|0,H=N*B+te,j+=H/67108864|0,te=H&67108863}k.words[O]=te|0,G=j|0}return G!==0?k.words[O]=G|0:k.length--,k._strip()}var S=function(T,k,F){var N=T.words,B=k.words,H=F.words,W=0,G,O,j,te=N[0]|0,ne=te&8191,ae=te>>>13,pe=N[1]|0,ye=pe&8191,ve=pe>>>13,xe=N[2]|0,De=xe&8191,Ge=xe>>>13,gt=N[3]|0,Ye=gt&8191,lt=gt>>>13,At=N[4]|0,ht=At&8191,et=At>>>13,fn=N[5]|0,Zt=fn&8191,Vt=fn>>>13,jt=N[6]|0,Jt=jt&8191,Xt=jt>>>13,sr=N[7]|0,Yn=sr&8191,Fr=sr>>>13,Ws=N[8]|0,io=Ws&8191,Hr=Ws>>>13,qi=N[9]|0,Ar=qi&8191,zr=qi>>>13,la=B[0]|0,ue=la&8191,Ie=la>>>13,_t=B[1]|0,ot=_t&8191,Mt=_t>>>13,Sn=B[2]|0,Gt=Sn&8191,mn=Sn>>>13,On=B[3]|0,rr=On&8191,un=On>>>13,Ni=B[4]|0,yo=Ni&8191,Xo=Ni>>>13,of=B[5]|0,_r=of&8191,Nr=of>>>13,$l=B[6]|0,kn=$l&8191,bo=$l>>>13,cp=B[7]|0,ao=cp&8191,$o=cp>>>13,Yt=B[8]|0,jr=Yt&8191,Mn=Yt>>>13,af=B[9]|0,Ro=af&8191,Yr=af>>>13;F.negative=T.negative^k.negative,F.length=19,G=Math.imul(ne,ue),O=Math.imul(ne,Ie),O=O+Math.imul(ae,ue)|0,j=Math.imul(ae,Ie);var Vs=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(Vs>>>26)|0,Vs&=67108863,G=Math.imul(ye,ue),O=Math.imul(ye,Ie),O=O+Math.imul(ve,ue)|0,j=Math.imul(ve,Ie),G=G+Math.imul(ne,ot)|0,O=O+Math.imul(ne,Mt)|0,O=O+Math.imul(ae,ot)|0,j=j+Math.imul(ae,Mt)|0;var ol=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(ol>>>26)|0,ol&=67108863,G=Math.imul(De,ue),O=Math.imul(De,Ie),O=O+Math.imul(Ge,ue)|0,j=Math.imul(Ge,Ie),G=G+Math.imul(ye,ot)|0,O=O+Math.imul(ye,Mt)|0,O=O+Math.imul(ve,ot)|0,j=j+Math.imul(ve,Mt)|0,G=G+Math.imul(ne,Gt)|0,O=O+Math.imul(ne,mn)|0,O=O+Math.imul(ae,Gt)|0,j=j+Math.imul(ae,mn)|0;var xi=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(xi>>>26)|0,xi&=67108863,G=Math.imul(Ye,ue),O=Math.imul(Ye,Ie),O=O+Math.imul(lt,ue)|0,j=Math.imul(lt,Ie),G=G+Math.imul(De,ot)|0,O=O+Math.imul(De,Mt)|0,O=O+Math.imul(Ge,ot)|0,j=j+Math.imul(Ge,Mt)|0,G=G+Math.imul(ye,Gt)|0,O=O+Math.imul(ye,mn)|0,O=O+Math.imul(ve,Gt)|0,j=j+Math.imul(ve,mn)|0,G=G+Math.imul(ne,rr)|0,O=O+Math.imul(ne,un)|0,O=O+Math.imul(ae,rr)|0,j=j+Math.imul(ae,un)|0;var sf=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(sf>>>26)|0,sf&=67108863,G=Math.imul(ht,ue),O=Math.imul(ht,Ie),O=O+Math.imul(et,ue)|0,j=Math.imul(et,Ie),G=G+Math.imul(Ye,ot)|0,O=O+Math.imul(Ye,Mt)|0,O=O+Math.imul(lt,ot)|0,j=j+Math.imul(lt,Mt)|0,G=G+Math.imul(De,Gt)|0,O=O+Math.imul(De,mn)|0,O=O+Math.imul(Ge,Gt)|0,j=j+Math.imul(Ge,mn)|0,G=G+Math.imul(ye,rr)|0,O=O+Math.imul(ye,un)|0,O=O+Math.imul(ve,rr)|0,j=j+Math.imul(ve,un)|0,G=G+Math.imul(ne,yo)|0,O=O+Math.imul(ne,Xo)|0,O=O+Math.imul(ae,yo)|0,j=j+Math.imul(ae,Xo)|0;var Ua=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(Ua>>>26)|0,Ua&=67108863,G=Math.imul(Zt,ue),O=Math.imul(Zt,Ie),O=O+Math.imul(Vt,ue)|0,j=Math.imul(Vt,Ie),G=G+Math.imul(ht,ot)|0,O=O+Math.imul(ht,Mt)|0,O=O+Math.imul(et,ot)|0,j=j+Math.imul(et,Mt)|0,G=G+Math.imul(Ye,Gt)|0,O=O+Math.imul(Ye,mn)|0,O=O+Math.imul(lt,Gt)|0,j=j+Math.imul(lt,mn)|0,G=G+Math.imul(De,rr)|0,O=O+Math.imul(De,un)|0,O=O+Math.imul(Ge,rr)|0,j=j+Math.imul(Ge,un)|0,G=G+Math.imul(ye,yo)|0,O=O+Math.imul(ye,Xo)|0,O=O+Math.imul(ve,yo)|0,j=j+Math.imul(ve,Xo)|0,G=G+Math.imul(ne,_r)|0,O=O+Math.imul(ne,Nr)|0,O=O+Math.imul(ae,_r)|0,j=j+Math.imul(ae,Nr)|0;var cf=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(cf>>>26)|0,cf&=67108863,G=Math.imul(Jt,ue),O=Math.imul(Jt,Ie),O=O+Math.imul(Xt,ue)|0,j=Math.imul(Xt,Ie),G=G+Math.imul(Zt,ot)|0,O=O+Math.imul(Zt,Mt)|0,O=O+Math.imul(Vt,ot)|0,j=j+Math.imul(Vt,Mt)|0,G=G+Math.imul(ht,Gt)|0,O=O+Math.imul(ht,mn)|0,O=O+Math.imul(et,Gt)|0,j=j+Math.imul(et,mn)|0,G=G+Math.imul(Ye,rr)|0,O=O+Math.imul(Ye,un)|0,O=O+Math.imul(lt,rr)|0,j=j+Math.imul(lt,un)|0,G=G+Math.imul(De,yo)|0,O=O+Math.imul(De,Xo)|0,O=O+Math.imul(Ge,yo)|0,j=j+Math.imul(Ge,Xo)|0,G=G+Math.imul(ye,_r)|0,O=O+Math.imul(ye,Nr)|0,O=O+Math.imul(ve,_r)|0,j=j+Math.imul(ve,Nr)|0,G=G+Math.imul(ne,kn)|0,O=O+Math.imul(ne,bo)|0,O=O+Math.imul(ae,kn)|0,j=j+Math.imul(ae,bo)|0;var il=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(il>>>26)|0,il&=67108863,G=Math.imul(Yn,ue),O=Math.imul(Yn,Ie),O=O+Math.imul(Fr,ue)|0,j=Math.imul(Fr,Ie),G=G+Math.imul(Jt,ot)|0,O=O+Math.imul(Jt,Mt)|0,O=O+Math.imul(Xt,ot)|0,j=j+Math.imul(Xt,Mt)|0,G=G+Math.imul(Zt,Gt)|0,O=O+Math.imul(Zt,mn)|0,O=O+Math.imul(Vt,Gt)|0,j=j+Math.imul(Vt,mn)|0,G=G+Math.imul(ht,rr)|0,O=O+Math.imul(ht,un)|0,O=O+Math.imul(et,rr)|0,j=j+Math.imul(et,un)|0,G=G+Math.imul(Ye,yo)|0,O=O+Math.imul(Ye,Xo)|0,O=O+Math.imul(lt,yo)|0,j=j+Math.imul(lt,Xo)|0,G=G+Math.imul(De,_r)|0,O=O+Math.imul(De,Nr)|0,O=O+Math.imul(Ge,_r)|0,j=j+Math.imul(Ge,Nr)|0,G=G+Math.imul(ye,kn)|0,O=O+Math.imul(ye,bo)|0,O=O+Math.imul(ve,kn)|0,j=j+Math.imul(ve,bo)|0,G=G+Math.imul(ne,ao)|0,O=O+Math.imul(ne,$o)|0,O=O+Math.imul(ae,ao)|0,j=j+Math.imul(ae,$o)|0;var Xc=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(Xc>>>26)|0,Xc&=67108863,G=Math.imul(io,ue),O=Math.imul(io,Ie),O=O+Math.imul(Hr,ue)|0,j=Math.imul(Hr,Ie),G=G+Math.imul(Yn,ot)|0,O=O+Math.imul(Yn,Mt)|0,O=O+Math.imul(Fr,ot)|0,j=j+Math.imul(Fr,Mt)|0,G=G+Math.imul(Jt,Gt)|0,O=O+Math.imul(Jt,mn)|0,O=O+Math.imul(Xt,Gt)|0,j=j+Math.imul(Xt,mn)|0,G=G+Math.imul(Zt,rr)|0,O=O+Math.imul(Zt,un)|0,O=O+Math.imul(Vt,rr)|0,j=j+Math.imul(Vt,un)|0,G=G+Math.imul(ht,yo)|0,O=O+Math.imul(ht,Xo)|0,O=O+Math.imul(et,yo)|0,j=j+Math.imul(et,Xo)|0,G=G+Math.imul(Ye,_r)|0,O=O+Math.imul(Ye,Nr)|0,O=O+Math.imul(lt,_r)|0,j=j+Math.imul(lt,Nr)|0,G=G+Math.imul(De,kn)|0,O=O+Math.imul(De,bo)|0,O=O+Math.imul(Ge,kn)|0,j=j+Math.imul(Ge,bo)|0,G=G+Math.imul(ye,ao)|0,O=O+Math.imul(ye,$o)|0,O=O+Math.imul(ve,ao)|0,j=j+Math.imul(ve,$o)|0,G=G+Math.imul(ne,jr)|0,O=O+Math.imul(ne,Mn)|0,O=O+Math.imul(ae,jr)|0,j=j+Math.imul(ae,Mn)|0;var $c=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+($c>>>26)|0,$c&=67108863,G=Math.imul(Ar,ue),O=Math.imul(Ar,Ie),O=O+Math.imul(zr,ue)|0,j=Math.imul(zr,Ie),G=G+Math.imul(io,ot)|0,O=O+Math.imul(io,Mt)|0,O=O+Math.imul(Hr,ot)|0,j=j+Math.imul(Hr,Mt)|0,G=G+Math.imul(Yn,Gt)|0,O=O+Math.imul(Yn,mn)|0,O=O+Math.imul(Fr,Gt)|0,j=j+Math.imul(Fr,mn)|0,G=G+Math.imul(Jt,rr)|0,O=O+Math.imul(Jt,un)|0,O=O+Math.imul(Xt,rr)|0,j=j+Math.imul(Xt,un)|0,G=G+Math.imul(Zt,yo)|0,O=O+Math.imul(Zt,Xo)|0,O=O+Math.imul(Vt,yo)|0,j=j+Math.imul(Vt,Xo)|0,G=G+Math.imul(ht,_r)|0,O=O+Math.imul(ht,Nr)|0,O=O+Math.imul(et,_r)|0,j=j+Math.imul(et,Nr)|0,G=G+Math.imul(Ye,kn)|0,O=O+Math.imul(Ye,bo)|0,O=O+Math.imul(lt,kn)|0,j=j+Math.imul(lt,bo)|0,G=G+Math.imul(De,ao)|0,O=O+Math.imul(De,$o)|0,O=O+Math.imul(Ge,ao)|0,j=j+Math.imul(Ge,$o)|0,G=G+Math.imul(ye,jr)|0,O=O+Math.imul(ye,Mn)|0,O=O+Math.imul(ve,jr)|0,j=j+Math.imul(ve,Mn)|0,G=G+Math.imul(ne,Ro)|0,O=O+Math.imul(ne,Yr)|0,O=O+Math.imul(ae,Ro)|0,j=j+Math.imul(ae,Yr)|0;var hc=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(hc>>>26)|0,hc&=67108863,G=Math.imul(Ar,ot),O=Math.imul(Ar,Mt),O=O+Math.imul(zr,ot)|0,j=Math.imul(zr,Mt),G=G+Math.imul(io,Gt)|0,O=O+Math.imul(io,mn)|0,O=O+Math.imul(Hr,Gt)|0,j=j+Math.imul(Hr,mn)|0,G=G+Math.imul(Yn,rr)|0,O=O+Math.imul(Yn,un)|0,O=O+Math.imul(Fr,rr)|0,j=j+Math.imul(Fr,un)|0,G=G+Math.imul(Jt,yo)|0,O=O+Math.imul(Jt,Xo)|0,O=O+Math.imul(Xt,yo)|0,j=j+Math.imul(Xt,Xo)|0,G=G+Math.imul(Zt,_r)|0,O=O+Math.imul(Zt,Nr)|0,O=O+Math.imul(Vt,_r)|0,j=j+Math.imul(Vt,Nr)|0,G=G+Math.imul(ht,kn)|0,O=O+Math.imul(ht,bo)|0,O=O+Math.imul(et,kn)|0,j=j+Math.imul(et,bo)|0,G=G+Math.imul(Ye,ao)|0,O=O+Math.imul(Ye,$o)|0,O=O+Math.imul(lt,ao)|0,j=j+Math.imul(lt,$o)|0,G=G+Math.imul(De,jr)|0,O=O+Math.imul(De,Mn)|0,O=O+Math.imul(Ge,jr)|0,j=j+Math.imul(Ge,Mn)|0,G=G+Math.imul(ye,Ro)|0,O=O+Math.imul(ye,Yr)|0,O=O+Math.imul(ve,Ro)|0,j=j+Math.imul(ve,Yr)|0;var ed=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(ed>>>26)|0,ed&=67108863,G=Math.imul(Ar,Gt),O=Math.imul(Ar,mn),O=O+Math.imul(zr,Gt)|0,j=Math.imul(zr,mn),G=G+Math.imul(io,rr)|0,O=O+Math.imul(io,un)|0,O=O+Math.imul(Hr,rr)|0,j=j+Math.imul(Hr,un)|0,G=G+Math.imul(Yn,yo)|0,O=O+Math.imul(Yn,Xo)|0,O=O+Math.imul(Fr,yo)|0,j=j+Math.imul(Fr,Xo)|0,G=G+Math.imul(Jt,_r)|0,O=O+Math.imul(Jt,Nr)|0,O=O+Math.imul(Xt,_r)|0,j=j+Math.imul(Xt,Nr)|0,G=G+Math.imul(Zt,kn)|0,O=O+Math.imul(Zt,bo)|0,O=O+Math.imul(Vt,kn)|0,j=j+Math.imul(Vt,bo)|0,G=G+Math.imul(ht,ao)|0,O=O+Math.imul(ht,$o)|0,O=O+Math.imul(et,ao)|0,j=j+Math.imul(et,$o)|0,G=G+Math.imul(Ye,jr)|0,O=O+Math.imul(Ye,Mn)|0,O=O+Math.imul(lt,jr)|0,j=j+Math.imul(lt,Mn)|0,G=G+Math.imul(De,Ro)|0,O=O+Math.imul(De,Yr)|0,O=O+Math.imul(Ge,Ro)|0,j=j+Math.imul(Ge,Yr)|0;var eu=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(eu>>>26)|0,eu&=67108863,G=Math.imul(Ar,rr),O=Math.imul(Ar,un),O=O+Math.imul(zr,rr)|0,j=Math.imul(zr,un),G=G+Math.imul(io,yo)|0,O=O+Math.imul(io,Xo)|0,O=O+Math.imul(Hr,yo)|0,j=j+Math.imul(Hr,Xo)|0,G=G+Math.imul(Yn,_r)|0,O=O+Math.imul(Yn,Nr)|0,O=O+Math.imul(Fr,_r)|0,j=j+Math.imul(Fr,Nr)|0,G=G+Math.imul(Jt,kn)|0,O=O+Math.imul(Jt,bo)|0,O=O+Math.imul(Xt,kn)|0,j=j+Math.imul(Xt,bo)|0,G=G+Math.imul(Zt,ao)|0,O=O+Math.imul(Zt,$o)|0,O=O+Math.imul(Vt,ao)|0,j=j+Math.imul(Vt,$o)|0,G=G+Math.imul(ht,jr)|0,O=O+Math.imul(ht,Mn)|0,O=O+Math.imul(et,jr)|0,j=j+Math.imul(et,Mn)|0,G=G+Math.imul(Ye,Ro)|0,O=O+Math.imul(Ye,Yr)|0,O=O+Math.imul(lt,Ro)|0,j=j+Math.imul(lt,Yr)|0;var td=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(td>>>26)|0,td&=67108863,G=Math.imul(Ar,yo),O=Math.imul(Ar,Xo),O=O+Math.imul(zr,yo)|0,j=Math.imul(zr,Xo),G=G+Math.imul(io,_r)|0,O=O+Math.imul(io,Nr)|0,O=O+Math.imul(Hr,_r)|0,j=j+Math.imul(Hr,Nr)|0,G=G+Math.imul(Yn,kn)|0,O=O+Math.imul(Yn,bo)|0,O=O+Math.imul(Fr,kn)|0,j=j+Math.imul(Fr,bo)|0,G=G+Math.imul(Jt,ao)|0,O=O+Math.imul(Jt,$o)|0,O=O+Math.imul(Xt,ao)|0,j=j+Math.imul(Xt,$o)|0,G=G+Math.imul(Zt,jr)|0,O=O+Math.imul(Zt,Mn)|0,O=O+Math.imul(Vt,jr)|0,j=j+Math.imul(Vt,Mn)|0,G=G+Math.imul(ht,Ro)|0,O=O+Math.imul(ht,Yr)|0,O=O+Math.imul(et,Ro)|0,j=j+Math.imul(et,Yr)|0;var up=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(up>>>26)|0,up&=67108863,G=Math.imul(Ar,_r),O=Math.imul(Ar,Nr),O=O+Math.imul(zr,_r)|0,j=Math.imul(zr,Nr),G=G+Math.imul(io,kn)|0,O=O+Math.imul(io,bo)|0,O=O+Math.imul(Hr,kn)|0,j=j+Math.imul(Hr,bo)|0,G=G+Math.imul(Yn,ao)|0,O=O+Math.imul(Yn,$o)|0,O=O+Math.imul(Fr,ao)|0,j=j+Math.imul(Fr,$o)|0,G=G+Math.imul(Jt,jr)|0,O=O+Math.imul(Jt,Mn)|0,O=O+Math.imul(Xt,jr)|0,j=j+Math.imul(Xt,Mn)|0,G=G+Math.imul(Zt,Ro)|0,O=O+Math.imul(Zt,Yr)|0,O=O+Math.imul(Vt,Ro)|0,j=j+Math.imul(Vt,Yr)|0;var U1=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,G=Math.imul(Ar,kn),O=Math.imul(Ar,bo),O=O+Math.imul(zr,kn)|0,j=Math.imul(zr,bo),G=G+Math.imul(io,ao)|0,O=O+Math.imul(io,$o)|0,O=O+Math.imul(Hr,ao)|0,j=j+Math.imul(Hr,$o)|0,G=G+Math.imul(Yn,jr)|0,O=O+Math.imul(Yn,Mn)|0,O=O+Math.imul(Fr,jr)|0,j=j+Math.imul(Fr,Mn)|0,G=G+Math.imul(Jt,Ro)|0,O=O+Math.imul(Jt,Yr)|0,O=O+Math.imul(Xt,Ro)|0,j=j+Math.imul(Xt,Yr)|0;var Pi=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,G=Math.imul(Ar,ao),O=Math.imul(Ar,$o),O=O+Math.imul(zr,ao)|0,j=Math.imul(zr,$o),G=G+Math.imul(io,jr)|0,O=O+Math.imul(io,Mn)|0,O=O+Math.imul(Hr,jr)|0,j=j+Math.imul(Hr,Mn)|0,G=G+Math.imul(Yn,Ro)|0,O=O+Math.imul(Yn,Yr)|0,O=O+Math.imul(Fr,Ro)|0,j=j+Math.imul(Fr,Yr)|0;var bu=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(bu>>>26)|0,bu&=67108863,G=Math.imul(Ar,jr),O=Math.imul(Ar,Mn),O=O+Math.imul(zr,jr)|0,j=Math.imul(zr,Mn),G=G+Math.imul(io,Ro)|0,O=O+Math.imul(io,Yr)|0,O=O+Math.imul(Hr,Ro)|0,j=j+Math.imul(Hr,Yr)|0;var al=(W+G|0)+((O&8191)<<13)|0;W=(j+(O>>>13)|0)+(al>>>26)|0,al&=67108863,G=Math.imul(Ar,Ro),O=Math.imul(Ar,Yr),O=O+Math.imul(zr,Ro)|0,j=Math.imul(zr,Yr);var Bm=(W+G|0)+((O&8191)<<13)|0;return W=(j+(O>>>13)|0)+(Bm>>>26)|0,Bm&=67108863,H[0]=Vs,H[1]=ol,H[2]=xi,H[3]=sf,H[4]=Ua,H[5]=cf,H[6]=il,H[7]=Xc,H[8]=$c,H[9]=hc,H[10]=ed,H[11]=eu,H[12]=td,H[13]=up,H[14]=U1,H[15]=Pi,H[16]=bu,H[17]=al,H[18]=Bm,W!==0&&(H[19]=W,F.length++),F};Math.imul||(S=R);function M(U,T,k){k.negative=T.negative^U.negative,k.length=U.length+T.length;for(var F=0,N=0,B=0;B<k.length-1;B++){var H=N;N=0;for(var W=F&67108863,G=Math.min(B,T.length-1),O=Math.max(0,B-U.length+1);O<=G;O++){var j=B-O,te=U.words[j]|0,ne=T.words[O]|0,ae=te*ne,pe=ae&67108863;H=H+(ae/67108864|0)|0,pe=pe+W|0,W=pe&67108863,H=H+(pe>>>26)|0,N+=H>>>26,H&=67108863}k.words[B]=W,F=H,H=N}return F!==0?k.words[B]=F:k.length--,k._strip()}function P(U,T,k){return M(U,T,k)}o.prototype.mulTo=function(T,k){var F,N=this.length+T.length;return this.length===10&&T.length===10?F=S(this,T,k):N<63?F=R(this,T,k):N<1024?F=M(this,T,k):F=P(this,T,k),F};function z(U,T){this.x=U,this.y=T}z.prototype.makeRBT=function(T){for(var k=new Array(T),F=o.prototype._countBits(T)-1,N=0;N<T;N++)k[N]=this.revBin(N,F,T);return k},z.prototype.revBin=function(T,k,F){if(T===0||T===F-1)return T;for(var N=0,B=0;B<k;B++)N|=(T&1)<<k-B-1,T>>=1;return N},z.prototype.permute=function(T,k,F,N,B,H){for(var W=0;W<H;W++)N[W]=k[T[W]],B[W]=F[T[W]]},z.prototype.transform=function(T,k,F,N,B,H){this.permute(H,T,k,F,N,B);for(var W=1;W<B;W<<=1)for(var G=W<<1,O=Math.cos(2*Math.PI/G),j=Math.sin(2*Math.PI/G),te=0;te<B;te+=G)for(var ne=O,ae=j,pe=0;pe<W;pe++){var ye=F[te+pe],ve=N[te+pe],xe=F[te+pe+W],De=N[te+pe+W],Ge=ne*xe-ae*De;De=ne*De+ae*xe,xe=Ge,F[te+pe]=ye+xe,N[te+pe]=ve+De,F[te+pe+W]=ye-xe,N[te+pe+W]=ve-De,pe!==G&&(Ge=O*ne-j*ae,ae=O*ae+j*ne,ne=Ge)}},z.prototype.guessLen13b=function(T,k){var F=Math.max(k,T)|1,N=F&1,B=0;for(F=F/2|0;F;F=F>>>1)B++;return 1<<B+1+N},z.prototype.conjugate=function(T,k,F){if(!(F<=1))for(var N=0;N<F/2;N++){var B=T[N];T[N]=T[F-N-1],T[F-N-1]=B,B=k[N],k[N]=-k[F-N-1],k[F-N-1]=-B}},z.prototype.normalize13b=function(T,k){for(var F=0,N=0;N<k/2;N++){var B=Math.round(T[2*N+1]/k)*8192+Math.round(T[2*N]/k)+F;T[N]=B&67108863,B<67108864?F=0:F=B/67108864|0}return T},z.prototype.convert13b=function(T,k,F,N){for(var B=0,H=0;H<k;H++)B=B+(T[H]|0),F[2*H]=B&8191,B=B>>>13,F[2*H+1]=B&8191,B=B>>>13;for(H=2*k;H<N;++H)F[H]=0;n(B===0),n((B&-8192)===0)},z.prototype.stub=function(T){for(var k=new Array(T),F=0;F<T;F++)k[F]=0;return k},z.prototype.mulp=function(T,k,F){var N=2*this.guessLen13b(T.length,k.length),B=this.makeRBT(N),H=this.stub(N),W=new Array(N),G=new Array(N),O=new Array(N),j=new Array(N),te=new Array(N),ne=new Array(N),ae=F.words;ae.length=N,this.convert13b(T.words,T.length,W,N),this.convert13b(k.words,k.length,j,N),this.transform(W,H,G,O,N,B),this.transform(j,H,te,ne,N,B);for(var pe=0;pe<N;pe++){var ye=G[pe]*te[pe]-O[pe]*ne[pe];O[pe]=G[pe]*ne[pe]+O[pe]*te[pe],G[pe]=ye}return this.conjugate(G,O,N),this.transform(G,O,ae,H,N,B),this.conjugate(ae,H,N),this.normalize13b(ae,N),F.negative=T.negative^k.negative,F.length=T.length+k.length,F._strip()},o.prototype.mul=function(T){var k=new o(null);return k.words=new Array(this.length+T.length),this.mulTo(T,k)},o.prototype.mulf=function(T){var k=new o(null);return k.words=new Array(this.length+T.length),P(this,T,k)},o.prototype.imul=function(T){return this.clone().mulTo(T,this)},o.prototype.imuln=function(T){var k=T<0;k&&(T=-T),n(typeof T==\"number\"),n(T<67108864);for(var F=0,N=0;N<this.length;N++){var B=(this.words[N]|0)*T,H=(B&67108863)+(F&67108863);F>>=26,F+=B/67108864|0,F+=H>>>26,this.words[N]=H&67108863}return F!==0&&(this.words[N]=F,this.length++),this.length=T===0?1:this.length,k?this.ineg():this},o.prototype.muln=function(T){return this.clone().imuln(T)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(T){var k=x(T);if(k.length===0)return new o(1);for(var F=this,N=0;N<k.length&&k[N]===0;N++,F=F.sqr());if(++N<k.length)for(var B=F.sqr();N<k.length;N++,B=B.sqr())k[N]!==0&&(F=F.mul(B));return F},o.prototype.iushln=function(T){n(typeof T==\"number\"&&T>=0);var k=T%26,F=(T-k)/26,N=67108863>>>26-k<<26-k,B;if(k!==0){var H=0;for(B=0;B<this.length;B++){var W=this.words[B]&N,G=(this.words[B]|0)-W<<k;this.words[B]=G|H,H=W>>>26-k}H&&(this.words[B]=H,this.length++)}if(F!==0){for(B=this.length-1;B>=0;B--)this.words[B+F]=this.words[B];for(B=0;B<F;B++)this.words[B]=0;this.length+=F}return this._strip()},o.prototype.ishln=function(T){return n(this.negative===0),this.iushln(T)},o.prototype.iushrn=function(T,k,F){n(typeof T==\"number\"&&T>=0);var N;k?N=(k-k%26)/26:N=0;var B=T%26,H=Math.min((T-B)/26,this.length),W=67108863^67108863>>>B<<B,G=F;if(N-=H,N=Math.max(0,N),G){for(var O=0;O<H;O++)G.words[O]=this.words[O];G.length=H}if(H!==0)if(this.length>H)for(this.length-=H,O=0;O<this.length;O++)this.words[O]=this.words[O+H];else this.words[0]=0,this.length=1;var j=0;for(O=this.length-1;O>=0&&(j!==0||O>=N);O--){var te=this.words[O]|0;this.words[O]=j<<26-B|te>>>B,j=te&W}return G&&j!==0&&(G.words[G.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(T,k,F){return n(this.negative===0),this.iushrn(T,k,F)},o.prototype.shln=function(T){return this.clone().ishln(T)},o.prototype.ushln=function(T){return this.clone().iushln(T)},o.prototype.shrn=function(T){return this.clone().ishrn(T)},o.prototype.ushrn=function(T){return this.clone().iushrn(T)},o.prototype.testn=function(T){n(typeof T==\"number\"&&T>=0);var k=T%26,F=(T-k)/26,N=1<<k;if(this.length<=F)return!1;var B=this.words[F];return!!(B&N)},o.prototype.imaskn=function(T){n(typeof T==\"number\"&&T>=0);var k=T%26,F=(T-k)/26;if(n(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=F)return this;if(k!==0&&F++,this.length=Math.min(F,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this._strip()},o.prototype.maskn=function(T){return this.clone().imaskn(T)},o.prototype.iaddn=function(T){return n(typeof T==\"number\"),n(T<67108864),T<0?this.isubn(-T):this.negative!==0?this.length===1&&(this.words[0]|0)<=T?(this.words[0]=T-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(T),this.negative=1,this):this._iaddn(T)},o.prototype._iaddn=function(T){this.words[0]+=T;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},o.prototype.isubn=function(T){if(n(typeof T==\"number\"),n(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this._strip()},o.prototype.addn=function(T){return this.clone().iaddn(T)},o.prototype.subn=function(T){return this.clone().isubn(T)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(T,k,F){var N=T.length+F,B;this._expand(N);var H,W=0;for(B=0;B<T.length;B++){H=(this.words[B+F]|0)+W;var G=(T.words[B]|0)*k;H-=G&67108863,W=(H>>26)-(G/67108864|0),this.words[B+F]=H&67108863}for(;B<this.length-F;B++)H=(this.words[B+F]|0)+W,W=H>>26,this.words[B+F]=H&67108863;if(W===0)return this._strip();for(n(W===-1),W=0,B=0;B<this.length;B++)H=-(this.words[B]|0)+W,W=H>>26,this.words[B]=H&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(T,k){var F=this.length-T.length,N=this.clone(),B=T,H=B.words[B.length-1]|0,W=this._countBits(H);F=26-W,F!==0&&(B=B.ushln(F),N.iushln(F),H=B.words[B.length-1]|0);var G=N.length-B.length,O;if(k!==\"mod\"){O=new o(null),O.length=G+1,O.words=new Array(O.length);for(var j=0;j<O.length;j++)O.words[j]=0}var te=N.clone()._ishlnsubmul(B,1,G);te.negative===0&&(N=te,O&&(O.words[G]=1));for(var ne=G-1;ne>=0;ne--){var ae=(N.words[B.length+ne]|0)*67108864+(N.words[B.length+ne-1]|0);for(ae=Math.min(ae/H|0,67108863),N._ishlnsubmul(B,ae,ne);N.negative!==0;)ae--,N.negative=0,N._ishlnsubmul(B,1,ne),N.isZero()||(N.negative^=1);O&&(O.words[ne]=ae)}return O&&O._strip(),N._strip(),k!==\"div\"&&F!==0&&N.iushrn(F),{div:O||null,mod:N}},o.prototype.divmod=function(T,k,F){if(n(!T.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var N,B,H;return this.negative!==0&&T.negative===0?(H=this.neg().divmod(T,k),k!==\"mod\"&&(N=H.div.neg()),k!==\"div\"&&(B=H.mod.neg(),F&&B.negative!==0&&B.iadd(T)),{div:N,mod:B}):this.negative===0&&T.negative!==0?(H=this.divmod(T.neg(),k),k!==\"mod\"&&(N=H.div.neg()),{div:N,mod:H.mod}):(this.negative&T.negative)!==0?(H=this.neg().divmod(T.neg(),k),k!==\"div\"&&(B=H.mod.neg(),F&&B.negative!==0&&B.isub(T)),{div:H.div,mod:B}):T.length>this.length||this.cmp(T)<0?{div:new o(0),mod:this}:T.length===1?k===\"div\"?{div:this.divn(T.words[0]),mod:null}:k===\"mod\"?{div:null,mod:new o(this.modrn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new o(this.modrn(T.words[0]))}:this._wordDiv(T,k)},o.prototype.div=function(T){return this.divmod(T,\"div\",!1).div},o.prototype.mod=function(T){return this.divmod(T,\"mod\",!1).mod},o.prototype.umod=function(T){return this.divmod(T,\"mod\",!0).mod},o.prototype.divRound=function(T){var k=this.divmod(T);if(k.mod.isZero())return k.div;var F=k.div.negative!==0?k.mod.isub(T):k.mod,N=T.ushrn(1),B=T.andln(1),H=F.cmp(N);return H<0||B===1&&H===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},o.prototype.modrn=function(T){var k=T<0;k&&(T=-T),n(T<=67108863);for(var F=(1<<26)%T,N=0,B=this.length-1;B>=0;B--)N=(F*N+(this.words[B]|0))%T;return k?-N:N},o.prototype.modn=function(T){return this.modrn(T)},o.prototype.idivn=function(T){var k=T<0;k&&(T=-T),n(T<=67108863);for(var F=0,N=this.length-1;N>=0;N--){var B=(this.words[N]|0)+F*67108864;this.words[N]=B/T|0,F=B%T}return this._strip(),k?this.ineg():this},o.prototype.divn=function(T){return this.clone().idivn(T)},o.prototype.egcd=function(T){n(T.negative===0),n(!T.isZero());var k=this,F=T.clone();k.negative!==0?k=k.umod(T):k=k.clone();for(var N=new o(1),B=new o(0),H=new o(0),W=new o(1),G=0;k.isEven()&&F.isEven();)k.iushrn(1),F.iushrn(1),++G;for(var O=F.clone(),j=k.clone();!k.isZero();){for(var te=0,ne=1;(k.words[0]&ne)===0&&te<26;++te,ne<<=1);if(te>0)for(k.iushrn(te);te-- >0;)(N.isOdd()||B.isOdd())&&(N.iadd(O),B.isub(j)),N.iushrn(1),B.iushrn(1);for(var ae=0,pe=1;(F.words[0]&pe)===0&&ae<26;++ae,pe<<=1);if(ae>0)for(F.iushrn(ae);ae-- >0;)(H.isOdd()||W.isOdd())&&(H.iadd(O),W.isub(j)),H.iushrn(1),W.iushrn(1);k.cmp(F)>=0?(k.isub(F),N.isub(H),B.isub(W)):(F.isub(k),H.isub(N),W.isub(B))}return{a:H,b:W,gcd:F.iushln(G)}},o.prototype._invmp=function(T){n(T.negative===0),n(!T.isZero());var k=this,F=T.clone();k.negative!==0?k=k.umod(T):k=k.clone();for(var N=new o(1),B=new o(0),H=F.clone();k.cmpn(1)>0&&F.cmpn(1)>0;){for(var W=0,G=1;(k.words[0]&G)===0&&W<26;++W,G<<=1);if(W>0)for(k.iushrn(W);W-- >0;)N.isOdd()&&N.iadd(H),N.iushrn(1);for(var O=0,j=1;(F.words[0]&j)===0&&O<26;++O,j<<=1);if(O>0)for(F.iushrn(O);O-- >0;)B.isOdd()&&B.iadd(H),B.iushrn(1);k.cmp(F)>=0?(k.isub(F),N.isub(B)):(F.isub(k),B.isub(N))}var te;return k.cmpn(1)===0?te=N:te=B,te.cmpn(0)<0&&te.iadd(T),te},o.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var k=this.clone(),F=T.clone();k.negative=0,F.negative=0;for(var N=0;k.isEven()&&F.isEven();N++)k.iushrn(1),F.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;F.isEven();)F.iushrn(1);var B=k.cmp(F);if(B<0){var H=k;k=F,F=H}else if(B===0||F.cmpn(1)===0)break;k.isub(F)}while(!0);return F.iushln(N)},o.prototype.invm=function(T){return this.egcd(T).a.umod(T)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(T){return this.words[0]&T},o.prototype.bincn=function(T){n(typeof T==\"number\");var k=T%26,F=(T-k)/26,N=1<<k;if(this.length<=F)return this._expand(F+1),this.words[F]|=N,this;for(var B=N,H=F;B!==0&&H<this.length;H++){var W=this.words[H]|0;W+=B,B=W>>>26,W&=67108863,this.words[H]=W}return B!==0&&(this.words[H]=B,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(T){var k=T<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var F;if(this.length>1)F=1;else{k&&(T=-T),n(T<=67108863,\"Number is too big\");var N=this.words[0]|0;F=N===T?0:N<T?-1:1}return this.negative!==0?-F|0:F},o.prototype.cmp=function(T){if(this.negative!==0&&T.negative===0)return-1;if(this.negative===0&&T.negative!==0)return 1;var k=this.ucmp(T);return this.negative!==0?-k|0:k},o.prototype.ucmp=function(T){if(this.length>T.length)return 1;if(this.length<T.length)return-1;for(var k=0,F=this.length-1;F>=0;F--){var N=this.words[F]|0,B=T.words[F]|0;if(N!==B){N<B?k=-1:N>B&&(k=1);break}}return k},o.prototype.gtn=function(T){return this.cmpn(T)===1},o.prototype.gt=function(T){return this.cmp(T)===1},o.prototype.gten=function(T){return this.cmpn(T)>=0},o.prototype.gte=function(T){return this.cmp(T)>=0},o.prototype.ltn=function(T){return this.cmpn(T)===-1},o.prototype.lt=function(T){return this.cmp(T)===-1},o.prototype.lten=function(T){return this.cmpn(T)<=0},o.prototype.lte=function(T){return this.cmp(T)<=0},o.prototype.eqn=function(T){return this.cmpn(T)===0},o.prototype.eq=function(T){return this.cmp(T)===0},o.red=function(T){return new q(T)},o.prototype.toRed=function(T){return n(!this.red,\"Already a number in reduction context\"),n(this.negative===0,\"red works only with positives\"),T.convertTo(this)._forceRed(T)},o.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},o.prototype._forceRed=function(T){return this.red=T,this},o.prototype.forceRed=function(T){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(T)},o.prototype.redAdd=function(T){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,T)},o.prototype.redIAdd=function(T){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,T)},o.prototype.redSub=function(T){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,T)},o.prototype.redISub=function(T){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,T)},o.prototype.redShl=function(T){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,T)},o.prototype.redMul=function(T){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,T),this.red.mul(this,T)},o.prototype.redIMul=function(T){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,T),this.red.imul(this,T)},o.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(T){return n(this.red&&!T.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,T)};var V={k256:null,p224:null,p192:null,p25519:null};function Q(U,T){this.name=U,this.p=new o(T,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q.prototype._tmp=function(){var T=new o(null);return T.words=new Array(Math.ceil(this.n/13)),T},Q.prototype.ireduce=function(T){var k=T,F;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),F=k.bitLength();while(F>this.n);var N=F<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},Q.prototype.split=function(T,k){T.iushrn(this.n,0,k)},Q.prototype.imulK=function(T){return T.imul(this.k)};function $(){Q.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}r($,Q),$.prototype.split=function(T,k){for(var F=4194303,N=Math.min(T.length,9),B=0;B<N;B++)k.words[B]=T.words[B];if(k.length=N,T.length<=9){T.words[0]=0,T.length=1;return}var H=T.words[9];for(k.words[k.length++]=H&F,B=10;B<T.length;B++){var W=T.words[B]|0;T.words[B-10]=(W&F)<<4|H>>>22,H=W}H>>>=22,T.words[B-10]=H,H===0&&T.length>10?T.length-=10:T.length-=9},$.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var k=0,F=0;F<T.length;F++){var N=T.words[F]|0;k+=N*977,T.words[F]=k&67108863,k=N*64+(k/67108864|0)}return T.words[T.length-1]===0&&(T.length--,T.words[T.length-1]===0&&T.length--),T};function oe(){Q.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}r(oe,Q);function J(){Q.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}r(J,Q);function re(){Q.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}r(re,Q),re.prototype.imulK=function(T){for(var k=0,F=0;F<T.length;F++){var N=(T.words[F]|0)*19+k,B=N&67108863;N>>>=26,T.words[F]=B,k=N}return k!==0&&(T.words[T.length++]=k),T},o._prime=function(T){if(V[T])return V[T];var k;if(T===\"k256\")k=new $;else if(T===\"p224\")k=new oe;else if(T===\"p192\")k=new J;else if(T===\"p25519\")k=new re;else throw new Error(\"Unknown prime \"+T);return V[T]=k,k};function q(U){if(typeof U==\"string\"){var T=o._prime(U);this.m=T.p,this.prime=T}else n(U.gtn(1),\"modulus must be greater than 1\"),this.m=U,this.prime=null}q.prototype._verify1=function(T){n(T.negative===0,\"red works only with positives\"),n(T.red,\"red works only with red numbers\")},q.prototype._verify2=function(T,k){n((T.negative|k.negative)===0,\"red works only with positives\"),n(T.red&&T.red===k.red,\"red works only with red numbers\")},q.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):(d(T,T.umod(this.m)._forceRed(this)),T)},q.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},q.prototype.add=function(T,k){this._verify2(T,k);var F=T.add(k);return F.cmp(this.m)>=0&&F.isub(this.m),F._forceRed(this)},q.prototype.iadd=function(T,k){this._verify2(T,k);var F=T.iadd(k);return F.cmp(this.m)>=0&&F.isub(this.m),F},q.prototype.sub=function(T,k){this._verify2(T,k);var F=T.sub(k);return F.cmpn(0)<0&&F.iadd(this.m),F._forceRed(this)},q.prototype.isub=function(T,k){this._verify2(T,k);var F=T.isub(k);return F.cmpn(0)<0&&F.iadd(this.m),F},q.prototype.shl=function(T,k){return this._verify1(T),this.imod(T.ushln(k))},q.prototype.imul=function(T,k){return this._verify2(T,k),this.imod(T.imul(k))},q.prototype.mul=function(T,k){return this._verify2(T,k),this.imod(T.mul(k))},q.prototype.isqr=function(T){return this.imul(T,T.clone())},q.prototype.sqr=function(T){return this.mul(T,T)},q.prototype.sqrt=function(T){if(T.isZero())return T.clone();var k=this.m.andln(3);if(n(k%2===1),k===3){var F=this.m.add(new o(1)).iushrn(2);return this.pow(T,F)}for(var N=this.m.subn(1),B=0;!N.isZero()&&N.andln(1)===0;)B++,N.iushrn(1);n(!N.isZero());var H=new o(1).toRed(this),W=H.redNeg(),G=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new o(2*O*O).toRed(this);this.pow(O,G).cmp(W)!==0;)O.redIAdd(W);for(var j=this.pow(O,N),te=this.pow(T,N.addn(1).iushrn(1)),ne=this.pow(T,N),ae=B;ne.cmp(H)!==0;){for(var pe=ne,ye=0;pe.cmp(H)!==0;ye++)pe=pe.redSqr();n(ye<ae);var ve=this.pow(j,new o(1).iushln(ae-ye-1));te=te.redMul(ve),j=ve.redSqr(),ne=ne.redMul(j),ae=ye}return te},q.prototype.invm=function(T){var k=T._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},q.prototype.pow=function(T,k){if(k.isZero())return new o(1).toRed(this);if(k.cmpn(1)===0)return T.clone();var F=4,N=new Array(1<<F);N[0]=new o(1).toRed(this),N[1]=T;for(var B=2;B<N.length;B++)N[B]=this.mul(N[B-1],T);var H=N[0],W=0,G=0,O=k.bitLength()%26;for(O===0&&(O=26),B=k.length-1;B>=0;B--){for(var j=k.words[B],te=O-1;te>=0;te--){var ne=j>>te&1;if(H!==N[0]&&(H=this.sqr(H)),ne===0&&W===0){G=0;continue}W<<=1,W|=ne,G++,!(G!==F&&(B!==0||te!==0))&&(H=this.mul(H,N[W]),G=0,W=0)}O=26}return H},q.prototype.convertTo=function(T){var k=T.umod(this.m);return k===T?k.clone():k},q.prototype.convertFrom=function(T){var k=T.clone();return k.red=null,k},o.mont=function(T){return new K(T)};function K(U){q.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(K,q),K.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},K.prototype.convertFrom=function(T){var k=this.imod(T.mul(this.rinv));return k.red=null,k},K.prototype.imul=function(T,k){if(T.isZero()||k.isZero())return T.words[0]=0,T.length=1,T;var F=T.imul(k),N=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=F.isub(N).iushrn(this.shift),H=B;return B.cmp(this.m)>=0?H=B.isub(this.m):B.cmpn(0)<0&&(H=B.iadd(this.m)),H._forceRed(this)},K.prototype.mul=function(T,k){if(T.isZero()||k.isZero())return new o(0)._forceRed(this);var F=T.mul(k),N=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=F.isub(N).iushrn(this.shift),H=B;return B.cmp(this.m)>=0?H=B.isub(this.m):B.cmpn(0)<0&&(H=B.iadd(this.m)),H._forceRed(this)},K.prototype.invm=function(T){var k=this.imod(T._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Dfe>\"u\"||Dfe,eBe)});var oB=me(hk=>{\"use strict\";f();Object.defineProperty(hk,\"__esModule\",{value:!0});hk.errorValues=hk.standardErrorCodes=void 0;hk.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};hk.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});var gZ=me(gm=>{\"use strict\";f();Object.defineProperty(gm,\"__esModule\",{value:!0});gm.serialize=gm.getErrorCode=gm.isValidCode=gm.getMessageFromCode=gm.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var mZ=oB(),rBe=\"Unspecified error message.\";gm.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function oBe(e,t=rBe){if(e&&Number.isInteger(e)){let n=e.toString();if(Lfe(mZ.errorValues,n))return mZ.errorValues[n].message;if(aBe(e))return gm.JSON_RPC_SERVER_ERROR_MESSAGE}return t}gm.getMessageFromCode=oBe;function iBe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(mZ.errorValues[t]||aBe(e))}gm.isValidCode=iBe;function ZEt(e){var t;if(typeof e==\"number\")return e;if(QEt(e))return(t=e.code)!==null&&t!==void 0?t:e.errorCode}gm.getErrorCode=ZEt;function QEt(e){return typeof e==\"object\"&&e!==null&&(typeof e.code==\"number\"||typeof e.errorCode==\"number\")}function JEt(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Lfe(e,\"code\")&&iBe(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,Lfe(r,\"data\")&&(n.data=r.data)):(n.message=oBe(n.code),n.data={originalError:tBe(e)})}else n.code=mZ.standardErrorCodes.rpc.internal,n.message=nBe(e,\"message\")?e.message:rBe,n.data={originalError:tBe(e)};return t&&(n.stack=nBe(e,\"stack\")?e.stack:void 0),n}gm.serialize=JEt;function aBe(e){return e>=-32099&&e<=-32e3}function tBe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Lfe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nBe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}});var uBe=me(vZ=>{\"use strict\";f();Object.defineProperty(vZ,\"__esModule\",{value:!0});vZ.standardErrors=void 0;var Ul=oB(),sBe=gZ();vZ.standardErrors={rpc:{parse:e=>og(Ul.standardErrorCodes.rpc.parse,e),invalidRequest:e=>og(Ul.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>og(Ul.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>og(Ul.standardErrorCodes.rpc.methodNotFound,e),internal:e=>og(Ul.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return og(t,e)},invalidInput:e=>og(Ul.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>og(Ul.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>og(Ul.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>og(Ul.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>og(Ul.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>og(Ul.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>mk(Ul.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>mk(Ul.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>mk(Ul.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>mk(Ul.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>mk(Ul.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>mk(Ul.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new bZ(t,n,r)}}};function og(e,t){let[n,r]=cBe(t);return new yZ(e,n||(0,sBe.getMessageFromCode)(e),r)}function mk(e,t){let[n,r]=cBe(t);return new bZ(e,n||(0,sBe.getMessageFromCode)(e),r)}function cBe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}var yZ=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},bZ=class extends yZ{constructor(t,n,r){if(!XEt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}};function XEt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}});var xZ=me(wZ=>{\"use strict\";f();Object.defineProperty(wZ,\"__esModule\",{value:!0});wZ.isErrorResponse=void 0;function $Et(e){return e.errorMessage!==void 0}wZ.isErrorResponse=$Et});var AZ=me(EZ=>{\"use strict\";f();Object.defineProperty(EZ,\"__esModule\",{value:!0});EZ.LIB_VERSION=void 0;EZ.LIB_VERSION=\"3.9.3\"});var lBe=me(_Z=>{\"use strict\";f();Object.defineProperty(_Z,\"__esModule\",{value:!0});_Z.serializeError=void 0;var eAt=xZ(),tAt=AZ(),nAt=oB(),rAt=gZ();function oAt(e,t){let n=(0,rAt.serialize)(iAt(e),{shouldIncludeStack:!0}),r=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");r.searchParams.set(\"version\",tAt.LIB_VERSION),r.searchParams.set(\"code\",n.code.toString());let o=aAt(n.data,t);return o&&r.searchParams.set(\"method\",o),r.searchParams.set(\"message\",n.message),Object.assign(Object.assign({},n),{docUrl:r.href})}_Z.serializeError=oAt;function iAt(e){return typeof e==\"string\"?{message:e,code:nAt.standardErrorCodes.rpc.internal}:(0,eAt.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function aAt(e,t){let n=e?.method;if(n)return n;if(t!==void 0){if(typeof t==\"string\")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}});var iB=me(ig=>{\"use strict\";f();Object.defineProperty(ig,\"__esModule\",{value:!0});ig.standardErrors=ig.standardErrorCodes=ig.serializeError=ig.getMessageFromCode=ig.getErrorCode=void 0;var sAt=oB();Object.defineProperty(ig,\"standardErrorCodes\",{enumerable:!0,get:function(){return sAt.standardErrorCodes}});var cAt=uBe();Object.defineProperty(ig,\"standardErrors\",{enumerable:!0,get:function(){return cAt.standardErrors}});var uAt=lBe();Object.defineProperty(ig,\"serializeError\",{enumerable:!0,get:function(){return uAt.serializeError}});var dBe=gZ();Object.defineProperty(ig,\"getErrorCode\",{enumerable:!0,get:function(){return dBe.getErrorCode}});Object.defineProperty(ig,\"getMessageFromCode\",{enumerable:!0,get:function(){return dBe.getMessageFromCode}})});var sB=me(Od=>{\"use strict\";f();Object.defineProperty(Od,\"__esModule\",{value:!0});Od.ProviderType=Od.RegExpString=Od.IntNumber=Od.BigIntString=Od.AddressString=Od.HexString=Od.OpaqueType=void 0;function aB(){return e=>e}Od.OpaqueType=aB;Od.HexString=aB();Od.AddressString=aB();Od.BigIntString=aB();function lAt(e){return Math.floor(e)}Od.IntNumber=lAt;Od.RegExpString=aB();var fBe;(function(e){e.CoinbaseWallet=\"CoinbaseWallet\",e.MetaMask=\"MetaMask\",e.Unselected=\"\"})(fBe||(Od.ProviderType=fBe={}))});var hv=me(_n=>{\"use strict\";f();var dAt=_n&&_n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_n,\"__esModule\",{value:!0});_n.isMobileWeb=_n.getLocation=_n.isInIFrame=_n.createQrUrl=_n.getFavicon=_n.range=_n.isBigNumber=_n.ensureParsedJSONObject=_n.ensureBN=_n.ensureRegExpString=_n.ensureIntNumber=_n.ensureBuffer=_n.ensureAddressString=_n.ensureEvenLengthHexString=_n.ensureHexString=_n.isHexString=_n.prepend0x=_n.strip0x=_n.has0xPrefix=_n.hexStringFromIntNumber=_n.intNumberFromHexString=_n.bigIntStringFromBN=_n.hexStringFromBuffer=_n.hexStringToUint8Array=_n.uint8ArrayToHex=_n.randomBytesHex=void 0;var q_=dAt(G6()),q6=iB(),ag=sB(),pBe=/^[0-9]*$/,hBe=/^[a-f0-9]*$/;function fAt(e){return mBe(crypto.getRandomValues(new Uint8Array(e)))}_n.randomBytesHex=fAt;function mBe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}_n.uint8ArrayToHex=mBe;function pAt(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}_n.hexStringToUint8Array=pAt;function hAt(e,t=!1){let n=e.toString(\"hex\");return(0,ag.HexString)(t?`0x${n}`:n)}_n.hexStringFromBuffer=hAt;function mAt(e){return(0,ag.BigIntString)(e.toString(10))}_n.bigIntStringFromBN=mAt;function gAt(e){return(0,ag.IntNumber)(new q_.default(uB(e,!1),16).toNumber())}_n.intNumberFromHexString=gAt;function yAt(e){return(0,ag.HexString)(`0x${new q_.default(e).toString(16)}`)}_n.hexStringFromIntNumber=yAt;function Bfe(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}_n.has0xPrefix=Bfe;function SZ(e){return Bfe(e)?e.slice(2):e}_n.strip0x=SZ;function gBe(e){return Bfe(e)?`0x${e.slice(2)}`:`0x${e}`}_n.prepend0x=gBe;function cB(e){if(typeof e!=\"string\")return!1;let t=SZ(e).toLowerCase();return hBe.test(t)}_n.isHexString=cB;function yBe(e,t=!1){if(typeof e==\"string\"){let n=SZ(e).toLowerCase();if(hBe.test(n))return(0,ag.HexString)(t?`0x${n}`:n)}throw q6.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}_n.ensureHexString=yBe;function uB(e,t=!1){let n=yBe(e,!1);return n.length%2===1&&(n=(0,ag.HexString)(`0${n}`)),t?(0,ag.HexString)(`0x${n}`):n}_n.ensureEvenLengthHexString=uB;function bAt(e){if(typeof e==\"string\"){let t=SZ(e).toLowerCase();if(cB(t)&&t.length===40)return(0,ag.AddressString)(gBe(t))}throw q6.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}_n.ensureAddressString=bAt;function vAt(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(cB(e)){let t=uB(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw q6.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}_n.ensureBuffer=vAt;function bBe(e){if(typeof e==\"number\"&&Number.isInteger(e))return(0,ag.IntNumber)(e);if(typeof e==\"string\"){if(pBe.test(e))return(0,ag.IntNumber)(Number(e));if(cB(e))return(0,ag.IntNumber)(new q_.default(uB(e,!1),16).toNumber())}throw q6.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}_n.ensureIntNumber=bBe;function wAt(e){if(e instanceof RegExp)return(0,ag.RegExpString)(e.toString());throw q6.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}_n.ensureRegExpString=wAt;function xAt(e){if(e!==null&&(q_.default.isBN(e)||vBe(e)))return new q_.default(e.toString(10),10);if(typeof e==\"number\")return new q_.default(bBe(e));if(typeof e==\"string\"){if(pBe.test(e))return new q_.default(e,10);if(cB(e))return new q_.default(uB(e,!1),16)}throw q6.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}_n.ensureBN=xAt;function EAt(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw q6.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}_n.ensureParsedJSONObject=EAt;function vBe(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}_n.isBigNumber=vBe;function AAt(e,t){return Array.from({length:t-e},(n,r)=>e+r)}_n.range=AAt;function _At(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:n}=document.location,r=e?e.getAttribute(\"href\"):null;return!r||r.startsWith(\"javascript:\")||r.startsWith(\"vbscript:\")?null:r.startsWith(\"http://\")||r.startsWith(\"https://\")||r.startsWith(\"data:\")?r:r.startsWith(\"//\")?t+r:`${t}//${n}${r}`}_n.getFavicon=_At;function SAt(e,t,n,r,o,i){let a=r?\"parent-id\":\"id\",c=new URLSearchParams({[a]:e,secret:t,server:n,v:o,chainId:i.toString()}).toString();return`${n}/#/link?${c}`}_n.createQrUrl=SAt;function wBe(){try{return window.frameElement!==null}catch{return!1}}_n.isInIFrame=wBe;function TAt(){try{return wBe()&&window.top?window.top.location:window.location}catch{return window.location}}_n.getLocation=TAt;function CAt(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}_n.isMobileWeb=CAt});var xBe=me(TZ=>{\"use strict\";f();Object.defineProperty(TZ,\"__esModule\",{value:!0});TZ.ScopedLocalStorage=void 0;var Ufe=class{constructor(t){this.scope=t}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),n=[];for(let r=0;r<localStorage.length;r++){let o=localStorage.key(r);typeof o==\"string\"&&o.startsWith(t)&&n.push(o)}n.forEach(r=>localStorage.removeItem(r))}scopedKey(t){return`${this.scope}:${t}`}};TZ.ScopedLocalStorage=Ufe});var RZ=me(CZ=>{\"use strict\";f();Object.defineProperty(CZ,\"__esModule\",{value:!0});CZ.EVENTS=void 0;CZ.EVENTS={STARTED_CONNECTING:\"walletlink_sdk.started.connecting\",CONNECTED_STATE_CHANGE:\"walletlink_sdk.connected\",DISCONNECTED:\"walletlink_sdk.disconnected\",METADATA_DESTROYED:\"walletlink_sdk_metadata_destroyed\",LINKED:\"walletlink_sdk.linked\",FAILURE:\"walletlink_sdk.generic_failure\",SESSION_CONFIG_RECEIVED:\"walletlink_sdk.session_config_event_received\",ETH_ACCOUNTS_STATE:\"walletlink_sdk.eth_accounts_state\",SESSION_STATE_CHANGE:\"walletlink_sdk.session_state_change\",UNLINKED_ERROR_STATE:\"walletlink_sdk.unlinked_error_state\",SKIPPED_CLEARING_SESSION:\"walletlink_sdk.skipped_clearing_session\",GENERAL_ERROR:\"walletlink_sdk.general_error\",WEB3_REQUEST:\"walletlink_sdk.web3.request\",WEB3_REQUEST_PUBLISHED:\"walletlink_sdk.web3.request_published\",WEB3_RESPONSE:\"walletlink_sdk.web3.response\",METHOD_NOT_IMPLEMENTED:\"walletlink_sdk.method_not_implemented\",UNKNOWN_ADDRESS_ENCOUNTERED:\"walletlink_sdk.unknown_address_encountered\"}});var IZ=me(mv=>{\"use strict\";f();Object.defineProperty(mv,\"__esModule\",{value:!0});mv.RelayAbstract=mv.APP_VERSION_KEY=mv.LOCAL_STORAGE_ADDRESSES_KEY=mv.WALLET_USER_NAME_KEY=void 0;var EBe=iB();mv.WALLET_USER_NAME_KEY=\"walletUsername\";mv.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\";mv.APP_VERSION_KEY=\"AppVersion\";var Ffe=class{async makeEthereumJSONRPCRequest(t,n){if(!n)throw new Error(\"Error: No jsonRpcUrl provided\");return window.fetch(n,{method:\"POST\",body:JSON.stringify(t),mode:\"cors\",headers:{\"Content-Type\":\"application/json\"}}).then(r=>r.json()).then(r=>{if(!r)throw EBe.standardErrors.rpc.parse({});let o=r,{error:i}=o;if(i)throw(0,EBe.serializeError)(i,t.method);return o})}};mv.RelayAbstract=Ffe});var sg=me((Rtr,Hfe)=>{f();typeof Object.create==\"function\"?Hfe.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Hfe.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var f1=me((zfe,_Be)=>{f();var OZ=v2(),gv=OZ.Buffer;function ABe(e,t){for(var n in e)t[n]=e[n]}gv.from&&gv.alloc&&gv.allocUnsafe&&gv.allocUnsafeSlow?_Be.exports=OZ:(ABe(OZ,zfe),zfe.Buffer=K6);function K6(e,t,n){return gv(e,t,n)}K6.prototype=Object.create(gv.prototype);ABe(gv,K6);K6.from=function(e,t,n){if(typeof e==\"number\")throw new TypeError(\"Argument must not be a number\");return gv(e,t,n)};K6.alloc=function(e,t,n){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");var r=gv(e);return t!==void 0?typeof n==\"string\"?r.fill(t,n):r.fill(t):r.fill(0),r};K6.allocUnsafe=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return gv(e)};K6.allocUnsafeSlow=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return OZ.SlowBuffer(e)}});var TBe=me((ktr,SBe)=>{f();var RAt={}.toString;SBe.exports=Array.isArray||function(e){return RAt.call(e)==\"[object Array]\"}});var gk=me((Ptr,CBe)=>{\"use strict\";f();CBe.exports=TypeError});var jfe=me((Dtr,RBe)=>{\"use strict\";f();RBe.exports=Object});var OBe=me((Btr,IBe)=>{\"use strict\";f();IBe.exports=Error});var NBe=me((Ftr,kBe)=>{\"use strict\";f();kBe.exports=EvalError});var MBe=me((ztr,PBe)=>{\"use strict\";f();PBe.exports=RangeError});var LBe=me((Wtr,DBe)=>{\"use strict\";f();DBe.exports=ReferenceError});var Wfe=me((Gtr,BBe)=>{\"use strict\";f();BBe.exports=SyntaxError});var FBe=me((Ktr,UBe)=>{\"use strict\";f();UBe.exports=URIError});var zBe=me((Ztr,HBe)=>{\"use strict\";f();HBe.exports=Math.abs});var WBe=me((Jtr,jBe)=>{\"use strict\";f();jBe.exports=Math.floor});var GBe=me(($tr,VBe)=>{\"use strict\";f();VBe.exports=Math.max});var KBe=me((tnr,qBe)=>{\"use strict\";f();qBe.exports=Math.min});var ZBe=me((rnr,YBe)=>{\"use strict\";f();YBe.exports=Math.pow});var JBe=me((inr,QBe)=>{\"use strict\";f();QBe.exports=Math.round});var $Be=me((snr,XBe)=>{\"use strict\";f();XBe.exports=Number.isNaN||function(t){return t!==t}});var tUe=me((unr,eUe)=>{\"use strict\";f();var IAt=$Be();eUe.exports=function(t){return IAt(t)||t===0?t:t<0?-1:1}});var rUe=me((dnr,nUe)=>{\"use strict\";f();nUe.exports=Object.getOwnPropertyDescriptor});var yk=me((pnr,oUe)=>{\"use strict\";f();var kZ=rUe();if(kZ)try{kZ([],\"length\")}catch{kZ=null}oUe.exports=kZ});var lB=me((mnr,iUe)=>{\"use strict\";f();var NZ=Object.defineProperty||!1;if(NZ)try{NZ({},\"a\",{value:1})}catch{NZ=!1}iUe.exports=NZ});var Vfe=me((ynr,aUe)=>{\"use strict\";f();aUe.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return!1;if(typeof Symbol.iterator==\"symbol\")return!0;var t={},n=Symbol(\"test\"),r=Object(n);if(typeof n==\"string\"||Object.prototype.toString.call(n)!==\"[object Symbol]\"||Object.prototype.toString.call(r)!==\"[object Symbol]\")return!1;var o=42;t[n]=o;for(var i in t)return!1;if(typeof Object.keys==\"function\"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==o||c.enumerable!==!0)return!1}return!0}});var uUe=me((vnr,cUe)=>{\"use strict\";f();var sUe=typeof Symbol<\"u\"&&Symbol,OAt=Vfe();cUe.exports=function(){return typeof sUe!=\"function\"||typeof Symbol!=\"function\"||typeof sUe(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:OAt()}});var Gfe=me((xnr,lUe)=>{\"use strict\";f();lUe.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null});var qfe=me((Anr,dUe)=>{\"use strict\";f();var kAt=jfe();dUe.exports=kAt.getPrototypeOf||null});var hUe=me((Snr,pUe)=>{\"use strict\";f();var NAt=\"Function.prototype.bind called on incompatible \",PAt=Object.prototype.toString,MAt=Math.max,DAt=\"[object Function]\",fUe=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},LAt=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},BAt=function(e,t){for(var n=\"\",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};pUe.exports=function(t){var n=this;if(typeof n!=\"function\"||PAt.apply(n)!==DAt)throw new TypeError(NAt+n);for(var r=LAt(arguments,1),o,i=function(){if(this instanceof o){var p=n.apply(this,fUe(r,arguments));return Object(p)===p?p:this}return n.apply(t,fUe(r,arguments))},a=MAt(0,n.length-r.length),c=[],u=0;u<a;u++)c[u]=\"$\"+u;if(o=Function(\"binder\",\"return function (\"+BAt(c,\",\")+\"){ return binder.apply(this,arguments); }\")(i),n.prototype){var d=function(){};d.prototype=n.prototype,o.prototype=new d,d.prototype=null}return o}});var bk=me((Cnr,mUe)=>{\"use strict\";f();var UAt=hUe();mUe.exports=Function.prototype.bind||UAt});var PZ=me((Inr,gUe)=>{\"use strict\";f();gUe.exports=Function.prototype.call});var MZ=me((knr,yUe)=>{\"use strict\";f();yUe.exports=Function.prototype.apply});var vUe=me((Pnr,bUe)=>{\"use strict\";f();bUe.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply});var Kfe=me((Dnr,wUe)=>{\"use strict\";f();var FAt=bk(),HAt=MZ(),zAt=PZ(),jAt=vUe();wUe.exports=jAt||FAt.call(zAt,HAt)});var DZ=me((Bnr,xUe)=>{\"use strict\";f();var WAt=bk(),VAt=gk(),GAt=PZ(),qAt=Kfe();xUe.exports=function(t){if(t.length<1||typeof t[0]!=\"function\")throw new VAt(\"a function is required\");return qAt(WAt,GAt,t)}});var CUe=me((Fnr,TUe)=>{\"use strict\";f();var KAt=DZ(),EUe=yk(),_Ue;try{_Ue=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=\"object\"||!(\"code\"in e)||e.code!==\"ERR_PROTO_ACCESS\")throw e}var Yfe=!!_Ue&&EUe&&EUe(Object.prototype,\"__proto__\"),SUe=Object,AUe=SUe.getPrototypeOf;TUe.exports=Yfe&&typeof Yfe.get==\"function\"?KAt([Yfe.get]):typeof AUe==\"function\"?function(t){return AUe(t==null?t:SUe(t))}:!1});var Zfe=me((znr,kUe)=>{\"use strict\";f();var RUe=Gfe(),IUe=qfe(),OUe=CUe();kUe.exports=RUe?function(t){return RUe(t)}:IUe?function(t){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new TypeError(\"getProto: not an object\");return IUe(t)}:OUe?function(t){return OUe(t)}:null});var PUe=me((Wnr,NUe)=>{\"use strict\";f();var YAt=Function.prototype.call,ZAt=Object.prototype.hasOwnProperty,QAt=bk();NUe.exports=QAt.call(YAt,ZAt)});var Xfe=me((Gnr,FUe)=>{\"use strict\";f();var po,JAt=jfe(),XAt=OBe(),$At=NBe(),e_t=MBe(),t_t=LBe(),Ek=Wfe(),xk=gk(),n_t=FBe(),r_t=zBe(),o_t=WBe(),i_t=GBe(),a_t=KBe(),s_t=ZBe(),c_t=JBe(),u_t=tUe(),BUe=Function,Qfe=function(e){try{return BUe(\\'\"use strict\"; return (\\'+e+\").constructor;\")()}catch{}},dB=yk(),l_t=lB(),Jfe=function(){throw new xk},d_t=dB?(function(){try{return arguments.callee,Jfe}catch{try{return dB(arguments,\"callee\").get}catch{return Jfe}}})():Jfe,vk=uUe()(),Vu=Zfe(),f_t=qfe(),p_t=Gfe(),UUe=MZ(),fB=PZ(),wk={},h_t=typeof Uint8Array>\"u\"||!Vu?po:Vu(Uint8Array),Y6={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?po:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?po:ArrayBuffer,\"%ArrayIteratorPrototype%\":vk&&Vu?Vu([][Symbol.iterator]()):po,\"%AsyncFromSyncIteratorPrototype%\":po,\"%AsyncFunction%\":wk,\"%AsyncGenerator%\":wk,\"%AsyncGeneratorFunction%\":wk,\"%AsyncIteratorPrototype%\":wk,\"%Atomics%\":typeof Atomics>\"u\"?po:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?po:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?po:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?po:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?po:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":XAt,\"%eval%\":eval,\"%EvalError%\":$At,\"%Float16Array%\":typeof Float16Array>\"u\"?po:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?po:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?po:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?po:FinalizationRegistry,\"%Function%\":BUe,\"%GeneratorFunction%\":wk,\"%Int8Array%\":typeof Int8Array>\"u\"?po:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?po:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?po:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":vk&&Vu?Vu(Vu([][Symbol.iterator]())):po,\"%JSON%\":typeof JSON==\"object\"?JSON:po,\"%Map%\":typeof Map>\"u\"?po:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!vk||!Vu?po:Vu(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":JAt,\"%Object.getOwnPropertyDescriptor%\":dB,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?po:Promise,\"%Proxy%\":typeof Proxy>\"u\"?po:Proxy,\"%RangeError%\":e_t,\"%ReferenceError%\":t_t,\"%Reflect%\":typeof Reflect>\"u\"?po:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?po:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!vk||!Vu?po:Vu(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?po:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":vk&&Vu?Vu(\"\"[Symbol.iterator]()):po,\"%Symbol%\":vk?Symbol:po,\"%SyntaxError%\":Ek,\"%ThrowTypeError%\":d_t,\"%TypedArray%\":h_t,\"%TypeError%\":xk,\"%Uint8Array%\":typeof Uint8Array>\"u\"?po:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?po:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?po:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?po:Uint32Array,\"%URIError%\":n_t,\"%WeakMap%\":typeof WeakMap>\"u\"?po:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?po:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?po:WeakSet,\"%Function.prototype.call%\":fB,\"%Function.prototype.apply%\":UUe,\"%Object.defineProperty%\":l_t,\"%Object.getPrototypeOf%\":f_t,\"%Math.abs%\":r_t,\"%Math.floor%\":o_t,\"%Math.max%\":i_t,\"%Math.min%\":a_t,\"%Math.pow%\":s_t,\"%Math.round%\":c_t,\"%Math.sign%\":u_t,\"%Reflect.getPrototypeOf%\":p_t};if(Vu)try{null.error}catch(e){MUe=Vu(Vu(e)),Y6[\"%Error.prototype%\"]=MUe}var MUe,m_t=function e(t){var n;if(t===\"%AsyncFunction%\")n=Qfe(\"async function () {}\");else if(t===\"%GeneratorFunction%\")n=Qfe(\"function* () {}\");else if(t===\"%AsyncGeneratorFunction%\")n=Qfe(\"async function* () {}\");else if(t===\"%AsyncGenerator%\"){var r=e(\"%AsyncGeneratorFunction%\");r&&(n=r.prototype)}else if(t===\"%AsyncIteratorPrototype%\"){var o=e(\"%AsyncGenerator%\");o&&Vu&&(n=Vu(o.prototype))}return Y6[t]=n,n},DUe={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},pB=bk(),LZ=PUe(),g_t=pB.call(fB,Array.prototype.concat),y_t=pB.call(UUe,Array.prototype.splice),LUe=pB.call(fB,String.prototype.replace),BZ=pB.call(fB,String.prototype.slice),b_t=pB.call(fB,RegExp.prototype.exec),v_t=/[^%.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\"\\'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|%$))/g,w_t=/\\\\\\\\(\\\\\\\\)?/g,x_t=function(t){var n=BZ(t,0,1),r=BZ(t,-1);if(n===\"%\"&&r!==\"%\")throw new Ek(\"invalid intrinsic syntax, expected closing `%`\");if(r===\"%\"&&n!==\"%\")throw new Ek(\"invalid intrinsic syntax, expected opening `%`\");var o=[];return LUe(t,v_t,function(i,a,c,u){o[o.length]=c?LUe(u,w_t,\"$1\"):a||i}),o},E_t=function(t,n){var r=t,o;if(LZ(DUe,r)&&(o=DUe[r],r=\"%\"+o[0]+\"%\"),LZ(Y6,r)){var i=Y6[r];if(i===wk&&(i=m_t(r)),typeof i>\"u\"&&!n)throw new xk(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:o,name:r,value:i}}throw new Ek(\"intrinsic \"+t+\" does not exist!\")};FUe.exports=function(t,n){if(typeof t!=\"string\"||t.length===0)throw new xk(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof n!=\"boolean\")throw new xk(\\'\"allowMissing\" argument must be a boolean\\');if(b_t(/^%?[^%]*%?$/,t)===null)throw new Ek(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=x_t(t),o=r.length>0?r[0]:\"\",i=E_t(\"%\"+o+\"%\",n),a=i.name,c=i.value,u=!1,d=i.alias;d&&(o=d[0],y_t(r,g_t([0,1],d)));for(var p=1,h=!0;p<r.length;p+=1){var g=r[p],y=BZ(g,0,1),v=BZ(g,-1);if((y===\\'\"\\'||y===\"\\'\"||y===\"`\"||v===\\'\"\\'||v===\"\\'\"||v===\"`\")&&y!==v)throw new Ek(\"property names with quotes must have matching quotes\");if((g===\"constructor\"||!h)&&(u=!0),o+=\".\"+g,a=\"%\"+o+\"%\",LZ(Y6,a))c=Y6[a];else if(c!=null){if(!(g in c)){if(!n)throw new xk(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(dB&&p+1>=r.length){var x=dB(c,g);h=!!x,h&&\"get\"in x&&!(\"originalValue\"in x.get)?c=x.get:c=c[g]}else h=LZ(c,g),c=c[g];h&&!u&&(Y6[a]=c)}}return c}});var $fe=me((Knr,jUe)=>{\"use strict\";f();var HUe=Xfe(),zUe=DZ(),A_t=zUe([HUe(\"%String.prototype.indexOf%\")]);jUe.exports=function(t,n){var r=HUe(t,!!n);return typeof r==\"function\"&&A_t(t,\".prototype.\")>-1?zUe([r]):r}});var qUe=me((Znr,GUe)=>{\"use strict\";f();var VUe=Function.prototype.toString,Ak=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,tpe,UZ;if(typeof Ak==\"function\"&&typeof Object.defineProperty==\"function\")try{tpe=Object.defineProperty({},\"length\",{get:function(){throw UZ}}),UZ={},Ak(function(){throw 42},null,tpe)}catch(e){e!==UZ&&(Ak=null)}else Ak=null;var __t=/^\\\\s*class\\\\b/,npe=function(t){try{var n=VUe.call(t);return __t.test(n)}catch{return!1}},epe=function(t){try{return npe(t)?!1:(VUe.call(t),!0)}catch{return!1}},FZ=Object.prototype.toString,S_t=\"[object Object]\",T_t=\"[object Function]\",C_t=\"[object GeneratorFunction]\",R_t=\"[object HTMLAllCollection]\",I_t=\"[object HTML document.all class]\",O_t=\"[object HTMLCollection]\",k_t=typeof Symbol==\"function\"&&!!Symbol.toStringTag,N_t=!(0 in[,]),rpe=function(){return!1};typeof document==\"object\"&&(WUe=document.all,FZ.call(WUe)===FZ.call(document.all)&&(rpe=function(t){if((N_t||!t)&&(typeof t>\"u\"||typeof t==\"object\"))try{var n=FZ.call(t);return(n===R_t||n===I_t||n===O_t||n===S_t)&&t(\"\")==null}catch{}return!1}));var WUe;GUe.exports=Ak?function(t){if(rpe(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;try{Ak(t,null,tpe)}catch(n){if(n!==UZ)return!1}return!npe(t)&&epe(t)}:function(t){if(rpe(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;if(k_t)return epe(t);if(npe(t))return!1;var n=FZ.call(t);return n!==T_t&&n!==C_t&&!/^\\\\[object HTML/.test(n)?!1:epe(t)}});var ZUe=me((Jnr,YUe)=>{\"use strict\";f();var P_t=qUe(),M_t=Object.prototype.toString,KUe=Object.prototype.hasOwnProperty,D_t=function(t,n,r){for(var o=0,i=t.length;o<i;o++)KUe.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},L_t=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},B_t=function(t,n,r){for(var o in t)KUe.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))};function U_t(e){return M_t.call(e)===\"[object Array]\"}YUe.exports=function(t,n,r){if(!P_t(n))throw new TypeError(\"iterator must be a function\");var o;arguments.length>=3&&(o=r),U_t(t)?D_t(t,n,o):typeof t==\"string\"?L_t(t,n,o):B_t(t,n,o)}});var JUe=me(($nr,QUe)=>{\"use strict\";f();QUe.exports=[\"Float16Array\",\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]});var $Ue=me((trr,XUe)=>{\"use strict\";f();var ope=JUe(),F_t=globalThis;XUe.exports=function(){for(var t=[],n=0;n<ope.length;n++)typeof F_t[ope[n]]==\"function\"&&(t[t.length]=ope[n]);return t}});var rFe=me((rrr,nFe)=>{\"use strict\";f();var eFe=lB(),H_t=Wfe(),_k=gk(),tFe=yk();nFe.exports=function(t,n,r){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new _k(\"`obj` must be an object or a function`\");if(typeof n!=\"string\"&&typeof n!=\"symbol\")throw new _k(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new _k(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new _k(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new _k(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new _k(\"`loose`, if provided, must be a boolean\");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,u=!!tFe&&tFe(t,n);if(eFe)eFe(t,n,{configurable:a===null&&u?u.configurable:!a,enumerable:o===null&&u?u.enumerable:!o,value:r,writable:i===null&&u?u.writable:!i});else if(c||!o&&!i&&!a)t[n]=r;else throw new H_t(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")}});var aFe=me((irr,iFe)=>{\"use strict\";f();var ipe=lB(),oFe=function(){return!!ipe};oFe.hasArrayLengthDefineBug=function(){if(!ipe)return null;try{return ipe([],\"length\",{value:1}).length!==1}catch{return!0}};iFe.exports=oFe});var dFe=me((srr,lFe)=>{\"use strict\";f();var z_t=Xfe(),sFe=rFe(),j_t=aFe()(),cFe=yk(),uFe=gk(),W_t=z_t(\"%Math.floor%\");lFe.exports=function(t,n){if(typeof t!=\"function\")throw new uFe(\"`fn` is not a function\");if(typeof n!=\"number\"||n<0||n>4294967295||W_t(n)!==n)throw new uFe(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if(\"length\"in t&&cFe){var a=cFe(t,\"length\");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(j_t?sFe(t,\"length\",n,!0,!0):sFe(t,\"length\",n)),t}});var pFe=me((urr,fFe)=>{\"use strict\";f();var V_t=bk(),G_t=MZ(),q_t=Kfe();fFe.exports=function(){return q_t(V_t,G_t,arguments)}});var gFe=me((drr,HZ)=>{\"use strict\";f();var K_t=dFe(),hFe=lB(),Y_t=DZ(),mFe=pFe();HZ.exports=function(t){var n=Y_t(arguments),r=t.length-(arguments.length-1);return K_t(n,1+(r>0?r:0),!0)};hFe?hFe(HZ.exports,\"apply\",{value:mFe}):HZ.exports.apply=mFe});var bFe=me((prr,yFe)=>{\"use strict\";f();var Z_t=Vfe();yFe.exports=function(){return Z_t()&&!!Symbol.toStringTag}});var AFe=me((mrr,EFe)=>{\"use strict\";f();var WZ=ZUe(),Q_t=$Ue(),vFe=gFe(),spe=$fe(),jZ=yk(),zZ=Zfe(),J_t=spe(\"Object.prototype.toString\"),xFe=bFe()(),wFe=globalThis,ape=Q_t(),cpe=spe(\"String.prototype.slice\"),X_t=spe(\"Array.prototype.indexOf\",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},VZ={__proto__:null};xFe&&jZ&&zZ?WZ(ape,function(e){var t=new wFe[e];if(Symbol.toStringTag in t&&zZ){var n=zZ(t),r=jZ(n,Symbol.toStringTag);if(!r&&n){var o=zZ(n);r=jZ(o,Symbol.toStringTag)}VZ[\"$\"+e]=vFe(r.get)}}):WZ(ape,function(e){var t=new wFe[e],n=t.slice||t.set;n&&(VZ[\"$\"+e]=vFe(n))});var $_t=function(t){var n=!1;return WZ(VZ,function(r,o){if(!n)try{\"$\"+r(t)===o&&(n=cpe(o,1))}catch{}}),n},eSt=function(t){var n=!1;return WZ(VZ,function(r,o){if(!n)try{r(t),n=cpe(o,1)}catch{}}),n};EFe.exports=function(t){if(!t||typeof t!=\"object\")return!1;if(!xFe){var n=cpe(J_t(t),8,-1);return X_t(ape,n)>-1?n:n!==\"Object\"?!1:eSt(t)}return jZ?$_t(t):null}});var SFe=me((yrr,_Fe)=>{\"use strict\";f();var tSt=AFe();_Fe.exports=function(t){return!!tSt(t)}});var CFe=me((vrr,TFe)=>{\"use strict\";f();var nSt=gk(),rSt=$fe(),oSt=rSt(\"TypedArray.prototype.buffer\",!0),iSt=SFe();TFe.exports=oSt||function(t){if(!iSt(t))throw new nSt(\"Not a Typed Array\");return t.buffer}});var OFe=me((xrr,IFe)=>{\"use strict\";f();var yv=f1().Buffer,aSt=TBe(),sSt=CFe(),cSt=ArrayBuffer.isView||function(t){try{return sSt(t),!0}catch{return!1}},uSt=typeof Uint8Array<\"u\",RFe=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",lSt=RFe&&(yv.prototype instanceof Uint8Array||yv.TYPED_ARRAY_SUPPORT);IFe.exports=function(t,n){if(t instanceof yv)return t;if(typeof t==\"string\")return yv.from(t,n);if(RFe&&cSt(t)){if(t.byteLength===0)return yv.alloc(0);if(lSt){var r=yv.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),i=yv.from(o);if(i.length===t.byteLength)return i}if(uSt&&t instanceof Uint8Array)return yv.from(t);var a=aSt(t);if(a)for(var c=0;c<t.length;c+=1){var u=t[c];if(typeof u!=\"number\"||u<0||u>255||~~u!==u)throw new RangeError(\"Array items must be numbers in the range 0-255.\")}if(a||yv.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer==\"function\"&&t.constructor.isBuffer(t))return yv.from(t);throw new TypeError(\\'The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.\\')}});var Z6=me((Arr,kFe)=>{\"use strict\";f();var dSt=f1().Buffer,fSt=OFe();function GZ(e,t){this._block=dSt.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}GZ.prototype.update=function(e,t){e=fSt(e,t||\"utf8\");for(var n=this._block,r=this._blockSize,o=e.length,i=this._len,a=0;a<o;){for(var c=i%r,u=Math.min(o-a,r-c),d=0;d<u;d++)n[c+d]=e[a+d];i+=u,a+=u,i%r===0&&this._update(n)}return this._len+=o,this};GZ.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i};GZ.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};kFe.exports=GZ});var MFe=me((Srr,PFe)=>{\"use strict\";f();var pSt=sg(),NFe=Z6(),hSt=f1().Buffer,mSt=[1518500249,1859775393,-1894007588,-899497514],gSt=new Array(80);function hB(){this.init(),this._w=gSt,NFe.call(this,64,56)}pSt(hB,NFe);hB.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ySt(e){return e<<5|e>>>27}function bSt(e){return e<<30|e>>>2}function vSt(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}hB.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var u=0;u<80;++u){var d=~~(u/20),p=ySt(n)+vSt(d,r,o,i)+a+t[u]+mSt[d]|0;a=i,i=o,o=bSt(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0};hB.prototype._hash=function(){var e=hSt.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};PFe.exports=hB});var BFe=me((Crr,LFe)=>{\"use strict\";f();var wSt=sg(),DFe=Z6(),xSt=f1().Buffer,ESt=[1518500249,1859775393,-1894007588,-899497514],ASt=new Array(80);function mB(){this.init(),this._w=ASt,DFe.call(this,64,56)}wSt(mB,DFe);mB.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _St(e){return e<<1|e>>>31}function SSt(e){return e<<5|e>>>27}function TSt(e){return e<<30|e>>>2}function CSt(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}mB.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=_St(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var u=0;u<80;++u){var d=~~(u/20),p=SSt(n)+CSt(d,r,o,i)+a+t[u]+ESt[d]|0;a=i,i=o,o=TSt(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0};mB.prototype._hash=function(){var e=xSt.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};LFe.exports=mB});var upe=me((Irr,FFe)=>{\"use strict\";f();var RSt=sg(),UFe=Z6(),ISt=f1().Buffer,OSt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],kSt=new Array(64);function gB(){this.init(),this._w=kSt,UFe.call(this,64,56)}RSt(gB,UFe);gB.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function NSt(e,t,n){return n^e&(t^n)}function PSt(e,t,n){return e&t|n&(e|t)}function MSt(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function DSt(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function LSt(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function BSt(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}gB.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=this._f|0,u=this._g|0,d=this._h|0,p=0;p<16;++p)t[p]=e.readInt32BE(p*4);for(;p<64;++p)t[p]=BSt(t[p-2])+t[p-7]+LSt(t[p-15])+t[p-16]|0;for(var h=0;h<64;++h){var g=d+DSt(a)+NSt(a,c,u)+OSt[h]+t[h]|0,y=MSt(n)+PSt(n,r,o)|0;d=u,u=c,c=a,a=i+g|0,i=o,o=r,r=n,n=g+y|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0,this._f=c+this._f|0,this._g=u+this._g|0,this._h=d+this._h|0};gB.prototype._hash=function(){var e=ISt.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};FFe.exports=gB});var zFe=me((krr,HFe)=>{\"use strict\";f();var USt=sg(),FSt=upe(),HSt=Z6(),zSt=f1().Buffer,jSt=new Array(64);function qZ(){this.init(),this._w=jSt,HSt.call(this,64,56)}USt(qZ,FSt);qZ.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};qZ.prototype._hash=function(){var e=zSt.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};HFe.exports=qZ});var lpe=me((Prr,YFe)=>{\"use strict\";f();var WSt=sg(),KFe=Z6(),VSt=f1().Buffer,jFe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],GSt=new Array(160);function yB(){this.init(),this._w=GSt,KFe.call(this,128,112)}WSt(yB,KFe);yB.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function WFe(e,t,n){return n^e&(t^n)}function VFe(e,t,n){return e&t|n&(e|t)}function GFe(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function qFe(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function qSt(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function KSt(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function YSt(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function ZSt(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Gu(e,t){return e>>>0<t>>>0?1:0}yB.prototype._update=function(e){for(var t=this._w,n=this._ah|0,r=this._bh|0,o=this._ch|0,i=this._dh|0,a=this._eh|0,c=this._fh|0,u=this._gh|0,d=this._hh|0,p=this._al|0,h=this._bl|0,g=this._cl|0,y=this._dl|0,v=this._el|0,x=this._fl|0,R=this._gl|0,S=this._hl|0,M=0;M<32;M+=2)t[M]=e.readInt32BE(M*4),t[M+1]=e.readInt32BE(M*4+4);for(;M<160;M+=2){var P=t[M-30],z=t[M-30+1],V=qSt(P,z),Q=KSt(z,P);P=t[M-4],z=t[M-4+1];var $=YSt(P,z),oe=ZSt(z,P),J=t[M-14],re=t[M-14+1],q=t[M-32],K=t[M-32+1],U=Q+re|0,T=V+J+Gu(U,Q)|0;U=U+oe|0,T=T+$+Gu(U,oe)|0,U=U+K|0,T=T+q+Gu(U,K)|0,t[M]=T,t[M+1]=U}for(var k=0;k<160;k+=2){T=t[k],U=t[k+1];var F=VFe(n,r,o),N=VFe(p,h,g),B=GFe(n,p),H=GFe(p,n),W=qFe(a,v),G=qFe(v,a),O=jFe[k],j=jFe[k+1],te=WFe(a,c,u),ne=WFe(v,x,R),ae=S+G|0,pe=d+W+Gu(ae,S)|0;ae=ae+ne|0,pe=pe+te+Gu(ae,ne)|0,ae=ae+j|0,pe=pe+O+Gu(ae,j)|0,ae=ae+U|0,pe=pe+T+Gu(ae,U)|0;var ye=H+N|0,ve=B+F+Gu(ye,H)|0;d=u,S=R,u=c,R=x,c=a,x=v,v=y+ae|0,a=i+pe+Gu(v,y)|0,i=o,y=g,o=r,g=h,r=n,h=p,p=ae+ye|0,n=pe+ve+Gu(p,ae)|0}this._al=this._al+p|0,this._bl=this._bl+h|0,this._cl=this._cl+g|0,this._dl=this._dl+y|0,this._el=this._el+v|0,this._fl=this._fl+x|0,this._gl=this._gl+R|0,this._hl=this._hl+S|0,this._ah=this._ah+n+Gu(this._al,p)|0,this._bh=this._bh+r+Gu(this._bl,h)|0,this._ch=this._ch+o+Gu(this._cl,g)|0,this._dh=this._dh+i+Gu(this._dl,y)|0,this._eh=this._eh+a+Gu(this._el,v)|0,this._fh=this._fh+c+Gu(this._fl,x)|0,this._gh=this._gh+u+Gu(this._gl,R)|0,this._hh=this._hh+d+Gu(this._hl,S)|0};yB.prototype._hash=function(){var e=VSt.allocUnsafe(64);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};YFe.exports=yB});var QFe=me((Drr,ZFe)=>{\"use strict\";f();var QSt=sg(),JSt=lpe(),XSt=Z6(),$St=f1().Buffer,e5t=new Array(160);function KZ(){this.init(),this._w=e5t,XSt.call(this,128,112)}QSt(KZ,JSt);KZ.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};KZ.prototype._hash=function(){var e=$St.allocUnsafe(48);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};ZFe.exports=KZ});var JFe=me((Brr,Ex)=>{\"use strict\";f();Ex.exports=function(t){var n=t.toLowerCase(),r=Ex.exports[n];if(!r)throw new Error(n+\" is not supported (we accept pull requests)\");return new r};Ex.exports.sha=MFe();Ex.exports.sha1=BFe();Ex.exports.sha224=zFe();Ex.exports.sha256=upe();Ex.exports.sha384=QFe();Ex.exports.sha512=lpe()});var ZZ=me(YZ=>{\"use strict\";f();Object.defineProperty(YZ,\"__esModule\",{value:!0});YZ.Session=void 0;var XFe=JFe(),$Fe=hv(),eHe=\"session:id\",tHe=\"session:secret\",nHe=\"session:linked\",dpe=class e{constructor(t,n,r,o){this._storage=t,this._id=n||(0,$Fe.randomBytesHex)(16),this._secret=r||(0,$Fe.randomBytesHex)(32),this._key=new XFe.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!o}static load(t){let n=t.getItem(eHe),r=t.getItem(nHe),o=t.getItem(tHe);return n&&o?new e(t,n,o,r===\"1\"):null}static hash(t){return new XFe.sha256().update(t).digest(\"hex\")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(eHe,this._id),this._storage.setItem(tHe,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(nHe,this._linked?\"1\":\"0\")}};YZ.Session=dpe});var rHe=me(JZ=>{\"use strict\";f();Object.defineProperty(JZ,\"__esModule\",{value:!0});JZ.Cipher=void 0;var QZ=hv(),fpe=class{constructor(t){this.secret=t}async encrypt(t){let n=this.secret;if(n.length!==64)throw Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",(0,QZ.hexStringToUint8Array)(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),i=new TextEncoder,a=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},o,i.encode(t)),c=16,u=a.slice(a.byteLength-c),d=a.slice(0,a.byteLength-c),p=new Uint8Array(u),h=new Uint8Array(d),g=new Uint8Array([...r,...p,...h]);return(0,QZ.uint8ArrayToHex)(g)}async decrypt(t){let n=this.secret;if(n.length!==64)throw Error(\"secret must be 256 bits\");return new Promise((r,o)=>{(async function(){let i=await crypto.subtle.importKey(\"raw\",(0,QZ.hexStringToUint8Array)(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),a=(0,QZ.hexStringToUint8Array)(t),c=a.slice(0,12),u=a.slice(12,28),d=a.slice(28),p=new Uint8Array([...d,...u]),h={name:\"AES-GCM\",iv:new Uint8Array(c)};try{let g=await window.crypto.subtle.decrypt(h,i,p),y=new TextDecoder;r(y.decode(g))}catch(g){o(g)}})()})}};JZ.Cipher=fpe});var oHe=me(XZ=>{\"use strict\";f();Object.defineProperty(XZ,\"__esModule\",{value:!0});XZ.WalletLinkHTTP=void 0;var ppe=class{constructor(t,n,r){this.linkAPIUrl=t,this.sessionId=n;let o=`${n}:${r}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(n=>console.error(\"Unabled to mark event as failed:\",n))}async fetchUnseenEvents(){var t;let n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){let{events:r,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let i=(t=r?.filter(a=>a.event===\"Web3Response\").map(a=>({type:\"Event\",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(i),i}throw new Error(`Check unseen events failed: ${n.status}`)}};XZ.WalletLinkHTTP=ppe});var iHe=me(Tk=>{\"use strict\";f();Object.defineProperty(Tk,\"__esModule\",{value:!0});Tk.WalletLinkWebSocket=Tk.ConnectionState=void 0;var Sk;(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(Sk||(Tk.ConnectionState=Sk={}));var hpe=class{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,\"ws\")}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");return new Promise((t,n)=>{var r;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(i){n(i);return}(r=this.connectionStateListener)===null||r===void 0||r.call(this,Sk.CONNECTING),o.onclose=i=>{var a;this.clearWebSocket(),n(new Error(`websocket error ${i.code}: ${i.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,Sk.DISCONNECTED)},o.onopen=i=>{var a;t(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,Sk.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(u=>this.sendData(u)),this.pendingData=[])},o.onmessage=i=>{var a,c;if(i.data===\"h\")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:\"Heartbeat\"});else try{let u=JSON.parse(i.data);(c=this.incomingDataListener)===null||c===void 0||c.call(this,u)}catch{}}})}disconnect(){var t;let{webSocket:n}=this;if(n){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,Sk.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(t){let{webSocket:n}=this;if(!n){this.pendingData.push(t),this.connect();return}n.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}};Tk.WalletLinkWebSocket=hpe});var cHe=me(eQ=>{\"use strict\";f();Object.defineProperty(eQ,\"__esModule\",{value:!0});eQ.WalletLinkConnection=void 0;var Ck=sB(),t5t=rHe(),bv=RZ(),aHe=IZ(),Rk=ZZ(),n5t=oHe(),$Z=iHe(),sHe=1e4,r5t=6e4,mpe=class{constructor({session:t,linkAPIUrl:n,listener:r,diagnostic:o,WebSocketClass:i=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,Ck.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=c=>{if(!c)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",d=>c.JsonRpcUrl&&this.handleChainUpdated(d,c.JsonRpcUrl)]]).forEach((d,p)=>{let h=c[p];h!==void 0&&d(h)})},this.handleDestroyed=c=>{var u,d;c===\"1\"&&((u=this.listener)===null||u===void 0||u.resetAndReload(),(d=this.diagnostic)===null||d===void 0||d.log(bv.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:Rk.Session.hash(this.session.id)}))},this.handleAccountUpdated=async c=>{var u,d;try{let p=await this.cipher.decrypt(c);(u=this.listener)===null||u===void 0||u.accountUpdated(p)}catch{(d=this.diagnostic)===null||d===void 0||d.log(bv.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"selectedAddress\"})}},this.handleMetadataUpdated=async(c,u)=>{var d,p;try{let h=await this.cipher.decrypt(u);(d=this.listener)===null||d===void 0||d.metadataUpdated(c,h)}catch{(p=this.diagnostic)===null||p===void 0||p.log(bv.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:c})}},this.handleWalletUsernameUpdated=async c=>{this.handleMetadataUpdated(aHe.WALLET_USER_NAME_KEY,c)},this.handleAppVersionUpdated=async c=>{this.handleMetadataUpdated(aHe.APP_VERSION_KEY,c)},this.handleChainUpdated=async(c,u)=>{var d,p;try{let h=await this.cipher.decrypt(c),g=await this.cipher.decrypt(u);(d=this.listener)===null||d===void 0||d.chainUpdated(h,g)}catch{(p=this.diagnostic)===null||p===void 0||p.log(bv.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"chainId|jsonRpcUrl\"})}},this.session=t,this.cipher=new t5t.Cipher(t.secret),this.diagnostic=o,this.listener=r;let a=new $Z.WalletLinkWebSocket(`${n}/rpc`,i);a.setConnectionStateListener(async c=>{var u;(u=this.diagnostic)===null||u===void 0||u.log(bv.EVENTS.CONNECTED_STATE_CHANGE,{state:c,sessionIdHash:Rk.Session.hash(t.id)});let d=!1;switch(c){case $Z.ConnectionState.DISCONNECTED:if(!this.destroyed){let p=async()=>{await new Promise(h=>setTimeout(h,5e3)),this.destroyed||a.connect().catch(()=>{p()})};p()}break;case $Z.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),d=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},sHe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case $Z.ConnectionState.CONNECTING:break}this.connected!==d&&(this.connected=d)}),a.setIncomingDataListener(c=>{var u,d,p;switch(c.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let h=c.type===\"IsLinkedOK\"?c.linked:void 0;(u=this.diagnostic)===null||u===void 0||u.log(bv.EVENTS.LINKED,{sessionIdHash:Rk.Session.hash(t.id),linked:h,type:c.type,onlineGuests:c.onlineGuests}),this.linked=h||c.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{(d=this.diagnostic)===null||d===void 0||d.log(bv.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Rk.Session.hash(t.id),metadata_keys:c&&c.metadata?Object.keys(c.metadata):void 0}),this.handleSessionMetadataUpdated(c.metadata);break}case\"Event\":{this.handleIncomingEvent(c);break}}c.id!==void 0&&((p=this.requestResolutions.get(c.id))===null||p===void 0||p(c))}),this.ws=a,this.http=new n5t.WalletLinkHTTP(n,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error(\"instance is destroyed\");(t=this.diagnostic)===null||t===void 0||t.log(bv.EVENTS.STARTED_CONNECTING,{sessionIdHash:Rk.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(bv.EVENTS.DISCONNECTED,{sessionIdHash:Rk.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var n,r;this._connected=t,t&&((n=this.onceConnected)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.connectedUpdated(t)}setOnceConnected(t){return new Promise(n=>{this.connected?t().then(n):this.onceConnected=()=>{t().then(n),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var n,r;this._linked=t,t&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.linkedUpdated(t)}setOnceLinked(t){return new Promise(n=>{this.linked?t().then(n):this.onceLinked=()=>{t().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(t){var n,r;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let o=await this.cipher.decrypt(t.data),i=JSON.parse(o);if(i.type!==\"WEB3_RESPONSE\")return;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(i)}catch{(r=this.diagnostic)===null||r===void 0||r.log(bv.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"incomingEvent\"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(n=>this.handleIncomingEvent(n))}async setSessionMetadata(t,n){let r={type:\"SetSessionConfig\",id:(0,Ck.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:n}};return this.setOnceConnected(async()=>{let o=await this.makeRequest(r);if(o.type===\"Fail\")throw new Error(o.error||\"failed to set session metadata\")})}async publishEvent(t,n,r=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,relaySource:window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:(0,Ck.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:r};return this.setOnceLinked(async()=>{let a=await this.makeRequest(i);if(a.type===\"Fail\")throw new Error(a.error||\"failed to publish event\");return a.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>sHe*2){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,n=r5t){let r=t.id;this.sendData(t);let o;return Promise.race([new Promise((i,a)=>{o=window.setTimeout(()=>{a(new Error(`request ${r} timed out`))},n)}),new Promise(i=>{this.requestResolutions.set(r,a=>{clearTimeout(o),i(a),this.requestResolutions.delete(r)})})])}async authenticate(){let t={type:\"HostSession\",id:(0,Ck.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},n=await this.makeRequest(t);if(n.type===\"Fail\")throw new Error(n.error||\"failed to authentcate\")}sendIsLinked(){let t={type:\"IsLinked\",id:(0,Ck.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){let t={type:\"GetSessionConfig\",id:(0,Ck.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}};eQ.WalletLinkConnection=mpe});var uHe=me(gpe=>{\"use strict\";f();Object.defineProperty(gpe,\"__esModule\",{value:!0});gpe.default=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});var ype=me(Ik=>{\"use strict\";f();var o5t=Ik&&Ik.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ik,\"__esModule\",{value:!0});Ik.injectCssReset=void 0;var i5t=o5t(uHe());function a5t(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(i5t.default)),document.documentElement.appendChild(e)}Ik.injectCssReset=a5t});var Wf={};qa(Wf,{Component:()=>vB,Fragment:()=>AB,cloneElement:()=>p5t,createContext:()=>h5t,createElement:()=>wHe,createRef:()=>c5t,h:()=>wHe,hydrate:()=>IHe,isValidElement:()=>hHe,options:()=>oa,render:()=>RHe,toChildArray:()=>_He});function vv(e,t){for(var n in t)e[n]=t[n];return e}function Ape(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function wHe(e,t,n){var r,o,i,a={};for(i in t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?xB.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return bB(e,a,r,o,null)}function bB(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++pHe,__i:-1,__u:0};return o==null&&oa.vnode!=null&&oa.vnode(i),i}function c5t(){return{current:null}}function AB(e){return e.children}function vB(e,t){this.props=e,this.context=t}function Ok(e,t){if(t==null)return e.__?Ok(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?Ok(e):null}function xHe(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return xHe(e)}}function wpe(e){(!e.__d&&(e.__d=!0)&&Q6.push(e)&&!nQ.__r++||lHe!=oa.debounceRendering)&&((lHe=oa.debounceRendering)||mHe)(nQ)}function nQ(){for(var e,t,n,r,o,i,a,c=1;Q6.length;)Q6.length>c&&Q6.sort(gHe),e=Q6.shift(),c=Q6.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=vv({},r)).__v=r.__v+1,oa.vnode&&oa.vnode(n),_pe(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ok(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,SHe(i,n,a),n.__e!=o&&xHe(n)));nQ.__r=0}function EHe(e,t,n,r,o,i,a,c,u,d,p){var h,g,y,v,x,R,S,M=r&&r.__k||vHe,P=t.length;for(u=u5t(n,t,M,u,P),h=0;h<P;h++)(y=n.__k[h])!=null&&(g=y.__i==-1?wB:M[y.__i]||wB,y.__i=h,R=_pe(e,y,g,o,i,a,c,u,d,p),v=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&Spe(g.ref,null,y),p.push(y.ref,y.__c||v,y)),x==null&&v!=null&&(x=v),(S=!!(4&y.__u))||g.__k===y.__k?u=AHe(y,u,e,S):typeof y.type==\"function\"&&R!==void 0?u=R:v&&(u=v.nextSibling),y.__u&=-7);return n.__e=x,u}function u5t(e,t,n,r,o){var i,a,c,u,d,p=n.length,h=p,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!=\"boolean\"&&typeof a!=\"function\"?(u=i+g,(a=e.__k[i]=typeof a==\"string\"||typeof a==\"number\"||typeof a==\"bigint\"||a.constructor==String?bB(null,a,null,null,null):EB(a)?bB(AB,{children:a},null,null,null):a.constructor==null&&a.__b>0?bB(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(d=a.__i=l5t(a,n,u,h))!=-1&&(h--,(c=n[d])&&(c.__u|=2)),c==null||c.__v==null?(d==-1&&(o>p?g--:o<p&&g++),typeof a.type!=\"function\"&&(a.__u|=4)):d!=u&&(d==u-1?g--:d==u+1?g++:(d>u?g--:g++,a.__u|=4))):e.__k[i]=null;if(h)for(i=0;i<p;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=Ok(c)),CHe(c,c));return r}function AHe(e,t,n,r){var o,i;if(typeof e.type==\"function\"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=AHe(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ok(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function _He(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(EB(e)?e.some(function(n){_He(n,t)}):t.push(e)),t}function l5t(e,t,n,r){var o,i,a,c=e.key,u=e.type,d=t[n],p=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||p&&c==d.key&&u==d.type)return n;if(r>(p?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&(2&d.__u)==0&&c==d.key&&u==d.type)return a}return-1}function dHe(e,t,n){t[0]==\"-\"?e.setProperty(t,n??\"\"):e[t]=n==null?\"\":typeof n!=\"number\"||s5t.test(t)?n:n+\"px\"}function tQ(e,t,n,r,o){var i,a;e:if(t==\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||dHe(e.style,t,\"\");if(n)for(t in n)r&&n[t]==r[t]||dHe(e.style,t,n[t])}else if(t[0]==\"o\"&&t[1]==\"n\")i=t!=(t=t.replace(yHe,\"$1\")),a=t.toLowerCase(),t=a in e||t==\"onFocusOut\"||t==\"onFocusIn\"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Epe,e.addEventListener(t,i?vpe:bpe,i)):e.removeEventListener(t,i?vpe:bpe,i);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=n??\"\";break e}catch{}typeof n==\"function\"||(n==null||n===!1&&t[4]!=\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&n==1?\"\":n))}}function fHe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Epe++;else if(t.t<n.u)return;return n(oa.event?oa.event(t):t)}}}function _pe(e,t,n,r,o,i,a,c,u,d){var p,h,g,y,v,x,R,S,M,P,z,V,Q,$,oe,J,re,q=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=oa.__b)&&p(t);e:if(typeof q==\"function\")try{if(S=t.props,M=\"prototype\"in q&&q.prototype.render,P=(p=q.contextType)&&r[p.__c],z=p?P?P.props.value:p.__:r,n.__c?R=(h=t.__c=n.__c).__=h.__E:(M?t.__c=h=new q(S,z):(t.__c=h=new vB(S,z),h.constructor=q,h.render=f5t),P&&P.sub(h),h.props=S,h.state||(h.state={}),h.context=z,h.__n=r,g=h.__d=!0,h.__h=[],h._sb=[]),M&&h.__s==null&&(h.__s=h.state),M&&q.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=vv({},h.__s)),vv(h.__s,q.getDerivedStateFromProps(S,h.__s))),y=h.props,v=h.state,h.__v=t,g)M&&q.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),M&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(M&&q.getDerivedStateFromProps==null&&S!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,z),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,z)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(K){K&&(K.__=t)}),V=0;V<h._sb.length;V++)h.__h.push(h._sb[V]);h._sb=[],h.__h.length&&a.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,z),M&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,v,x)})}if(h.context=z,h.props=S,h.__P=e,h.__e=!1,Q=oa.__r,$=0,M){for(h.state=h.__s,h.__d=!1,Q&&Q(t),p=h.render(h.props,h.state,h.context),oe=0;oe<h._sb.length;oe++)h.__h.push(h._sb[oe]);h._sb=[]}else do h.__d=!1,Q&&Q(t),p=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++$<25);h.state=h.__s,h.getChildContext!=null&&(r=vv(vv({},r),h.getChildContext())),M&&!g&&h.getSnapshotBeforeUpdate!=null&&(x=h.getSnapshotBeforeUpdate(y,v)),J=p,p!=null&&p.type===AB&&p.key==null&&(J=THe(p.props.children)),c=EHe(e,EB(J)?J:[J],t,n,r,o,i,a,c,u,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),R&&(h.__E=h.__=null)}catch(K){if(t.__v=null,u||i!=null)if(K.then){for(t.__u|=u?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else{for(re=i.length;re--;)Ape(i[re]);xpe(t)}else t.__e=n.__e,t.__k=n.__k,K.then||xpe(t);oa.__e(K,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=d5t(n.__e,t,n,r,o,i,a,u,d);return(p=oa.diffed)&&p(t),128&t.__u?void 0:c}function xpe(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(xpe)}function SHe(e,t,n){for(var r=0;r<n.length;r++)Spe(n[r],n[++r],n[++r]);oa.__c&&oa.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){oa.__e(i,o.__v)}})}function THe(e){return typeof e!=\"object\"||e==null||e.__b&&e.__b>0?e:EB(e)?e.map(THe):vv({},e)}function d5t(e,t,n,r,o,i,a,c,u){var d,p,h,g,y,v,x,R=n.props,S=t.props,M=t.type;if(M==\"svg\"?o=\"http://www.w3.org/2000/svg\":M==\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),i!=null){for(d=0;d<i.length;d++)if((y=i[d])&&\"setAttribute\"in y==!!M&&(M?y.localName==M:y.nodeType==3)){e=y,i[d]=null;break}}if(e==null){if(M==null)return document.createTextNode(S);e=document.createElementNS(o,M,S.is&&S),c&&(oa.__m&&oa.__m(t,i),c=!1),i=null}if(M==null)R===S||c&&e.data==S||(e.data=S);else{if(i=i&&xB.call(e.childNodes),R=n.props||wB,!c&&i!=null)for(R={},d=0;d<e.attributes.length;d++)R[(y=e.attributes[d]).name]=y.value;for(d in R)if(y=R[d],d!=\"children\"){if(d==\"dangerouslySetInnerHTML\")h=y;else if(!(d in S)){if(d==\"value\"&&\"defaultValue\"in S||d==\"checked\"&&\"defaultChecked\"in S)continue;tQ(e,d,null,y,o)}}for(d in S)y=S[d],d==\"children\"?g=y:d==\"dangerouslySetInnerHTML\"?p=y:d==\"value\"?v=y:d==\"checked\"?x=y:c&&typeof y!=\"function\"||R[d]===y||tQ(e,d,y,R[d],o);if(p)c||h&&(p.__html==h.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),EHe(t.type==\"template\"?e.content:e,EB(g)?g:[g],t,n,r,M==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,i,a,i?i[0]:n.__k&&Ok(n,0),c,u),i!=null)for(d=i.length;d--;)Ape(i[d]);c||(d=\"value\",M==\"progress\"&&v==null?e.removeAttribute(\"value\"):v!=null&&(v!==e[d]||M==\"progress\"&&!v||M==\"option\"&&v!=R[d])&&tQ(e,d,v,R[d],o),d=\"checked\",x!=null&&x!=e[d]&&tQ(e,d,x,R[d],o))}return e}function Spe(e,t,n){try{if(typeof e==\"function\"){var r=typeof e.__u==\"function\";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){oa.__e(o,n)}}function CHe(e,t,n){var r,o;if(oa.unmount&&oa.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Spe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){oa.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&CHe(r[o],t,n||typeof e.type!=\"function\");n||Ape(e.__e),e.__c=e.__=e.__e=void 0}function f5t(e,t,n){return this.constructor(e,n)}function RHe(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),oa.__&&oa.__(e,t),o=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,i=[],a=[],_pe(t,e=(!r&&n||t).__k=wHe(AB,null,[e]),o||wB,wB,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?xB.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),SHe(i,e,a)}function IHe(e,t){RHe(e,t,IHe)}function p5t(e,t,n){var r,o,i,a,c=vv({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:c[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?xB.call(arguments,2):n),bB(e.type,c,r||e.key,o||e.ref,null)}function h5t(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,wpe(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c=\"__cC\"+bHe++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}var xB,oa,pHe,hHe,Q6,lHe,mHe,gHe,yHe,Epe,bpe,vpe,bHe,wB,vHe,s5t,EB,kd=Z(()=>{f();wB={},vHe=[],s5t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,EB=Array.isArray;xB=vHe.slice,oa={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},pHe=0,hHe=function(e){return e!=null&&e.constructor==null},vB.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=vv({},this.state),typeof e==\"function\"&&(e=e(vv({},n),this.props)),e&&vv(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),wpe(this))},vB.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),wpe(this))},vB.prototype.render=AB,Q6=[],mHe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gHe=function(e,t){return e.__v.__b-t.__v.__b},nQ.__r=0,yHe=/(PointerCapture)$|Capture$/i,Epe=0,bpe=fHe(!1),vpe=fHe(!0),bHe=0});var _B={};qa(_B,{useCallback:()=>b5t,useContext:()=>v5t,useDebugValue:()=>w5t,useEffect:()=>m5t,useErrorBoundary:()=>x5t,useId:()=>E5t,useImperativeHandle:()=>y5t,useLayoutEffect:()=>zHe,useMemo:()=>Rpe,useReducer:()=>HHe,useRef:()=>g5t,useState:()=>FHe});function J6(e,t){hs.__h&&hs.__h(ia,e,kk||t),kk=0;var n=ia.__H||(ia.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function FHe(e){return kk=1,HHe(jHe,e)}function HHe(e,t,n){var r=J6(Ax++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):jHe(void 0,t),function(c){var u=r.__N?r.__N[0]:r.__[0],d=r.t(u,c);u!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=ia,!ia.__f)){var o=function(c,u,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(g){return!!g.__c});if(p.every(function(g){return!g.__N}))return!i||i.call(this,c,u,d);var h=r.__c.props!==c;return p.forEach(function(g){if(g.__N){var y=g.__[0];g.__=g.__N,g.__N=void 0,y!==g.__[0]&&(h=!0)}}),i&&i.call(this,c,u,d)||h};ia.__f=!0;var i=ia.shouldComponentUpdate,a=ia.componentWillUpdate;ia.componentWillUpdate=function(c,u,d){if(this.__e){var p=i;i=void 0,o(c,u,d),i=p}a&&a.call(this,c,u,d)},ia.shouldComponentUpdate=o}return r.__N||r.__}function m5t(e,t){var n=J6(Ax++,3);!hs.__s&&Ipe(n.__H,t)&&(n.__=e,n.u=t,ia.__H.__h.push(n))}function zHe(e,t){var n=J6(Ax++,4);!hs.__s&&Ipe(n.__H,t)&&(n.__=e,n.u=t,ia.__h.push(n))}function g5t(e){return kk=5,Rpe(function(){return{current:e}},[])}function y5t(e,t,n){kk=6,zHe(function(){if(typeof e==\"function\"){var r=e(t());return function(){e(null),r&&typeof r==\"function\"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Rpe(e,t){var n=J6(Ax++,7);return Ipe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function b5t(e,t){return kk=8,Rpe(function(){return e},t)}function v5t(e){var t=ia.context[e.__c],n=J6(Ax++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ia)),t.props.value):e.__}function w5t(e,t){hs.useDebugValue&&hs.useDebugValue(t?t(e):e)}function x5t(e){var t=J6(Ax++,10),n=FHe();return t.__=e,ia.componentDidCatch||(ia.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function E5t(){var e=J6(Ax++,11);if(!e.__){for(var t=ia.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=\"P\"+n[0]+\"-\"+n[1]++}return e.__}function A5t(){for(var e;e=UHe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rQ),e.__H.__h.forEach(Cpe),e.__H.__h=[]}catch(t){e.__H.__h=[],hs.__e(t,e.__v)}}function _5t(e){var t,n=function(){clearTimeout(r),BHe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);BHe&&(t=requestAnimationFrame(n))}function rQ(e){var t=ia,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),ia=t}function Cpe(e){var t=ia;e.__c=e.__(),ia=t}function Ipe(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function jHe(e,t){return typeof t==\"function\"?t(e):t}var Ax,ia,Tpe,OHe,kk,UHe,hs,kHe,NHe,PHe,MHe,DHe,LHe,BHe,SB=Z(()=>{f();kd();kk=0,UHe=[],hs=oa,kHe=hs.__b,NHe=hs.__r,PHe=hs.diffed,MHe=hs.__c,DHe=hs.unmount,LHe=hs.__;hs.__b=function(e){ia=null,kHe&&kHe(e)},hs.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),LHe&&LHe(e,t)},hs.__r=function(e){NHe&&NHe(e),Ax=0;var t=(ia=e.__c).__H;t&&(Tpe===ia?(t.__h=[],ia.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(rQ),t.__h.forEach(Cpe),t.__h=[],Ax=0)),Tpe=ia},hs.diffed=function(e){PHe&&PHe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(UHe.push(t)!==1&&OHe===hs.requestAnimationFrame||((OHe=hs.requestAnimationFrame)||_5t)(A5t)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Tpe=ia=null},hs.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rQ),n.__h=n.__h.filter(function(r){return!r.__||Cpe(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],hs.__e(r,n.__v)}}),MHe&&MHe(e,t)},hs.unmount=function(e){DHe&&DHe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{rQ(r)}catch(o){t=o}}),n.__H=void 0,t&&hs.__e(t,n.__v))};BHe=typeof requestAnimationFrame==\"function\"});var VHe=me(oQ=>{\"use strict\";f();Object.defineProperty(oQ,\"__esModule\",{value:!0});oQ.CloseIcon=void 0;var WHe=(kd(),qo(Wf));function S5t(e){return(0,WHe.h)(\"svg\",Object.assign({width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,WHe.h)(\"path\",{d:\"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z\"}))}oQ.CloseIcon=S5t});var GHe=me(aQ=>{\"use strict\";f();Object.defineProperty(aQ,\"__esModule\",{value:!0});aQ.CoinbaseWalletRound=void 0;var iQ=(kd(),qo(Wf));function T5t(e){return(0,iQ.h)(\"svg\",Object.assign({width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,iQ.h)(\"circle\",{cx:\"14\",cy:\"14\",r:\"14\",fill:\"#0052FF\"}),(0,iQ.h)(\"path\",{d:\"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z\",fill:\"white\"}),(0,iQ.h)(\"path\",{d:\"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z\",fill:\"#0052FF\"}))}aQ.CoinbaseWalletRound=T5t});var qHe=me(sQ=>{\"use strict\";f();Object.defineProperty(sQ,\"__esModule\",{value:!0});sQ.QRCodeIcon=void 0;var TB=(kd(),qo(Wf));function C5t(e){return(0,TB.h)(\"svg\",Object.assign({width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,TB.h)(\"path\",{d:\"M3 3V8.99939L5 8.99996V5H9V3H3Z\"}),(0,TB.h)(\"path\",{d:\"M15 21L21 21V15.0006L19 15V19L15 19V21Z\"}),(0,TB.h)(\"path\",{d:\"M21 9H19V5H15.0006L15 3H21V9Z\"}),(0,TB.h)(\"path\",{d:\"M3 15V21H8.99939L8.99996 19H5L5 15H3Z\"}))}sQ.QRCodeIcon=C5t});var JHe=me((cor,QHe)=>{f();function KHe(e){this.mode=ym.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var r=[],o=this.data.charCodeAt(t);o>65536?(r[0]=240|(o&1835008)>>>18,r[1]=128|(o&258048)>>>12,r[2]=128|(o&4032)>>>6,r[3]=128|o&63):o>2048?(r[0]=224|(o&61440)>>>12,r[1]=128|(o&4032)>>>6,r[2]=128|o&63):o>128?(r[0]=192|(o&1984)>>>6,r[1]=128|o&63):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}KHe.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}};function xv(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}xv.prototype={addData:function(e){var t=new KHe(e);this.dataList.push(t),this.dataCache=null},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]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=xv.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},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||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=ms.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,c=0;c<this.modules[i].length;c++){var u=c*o,d=this.modules[i][c];d&&(r.beginFill(0,100),r.moveTo(u,a),r.lineTo(u+o,a),r.lineTo(u+o,a+o),r.lineTo(u,a+o),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=ms.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(this.modules[r][o]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[r+i][o+a]=!0:this.modules[r+i][o+a]=!1}},setupTypeNumber:function(e){for(var t=ms.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=ms.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&(r>>o&1)==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(var o=0;o<15;o++){var i=!e&&(r>>o&1)==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},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var c=0;c<2;c++)if(this.modules[r][a-c]==null){var u=!1;i<e.length&&(u=(e[i]>>>o&1)==1);var d=ms.getMask(t,r,a-c);d&&(u=!u),this.modules[r][a-c]=u,o--,o==-1&&(i++,o=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}};xv.PAD0=236;xv.PAD1=17;xv.createData=function(e,t,n){for(var r=wv.getRSBlocks(e,t),o=new YHe,i=0;i<n.length;i++){var a=n[i];o.put(a.mode,4),o.put(a.getLength(),ms.getLengthInBits(a.mode,e)),a.write(o)}for(var c=0,i=0;i<r.length;i++)c+=r[i].dataCount;if(o.getLengthInBits()>c*8)throw new Error(\"code length overflow. (\"+o.getLengthInBits()+\">\"+c*8+\")\");for(o.getLengthInBits()+4<=c*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=c*8||(o.put(xv.PAD0,8),o.getLengthInBits()>=c*8));)o.put(xv.PAD1,8);return xv.createBytes(o,r)};xv.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,d=t[c].totalCount-u;r=Math.max(r,u),o=Math.max(o,d),i[c]=new Array(u);for(var p=0;p<i[c].length;p++)i[c][p]=255&e.buffer[p+n];n+=u;var h=ms.getErrorCorrectPolynomial(d),g=new Nk(i[c],h.getLength()-1),y=g.mod(h);a[c]=new Array(h.getLength()-1);for(var p=0;p<a[c].length;p++){var v=p+y.getLength()-a[c].length;a[c][p]=v>=0?y.get(v):0}}for(var x=0,p=0;p<t.length;p++)x+=t[p].totalCount;for(var R=new Array(x),S=0,p=0;p<r;p++)for(var c=0;c<t.length;c++)p<i[c].length&&(R[S++]=i[c][p]);for(var p=0;p<o;p++)for(var c=0;c<t.length;c++)p<a[c].length&&(R[S++]=a[c][p]);return R};var ym={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Y_={L:1,M:0,Q:3,H:2},K_={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},ms={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;ms.getBCHDigit(t)-ms.getBCHDigit(ms.G15)>=0;)t^=ms.G15<<ms.getBCHDigit(t)-ms.getBCHDigit(ms.G15);return(e<<10|t)^ms.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;ms.getBCHDigit(t)-ms.getBCHDigit(ms.G18)>=0;)t^=ms.G18<<ms.getBCHDigit(t)-ms.getBCHDigit(ms.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return ms.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case K_.PATTERN000:return(t+n)%2==0;case K_.PATTERN001:return t%2==0;case K_.PATTERN010:return n%3==0;case K_.PATTERN011:return(t+n)%3==0;case K_.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case K_.PATTERN101:return t*n%2+t*n%3==0;case K_.PATTERN110:return(t*n%2+t*n%3)%2==0;case K_.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error(\"bad maskPattern:\"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Nk([1],0),n=0;n<e;n++)t=t.multiply(new Nk([1,qu.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case ym.MODE_NUMBER:return 10;case ym.MODE_ALPHA_NUM:return 9;case ym.MODE_8BIT_BYTE:return 8;case ym.MODE_KANJI:return 8;default:throw new Error(\"mode:\"+e)}else if(t<27)switch(e){case ym.MODE_NUMBER:return 12;case ym.MODE_ALPHA_NUM:return 11;case ym.MODE_8BIT_BYTE:return 16;case ym.MODE_KANJI:return 10;default:throw new Error(\"mode:\"+e)}else if(t<41)switch(e){case ym.MODE_NUMBER:return 14;case ym.MODE_ALPHA_NUM:return 13;case ym.MODE_8BIT_BYTE:return 16;case ym.MODE_KANJI:return 12;default:throw new Error(\"mode:\"+e)}else throw new Error(\"type:\"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),c=-1;c<=1;c++)if(!(r+c<0||t<=r+c))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||c==0&&u==0||a==e.isDark(r+c,o+u)&&i++;i>5&&(n+=3+i-5)}for(var r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var d=0;e.isDark(r,o)&&d++,e.isDark(r+1,o)&&d++,e.isDark(r,o+1)&&d++,e.isDark(r+1,o+1)&&d++,(d==0||d==4)&&(n+=3)}for(var r=0;r<t;r++)for(var o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var p=0,o=0;o<t;o++)for(var r=0;r<t;r++)e.isDark(r,o)&&p++;var h=Math.abs(100*p/t/t-50)/5;return n+=h*10,n}},qu={glog:function(e){if(e<1)throw new Error(\"glog(\"+e+\")\");return qu.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return qu.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(jc=0;jc<8;jc++)qu.EXP_TABLE[jc]=1<<jc;var jc;for(jc=8;jc<256;jc++)qu.EXP_TABLE[jc]=qu.EXP_TABLE[jc-4]^qu.EXP_TABLE[jc-5]^qu.EXP_TABLE[jc-6]^qu.EXP_TABLE[jc-8];var jc;for(jc=0;jc<255;jc++)qu.LOG_TABLE[qu.EXP_TABLE[jc]]=jc;var jc;function Nk(e,t){if(e.length==null)throw new Error(e.length+\"/\"+t);for(var n=0;n<e.length&&e[n]==0;)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}Nk.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=qu.gexp(qu.glog(this.get(n))+qu.glog(e.get(r)));return new Nk(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=qu.glog(this.get(0))-qu.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=qu.gexp(qu.glog(e.get(r))+t);return new Nk(n,0).mod(e)}};function wv(e,t){this.totalCount=e,this.dataCount=t}wv.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]];wv.getRSBlocks=function(e,t){var n=wv.getRsBlockTable(e,t);if(n==null)throw new Error(\"bad rs block @ typeNumber:\"+e+\"/errorCorrectLevel:\"+t);for(var r=n.length/3,o=[],i=0;i<r;i++)for(var a=n[i*3+0],c=n[i*3+1],u=n[i*3+2],d=0;d<a;d++)o.push(new wv(c,u));return o};wv.getRsBlockTable=function(e,t){switch(t){case Y_.L:return wv.RS_BLOCK_TABLE[(e-1)*4+0];case Y_.M:return wv.RS_BLOCK_TABLE[(e-1)*4+1];case Y_.Q:return wv.RS_BLOCK_TABLE[(e-1)*4+2];case Y_.H:return wv.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function YHe(){this.buffer=[],this.length=0}YHe.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ope=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function ZHe(e){var t=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:\"#000000\",background:\"#ffffff\",ecl:\"M\",image:{svg:\"\",width:0,height:0}},typeof e==\"string\"&&(e={content:e}),e)for(var n in e)this.options[n]=e[n];if(typeof this.options.content!=\"string\")throw new Error(\"Expected \\'content\\' as string!\");if(this.options.content.length===0)throw new Error(\"Expected \\'content\\' to be non-empty!\");if(!(this.options.padding>=0))throw new Error(\"Expected \\'padding\\' value to be non-negative!\");if(!(this.options.width>0)||!(this.options.height>0))throw new Error(\"Expected \\'width\\' or \\'height\\' value to be higher than zero!\");function r(d){switch(d){case\"L\":return Y_.L;case\"M\":return Y_.M;case\"Q\":return Y_.Q;case\"H\":return Y_.H;default:throw new Error(\"Unknwon error correction level: \"+d)}}function o(d,p){for(var h=i(d),g=1,y=0,v=0,x=Ope.length;v<=x;v++){var R=Ope[v];if(!R)throw new Error(\"Content too long: expected \"+y+\" but got \"+h);switch(p){case\"L\":y=R[0];break;case\"M\":y=R[1];break;case\"Q\":y=R[2];break;case\"H\":y=R[3];break;default:throw new Error(\"Unknwon error correction level: \"+p)}if(h<=y)break;g++}if(g>Ope.length)throw new Error(\"Content too long\");return g}function i(d){var p=encodeURI(d).toString().replace(/\\\\%[0-9a-fA-F]{2}/g,\"a\");return p.length+(p.length!=d?3:0)}var a=this.options.content,c=o(a,this.options.ecl),u=r(this.options.ecl);this.qrcode=new xv(c,u),this.qrcode.addData(a),this.qrcode.make()}ZHe.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;typeof e>\"u\"&&(e={container:t.container||\"svg\"});for(var r=typeof t.pretty<\"u\"?!!t.pretty:!0,o=r?\"  \":\"\",i=r?`\\\\r\\n`:\"\",a=t.width,c=t.height,u=n.length,d=a/(u+2*t.padding),p=c/(u+2*t.padding),h=typeof t.join<\"u\"?!!t.join:!1,g=typeof t.swap<\"u\"?!!t.swap:!1,y=typeof t.xmlDeclaration<\"u\"?!!t.xmlDeclaration:!0,v=typeof t.predefined<\"u\"?!!t.predefined:!1,x=v?o+\\'<defs><path id=\"qrmodule\" d=\"M0 0 h\\'+p+\" v\"+d+\\' H0 z\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" /></defs>\\'+i:\"\",R=o+\\'<rect x=\"0\" y=\"0\" width=\"\\'+a+\\'\" height=\"\\'+c+\\'\" style=\"fill:\\'+t.background+\\';shape-rendering:crispEdges;\"/>\\'+i,S=\"\",M=\"\",P=0;P<u;P++)for(var z=0;z<u;z++){var V=n[z][P];if(V){var Q=z*d+t.padding*d,$=P*p+t.padding*p;if(g){var oe=Q;Q=$,$=oe}if(h){var J=d+Q,re=p+$;Q=Number.isInteger(Q)?Number(Q):Q.toFixed(2),$=Number.isInteger($)?Number($):$.toFixed(2),J=Number.isInteger(J)?Number(J):J.toFixed(2),re=Number.isInteger(re)?Number(re):re.toFixed(2),M+=\"M\"+Q+\",\"+$+\" V\"+re+\" H\"+J+\" V\"+$+\" H\"+Q+\" Z \"}else v?S+=o+\\'<use x=\"\\'+Q.toString()+\\'\" y=\"\\'+$.toString()+\\'\" href=\"#qrmodule\" />\\'+i:S+=o+\\'<rect x=\"\\'+Q.toString()+\\'\" y=\"\\'+$.toString()+\\'\" width=\"\\'+d+\\'\" height=\"\\'+p+\\'\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\"/>\\'+i}}h&&(S=o+\\'<path x=\"0\" y=\"0\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" d=\"\\'+M+\\'\" />\\');let q=\"\";if(this.options.image!==void 0&&this.options.image.svg){let U=a*this.options.image.width/100,T=c*this.options.image.height/100,k=a/2-U/2,F=c/2-T/2;q+=`<svg x=\"${k}\" y=\"${F}\" width=\"${U}\" height=\"${T}\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMinYMin meet\">`,q+=this.options.image.svg+i,q+=\"</svg>\"}var K=\"\";switch(e.container){case\"svg\":y&&(K+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+i),K+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"\\'+a+\\'\" height=\"\\'+c+\\'\">\\'+i,K+=x+R+S,K+=q,K+=\"</svg>\";break;case\"svg-viewbox\":y&&(K+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+i),K+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 \\'+a+\" \"+c+\\'\">\\'+i,K+=x+R+S,K+=q,K+=\"</svg>\";break;case\"g\":K+=\\'<g width=\"\\'+a+\\'\" height=\"\\'+c+\\'\">\\'+i,K+=x+R+S,K+=q,K+=\"</g>\";break;default:K+=(x+R+S+q).replace(/^\\\\s+/,\"\");break}return K};QHe.exports=ZHe});var $He=me(Pk=>{\"use strict\";f();var R5t=Pk&&Pk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pk,\"__esModule\",{value:!0});Pk.QRCode=void 0;var I5t=(kd(),qo(Wf)),XHe=(SB(),qo(_B)),O5t=R5t(JHe()),k5t=e=>{let[t,n]=(0,XHe.useState)(\"\");return(0,XHe.useEffect)(()=>{var r,o;let i=new O5t.default({content:e.content,background:e.bgColor||\"#ffffff\",color:e.fgColor||\"#000000\",container:\"svg\",ecl:\"M\",width:(r=e.width)!==null&&r!==void 0?r:256,height:(o=e.height)!==null&&o!==void 0?o:256,padding:0,image:e.image}),a=globalThis.Buffer.from(i.svg(),\"utf8\").toString(\"base64\");n(`data:image/svg+xml;base64,${a}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,I5t.h)(\"img\",{src:t,alt:\"QR Code\"}):null};Pk.QRCode=k5t});var eze=me(kpe=>{\"use strict\";f();Object.defineProperty(kpe,\"__esModule\",{value:!0});kpe.default=\".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}\"});var tze=me(Mk=>{\"use strict\";f();var N5t=Mk&&Mk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mk,\"__esModule\",{value:!0});Mk.Spinner=void 0;var cQ=(kd(),qo(Wf)),P5t=N5t(eze()),M5t=e=>{var t;let n=(t=e.size)!==null&&t!==void 0?t:64,r=e.color||\"#000\";return(0,cQ.h)(\"div\",{class:\"-cbwsdk-spinner\"},(0,cQ.h)(\"style\",null,P5t.default),(0,cQ.h)(\"svg\",{viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:n,height:n}},(0,cQ.h)(\"circle\",{style:{cx:50,cy:50,r:45,stroke:r}})))};Mk.Spinner=M5t});var nze=me(Npe=>{\"use strict\";f();Object.defineProperty(Npe,\"__esModule\",{value:!0});Npe.default=\".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}\"});var ize=me(Z_=>{\"use strict\";f();var rze=Z_&&Z_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Z_,\"__esModule\",{value:!0});Z_.CoinbaseWalletSteps=Z_.ConnectContent=void 0;var X6=rze((ax(),qo(J8))),Lo=(kd(),qo(Wf)),D5t=hv(),L5t=AZ(),B5t=VHe(),U5t=GHe(),F5t=qHe(),H5t=$He(),z5t=tze(),j5t=rze(nze()),Ppe={title:\"Coinbase Wallet app\",description:\"Connect with your self-custody wallet\",steps:oze},W5t=e=>e===\"light\"?\"#FFFFFF\":\"#0A0B0D\";function V5t(e){let{theme:t}=e,n=(0,D5t.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),r=Ppe.steps;return(0,Lo.h)(\"div\",{\"data-testid\":\"connect-content\",className:(0,X6.default)(\"-cbwsdk-connect-content\",t)},(0,Lo.h)(\"style\",null,j5t.default),(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-content-header\"},(0,Lo.h)(\"h2\",{className:(0,X6.default)(\"-cbwsdk-connect-content-heading\",t)},\"Scan to connect with our mobile app\"),e.onCancel&&(0,Lo.h)(\"button\",{type:\"button\",className:\"-cbwsdk-cancel-button\",onClick:e.onCancel},(0,Lo.h)(B5t.CloseIcon,{fill:t===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-content-layout\"},(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-content-column-left\"},(0,Lo.h)(G5t,{title:Ppe.title,description:Ppe.description,theme:t})),(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-content-column-right\"},(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-content-qr-wrapper\"},(0,Lo.h)(H5t.QRCode,{content:n,width:200,height:200,fgColor:\"#000\",bgColor:\"transparent\"}),(0,Lo.h)(\"input\",{type:\"hidden\",name:\"cbw-cbwsdk-version\",value:L5t.LIB_VERSION}),(0,Lo.h)(\"input\",{type:\"hidden\",value:n})),(0,Lo.h)(r,{theme:t}),!e.isConnected&&(0,Lo.h)(\"div\",{\"data-testid\":\"connecting-spinner\",className:(0,X6.default)(\"-cbwsdk-connect-content-qr-connecting\",t)},(0,Lo.h)(z5t.Spinner,{size:36,color:t===\"dark\"?\"#FFF\":\"#000\"}),(0,Lo.h)(\"p\",null,\"Connecting...\")))))}Z_.ConnectContent=V5t;function G5t({title:e,description:t,theme:n}){return(0,Lo.h)(\"div\",{className:(0,X6.default)(\"-cbwsdk-connect-item\",n)},(0,Lo.h)(\"div\",null,(0,Lo.h)(U5t.CoinbaseWalletRound,null)),(0,Lo.h)(\"div\",{className:\"-cbwsdk-connect-item-copy-wrapper\"},(0,Lo.h)(\"h3\",{className:\"-cbwsdk-connect-item-title\"},e),(0,Lo.h)(\"p\",{className:\"-cbwsdk-connect-item-description\"},t)))}function oze({theme:e}){return(0,Lo.h)(\"ol\",{className:\"-cbwsdk-wallet-steps\"},(0,Lo.h)(\"li\",{className:(0,X6.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,Lo.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},\"Open Coinbase Wallet app\")),(0,Lo.h)(\"li\",{className:(0,X6.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,Lo.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},(0,Lo.h)(\"span\",null,\"Tap \",(0,Lo.h)(\"strong\",null,\"Scan\"),\" \"),(0,Lo.h)(\"span\",{className:(0,X6.default)(\"-cbwsdk-wallet-steps-pad-left\",\"-cbwsdk-wallet-steps-icon\",e)},(0,Lo.h)(F5t.QRCodeIcon,{fill:W5t(e)})))))}Z_.CoinbaseWalletSteps=oze});var sze=me(uQ=>{\"use strict\";f();Object.defineProperty(uQ,\"__esModule\",{value:!0});uQ.ArrowLeftIcon=void 0;var aze=(kd(),qo(Wf));function q5t(e){return(0,aze.h)(\"svg\",Object.assign({width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,aze.h)(\"path\",{d:\"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z\"}))}uQ.ArrowLeftIcon=q5t});var cze=me(lQ=>{\"use strict\";f();Object.defineProperty(lQ,\"__esModule\",{value:!0});lQ.LaptopIcon=void 0;var Mpe=(kd(),qo(Wf));function K5t(e){return(0,Mpe.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,Mpe.h)(\"path\",{d:\"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z\"}),(0,Mpe.h)(\"path\",{d:\"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z\"}))}lQ.LaptopIcon=K5t});var lze=me(dQ=>{\"use strict\";f();Object.defineProperty(dQ,\"__esModule\",{value:!0});dQ.SafeIcon=void 0;var uze=(kd(),qo(Wf));function Y5t(e){return(0,uze.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,uze.h)(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z\"}))}dQ.SafeIcon=Y5t});var dze=me(Dpe=>{\"use strict\";f();Object.defineProperty(Dpe,\"__esModule\",{value:!0});Dpe.default=\".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}\"});var pze=me(Dk=>{\"use strict\";f();var fze=Dk&&Dk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dk,\"__esModule\",{value:!0});Dk.TryExtensionContent=void 0;var $6=fze((ax(),qo(J8))),Wc=(kd(),qo(Wf)),Lpe=(SB(),qo(_B)),Z5t=sze(),Q5t=cze(),J5t=lze(),X5t=fze(dze());function $5t({theme:e}){let[t,n]=(0,Lpe.useState)(!1),r=(0,Lpe.useCallback)(()=>{window.open(\"https://api.wallet.coinbase.com/rpc/v2/desktop/chrome\",\"_blank\")},[]),o=(0,Lpe.useCallback)(()=>{t?window.location.reload():(r(),n(!0))},[r,t]);return(0,Wc.h)(\"div\",{class:(0,$6.default)(\"-cbwsdk-try-extension\",e)},(0,Wc.h)(\"style\",null,X5t.default),(0,Wc.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,Wc.h)(\"h3\",{class:(0,$6.default)(\"-cbwsdk-try-extension-heading\",e)},\"Or try the Coinbase Wallet browser extension\"),(0,Wc.h)(\"div\",{class:\"-cbwsdk-try-extension-cta-wrapper\"},(0,Wc.h)(\"button\",{class:(0,$6.default)(\"-cbwsdk-try-extension-cta\",e),onClick:o},t?\"Refresh\":\"Install\"),(0,Wc.h)(\"div\",null,!t&&(0,Wc.h)(Z5t.ArrowLeftIcon,{class:\"-cbwsdk-try-extension-cta-icon\",fill:e===\"light\"?\"#0052FF\":\"#588AF5\"})))),(0,Wc.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,Wc.h)(\"ul\",{class:\"-cbwsdk-try-extension-list\"},(0,Wc.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,Wc.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,Wc.h)(\"span\",{class:(0,$6.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,Wc.h)(Q5t.LaptopIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,Wc.h)(\"div\",{class:(0,$6.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Connect with dapps with just one click on your desktop browser\")),(0,Wc.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,Wc.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,Wc.h)(\"span\",{class:(0,$6.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,Wc.h)(J5t.SafeIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,Wc.h)(\"div\",{class:(0,$6.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Add an additional layer of security by using a supported Ledger hardware wallet\")))))}Dk.TryExtensionContent=$5t});var hze=me(Bpe=>{\"use strict\";f();Object.defineProperty(Bpe,\"__esModule\",{value:!0});Bpe.default=\".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}\"});var gze=me(Lk=>{\"use strict\";f();var mze=Lk&&Lk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lk,\"__esModule\",{value:!0});Lk.ConnectDialog=void 0;var Upe=mze((ax(),qo(J8))),eC=(kd(),qo(Wf)),Fpe=(SB(),qo(_B)),e3t=ize(),t3t=pze(),n3t=mze(hze()),r3t=e=>{let{isOpen:t,darkMode:n}=e,[r,o]=(0,Fpe.useState)(!t),[i,a]=(0,Fpe.useState)(!t);(0,Fpe.useEffect)(()=>{let u=[window.setTimeout(()=>{a(!t)},10)];return t?o(!1):u.push(window.setTimeout(()=>{o(!0)},360)),()=>{u.forEach(window.clearTimeout)}},[t]);let c=n?\"dark\":\"light\";return(0,eC.h)(\"div\",{class:(0,Upe.default)(\"-cbwsdk-connect-dialog-container\",r&&\"-cbwsdk-connect-dialog-container-hidden\")},(0,eC.h)(\"style\",null,n3t.default),(0,eC.h)(\"div\",{class:(0,Upe.default)(\"-cbwsdk-connect-dialog-backdrop\",c,i&&\"-cbwsdk-connect-dialog-backdrop-hidden\")}),(0,eC.h)(\"div\",{class:\"-cbwsdk-connect-dialog\"},(0,eC.h)(\"div\",{class:(0,Upe.default)(\"-cbwsdk-connect-dialog-box\",i&&\"-cbwsdk-connect-dialog-box-hidden\")},e.connectDisabled?null:(0,eC.h)(e3t.ConnectContent,{theme:c,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,eC.h)(t3t.TryExtensionContent,{theme:c}))))};Lk.ConnectDialog=r3t});var yze=me(fQ=>{\"use strict\";f();Object.defineProperty(fQ,\"__esModule\",{value:!0});fQ.LinkFlow=void 0;var Hpe=(kd(),qo(Wf)),o3t=gze(),zpe=class{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-link-flow-root\",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,Hpe.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,Hpe.render)((0,Hpe.h)(o3t.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};fQ.LinkFlow=zpe});var bze=me(jpe=>{\"use strict\";f();Object.defineProperty(jpe,\"__esModule\",{value:!0});jpe.default=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var Gpe=me(cg=>{\"use strict\";f();var vze=cg&&cg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cg,\"__esModule\",{value:!0});cg.SnackbarInstance=cg.SnackbarContainer=cg.Snackbar=void 0;var pQ=vze((ax(),qo(J8))),Vc=(kd(),qo(Wf)),Wpe=(SB(),qo(_B)),i3t=vze(bze()),a3t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",s3t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",Vpe=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;return this.items.set(n,t),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,Vc.render)((0,Vc.h)(\"div\",null,(0,Vc.h)(cg.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,n])=>(0,Vc.h)(cg.SnackbarInstance,Object.assign({},n,{key:t}))))),this.root)}};cg.Snackbar=Vpe;var c3t=e=>(0,Vc.h)(\"div\",{class:(0,pQ.default)(\"-cbwsdk-snackbar-container\")},(0,Vc.h)(\"style\",null,i3t.default),(0,Vc.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children));cg.SnackbarContainer=c3t;var u3t=({autoExpand:e,message:t,menuItems:n})=>{let[r,o]=(0,Wpe.useState)(!0),[i,a]=(0,Wpe.useState)(e??!1);(0,Wpe.useEffect)(()=>{let u=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{a(!i)};return(0,Vc.h)(\"div\",{class:(0,pQ.default)(\"-cbwsdk-snackbar-instance\",r&&\"-cbwsdk-snackbar-instance-hidden\",i&&\"-cbwsdk-snackbar-instance-expanded\")},(0,Vc.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:c},(0,Vc.h)(\"img\",{src:a3t,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",(0,Vc.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),(0,Vc.h)(\"div\",{class:\"-gear-container\"},!i&&(0,Vc.h)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,Vc.h)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),(0,Vc.h)(\"img\",{src:s3t,class:\"-gear-icon\",title:\"Expand\"}))),n&&n.length>0&&(0,Vc.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},n.map((u,d)=>(0,Vc.h)(\"div\",{class:(0,pQ.default)(\"-cbwsdk-snackbar-instance-menu-item\",u.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:u.onClick,key:d},(0,Vc.h)(\"svg\",{width:u.svgWidth,height:u.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,Vc.h)(\"path\",{\"fill-rule\":u.defaultFillRule,\"clip-rule\":u.defaultClipRule,d:u.path,fill:\"#AAAAAA\"})),(0,Vc.h)(\"span\",{class:(0,pQ.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",u.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},u.info)))))};cg.SnackbarInstance=u3t});var Kpe=me(hQ=>{\"use strict\";f();Object.defineProperty(hQ,\"__esModule\",{value:!0});hQ.WalletLinkRelayUI=void 0;var l3t=ype(),d3t=yze(),f3t=Gpe(),qpe=class{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new f3t.Snackbar({darkMode:t.darkMode}),this.linkFlow=new d3t.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,n=document.createElement(\"div\");n.className=\"-cbwsdk-css-reset\",t.appendChild(n),this.linkFlow.attach(n),this.snackbar.attach(n),this.attached=!0,(0,l3t.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let n;return t.isUnlinkedErrorState?n={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:n={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(n)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}};hQ.WalletLinkRelayUI=qpe});var Ype=me(gQ=>{\"use strict\";f();Object.defineProperty(gQ,\"__esModule\",{value:!0});gQ.WalletLinkRelay=void 0;var Bk=iB(),p3t=sB(),gs=hv(),tC=RZ(),wze=IZ(),Q_=ZZ(),h3t=cHe(),nC=xZ(),m3t=Kpe(),mQ=class e extends wze.RelayAbstract{constructor(t){var n;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.chainCallback=null,this.dappDefaultChain=1,this.appName=\"\",this.appLogoUrl=null,this.linkedUpdated=a=>{var c;this.isLinked=a;let u=this.storage.getItem(wze.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,u){let d=u.split(\" \"),p=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";if(d[0]!==\"\"&&!a&&this.session.linked&&!p){this.isUnlinkedErrorState=!0;let h=this.getSessionIdHash();(c=this.diagnostic)===null||c===void 0||c.log(tC.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:h})}}},this.metadataUpdated=(a,c)=>{this.storage.setItem(a,c)},this.chainUpdated=(a,c)=>{this.chainCallbackParams.chainId===a&&this.chainCallbackParams.jsonRpcUrl===c||(this.chainCallbackParams={chainId:a,jsonRpcUrl:c},this.chainCallback&&this.chainCallback(a,c))},this.accountUpdated=a=>{this.accountsCallback&&this.accountsCallback([a]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(c=>{let u={type:\"WEB3_RESPONSE\",id:c,response:{method:\"requestEthereumAccounts\",result:[a]}};this.invokeCallback(Object.assign(Object.assign({},u),{id:c}))}),e.accountRequestCallbackIds.clear())},this.connectedUpdated=a=>{this.ui.setConnected(a)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;let{session:r,ui:o,connection:i}=this.subscribe();this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(n=t.reloadOnDisconnect)!==null&&n!==void 0?n:!0,this.ui=o}subscribe(){let t=Q_.Session.load(this.storage)||new Q_.Session(this.storage).save(),{linkAPIUrl:n,diagnostic:r}=this,o=new h3t.WalletLinkConnection({session:t,linkAPIUrl:n,diagnostic:r,listener:this}),{version:i,darkMode:a}=this.options,c=this.options.uiConstructor({linkAPIUrl:n,version:i,darkMode:a,session:t});return o.connect(),{session:t,ui:c,connection:o}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\"__destroyed\",\"1\"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,n;let r=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(tC.EVENTS.SESSION_STATE_CHANGE,{method:\"relay::resetAndReload\",sessionMetadataChange:\"__destroyed, 1\",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let o=Q_.Session.load(this.storage);if(o?.id===this._session.id?this.storage.clear():o&&((n=this.diagnostic)===null||n===void 0||n.log(tC.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Q_.Session.hash(o.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:i,ui:a,connection:c}=this.subscribe();this._session=i,this.connection=c,this.ui=a,r&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var n;(n=this.diagnostic)===null||n===void 0||n.log(tC.EVENTS.FAILURE,{method:\"relay::resetAndReload\",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,n){this.appName=t,this.appLogoUrl=n}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,n){this.storage.setItem(t,n)}signEthereumMessage(t,n,r,o){return this.sendRequest({method:\"signEthereumMessage\",params:{message:(0,gs.hexStringFromBuffer)(t,!0),address:n,addPrefix:r,typedDataJson:o||null}})}ethereumAddressFromSignedMessage(t,n,r){return this.sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:(0,gs.hexStringFromBuffer)(t,!0),signature:(0,gs.hexStringFromBuffer)(n,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,gs.bigIntStringFromBN)(t.weiValue),data:(0,gs.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,gs.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,gs.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,gs.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,gs.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,gs.bigIntStringFromBN)(t.weiValue),data:(0,gs.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,gs.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,gs.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,gs.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,gs.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,n){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:(0,gs.hexStringFromBuffer)(t,!0),chainId:n}})}scanQRCode(t){return this.sendRequest({method:\"scanQRCode\",params:{regExp:t}})}getQRCodeUrl(){return(0,gs.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,n){return this.sendRequest({method:\"generic\",params:{action:n,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let n=null,r=(0,gs.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,a),n?.()};return{promise:new Promise((a,c)=>{this.ui.isStandalone()||(n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,u=>{if(n?.(),(0,nC.isErrorResponse)(u))return c(new Error(u.errorMessage));a(u)}),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)}),cancel:o}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof m3t.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,n){var r;let o={type:\"WEB3_REQUEST\",id:t,request:n},i=Q_.Session.load(this.storage);(r=this.diagnostic)===null||r===void 0||r.log(tC.EVENTS.WEB3_REQUEST,{eventId:o.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?Q_.Session.hash(i.id):\"\",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.publishEvent(\"Web3Request\",o,!0).then(a=>{var c;(c=this.diagnostic)===null||c===void 0||c.log(tC.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:o.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?Q_.Session.hash(i.id):\"\",isSessionMismatched:(i?.id!==this._session.id).toString()})}).catch(a=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o.id,response:{method:n.method,errorMessage:a.message}})})}publishWeb3RequestCanceledEvent(t){let n={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",n,!1).then()}publishEvent(t,n,r){return this.connection.publishEvent(t,n,r)}handleWeb3ResponseMessage(t){var n;let{response:r}=t;if((n=this.diagnostic)===null||n===void 0||n.log(tC.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),r.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(o=>this.invokeCallback(Object.assign(Object.assign({},t),{id:o}))),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,n,r,o){var i;let a=(i=r?.message)!==null&&i!==void 0?i:(0,Bk.getMessageFromCode)(o);this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:{method:n,errorMessage:a,errorCode:o}})}invokeCallback(t){let n=this.relayEventManager.callbacks.get(t.id);n&&(n(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){let t={method:\"requestEthereumAccounts\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},n=null,r=(0,gs.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,a),n?.()};return{promise:new Promise((a,c)=>{if(this.relayEventManager.callbacks.set(r,u=>{if(this.ui.hideRequestEthereumAccounts(),n?.(),(0,nC.isErrorResponse)(u))return c(new Error(u.errorMessage));a(u)}),this.ui.inlineAccountsResponse()){let u=d=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"requestEthereumAccounts\",result:d}})};this.ui.requestEthereumAccounts({onCancel:o,onAccounts:u})}else{let u=Bk.standardErrors.provider.userRejectedRequest(\"User denied account authorization\");this.ui.requestEthereumAccounts({onCancel:()=>o(u)})}e.accountRequestCallbackIds.add(r),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(r,t)}),cancel:o}}selectProvider(t){let n={method:\"selectProvider\",params:{providerOptions:t}},r=(0,gs.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,a)},i=new Promise((a,c)=>{this.relayEventManager.callbacks.set(r,p=>{if((0,nC.isErrorResponse)(p))return c(new Error(p.errorMessage));a(p)});let u=p=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"selectProvider\",result:p3t.ProviderType.Unselected}})},d=p=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"selectProvider\",result:p}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:d,onCancel:u,providerOptions:t})});return{cancel:o,promise:i}}watchAsset(t,n,r,o,i,a){let c={method:\"watchAsset\",params:{type:t,options:{address:n,symbol:r,decimals:o,image:i},chainId:a}},u=null,d=(0,gs.randomBytesHex)(8),p=g=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,g),u?.()};this.ui.inlineWatchAsset()||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload}));let h=new Promise((g,y)=>{this.relayEventManager.callbacks.set(d,R=>{if(u?.(),(0,nC.isErrorResponse)(R))return y(new Error(R.errorMessage));g(R)});let v=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"watchAsset\",result:!1}})},x=()=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"watchAsset\",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:x,onCancel:v,type:t,address:n,symbol:r,decimals:o,image:i,chainId:a}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)});return{cancel:p,promise:h}}addEthereumChain(t,n,r,o,i,a){let c={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:n,blockExplorerUrls:o,chainName:i,iconUrls:r,nativeCurrency:a}},u=null,d=(0,gs.randomBytesHex)(8),p=g=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,g),u?.()};return this.ui.inlineAddEthereumChain(t)||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload})),{promise:new Promise((g,y)=>{this.relayEventManager.callbacks.set(d,R=>{if(u?.(),(0,nC.isErrorResponse)(R))return y(new Error(R.errorMessage));g(R)});let v=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"addEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},x=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"addEthereumChain\",result:{isApproved:!0,rpcUrl:R}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:v,onApprove:x,chainId:c.params.chainId,rpcUrls:c.params.rpcUrls,blockExplorerUrls:c.params.blockExplorerUrls,chainName:c.params.chainName,iconUrls:c.params.iconUrls,nativeCurrency:c.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)}),cancel:p}}switchEthereumChain(t,n){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:n})},o=(0,gs.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(o),this.handleErrorResponse(o,r.method,c)};return{promise:new Promise((c,u)=>{this.relayEventManager.callbacks.set(o,h=>{if((0,nC.isErrorResponse)(h)&&h.errorCode)return u(Bk.standardErrors.provider.custom({code:h.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if((0,nC.isErrorResponse)(h))return u(new Error(h.errorMessage));c(h)});let d=h=>{var g;if(h){let y=(g=(0,Bk.getErrorCode)(h))!==null&&g!==void 0?g:Bk.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(o,\"switchEthereumChain\",h instanceof Error?h:Bk.standardErrors.provider.unsupportedChain(t),y)}else this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},p=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!0,rpcUrl:h}}})};this.ui.switchEthereumChain({onCancel:d,onApprove:p,chainId:r.params.chainId,address:r.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(o,r)}),cancel:i}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return Q_.Session.hash(this._session.id)}sendRequestStandalone(t,n){let r=i=>{this.handleErrorResponse(t,n.method,i)},o=i=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:i})};switch(n.method){case\"signEthereumMessage\":this.ui.signEthereumMessage({request:n,onSuccess:o,onCancel:r});break;case\"signEthereumTransaction\":this.ui.signEthereumTransaction({request:n,onSuccess:o,onCancel:r});break;case\"submitEthereumTransaction\":this.ui.submitEthereumTransaction({request:n,onSuccess:o,onCancel:r});break;case\"ethereumAddressFromSignedMessage\":this.ui.ethereumAddressFromSignedMessage({request:n,onSuccess:o});break;default:r();break}}};gQ.WalletLinkRelay=mQ;mQ.accountRequestCallbackIds=new Set});var xze=me(rC=>{\"use strict\";f();var g3t=rC&&rC.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),y3t=rC&&rC.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&g3t(t,e,n)};Object.defineProperty(rC,\"__esModule\",{value:!0});y3t(Gpe(),rC)});var Eze=me(Zpe=>{\"use strict\";f();Object.defineProperty(Zpe,\"__esModule\",{value:!0});Zpe.default=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var _ze=me(Uk=>{\"use strict\";f();var Aze=Uk&&Uk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uk,\"__esModule\",{value:!0});Uk.RedirectDialog=void 0;var b3t=Aze((ax(),qo(J8))),Ev=(kd(),qo(Wf)),v3t=ype(),w3t=xze(),x3t=Aze(Eze()),Qpe=class{constructor(){this.root=null}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),(0,v3t.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,Ev.render)(null,this.root),t&&(0,Ev.render)((0,Ev.h)(E3t,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}};Uk.RedirectDialog=Qpe;var E3t=({title:e,buttonText:t,darkMode:n,onButtonClick:r,onDismiss:o})=>{let i=n?\"dark\":\"light\";return(0,Ev.h)(w3t.SnackbarContainer,{darkMode:n},(0,Ev.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,Ev.h)(\"style\",null,x3t.default),(0,Ev.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,Ev.h)(\"div\",{class:(0,b3t.default)(\"-cbwsdk-redirect-dialog-box\",i)},(0,Ev.h)(\"p\",null,e),(0,Ev.h)(\"button\",{onClick:r},t))))}});var Xpe=me(yQ=>{\"use strict\";f();Object.defineProperty(yQ,\"__esModule\",{value:!0});yQ.MobileRelayUI=void 0;var A3t=_ze(),Jpe=class{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new A3t.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){let n=new URL(\"https://go.cb-w.com/walletlink\");n.searchParams.append(\"redirect_url\",window.location.href),t&&n.searchParams.append(\"wl_url\",t);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=n.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};yQ.MobileRelayUI=Jpe});var ehe=me(bQ=>{\"use strict\";f();Object.defineProperty(bQ,\"__esModule\",{value:!0});bQ.MobileRelay=void 0;var _3t=hv(),S3t=Ype(),T3t=Xpe(),$pe=class extends S3t.WalletLinkRelay{constructor(t){var n;super(t),this._enableMobileWalletLink=(n=t.enableMobileWalletLink)!==null&&n!==void 0?n:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let t=(0,_3t.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,n){if(super.publishWeb3RequestEvent(t,n),!(this._enableMobileWalletLink&&this.ui instanceof T3t.MobileRelayUI))return;let r=!1;switch(n.method){case\"requestEthereumAccounts\":case\"connectAndSignIn\":r=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case\"switchEthereumChain\":return;default:r=!0,this.ui.openCoinbaseWalletDeeplink();break}r&&window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error(\"connectAndSignIn is supported only when enableMobileWalletLink is on\");return this.sendRequest({method:\"connectAndSignIn\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:\"1\",type:\"eip4361\",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}};bQ.MobileRelay=$pe});var CB=me((tir,the)=>{\"use strict\";f();var Fk=typeof Reflect==\"object\"?Reflect:null,Sze=Fk&&typeof Fk.apply==\"function\"?Fk.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},vQ;Fk&&typeof Fk.ownKeys==\"function\"?vQ=Fk.ownKeys:Object.getOwnPropertySymbols?vQ=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vQ=function(t){return Object.getOwnPropertyNames(t)};function C3t(e){console&&console.warn&&console.warn(e)}var Cze=Number.isNaN||function(t){return t!==t};function Wi(){Wi.init.call(this)}the.exports=Wi;the.exports.once=k3t;Wi.EventEmitter=Wi;Wi.prototype._events=void 0;Wi.prototype._eventsCount=0;Wi.prototype._maxListeners=void 0;var Tze=10;function wQ(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"listener\" argument must be of type Function. Received type \\'+typeof e)}Object.defineProperty(Wi,\"defaultMaxListeners\",{enumerable:!0,get:function(){return Tze},set:function(e){if(typeof e!=\"number\"||e<0||Cze(e))throw new RangeError(\\'The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received \\'+e+\".\");Tze=e}});Wi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Wi.prototype.setMaxListeners=function(t){if(typeof t!=\"number\"||t<0||Cze(t))throw new RangeError(\\'The value of \"n\" is out of range. It must be a non-negative number. Received \\'+t+\".\");return this._maxListeners=t,this};function Rze(e){return e._maxListeners===void 0?Wi.defaultMaxListeners:e._maxListeners}Wi.prototype.getMaxListeners=function(){return Rze(this)};Wi.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t===\"error\",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var c=new Error(\"Unhandled error.\"+(a?\" (\"+a.message+\")\":\"\"));throw c.context=a,c}var u=i[t];if(u===void 0)return!1;if(typeof u==\"function\")Sze(u,this,n);else for(var d=u.length,p=Pze(u,d),r=0;r<d;++r)Sze(p[r],this,n);return!0};function Ize(e,t,n,r){var o,i,a;if(wQ(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit(\"newListener\",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a==\"function\"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=Rze(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");c.name=\"MaxListenersExceededWarning\",c.emitter=e,c.type=t,c.count=a.length,C3t(c)}return e}Wi.prototype.addListener=function(t,n){return Ize(this,t,n,!1)};Wi.prototype.on=Wi.prototype.addListener;Wi.prototype.prependListener=function(t,n){return Ize(this,t,n,!0)};function R3t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Oze(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=R3t.bind(r);return o.listener=n,r.wrapFn=o,o}Wi.prototype.once=function(t,n){return wQ(n),this.on(t,Oze(this,t,n)),this};Wi.prototype.prependOnceListener=function(t,n){return wQ(n),this.prependListener(t,Oze(this,t,n)),this};Wi.prototype.removeListener=function(t,n){var r,o,i,a,c;if(wQ(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit(\"removeListener\",t,r.listener||n));else if(typeof r!=\"function\"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){c=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():I3t(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit(\"removeListener\",t,c||n)}return this};Wi.prototype.off=Wi.prototype.removeListener;Wi.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!==\"removeListener\"&&this.removeAllListeners(a);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n==\"function\")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function kze(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o==\"function\"?n?[o.listener||o]:[o]:n?O3t(o):Pze(o,o.length)}Wi.prototype.listeners=function(t){return kze(this,t,!0)};Wi.prototype.rawListeners=function(t){return kze(this,t,!1)};Wi.listenerCount=function(e,t){return typeof e.listenerCount==\"function\"?e.listenerCount(t):Nze.call(e,t)};Wi.prototype.listenerCount=Nze;function Nze(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==\"function\")return 1;if(n!==void 0)return n.length}return 0}Wi.prototype.eventNames=function(){return this._eventsCount>0?vQ(this._events):[]};function Pze(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function I3t(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function O3t(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function k3t(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener==\"function\"&&e.removeListener(\"error\",o),n([].slice.call(arguments))}Mze(e,t,i,{once:!0}),t!==\"error\"&&N3t(e,o,{once:!0})})}function N3t(e,t,n){typeof e.on==\"function\"&&Mze(e,\"error\",t,n)}function Mze(e,t,n,r){if(typeof e.on==\"function\")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==\"function\")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError(\\'The \"emitter\" argument must be of type EventEmitter. Received type \\'+typeof e)}});var nhe=me((rir,Dze)=>{f();Dze.exports=CB().EventEmitter});var rhe=me(()=>{f()});var zze=me((cir,Hze)=>{\"use strict\";f();function Lze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lze(Object(n),!0).forEach(function(r){P3t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lze(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P3t(e,t,n){return t=Fze(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M3t(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function Uze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,Fze(r.key),r)}}function D3t(e,t,n){return t&&Uze(e.prototype,t),n&&Uze(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function Fze(e){var t=L3t(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function L3t(e,t){if(typeof e!=\"object\"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||\"default\");if(typeof r!=\"object\")return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var B3t=v2(),xQ=B3t.Buffer,U3t=rhe(),ohe=U3t.inspect,F3t=ohe&&ohe.custom||\"inspect\";function H3t(e,t,n){xQ.prototype.copy.call(e,t,n)}Hze.exports=(function(){function e(){M3t(this,e),this.head=null,this.tail=null,this.length=0}return D3t(e,[{key:\"push\",value:function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:\"unshift\",value:function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(n){if(this.length===0)return\"\";for(var r=this.head,o=\"\"+r.data;r=r.next;)o+=n+r.data;return o}},{key:\"concat\",value:function(n){if(this.length===0)return xQ.alloc(0);for(var r=xQ.allocUnsafe(n>>>0),o=this.head,i=0;o;)H3t(o.data,r,i),i+=o.data.length,o=o.next;return r}},{key:\"consume\",value:function(n,r){var o;return n<this.head.data.length?(o=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?o=this.shift():o=r?this._getString(n):this._getBuffer(n),o}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(n){var r=this.head,o=1,i=r.data;for(n-=i.length;r=r.next;){var a=r.data,c=n>a.length?a.length:n;if(c===a.length?i+=a:i+=a.slice(0,n),n-=c,n===0){c===a.length?(++o,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(c));break}++o}return this.length-=o,i}},{key:\"_getBuffer\",value:function(n){var r=xQ.allocUnsafe(n),o=this.head,i=1;for(o.data.copy(r),n-=o.data.length;o=o.next;){var a=o.data,c=n>a.length?a.length:n;if(a.copy(r,r.length-n,0,c),n-=c,n===0){c===a.length?(++i,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=a.slice(c));break}++i}return this.length-=i,r}},{key:F3t,value:function(n,r){return ohe(this,Bze(Bze({},r),{},{depth:0,customInspect:!1}))}}]),e})()});var ahe=me((lir,Wze)=>{\"use strict\";f();function z3t(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ihe,this,e)):process.nextTick(ihe,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?process.nextTick(EQ,n):(n._writableState.errorEmitted=!0,process.nextTick(jze,n,i)):process.nextTick(jze,n,i):t?(process.nextTick(EQ,n),t(i)):process.nextTick(EQ,n)}),this)}function jze(e,t){ihe(e,t),EQ(e)}function EQ(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function j3t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ihe(e,t){e.emit(\"error\",t)}function W3t(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(\"error\",t)}Wze.exports={destroy:z3t,undestroy:j3t,errorOrDestroy:W3t}});var oC=me((fir,qze)=>{\"use strict\";f();function V3t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Gze={};function ug(e,t,n){n||(n=Error);function r(i,a,c){return typeof t==\"string\"?t:t(i,a,c)}var o=(function(i){V3t(a,i);function a(c,u,d){return i.call(this,r(c,u,d))||this}return a})(n);o.prototype.name=n.name,o.prototype.code=e,Gze[e]=o}function Vze(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?\"one of \".concat(t,\" \").concat(e.slice(0,n-1).join(\", \"),\", or \")+e[n-1]:n===2?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}else return\"of \".concat(t,\" \").concat(String(e))}function G3t(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function q3t(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function K3t(e,t,n){return typeof n!=\"number\"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}ug(\"ERR_INVALID_OPT_VALUE\",function(e,t){return\\'The value \"\\'+t+\\'\" is invalid for option \"\\'+e+\\'\"\\'},TypeError);ug(\"ERR_INVALID_ARG_TYPE\",function(e,t,n){var r;typeof t==\"string\"&&G3t(t,\"not \")?(r=\"must not be\",t=t.replace(/^not /,\"\")):r=\"must be\";var o;if(q3t(e,\" argument\"))o=\"The \".concat(e,\" \").concat(r,\" \").concat(Vze(t,\"type\"));else{var i=K3t(e,\".\")?\"property\":\"argument\";o=\\'The \"\\'.concat(e,\\'\" \\').concat(i,\" \").concat(r,\" \").concat(Vze(t,\"type\"))}return o+=\". Received type \".concat(typeof n),o},TypeError);ug(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\");ug(\"ERR_METHOD_NOT_IMPLEMENTED\",function(e){return\"The \"+e+\" method is not implemented\"});ug(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\");ug(\"ERR_STREAM_DESTROYED\",function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"});ug(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\");ug(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\");ug(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\");ug(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);ug(\"ERR_UNKNOWN_ENCODING\",function(e){return\"Unknown encoding: \"+e},TypeError);ug(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\");qze.exports.codes=Gze});var she=me((hir,Kze)=>{\"use strict\";f();var Y3t=oC().codes.ERR_INVALID_OPT_VALUE;function Z3t(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function Q3t(e,t,n,r){var o=Z3t(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:\"highWaterMark\";throw new Y3t(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}Kze.exports={getHighWaterMark:Q3t}});var Zze=me((gir,Yze)=>{f();Yze.exports=J3t;function J3t(e,t){if(che(\"noDeprecation\"))return e;var n=!1;function r(){if(!n){if(che(\"throwDeprecation\"))throw new Error(t);che(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function che(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()===\"true\"}});var dhe=me((bir,tje)=>{\"use strict\";f();tje.exports=Bs;function Jze(e){var t=this;this.next=null,this.entry=null,this.finish=function(){_Tt(t,e)}}var Hk;Bs.WritableState=IB;var X3t={deprecate:Zze()},Xze=nhe(),_Q=v2().Buffer,$3t=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function eTt(e){return _Q.from(e)}function tTt(e){return _Q.isBuffer(e)||e instanceof $3t}var lhe=ahe(),nTt=she(),rTt=nTt.getHighWaterMark,J_=oC().codes,oTt=J_.ERR_INVALID_ARG_TYPE,iTt=J_.ERR_METHOD_NOT_IMPLEMENTED,aTt=J_.ERR_MULTIPLE_CALLBACK,sTt=J_.ERR_STREAM_CANNOT_PIPE,cTt=J_.ERR_STREAM_DESTROYED,uTt=J_.ERR_STREAM_NULL_VALUES,lTt=J_.ERR_STREAM_WRITE_AFTER_END,dTt=J_.ERR_UNKNOWN_ENCODING,zk=lhe.errorOrDestroy;sg()(Bs,Xze);function fTt(){}function IB(e,t,n){Hk=Hk||iC(),e=e||{},typeof n!=\"boolean\"&&(n=t instanceof Hk),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=rTt(this,e,\"writableHighWaterMark\",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){vTt(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Jze(this)}IB.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(IB.prototype,\"buffer\",{get:X3t.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var AQ;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(AQ=Function.prototype[Symbol.hasInstance],Object.defineProperty(Bs,Symbol.hasInstance,{value:function(t){return AQ.call(this,t)?!0:this!==Bs?!1:t&&t._writableState instanceof IB}})):AQ=function(t){return t instanceof this};function Bs(e){Hk=Hk||iC();var t=this instanceof Hk;if(!t&&!AQ.call(Bs,this))return new Bs(e);this._writableState=new IB(e,this,t),this.writable=!0,e&&(typeof e.write==\"function\"&&(this._write=e.write),typeof e.writev==\"function\"&&(this._writev=e.writev),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.final==\"function\"&&(this._final=e.final)),Xze.call(this)}Bs.prototype.pipe=function(){zk(this,new sTt)};function pTt(e,t){var n=new lTt;zk(e,n),process.nextTick(t,n)}function hTt(e,t,n,r){var o;return n===null?o=new uTt:typeof n!=\"string\"&&!t.objectMode&&(o=new oTt(\"chunk\",[\"string\",\"Buffer\"],n)),o?(zk(e,o),process.nextTick(r,o),!1):!0}Bs.prototype.write=function(e,t,n){var r=this._writableState,o=!1,i=!r.objectMode&&tTt(e);return i&&!_Q.isBuffer(e)&&(e=eTt(e)),typeof t==\"function\"&&(n=t,t=null),i?t=\"buffer\":t||(t=r.defaultEncoding),typeof n!=\"function\"&&(n=fTt),r.ending?pTt(this,n):(i||hTt(this,r,e,n))&&(r.pendingcb++,o=gTt(this,r,i,e,t,n)),o};Bs.prototype.cork=function(){this._writableState.corked++};Bs.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&$ze(this,e))};Bs.prototype.setDefaultEncoding=function(t){if(typeof t==\"string\"&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new dTt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Bs.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function mTt(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==\"string\"&&(t=_Q.from(t,n)),t}Object.defineProperty(Bs.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gTt(e,t,n,r,o,i){if(!n){var a=mTt(t,r,o);r!==a&&(n=!0,o=\"buffer\",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else uhe(e,t,!1,c,r,o,i);return u}function uhe(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new cTt(\"write\")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function yTt(e,t,n,r,o){--t.pendingcb,n?(process.nextTick(o,r),process.nextTick(RB,e,t),e._writableState.errorEmitted=!0,zk(e,r)):(o(r),e._writableState.errorEmitted=!0,zk(e,r),RB(e,t))}function bTt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function vTt(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(typeof o!=\"function\")throw new aTt;if(bTt(n),t)yTt(e,n,r,t,o);else{var i=eje(n)||e.destroyed;!i&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&$ze(e,n),r?process.nextTick(Qze,e,n,i,o):Qze(e,n,i,o)}}function Qze(e,t,n,r){n||wTt(e,t),t.pendingcb--,r(),RB(e,t)}function wTt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function $ze(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0,c=!0;n;)o[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;o.allBuffers=c,uhe(e,t,!0,t.length,o,\"\",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new Jze(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,d=n.encoding,p=n.callback,h=t.objectMode?1:u.length;if(uhe(e,t,!1,h,u,d,p),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}Bs.prototype._write=function(e,t,n){n(new iTt(\"_write()\"))};Bs.prototype._writev=null;Bs.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==\"function\"?(n=e,e=null,t=null):typeof t==\"function\"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||ATt(this,r,n),this};Object.defineProperty(Bs.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function eje(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function xTt(e,t){e._final(function(n){t.pendingcb--,n&&zk(e,n),t.prefinished=!0,e.emit(\"prefinish\"),RB(e,t)})}function ETt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(xTt,e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}function RB(e,t){var n=eje(t);if(n&&(ETt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function ATt(e,t,n){t.ending=!0,RB(e,t),n&&(t.finished?process.nextTick(n):e.once(\"finish\",n)),t.ended=!0,e.writable=!1}function _Tt(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(Bs.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Bs.prototype.destroy=lhe.destroy;Bs.prototype._undestroy=lhe.undestroy;Bs.prototype._destroy=function(e,t){t(e)}});var iC=me((wir,rje)=>{\"use strict\";f();var STt=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};rje.exports=Av;var nje=hhe(),phe=dhe();sg()(Av,nje);for(fhe=STt(phe.prototype),SQ=0;SQ<fhe.length;SQ++)TQ=fhe[SQ],Av.prototype[TQ]||(Av.prototype[TQ]=phe.prototype[TQ]);var fhe,TQ,SQ;function Av(e){if(!(this instanceof Av))return new Av(e);nje.call(this,e),phe.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",TTt)))}Object.defineProperty(Av.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Av.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Av.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function TTt(){this._writableState.ended||process.nextTick(CTt,this)}function CTt(e){e.end()}Object.defineProperty(Av.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var yhe=me(ije=>{\"use strict\";f();var ghe=f1().Buffer,oje=ghe.isEncoding||function(e){switch(e=\"\"+e,e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function RTt(e){if(!e)return\"utf8\";for(var t;;)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}function ITt(e){var t=RTt(e);if(typeof t!=\"string\"&&(ghe.isEncoding===oje||!oje(e)))throw new Error(\"Unknown encoding: \"+e);return t||e}ije.StringDecoder=OB;function OB(e){this.encoding=ITt(e);var t;switch(this.encoding){case\"utf16le\":this.text=DTt,this.end=LTt,t=4;break;case\"utf8\":this.fillLast=NTt,t=4;break;case\"base64\":this.text=BTt,this.end=UTt,t=3;break;default:this.write=FTt,this.end=HTt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ghe.allocUnsafe(t)}OB.prototype.write=function(e){if(e.length===0)return\"\";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return\"\";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||\"\"};OB.prototype.end=MTt;OB.prototype.text=PTt;OB.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function mhe(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function OTt(e,t,n){var r=t.length-1;if(r<n)return 0;var o=mhe(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||o===-2?0:(o=mhe(t[r]),o>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||o===-2?0:(o=mhe(t[r]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function kTt(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,\"\\\\uFFFD\";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,\"\\\\uFFFD\";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,\"\\\\uFFFD\"}}function NTt(e){var t=this.lastTotal-this.lastNeed,n=kTt(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function PTt(e,t){var n=OTt(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(\"utf8\",t,r)}function MTt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"\\\\uFFFD\":t}function DTt(e,t){if((e.length-t)%2===0){var n=e.toString(\"utf16le\",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function LTt(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,n)}return t}function BTt(e,t){var n=(e.length-t)%3;return n===0?e.toString(\"base64\",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-n))}function UTt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function FTt(e){return e.toString(this.encoding)}function HTt(e){return e&&e.length?this.write(e):\"\"}});var CQ=me((_ir,cje)=>{\"use strict\";f();var aje=oC().codes.ERR_STREAM_PREMATURE_CLOSE;function zTt(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function jTt(){}function WTt(e){return e.setHeader&&typeof e.abort==\"function\"}function sje(e,t,n){if(typeof t==\"function\")return sje(e,null,t);t||(t={}),n=zTt(n||jTt);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||c()},a=e._writableState&&e._writableState.finished,c=function(){o=!1,a=!0,r||n.call(e)},u=e._readableState&&e._readableState.endEmitted,d=function(){r=!1,u=!0,o||n.call(e)},p=function(v){n.call(e,v)},h=function(){var v;if(r&&!u)return(!e._readableState||!e._readableState.ended)&&(v=new aje),n.call(e,v);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(v=new aje),n.call(e,v)},g=function(){e.req.on(\"finish\",c)};return WTt(e)?(e.on(\"complete\",c),e.on(\"abort\",h),e.req?g():e.on(\"request\",g)):o&&!e._writableState&&(e.on(\"end\",i),e.on(\"close\",i)),e.on(\"end\",d),e.on(\"finish\",c),t.error!==!1&&e.on(\"error\",p),e.on(\"close\",h),function(){e.removeListener(\"complete\",c),e.removeListener(\"abort\",h),e.removeListener(\"request\",g),e.req&&e.req.removeListener(\"finish\",c),e.removeListener(\"end\",i),e.removeListener(\"close\",i),e.removeListener(\"finish\",c),e.removeListener(\"end\",d),e.removeListener(\"error\",p),e.removeListener(\"close\",h)}}cje.exports=sje});var lje=me((Tir,uje)=>{\"use strict\";f();var RQ;function X_(e,t,n){return t=VTt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VTt(e){var t=GTt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function GTt(e,t){if(typeof e!=\"object\"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||\"default\");if(typeof r!=\"object\")return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var qTt=CQ(),$_=Symbol(\"lastResolve\"),aC=Symbol(\"lastReject\"),kB=Symbol(\"error\"),IQ=Symbol(\"ended\"),sC=Symbol(\"lastPromise\"),bhe=Symbol(\"handlePromise\"),cC=Symbol(\"stream\");function eS(e,t){return{value:e,done:t}}function KTt(e){var t=e[$_];if(t!==null){var n=e[cC].read();n!==null&&(e[sC]=null,e[$_]=null,e[aC]=null,t(eS(n,!1)))}}function YTt(e){process.nextTick(KTt,e)}function ZTt(e,t){return function(n,r){e.then(function(){if(t[IQ]){n(eS(void 0,!0));return}t[bhe](n,r)},r)}}var QTt=Object.getPrototypeOf(function(){}),JTt=Object.setPrototypeOf((RQ={get stream(){return this[cC]},next:function(){var t=this,n=this[kB];if(n!==null)return Promise.reject(n);if(this[IQ])return Promise.resolve(eS(void 0,!0));if(this[cC].destroyed)return new Promise(function(a,c){process.nextTick(function(){t[kB]?c(t[kB]):a(eS(void 0,!0))})});var r=this[sC],o;if(r)o=new Promise(ZTt(r,this));else{var i=this[cC].read();if(i!==null)return Promise.resolve(eS(i,!1));o=new Promise(this[bhe])}return this[sC]=o,o}},X_(RQ,Symbol.asyncIterator,function(){return this}),X_(RQ,\"return\",function(){var t=this;return new Promise(function(n,r){t[cC].destroy(null,function(o){if(o){r(o);return}n(eS(void 0,!0))})})}),RQ),QTt),XTt=function(t){var n,r=Object.create(JTt,(n={},X_(n,cC,{value:t,writable:!0}),X_(n,$_,{value:null,writable:!0}),X_(n,aC,{value:null,writable:!0}),X_(n,kB,{value:null,writable:!0}),X_(n,IQ,{value:t._readableState.endEmitted,writable:!0}),X_(n,bhe,{value:function(i,a){var c=r[cC].read();c?(r[sC]=null,r[$_]=null,r[aC]=null,i(eS(c,!1))):(r[$_]=i,r[aC]=a)},writable:!0}),n));return r[sC]=null,qTt(t,function(o){if(o&&o.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var i=r[aC];i!==null&&(r[sC]=null,r[$_]=null,r[aC]=null,i(o)),r[kB]=o;return}var a=r[$_];a!==null&&(r[sC]=null,r[$_]=null,r[aC]=null,a(eS(void 0,!0))),r[IQ]=!0}),t.on(\"readable\",YTt.bind(null,r)),r};uje.exports=XTt});var fje=me((Rir,dje)=>{f();dje.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}});var hhe=me((kir,Eje)=>{\"use strict\";f();Eje.exports=Bo;var jk;Bo.ReadableState=gje;var Oir=CB().EventEmitter,mje=function(t,n){return t.listeners(n).length},PB=nhe(),OQ=v2().Buffer,$Tt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function e6t(e){return OQ.from(e)}function t6t(e){return OQ.isBuffer(e)||e instanceof $Tt}var vhe=rhe(),ro;vhe&&vhe.debuglog?ro=vhe.debuglog(\"stream\"):ro=function(){};var n6t=zze(),The=ahe(),r6t=she(),o6t=r6t.getHighWaterMark,kQ=oC().codes,i6t=kQ.ERR_INVALID_ARG_TYPE,a6t=kQ.ERR_STREAM_PUSH_AFTER_EOF,s6t=kQ.ERR_METHOD_NOT_IMPLEMENTED,c6t=kQ.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wk,whe,xhe;sg()(Bo,PB);var NB=The.errorOrDestroy,Ehe=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function u6t(e,t,n){if(typeof e.prependListener==\"function\")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function gje(e,t,n){jk=jk||iC(),e=e||{},typeof n!=\"boolean\"&&(n=t instanceof jk),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=o6t(this,e,\"readableHighWaterMark\",n),this.buffer=new n6t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wk||(Wk=yhe().StringDecoder),this.decoder=new Wk(e.encoding),this.encoding=e.encoding)}function Bo(e){if(jk=jk||iC(),!(this instanceof Bo))return new Bo(e);var t=this instanceof jk;this._readableState=new gje(e,this,t),this.readable=!0,e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy)),PB.call(this)}Object.defineProperty(Bo.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bo.prototype.destroy=The.destroy;Bo.prototype._undestroy=The.undestroy;Bo.prototype._destroy=function(e,t){t(e)};Bo.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==\"string\"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=OQ.from(e,t),t=\"\"),r=!0),yje(this,e,t,!1,r)};Bo.prototype.unshift=function(e){return yje(this,e,null,!0,!1)};function yje(e,t,n,r,o){ro(\"readableAddChunk\",t);var i=e._readableState;if(t===null)i.reading=!1,f6t(e,i);else{var a;if(o||(a=l6t(i,t)),a)NB(e,a);else if(i.objectMode||t&&t.length>0)if(typeof t!=\"string\"&&!i.objectMode&&Object.getPrototypeOf(t)!==OQ.prototype&&(t=e6t(t)),r)i.endEmitted?NB(e,new c6t):Ahe(e,i,t,!0);else if(i.ended)NB(e,new a6t);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?Ahe(e,i,t,!1):She(e,i)):Ahe(e,i,t,!1)}else r||(i.reading=!1,She(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function Ahe(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&NQ(e)),She(e,t)}function l6t(e,t){var n;return!t6t(t)&&typeof t!=\"string\"&&t!==void 0&&!e.objectMode&&(n=new i6t(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),n}Bo.prototype.isPaused=function(){return this._readableState.flowing===!1};Bo.prototype.setEncoding=function(e){Wk||(Wk=yhe().StringDecoder);var t=new Wk(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=\"\";n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==\"\"&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var pje=1073741824;function d6t(e){return e>=pje?e=pje:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function hje(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d6t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bo.prototype.read=function(e){ro(\"read\",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ro(\"read: emitReadable\",t.length,t.ended),t.length===0&&t.ended?_he(this):NQ(this),null;if(e=hje(e,t),e===0&&t.ended)return t.length===0&&_he(this),null;var r=t.needReadable;ro(\"need readable\",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,ro(\"length less than watermark\",r)),t.ended||t.reading?(r=!1,ro(\"reading or ended\",r)):r&&(ro(\"do read\"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=hje(n,t)));var o;return e>0?o=wje(e,t):o=null,o===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&_he(this)),o!==null&&this.emit(\"data\",o),o};function f6t(e,t){if(ro(\"onEofChunk\"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?NQ(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,bje(e)))}}function NQ(e){var t=e._readableState;ro(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ro(\"emitReadable\",t.flowing),t.emittedReadable=!0,process.nextTick(bje,e))}function bje(e){var t=e._readableState;ro(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Che(e)}function She(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(p6t,e,t))}function p6t(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(ro(\"maybeReadMore read 0\"),e.read(0),n===t.length)break}t.readingMore=!1}Bo.prototype._read=function(e){NB(this,new s6t(\"_read()\"))};Bo.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,ro(\"pipe count=%d opts=%j\",r.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=o?c:x;r.endEmitted?process.nextTick(i):n.once(\"end\",i),e.on(\"unpipe\",a);function a(R,S){ro(\"onunpipe\"),R===n&&S&&S.hasUnpiped===!1&&(S.hasUnpiped=!0,p())}function c(){ro(\"onend\"),e.end()}var u=h6t(n);e.on(\"drain\",u);var d=!1;function p(){ro(\"cleanup\"),e.removeListener(\"close\",y),e.removeListener(\"finish\",v),e.removeListener(\"drain\",u),e.removeListener(\"error\",g),e.removeListener(\"unpipe\",a),n.removeListener(\"end\",c),n.removeListener(\"end\",x),n.removeListener(\"data\",h),d=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}n.on(\"data\",h);function h(R){ro(\"ondata\");var S=e.write(R);ro(\"dest.write\",S),S===!1&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&xje(r.pipes,e)!==-1)&&!d&&(ro(\"false write response, pause\",r.awaitDrain),r.awaitDrain++),n.pause())}function g(R){ro(\"onerror\",R),x(),e.removeListener(\"error\",g),mje(e,\"error\")===0&&NB(e,R)}u6t(e,\"error\",g);function y(){e.removeListener(\"finish\",v),x()}e.once(\"close\",y);function v(){ro(\"onfinish\"),e.removeListener(\"close\",y),x()}e.once(\"finish\",v);function x(){ro(\"unpipe\"),n.unpipe(e)}return e.emit(\"pipe\",n),r.flowing||(ro(\"pipe resume\"),n.resume()),e};function h6t(e){return function(){var n=e._readableState;ro(\"pipeOnDrain\",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&mje(e,\"data\")&&(n.flowing=!0,Che(e))}}Bo.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=xje(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,n),this)};Bo.prototype.on=function(e,t){var n=PB.prototype.on.call(this,e,t),r=this._readableState;return e===\"data\"?(r.readableListening=this.listenerCount(\"readable\")>0,r.flowing!==!1&&this.resume()):e===\"readable\"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,ro(\"on readable\",r.length,r.reading),r.length?NQ(this):r.reading||process.nextTick(m6t,this)),n};Bo.prototype.addListener=Bo.prototype.on;Bo.prototype.removeListener=function(e,t){var n=PB.prototype.removeListener.call(this,e,t);return e===\"readable\"&&process.nextTick(vje,this),n};Bo.prototype.removeAllListeners=function(e){var t=PB.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&process.nextTick(vje,this),t};function vje(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function m6t(e){ro(\"readable nexttick read 0\"),e.read(0)}Bo.prototype.resume=function(){var e=this._readableState;return e.flowing||(ro(\"resume\"),e.flowing=!e.readableListening,g6t(this,e)),e.paused=!1,this};function g6t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(y6t,e,t))}function y6t(e,t){ro(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),Che(e),t.flowing&&!t.reading&&e.read(0)}Bo.prototype.pause=function(){return ro(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(ro(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this};function Che(e){var t=e._readableState;for(ro(\"flow\",t.flowing);t.flowing&&e.read()!==null;);}Bo.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on(\"end\",function(){if(ro(\"wrapped end\"),n.decoder&&!n.ended){var a=n.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on(\"data\",function(a){if(ro(\"wrapped data\"),n.decoder&&(a=n.decoder.write(a)),!(n.objectMode&&a==null)&&!(!n.objectMode&&(!a||!a.length))){var c=t.push(a);c||(r=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]==\"function\"&&(this[o]=(function(c){return function(){return e[c].apply(e,arguments)}})(o));for(var i=0;i<Ehe.length;i++)e.on(Ehe[i],this.emit.bind(this,Ehe[i]));return this._read=function(a){ro(\"wrapped _read\",a),r&&(r=!1,e.resume())},this};typeof Symbol==\"function\"&&(Bo.prototype[Symbol.asyncIterator]=function(){return whe===void 0&&(whe=lje()),whe(this)});Object.defineProperty(Bo.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Bo.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Bo.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});Bo._fromList=wje;Object.defineProperty(Bo.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}});function wje(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(\"\"):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function _he(e){var t=e._readableState;ro(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(b6t,t,e))}function b6t(e,t){if(ro(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==\"function\"&&(Bo.from=function(e,t){return xhe===void 0&&(xhe=fje()),xhe(Bo,e,t)});function xje(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}});var Rhe=me((Pir,_je)=>{\"use strict\";f();_je.exports=_x;var PQ=oC().codes,v6t=PQ.ERR_METHOD_NOT_IMPLEMENTED,w6t=PQ.ERR_MULTIPLE_CALLBACK,x6t=PQ.ERR_TRANSFORM_ALREADY_TRANSFORMING,E6t=PQ.ERR_TRANSFORM_WITH_LENGTH_0,MQ=iC();sg()(_x,MQ);function A6t(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(\"error\",new w6t);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function _x(e){if(!(this instanceof _x))return new _x(e);MQ.call(this,e),this._transformState={afterTransform:A6t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",_6t)}function _6t(){var e=this;typeof this._flush==\"function\"&&!this._readableState.destroyed?this._flush(function(t,n){Aje(e,t,n)}):Aje(this,null,null)}_x.prototype.push=function(e,t){return this._transformState.needTransform=!1,MQ.prototype.push.call(this,e,t)};_x.prototype._transform=function(e,t,n){n(new v6t(\"_transform()\"))};_x.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};_x.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};_x.prototype._destroy=function(e,t){MQ.prototype._destroy.call(this,e,function(n){t(n)})};function Aje(e,t,n){if(t)return e.emit(\"error\",t);if(n!=null&&e.push(n),e._writableState.length)throw new E6t;if(e._transformState.transforming)throw new x6t;return e.push(null)}});var Cje=me((Dir,Tje)=>{\"use strict\";f();Tje.exports=MB;var Sje=Rhe();sg()(MB,Sje);function MB(e){if(!(this instanceof MB))return new MB(e);Sje.call(this,e)}MB.prototype._transform=function(e,t,n){n(null,e)}});var Nje=me((Bir,kje)=>{\"use strict\";f();var Ihe;function S6t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Oje=oC().codes,T6t=Oje.ERR_MISSING_ARGS,C6t=Oje.ERR_STREAM_DESTROYED;function Rje(e){if(e)throw e}function R6t(e){return e.setHeader&&typeof e.abort==\"function\"}function I6t(e,t,n,r){r=S6t(r);var o=!1;e.on(\"close\",function(){o=!0}),Ihe===void 0&&(Ihe=CQ()),Ihe(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,R6t(e))return e.abort();if(typeof e.destroy==\"function\")return e.destroy();r(a||new C6t(\"pipe\"))}}}function Ije(e){e()}function O6t(e,t){return e.pipe(t)}function k6t(e){return!e.length||typeof e[e.length-1]!=\"function\"?Rje:e.pop()}function N6t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=k6t(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new T6t(\"streams\");var o,i=t.map(function(a,c){var u=c<t.length-1,d=c>0;return I6t(a,u,d,function(p){o||(o=p),p&&i.forEach(Ije),!u&&(i.forEach(Ije),r(o))})});return t.reduce(O6t)}kje.exports=N6t});var Ohe=me((lg,Pje)=>{f();lg=Pje.exports=hhe();lg.Stream=lg;lg.Readable=lg;lg.Writable=dhe();lg.Duplex=iC();lg.Transform=Rhe();lg.PassThrough=Cje();lg.finished=CQ();lg.pipeline=Nje()});var Lje=me((Hir,Dje)=>{f();var{Transform:P6t}=Ohe();Dje.exports=e=>class Mje extends P6t{constructor(n,r,o,i,a){super(a),this._rate=n,this._capacity=r,this._delimitedSuffix=o,this._hashBitLength=i,this._options=a,this._state=new e,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,o){let i=null;try{this.update(n,r)}catch(a){i=a}o(i)}_flush(n){let r=null;try{this.push(this.digest())}catch(o){r=o}n(r)}update(n,r){if(!globalThis.Buffer.isBuffer(n)&&typeof n!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Digest already called\");return globalThis.Buffer.isBuffer(n)||(n=globalThis.Buffer.from(n,r)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error(\"Digest already called\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(r=r.toString(n)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let n=new Mje(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}});var Fje=me((jir,Uje)=>{f();var{Transform:M6t}=Ohe();Uje.exports=e=>class Bje extends M6t{constructor(n,r,o,i){super(i),this._rate=n,this._capacity=r,this._delimitedSuffix=o,this._options=i,this._state=new e,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,o){let i=null;try{this.update(n,r)}catch(a){i=a}o(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,r){if(!globalThis.Buffer.isBuffer(n)&&typeof n!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Squeeze already called\");return globalThis.Buffer.isBuffer(n)||(n=globalThis.Buffer.from(n,r)),this._state.absorb(n),this}squeeze(n,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(n);return r!==void 0&&(o=o.toString(r)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let n=new Bje(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}});var zje=me((Vir,Hje)=>{f();var D6t=Lje(),L6t=Fje();Hje.exports=function(e){let t=D6t(e),n=L6t(e);return function(r,o){switch(typeof r==\"string\"?r.toLowerCase():r){case\"keccak224\":return new t(1152,448,null,224,o);case\"keccak256\":return new t(1088,512,null,256,o);case\"keccak384\":return new t(832,768,null,384,o);case\"keccak512\":return new t(576,1024,null,512,o);case\"sha3-224\":return new t(1152,448,6,224,o);case\"sha3-256\":return new t(1088,512,6,256,o);case\"sha3-384\":return new t(832,768,6,384,o);case\"sha3-512\":return new t(576,1024,6,512,o);case\"shake128\":return new n(1344,256,31,o);case\"shake256\":return new n(1088,512,31,o);default:throw new Error(\"Invald algorithm: \"+r)}}}});var Vje=me(Wje=>{f();var jje=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Wje.p1600=function(e){for(let t=0;t<24;++t){let n=e[0]^e[10]^e[20]^e[30]^e[40],r=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],i=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],p=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],g=p^(o<<1|i>>>31),y=h^(i<<1|o>>>31),v=e[0]^g,x=e[1]^y,R=e[10]^g,S=e[11]^y,M=e[20]^g,P=e[21]^y,z=e[30]^g,V=e[31]^y,Q=e[40]^g,$=e[41]^y;g=n^(a<<1|c>>>31),y=r^(c<<1|a>>>31);let oe=e[2]^g,J=e[3]^y,re=e[12]^g,q=e[13]^y,K=e[22]^g,U=e[23]^y,T=e[32]^g,k=e[33]^y,F=e[42]^g,N=e[43]^y;g=o^(u<<1|d>>>31),y=i^(d<<1|u>>>31);let B=e[4]^g,H=e[5]^y,W=e[14]^g,G=e[15]^y,O=e[24]^g,j=e[25]^y,te=e[34]^g,ne=e[35]^y,ae=e[44]^g,pe=e[45]^y;g=a^(p<<1|h>>>31),y=c^(h<<1|p>>>31);let ye=e[6]^g,ve=e[7]^y,xe=e[16]^g,De=e[17]^y,Ge=e[26]^g,gt=e[27]^y,Ye=e[36]^g,lt=e[37]^y,At=e[46]^g,ht=e[47]^y;g=u^(n<<1|r>>>31),y=d^(r<<1|n>>>31);let et=e[8]^g,fn=e[9]^y,Zt=e[18]^g,Vt=e[19]^y,jt=e[28]^g,Jt=e[29]^y,Xt=e[38]^g,sr=e[39]^y,Yn=e[48]^g,Fr=e[49]^y,Ws=v,io=x,Hr=S<<4|R>>>28,qi=R<<4|S>>>28,Ar=M<<3|P>>>29,zr=P<<3|M>>>29,la=V<<9|z>>>23,ue=z<<9|V>>>23,Ie=Q<<18|$>>>14,_t=$<<18|Q>>>14,ot=oe<<1|J>>>31,Mt=J<<1|oe>>>31,Sn=q<<12|re>>>20,Gt=re<<12|q>>>20,mn=K<<10|U>>>22,On=U<<10|K>>>22,rr=k<<13|T>>>19,un=T<<13|k>>>19,Ni=F<<2|N>>>30,yo=N<<2|F>>>30,Xo=H<<30|B>>>2,of=B<<30|H>>>2,_r=W<<6|G>>>26,Nr=G<<6|W>>>26,$l=j<<11|O>>>21,kn=O<<11|j>>>21,bo=te<<15|ne>>>17,cp=ne<<15|te>>>17,ao=pe<<29|ae>>>3,$o=ae<<29|pe>>>3,Yt=ye<<28|ve>>>4,jr=ve<<28|ye>>>4,Mn=De<<23|xe>>>9,af=xe<<23|De>>>9,Ro=Ge<<25|gt>>>7,Yr=gt<<25|Ge>>>7,Vs=Ye<<21|lt>>>11,ol=lt<<21|Ye>>>11,xi=ht<<24|At>>>8,sf=At<<24|ht>>>8,Ua=et<<27|fn>>>5,cf=fn<<27|et>>>5,il=Zt<<20|Vt>>>12,Xc=Vt<<20|Zt>>>12,$c=Jt<<7|jt>>>25,hc=jt<<7|Jt>>>25,ed=Xt<<8|sr>>>24,eu=sr<<8|Xt>>>24,td=Yn<<14|Fr>>>18,up=Fr<<14|Yn>>>18;e[0]=Ws^~Sn&$l,e[1]=io^~Gt&kn,e[10]=Yt^~il&Ar,e[11]=jr^~Xc&zr,e[20]=ot^~_r&Ro,e[21]=Mt^~Nr&Yr,e[30]=Ua^~Hr&mn,e[31]=cf^~qi&On,e[40]=Xo^~Mn&$c,e[41]=of^~af&hc,e[2]=Sn^~$l&Vs,e[3]=Gt^~kn&ol,e[12]=il^~Ar&rr,e[13]=Xc^~zr&un,e[22]=_r^~Ro&ed,e[23]=Nr^~Yr&eu,e[32]=Hr^~mn&bo,e[33]=qi^~On&cp,e[42]=Mn^~$c&la,e[43]=af^~hc&ue,e[4]=$l^~Vs&td,e[5]=kn^~ol&up,e[14]=Ar^~rr&ao,e[15]=zr^~un&$o,e[24]=Ro^~ed&Ie,e[25]=Yr^~eu&_t,e[34]=mn^~bo&xi,e[35]=On^~cp&sf,e[44]=$c^~la&Ni,e[45]=hc^~ue&yo,e[6]=Vs^~td&Ws,e[7]=ol^~up&io,e[16]=rr^~ao&Yt,e[17]=un^~$o&jr,e[26]=ed^~Ie&ot,e[27]=eu^~_t&Mt,e[36]=bo^~xi&Ua,e[37]=cp^~sf&cf,e[46]=la^~Ni&Xo,e[47]=ue^~yo&of,e[8]=td^~Ws&Sn,e[9]=up^~io&Gt,e[18]=ao^~Yt&il,e[19]=$o^~jr&Xc,e[28]=Ie^~ot&_r,e[29]=_t^~Mt&Nr,e[38]=xi^~Ua&Hr,e[39]=sf^~cf&qi,e[48]=Ni^~Xo&Mn,e[49]=yo^~of&af,e[0]^=jje[t*2],e[1]^=jje[t*2+1]}}});var qje=me((Yir,Gje)=>{f();var DQ=Vje();function Vk(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Vk.prototype.initialize=function(e,t){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Vk.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(DQ.p1600(this.state),this.count=0)};Vk.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&DQ.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),DQ.p1600(this.state),this.count=0,this.squeezing=!0};Vk.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=globalThis.Buffer.alloc(e);for(let n=0;n<e;++n)t[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(DQ.p1600(this.state),this.count=0);return t};Vk.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};Gje.exports=Vk});var Yje=me((Qir,Kje)=>{f();Kje.exports=zje()(qje())});var khe=me((Xir,$je)=>{f();var B6t=Yje(),U6t=G6();function Zje(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function Qje(e,t,n){let r=Zje(t);return e=LQ(e),n?e.length<t?(e.copy(r),r):e.slice(0,t):e.length<t?(e.copy(r,t-e.length),r):e.slice(-t)}function F6t(e,t){return Qje(e,t,!0)}function LQ(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")Jje(e)?e=globalThis.Buffer.from(j6t(Xje(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=intToBuffer(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(U6t.isBN(e))e=e.toArrayLike(globalThis.Buffer);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function H6t(e){return e=LQ(e),\"0x\"+e.toString(\"hex\")}function z6t(e,t){return e=LQ(e),t||(t=256),B6t(\"keccak\"+t).update(e).digest()}function j6t(e){return e.length%2?\"0\"+e:e}function Jje(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function Xje(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}$je.exports={zeros:Zje,setLength:Qje,setLengthRight:F6t,isHexString:Jje,stripHexPrefix:Xje,toBuffer:LQ,bufferToHex:H6t,keccak:z6t}});var iWe=me((ear,oWe)=>{f();var dC=khe(),lC=G6();function tWe(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function Gk(e){return parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function eWe(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function nWe(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":parseInt(t[2],10):null}function uC(e){var t=typeof e;if(t===\"string\")return dC.isHexString(e)?new lC(dC.stripHexPrefix(e),16):new lC(e,10);if(t===\"number\")return new lC(e);if(e.toArray)return e;throw new Error(\"Argument is not a number\")}function _v(e,t){var n,r,o,i;if(e===\"address\")return _v(\"uint160\",uC(t));if(e===\"bool\")return _v(\"uint8\",t?1:0);if(e===\"string\")return _v(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(V6t(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(n=nWe(e),n!==\"dynamic\"&&n!==0&&t.length>n)throw new Error(\"Elements exceed array size: \"+n);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(i in t)o.push(_v(e,t[i]));if(n===\"dynamic\"){var a=_v(\"uint256\",t.length);o.unshift(a)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([_v(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,dC.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(n=Gk(e),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);return dC.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(n=Gk(e),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);if(r=uC(t),r.bitLength()>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+r.bitLength());if(r<0)throw new Error(\"Supplied uint is negative\");return r.toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"int\")){if(n=Gk(e),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);if(r=uC(t),r.bitLength()>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+r.bitLength());return r.toTwos(256).toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"ufixed\")){if(n=eWe(e),r=uC(t),r<0)throw new Error(\"Supplied ufixed is negative\");return _v(\"uint256\",r.mul(new lC(2).pow(new lC(n[1]))))}else if(e.startsWith(\"fixed\"))return n=eWe(e),_v(\"int256\",uC(t).mul(new lC(2).pow(new lC(n[1]))))}throw new Error(\"Unsupported or invalid type: \"+e)}function W6t(e){return e===\"string\"||e===\"bytes\"||nWe(e)===\"dynamic\"}function V6t(e){return e.lastIndexOf(\"]\")===e.length-1}function G6t(e,t){var n=[],r=[],o=32*e.length;for(var i in e){var a=tWe(e[i]),c=t[i],u=_v(a,c);W6t(a)?(n.push(_v(\"uint256\",o)),r.push(u),o+=u.length):n.push(u)}return globalThis.Buffer.concat(n.concat(r))}function rWe(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var n,r,o=[],i=0;i<e.length;i++){var a=tWe(e[i]),c=t[i];if(a===\"bytes\")o.push(c);else if(a===\"string\")o.push(new globalThis.Buffer(c,\"utf8\"));else if(a===\"bool\")o.push(new globalThis.Buffer(c?\"01\":\"00\",\"hex\"));else if(a===\"address\")o.push(dC.setLength(c,20));else if(a.startsWith(\"bytes\")){if(n=Gk(a),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);o.push(dC.setLengthRight(c,n))}else if(a.startsWith(\"uint\")){if(n=Gk(a),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);if(r=uC(c),r.bitLength()>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+r.bitLength());o.push(r.toArrayLike(globalThis.Buffer,\"be\",n/8))}else if(a.startsWith(\"int\")){if(n=Gk(a),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);if(r=uC(c),r.bitLength()>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+r.bitLength());o.push(r.toTwos(n).toArrayLike(globalThis.Buffer,\"be\",n/8))}else throw new Error(\"Unsupported or invalid type: \"+a)}return globalThis.Buffer.concat(o)}function q6t(e,t){return dC.keccak(rWe(e,t))}oWe.exports={rawEncode:G6t,solidityPack:rWe,soliditySHA3:q6t}});var cWe=me((nar,sWe)=>{f();var p1=khe(),DB=iWe(),aWe={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},Nhe={encodeData(e,t,n,r=!0){let o=[\"bytes32\"],i=[this.hashType(e,n)];if(r){let a=(c,u,d)=>{if(n[u]!==void 0)return[\"bytes32\",d==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":p1.keccak(this.encodeData(u,d,n,r))];if(d===void 0)throw new Error(`missing value for field ${c} of type ${u}`);if(u===\"bytes\")return[\"bytes32\",p1.keccak(d)];if(u===\"string\")return typeof d==\"string\"&&(d=globalThis.Buffer.from(d,\"utf8\")),[\"bytes32\",p1.keccak(d)];if(u.lastIndexOf(\"]\")===u.length-1){let p=u.slice(0,u.lastIndexOf(\"[\")),h=d.map(g=>a(c,p,g));return[\"bytes32\",p1.keccak(DB.rawEncode(h.map(([g])=>g),h.map(([,g])=>g)))]}return[u,d]};for(let c of n[e]){let[u,d]=a(c.name,c.type,t[c.name]);o.push(u),i.push(d)}}else for(let a of n[e]){let c=t[a.name];if(c!==void 0)if(a.type===\"bytes\")o.push(\"bytes32\"),c=p1.keccak(c),i.push(c);else if(a.type===\"string\")o.push(\"bytes32\"),typeof c==\"string\"&&(c=globalThis.Buffer.from(c,\"utf8\")),c=p1.keccak(c),i.push(c);else if(n[a.type]!==void 0)o.push(\"bytes32\"),c=p1.keccak(this.encodeData(a.type,c,n,r)),i.push(c);else{if(a.type.lastIndexOf(\"]\")===a.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(a.type),i.push(c)}}return DB.rawEncode(o,i)},encodeType(e,t){let n=\"\",r=this.findTypeDependencies(e,t).filter(o=>o!==e);r=[e].concat(r.sort());for(let o of r){if(!t[o])throw new Error(\"No type definition specified: \"+o);n+=o+\"(\"+t[o].map(({name:a,type:c})=>c+\" \"+a).join(\",\")+\")\"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\\\\w*/)[0],n.includes(e)||t[e]===void 0)return n;n.push(e);for(let r of t[e])for(let o of this.findTypeDependencies(r.type,t,n))!n.includes(o)&&n.push(o);return n},hashStruct(e,t,n,r=!0){return p1.keccak(this.encodeData(e,t,n,r))},hashType(e,t){return p1.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in aWe.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),r=[globalThis.Buffer.from(\"1901\",\"hex\")];return r.push(this.hashStruct(\"EIP712Domain\",n.domain,n.types,t)),n.primaryType!==\"EIP712Domain\"&&r.push(this.hashStruct(n.primaryType,n.message,n.types,t)),p1.keccak(globalThis.Buffer.concat(r))}};sWe.exports={TYPED_MESSAGE_SCHEMA:aWe,TypedDataUtils:Nhe,hashForSignTypedDataLegacy:function(e){return K6t(e.data)},hashForSignTypedData_v3:function(e){return Nhe.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return Nhe.hash(e.data)}};function K6t(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let n=e.map(function(i){return i.type===\"bytes\"?p1.toBuffer(i.value):i.value}),r=e.map(function(i){return i.type}),o=e.map(function(i){if(!i.name)throw t;return i.type+\" \"+i.name});return DB.soliditySHA3([\"bytes32\",\"bytes32\"],[DB.soliditySHA3(new Array(e.length).fill(\"string\"),o),DB.soliditySHA3(r,n)])}});var pWe=me(Kk=>{\"use strict\";f();Object.defineProperty(Kk,\"__esModule\",{value:!0});Kk.filterFromParam=Kk.FilterPolyfill=void 0;var qk=sB(),Vf=hv(),Y6t=300*1e3,fC={jsonrpc:\"2.0\",id:0},Phe=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,qk.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){let n=fWe(t),r=this.makeFilterId(),o=await this.setInitialCursorPosition(r,n.fromBlock);return console.info(`Installing new log filter(${r}):`,n,\"initial cursor position:\",o),this.logFilters.set(r,n),this.setFilterTimeout(r),(0,Vf.hexStringFromIntNumber)(r)}async newBlockFilter(){let t=this.makeFilterId(),n=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,n),this.blockFilters.add(t),this.setFilterTimeout(t),(0,Vf.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){let t=this.makeFilterId(),n=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,n),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,Vf.hexStringFromIntNumber)(t)}uninstallFilter(t){let n=(0,Vf.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${n})`),this.deleteFilter(n),!0}getFilterChanges(t){let n=(0,Vf.intNumberFromHexString)(t);return this.timeouts.has(n)&&this.setFilterTimeout(n),this.logFilters.has(n)?this.getLogFilterChanges(n):this.blockFilters.has(n)?this.getBlockFilterChanges(n):this.pendingTransactionFilters.has(n)?this.getPendingTransactionFilterChanges(n):Promise.resolve(BQ())}async getFilterLogs(t){let n=(0,Vf.intNumberFromHexString)(t),r=this.logFilters.get(n);return r?this.sendAsyncPromise(Object.assign(Object.assign({},fC),{method:\"eth_getLogs\",params:[uWe(r)]})):BQ()}makeFilterId(){return(0,qk.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((n,r)=>{this.provider.sendAsync(t,(o,i)=>{if(o)return r(o);if(Array.isArray(i)||i==null)return r(new Error(`unexpected response received: ${JSON.stringify(i)}`));n(i)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){let n=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!n)return BQ();let o=await this.getCurrentBlockHeight(),i=n.toBlock===\"latest\"?o:n.toBlock;if(r>o||r>Number(n.toBlock))return UQ();console.info(`Fetching logs from ${r} to ${i} for filter ${t}`);let a=await this.sendAsyncPromise(Object.assign(Object.assign({},fC),{method:\"eth_getLogs\",params:[uWe(Object.assign(Object.assign({},n),{fromBlock:r,toBlock:i}))]}));if(Array.isArray(a.result)){let c=a.result.map(d=>(0,Vf.intNumberFromHexString)(d.blockNumber||\"0x0\")),u=Math.max(...c);if(u&&u>r){let d=(0,qk.IntNumber)(u+1);console.info(`Moving cursor position for filter (${t}) from ${r} to ${d}`),this.cursors.set(t,d)}}return a}async getBlockFilterChanges(t){let n=this.cursors.get(t);if(!n)return BQ();let r=await this.getCurrentBlockHeight();if(n>r)return UQ();console.info(`Fetching blocks from ${n} to ${r} for filter (${t})`);let o=(await Promise.all((0,Vf.range)(n,r+1).map(a=>this.getBlockHashByNumber((0,qk.IntNumber)(a))))).filter(a=>!!a),i=(0,qk.IntNumber)(n+o.length);return console.info(`Moving cursor position for filter (${t}) from ${n} to ${i}`),this.cursors.set(t,i),Object.assign(Object.assign({},fC),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(UQ())}async setInitialCursorPosition(t,n){let r=await this.getCurrentBlockHeight(),o=typeof n==\"number\"&&n>r?n:r;return this.cursors.set(t,o),o}setFilterTimeout(t){let n=this.timeouts.get(t);n&&window.clearTimeout(n);let r=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},Y6t);this.timeouts.set(t,r)}async getCurrentBlockHeight(){let t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;let n=await this._getCurrentBlockHeight();this.currentBlockHeight=n,this.resolvers.forEach(r=>r(n)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(n=>this.resolvers.push(n))}async _getCurrentBlockHeight(){let{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},fC),{method:\"eth_blockNumber\",params:[]}));return(0,Vf.intNumberFromHexString)((0,Vf.ensureHexString)(t))}async getBlockHashByNumber(t){let n=await this.sendAsyncPromise(Object.assign(Object.assign({},fC),{method:\"eth_getBlockByNumber\",params:[(0,Vf.hexStringFromIntNumber)(t),!1]}));return n.result&&typeof n.result.hash==\"string\"?(0,Vf.ensureHexString)(n.result.hash):null}};Kk.FilterPolyfill=Phe;function fWe(e){return{fromBlock:lWe(e.fromBlock),toBlock:lWe(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}Kk.filterFromParam=fWe;function uWe(e){let t={fromBlock:dWe(e.fromBlock),toBlock:dWe(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function lWe(e){if(e===void 0||e===\"latest\"||e===\"pending\")return\"latest\";if(e===\"earliest\")return(0,qk.IntNumber)(0);if((0,Vf.isHexString)(e))return(0,Vf.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function dWe(e){return e===\"latest\"?e:(0,Vf.hexStringFromIntNumber)(e)}function BQ(){return Object.assign(Object.assign({},fC),{error:{code:-32e3,message:\"filter not found\"}})}function UQ(){return Object.assign(Object.assign({},fC),{result:[]})}});var FQ=me((aar,hWe)=>{f();hWe.exports=Z6t;function Z6t(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,n=typeof e.start<\"u\"?e.start:Math.floor(Math.random()*t);return function(){return n=n%t,n++}}});var yWe=me((car,gWe)=>{\"use strict\";f();var mWe=(e,t)=>function(){let n=t.promiseModule,r=new Array(arguments.length);for(let o=0;o<arguments.length;o++)r[o]=arguments[o];return new n((o,i)=>{t.errorFirst?r.push(function(a,c){if(t.multiArgs){let u=new Array(arguments.length-1);for(let d=1;d<arguments.length;d++)u[d-1]=arguments[d];a?(u.unshift(a),i(u)):o(u)}else a?i(a):o(c)}):r.push(function(a){if(t.multiArgs){let c=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)c[u]=arguments[u];o(c)}else o(a)}),e.apply(this,r)})};gWe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let n=o=>{let i=a=>typeof a==\"string\"?o===a:a.test(o);return t.include?t.include.some(i):!t.exclude.some(i)},r;typeof e==\"function\"?r=function(){return t.excludeMain?e.apply(this,arguments):mWe(e,t).apply(this,arguments)}:r=Object.create(Object.getPrototypeOf(e));for(let o in e){let i=e[o];r[o]=typeof i==\"function\"&&n(o)?mWe(i,t):i}return r}});var HQ=me(Dhe=>{\"use strict\";f();Object.defineProperty(Dhe,\"__esModule\",{value:!0});var Q6t=CB();function bWe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}function J6t(e){let t=e.length,n=new Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}var Mhe=class extends Q6t.EventEmitter{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(`Unhandled error.${a?` (${a.message})`:\"\"}`);throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")bWe(i,this,n);else{let a=i.length,c=J6t(i);for(let u=0;u<a;u+=1)bWe(c[u],this,n)}return!0}};Dhe.default=Mhe});var Bhe=me(Yk=>{\"use strict\";f();var X6t=Yk&&Yk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yk,\"__esModule\",{value:!0});Yk.BaseBlockTracker=void 0;var $6t=X6t(HQ()),eCt=1e3,tCt=(e,t)=>e+t,vWe=[\"sync\",\"latest\"],Lhe=class extends $6t.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*eCt,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(n=>this.once(\"latest\",n))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener(\"newListener\",this._onNewListener),this.removeListener(\"removeListener\",this._onRemoveListener),this.on(\"newListener\",this._onNewListener),this.on(\"removeListener\",this._onRemoveListener)}_onNewListener(t){vWe.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit(\"_started\"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit(\"_ended\"))}_getBlockTrackerEventCount(){return vWe.map(t=>this.listenerCount(t)).reduce(tCt)}_shouldUseNewBlock(t){let n=this._currentBlock;if(!n)return!0;let r=wWe(t),o=wWe(n);return this._usePastBlocks&&r<o||r>o}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){let n=this._currentBlock;this._currentBlock=t,this.emit(\"latest\",t),this.emit(\"sync\",{oldBlock:n,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};Yk.BaseBlockTracker=Lhe;function wWe(e){return Number.parseInt(e,16)}});var tS={};qa(tS,{Struct:()=>ys,StructError:()=>zQ,any:()=>pCt,array:()=>hCt,assert:()=>EWe,assign:()=>iCt,bigint:()=>mCt,boolean:()=>gCt,coerce:()=>jhe,create:()=>AWe,date:()=>yCt,defaulted:()=>NCt,define:()=>rh,deprecated:()=>aCt,dynamic:()=>sCt,empty:()=>MCt,enums:()=>bCt,func:()=>vCt,instance:()=>wCt,integer:()=>xCt,intersection:()=>ECt,is:()=>Hhe,lazy:()=>cCt,literal:()=>ACt,map:()=>_Ct,mask:()=>_We,max:()=>DCt,min:()=>LCt,never:()=>zhe,nonempty:()=>BCt,nullable:()=>SCt,number:()=>TCt,object:()=>LB,omit:()=>uCt,optional:()=>SWe,partial:()=>lCt,pattern:()=>UCt,pick:()=>dCt,record:()=>CCt,refine:()=>pC,regexp:()=>RCt,set:()=>ICt,size:()=>FCt,string:()=>TWe,struct:()=>fCt,trimmed:()=>PCt,tuple:()=>OCt,type:()=>BB,union:()=>kCt,unknown:()=>CWe,validate:()=>Zk});function nCt(e){return dg(e)&&typeof e[Symbol.iterator]==\"function\"}function dg(e){return typeof e==\"object\"&&e!=null}function xWe(e){if(Object.prototype.toString.call(e)!==\"[object Object]\")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function gu(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function rCt(e){let{done:t,value:n}=e.next();return t?void 0:n}function oCt(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:u=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${gu(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*Uhe(e,t,n,r){nCt(e)||(e=[e]);for(let o of e){let i=oCt(o,t,n,r);i&&(yield i)}}function*Fhe(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o};if(i&&(e=t.coercer(e,c),a&&t.type!==\"type\"&&dg(t.schema)&&dg(e)&&!Array.isArray(e)))for(let d in e)t.schema[d]===void 0&&delete e[d];let u=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,u=\"not_valid\",yield[d,void 0];for(let[d,p,h]of t.entries(e,c)){let g=Fhe(p,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,p],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(u=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(p=y[1],d===void 0?e=p:e instanceof Map?e.set(d,p):e instanceof Set?e.add(p):dg(e)&&(p!==void 0||d in e)&&(e[d]=p))}if(u!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,u=\"not_refined\",yield[d,void 0];u===\"valid\"&&(yield[void 0,e])}function EWe(e,t,n){let r=Zk(e,t,{message:n});if(r[0])throw r[0]}function AWe(e,t,n){let r=Zk(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function _We(e,t,n){let r=Zk(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function Hhe(e,t){return!Zk(e,t)[0]}function Zk(e,t,n={}){let r=Fhe(e,t,n),o=rCt(r);return o[0]?[new zQ(o[0],function*(){for(let a of r)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function iCt(...e){let t=e[0].type===\"type\",n=e.map(o=>o.schema),r=Object.assign({},...n);return t?BB(r):LB(r)}function rh(e,t){return new ys({type:e,schema:null,validator:t})}function aCt(e,t){return new ys({...e,refiner:(n,r)=>n===void 0||e.refiner(n,r),validator(n,r){return n===void 0?!0:(t(n,r),e.validator(n,r))}})}function sCt(e){return new ys({type:\"dynamic\",schema:null,*entries(t,n){yield*e(t,n).entries(t,n)},validator(t,n){return e(t,n).validator(t,n)},coercer(t,n){return e(t,n).coercer(t,n)},refiner(t,n){return e(t,n).refiner(t,n)}})}function cCt(e){let t;return new ys({type:\"lazy\",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator(n,r){return t??(t=e()),t.validator(n,r)},coercer(n,r){return t??(t=e()),t.coercer(n,r)},refiner(n,r){return t??(t=e()),t.refiner(n,r)}})}function uCt(e,t){let{schema:n}=e,r={...n};for(let o of t)delete r[o];switch(e.type){case\"type\":return BB(r);default:return LB(r)}}function lCt(e){let t=e instanceof ys,n=t?{...e.schema}:{...e};for(let r in n)n[r]=SWe(n[r]);return t&&e.type===\"type\"?BB(n):LB(n)}function dCt(e,t){let{schema:n}=e,r={};for(let o of t)r[o]=n[o];switch(e.type){case\"type\":return BB(r);default:return LB(r)}}function fCt(e,t){return console.warn(\"superstruct@0.11 - The `struct` helper has been renamed to `define`.\"),rh(e,t)}function pCt(){return rh(\"any\",()=>!0)}function hCt(e){return new ys({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${gu(t)}`}})}function mCt(){return rh(\"bigint\",e=>typeof e==\"bigint\")}function gCt(){return rh(\"boolean\",e=>typeof e==\"boolean\")}function yCt(){return rh(\"date\",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \\\\`Date\\\\` object, but received: ${gu(e)}`)}function bCt(e){let t={},n=e.map(r=>gu(r)).join();for(let r of e)t[r]=r;return new ys({type:\"enums\",schema:t,validator(r){return e.includes(r)||`Expected one of \\\\`${n}\\\\`, but received: ${gu(r)}`}})}function vCt(){return rh(\"func\",e=>typeof e==\"function\"||`Expected a function, but received: ${gu(e)}`)}function wCt(e){return rh(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${gu(t)}`)}function xCt(){return rh(\"integer\",e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${gu(e)}`)}function ECt(e){return new ys({type:\"intersection\",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})}function ACt(e){let t=gu(e),n=typeof e;return new ys({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator(r){return r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${gu(r)}`}})}function _Ct(e,t){return new ys({type:\"map\",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,o]of n.entries())yield[r,r,e],yield[r,o,t]},coercer(n){return n instanceof Map?new Map(n):n},validator(n){return n instanceof Map||`Expected a \\\\`Map\\\\` object, but received: ${gu(n)}`}})}function zhe(){return rh(\"never\",()=>!1)}function SCt(e){return new ys({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function TCt(){return rh(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${gu(e)}`)}function LB(e){let t=e?Object.keys(e):[],n=zhe();return new ys({type:\"object\",schema:e||null,*entries(r){if(e&&dg(r)){let o=new Set(Object.keys(r));for(let i of t)o.delete(i),yield[i,r[i],e[i]];for(let i of o)yield[i,r[i],n]}},validator(r){return dg(r)||`Expected an object, but received: ${gu(r)}`},coercer(r){return dg(r)?{...r}:r}})}function SWe(e){return new ys({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function CCt(e,t){return new ys({type:\"record\",schema:null,*entries(n){if(dg(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return dg(n)||`Expected an object, but received: ${gu(n)}`}})}function RCt(){return rh(\"regexp\",e=>e instanceof RegExp)}function ICt(e){return new ys({type:\"set\",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \\\\`Set\\\\` object, but received: ${gu(t)}`}})}function TWe(){return rh(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${gu(e)}`)}function OCt(e){let t=zhe();return new ys({type:\"tuple\",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let o=0;o<r;o++)yield[o,n[o],e[o]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${gu(n)}`}})}function BB(e){let t=Object.keys(e);return new ys({type:\"type\",schema:e,*entries(n){if(dg(n))for(let r of t)yield[r,n[r],e[r]]},validator(n){return dg(n)||`Expected an object, but received: ${gu(n)}`},coercer(n){return dg(n)?{...n}:n}})}function kCt(e){let t=e.map(n=>n.type).join(\" | \");return new ys({type:\"union\",schema:null,coercer(n){for(let r of e){let[o,i]=r.validate(n,{coerce:!0});if(!o)return i}return n},validator(n,r){let o=[];for(let i of e){let[...a]=Fhe(n,i,r),[c]=a;if(c[0])for(let[u]of a)u&&o.push(u);else return[]}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${gu(n)}`,...o]}})}function CWe(){return rh(\"unknown\",()=>!0)}function jhe(e,t,n){return new ys({...e,coercer:(r,o)=>Hhe(r,t)?e.coercer(n(r,o),o):e.coercer(r,o)})}function NCt(e,t,n={}){return jhe(e,CWe(),r=>{let o=typeof t==\"function\"?t():t;if(r===void 0)return o;if(!n.strict&&xWe(r)&&xWe(o)){let i={...r},a=!1;for(let c in o)i[c]===void 0&&(i[c]=o[c],a=!0);if(a)return i}return r})}function PCt(e){return jhe(e,TWe(),t=>t.trim())}function MCt(e){return pC(e,\"empty\",t=>{let n=RWe(t);return n===0||`Expected an empty ${e.type} but received one with a size of \\\\`${n}\\\\``})}function RWe(e){return e instanceof Map||e instanceof Set?e.size:e.length}function DCt(e,t,n={}){let{exclusive:r}=n;return pC(e,\"max\",o=>r?o<t:o<=t||`Expected a ${e.type} less than ${r?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function LCt(e,t,n={}){let{exclusive:r}=n;return pC(e,\"min\",o=>r?o>t:o>=t||`Expected a ${e.type} greater than ${r?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function BCt(e){return pC(e,\"nonempty\",t=>RWe(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function UCt(e,t){return pC(e,\"pattern\",n=>t.test(n)||`Expected a ${e.type} matching \\\\`/${t.source}/\\\\` but received \"${n}\"`)}function FCt(e,t,n=t){let r=`Expected a ${e.type}`,o=t===n?`of \\\\`${t}\\\\``:`between \\\\`${t}\\\\` and \\\\`${n}\\\\``;return pC(e,\"size\",i=>{if(typeof i==\"number\"||i instanceof Date)return t<=i&&i<=n||`${r} ${o} but received \\\\`${i}\\\\``;if(i instanceof Map||i instanceof Set){let{size:a}=i;return t<=a&&a<=n||`${r} with a size ${o} but received one with a size of \\\\`${a}\\\\``}else{let{length:a}=i;return t<=a&&a<=n||`${r} with a length ${o} but received one with a length of \\\\`${a}\\\\``}})}function pC(e,t,n){return new ys({...e,*refiner(r,o){yield*e.refiner(r,o);let i=n(r,o),a=Uhe(i,o,e,r);for(let c of a)yield{...c,refinement:t}}})}var zQ,ys,nS=Z(()=>{f();zQ=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,u=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??u),i!=null&&(this.cause=u),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};ys=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=u=>u,entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,o?this.validator=(u,d)=>{let p=o(u,d);return Uhe(p,d,this,u)}:this.validator=()=>[],i?this.refiner=(u,d)=>{let p=i(u,d);return Uhe(p,d,this,u)}:this.refiner=()=>[]}assert(t,n){return EWe(t,this,n)}create(t,n){return AWe(t,this,n)}is(t){return Hhe(t,this)}mask(t,n){return _We(t,this,n)}validate(t,n={}){return Zk(t,this,n)}}});var Sx=me(Sv=>{\"use strict\";f();Object.defineProperty(Sv,\"__esModule\",{value:!0});Sv.assertExhaustive=Sv.assertStruct=Sv.assert=Sv.AssertionError=void 0;var HCt=(nS(),qo(tS));function zCt(e){return typeof e==\"object\"&&e!==null&&\"message\"in e}function jCt(e){var t,n;return typeof((n=(t=e?.prototype)===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.name)==\"string\"}function WCt(e){let t=zCt(e)?e.message:String(e);return t.endsWith(\".\")?t.slice(0,-1):t}function IWe(e,t){return jCt(e)?new e({message:t}):e({message:t})}var UB=class extends Error{constructor(t){super(t.message),this.code=\"ERR_ASSERTION\"}};Sv.AssertionError=UB;function VCt(e,t=\"Assertion failed.\",n=UB){if(!e)throw t instanceof Error?t:IWe(n,t)}Sv.assert=VCt;function GCt(e,t,n=\"Assertion failed\",r=UB){try{(0,HCt.assert)(e,t)}catch(o){throw IWe(r,`${n}: ${WCt(o)}.`)}}Sv.assertStruct=GCt;function qCt(e){throw new Error(\"Invalid branch reached. Should be detected during compilation.\")}Sv.assertExhaustive=qCt});var Whe=me(jQ=>{\"use strict\";f();Object.defineProperty(jQ,\"__esModule\",{value:!0});jQ.base64=void 0;var KCt=(nS(),qo(tS)),YCt=Sx(),ZCt=(e,t={})=>{var n,r;let o=(n=t.paddingRequired)!==null&&n!==void 0?n:!1,i=(r=t.characterSet)!==null&&r!==void 0?r:\"base64\",a;i===\"base64\"?a=String.raw`[A-Za-z0-9+\\\\/]`:((0,YCt.assert)(i===\"base64url\"),a=String.raw`[-_A-Za-z0-9]`);let c;return o?c=new RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,\"u\"):c=new RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,\"u\"),(0,KCt.pattern)(e,c)};jQ.base64=ZCt});var FB=me(Gc=>{\"use strict\";f();Object.defineProperty(Gc,\"__esModule\",{value:!0});Gc.remove0x=Gc.add0x=Gc.assertIsStrictHexString=Gc.assertIsHexString=Gc.isStrictHexString=Gc.isHexString=Gc.StrictHexStruct=Gc.HexStruct=void 0;var Qk=(nS(),qo(tS)),OWe=Sx();Gc.HexStruct=(0,Qk.pattern)((0,Qk.string)(),/^(?:0x)?[0-9a-f]+$/iu);Gc.StrictHexStruct=(0,Qk.pattern)((0,Qk.string)(),/^0x[0-9a-f]+$/iu);function kWe(e){return(0,Qk.is)(e,Gc.HexStruct)}Gc.isHexString=kWe;function NWe(e){return(0,Qk.is)(e,Gc.StrictHexStruct)}Gc.isStrictHexString=NWe;function QCt(e){(0,OWe.assert)(kWe(e),\"Value must be a hexadecimal string.\")}Gc.assertIsHexString=QCt;function JCt(e){(0,OWe.assert)(NWe(e),\\'Value must be a hexadecimal string, starting with \"0x\".\\')}Gc.assertIsStrictHexString=JCt;function XCt(e){return e.startsWith(\"0x\")?e:e.startsWith(\"0X\")?`0x${e.substring(2)}`:`0x${e}`}Gc.add0x=XCt;function $Ct(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")?e.substring(2):e}Gc.remove0x=$Ct});var qhe=me(Zo=>{\"use strict\";f();Object.defineProperty(Zo,\"__esModule\",{value:!0});Zo.createDataView=Zo.concatBytes=Zo.valueToBytes=Zo.stringToBytes=Zo.numberToBytes=Zo.signedBigIntToBytes=Zo.bigIntToBytes=Zo.hexToBytes=Zo.bytesToString=Zo.bytesToNumber=Zo.bytesToSignedBigInt=Zo.bytesToBigInt=Zo.bytesToHex=Zo.assertIsBytes=Zo.isBytes=void 0;var bm=Sx(),Vhe=FB(),PWe=48,MWe=58,DWe=87;function eRt(){let e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,\"0\"));return e}}var tRt=eRt();function Ghe(e){return e instanceof Uint8Array}Zo.isBytes=Ghe;function Jk(e){(0,bm.assert)(Ghe(e),\"Value must be a Uint8Array.\")}Zo.assertIsBytes=Jk;function LWe(e){if(Jk(e),e.length===0)return\"0x\";let t=tRt(),n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return(0,Vhe.add0x)(n.join(\"\"))}Zo.bytesToHex=LWe;function BWe(e){Jk(e);let t=LWe(e);return BigInt(t)}Zo.bytesToBigInt=BWe;function nRt(e){Jk(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(e.length*8,t)}Zo.bytesToSignedBigInt=nRt;function rRt(e){Jk(e);let t=BWe(e);return(0,bm.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),\"Number is not a safe integer. Use `bytesToBigInt` instead.\"),Number(t)}Zo.bytesToNumber=rRt;function oRt(e){return Jk(e),new TextDecoder().decode(e)}Zo.bytesToString=oRt;function WQ(e){var t;if(((t=e?.toLowerCase)===null||t===void 0?void 0:t.call(e))===\"0x\")return new Uint8Array;(0,Vhe.assertIsHexString)(e);let n=(0,Vhe.remove0x)(e).toLowerCase(),r=n.length%2===0?n:`0${n}`,o=new Uint8Array(r.length/2);for(let i=0;i<o.length;i++){let a=r.charCodeAt(i*2),c=r.charCodeAt(i*2+1),u=a-(a<MWe?PWe:DWe),d=c-(c<MWe?PWe:DWe);o[i]=u*16+d}return o}Zo.hexToBytes=WQ;function UWe(e){(0,bm.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,bm.assert)(e>=BigInt(0),\"Value must be a non-negative bigint.\");let t=e.toString(16);return WQ(t)}Zo.bigIntToBytes=UWe;function iRt(e,t){(0,bm.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(t*8+-1))}function aRt(e,t){(0,bm.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,bm.assert)(typeof t==\"number\",\"Byte length must be a number.\"),(0,bm.assert)(t>0,\"Byte length must be greater than 0.\"),(0,bm.assert)(iRt(e,t),\"Byte length is too small to represent the given value.\");let n=e,r=new Uint8Array(t);for(let o=0;o<r.length;o++)r[o]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()}Zo.signedBigIntToBytes=aRt;function FWe(e){(0,bm.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,bm.assert)(e>=0,\"Value must be a non-negative number.\"),(0,bm.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToBytes` instead.\");let t=e.toString(16);return WQ(t)}Zo.numberToBytes=FWe;function HWe(e){return(0,bm.assert)(typeof e==\"string\",\"Value must be a string.\"),new TextEncoder().encode(e)}Zo.stringToBytes=HWe;function zWe(e){if(typeof e==\"bigint\")return UWe(e);if(typeof e==\"number\")return FWe(e);if(typeof e==\"string\")return e.startsWith(\"0x\")?WQ(e):HWe(e);if(Ghe(e))return e;throw new TypeError(`Unsupported value type: \"${typeof e}\".`)}Zo.valueToBytes=zWe;function sRt(e){let t=new Array(e.length),n=0;for(let o=0;o<e.length;o++){let i=zWe(e[o]);t[o]=i,n+=i.length}let r=new Uint8Array(n);for(let o=0,i=0;o<t.length;o++)r.set(t[o],i),i+=t[o].length;return r}Zo.concatBytes=sRt;function cRt(e){if(typeof globalThis.Buffer<\"u\"&&e instanceof globalThis.Buffer){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}Zo.createDataView=cRt});var WWe=me(VQ=>{\"use strict\";f();Object.defineProperty(VQ,\"__esModule\",{value:!0});VQ.ChecksumStruct=void 0;var jWe=(nS(),qo(tS)),uRt=Whe();VQ.ChecksumStruct=(0,jWe.size)((0,uRt.base64)((0,jWe.string)(),{paddingRequired:!0}),44,44)});var qWe=me(Tv=>{\"use strict\";f();Object.defineProperty(Tv,\"__esModule\",{value:!0});Tv.createHex=Tv.createBytes=Tv.createBigInt=Tv.createNumber=void 0;var bs=(nS(),qo(tS)),lRt=Sx(),VWe=qhe(),GQ=FB(),GWe=(0,bs.union)([(0,bs.number)(),(0,bs.bigint)(),(0,bs.string)(),GQ.StrictHexStruct]),dRt=(0,bs.coerce)((0,bs.number)(),GWe,Number),fRt=(0,bs.coerce)((0,bs.bigint)(),GWe,BigInt),Tar=(0,bs.union)([GQ.StrictHexStruct,(0,bs.instance)(Uint8Array)]),pRt=(0,bs.coerce)((0,bs.instance)(Uint8Array),(0,bs.union)([GQ.StrictHexStruct]),VWe.hexToBytes),hRt=(0,bs.coerce)(GQ.StrictHexStruct,(0,bs.instance)(Uint8Array),VWe.bytesToHex);function mRt(e){try{let t=(0,bs.create)(e,dRt);return(0,lRt.assert)(Number.isFinite(t),`Expected a number-like value, got \"${e}\".`),t}catch(t){throw t instanceof bs.StructError?new Error(`Expected a number-like value, got \"${e}\".`):t}}Tv.createNumber=mRt;function gRt(e){try{return(0,bs.create)(e,fRt)}catch(t){throw t instanceof bs.StructError?new Error(`Expected a number-like value, got \"${String(t.value)}\".`):t}}Tv.createBigInt=gRt;function yRt(e){if(typeof e==\"string\"&&e.toLowerCase()===\"0x\")return new Uint8Array;try{return(0,bs.create)(e,pRt)}catch(t){throw t instanceof bs.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}Tv.createBytes=yRt;function bRt(e){if(e instanceof Uint8Array&&e.length===0||typeof e==\"string\"&&e.toLowerCase()===\"0x\")return\"0x\";try{return(0,bs.create)(e,hRt)}catch(t){throw t instanceof bs.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}Tv.createHex=bRt});var YWe=me(Rv=>{\"use strict\";f();var KWe=Rv&&Rv.__classPrivateFieldSet||function(e,t,n,r,o){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof t==\"function\"?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?o.call(e,n):o?o.value=n:t.set(e,n),n},Gf=Rv&&Rv.__classPrivateFieldGet||function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},h1,Cv;Object.defineProperty(Rv,\"__esModule\",{value:!0});Rv.FrozenSet=Rv.FrozenMap=void 0;var HB=class{constructor(t){h1.set(this,void 0),KWe(this,h1,new Map(t),\"f\"),Object.freeze(this)}get size(){return Gf(this,h1,\"f\").size}[(h1=new WeakMap,Symbol.iterator)](){return Gf(this,h1,\"f\")[Symbol.iterator]()}entries(){return Gf(this,h1,\"f\").entries()}forEach(t,n){return Gf(this,h1,\"f\").forEach((r,o,i)=>t.call(n,r,o,this))}get(t){return Gf(this,h1,\"f\").get(t)}has(t){return Gf(this,h1,\"f\").has(t)}keys(){return Gf(this,h1,\"f\").keys()}values(){return Gf(this,h1,\"f\").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,n])=>`${String(t)} => ${String(n)}`).join(\", \")} `:\"\"}}`}};Rv.FrozenMap=HB;var zB=class{constructor(t){Cv.set(this,void 0),KWe(this,Cv,new Set(t),\"f\"),Object.freeze(this)}get size(){return Gf(this,Cv,\"f\").size}[(Cv=new WeakMap,Symbol.iterator)](){return Gf(this,Cv,\"f\")[Symbol.iterator]()}entries(){return Gf(this,Cv,\"f\").entries()}forEach(t,n){return Gf(this,Cv,\"f\").forEach((r,o,i)=>t.call(n,r,o,this))}has(t){return Gf(this,Cv,\"f\").has(t)}keys(){return Gf(this,Cv,\"f\").keys()}values(){return Gf(this,Cv,\"f\").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(\", \")} `:\"\"}}`}};Rv.FrozenSet=zB;Object.freeze(HB);Object.freeze(HB.prototype);Object.freeze(zB);Object.freeze(zB.prototype)});var QWe=me(ZWe=>{\"use strict\";f();Object.defineProperty(ZWe,\"__esModule\",{value:!0})});var JWe=me(Rt=>{\"use strict\";f();Object.defineProperty(Rt,\"__esModule\",{value:!0});Rt.getJsonRpcIdValidator=Rt.assertIsJsonRpcError=Rt.isJsonRpcError=Rt.assertIsJsonRpcFailure=Rt.isJsonRpcFailure=Rt.assertIsJsonRpcSuccess=Rt.isJsonRpcSuccess=Rt.assertIsJsonRpcResponse=Rt.isJsonRpcResponse=Rt.assertIsPendingJsonRpcResponse=Rt.isPendingJsonRpcResponse=Rt.JsonRpcResponseStruct=Rt.JsonRpcFailureStruct=Rt.JsonRpcSuccessStruct=Rt.PendingJsonRpcResponseStruct=Rt.assertIsJsonRpcRequest=Rt.isJsonRpcRequest=Rt.assertIsJsonRpcNotification=Rt.isJsonRpcNotification=Rt.JsonRpcNotificationStruct=Rt.JsonRpcRequestStruct=Rt.JsonRpcParamsStruct=Rt.JsonRpcErrorStruct=Rt.JsonRpcIdStruct=Rt.JsonRpcVersionStruct=Rt.jsonrpc2=Rt.getJsonSize=Rt.isValidJson=Rt.JsonStruct=Rt.UnsafeJsonStruct=void 0;var Jn=(nS(),qo(tS)),rS=Sx(),vRt=()=>(0,Jn.define)(\"finite number\",e=>(0,Jn.is)(e,(0,Jn.number)())&&Number.isFinite(e));Rt.UnsafeJsonStruct=(0,Jn.union)([(0,Jn.literal)(null),(0,Jn.boolean)(),vRt(),(0,Jn.string)(),(0,Jn.array)((0,Jn.lazy)(()=>Rt.UnsafeJsonStruct)),(0,Jn.record)((0,Jn.string)(),(0,Jn.lazy)(()=>Rt.UnsafeJsonStruct))]);Rt.JsonStruct=(0,Jn.define)(\"Json\",(e,t)=>{function n(r,o){let a=[...o.validator(r,t)];return a.length>0?a:!0}try{let r=n(e,Rt.UnsafeJsonStruct);return r!==!0?r:n(JSON.parse(JSON.stringify(e)),Rt.UnsafeJsonStruct)}catch(r){return r instanceof RangeError?\"Circular reference detected\":!1}});function wRt(e){return(0,Jn.is)(e,Rt.JsonStruct)}Rt.isValidJson=wRt;function xRt(e){(0,rS.assertStruct)(e,Rt.JsonStruct,\"Invalid JSON value\");let t=JSON.stringify(e);return new TextEncoder().encode(t).byteLength}Rt.getJsonSize=xRt;Rt.jsonrpc2=\"2.0\";Rt.JsonRpcVersionStruct=(0,Jn.literal)(Rt.jsonrpc2);Rt.JsonRpcIdStruct=(0,Jn.nullable)((0,Jn.union)([(0,Jn.number)(),(0,Jn.string)()]));Rt.JsonRpcErrorStruct=(0,Jn.object)({code:(0,Jn.integer)(),message:(0,Jn.string)(),data:(0,Jn.optional)(Rt.JsonStruct),stack:(0,Jn.optional)((0,Jn.string)())});Rt.JsonRpcParamsStruct=(0,Jn.optional)((0,Jn.union)([(0,Jn.record)((0,Jn.string)(),Rt.JsonStruct),(0,Jn.array)(Rt.JsonStruct)]));Rt.JsonRpcRequestStruct=(0,Jn.object)({id:Rt.JsonRpcIdStruct,jsonrpc:Rt.JsonRpcVersionStruct,method:(0,Jn.string)(),params:Rt.JsonRpcParamsStruct});Rt.JsonRpcNotificationStruct=(0,Jn.omit)(Rt.JsonRpcRequestStruct,[\"id\"]);function ERt(e){return(0,Jn.is)(e,Rt.JsonRpcNotificationStruct)}Rt.isJsonRpcNotification=ERt;function ARt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcNotificationStruct,\"Invalid JSON-RPC notification\",t)}Rt.assertIsJsonRpcNotification=ARt;function _Rt(e){return(0,Jn.is)(e,Rt.JsonRpcRequestStruct)}Rt.isJsonRpcRequest=_Rt;function SRt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcRequestStruct,\"Invalid JSON-RPC request\",t)}Rt.assertIsJsonRpcRequest=SRt;Rt.PendingJsonRpcResponseStruct=(0,Jn.object)({id:Rt.JsonRpcIdStruct,jsonrpc:Rt.JsonRpcVersionStruct,result:(0,Jn.optional)((0,Jn.unknown)()),error:(0,Jn.optional)(Rt.JsonRpcErrorStruct)});Rt.JsonRpcSuccessStruct=(0,Jn.object)({id:Rt.JsonRpcIdStruct,jsonrpc:Rt.JsonRpcVersionStruct,result:Rt.JsonStruct});Rt.JsonRpcFailureStruct=(0,Jn.object)({id:Rt.JsonRpcIdStruct,jsonrpc:Rt.JsonRpcVersionStruct,error:Rt.JsonRpcErrorStruct});Rt.JsonRpcResponseStruct=(0,Jn.union)([Rt.JsonRpcSuccessStruct,Rt.JsonRpcFailureStruct]);function TRt(e){return(0,Jn.is)(e,Rt.PendingJsonRpcResponseStruct)}Rt.isPendingJsonRpcResponse=TRt;function CRt(e,t){(0,rS.assertStruct)(e,Rt.PendingJsonRpcResponseStruct,\"Invalid pending JSON-RPC response\",t)}Rt.assertIsPendingJsonRpcResponse=CRt;function RRt(e){return(0,Jn.is)(e,Rt.JsonRpcResponseStruct)}Rt.isJsonRpcResponse=RRt;function IRt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcResponseStruct,\"Invalid JSON-RPC response\",t)}Rt.assertIsJsonRpcResponse=IRt;function ORt(e){return(0,Jn.is)(e,Rt.JsonRpcSuccessStruct)}Rt.isJsonRpcSuccess=ORt;function kRt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcSuccessStruct,\"Invalid JSON-RPC success response\",t)}Rt.assertIsJsonRpcSuccess=kRt;function NRt(e){return(0,Jn.is)(e,Rt.JsonRpcFailureStruct)}Rt.isJsonRpcFailure=NRt;function PRt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcFailureStruct,\"Invalid JSON-RPC failure response\",t)}Rt.assertIsJsonRpcFailure=PRt;function MRt(e){return(0,Jn.is)(e,Rt.JsonRpcErrorStruct)}Rt.isJsonRpcError=MRt;function DRt(e,t){(0,rS.assertStruct)(e,Rt.JsonRpcErrorStruct,\"Invalid JSON-RPC error\",t)}Rt.assertIsJsonRpcError=DRt;function LRt(e){let{permitEmptyString:t,permitFractions:n,permitNull:r}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return i=>!!(typeof i==\"number\"&&(n||Number.isInteger(i))||typeof i==\"string\"&&(t||i.length>0)||r&&i===null)}Rt.getJsonRpcIdValidator=LRt});var $We=me(XWe=>{\"use strict\";f();Object.defineProperty(XWe,\"__esModule\",{value:!0})});var tVe=me((Bar,eVe)=>{f();var Xk=1e3,$k=Xk*60,eN=$k*60,hC=eN*24,BRt=hC*7,URt=hC*365.25;eVe.exports=function(e,t){t=t||{};var n=typeof e;if(n===\"string\"&&e.length>0)return FRt(e);if(n===\"number\"&&isFinite(e))return t.long?zRt(e):HRt(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function FRt(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\\\d+)?\\\\.?\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||\"ms\").toLowerCase();switch(r){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return n*URt;case\"weeks\":case\"week\":case\"w\":return n*BRt;case\"days\":case\"day\":case\"d\":return n*hC;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return n*eN;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return n*$k;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return n*Xk;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return n;default:return}}}}function HRt(e){var t=Math.abs(e);return t>=hC?Math.round(e/hC)+\"d\":t>=eN?Math.round(e/eN)+\"h\":t>=$k?Math.round(e/$k)+\"m\":t>=Xk?Math.round(e/Xk)+\"s\":e+\"ms\"}function zRt(e){var t=Math.abs(e);return t>=hC?qQ(e,t,hC,\"day\"):t>=eN?qQ(e,t,eN,\"hour\"):t>=$k?qQ(e,t,$k,\"minute\"):t>=Xk?qQ(e,t,Xk,\"second\"):e+\" ms\"}function qQ(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+\" \"+r+(o?\"s\":\"\")}});var rVe=me((Far,nVe)=>{f();function jRt(e){n.debug=n,n.default=n,n.coerce=u,n.disable=a,n.enable=o,n.enabled=c,n.humanize=tVe(),n.destroy=d,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function t(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(p){let h,g=null,y,v;function x(...R){if(!x.enabled)return;let S=x,M=Number(new Date),P=M-(h||M);S.diff=P,S.prev=h,S.curr=M,h=M,R[0]=n.coerce(R[0]),typeof R[0]!=\"string\"&&R.unshift(\"%O\");let z=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(Q,$)=>{if(Q===\"%%\")return\"%\";z++;let oe=n.formatters[$];if(typeof oe==\"function\"){let J=R[z];Q=oe.call(S,J),R.splice(z,1),z--}return Q}),n.formatArgs.call(S,R),(S.log||n.log).apply(S,R)}return x.namespace=p,x.useColors=n.useColors(),x.color=n.selectColor(p),x.extend=r,x.destroy=n.destroy,Object.defineProperty(x,\"enabled\",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(y!==n.namespaces&&(y=n.namespaces,v=n.enabled(p)),v),set:R=>{g=R}}),typeof n.init==\"function\"&&n.init(x),x}function r(p,h){let g=n(this.namespace+(typeof h>\"u\"?\":\":h)+p);return g.log=this.log,g}function o(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];let h=(typeof p==\"string\"?p:\"\").trim().replace(/\\\\s+/g,\",\").split(\",\").filter(Boolean);for(let g of h)g[0]===\"-\"?n.skips.push(g.slice(1)):n.names.push(g)}function i(p,h){let g=0,y=0,v=-1,x=0;for(;g<p.length;)if(y<h.length&&(h[y]===p[g]||h[y]===\"*\"))h[y]===\"*\"?(v=y,x=g,y++):(g++,y++);else if(v!==-1)y=v+1,x++,g=x;else return!1;for(;y<h.length&&h[y]===\"*\";)y++;return y===h.length}function a(){let p=[...n.names,...n.skips.map(h=>\"-\"+h)].join(\",\");return n.enable(\"\"),p}function c(p){for(let h of n.skips)if(i(p,h))return!1;for(let h of n.names)if(i(p,h))return!0;return!1}function u(p){return p instanceof Error?p.stack||p.message:p}function d(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.enable(n.load()),n}nVe.exports=jRt});var Khe=me((oh,KQ)=>{f();oh.formatArgs=VRt;oh.save=GRt;oh.load=qRt;oh.useColors=WRt;oh.storage=KRt();oh.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`.\"))}})();oh.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\"];function WRt(){if(typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs))return!0;if(typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\/(\\\\d+)/))return!1;let e;return typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\\\\/(\\\\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\\\/(\\\\d+)/)}function VRt(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+KQ.exports.humanize(this.diff),!this.useColors)return;let t=\"color: \"+this.color;e.splice(1,0,t,\"color: inherit\");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(n++,o===\"%c\"&&(r=n))}),e.splice(r,0,t)}oh.log=console.debug||console.log||(()=>{});function GRt(e){try{e?oh.storage.setItem(\"debug\",e):oh.storage.removeItem(\"debug\")}catch{}}function qRt(){let e;try{e=oh.storage.getItem(\"debug\")||oh.storage.getItem(\"DEBUG\")}catch{}return!e&&typeof process<\"u\"&&\"env\"in process&&(e=process.env.DEBUG),e}function KRt(){try{return localStorage}catch{}}KQ.exports=rVe()(oh);var{formatters:YRt}=KQ.exports;YRt.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var oVe=me(oS=>{\"use strict\";f();var ZRt=oS&&oS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oS,\"__esModule\",{value:!0});oS.createModuleLogger=oS.createProjectLogger=void 0;var QRt=ZRt(Khe()),JRt=(0,QRt.default)(\"metamask\");function XRt(e){return JRt.extend(e)}oS.createProjectLogger=XRt;function $Rt(e,t){return e.extend(t)}oS.createModuleLogger=$Rt});var aVe=me($a=>{\"use strict\";f();Object.defineProperty($a,\"__esModule\",{value:!0});$a.calculateNumberSize=$a.calculateStringSize=$a.isASCII=$a.isPlainObject=$a.ESCAPE_CHARACTERS_REGEXP=$a.JsonSize=$a.hasProperty=$a.isObject=$a.isNullOrUndefined=$a.isNonEmptyArray=void 0;function e4t(e){return Array.isArray(e)&&e.length>0}$a.isNonEmptyArray=e4t;function t4t(e){return e==null}$a.isNullOrUndefined=t4t;function n4t(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}$a.isObject=n4t;var r4t=(e,t)=>Object.hasOwnProperty.call(e,t);$a.hasProperty=r4t;var o4t;(function(e){e[e.Null=4]=\"Null\",e[e.Comma=1]=\"Comma\",e[e.Wrapper=1]=\"Wrapper\",e[e.True=4]=\"True\",e[e.False=5]=\"False\",e[e.Quote=1]=\"Quote\",e[e.Colon=1]=\"Colon\",e[e.Date=24]=\"Date\"})(o4t=$a.JsonSize||($a.JsonSize={}));$a.ESCAPE_CHARACTERS_REGEXP=/\"|\\\\\\\\|\\\\n|\\\\r|\\\\t/gu;function i4t(e){if(typeof e!=\"object\"||e===null)return!1;try{let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch{return!1}}$a.isPlainObject=i4t;function iVe(e){return e.charCodeAt(0)<=127}$a.isASCII=iVe;function a4t(e){var t;return e.split(\"\").reduce((r,o)=>iVe(o)?r+1:r+2,0)+((t=e.match($a.ESCAPE_CHARACTERS_REGEXP))!==null&&t!==void 0?t:[]).length}$a.calculateStringSize=a4t;function s4t(e){return e.toString().length}$a.calculateNumberSize=s4t});var sVe=me(Iv=>{\"use strict\";f();Object.defineProperty(Iv,\"__esModule\",{value:!0});Iv.hexToBigInt=Iv.hexToNumber=Iv.bigIntToHex=Iv.numberToHex=void 0;var tN=Sx(),jB=FB(),c4t=e=>((0,tN.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,tN.assert)(e>=0,\"Value must be a non-negative number.\"),(0,tN.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToHex` instead.\"),(0,jB.add0x)(e.toString(16)));Iv.numberToHex=c4t;var u4t=e=>((0,tN.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,tN.assert)(e>=0,\"Value must be a non-negative bigint.\"),(0,jB.add0x)(e.toString(16)));Iv.bigIntToHex=u4t;var l4t=e=>{(0,jB.assertIsHexString)(e);let t=parseInt(e,16);return(0,tN.assert)(Number.isSafeInteger(t),\"Value is not a safe integer. Use `hexToBigInt` instead.\"),t};Iv.hexToNumber=l4t;var d4t=e=>((0,jB.assertIsHexString)(e),BigInt((0,jB.add0x)(e)));Iv.hexToBigInt=d4t});var uVe=me(cVe=>{\"use strict\";f();Object.defineProperty(cVe,\"__esModule\",{value:!0})});var dVe=me(Tx=>{\"use strict\";f();Object.defineProperty(Tx,\"__esModule\",{value:!0});Tx.timeSince=Tx.inMilliseconds=Tx.Duration=void 0;var f4t;(function(e){e[e.Millisecond=1]=\"Millisecond\",e[e.Second=1e3]=\"Second\",e[e.Minute=6e4]=\"Minute\",e[e.Hour=36e5]=\"Hour\",e[e.Day=864e5]=\"Day\",e[e.Week=6048e5]=\"Week\",e[e.Year=31536e6]=\"Year\"})(f4t=Tx.Duration||(Tx.Duration={}));var p4t=e=>Number.isInteger(e)&&e>=0,lVe=(e,t)=>{if(!p4t(e))throw new Error(`\"${t}\" must be a non-negative integer. Received: \"${e}\".`)};function h4t(e,t){return lVe(e,\"count\"),e*t}Tx.inMilliseconds=h4t;function m4t(e){return lVe(e,\"timestamp\"),Date.now()-e}Tx.timeSince=m4t});var pVe=me(fVe=>{\"use strict\";f();Object.defineProperty(fVe,\"__esModule\",{value:!0})});var WB=me((esr,hVe)=>{\"use strict\";f();var g4t=\"2.0.0\",y4t=Number.MAX_SAFE_INTEGER||9007199254740991,b4t=16,v4t=250,w4t=[\"major\",\"premajor\",\"minor\",\"preminor\",\"patch\",\"prepatch\",\"prerelease\"];hVe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:b4t,MAX_SAFE_BUILD_LENGTH:v4t,MAX_SAFE_INTEGER:y4t,RELEASE_TYPES:w4t,SEMVER_SPEC_VERSION:g4t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var VB=me((nsr,mVe)=>{\"use strict\";f();var x4t=typeof process==\"object\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(\"SEMVER\",...e):()=>{};mVe.exports=x4t});var nN=me((Ov,gVe)=>{\"use strict\";f();var{MAX_SAFE_COMPONENT_LENGTH:Yhe,MAX_SAFE_BUILD_LENGTH:E4t,MAX_LENGTH:A4t}=WB(),_4t=VB();Ov=gVe.exports={};var S4t=Ov.re=[],T4t=Ov.safeRe=[],an=Ov.src=[],C4t=Ov.safeSrc=[],sn=Ov.t={},R4t=0,Zhe=\"[a-zA-Z0-9-]\",I4t=[[\"\\\\\\\\s\",1],[\"\\\\\\\\d\",A4t],[Zhe,E4t]],O4t=e=>{for(let[t,n]of I4t)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},xr=(e,t,n)=>{let r=O4t(t),o=R4t++;_4t(e,o,t),sn[e]=o,an[o]=t,C4t[o]=r,S4t[o]=new RegExp(t,n?\"g\":void 0),T4t[o]=new RegExp(r,n?\"g\":void 0)};xr(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\\\\\d*\");xr(\"NUMERICIDENTIFIERLOOSE\",\"\\\\\\\\d+\");xr(\"NONNUMERICIDENTIFIER\",`\\\\\\\\d*[a-zA-Z-]${Zhe}*`);xr(\"MAINVERSION\",`(${an[sn.NUMERICIDENTIFIER]})\\\\\\\\.(${an[sn.NUMERICIDENTIFIER]})\\\\\\\\.(${an[sn.NUMERICIDENTIFIER]})`);xr(\"MAINVERSIONLOOSE\",`(${an[sn.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${an[sn.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${an[sn.NUMERICIDENTIFIERLOOSE]})`);xr(\"PRERELEASEIDENTIFIER\",`(?:${an[sn.NONNUMERICIDENTIFIER]}|${an[sn.NUMERICIDENTIFIER]})`);xr(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${an[sn.NONNUMERICIDENTIFIER]}|${an[sn.NUMERICIDENTIFIERLOOSE]})`);xr(\"PRERELEASE\",`(?:-(${an[sn.PRERELEASEIDENTIFIER]}(?:\\\\\\\\.${an[sn.PRERELEASEIDENTIFIER]})*))`);xr(\"PRERELEASELOOSE\",`(?:-?(${an[sn.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\\\\\.${an[sn.PRERELEASEIDENTIFIERLOOSE]})*))`);xr(\"BUILDIDENTIFIER\",`${Zhe}+`);xr(\"BUILD\",`(?:\\\\\\\\+(${an[sn.BUILDIDENTIFIER]}(?:\\\\\\\\.${an[sn.BUILDIDENTIFIER]})*))`);xr(\"FULLPLAIN\",`v?${an[sn.MAINVERSION]}${an[sn.PRERELEASE]}?${an[sn.BUILD]}?`);xr(\"FULL\",`^${an[sn.FULLPLAIN]}$`);xr(\"LOOSEPLAIN\",`[v=\\\\\\\\s]*${an[sn.MAINVERSIONLOOSE]}${an[sn.PRERELEASELOOSE]}?${an[sn.BUILD]}?`);xr(\"LOOSE\",`^${an[sn.LOOSEPLAIN]}$`);xr(\"GTLT\",\"((?:<|>)?=?)\");xr(\"XRANGEIDENTIFIERLOOSE\",`${an[sn.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\\\\\*`);xr(\"XRANGEIDENTIFIER\",`${an[sn.NUMERICIDENTIFIER]}|x|X|\\\\\\\\*`);xr(\"XRANGEPLAIN\",`[v=\\\\\\\\s]*(${an[sn.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${an[sn.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${an[sn.XRANGEIDENTIFIER]})(?:${an[sn.PRERELEASE]})?${an[sn.BUILD]}?)?)?`);xr(\"XRANGEPLAINLOOSE\",`[v=\\\\\\\\s]*(${an[sn.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${an[sn.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${an[sn.XRANGEIDENTIFIERLOOSE]})(?:${an[sn.PRERELEASELOOSE]})?${an[sn.BUILD]}?)?)?`);xr(\"XRANGE\",`^${an[sn.GTLT]}\\\\\\\\s*${an[sn.XRANGEPLAIN]}$`);xr(\"XRANGELOOSE\",`^${an[sn.GTLT]}\\\\\\\\s*${an[sn.XRANGEPLAINLOOSE]}$`);xr(\"COERCEPLAIN\",`(^|[^\\\\\\\\d])(\\\\\\\\d{1,${Yhe}})(?:\\\\\\\\.(\\\\\\\\d{1,${Yhe}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${Yhe}}))?`);xr(\"COERCE\",`${an[sn.COERCEPLAIN]}(?:$|[^\\\\\\\\d])`);xr(\"COERCEFULL\",an[sn.COERCEPLAIN]+`(?:${an[sn.PRERELEASE]})?(?:${an[sn.BUILD]})?(?:$|[^\\\\\\\\d])`);xr(\"COERCERTL\",an[sn.COERCE],!0);xr(\"COERCERTLFULL\",an[sn.COERCEFULL],!0);xr(\"LONETILDE\",\"(?:~>?)\");xr(\"TILDETRIM\",`(\\\\\\\\s*)${an[sn.LONETILDE]}\\\\\\\\s+`,!0);Ov.tildeTrimReplace=\"$1~\";xr(\"TILDE\",`^${an[sn.LONETILDE]}${an[sn.XRANGEPLAIN]}$`);xr(\"TILDELOOSE\",`^${an[sn.LONETILDE]}${an[sn.XRANGEPLAINLOOSE]}$`);xr(\"LONECARET\",\"(?:\\\\\\\\^)\");xr(\"CARETTRIM\",`(\\\\\\\\s*)${an[sn.LONECARET]}\\\\\\\\s+`,!0);Ov.caretTrimReplace=\"$1^\";xr(\"CARET\",`^${an[sn.LONECARET]}${an[sn.XRANGEPLAIN]}$`);xr(\"CARETLOOSE\",`^${an[sn.LONECARET]}${an[sn.XRANGEPLAINLOOSE]}$`);xr(\"COMPARATORLOOSE\",`^${an[sn.GTLT]}\\\\\\\\s*(${an[sn.LOOSEPLAIN]})$|^$`);xr(\"COMPARATOR\",`^${an[sn.GTLT]}\\\\\\\\s*(${an[sn.FULLPLAIN]})$|^$`);xr(\"COMPARATORTRIM\",`(\\\\\\\\s*)${an[sn.GTLT]}\\\\\\\\s*(${an[sn.LOOSEPLAIN]}|${an[sn.XRANGEPLAIN]})`,!0);Ov.comparatorTrimReplace=\"$1$2$3\";xr(\"HYPHENRANGE\",`^\\\\\\\\s*(${an[sn.XRANGEPLAIN]})\\\\\\\\s+-\\\\\\\\s+(${an[sn.XRANGEPLAIN]})\\\\\\\\s*$`);xr(\"HYPHENRANGELOOSE\",`^\\\\\\\\s*(${an[sn.XRANGEPLAINLOOSE]})\\\\\\\\s+-\\\\\\\\s+(${an[sn.XRANGEPLAINLOOSE]})\\\\\\\\s*$`);xr(\"STAR\",\"(<|>)?=?\\\\\\\\s*\\\\\\\\*\");xr(\"GTE0\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0\\\\\\\\s*$\");xr(\"GTE0PRE\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0-0\\\\\\\\s*$\")});var YQ=me((isr,yVe)=>{\"use strict\";f();var k4t=Object.freeze({loose:!0}),N4t=Object.freeze({}),P4t=e=>e?typeof e!=\"object\"?k4t:e:N4t;yVe.exports=P4t});var Qhe=me((ssr,wVe)=>{\"use strict\";f();var bVe=/^[0-9]+$/,vVe=(e,t)=>{let n=bVe.test(e),r=bVe.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},M4t=(e,t)=>vVe(t,e);wVe.exports={compareIdentifiers:vVe,rcompareIdentifiers:M4t}});var Nd=me((usr,EVe)=>{\"use strict\";f();var ZQ=VB(),{MAX_LENGTH:xVe,MAX_SAFE_INTEGER:QQ}=WB(),{safeRe:JQ,t:XQ}=nN(),D4t=YQ(),{compareIdentifiers:rN}=Qhe(),Jhe=class e{constructor(t,n){if(n=D4t(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!=\"string\")throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof t}\".`);if(t.length>xVe)throw new TypeError(`version is longer than ${xVe} characters`);ZQ(\"SemVer\",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?JQ[XQ.LOOSE]:JQ[XQ.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>QQ||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>QQ||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>QQ||this.patch<0)throw new TypeError(\"Invalid patch version\");r[4]?this.prerelease=r[4].split(\".\").map(o=>{if(/^[0-9]+$/.test(o)){let i=+o;if(i>=0&&i<QQ)return i}return o}):this.prerelease=[],this.build=r[5]?r[5].split(\".\"):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(\".\")}`),this.version}toString(){return this.version}compare(t){if(ZQ(\"SemVer.compare\",this.version,this.options,t),!(t instanceof e)){if(typeof t==\"string\"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),rN(this.major,t.major)||rN(this.minor,t.minor)||rN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],o=t.prerelease[n];if(ZQ(\"prerelease compare\",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return rN(r,o)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let r=this.build[n],o=t.build[n];if(ZQ(\"build compare\",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return rN(r,o)}while(++n)}inc(t,n,r){if(t.startsWith(\"pre\")){if(!n&&r===!1)throw new Error(\"invalid increment argument: identifier is empty\");if(n){let o=`-${n}`.match(this.options.loose?JQ[XQ.PRERELEASELOOSE]:JQ[XQ.PRERELEASE]);if(!o||o[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case\"premajor\":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(\"pre\",n,r);break;case\"preminor\":this.prerelease.length=0,this.patch=0,this.minor++,this.inc(\"pre\",n,r);break;case\"prepatch\":this.prerelease.length=0,this.inc(\"patch\",n,r),this.inc(\"pre\",n,r);break;case\"prerelease\":this.prerelease.length===0&&this.inc(\"patch\",n,r),this.inc(\"pre\",n,r);break;case\"release\":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case\"major\":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case\"minor\":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case\"patch\":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case\"pre\":{let o=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]==\"number\"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(\".\")&&r===!1)throw new Error(\"invalid increment argument: identifier already exists\");this.prerelease.push(o)}}if(n){let i=[n,o];r===!1&&(i=[n]),rN(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(\".\")}`),this}};EVe.exports=Jhe});var mC=me((dsr,_Ve)=>{\"use strict\";f();var AVe=Nd(),L4t=(e,t,n=!1)=>{if(e instanceof AVe)return e;try{return new AVe(e,t)}catch(r){if(!n)return null;throw r}};_Ve.exports=L4t});var TVe=me((psr,SVe)=>{\"use strict\";f();var B4t=mC(),U4t=(e,t)=>{let n=B4t(e,t);return n?n.version:null};SVe.exports=U4t});var RVe=me((msr,CVe)=>{\"use strict\";f();var F4t=mC(),H4t=(e,t)=>{let n=F4t(e.trim().replace(/^[=v]+/,\"\"),t);return n?n.version:null};CVe.exports=H4t});var kVe=me((ysr,OVe)=>{\"use strict\";f();var IVe=Nd(),z4t=(e,t,n,r,o)=>{typeof n==\"string\"&&(o=r,r=n,n=void 0);try{return new IVe(e instanceof IVe?e.version:e,n).inc(t,r,o).version}catch{return null}};OVe.exports=z4t});var MVe=me((vsr,PVe)=>{\"use strict\";f();var NVe=mC(),j4t=(e,t)=>{let n=NVe(e,null,!0),r=NVe(t,null,!0),o=n.compare(r);if(o===0)return null;let i=o>0,a=i?n:r,c=i?r:n,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return\"major\";if(c.compareMain(a)===0)return c.minor&&!c.patch?\"minor\":\"patch\"}let p=u?\"pre\":\"\";return n.major!==r.major?p+\"major\":n.minor!==r.minor?p+\"minor\":n.patch!==r.patch?p+\"patch\":\"prerelease\"};PVe.exports=j4t});var LVe=me((xsr,DVe)=>{\"use strict\";f();var W4t=Nd(),V4t=(e,t)=>new W4t(e,t).major;DVe.exports=V4t});var UVe=me((Asr,BVe)=>{\"use strict\";f();var G4t=Nd(),q4t=(e,t)=>new G4t(e,t).minor;BVe.exports=q4t});var HVe=me((Ssr,FVe)=>{\"use strict\";f();var K4t=Nd(),Y4t=(e,t)=>new K4t(e,t).patch;FVe.exports=Y4t});var jVe=me((Csr,zVe)=>{\"use strict\";f();var Z4t=mC(),Q4t=(e,t)=>{let n=Z4t(e,t);return n&&n.prerelease.length?n.prerelease:null};zVe.exports=Q4t});var fg=me((Isr,VVe)=>{\"use strict\";f();var WVe=Nd(),J4t=(e,t,n)=>new WVe(e,n).compare(new WVe(t,n));VVe.exports=J4t});var qVe=me((ksr,GVe)=>{\"use strict\";f();var X4t=fg(),$4t=(e,t,n)=>X4t(t,e,n);GVe.exports=$4t});var YVe=me((Psr,KVe)=>{\"use strict\";f();var eIt=fg(),tIt=(e,t)=>eIt(e,t,!0);KVe.exports=tIt});var $Q=me((Dsr,QVe)=>{\"use strict\";f();var ZVe=Nd(),nIt=(e,t,n)=>{let r=new ZVe(e,n),o=new ZVe(t,n);return r.compare(o)||r.compareBuild(o)};QVe.exports=nIt});var XVe=me((Bsr,JVe)=>{\"use strict\";f();var rIt=$Q(),oIt=(e,t)=>e.sort((n,r)=>rIt(n,r,t));JVe.exports=oIt});var eGe=me((Fsr,$Ve)=>{\"use strict\";f();var iIt=$Q(),aIt=(e,t)=>e.sort((n,r)=>iIt(r,n,t));$Ve.exports=aIt});var GB=me((zsr,tGe)=>{\"use strict\";f();var sIt=fg(),cIt=(e,t,n)=>sIt(e,t,n)>0;tGe.exports=cIt});var eJ=me((Wsr,nGe)=>{\"use strict\";f();var uIt=fg(),lIt=(e,t,n)=>uIt(e,t,n)<0;nGe.exports=lIt});var Xhe=me((Gsr,rGe)=>{\"use strict\";f();var dIt=fg(),fIt=(e,t,n)=>dIt(e,t,n)===0;rGe.exports=fIt});var $he=me((Ksr,oGe)=>{\"use strict\";f();var pIt=fg(),hIt=(e,t,n)=>pIt(e,t,n)!==0;oGe.exports=hIt});var tJ=me((Zsr,iGe)=>{\"use strict\";f();var mIt=fg(),gIt=(e,t,n)=>mIt(e,t,n)>=0;iGe.exports=gIt});var nJ=me((Jsr,aGe)=>{\"use strict\";f();var yIt=fg(),bIt=(e,t,n)=>yIt(e,t,n)<=0;aGe.exports=bIt});var eme=me(($sr,sGe)=>{\"use strict\";f();var vIt=Xhe(),wIt=$he(),xIt=GB(),EIt=tJ(),AIt=eJ(),_It=nJ(),SIt=(e,t,n,r)=>{switch(t){case\"===\":return typeof e==\"object\"&&(e=e.version),typeof n==\"object\"&&(n=n.version),e===n;case\"!==\":return typeof e==\"object\"&&(e=e.version),typeof n==\"object\"&&(n=n.version),e!==n;case\"\":case\"=\":case\"==\":return vIt(e,n,r);case\"!=\":return wIt(e,n,r);case\">\":return xIt(e,n,r);case\">=\":return EIt(e,n,r);case\"<\":return AIt(e,n,r);case\"<=\":return _It(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};sGe.exports=SIt});var uGe=me((tcr,cGe)=>{\"use strict\";f();var TIt=Nd(),CIt=mC(),{safeRe:rJ,t:oJ}=nN(),RIt=(e,t)=>{if(e instanceof TIt)return e;if(typeof e==\"number\"&&(e=String(e)),typeof e!=\"string\")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?rJ[oJ.COERCEFULL]:rJ[oJ.COERCE]);else{let u=t.includePrerelease?rJ[oJ.COERCERTLFULL]:rJ[oJ.COERCERTL],d;for(;(d=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||d.index+d[0].length!==n.index+n[0].length)&&(n=d),u.lastIndex=d.index+d[1].length+d[2].length;u.lastIndex=-1}if(n===null)return null;let r=n[2],o=n[3]||\"0\",i=n[4]||\"0\",a=t.includePrerelease&&n[5]?`-${n[5]}`:\"\",c=t.includePrerelease&&n[6]?`+${n[6]}`:\"\";return CIt(`${r}.${o}.${i}${a}${c}`,t)};cGe.exports=RIt});var dGe=me((rcr,lGe)=>{\"use strict\";f();var tme=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,n)}return this}};lGe.exports=tme});var pg=me((icr,mGe)=>{\"use strict\";f();var IIt=/\\\\s+/g,nme=class e{constructor(t,n){if(n=kIt(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof rme)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(IIt,\" \"),this.set=this.raw.split(\"||\").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(o=>!pGe(o[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&UIt(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=\"\";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+=\"||\");let n=this.set[t];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=\" \"),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let r=((this.options.includePrerelease&&LIt)|(this.options.loose&&BIt))+\":\"+t,o=fGe.get(r);if(o)return o;let i=this.options.loose,a=i?ih[qf.HYPHENRANGELOOSE]:ih[qf.HYPHENRANGE];t=t.replace(a,YIt(this.options.includePrerelease)),Da(\"hyphen replace\",t),t=t.replace(ih[qf.COMPARATORTRIM],PIt),Da(\"comparator trim\",t),t=t.replace(ih[qf.TILDETRIM],MIt),Da(\"tilde trim\",t),t=t.replace(ih[qf.CARETTRIM],DIt),Da(\"caret trim\",t);let c=t.split(\" \").map(h=>FIt(h,this.options)).join(\" \").split(/\\\\s+/).map(h=>KIt(h,this.options));i&&(c=c.filter(h=>(Da(\"loose invalid filter\",h,this.options),!!h.match(ih[qf.COMPARATORLOOSE])))),Da(\"range list\",c);let u=new Map,d=c.map(h=>new rme(h,this.options));for(let h of d){if(pGe(h))return[h];u.set(h.value,h)}u.size>1&&u.has(\"\")&&u.delete(\"\");let p=[...u.values()];return fGe.set(r,p),p}intersects(t,n){if(!(t instanceof e))throw new TypeError(\"a Range is required\");return this.set.some(r=>hGe(r,n)&&t.set.some(o=>hGe(o,n)&&r.every(i=>o.every(a=>i.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t==\"string\")try{t=new NIt(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(ZIt(this.set[n],t,this.options))return!0;return!1}};mGe.exports=nme;var OIt=dGe(),fGe=new OIt,kIt=YQ(),rme=qB(),Da=VB(),NIt=Nd(),{safeRe:ih,t:qf,comparatorTrimReplace:PIt,tildeTrimReplace:MIt,caretTrimReplace:DIt}=nN(),{FLAG_INCLUDE_PRERELEASE:LIt,FLAG_LOOSE:BIt}=WB(),pGe=e=>e.value===\"<0.0.0-0\",UIt=e=>e.value===\"\",hGe=(e,t)=>{let n=!0,r=e.slice(),o=r.pop();for(;n&&r.length;)n=r.every(i=>o.intersects(i,t)),o=r.pop();return n},FIt=(e,t)=>(Da(\"comp\",e,t),e=jIt(e,t),Da(\"caret\",e),e=HIt(e,t),Da(\"tildes\",e),e=VIt(e,t),Da(\"xrange\",e),e=qIt(e,t),Da(\"stars\",e),e),Kf=e=>!e||e.toLowerCase()===\"x\"||e===\"*\",HIt=(e,t)=>e.trim().split(/\\\\s+/).map(n=>zIt(n,t)).join(\" \"),zIt=(e,t)=>{let n=t.loose?ih[qf.TILDELOOSE]:ih[qf.TILDE];return e.replace(n,(r,o,i,a,c)=>{Da(\"tilde\",e,r,o,i,a,c);let u;return Kf(o)?u=\"\":Kf(i)?u=`>=${o}.0.0 <${+o+1}.0.0-0`:Kf(a)?u=`>=${o}.${i}.0 <${o}.${+i+1}.0-0`:c?(Da(\"replaceTilde pr\",c),u=`>=${o}.${i}.${a}-${c} <${o}.${+i+1}.0-0`):u=`>=${o}.${i}.${a} <${o}.${+i+1}.0-0`,Da(\"tilde return\",u),u})},jIt=(e,t)=>e.trim().split(/\\\\s+/).map(n=>WIt(n,t)).join(\" \"),WIt=(e,t)=>{Da(\"caret\",e,t);let n=t.loose?ih[qf.CARETLOOSE]:ih[qf.CARET],r=t.includePrerelease?\"-0\":\"\";return e.replace(n,(o,i,a,c,u)=>{Da(\"caret\",e,o,i,a,c,u);let d;return Kf(i)?d=\"\":Kf(a)?d=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Kf(c)?i===\"0\"?d=`>=${i}.${a}.0${r} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.0${r} <${+i+1}.0.0-0`:u?(Da(\"replaceCaret pr\",u),i===\"0\"?a===\"0\"?d=`>=${i}.${a}.${c}-${u} <${i}.${a}.${+c+1}-0`:d=`>=${i}.${a}.${c}-${u} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.${c}-${u} <${+i+1}.0.0-0`):(Da(\"no pr\"),i===\"0\"?a===\"0\"?d=`>=${i}.${a}.${c}${r} <${i}.${a}.${+c+1}-0`:d=`>=${i}.${a}.${c}${r} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.${c} <${+i+1}.0.0-0`),Da(\"caret return\",d),d})},VIt=(e,t)=>(Da(\"replaceXRanges\",e,t),e.split(/\\\\s+/).map(n=>GIt(n,t)).join(\" \")),GIt=(e,t)=>{e=e.trim();let n=t.loose?ih[qf.XRANGELOOSE]:ih[qf.XRANGE];return e.replace(n,(r,o,i,a,c,u)=>{Da(\"xRange\",e,r,o,i,a,c,u);let d=Kf(i),p=d||Kf(a),h=p||Kf(c),g=h;return o===\"=\"&&g&&(o=\"\"),u=t.includePrerelease?\"-0\":\"\",d?o===\">\"||o===\"<\"?r=\"<0.0.0-0\":r=\"*\":o&&g?(p&&(a=0),c=0,o===\">\"?(o=\">=\",p?(i=+i+1,a=0,c=0):(a=+a+1,c=0)):o===\"<=\"&&(o=\"<\",p?i=+i+1:a=+a+1),o===\"<\"&&(u=\"-0\"),r=`${o+i}.${a}.${c}${u}`):p?r=`>=${i}.0.0${u} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${a}.0${u} <${i}.${+a+1}.0-0`),Da(\"xRange return\",r),r})},qIt=(e,t)=>(Da(\"replaceStars\",e,t),e.trim().replace(ih[qf.STAR],\"\")),KIt=(e,t)=>(Da(\"replaceGTE0\",e,t),e.trim().replace(ih[t.includePrerelease?qf.GTE0PRE:qf.GTE0],\"\")),YIt=e=>(t,n,r,o,i,a,c,u,d,p,h,g)=>(Kf(r)?n=\"\":Kf(o)?n=`>=${r}.0.0${e?\"-0\":\"\"}`:Kf(i)?n=`>=${r}.${o}.0${e?\"-0\":\"\"}`:a?n=`>=${n}`:n=`>=${n}${e?\"-0\":\"\"}`,Kf(d)?u=\"\":Kf(p)?u=`<${+d+1}.0.0-0`:Kf(h)?u=`<${d}.${+p+1}.0-0`:g?u=`<=${d}.${p}.${h}-${g}`:e?u=`<${d}.${p}.${+h+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),ZIt=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let r=0;r<e.length;r++)if(Da(e[r].semver),e[r].semver!==rme.ANY&&e[r].semver.prerelease.length>0){let o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var qB=me((scr,xGe)=>{\"use strict\";f();var KB=Symbol(\"SemVer ANY\"),ame=class e{static get ANY(){return KB}constructor(t,n){if(n=gGe(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\\\\s+/).join(\" \"),ime(\"comparator\",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===KB?this.value=\"\":this.value=this.operator+this.semver.version,ime(\"comp\",this)}parse(t){let n=this.options.loose?yGe[bGe.COMPARATORLOOSE]:yGe[bGe.COMPARATOR],r=t.match(n);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=r[1]!==void 0?r[1]:\"\",this.operator===\"=\"&&(this.operator=\"\"),r[2]?this.semver=new vGe(r[2],this.options.loose):this.semver=KB}toString(){return this.value}test(t){if(ime(\"Comparator.test\",t,this.options.loose),this.semver===KB||t===KB)return!0;if(typeof t==\"string\")try{t=new vGe(t,this.options)}catch{return!1}return ome(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError(\"a Comparator is required\");return this.operator===\"\"?this.value===\"\"?!0:new wGe(t.value,n).test(this.value):t.operator===\"\"?t.value===\"\"?!0:new wGe(this.value,n).test(t.semver):(n=gGe(n),n.includePrerelease&&(this.value===\"<0.0.0-0\"||t.value===\"<0.0.0-0\")||!n.includePrerelease&&(this.value.startsWith(\"<0.0.0\")||t.value.startsWith(\"<0.0.0\"))?!1:!!(this.operator.startsWith(\">\")&&t.operator.startsWith(\">\")||this.operator.startsWith(\"<\")&&t.operator.startsWith(\"<\")||this.semver.version===t.semver.version&&this.operator.includes(\"=\")&&t.operator.includes(\"=\")||ome(this.semver,\"<\",t.semver,n)&&this.operator.startsWith(\">\")&&t.operator.startsWith(\"<\")||ome(this.semver,\">\",t.semver,n)&&this.operator.startsWith(\"<\")&&t.operator.startsWith(\">\")))}};xGe.exports=ame;var gGe=YQ(),{safeRe:yGe,t:bGe}=nN(),ome=eme(),ime=VB(),vGe=Nd(),wGe=pg()});var YB=me((ucr,EGe)=>{\"use strict\";f();var QIt=pg(),JIt=(e,t,n)=>{try{t=new QIt(t,n)}catch{return!1}return t.test(e)};EGe.exports=JIt});var _Ge=me((dcr,AGe)=>{\"use strict\";f();var XIt=pg(),$It=(e,t)=>new XIt(e,t).set.map(n=>n.map(r=>r.value).join(\" \").trim().split(\" \"));AGe.exports=$It});var TGe=me((pcr,SGe)=>{\"use strict\";f();var e8t=Nd(),t8t=pg(),n8t=(e,t,n)=>{let r=null,o=null,i=null;try{i=new t8t(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===-1)&&(r=a,o=new e8t(r,n))}),r};SGe.exports=n8t});var RGe=me((mcr,CGe)=>{\"use strict\";f();var r8t=Nd(),o8t=pg(),i8t=(e,t,n)=>{let r=null,o=null,i=null;try{i=new o8t(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===1)&&(r=a,o=new r8t(r,n))}),r};CGe.exports=i8t});var kGe=me((ycr,OGe)=>{\"use strict\";f();var sme=Nd(),a8t=pg(),IGe=GB(),s8t=(e,t)=>{e=new a8t(e,t);let n=new sme(\"0.0.0\");if(e.test(n)||(n=new sme(\"0.0.0-0\"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){let o=e.set[r],i=null;o.forEach(a=>{let c=new sme(a.semver.version);switch(a.operator){case\">\":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case\"\":case\">=\":(!i||IGe(c,i))&&(i=c);break;case\"<\":case\"<=\":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!n||IGe(n,i))&&(n=i)}return n&&e.test(n)?n:null};OGe.exports=s8t});var PGe=me((vcr,NGe)=>{\"use strict\";f();var c8t=pg(),u8t=(e,t)=>{try{return new c8t(e,t).range||\"*\"}catch{return null}};NGe.exports=u8t});var iJ=me((xcr,BGe)=>{\"use strict\";f();var l8t=Nd(),LGe=qB(),{ANY:d8t}=LGe,f8t=pg(),p8t=YB(),MGe=GB(),DGe=eJ(),h8t=nJ(),m8t=tJ(),g8t=(e,t,n,r)=>{e=new l8t(e,r),t=new f8t(t,r);let o,i,a,c,u;switch(n){case\">\":o=MGe,i=h8t,a=DGe,c=\">\",u=\">=\";break;case\"<\":o=DGe,i=m8t,a=MGe,c=\"<\",u=\"<=\";break;default:throw new TypeError(\\'Must provide a hilo val of \"<\" or \">\"\\')}if(p8t(e,t,r))return!1;for(let d=0;d<t.set.length;++d){let p=t.set[d],h=null,g=null;if(p.forEach(y=>{y.semver===d8t&&(y=new LGe(\">=0.0.0\")),h=h||y,g=g||y,o(y.semver,h.semver,r)?h=y:a(y.semver,g.semver,r)&&(g=y)}),h.operator===c||h.operator===u||(!g.operator||g.operator===c)&&i(e,g.semver))return!1;if(g.operator===u&&a(e,g.semver))return!1}return!0};BGe.exports=g8t});var FGe=me((Acr,UGe)=>{\"use strict\";f();var y8t=iJ(),b8t=(e,t,n)=>y8t(e,t,\">\",n);UGe.exports=b8t});var zGe=me((Scr,HGe)=>{\"use strict\";f();var v8t=iJ(),w8t=(e,t,n)=>v8t(e,t,\"<\",n);HGe.exports=w8t});var VGe=me((Ccr,WGe)=>{\"use strict\";f();var jGe=pg(),x8t=(e,t,n)=>(e=new jGe(e,n),t=new jGe(t,n),e.intersects(t,n));WGe.exports=x8t});var qGe=me((Icr,GGe)=>{\"use strict\";f();var E8t=YB(),A8t=fg();GGe.exports=(e,t,n)=>{let r=[],o=null,i=null,a=e.sort((p,h)=>A8t(p,h,n));for(let p of a)E8t(p,t,n)?(i=p,o||(o=p)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);let c=[];for(let[p,h]of r)p===h?c.push(p):!h&&p===a[0]?c.push(\"*\"):h?p===a[0]?c.push(`<=${h}`):c.push(`${p} - ${h}`):c.push(`>=${p}`);let u=c.join(\" || \"),d=typeof t.raw==\"string\"?t.raw:String(t);return u.length<d.length?u:t}});var XGe=me((kcr,JGe)=>{\"use strict\";f();var KGe=pg(),ume=qB(),{ANY:cme}=ume,ZB=YB(),lme=fg(),_8t=(e,t,n={})=>{if(e===t)return!0;e=new KGe(e,n),t=new KGe(t,n);let r=!1;e:for(let o of e.set){for(let i of t.set){let a=T8t(o,i,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},S8t=[new ume(\">=0.0.0-0\")],YGe=[new ume(\">=0.0.0\")],T8t=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===cme){if(t.length===1&&t[0].semver===cme)return!0;n.includePrerelease?e=S8t:e=YGe}if(t.length===1&&t[0].semver===cme){if(n.includePrerelease)return!0;t=YGe}let r=new Set,o,i;for(let y of e)y.operator===\">\"||y.operator===\">=\"?o=ZGe(o,y,n):y.operator===\"<\"||y.operator===\"<=\"?i=QGe(i,y,n):r.add(y.semver);if(r.size>1)return null;let a;if(o&&i){if(a=lme(o.semver,i.semver,n),a>0)return null;if(a===0&&(o.operator!==\">=\"||i.operator!==\"<=\"))return null}for(let y of r){if(o&&!ZB(y,String(o),n)||i&&!ZB(y,String(i),n))return null;for(let v of t)if(!ZB(y,String(v),n))return!1;return!0}let c,u,d,p,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,g=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;h&&h.prerelease.length===1&&i.operator===\"<\"&&h.prerelease[0]===0&&(h=!1);for(let y of t){if(p=p||y.operator===\">\"||y.operator===\">=\",d=d||y.operator===\"<\"||y.operator===\"<=\",o){if(g&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===g.major&&y.semver.minor===g.minor&&y.semver.patch===g.patch&&(g=!1),y.operator===\">\"||y.operator===\">=\"){if(c=ZGe(o,y,n),c===y&&c!==o)return!1}else if(o.operator===\">=\"&&!ZB(o.semver,String(y),n))return!1}if(i){if(h&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===h.major&&y.semver.minor===h.minor&&y.semver.patch===h.patch&&(h=!1),y.operator===\"<\"||y.operator===\"<=\"){if(u=QGe(i,y,n),u===y&&u!==i)return!1}else if(i.operator===\"<=\"&&!ZB(i.semver,String(y),n))return!1}if(!y.operator&&(i||o)&&a!==0)return!1}return!(o&&d&&!i&&a!==0||i&&p&&!o&&a!==0||g||h)},ZGe=(e,t,n)=>{if(!e)return t;let r=lme(e.semver,t.semver,n);return r>0?e:r<0||t.operator===\">\"&&e.operator===\">=\"?t:e},QGe=(e,t,n)=>{if(!e)return t;let r=lme(e.semver,t.semver,n);return r<0?e:r>0||t.operator===\"<\"&&e.operator===\"<=\"?t:e};JGe.exports=_8t});var nqe=me((Pcr,tqe)=>{\"use strict\";f();var dme=nN(),$Ge=WB(),C8t=Nd(),eqe=Qhe(),R8t=mC(),I8t=TVe(),O8t=RVe(),k8t=kVe(),N8t=MVe(),P8t=LVe(),M8t=UVe(),D8t=HVe(),L8t=jVe(),B8t=fg(),U8t=qVe(),F8t=YVe(),H8t=$Q(),z8t=XVe(),j8t=eGe(),W8t=GB(),V8t=eJ(),G8t=Xhe(),q8t=$he(),K8t=tJ(),Y8t=nJ(),Z8t=eme(),Q8t=uGe(),J8t=qB(),X8t=pg(),$8t=YB(),eOt=_Ge(),tOt=TGe(),nOt=RGe(),rOt=kGe(),oOt=PGe(),iOt=iJ(),aOt=FGe(),sOt=zGe(),cOt=VGe(),uOt=qGe(),lOt=XGe();tqe.exports={parse:R8t,valid:I8t,clean:O8t,inc:k8t,diff:N8t,major:P8t,minor:M8t,patch:D8t,prerelease:L8t,compare:B8t,rcompare:U8t,compareLoose:F8t,compareBuild:H8t,sort:z8t,rsort:j8t,gt:W8t,lt:V8t,eq:G8t,neq:q8t,gte:K8t,lte:Y8t,cmp:Z8t,coerce:Q8t,Comparator:J8t,Range:X8t,satisfies:$8t,toComparators:eOt,maxSatisfying:tOt,minSatisfying:nOt,minVersion:rOt,validRange:oOt,outside:iOt,gtr:aOt,ltr:sOt,intersects:cOt,simplifyRange:uOt,subset:lOt,SemVer:C8t,re:dme.re,src:dme.src,tokens:dme.t,SEMVER_SPEC_VERSION:$Ge.SEMVER_SPEC_VERSION,RELEASE_TYPES:$Ge.RELEASE_TYPES,compareIdentifiers:eqe.compareIdentifiers,rcompareIdentifiers:eqe.rcompareIdentifiers}});var oqe=me(es=>{\"use strict\";f();Object.defineProperty(es,\"__esModule\",{value:!0});es.satisfiesVersionRange=es.gtRange=es.gtVersion=es.assertIsSemVerRange=es.assertIsSemVerVersion=es.isValidSemVerRange=es.isValidSemVerVersion=es.VersionRangeStruct=es.VersionStruct=void 0;var QB=nqe(),oN=(nS(),qo(tS)),rqe=Sx();es.VersionStruct=(0,oN.refine)((0,oN.string)(),\"Version\",e=>(0,QB.valid)(e)===null?`Expected SemVer version, got \"${e}\"`:!0);es.VersionRangeStruct=(0,oN.refine)((0,oN.string)(),\"Version range\",e=>(0,QB.validRange)(e)===null?`Expected SemVer range, got \"${e}\"`:!0);function dOt(e){return(0,oN.is)(e,es.VersionStruct)}es.isValidSemVerVersion=dOt;function fOt(e){return(0,oN.is)(e,es.VersionRangeStruct)}es.isValidSemVerRange=fOt;function pOt(e){(0,rqe.assertStruct)(e,es.VersionStruct)}es.assertIsSemVerVersion=pOt;function hOt(e){(0,rqe.assertStruct)(e,es.VersionRangeStruct)}es.assertIsSemVerRange=hOt;function mOt(e,t){return(0,QB.gt)(e,t)}es.gtVersion=mOt;function gOt(e,t){return(0,QB.gtr)(e,t)}es.gtRange=gOt;function yOt(e,t){return(0,QB.satisfies)(e,t,{includePrerelease:!0})}es.satisfiesVersionRange=yOt});var iqe=me(vs=>{\"use strict\";f();var bOt=vs&&vs.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Fl=vs&&vs.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&bOt(t,e,n)};Object.defineProperty(vs,\"__esModule\",{value:!0});Fl(Sx(),vs);Fl(Whe(),vs);Fl(qhe(),vs);Fl(WWe(),vs);Fl(qWe(),vs);Fl(YWe(),vs);Fl(QWe(),vs);Fl(FB(),vs);Fl(JWe(),vs);Fl($We(),vs);Fl(oVe(),vs);Fl(aVe(),vs);Fl(sVe(),vs);Fl(uVe(),vs);Fl(dVe(),vs);Fl(pVe(),vs);Fl(oqe(),vs)});var sqe=me(iN=>{\"use strict\";f();Object.defineProperty(iN,\"__esModule\",{value:!0});iN.createModuleLogger=iN.projectLogger=void 0;var aqe=iqe();Object.defineProperty(iN,\"createModuleLogger\",{enumerable:!0,get:function(){return aqe.createModuleLogger}});iN.projectLogger=(0,aqe.createProjectLogger)(\"eth-block-tracker\")});var fqe=me(aN=>{\"use strict\";f();var dqe=aN&&aN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aN,\"__esModule\",{value:!0});aN.PollingBlockTracker=void 0;var vOt=dqe(FQ()),wOt=dqe(yWe()),xOt=Bhe(),cqe=sqe(),uqe=(0,cqe.createModuleLogger)(cqe.projectLogger,\"polling-block-tracker\"),EOt=(0,vOt.default)(),AOt=1e3,fme=class extends xOt.BaseBlockTracker{constructor(t={}){var n;if(!t.provider)throw new Error(\"PollingBlockTracker - no provider specified.\");super(Object.assign(Object.assign({},t),{blockResetDuration:(n=t.blockResetDuration)!==null&&n!==void 0?n:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*AOt,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();let n=lqe(this._pollingInterval,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await n}catch(n){let r=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\\n${(t=n.stack)!==null&&t!==void 0?t:n}`);try{this.emit(\"error\",r)}catch{console.error(r)}let o=lqe(this._retryTimeout,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await o}}async _updateLatestBlock(){let t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){let t={jsonrpc:\"2.0\",id:EOt(),method:\"eth_blockNumber\",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),uqe(\"Making request\",t);let n=await(0,wOt.default)(r=>this._provider.sendAsync(t,r))();if(uqe(\"Got response\",n),n.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\\n${n.error.message}`);return n.result}};aN.PollingBlockTracker=fme;function lqe(e,t){return new Promise(n=>{let r=setTimeout(n,e);r.unref&&t&&r.unref()})}});var pqe=me(sN=>{\"use strict\";f();var _Ot=sN&&sN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sN,\"__esModule\",{value:!0});sN.SubscribeBlockTracker=void 0;var SOt=_Ot(FQ()),TOt=Bhe(),COt=(0,SOt.default)(),pme=class extends TOt.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error(\"SubscribeBlockTracker - no provider specified.\");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{let t=await this._call(\"eth_blockNumber\");this._subscriptionId=await this._call(\"eth_subscribe\",\"newHeads\"),this._provider.on(\"data\",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit(\"error\",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call(\"eth_unsubscribe\",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit(\"error\",t)}}_call(t,...n){return new Promise((r,o)=>{this._provider.sendAsync({id:COt(),method:t,params:n,jsonrpc:\"2.0\"},(i,a)=>{i?o(i):r(a.result)})})}_handleSubData(t,n){var r;n.method===\"eth_subscription\"&&((r=n.params)===null||r===void 0?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(n.params.result.number)}};sN.SubscribeBlockTracker=pme});var mqe=me(iS=>{\"use strict\";f();var ROt=iS&&iS.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),hqe=iS&&iS.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&ROt(t,e,n)};Object.defineProperty(iS,\"__esModule\",{value:!0});hqe(fqe(),iS);hqe(pqe(),iS)});var mme=me(aJ=>{\"use strict\";f();Object.defineProperty(aJ,\"__esModule\",{value:!0});aJ.getUniqueId=void 0;var gqe=4294967295,hme=Math.floor(Math.random()*gqe);function IOt(){return hme=(hme+1)%gqe,hme}aJ.getUniqueId=IOt});var yqe=me(sJ=>{\"use strict\";f();Object.defineProperty(sJ,\"__esModule\",{value:!0});sJ.createIdRemapMiddleware=void 0;var OOt=mme();function kOt(){return(e,t,n,r)=>{let o=e.id,i=OOt.getUniqueId();e.id=i,t.id=i,n(a=>{e.id=o,t.id=o,a()})}}sJ.createIdRemapMiddleware=kOt});var bqe=me(cJ=>{\"use strict\";f();Object.defineProperty(cJ,\"__esModule\",{value:!0});cJ.createAsyncMiddleware=void 0;function NOt(e){return async(t,n,r,o)=>{let i,a=new Promise(p=>{i=p}),c=null,u=!1,d=async()=>{u=!0,r(p=>{c=p,i()}),await a};try{await e(t,n,d),u?(await a,c(null)):o(null)}catch(p){c?c(p):o(p)}}}cJ.createAsyncMiddleware=NOt});var vqe=me(uJ=>{\"use strict\";f();Object.defineProperty(uJ,\"__esModule\",{value:!0});uJ.createScaffoldMiddleware=void 0;function POt(e){return(t,n,r,o)=>{let i=e[t.method];return i===void 0?r():typeof i==\"function\"?i(t,n,r,o):(n.result=i,o())}}uJ.createScaffoldMiddleware=POt});var xqe=me(yme=>{\"use strict\";f();Object.defineProperty(yme,\"__esModule\",{value:!0});var MOt=CB();function wqe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}function DOt(e){let t=e.length,n=new Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}var gme=class extends MOt.EventEmitter{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(`Unhandled error.${a?` (${a.message})`:\"\"}`);throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")wqe(i,this,n);else{let a=i.length,c=DOt(i);for(let u=0;u<a;u+=1)wqe(c[u],this,n)}return!0}};yme.default=gme});var Cqe=me((rur,Tqe)=>{f();Tqe.exports=JB;JB.default=JB;JB.stable=_qe;JB.stableStringify=_qe;var lJ=\"[...]\",Eqe=\"[Circular]\",yC=[],gC=[];function Aqe(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function JB(e,t,n,r){typeof r>\"u\"&&(r=Aqe()),bme(e,\"\",0,[],void 0,0,r);var o;try{gC.length===0?o=JSON.stringify(e,t,n):o=JSON.stringify(e,Sqe(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;yC.length!==0;){var i=yC.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function cN(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),yC.push([r,n,t,o])):gC.push([t,n,e]):(r[n]=e,yC.push([r,n,t]))}function bme(e,t,n,r,o,i,a){i+=1;var c;if(typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){cN(Eqe,e,t,o);return}if(typeof a.depthLimit<\"u\"&&i>a.depthLimit){cN(lJ,e,t,o);return}if(typeof a.edgesLimit<\"u\"&&n+1>a.edgesLimit){cN(lJ,e,t,o);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)bme(e[c],c,c,r,e,i,a);else{var u=Object.keys(e);for(c=0;c<u.length;c++){var d=u[c];bme(e[d],d,c,r,e,i,a)}}r.pop()}}function LOt(e,t){return e<t?-1:e>t?1:0}function _qe(e,t,n,r){typeof r>\"u\"&&(r=Aqe());var o=vme(e,\"\",0,[],void 0,0,r)||e,i;try{gC.length===0?i=JSON.stringify(o,t,n):i=JSON.stringify(o,Sqe(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;yC.length!==0;){var a=yC.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function vme(e,t,n,r,o,i,a){i+=1;var c;if(typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){cN(Eqe,e,t,o);return}try{if(typeof e.toJSON==\"function\")return}catch{return}if(typeof a.depthLimit<\"u\"&&i>a.depthLimit){cN(lJ,e,t,o);return}if(typeof a.edgesLimit<\"u\"&&n+1>a.edgesLimit){cN(lJ,e,t,o);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)vme(e[c],c,c,r,e,i,a);else{var u={},d=Object.keys(e).sort(LOt);for(c=0;c<d.length;c++){var p=d[c];vme(e[p],p,c,r,e,i,a),u[p]=e[p]}if(typeof o<\"u\")yC.push([o,t,e]),o[t]=u;else return u}r.pop()}}function Sqe(e){return e=typeof e<\"u\"?e:function(t,n){return n},function(t,n){if(gC.length>0)for(var r=0;r<gC.length;r++){var o=gC[r];if(o[1]===t&&o[0]===n){n=o[2],gC.splice(r,1);break}}return e.call(this,t,n)}}});var fJ=me(uN=>{\"use strict\";f();Object.defineProperty(uN,\"__esModule\",{value:!0});uN.EthereumProviderError=uN.EthereumRpcError=void 0;var BOt=Cqe(),dJ=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return BOt.default(this.serialize(),FOt,2)}};uN.EthereumRpcError=dJ;var wme=class extends dJ{constructor(t,n,r){if(!UOt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}};uN.EthereumProviderError=wme;function UOt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function FOt(e,t){if(t!==\"[Circular]\")return t}});var pJ=me(lN=>{\"use strict\";f();Object.defineProperty(lN,\"__esModule\",{value:!0});lN.errorValues=lN.errorCodes=void 0;lN.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};lN.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}}});var Ame=me(m1=>{\"use strict\";f();Object.defineProperty(m1,\"__esModule\",{value:!0});m1.serializeError=m1.isValidCode=m1.getMessageFromCode=m1.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var hJ=pJ(),HOt=fJ(),Rqe=hJ.errorCodes.rpc.internal,zOt=\"Unspecified error message. This is a bug, please report it.\",jOt={code:Rqe,message:Eme(Rqe)};m1.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function Eme(e,t=zOt){if(Number.isInteger(e)){let n=e.toString();if(xme(hJ.errorValues,n))return hJ.errorValues[n].message;if(kqe(e))return m1.JSON_RPC_SERVER_ERROR_MESSAGE}return t}m1.getMessageFromCode=Eme;function Oqe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(hJ.errorValues[t]||kqe(e))}m1.isValidCode=Oqe;function WOt(e,{fallbackError:t=jOt,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||typeof t.message!=\"string\")throw new Error(\"Must provide fallback error with integer number code and string message.\");if(e instanceof HOt.EthereumRpcError)return e.serialize();let i={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&xme(e,\"code\")&&Oqe(e.code)){let c=e;i.code=c.code,c.message&&typeof c.message==\"string\"?(i.message=c.message,xme(c,\"data\")&&(i.data=c.data)):(i.message=Eme(i.code),i.data={originalError:Iqe(e)})}else{i.code=t.code;let c=(r=e)===null||r===void 0?void 0:r.message;i.message=c&&typeof c==\"string\"?c:t.message,i.data={originalError:Iqe(e)}}let a=(o=e)===null||o===void 0?void 0:o.stack;return n&&e&&a&&typeof a==\"string\"&&(i.stack=a),i}m1.serializeError=WOt;function kqe(e){return e>=-32099&&e<=-32e3}function Iqe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function xme(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Mqe=me(mJ=>{\"use strict\";f();Object.defineProperty(mJ,\"__esModule\",{value:!0});mJ.ethErrors=void 0;var _me=fJ(),Nqe=Ame(),Pd=pJ();mJ.ethErrors={rpc:{parse:e=>hg(Pd.errorCodes.rpc.parse,e),invalidRequest:e=>hg(Pd.errorCodes.rpc.invalidRequest,e),invalidParams:e=>hg(Pd.errorCodes.rpc.invalidParams,e),methodNotFound:e=>hg(Pd.errorCodes.rpc.methodNotFound,e),internal:e=>hg(Pd.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return hg(t,e)},invalidInput:e=>hg(Pd.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>hg(Pd.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>hg(Pd.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>hg(Pd.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>hg(Pd.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>hg(Pd.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>XB(Pd.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>XB(Pd.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>XB(Pd.errorCodes.provider.unsupportedMethod,e),disconnected:e=>XB(Pd.errorCodes.provider.disconnected,e),chainDisconnected:e=>XB(Pd.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new _me.EthereumProviderError(t,n,r)}}};function hg(e,t){let[n,r]=Pqe(t);return new _me.EthereumRpcError(e,n||Nqe.getMessageFromCode(e),r)}function XB(e,t){let[n,r]=Pqe(t);return new _me.EthereumProviderError(e,n||Nqe.getMessageFromCode(e),r)}function Pqe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}});var Bqe=me(ah=>{\"use strict\";f();Object.defineProperty(ah,\"__esModule\",{value:!0});ah.getMessageFromCode=ah.serializeError=ah.EthereumProviderError=ah.EthereumRpcError=ah.ethErrors=ah.errorCodes=void 0;var Dqe=fJ();Object.defineProperty(ah,\"EthereumRpcError\",{enumerable:!0,get:function(){return Dqe.EthereumRpcError}});Object.defineProperty(ah,\"EthereumProviderError\",{enumerable:!0,get:function(){return Dqe.EthereumProviderError}});var Lqe=Ame();Object.defineProperty(ah,\"serializeError\",{enumerable:!0,get:function(){return Lqe.serializeError}});Object.defineProperty(ah,\"getMessageFromCode\",{enumerable:!0,get:function(){return Lqe.getMessageFromCode}});var VOt=Mqe();Object.defineProperty(ah,\"ethErrors\",{enumerable:!0,get:function(){return VOt.ethErrors}});var GOt=pJ();Object.defineProperty(ah,\"errorCodes\",{enumerable:!0,get:function(){return GOt.errorCodes}})});var Cme=me(dN=>{\"use strict\";f();var qOt=dN&&dN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dN,\"__esModule\",{value:!0});dN.JsonRpcEngine=void 0;var KOt=qOt(xqe()),mg=Bqe(),Tme=class e extends KOt.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,n){if(n&&typeof n!=\"function\")throw new Error(\\'\"callback\" must be a function if provided.\\');return Array.isArray(t)?n?this._handleBatch(t,n):this._handleBatch(t):n?this._handle(t,n):this._promiseHandle(t)}asMiddleware(){return async(t,n,r,o)=>{try{let[i,a,c]=await e._runAllMiddleware(t,n,this._middleware);return a?(await e._runReturnHandlers(c),o(i)):r(async u=>{try{await e._runReturnHandlers(c)}catch(d){return u(d)}return u()})}catch(i){return o(i)}}}async _handleBatch(t,n){try{let r=await Promise.all(t.map(this._promiseHandle.bind(this)));return n?n(null,r):r}catch(r){if(n)return n(r);throw r}}_promiseHandle(t){return new Promise(n=>{this._handle(t,(r,o)=>{n(o)})})}async _handle(t,n){if(!t||Array.isArray(t)||typeof t!=\"object\"){let a=new mg.EthereumRpcError(mg.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return n(a,{id:void 0,jsonrpc:\"2.0\",error:a})}if(typeof t.method!=\"string\"){let a=new mg.EthereumRpcError(mg.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return n(a,{id:t.id,jsonrpc:\"2.0\",error:a})}let r=Object.assign({},t),o={id:r.id,jsonrpc:r.jsonrpc},i=null;try{await this._processRequest(r,o)}catch(a){i=a}return i&&(delete o.result,o.error||(o.error=mg.serializeError(i))),n(i,o)}async _processRequest(t,n){let[r,o,i]=await e._runAllMiddleware(t,n,this._middleware);if(e._checkForCompletion(t,n,o),await e._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(t,n,r){let o=[],i=null,a=!1;for(let c of r)if([i,a]=await e._runMiddleware(t,n,c,o),a)break;return[i,a,o.reverse()]}static _runMiddleware(t,n,r,o){return new Promise(i=>{let a=u=>{let d=u||n.error;d&&(n.error=mg.serializeError(d)),i([d,!0])},c=u=>{n.error?a(n.error):(u&&(typeof u!=\"function\"&&a(new mg.EthereumRpcError(mg.errorCodes.rpc.internal,`JsonRpcEngine: \"next\" return handlers must be functions. Received \"${typeof u}\" for request:\\n${Sme(t)}`,{request:t})),o.push(u)),i([null,!1]))};try{r(t,n,c,a)}catch(u){a(u)}})}static async _runReturnHandlers(t){for(let n of t)await new Promise((r,o)=>{n(i=>i?o(i):r())})}static _checkForCompletion(t,n,r){if(!(\"result\"in n)&&!(\"error\"in n))throw new mg.EthereumRpcError(mg.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\\n${Sme(t)}`,{request:t});if(!r)throw new mg.EthereumRpcError(mg.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\\n${Sme(t)}`,{request:t})}};dN.JsonRpcEngine=Tme;function Sme(e){return JSON.stringify(e,null,2)}});var Uqe=me(gJ=>{\"use strict\";f();Object.defineProperty(gJ,\"__esModule\",{value:!0});gJ.mergeMiddleware=void 0;var YOt=Cme();function ZOt(e){let t=new YOt.JsonRpcEngine;return e.forEach(n=>t.push(n)),t.asMiddleware()}gJ.mergeMiddleware=ZOt});var Rme=me(gg=>{\"use strict\";f();var QOt=gg&&gg.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),fN=gg&&gg.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&QOt(t,e,n)};Object.defineProperty(gg,\"__esModule\",{value:!0});fN(yqe(),gg);fN(bqe(),gg);fN(vqe(),gg);fN(mme(),gg);fN(Cme(),gg);fN(Uqe(),gg)});var wJ=me((xur,vJ)=>{f();var Fqe,Hqe,zqe,jqe,Wqe,Vqe,Gqe,qqe,Kqe,Yqe,Zqe,Qqe,Jqe,yJ,Ime,Xqe,$qe,eKe,pN,tKe,nKe,rKe,oKe,iKe,aKe,sKe,cKe,uKe,bJ,lKe,dKe,fKe;(function(e){var t=typeof globalThis==\"object\"?globalThis:typeof self==\"object\"?self:typeof this==\"object\"?this:{};typeof define==\"function\"&&define.amd?define(\"tslib\",[\"exports\"],function(r){e(n(t,n(r)))}):typeof vJ==\"object\"&&typeof vJ.exports==\"object\"?e(n(t,n(vJ.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create==\"function\"?Object.defineProperty(r,\"__esModule\",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])};Fqe=function(i,a){if(typeof a!=\"function\"&&a!==null)throw new TypeError(\"Class extends value \"+String(a)+\" is not a constructor or null\");t(i,a);function c(){this.constructor=i}i.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)},Hqe=Object.assign||function(i){for(var a,c=1,u=arguments.length;c<u;c++){a=arguments[c];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(i[d]=a[d])}return i},zqe=function(i,a){var c={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&a.indexOf(u)<0&&(c[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var d=0,u=Object.getOwnPropertySymbols(i);d<u.length;d++)a.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(i,u[d])&&(c[u[d]]=i[u[d]]);return c},jqe=function(i,a,c,u){var d=arguments.length,p=d<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,c):u,h;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")p=Reflect.decorate(i,a,c,u);else for(var g=i.length-1;g>=0;g--)(h=i[g])&&(p=(d<3?h(p):d>3?h(a,c,p):h(a,c))||p);return d>3&&p&&Object.defineProperty(a,c,p),p},Wqe=function(i,a){return function(c,u){a(c,u,i)}},Vqe=function(i,a,c,u,d,p){function h(Q){if(Q!==void 0&&typeof Q!=\"function\")throw new TypeError(\"Function expected\");return Q}for(var g=u.kind,y=g===\"getter\"?\"get\":g===\"setter\"?\"set\":\"value\",v=!a&&i?u.static?i:i.prototype:null,x=a||(v?Object.getOwnPropertyDescriptor(v,u.name):{}),R,S=!1,M=c.length-1;M>=0;M--){var P={};for(var z in u)P[z]=z===\"access\"?{}:u[z];for(var z in u.access)P.access[z]=u.access[z];P.addInitializer=function(Q){if(S)throw new TypeError(\"Cannot add initializers after decoration has completed\");p.push(h(Q||null))};var V=(0,c[M])(g===\"accessor\"?{get:x.get,set:x.set}:x[y],P);if(g===\"accessor\"){if(V===void 0)continue;if(V===null||typeof V!=\"object\")throw new TypeError(\"Object expected\");(R=h(V.get))&&(x.get=R),(R=h(V.set))&&(x.set=R),(R=h(V.init))&&d.unshift(R)}else(R=h(V))&&(g===\"field\"?d.unshift(R):x[y]=R)}v&&Object.defineProperty(v,u.name,x),S=!0},Gqe=function(i,a,c){for(var u=arguments.length>2,d=0;d<a.length;d++)c=u?a[d].call(i,c):a[d].call(i);return u?c:void 0},qqe=function(i){return typeof i==\"symbol\"?i:\"\".concat(i)},Kqe=function(i,a,c){return typeof a==\"symbol\"&&(a=a.description?\"[\".concat(a.description,\"]\"):\"\"),Object.defineProperty(i,\"name\",{configurable:!0,value:c?\"\".concat(c,\" \",a):a})},Yqe=function(i,a){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(i,a)},Zqe=function(i,a,c,u){function d(p){return p instanceof c?p:new c(function(h){h(p)})}return new(c||(c=Promise))(function(p,h){function g(x){try{v(u.next(x))}catch(R){h(R)}}function y(x){try{v(u.throw(x))}catch(R){h(R)}}function v(x){x.done?p(x.value):d(x.value).then(g,y)}v((u=u.apply(i,a||[])).next())})},Qqe=function(i,a){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},u,d,p,h=Object.create((typeof Iterator==\"function\"?Iterator:Object).prototype);return h.next=g(0),h.throw=g(1),h.return=g(2),typeof Symbol==\"function\"&&(h[Symbol.iterator]=function(){return this}),h;function g(v){return function(x){return y([v,x])}}function y(v){if(u)throw new TypeError(\"Generator is already executing.\");for(;h&&(h=0,v[0]&&(c=0)),c;)try{if(u=1,d&&(p=v[0]&2?d.return:v[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,v[1])).done)return p;switch(d=0,p&&(v=[v[0]&2,p.value]),v[0]){case 0:case 1:p=v;break;case 4:return c.label++,{value:v[1],done:!1};case 5:c.label++,d=v[1],v=[0];continue;case 7:v=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(v[0]===6||v[0]===2)){c=0;continue}if(v[0]===3&&(!p||v[1]>p[0]&&v[1]<p[3])){c.label=v[1];break}if(v[0]===6&&c.label<p[1]){c.label=p[1],p=v;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(v);break}p[2]&&c.ops.pop(),c.trys.pop();continue}v=a.call(i,c)}catch(x){v=[6,x],d=0}finally{u=p=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},Jqe=function(i,a){for(var c in i)c!==\"default\"&&!Object.prototype.hasOwnProperty.call(a,c)&&bJ(a,i,c)},bJ=Object.create?(function(i,a,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(a,c);(!d||(\"get\"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,u,d)}):(function(i,a,c,u){u===void 0&&(u=c),i[u]=a[c]}),yJ=function(i){var a=typeof Symbol==\"function\"&&Symbol.iterator,c=a&&i[a],u=0;if(c)return c.call(i);if(i&&typeof i.length==\"number\")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(a?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},Ime=function(i,a){var c=typeof Symbol==\"function\"&&i[Symbol.iterator];if(!c)return i;var u=c.call(i),d,p=[],h;try{for(;(a===void 0||a-- >0)&&!(d=u.next()).done;)p.push(d.value)}catch(g){h={error:g}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(h)throw h.error}}return p},Xqe=function(){for(var i=[],a=0;a<arguments.length;a++)i=i.concat(Ime(arguments[a]));return i},$qe=function(){for(var i=0,a=0,c=arguments.length;a<c;a++)i+=arguments[a].length;for(var u=Array(i),d=0,a=0;a<c;a++)for(var p=arguments[a],h=0,g=p.length;h<g;h++,d++)u[d]=p[h];return u},eKe=function(i,a,c){if(c||arguments.length===2)for(var u=0,d=a.length,p;u<d;u++)(p||!(u in a))&&(p||(p=Array.prototype.slice.call(a,0,u)),p[u]=a[u]);return i.concat(p||Array.prototype.slice.call(a))},pN=function(i){return this instanceof pN?(this.v=i,this):new pN(i)},tKe=function(i,a,c){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var u=c.apply(i,a||[]),d,p=[];return d=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),g(\"next\"),g(\"throw\"),g(\"return\",h),d[Symbol.asyncIterator]=function(){return this},d;function h(M){return function(P){return Promise.resolve(P).then(M,R)}}function g(M,P){u[M]&&(d[M]=function(z){return new Promise(function(V,Q){p.push([M,z,V,Q])>1||y(M,z)})},P&&(d[M]=P(d[M])))}function y(M,P){try{v(u[M](P))}catch(z){S(p[0][3],z)}}function v(M){M.value instanceof pN?Promise.resolve(M.value.v).then(x,R):S(p[0][2],M)}function x(M){y(\"next\",M)}function R(M){y(\"throw\",M)}function S(M,P){M(P),p.shift(),p.length&&y(p[0][0],p[0][1])}},nKe=function(i){var a,c;return a={},u(\"next\"),u(\"throw\",function(d){throw d}),u(\"return\"),a[Symbol.iterator]=function(){return this},a;function u(d,p){a[d]=i[d]?function(h){return(c=!c)?{value:pN(i[d](h)),done:!1}:p?p(h):h}:p}},rKe=function(i){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var a=i[Symbol.asyncIterator],c;return a?a.call(i):(i=typeof yJ==\"function\"?yJ(i):i[Symbol.iterator](),c={},u(\"next\"),u(\"throw\"),u(\"return\"),c[Symbol.asyncIterator]=function(){return this},c);function u(p){c[p]=i[p]&&function(h){return new Promise(function(g,y){h=i[p](h),d(g,y,h.done,h.value)})}}function d(p,h,g,y){Promise.resolve(y).then(function(v){p({value:v,done:g})},h)}},oKe=function(i,a){return Object.defineProperty?Object.defineProperty(i,\"raw\",{value:a}):i.raw=a,i};var n=Object.create?(function(i,a){Object.defineProperty(i,\"default\",{enumerable:!0,value:a})}):function(i,a){i.default=a},r=function(i){return r=Object.getOwnPropertyNames||function(a){var c=[];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[c.length]=u);return c},r(i)};iKe=function(i){if(i&&i.__esModule)return i;var a={};if(i!=null)for(var c=r(i),u=0;u<c.length;u++)c[u]!==\"default\"&&bJ(a,i,c[u]);return n(a,i),a},aKe=function(i){return i&&i.__esModule?i:{default:i}},sKe=function(i,a,c,u){if(c===\"a\"&&!u)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof a==\"function\"?i!==a||!u:!a.has(i))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return c===\"m\"?u:c===\"a\"?u.call(i):u?u.value:a.get(i)},cKe=function(i,a,c,u,d){if(u===\"m\")throw new TypeError(\"Private method is not writable\");if(u===\"a\"&&!d)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof a==\"function\"?i!==a||!d:!a.has(i))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return u===\"a\"?d.call(i,c):d?d.value=c:a.set(i,c),c},uKe=function(i,a){if(a===null||typeof a!=\"object\"&&typeof a!=\"function\")throw new TypeError(\"Cannot use \\'in\\' operator on non-object\");return typeof i==\"function\"?a===i:i.has(a)},lKe=function(i,a,c){if(a!=null){if(typeof a!=\"object\"&&typeof a!=\"function\")throw new TypeError(\"Object expected.\");var u,d;if(c){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");u=a[Symbol.asyncDispose]}if(u===void 0){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");u=a[Symbol.dispose],c&&(d=u)}if(typeof u!=\"function\")throw new TypeError(\"Object not disposable.\");d&&(u=function(){try{d.call(this)}catch(p){return Promise.reject(p)}}),i.stack.push({value:a,dispose:u,async:c})}else c&&i.stack.push({async:!0});return a};var o=typeof SuppressedError==\"function\"?SuppressedError:function(i,a,c){var u=new Error(c);return u.name=\"SuppressedError\",u.error=i,u.suppressed=a,u};dKe=function(i){function a(p){i.error=i.hasError?new o(p,i.error,\"An error was suppressed during disposal.\"):p,i.hasError=!0}var c,u=0;function d(){for(;c=i.stack.pop();)try{if(!c.async&&u===1)return u=0,i.stack.push(c),Promise.resolve().then(d);if(c.dispose){var p=c.dispose.call(c.value);if(c.async)return u|=2,Promise.resolve(p).then(d,function(h){return a(h),d()})}else u|=1}catch(h){a(h)}if(u===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return d()},fKe=function(i,a){return typeof i==\"string\"&&/^\\\\.\\\\.?\\\\//.test(i)?i.replace(/\\\\.(tsx)$|((?:\\\\.d)?)((?:\\\\.[^./]+?)?)\\\\.([cm]?)ts$/i,function(c,u,d,p,h){return u?a?\".jsx\":\".js\":d&&(!p||!h)?c:d+p+\".\"+h.toLowerCase()+\"js\"}):i},e(\"__extends\",Fqe),e(\"__assign\",Hqe),e(\"__rest\",zqe),e(\"__decorate\",jqe),e(\"__param\",Wqe),e(\"__esDecorate\",Vqe),e(\"__runInitializers\",Gqe),e(\"__propKey\",qqe),e(\"__setFunctionName\",Kqe),e(\"__metadata\",Yqe),e(\"__awaiter\",Zqe),e(\"__generator\",Qqe),e(\"__exportStar\",Jqe),e(\"__createBinding\",bJ),e(\"__values\",yJ),e(\"__read\",Ime),e(\"__spread\",Xqe),e(\"__spreadArrays\",$qe),e(\"__spreadArray\",eKe),e(\"__await\",pN),e(\"__asyncGenerator\",tKe),e(\"__asyncDelegator\",nKe),e(\"__asyncValues\",rKe),e(\"__makeTemplateObject\",oKe),e(\"__importStar\",iKe),e(\"__importDefault\",aKe),e(\"__classPrivateFieldGet\",sKe),e(\"__classPrivateFieldSet\",cKe),e(\"__classPrivateFieldIn\",uKe),e(\"__addDisposableResource\",lKe),e(\"__disposeResources\",dKe),e(\"__rewriteRelativeImportExtension\",fKe)})});var kme=me(Ome=>{\"use strict\";f();Object.defineProperty(Ome,\"__esModule\",{value:!0});var pKe=wJ(),JOt=(function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error(\"semaphore must be initialized to a positive value\");this._value=t}return e.prototype.acquire=function(){var t=this,n=this.isLocked(),r=new Promise(function(o){return t._queue.push(o)});return n||this._dispatch(),r},e.prototype.runExclusive=function(t){return pKe.__awaiter(this,void 0,void 0,function(){var n,r,o;return pKe.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=i.sent(),r=n[0],o=n[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,i.sent()];case 4:return o(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error(\"this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead\");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,n=this._queue.shift();if(n){var r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},n([this._value--,this._currentReleaser])}},e})();Ome.default=JOt});var mKe=me(Nme=>{\"use strict\";f();Object.defineProperty(Nme,\"__esModule\",{value:!0});var hKe=wJ(),XOt=kme(),$Ot=(function(){function e(){this._semaphore=new XOt.default(1)}return e.prototype.acquire=function(){return hKe.__awaiter(this,void 0,void 0,function(){var t,n;return hKe.__generator(this,function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=r.sent(),n=t[1],[2,n]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e})();Nme.default=$Ot});var gKe=me(EJ=>{\"use strict\";f();Object.defineProperty(EJ,\"__esModule\",{value:!0});EJ.withTimeout=void 0;var xJ=wJ();function ekt(e,t,n){var r=this;return n===void 0&&(n=new Error(\"timeout\")),{acquire:function(){return new Promise(function(o,i){return xJ.__awaiter(r,void 0,void 0,function(){var a,c,u;return xJ.__generator(this,function(d){switch(d.label){case 0:return a=!1,setTimeout(function(){a=!0,i(n)},t),[4,e.acquire()];case 1:return c=d.sent(),a?(u=Array.isArray(c)?c[1]:c,u()):o(c),[2]}})})})},runExclusive:function(o){return xJ.__awaiter(this,void 0,void 0,function(){var i,a;return xJ.__generator(this,function(c){switch(c.label){case 0:i=function(){},c.label=1;case 1:return c.trys.push([1,,7,8]),[4,this.acquire()];case 2:return a=c.sent(),Array.isArray(a)?(i=a[1],[4,o(a[0])]):[3,4];case 3:return[2,c.sent()];case 4:return i=a,[4,o()];case 5:return[2,c.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}EJ.withTimeout=ekt});var yKe=me(aS=>{\"use strict\";f();Object.defineProperty(aS,\"__esModule\",{value:!0});aS.withTimeout=aS.Semaphore=aS.Mutex=void 0;var tkt=mKe();Object.defineProperty(aS,\"Mutex\",{enumerable:!0,get:function(){return tkt.default}});var nkt=kme();Object.defineProperty(aS,\"Semaphore\",{enumerable:!0,get:function(){return nkt.default}});var rkt=gKe();Object.defineProperty(aS,\"withTimeout\",{enumerable:!0,get:function(){return rkt.withTimeout}})});var vKe=me((kur,bKe)=>{f();bKe.exports=ikt;var okt=Object.prototype.hasOwnProperty;function ikt(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)okt.call(n,r)&&(e[r]=n[r])}return e}});var xKe=me((Pur,wKe)=>{f();var akt=vKe(),skt=FQ()();wKe.exports=ir;function ir(e){let t=this;t.currentProvider=e}ir.prototype.getBalance=$B(2,\"eth_getBalance\");ir.prototype.getCode=$B(2,\"eth_getCode\");ir.prototype.getTransactionCount=$B(2,\"eth_getTransactionCount\");ir.prototype.getStorageAt=$B(3,\"eth_getStorageAt\");ir.prototype.call=$B(2,\"eth_call\");ir.prototype.protocolVersion=oo(\"eth_protocolVersion\");ir.prototype.syncing=oo(\"eth_syncing\");ir.prototype.coinbase=oo(\"eth_coinbase\");ir.prototype.mining=oo(\"eth_mining\");ir.prototype.hashrate=oo(\"eth_hashrate\");ir.prototype.gasPrice=oo(\"eth_gasPrice\");ir.prototype.accounts=oo(\"eth_accounts\");ir.prototype.blockNumber=oo(\"eth_blockNumber\");ir.prototype.getBlockTransactionCountByHash=oo(\"eth_getBlockTransactionCountByHash\");ir.prototype.getBlockTransactionCountByNumber=oo(\"eth_getBlockTransactionCountByNumber\");ir.prototype.getUncleCountByBlockHash=oo(\"eth_getUncleCountByBlockHash\");ir.prototype.getUncleCountByBlockNumber=oo(\"eth_getUncleCountByBlockNumber\");ir.prototype.sign=oo(\"eth_sign\");ir.prototype.sendTransaction=oo(\"eth_sendTransaction\");ir.prototype.sendRawTransaction=oo(\"eth_sendRawTransaction\");ir.prototype.estimateGas=oo(\"eth_estimateGas\");ir.prototype.getBlockByHash=oo(\"eth_getBlockByHash\");ir.prototype.getBlockByNumber=oo(\"eth_getBlockByNumber\");ir.prototype.getTransactionByHash=oo(\"eth_getTransactionByHash\");ir.prototype.getTransactionByBlockHashAndIndex=oo(\"eth_getTransactionByBlockHashAndIndex\");ir.prototype.getTransactionByBlockNumberAndIndex=oo(\"eth_getTransactionByBlockNumberAndIndex\");ir.prototype.getTransactionReceipt=oo(\"eth_getTransactionReceipt\");ir.prototype.getUncleByBlockHashAndIndex=oo(\"eth_getUncleByBlockHashAndIndex\");ir.prototype.getUncleByBlockNumberAndIndex=oo(\"eth_getUncleByBlockNumberAndIndex\");ir.prototype.getCompilers=oo(\"eth_getCompilers\");ir.prototype.compileLLL=oo(\"eth_compileLLL\");ir.prototype.compileSolidity=oo(\"eth_compileSolidity\");ir.prototype.compileSerpent=oo(\"eth_compileSerpent\");ir.prototype.newFilter=oo(\"eth_newFilter\");ir.prototype.newBlockFilter=oo(\"eth_newBlockFilter\");ir.prototype.newPendingTransactionFilter=oo(\"eth_newPendingTransactionFilter\");ir.prototype.uninstallFilter=oo(\"eth_uninstallFilter\");ir.prototype.getFilterChanges=oo(\"eth_getFilterChanges\");ir.prototype.getFilterLogs=oo(\"eth_getFilterLogs\");ir.prototype.getLogs=oo(\"eth_getLogs\");ir.prototype.getWork=oo(\"eth_getWork\");ir.prototype.submitWork=oo(\"eth_submitWork\");ir.prototype.submitHashrate=oo(\"eth_submitHashrate\");ir.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(ckt(e),function(r,o){if(!r&&o.error&&(r=new Error(\"EthQuery - RPC Error - \"+o.error.message)),r)return t(r);t(null,o.result)})};function oo(e){return function(){let t=this;var n=[].slice.call(arguments),r=n.pop();t.sendAsync({method:e,params:n},r)}}function $B(e,t){return function(){let n=this;var r=[].slice.call(arguments),o=r.pop();r.length<e&&r.push(\"latest\"),n.sendAsync({method:t,params:r},o)}}function ckt(e){return akt({id:skt(),jsonrpc:\"2.0\",params:[]},e)}});var SKe=me((Dur,_Ke)=>{\"use strict\";f();var EKe=(e,t,n,r)=>function(...o){let i=t.promiseModule;return new i((a,c)=>{t.multiArgs?o.push((...d)=>{t.errorFirst?d[0]?c(d):(d.shift(),a(d)):a(d)}):t.errorFirst?o.push((d,p)=>{d?c(d):a(p)}):o.push(a),Reflect.apply(e,this===n?r:this,o)})},AKe=new WeakMap;_Ke.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};let n=typeof e;if(!(e!==null&&(n===\"object\"||n===\"function\")))throw new TypeError(`Expected \\\\`input\\\\` to be a \\\\`Function\\\\` or \\\\`Object\\\\`, got \\\\`${e===null?\"null\":n}\\\\``);let r=(a,c)=>{let u=AKe.get(a);if(u||(u={},AKe.set(a,u)),c in u)return u[c];let d=v=>typeof v==\"string\"||typeof c==\"symbol\"?c===v:v.test(c),p=Reflect.getOwnPropertyDescriptor(a,c),h=p===void 0||p.writable||p.configurable,y=(t.include?t.include.some(d):!t.exclude.some(d))&&h;return u[c]=y,y},o=new WeakMap,i=new Proxy(e,{apply(a,c,u){let d=o.get(a);if(d)return Reflect.apply(d,c,u);let p=t.excludeMain?a:EKe(a,t,i,a);return o.set(a,p),Reflect.apply(p,c,u)},get(a,c){let u=a[c];if(!r(a,c)||u===Function.prototype[c])return u;let d=o.get(u);if(d)return d;if(typeof u==\"function\"){let p=EKe(u,t,i,a);return o.set(u,p),p}return u}});return i}});var AJ=me((Bur,TKe)=>{f();var ukt=HQ().default,Pme=class extends ukt{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error(\"BaseFilter - no update method specified\")}addResults(t){this.updates=this.updates.concat(t),t.forEach(n=>this.emit(\"update\",n))}addInitialResults(t){}getChangesAndClear(){let t=this.updates;return this.updates=[],t}};TKe.exports=Pme});var RKe=me((Fur,CKe)=>{f();var lkt=AJ(),Mme=class extends lkt{constructor(){super(),this.allResults=[]}async update(){throw new Error(\"BaseFilterWithHistory - no update method specified\")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};CKe.exports=Mme});var hN=me((zur,kKe)=>{f();kKe.exports={minBlockRef:dkt,maxBlockRef:fkt,sortBlockRefs:Dme,bnToHex:pkt,blockRefIsNumber:hkt,hexToInt:_J,incrementHexInt:mkt,intToHex:OKe,unsafeRandomBytes:gkt};function dkt(...e){return Dme(e)[0]}function fkt(...e){let t=Dme(e);return t[t.length-1]}function Dme(e){return e.sort((t,n)=>t===\"latest\"||n===\"earliest\"?1:n===\"latest\"||t===\"earliest\"?-1:_J(t)-_J(n))}function pkt(e){return\"0x\"+e.toString(16)}function hkt(e){return e&&![\"earliest\",\"latest\",\"pending\"].includes(e)}function _J(e){return e==null?e:Number.parseInt(e,16)}function mkt(e){if(e==null)return e;let t=_J(e);return OKe(t+1)}function OKe(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t=\"0\"+t),\"0x\"+t}function gkt(e){let t=\"0x\";for(let n=0;n<e;n++)t+=IKe(),t+=IKe();return t}function IKe(){return Math.floor(Math.random()*16).toString(16)}});var PKe=me((Vur,NKe)=>{f();var ykt=xKe(),bkt=SKe(),vkt=RKe(),{bnToHex:Wur,hexToInt:SJ,incrementHexInt:wkt,minBlockRef:xkt,blockRefIsNumber:Ekt}=hN(),Lme=class extends vkt{constructor({provider:t,params:n}){super(),this.type=\"log\",this.ethQuery=new ykt(t),this.params=Object.assign({fromBlock:\"latest\",toBlock:\"latest\",address:void 0,topics:[]},n),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(r=>r.toLowerCase()))}async initialize({currentBlock:t}){let n=this.params.fromBlock;[\"latest\",\"pending\"].includes(n)&&(n=t),n===\"earliest\"&&(n=\"0x0\"),this.params.fromBlock=n;let r=xkt(this.params.toBlock,t),o=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(o);this.addInitialResults(i)}async update({oldBlock:t,newBlock:n}){let r=n,o;t?o=wkt(t):o=n;let i=Object.assign({},this.params,{fromBlock:o,toBlock:r}),c=(await this._fetchLogs(i)).filter(u=>this.matchLog(u));this.addResults(c)}async _fetchLogs(t){return await bkt(r=>this.ethQuery.getLogs(t,r))()}matchLog(t){if(SJ(this.params.fromBlock)>=SJ(t.blockNumber)||Ekt(this.params.toBlock)&&SJ(this.params.toBlock)<=SJ(t.blockNumber))return!1;let n=t.address&&t.address.toLowerCase();return this.params.address&&n&&!this.params.address.includes(n)?!1:this.params.topics.every((o,i)=>{let a=t.topics[i];if(!a)return!1;a=a.toLowerCase();let c=Array.isArray(o)?o:[o];return c.includes(null)?!0:(c=c.map(p=>p.toLowerCase()),c.includes(a))})}};NKe.exports=Lme});var TJ=me((qur,DKe)=>{f();DKe.exports=Akt;async function Akt({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let r=MKe(t),i=MKe(n)-r+1,a=Array(i).fill().map((u,d)=>r+d).map(_kt),c=await Promise.all(a.map(u=>Tkt(e,\"eth_getBlockByNumber\",[u,!1])));return c=c.filter(u=>u!==null),c}function MKe(e){return e==null?e:Number.parseInt(e,16)}function _kt(e){return e==null?e:\"0x\"+e.toString(16)}function Skt(e,t){return new Promise((n,r)=>{e.sendAsync(t,(o,i)=>{o?r(o):i.error?r(i.error):i.result?n(i.result):r(new Error(\"Result was empty\"))})})}async function Tkt(e,t,n){for(let r=0;r<3;r++)try{return await Skt(e,{id:1,jsonrpc:\"2.0\",method:t,params:n})}catch(o){console.error(`provider.sendAsync failed: ${o.stack||o.message||o}`)}return null}});var BKe=me((Yur,LKe)=>{f();var Ckt=AJ(),Rkt=TJ(),{incrementHexInt:Ikt}=hN(),Bme=class extends Ckt{constructor({provider:t,params:n}){super(),this.type=\"block\",this.provider=t}async update({oldBlock:t,newBlock:n}){let r=n,o=Ikt(t),a=(await Rkt({provider:this.provider,fromBlock:o,toBlock:r})).map(c=>c.hash);this.addResults(a)}};LKe.exports=Bme});var FKe=me((Qur,UKe)=>{f();var Okt=AJ(),kkt=TJ(),{incrementHexInt:Nkt}=hN(),Ume=class extends Okt{constructor({provider:t}){super(),this.type=\"tx\",this.provider=t}async update({oldBlock:t}){let n=t,r=Nkt(t),o=await kkt({provider:this.provider,fromBlock:r,toBlock:n}),i=[];for(let a of o)i.push(...a.transactions);this.addResults(i)}};UKe.exports=Ume});var jKe=me((Xur,zKe)=>{f();var Pkt=yKe().Mutex,{createAsyncMiddleware:Mkt,createScaffoldMiddleware:Dkt}=Rme(),Lkt=PKe(),Bkt=BKe(),Ukt=FKe(),{intToHex:HKe,hexToInt:Fme}=hN();zKe.exports=Fkt;function Fkt({blockTracker:e,provider:t}){let n=0,r={},o=new Pkt,i=Hkt({mutex:o}),a=Dkt({eth_newFilter:i(Hme(u)),eth_newBlockFilter:i(Hme(d)),eth_newPendingTransactionFilter:i(Hme(p)),eth_uninstallFilter:i(CJ(y)),eth_getFilterChanges:i(CJ(h)),eth_getFilterLogs:i(CJ(g))}),c=async({oldBlock:M,newBlock:P})=>{if(r.length===0)return;let z=await o.acquire();try{await Promise.all(mN(r).map(async V=>{try{await V.update({oldBlock:M,newBlock:P})}catch(Q){console.error(Q)}}))}catch(V){console.error(V)}z()};return a.newLogFilter=u,a.newBlockFilter=d,a.newPendingTransactionFilter=p,a.uninstallFilter=y,a.getFilterChanges=h,a.getFilterLogs=g,a.destroy=()=>{R()},a;async function u(M){let P=new Lkt({provider:t,params:M}),z=await v(P);return P}async function d(){let M=new Bkt({provider:t}),P=await v(M);return M}async function p(){let M=new Ukt({provider:t}),P=await v(M);return M}async function h(M){let P=Fme(M),z=r[P];if(!z)throw new Error(`No filter for index \"${P}\"`);return z.getChangesAndClear()}async function g(M){let P=Fme(M),z=r[P];if(!z)throw new Error(`No filter for index \"${P}\"`);let V=[];return z.type===\"log\"&&(V=z.getAllResults()),V}async function y(M){let P=Fme(M),V=!!r[P];return V&&await x(P),V}async function v(M){let P=mN(r).length,z=await e.getLatestBlock();await M.initialize({currentBlock:z}),n++,r[n]=M,M.id=n,M.idHex=HKe(n);let V=mN(r).length;return S({prevFilterCount:P,newFilterCount:V}),n}async function x(M){let P=mN(r).length;delete r[M];let z=mN(r).length;S({prevFilterCount:P,newFilterCount:z})}async function R(){let M=mN(r).length;r={},S({prevFilterCount:M,newFilterCount:0})}function S({prevFilterCount:M,newFilterCount:P}){if(M===0&&P>0){e.on(\"sync\",c);return}if(M>0&&P===0){e.removeListener(\"sync\",c);return}}}function Hme(e){return CJ(async(...t)=>{let n=await e(...t);return HKe(n.id)})}function CJ(e){return Mkt(async(t,n)=>{let r=await e.apply(null,t.params);n.result=r})}function Hkt({mutex:e}){return t=>async(n,r,o,i)=>{(await e.acquire())(),t(n,r,o,i)}}function mN(e,t){let n=[];for(let r in e)n.push(e[r]);return n}});var GKe=me((elr,VKe)=>{f();var zkt=HQ().default,{createAsyncMiddleware:WKe,createScaffoldMiddleware:jkt}=Rme(),Wkt=jKe(),{unsafeRandomBytes:Vkt,incrementHexInt:Gkt}=hN(),qkt=TJ();VKe.exports=Kkt;function Kkt({blockTracker:e,provider:t}){let n={},r=Wkt({blockTracker:e,provider:t}),o=!1,i=new zkt,a=jkt({eth_subscribe:WKe(c),eth_unsubscribe:WKe(u)});return a.destroy=p,{events:i,middleware:a};async function c(h,g){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let y=h.params[0],v=Vkt(16),x;switch(y){case\"newHeads\":x=R({subId:v});break;case\"logs\":let M=h.params[1],P=await r.newLogFilter(M);x=S({subId:v,filter:P});break;default:throw new Error(`SubscriptionManager - unsupported subscription type \"${y}\"`)}n[v]=x,g.result=v;return;function R({subId:M}){let P={type:y,destroy:async()=>{e.removeListener(\"sync\",P.update)},update:async({oldBlock:z,newBlock:V})=>{let Q=V,$=Gkt(z);(await qkt({provider:t,fromBlock:$,toBlock:Q})).map(Ykt).filter(re=>re!==null).forEach(re=>{d(M,re)})}};return e.on(\"sync\",P.update),P}function S({subId:M,filter:P}){return P.on(\"update\",V=>d(M,V)),{type:y,destroy:async()=>await r.uninstallFilter(P.idHex)}}}async function u(h,g){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let y=h.params[0],v=n[y];if(!v){g.result=!1;return}delete n[y],await v.destroy(),g.result=!0}function d(h,g){i.emit(\"notification\",{jsonrpc:\"2.0\",method:\"eth_subscription\",params:{subscription:h,result:g}})}function p(){i.removeAllListeners();for(let h in n)n[h].destroy(),delete n[h];o=!0}}function Ykt(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}});var KKe=me(RJ=>{\"use strict\";f();Object.defineProperty(RJ,\"__esModule\",{value:!0});RJ.SubscriptionManager=void 0;var Zkt=mqe(),Qkt=GKe(),qKe=()=>{},zme=class{constructor(t){let n=new Zkt.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:o}=Qkt({blockTracker:n,provider:t});this.events=r,this.subscriptionMiddleware=o}async handleRequest(t){let n={};return await this.subscriptionMiddleware(t,n,qKe,qKe),n}destroy(){this.subscriptionMiddleware.destroy()}};RJ.SubscriptionManager=zme});var OJ=me(gN=>{\"use strict\";f();var JKe=gN&&gN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gN,\"__esModule\",{value:!0});gN.CoinbaseWalletProvider=void 0;var Jkt=JKe(G6()),Xkt=Zce(),Uo=iB(),Lr=hv(),$kt=ehe(),YKe=IZ(),IJ=ZZ(),vm=xZ(),jme=JKe(cWe()),eU=RZ(),eNt=pWe(),tNt=KKe(),ZKe=\"DefaultChainId\",QKe=\"DefaultJsonRpcUrl\",Wme=class extends Xkt.EventEmitter{constructor(t){var n,r;super(),this._filterPolyfill=new eNt.FilterPolyfill(this),this._subscriptionManager=new tNt.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(n=t.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this.isCoinbaseBrowser=(r=t.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,this.qrUrl=t.qrUrl;let o=this.getChainId(),i=(0,Lr.prepend0x)(o.toString(16));this.emit(\"connect\",{chainIdStr:i});let a=this._storage.getItem(YKe.LOCAL_STORAGE_ADDRESSES_KEY);if(a){let c=a.split(\" \");c[0]!==\"\"&&(this._addresses=c.map(u=>(0,Lr.ensureAddressString)(u)),this.emit(\"accountsChanged\",c))}this._subscriptionManager.events.on(\"notification\",c=>{this.emit(\"message\",{type:c.method,data:c.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener(\"message\",c=>{var u;if(!(c.origin!==location.origin||c.source!==window)&&c.data.type===\"walletLinkMessage\"&&c.data.data.action===\"dappChainSwitched\"){let d=c.data.data.chainId,p=(u=c.data.data.jsonRpcUrl)!==null&&u!==void 0?u:this.jsonRpcUrl;this.updateProviderInfo(p,Number(d))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Lr.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(QKe))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(QKe,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,n){this.isCoinbaseBrowser||(this._chainIdFromOpts=n,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,n){this.jsonRpcUrl=t;let r=this.getChainId();this._storage.setItem(ZKe,n.toString(10)),((0,Lr.ensureIntNumber)(n)!==r||!this.hasMadeFirstChainChangedEmission)&&(this.emit(\"chainChanged\",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,n,r,o,i,a){let u=await(await this.initializeRelay()).watchAsset(t,n,r,o,i,a?.toString()).promise;return(0,vm.isErrorResponse)(u)?!1:!!u.result}async addEthereumChain(t,n,r,o,i,a){var c,u;if((0,Lr.ensureIntNumber)(t)===this.getChainId())return!1;let d=await this.initializeRelay(),p=d.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!p&&await d.requestEthereumAccounts().promise;let h=await d.addEthereumChain(t.toString(),n,i,r,o,a).promise;return(0,vm.isErrorResponse)(h)?!1:(((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0&&this.updateProviderInfo(n[0],t),((u=h.result)===null||u===void 0?void 0:u.isApproved)===!0)}async switchEthereumChain(t){let r=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,vm.isErrorResponse)(r)){if(!r.errorCode)return;throw r.errorCode===Uo.standardErrorCodes.provider.unsupportedChain?Uo.standardErrors.provider.unsupportedChain():Uo.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let o=r.result;o.isApproved&&o.rpcUrl.length>0&&this.updateProviderInfo(o.rpcUrl,t)}setAppInfo(t,n){this.initializeRelay().then(r=>r.setAppInfo(t,n))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(eU.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::enable\",addresses_length:this._addresses.length,sessionIdHash:this._relay?IJ.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(\"eth_requestAccounts\")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,n){try{let r=this._send(t,n);if(r instanceof Promise)return r.catch(o=>{throw(0,Uo.serializeError)(o,t)})}catch(r){throw(0,Uo.serializeError)(r,t)}}_send(t,n){if(typeof t==\"string\"){let o=t,i=Array.isArray(n)?n:n!==void 0?[n]:[],a={jsonrpc:\"2.0\",id:0,method:o,params:i};return this._sendRequestAsync(a).then(c=>c.result)}if(typeof n==\"function\"){let o=t,i=n;return this._sendAsync(o,i)}if(Array.isArray(t))return t.map(i=>this._sendRequest(i));let r=t;return this._sendRequest(r)}async sendAsync(t,n){try{return this._sendAsync(t,n).catch(r=>{throw(0,Uo.serializeError)(r,t)})}catch(r){return Promise.reject((0,Uo.serializeError)(r,t))}}async _sendAsync(t,n){if(typeof n!=\"function\")throw new Error(\"callback is required\");if(Array.isArray(t)){let o=n;this._sendMultipleRequestsAsync(t).then(i=>o(null,i)).catch(i=>o(i,null));return}let r=n;return this._sendRequestAsync(t).then(o=>r(null,o)).catch(o=>r(o,null))}async request(t){try{return this._request(t).catch(n=>{throw(0,Uo.serializeError)(n,t.method)})}catch(n){return Promise.reject((0,Uo.serializeError)(n,t.method))}}async _request(t){if(!t||typeof t!=\"object\"||Array.isArray(t))throw Uo.standardErrors.rpc.invalidRequest({message:\"Expected a single, non-array, object argument.\",data:t});let{method:n,params:r}=t;if(typeof n!=\"string\"||n.length===0)throw Uo.standardErrors.rpc.invalidRequest({message:\"\\'args.method\\' must be a non-empty string.\",data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\"object\"||r===null))throw Uo.standardErrors.rpc.invalidRequest({message:\"\\'args.params\\' must be an object or array if provided.\",data:t});let o=r===void 0?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:n,params:o,jsonrpc:\"2.0\",id:i})).result}async scanQRCode(t){let r=await(await this.initializeRelay()).scanQRCode((0,Lr.ensureRegExpString)(t)).promise;if((0,vm.isErrorResponse)(r))throw(0,Uo.serializeError)(r.errorMessage,\"scanQRCode\");if(typeof r.result!=\"string\")throw(0,Uo.serializeError)(\"result was not a string\",\"scanQRCode\");return r.result}async genericRequest(t,n){let o=await(await this.initializeRelay()).genericRequest(t,n).promise;if((0,vm.isErrorResponse)(o))throw(0,Uo.serializeError)(o.errorMessage,\"generic\");if(typeof o.result!=\"string\")throw(0,Uo.serializeError)(\"result was not a string\",\"generic\");return o.result}async connectAndSignIn(t){var n;(n=this.diagnostic)===null||n===void 0||n.log(eU.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::connectAndSignIn\",sessionIdHash:this._relay?IJ.Session.hash(this._relay.session.id):void 0});let r;try{let i=await this.initializeRelay();if(!(i instanceof $kt.MobileRelay))throw new Error(\"connectAndSignIn is only supported on mobile\");if(r=await i.connectAndSignIn(t).promise,(0,vm.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(i){throw typeof i.message==\"string\"&&i.message.match(/(denied|rejected)/i)?Uo.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):i}if(!r.result)throw new Error(\"accounts received is empty\");let{accounts:o}=r.result;return this._setAddresses(o),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),r.result}async selectProvider(t){let r=await(await this.initializeRelay()).selectProvider(t).promise;if((0,vm.isErrorResponse)(r))throw(0,Uo.serializeError)(r.errorMessage,\"selectProvider\");if(typeof r.result!=\"string\")throw(0,Uo.serializeError)(\"result was not a string\",\"selectProvider\");return r.result}supportsSubscriptions(){return!1}subscribe(){throw new Error(\"Subscriptions are not supported\")}unsubscribe(){throw new Error(\"Subscriptions are not supported\")}disconnect(){return!0}_sendRequest(t){let n={jsonrpc:\"2.0\",id:t.id},{method:r}=t;if(n.result=this._handleSynchronousMethods(t),n.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return n}_setAddresses(t,n){if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let r=t.map(o=>(0,Lr.ensureAddressString)(o));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit(\"accountsChanged\",this._addresses),this._storage.setItem(YKe.LOCAL_STORAGE_ADDRESSES_KEY,r.join(\" \")))}_sendRequestAsync(t){return new Promise((n,r)=>{try{let o=this._handleSynchronousMethods(t);if(o!==void 0)return n({jsonrpc:\"2.0\",id:t.id,result:o});let i=this._handleAsynchronousFilterMethods(t);if(i!==void 0){i.then(c=>n(Object.assign(Object.assign({},c),{id:t.id}))).catch(c=>r(c));return}let a=this._handleSubscriptionMethods(t);if(a!==void 0){a.then(c=>n({jsonrpc:\"2.0\",id:t.id,result:c.result})).catch(c=>r(c));return}}catch(o){return r(o)}this._handleAsynchronousMethods(t).then(o=>o&&n(Object.assign(Object.assign({},o),{id:t.id}))).catch(o=>r(o))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(n=>this._sendRequestAsync(n)))}_handleSynchronousMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_accounts\":return this._eth_accounts();case\"eth_coinbase\":return this._eth_coinbase();case\"eth_uninstallFilter\":return this._eth_uninstallFilter(r);case\"net_version\":return this._net_version();case\"eth_chainId\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_sign\":return this._eth_sign(r);case\"eth_ecRecover\":return this._eth_ecRecover(r);case\"personal_sign\":return this._personal_sign(r);case\"personal_ecRecover\":return this._personal_ecRecover(r);case\"eth_signTransaction\":return this._eth_signTransaction(r);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(r);case\"eth_sendTransaction\":return this._eth_sendTransaction(r);case\"eth_signTypedData_v1\":return this._eth_signTypedData_v1(r);case\"eth_signTypedData_v2\":return this._throwUnsupportedMethodError();case\"eth_signTypedData_v3\":return this._eth_signTypedData_v3(r);case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this._eth_signTypedData_v4(r);case\"cbWallet_arbitrary\":return this._cbwallet_arbitrary(r);case\"wallet_addEthereumChain\":return this._wallet_addEthereumChain(r);case\"wallet_switchEthereumChain\":return this._wallet_switchEthereumChain(r);case\"wallet_watchAsset\":return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(i=>{var a;throw(i.code===Uo.standardErrorCodes.rpc.methodNotFound||i.code===Uo.standardErrorCodes.rpc.methodNotSupported)&&((a=this.diagnostic)===null||a===void 0||a.log(eU.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?IJ.Session.hash(this._relay.session.id):void 0})),i})}_handleAsynchronousFilterMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_newFilter\":return this._eth_newFilter(r);case\"eth_newBlockFilter\":return this._eth_newBlockFilter();case\"eth_newPendingTransactionFilter\":return this._eth_newPendingTransactionFilter();case\"eth_getFilterChanges\":return this._eth_getFilterChanges(r);case\"eth_getFilterLogs\":return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case\"eth_subscribe\":case\"eth_unsubscribe\":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{let n=(0,Lr.ensureAddressString)(t);return this._addresses.map(o=>(0,Lr.ensureAddressString)(o)).includes(n)}catch{}return!1}_ensureKnownAddress(t){var n;if(!this._isKnownAddress(t))throw(n=this.diagnostic)===null||n===void 0||n.log(eU.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let n=t.from?(0,Lr.ensureAddressString)(t.from):this.selectedAddress;if(!n)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(n);let r=t.to?(0,Lr.ensureAddressString)(t.to):null,o=t.value!=null?(0,Lr.ensureBN)(t.value):new Jkt.default(0),i=t.data?(0,Lr.ensureBuffer)(t.data):globalThis.Buffer.alloc(0),a=t.nonce!=null?(0,Lr.ensureIntNumber)(t.nonce):null,c=t.gasPrice!=null?(0,Lr.ensureBN)(t.gasPrice):null,u=t.maxFeePerGas!=null?(0,Lr.ensureBN)(t.maxFeePerGas):null,d=t.maxPriorityFeePerGas!=null?(0,Lr.ensureBN)(t.maxPriorityFeePerGas):null,p=t.gas!=null?(0,Lr.ensureBN)(t.gas):null,h=t.chainId?(0,Lr.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:n,toAddress:r,weiValue:o,data:i,nonce:a,gasPriceInWei:c,maxFeePerGas:u,maxPriorityFeePerGas:d,gasLimit:p,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw Uo.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw Uo.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,n,r,o){this._ensureKnownAddress(n);try{let a=await(await this.initializeRelay()).signEthereumMessage(t,n,r,o).promise;if((0,vm.isErrorResponse)(a))throw new Error(a.errorMessage);return{jsonrpc:\"2.0\",id:0,result:a.result}}catch(i){throw typeof i.message==\"string\"&&i.message.match(/(denied|rejected)/i)?Uo.standardErrors.provider.userRejectedRequest(\"User denied message signature\"):i}}async _ethereumAddressFromSignedMessage(t,n,r){let i=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,n,r).promise;if((0,vm.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:\"2.0\",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Lr.hexStringFromIntNumber)(this.getChainId())}getChainId(){let t=this._storage.getItem(ZKe);if(!t)return(0,Lr.ensureIntNumber)(this._chainIdFromOpts);let n=parseInt(t,10);return(0,Lr.ensureIntNumber)(n)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(eU.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::_eth_requestAccounts\",addresses_length:this._addresses.length,sessionIdHash:this._relay?IJ.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:\"2.0\",id:0,result:this._addresses});let n;try{if(n=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,vm.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?Uo.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):r}if(!n.result)throw new Error(\"accounts received is empty\");return this._setAddresses(n.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:\"2.0\",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();let n=(0,Lr.ensureAddressString)(t[0]),r=(0,Lr.ensureBuffer)(t[1]);return this._signEthereumMessage(r,n,!1)}_eth_ecRecover(t){let n=(0,Lr.ensureBuffer)(t[0]),r=(0,Lr.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(n,r,!1)}_personal_sign(t){this._requireAuthorization();let n=(0,Lr.ensureBuffer)(t[0]),r=(0,Lr.ensureAddressString)(t[1]);return this._signEthereumMessage(n,r,!0)}_personal_ecRecover(t){let n=(0,Lr.ensureBuffer)(t[0]),r=(0,Lr.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(n,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();let n=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signEthereumTransaction(n).promise;if((0,vm.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?Uo.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):r}}async _eth_sendRawTransaction(t){let n=(0,Lr.ensureBuffer)(t[0]),o=await(await this.initializeRelay()).submitEthereumTransaction(n,this.getChainId()).promise;if((0,vm.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}async _eth_sendTransaction(t){this._requireAuthorization();let n=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(n).promise;if((0,vm.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?Uo.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):r}}async _eth_signTypedData_v1(t){this._requireAuthorization();let n=(0,Lr.ensureParsedJSONObject)(t[0]),r=(0,Lr.ensureAddressString)(t[1]);this._ensureKnownAddress(r);let o=jme.default.hashForSignTypedDataLegacy({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(o,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();let n=(0,Lr.ensureAddressString)(t[0]),r=(0,Lr.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(n);let o=jme.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(o,n,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();let n=(0,Lr.ensureAddressString)(t[0]),r=(0,Lr.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(n);let o=jme.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(o,n,!1,i)}async _cbwallet_arbitrary(t){let n=t[0],r=t[1];if(typeof r!=\"string\")throw new Error(\"parameter must be a string\");if(typeof n!=\"object\"||n===null)throw new Error(\"parameter must be an object\");return{jsonrpc:\"2.0\",id:0,result:await this.genericRequest(n,r)}}async _wallet_addEthereumChain(t){var n,r,o,i;let a=t[0];if(((n=a.rpcUrls)===null||n===void 0?void 0:n.length)===0)return{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"please pass in at least 1 rpcUrl\"}};if(!a.chainName||a.chainName.trim()===\"\")throw Uo.standardErrors.rpc.invalidParams(\"chainName is a required field\");if(!a.nativeCurrency)throw Uo.standardErrors.rpc.invalidParams(\"nativeCurrency is a required field\");let c=parseInt(a.chainId,16);return await this.addEthereumChain(c,(r=a.rpcUrls)!==null&&r!==void 0?r:[],(o=a.blockExplorerUrls)!==null&&o!==void 0?o:[],a.chainName,(i=a.iconUrls)!==null&&i!==void 0?i:[],a.nativeCurrency)?{jsonrpc:\"2.0\",id:0,result:null}:{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"unable to add ethereum chain\"}}}async _wallet_switchEthereumChain(t){let n=t[0];return await this.switchEthereumChain(parseInt(n.chainId,16)),{jsonrpc:\"2.0\",id:0,result:null}}async _wallet_watchAsset(t){let n=Array.isArray(t)?t[0]:t;if(!n.type)throw Uo.standardErrors.rpc.invalidParams(\"Type is required\");if(n?.type!==\"ERC20\")throw Uo.standardErrors.rpc.invalidParams(`Asset of type \\'${n.type}\\' is not supported`);if(!n?.options)throw Uo.standardErrors.rpc.invalidParams(\"Options are required\");if(!n?.options.address)throw Uo.standardErrors.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:o,symbol:i,image:a,decimals:c}=n.options;return{jsonrpc:\"2.0\",id:0,result:await this.watchAsset(n.type,o,i,c,a,r)}}_eth_uninstallFilter(t){let n=(0,Lr.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(n)}async _eth_newFilter(t){let n=t[0];return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newFilter(n)}}async _eth_newBlockFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){let n=(0,Lr.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(n)}_eth_getFilterLogs(t){let n=(0,Lr.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(n)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((n,r)=>this._setAddresses(n,r)),t.setChainCallback((n,r)=>{this.updateProviderInfo(r,parseInt(n,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}};gN.CoinbaseWalletProvider=Wme});var XKe=me(kJ=>{\"use strict\";f();Object.defineProperty(kJ,\"__esModule\",{value:!0});kJ.RelayEventManager=void 0;var nNt=hv(),Vme=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,n=(0,nNt.prepend0x)(t.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),t}};kJ.RelayEventManager=Vme});var Gme=me(PJ=>{\"use strict\";f();Object.defineProperty(PJ,\"__esModule\",{value:!0});PJ.CoinbaseWalletSDK=void 0;var rNt=JLe(),oNt=XLe(),$Ke=hv(),iNt=xBe(),aNt=OJ(),sNt=ehe(),cNt=Xpe(),uNt=XKe(),lNt=Kpe(),dNt=Ype(),eYe=AZ(),NJ=class e{constructor(t){var n,r,o;this._appName=\"\",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=t.linkAPIUrl||oNt.LINK_API_URL;typeof t.overrideIsMetaMask>\"u\"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(n=t.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this._overrideIsCoinbaseBrowser=(r=t.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(o=t.reloadOnDisconnect)!==null&&o!==void 0?o:!0;let a=new URL(i),c=`${a.protocol}//${a.host}`;if(this._storage=new iNt.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem(\"version\",e.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new uNt.RelayEventManager;let u=(0,$Ke.isMobileWeb)(),d=t.uiConstructor||(h=>u?new cNt.MobileRelayUI(h):new lNt.WalletLinkRelayUI(h)),p={linkAPIUrl:i,version:eYe.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:d,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=u?new sNt.MobileRelay(p):new dNt.WalletLinkRelay(p),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t=\"\",n=1){let r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,n),this._reloadOnDisconnect===!1&&typeof r.disableReloadOnDisconnect==\"function\"&&r.disableReloadOnDisconnect(),r;let o=this.coinbaseBrowser;if(o)return o;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error(\"Relay not initialized, should never happen\");return t||i.setConnectDisabled(!0),new aNt.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:n,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,n){var r;this._appName=t||\"DApp\",this._appLogoUrl=n||(0,$Ke.getFavicon)();let o=this.walletExtension;o?this.isCipherProvider(o)||o.setAppInfo(this._appName,this._appLogoUrl):(r=this._relay)===null||r===void 0||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;let n=this===null||this===void 0?void 0:this.walletExtension;n?n.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,n;return(n=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&n!==void 0?n:null}getCoinbaseWalletLogo(t,n=240){return(0,rNt.walletLogo)(t,n)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,n;try{let r=(t=window.ethereum)!==null&&t!==void 0?t:(n=window.top)===null||n===void 0?void 0:n.ethereum;return r&&\"isCoinbaseBrowser\"in r&&r.isCoinbaseBrowser?r:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher==\"boolean\"&&t.isCipher}};PJ.CoinbaseWalletSDK=NJ;NJ.VERSION=eYe.LIB_VERSION});var nYe=me(bC=>{\"use strict\";f();Object.defineProperty(bC,\"__esModule\",{value:!0});bC.CoinbaseWalletProvider=bC.CoinbaseWalletSDK=void 0;var qme=Gme(),tYe=OJ(),fNt=Gme();Object.defineProperty(bC,\"CoinbaseWalletSDK\",{enumerable:!0,get:function(){return fNt.CoinbaseWalletSDK}});var pNt=OJ();Object.defineProperty(bC,\"CoinbaseWalletProvider\",{enumerable:!0,get:function(){return pNt.CoinbaseWalletProvider}});bC.default=qme.CoinbaseWalletSDK;typeof window<\"u\"&&(window.CoinbaseWalletSDK=qme.CoinbaseWalletSDK,window.CoinbaseWalletProvider=tYe.CoinbaseWalletProvider,window.WalletLink=qme.CoinbaseWalletSDK,window.WalletLinkProvider=tYe.CoinbaseWalletProvider)});var oYe=me((cS,rYe)=>{f();var MJ=typeof globalThis<\"u\"&&globalThis||typeof self<\"u\"&&self||typeof globalThis<\"u\"&&globalThis,DJ=(function(){function e(){this.fetch=!1,this.DOMException=MJ.DOMException}return e.prototype=MJ,new e})();(function(e){var t=(function(n){var r=typeof e<\"u\"&&e||typeof self<\"u\"&&self||typeof e<\"u\"&&e||{},o={searchParams:\"URLSearchParams\"in r,iterable:\"Symbol\"in r&&\"iterator\"in Symbol,blob:\"FileReader\"in r&&\"Blob\"in r&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:\"FormData\"in r,arrayBuffer:\"ArrayBuffer\"in r};function i(q){return q&&DataView.prototype.isPrototypeOf(q)}if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],c=ArrayBuffer.isView||function(q){return q&&a.indexOf(Object.prototype.toString.call(q))>-1};function u(q){if(typeof q!=\"string\"&&(q=String(q)),/[^a-z0-9\\\\-#$%&\\'*+.^_`|~!]/i.test(q)||q===\"\")throw new TypeError(\\'Invalid character in header field name: \"\\'+q+\\'\"\\');return q.toLowerCase()}function d(q){return typeof q!=\"string\"&&(q=String(q)),q}function p(q){var K={next:function(){var U=q.shift();return{done:U===void 0,value:U}}};return o.iterable&&(K[Symbol.iterator]=function(){return K}),K}function h(q){this.map={},q instanceof h?q.forEach(function(K,U){this.append(U,K)},this):Array.isArray(q)?q.forEach(function(K){if(K.length!=2)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+K.length);this.append(K[0],K[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(K){this.append(K,q[K])},this)}h.prototype.append=function(q,K){q=u(q),K=d(K);var U=this.map[q];this.map[q]=U?U+\", \"+K:K},h.prototype.delete=function(q){delete this.map[u(q)]},h.prototype.get=function(q){return q=u(q),this.has(q)?this.map[q]:null},h.prototype.has=function(q){return this.map.hasOwnProperty(u(q))},h.prototype.set=function(q,K){this.map[u(q)]=d(K)},h.prototype.forEach=function(q,K){for(var U in this.map)this.map.hasOwnProperty(U)&&q.call(K,this.map[U],U,this)},h.prototype.keys=function(){var q=[];return this.forEach(function(K,U){q.push(U)}),p(q)},h.prototype.values=function(){var q=[];return this.forEach(function(K){q.push(K)}),p(q)},h.prototype.entries=function(){var q=[];return this.forEach(function(K,U){q.push([U,K])}),p(q)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(q){if(!q._noBody){if(q.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));q.bodyUsed=!0}}function y(q){return new Promise(function(K,U){q.onload=function(){K(q.result)},q.onerror=function(){U(q.error)}})}function v(q){var K=new FileReader,U=y(K);return K.readAsArrayBuffer(q),U}function x(q){var K=new FileReader,U=y(K),T=/charset=([A-Za-z0-9_-]+)/.exec(q.type),k=T?T[1]:\"utf-8\";return K.readAsText(q,k),U}function R(q){for(var K=new Uint8Array(q),U=new Array(K.length),T=0;T<K.length;T++)U[T]=String.fromCharCode(K[T]);return U.join(\"\")}function S(q){if(q.slice)return q.slice(0);var K=new Uint8Array(q.byteLength);return K.set(new Uint8Array(q)),K.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(q){this.bodyUsed=this.bodyUsed,this._bodyInit=q,q?typeof q==\"string\"?this._bodyText=q:o.blob&&Blob.prototype.isPrototypeOf(q)?this._bodyBlob=q:o.formData&&FormData.prototype.isPrototypeOf(q)?this._bodyFormData=q:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)?this._bodyText=q.toString():o.arrayBuffer&&o.blob&&i(q)?(this._bodyArrayBuffer=S(q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(q)||c(q))?this._bodyArrayBuffer=S(q):this._bodyText=q=Object.prototype.toString.call(q):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(typeof q==\"string\"?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var q=g(this);if(q)return q;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var q=g(this);return q||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(v);throw new Error(\"could not read as ArrayBuffer\")}},this.text=function(){var q=g(this);if(q)return q;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(Q)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function z(q){var K=q.toUpperCase();return P.indexOf(K)>-1?K:q}function V(q,K){if(!(this instanceof V))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');K=K||{};var U=K.body;if(q instanceof V){if(q.bodyUsed)throw new TypeError(\"Already read\");this.url=q.url,this.credentials=q.credentials,K.headers||(this.headers=new h(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!U&&q._bodyInit!=null&&(U=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=K.credentials||this.credentials||\"same-origin\",(K.headers||!this.headers)&&(this.headers=new h(K.headers)),this.method=z(K.method||this.method||\"GET\"),this.mode=K.mode||this.mode||null,this.signal=K.signal||this.signal||(function(){if(\"AbortController\"in r){var F=new AbortController;return F.signal}})(),this.referrer=null,(this.method===\"GET\"||this.method===\"HEAD\")&&U)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(U),(this.method===\"GET\"||this.method===\"HEAD\")&&(K.cache===\"no-store\"||K.cache===\"no-cache\")){var T=/([?&])_=[^&]*/;if(T.test(this.url))this.url=this.url.replace(T,\"$1_=\"+new Date().getTime());else{var k=/\\\\?/;this.url+=(k.test(this.url)?\"&\":\"?\")+\"_=\"+new Date().getTime()}}}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function Q(q){var K=new FormData;return q.trim().split(\"&\").forEach(function(U){if(U){var T=U.split(\"=\"),k=T.shift().replace(/\\\\+/g,\" \"),F=T.join(\"=\").replace(/\\\\+/g,\" \");K.append(decodeURIComponent(k),decodeURIComponent(F))}}),K}function $(q){var K=new h,U=q.replace(/\\\\r?\\\\n[\\\\t ]+/g,\" \");return U.split(\"\\\\r\").map(function(T){return T.indexOf(`\\n`)===0?T.substr(1,T.length):T}).forEach(function(T){var k=T.split(\":\"),F=k.shift().trim();if(F){var N=k.join(\":\").trim();try{K.append(F,N)}catch(B){console.warn(\"Response \"+B.message)}}}),K}M.call(V.prototype);function oe(q,K){if(!(this instanceof oe))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');if(K||(K={}),this.type=\"default\",this.status=K.status===void 0?200:K.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct \\'Response\\': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=K.statusText===void 0?\"\":\"\"+K.statusText,this.headers=new h(K.headers),this.url=K.url||\"\",this._initBody(q)}M.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},oe.error=function(){var q=new oe(null,{status:200,statusText:\"\"});return q.ok=!1,q.status=0,q.type=\"error\",q};var J=[301,302,303,307,308];oe.redirect=function(q,K){if(J.indexOf(K)===-1)throw new RangeError(\"Invalid status code\");return new oe(null,{status:K,headers:{location:q}})},n.DOMException=r.DOMException;try{new n.DOMException}catch{n.DOMException=function(K,U){this.message=K,this.name=U;var T=Error(K);this.stack=T.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function re(q,K){return new Promise(function(U,T){var k=new V(q,K);if(k.signal&&k.signal.aborted)return T(new n.DOMException(\"Aborted\",\"AbortError\"));var F=new XMLHttpRequest;function N(){F.abort()}F.onload=function(){var W={statusText:F.statusText,headers:$(F.getAllResponseHeaders()||\"\")};k.url.indexOf(\"file://\")===0&&(F.status<200||F.status>599)?W.status=200:W.status=F.status,W.url=\"responseURL\"in F?F.responseURL:W.headers.get(\"X-Request-URL\");var G=\"response\"in F?F.response:F.responseText;setTimeout(function(){U(new oe(G,W))},0)},F.onerror=function(){setTimeout(function(){T(new TypeError(\"Network request failed\"))},0)},F.ontimeout=function(){setTimeout(function(){T(new TypeError(\"Network request timed out\"))},0)},F.onabort=function(){setTimeout(function(){T(new n.DOMException(\"Aborted\",\"AbortError\"))},0)};function B(W){try{return W===\"\"&&r.location.href?r.location.href:W}catch{return W}}if(F.open(k.method,B(k.url),!0),k.credentials===\"include\"?F.withCredentials=!0:k.credentials===\"omit\"&&(F.withCredentials=!1),\"responseType\"in F&&(o.blob?F.responseType=\"blob\":o.arrayBuffer&&(F.responseType=\"arraybuffer\")),K&&typeof K.headers==\"object\"&&!(K.headers instanceof h||r.Headers&&K.headers instanceof r.Headers)){var H=[];Object.getOwnPropertyNames(K.headers).forEach(function(W){H.push(u(W)),F.setRequestHeader(W,d(K.headers[W]))}),k.headers.forEach(function(W,G){H.indexOf(G)===-1&&F.setRequestHeader(G,W)})}else k.headers.forEach(function(W,G){F.setRequestHeader(G,W)});k.signal&&(k.signal.addEventListener(\"abort\",N),F.onreadystatechange=function(){F.readyState===4&&k.signal.removeEventListener(\"abort\",N)}),F.send(typeof k._bodyInit>\"u\"?null:k._bodyInit)})}return re.polyfill=!0,r.fetch||(r.fetch=re,r.Headers=h,r.Request=V,r.Response=oe),n.Headers=h,n.Request=V,n.Response=oe,n.fetch=re,n})({})})(DJ);DJ.fetch.ponyfill=!0;delete DJ.fetch.polyfill;var yN=MJ.fetch?MJ:DJ;cS=yN.fetch;cS.default=yN.fetch;cS.fetch=yN.fetch;cS.Headers=yN.Headers;cS.Request=yN.Request;cS.Response=yN.Response;rYe.exports=cS});var sYe=me((iYe,aYe)=>{f();(function(e){var t=Object.hasOwnProperty,n=Array.isArray?Array.isArray:function(B){return Object.prototype.toString.call(B)===\"[object Array]\"},r=10,o=typeof process==\"object\"&&typeof process.nextTick==\"function\",i=typeof Symbol==\"function\",a=typeof Reflect==\"object\",c=typeof setImmediate==\"function\",u=c?setImmediate:setTimeout,d=i?a&&typeof Reflect.ownKeys==\"function\"?Reflect.ownKeys:function(N){var B=Object.getOwnPropertyNames(N);return B.push.apply(B,Object.getOwnPropertySymbols(N)),B}:Object.keys;function p(){this._events={},this._conf&&h.call(this,this._conf)}function h(N){N&&(this._conf=N,N.delimiter&&(this.delimiter=N.delimiter),N.maxListeners!==e&&(this._maxListeners=N.maxListeners),N.wildcard&&(this.wildcard=N.wildcard),N.newListener&&(this._newListener=N.newListener),N.removeListener&&(this._removeListener=N.removeListener),N.verboseMemoryLeak&&(this.verboseMemoryLeak=N.verboseMemoryLeak),N.ignoreErrors&&(this.ignoreErrors=N.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function g(N,B){var H=\"(node) warning: possible EventEmitter memory leak detected. \"+N+\" listeners added. Use emitter.setMaxListeners() to increase limit.\";if(this.verboseMemoryLeak&&(H+=\" Event name: \"+B+\".\"),typeof process<\"u\"&&process.emitWarning){var W=new Error(H);W.name=\"MaxListenersExceededWarning\",W.emitter=this,W.count=N,process.emitWarning(W)}else console.error(H),console.trace&&console.trace()}var y=function(N,B,H){var W=arguments.length;switch(W){case 0:return[];case 1:return[N];case 2:return[N,B];case 3:return[N,B,H];default:for(var G=new Array(W);W--;)G[W]=arguments[W];return G}};function v(N,B){for(var H={},W,G=N.length,O=B?B.length:0,j=0;j<G;j++)W=N[j],H[W]=j<O?B[j]:e;return H}function x(N,B,H){this._emitter=N,this._target=B,this._listeners={},this._listenersCount=0;var W,G;if((H.on||H.off)&&(W=H.on,G=H.off),B.addEventListener?(W=B.addEventListener,G=B.removeEventListener):B.addListener?(W=B.addListener,G=B.removeListener):B.on&&(W=B.on,G=B.off),!W&&!G)throw Error(\"target does not implement any known event API\");if(typeof W!=\"function\")throw TypeError(\"on method must be a function\");if(typeof G!=\"function\")throw TypeError(\"off method must be a function\");this._on=W,this._off=G;var O=N._observers;O?O.push(this):N._observers=[this]}Object.assign(x.prototype,{subscribe:function(N,B,H){var W=this,G=this._target,O=this._emitter,j=this._listeners,te=function(){var ne=y.apply(null,arguments),ae={data:ne,name:B,original:N};if(H){var pe=H.call(G,ae);pe!==!1&&O.emit.apply(O,[ae.name].concat(ne));return}O.emit.apply(O,[B].concat(ne))};if(j[N])throw Error(\"Event \\'\"+N+\"\\' is already listening\");this._listenersCount++,O._newListener&&O._removeListener&&!W._onNewListener?(this._onNewListener=function(ne){ne===B&&j[N]===null&&(j[N]=te,W._on.call(G,N,te))},O.on(\"newListener\",this._onNewListener),this._onRemoveListener=function(ne){ne===B&&!O.hasListeners(ne)&&j[N]&&(j[N]=null,W._off.call(G,N,te))},j[N]=null,O.on(\"removeListener\",this._onRemoveListener)):(j[N]=te,W._on.call(G,N,te))},unsubscribe:function(N){var B=this,H=this._listeners,W=this._emitter,G,O,j=this._off,te=this._target,ne;if(N&&typeof N!=\"string\")throw TypeError(\"event must be a string\");function ae(){B._onNewListener&&(W.off(\"newListener\",B._onNewListener),W.off(\"removeListener\",B._onRemoveListener),B._onNewListener=null,B._onRemoveListener=null);var pe=Q.call(W,B);W._observers.splice(pe,1)}if(N){if(G=H[N],!G)return;j.call(te,N,G),delete H[N],--this._listenersCount||ae()}else{for(O=d(H),ne=O.length;ne-- >0;)N=O[ne],j.call(te,N,H[N]);this._listeners={},this._listenersCount=0,ae()}}});function R(N,B,H,W){var G=Object.assign({},B);if(!N)return G;if(typeof N!=\"object\")throw TypeError(\"options must be an object\");var O=Object.keys(N),j=O.length,te,ne,ae;function pe(ve){throw Error(\\'Invalid \"\\'+te+\\'\" option value\\'+(ve?\". Reason: \"+ve:\"\"))}for(var ye=0;ye<j;ye++){if(te=O[ye],!W&&!t.call(B,te))throw Error(\\'Unknown \"\\'+te+\\'\" option\\');ne=N[te],ne!==e&&(ae=H[te],G[te]=ae?ae(ne,pe):ne)}return G}function S(N,B){return(typeof N!=\"function\"||!N.hasOwnProperty(\"prototype\"))&&B(\"value must be a constructor\"),N}function M(N){var B=\"value must be type of \"+N.join(\"|\"),H=N.length,W=N[0],G=N[1];return H===1?function(O,j){if(typeof O===W)return O;j(B)}:H===2?function(O,j){var te=typeof O;if(te===W||te===G)return O;j(B)}:function(O,j){for(var te=typeof O,ne=H;ne-- >0;)if(te===N[ne])return O;j(B)}}var P=M([\"function\"]),z=M([\"object\",\"function\"]);function V(N,B,H){var W,G,O=0,j,te=new N(function(ne,ae,pe){H=R(H,{timeout:0,overload:!1},{timeout:function(De,Ge){return De*=1,(typeof De!=\"number\"||De<0||!Number.isFinite(De))&&Ge(\"timeout must be a positive number\"),De}}),W=!H.overload&&typeof N.prototype.cancel==\"function\"&&typeof pe==\"function\";function ye(){G&&(G=null),O&&(clearTimeout(O),O=0)}var ve=function(De){ye(),ne(De)},xe=function(De){ye(),ae(De)};W?B(ve,xe,pe):(G=[function(De){xe(De||Error(\"canceled\"))}],B(ve,xe,function(De){if(j)throw Error(\"Unable to subscribe on cancel event asynchronously\");if(typeof De!=\"function\")throw TypeError(\"onCancel callback must be a function\");G.push(De)}),j=!0),H.timeout>0&&(O=setTimeout(function(){var De=Error(\"timeout\");De.code=\"ETIMEDOUT\",O=0,te.cancel(De),ae(De)},H.timeout))});return W||(te.cancel=function(ne){if(G){for(var ae=G.length,pe=1;pe<ae;pe++)G[pe](ne);G[0](ne),G=null}}),te}function Q(N){var B=this._observers;if(!B)return-1;for(var H=B.length,W=0;W<H;W++)if(B[W]._target===N)return W;return-1}function $(N,B,H,W,G){if(!H)return null;if(W===0){var O=typeof B;if(O===\"string\"){var j,te,ne=0,ae=0,pe=this.delimiter,ye=pe.length;if((te=B.indexOf(pe))!==-1){j=new Array(5);do j[ne++]=B.slice(ae,te),ae=te+ye;while((te=B.indexOf(pe,ae))!==-1);j[ne++]=B.slice(ae),B=j,G=ne}else B=[B],G=1}else O===\"object\"?G=B.length:(B=[B],G=1)}var ve=null,xe,De,Ge,gt,Ye,lt=B[W],At=B[W+1],ht,et;if(W===G)H._listeners&&(typeof H._listeners==\"function\"?(N&&N.push(H._listeners),ve=[H]):(N&&N.push.apply(N,H._listeners),ve=[H]));else if(lt===\"*\"){for(ht=d(H),te=ht.length;te-- >0;)xe=ht[te],xe!==\"_listeners\"&&(et=$(N,B,H[xe],W+1,G),et&&(ve?ve.push.apply(ve,et):ve=et));return ve}else if(lt===\"**\"){for(Ye=W+1===G||W+2===G&&At===\"*\",Ye&&H._listeners&&(ve=$(N,B,H,G,G)),ht=d(H),te=ht.length;te-- >0;)xe=ht[te],xe!==\"_listeners\"&&(xe===\"*\"||xe===\"**\"?(H[xe]._listeners&&!Ye&&(et=$(N,B,H[xe],G,G),et&&(ve?ve.push.apply(ve,et):ve=et)),et=$(N,B,H[xe],W,G)):xe===At?et=$(N,B,H[xe],W+2,G):et=$(N,B,H[xe],W,G),et&&(ve?ve.push.apply(ve,et):ve=et));return ve}else H[lt]&&(ve=$(N,B,H[lt],W+1,G));if(De=H[\"*\"],De&&$(N,B,De,W+1,G),Ge=H[\"**\"],Ge)if(W<G)for(Ge._listeners&&$(N,B,Ge,G,G),ht=d(Ge),te=ht.length;te-- >0;)xe=ht[te],xe!==\"_listeners\"&&(xe===At?$(N,B,Ge[xe],W+2,G):xe===lt?$(N,B,Ge[xe],W+1,G):(gt={},gt[xe]=Ge[xe],$(N,B,{\"**\":gt},W+1,G)));else Ge._listeners?$(N,B,Ge,G,G):Ge[\"*\"]&&Ge[\"*\"]._listeners&&$(N,B,Ge[\"*\"],G,G);return ve}function oe(N,B,H){var W=0,G=0,O,j=this.delimiter,te=j.length,ne;if(typeof N==\"string\")if((O=N.indexOf(j))!==-1){ne=new Array(5);do ne[W++]=N.slice(G,O),G=O+te;while((O=N.indexOf(j,G))!==-1);ne[W++]=N.slice(G)}else ne=[N],W=1;else ne=N,W=N.length;if(W>1){for(O=0;O+1<W;O++)if(ne[O]===\"**\"&&ne[O+1]===\"**\")return}var ae=this.listenerTree,pe;for(O=0;O<W;O++)if(pe=ne[O],ae=ae[pe]||(ae[pe]={}),O===W-1)return ae._listeners?(typeof ae._listeners==\"function\"&&(ae._listeners=[ae._listeners]),H?ae._listeners.unshift(B):ae._listeners.push(B),!ae._listeners.warned&&this._maxListeners>0&&ae._listeners.length>this._maxListeners&&(ae._listeners.warned=!0,g.call(this,ae._listeners.length,pe))):ae._listeners=B,!0;return!0}function J(N,B,H,W){for(var G=d(N),O=G.length,j,te,ne,ae=N._listeners,pe;O-- >0;)te=G[O],j=N[te],te===\"_listeners\"?ne=H:ne=H?H.concat(te):[te],pe=W||typeof te==\"symbol\",ae&&B.push(pe?ne:ne.join(this.delimiter)),typeof j==\"object\"&&J.call(this,j,B,ne,pe);return B}function re(N){for(var B=d(N),H=B.length,W,G,O;H-- >0;)G=B[H],W=N[G],W&&(O=!0,G!==\"_listeners\"&&!re(W)&&delete N[G]);return O}function q(N,B,H){this.emitter=N,this.event=B,this.listener=H}q.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function K(N,B,H){if(H===!0)G=!0;else if(H===!1)W=!0;else{if(!H||typeof H!=\"object\")throw TypeError(\"options should be an object or true\");var W=H.async,G=H.promisify,O=H.nextTick,j=H.objectify}if(W||O||G){var te=B,ne=B._origin||B;if(O&&!o)throw Error(\"process.nextTick is not supported\");G===e&&(G=B.constructor.name===\"AsyncFunction\"),B=function(){var ae=arguments,pe=this,ye=this.event;return G?O?Promise.resolve():new Promise(function(ve){u(ve)}).then(function(){return pe.event=ye,te.apply(pe,ae)}):(O?process.nextTick:u)(function(){pe.event=ye,te.apply(pe,ae)})},B._async=!0,B._origin=ne}return[B,j?new q(this,N,B):this]}function U(N){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,N)}U.EventEmitter2=U,U.prototype.listenTo=function(N,B,H){if(typeof N!=\"object\")throw TypeError(\"target musts be an object\");var W=this;H=R(H,{on:e,off:e,reducers:e},{on:P,off:P,reducers:z});function G(O){if(typeof O!=\"object\")throw TypeError(\"events must be an object\");var j=H.reducers,te=Q.call(W,N),ne;te===-1?ne=new x(W,N,H):ne=W._observers[te];for(var ae=d(O),pe=ae.length,ye,ve=typeof j==\"function\",xe=0;xe<pe;xe++)ye=ae[xe],ne.subscribe(ye,O[ye]||ye,ve?j:j&&j[ye])}return n(B)?G(v(B)):G(typeof B==\"string\"?v(B.split(/\\\\s+/)):B),this},U.prototype.stopListeningTo=function(N,B){var H=this._observers;if(!H)return!1;var W=H.length,G,O=!1;if(N&&typeof N!=\"object\")throw TypeError(\"target should be an object\");for(;W-- >0;)G=H[W],(!N||G._target===N)&&(G.unsubscribe(B),O=!0);return O},U.prototype.delimiter=\".\",U.prototype.setMaxListeners=function(N){N!==e&&(this._maxListeners=N,this._conf||(this._conf={}),this._conf.maxListeners=N)},U.prototype.getMaxListeners=function(){return this._maxListeners},U.prototype.event=\"\",U.prototype.once=function(N,B,H){return this._once(N,B,!1,H)},U.prototype.prependOnceListener=function(N,B,H){return this._once(N,B,!0,H)},U.prototype._once=function(N,B,H,W){return this._many(N,1,B,H,W)},U.prototype.many=function(N,B,H,W){return this._many(N,B,H,!1,W)},U.prototype.prependMany=function(N,B,H,W){return this._many(N,B,H,!0,W)},U.prototype._many=function(N,B,H,W,G){var O=this;if(typeof H!=\"function\")throw new Error(\"many only accepts instances of Function\");function j(){return--B===0&&O.off(N,j),H.apply(this,arguments)}return j._origin=H,this._on(N,j,W,G)},U.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||p.call(this);var N=arguments[0],B,H=this.wildcard,W,G,O,j,te;if(N===\"newListener\"&&!this._newListener&&!this._events.newListener)return!1;if(H&&(B=N,N!==\"newListener\"&&N!==\"removeListener\"&&typeof N==\"object\")){if(G=N.length,i){for(O=0;O<G;O++)if(typeof N[O]==\"symbol\"){te=!0;break}}te||(N=N.join(this.delimiter))}var ne=arguments.length,ae;if(this._all&&this._all.length)for(ae=this._all.slice(),O=0,G=ae.length;O<G;O++)switch(this.event=N,ne){case 1:ae[O].call(this,N);break;case 2:ae[O].call(this,N,arguments[1]);break;case 3:ae[O].call(this,N,arguments[1],arguments[2]);break;default:ae[O].apply(this,arguments)}if(H)ae=[],$.call(this,ae,B,this.listenerTree,0,G);else if(ae=this._events[N],typeof ae==\"function\"){switch(this.event=N,ne){case 1:ae.call(this);break;case 2:ae.call(this,arguments[1]);break;case 3:ae.call(this,arguments[1],arguments[2]);break;default:for(W=new Array(ne-1),j=1;j<ne;j++)W[j-1]=arguments[j];ae.apply(this,W)}return!0}else ae&&(ae=ae.slice());if(ae&&ae.length){if(ne>3)for(W=new Array(ne-1),j=1;j<ne;j++)W[j-1]=arguments[j];for(O=0,G=ae.length;O<G;O++)switch(this.event=N,ne){case 1:ae[O].call(this);break;case 2:ae[O].call(this,arguments[1]);break;case 3:ae[O].call(this,arguments[1],arguments[2]);break;default:ae[O].apply(this,W)}return!0}else if(!this.ignoreErrors&&!this._all&&N===\"error\")throw arguments[1]instanceof Error?arguments[1]:new Error(\"Uncaught, unspecified \\'error\\' event.\");return!!this._all},U.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||p.call(this);var N=arguments[0],B=this.wildcard,H,W,G,O,j,te;if(N===\"newListener\"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(B&&(H=N,N!==\"newListener\"&&N!==\"removeListener\"&&typeof N==\"object\")){if(O=N.length,i){for(j=0;j<O;j++)if(typeof N[j]==\"symbol\"){W=!0;break}}W||(N=N.join(this.delimiter))}var ne=[],ae=arguments.length,pe;if(this._all)for(j=0,O=this._all.length;j<O;j++)switch(this.event=N,ae){case 1:ne.push(this._all[j].call(this,N));break;case 2:ne.push(this._all[j].call(this,N,arguments[1]));break;case 3:ne.push(this._all[j].call(this,N,arguments[1],arguments[2]));break;default:ne.push(this._all[j].apply(this,arguments))}if(B?(pe=[],$.call(this,pe,H,this.listenerTree,0)):pe=this._events[N],typeof pe==\"function\")switch(this.event=N,ae){case 1:ne.push(pe.call(this));break;case 2:ne.push(pe.call(this,arguments[1]));break;case 3:ne.push(pe.call(this,arguments[1],arguments[2]));break;default:for(G=new Array(ae-1),te=1;te<ae;te++)G[te-1]=arguments[te];ne.push(pe.apply(this,G))}else if(pe&&pe.length){if(pe=pe.slice(),ae>3)for(G=new Array(ae-1),te=1;te<ae;te++)G[te-1]=arguments[te];for(j=0,O=pe.length;j<O;j++)switch(this.event=N,ae){case 1:ne.push(pe[j].call(this));break;case 2:ne.push(pe[j].call(this,arguments[1]));break;case 3:ne.push(pe[j].call(this,arguments[1],arguments[2]));break;default:ne.push(pe[j].apply(this,G))}}else if(!this.ignoreErrors&&!this._all&&N===\"error\")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject(\"Uncaught, unspecified \\'error\\' event.\");return Promise.all(ne)},U.prototype.on=function(N,B,H){return this._on(N,B,!1,H)},U.prototype.prependListener=function(N,B,H){return this._on(N,B,!0,H)},U.prototype.onAny=function(N){return this._onAny(N,!1)},U.prototype.prependAny=function(N){return this._onAny(N,!0)},U.prototype.addListener=U.prototype.on,U.prototype._onAny=function(N,B){if(typeof N!=\"function\")throw new Error(\"onAny only accepts instances of Function\");return this._all||(this._all=[]),B?this._all.unshift(N):this._all.push(N),this},U.prototype._on=function(N,B,H,W){if(typeof N==\"function\")return this._onAny(N,B),this;if(typeof B!=\"function\")throw new Error(\"on only accepts instances of Function\");this._events||p.call(this);var G=this,O;return W!==e&&(O=K.call(this,N,B,W),B=O[0],G=O[1]),this._newListener&&this.emit(\"newListener\",N,B),this.wildcard?(oe.call(this,N,B,H),G):(this._events[N]?(typeof this._events[N]==\"function\"&&(this._events[N]=[this._events[N]]),H?this._events[N].unshift(B):this._events[N].push(B),!this._events[N].warned&&this._maxListeners>0&&this._events[N].length>this._maxListeners&&(this._events[N].warned=!0,g.call(this,this._events[N].length,N))):this._events[N]=B,G)},U.prototype.off=function(N,B){if(typeof B!=\"function\")throw new Error(\"removeListener only takes instances of Function\");var H,W=[];if(this.wildcard){var G=typeof N==\"string\"?N.split(this.delimiter):N.slice();if(W=$.call(this,null,G,this.listenerTree,0),!W)return this}else{if(!this._events[N])return this;H=this._events[N],W.push({_listeners:H})}for(var O=0;O<W.length;O++){var j=W[O];if(H=j._listeners,n(H)){for(var te=-1,ne=0,ae=H.length;ne<ae;ne++)if(H[ne]===B||H[ne].listener&&H[ne].listener===B||H[ne]._origin&&H[ne]._origin===B){te=ne;break}if(te<0)continue;return this.wildcard?j._listeners.splice(te,1):this._events[N].splice(te,1),H.length===0&&(this.wildcard?delete j._listeners:delete this._events[N]),this._removeListener&&this.emit(\"removeListener\",N,B),this}else(H===B||H.listener&&H.listener===B||H._origin&&H._origin===B)&&(this.wildcard?delete j._listeners:delete this._events[N],this._removeListener&&this.emit(\"removeListener\",N,B))}return this.listenerTree&&re(this.listenerTree),this},U.prototype.offAny=function(N){var B=0,H=0,W;if(N&&this._all&&this._all.length>0){for(W=this._all,B=0,H=W.length;B<H;B++)if(N===W[B])return W.splice(B,1),this._removeListener&&this.emit(\"removeListenerAny\",N),this}else{if(W=this._all,this._removeListener)for(B=0,H=W.length;B<H;B++)this.emit(\"removeListenerAny\",W[B]);this._all=[]}return this},U.prototype.removeListener=U.prototype.off,U.prototype.removeAllListeners=function(N){if(N===e)return!this._events||p.call(this),this;if(this.wildcard){var B=$.call(this,null,N,this.listenerTree,0),H,W;if(!B)return this;for(W=0;W<B.length;W++)H=B[W],H._listeners=null;this.listenerTree&&re(this.listenerTree)}else this._events&&(this._events[N]=null);return this},U.prototype.listeners=function(N){var B=this._events,H,W,G,O,j;if(N===e){if(this.wildcard)throw Error(\"event name required for wildcard emitter\");if(!B)return[];for(H=d(B),O=H.length,G=[];O-- >0;)W=B[H[O]],typeof W==\"function\"?G.push(W):G.push.apply(G,W);return G}else{if(this.wildcard){if(j=this.listenerTree,!j)return[];var te=[],ne=typeof N==\"string\"?N.split(this.delimiter):N.slice();return $.call(this,te,ne,j,0),te}return B?(W=B[N],W?typeof W==\"function\"?[W]:W:[]):[]}},U.prototype.eventNames=function(N){var B=this._events;return this.wildcard?J.call(this,this.listenerTree,[],null,N):B?d(B):[]},U.prototype.listenerCount=function(N){return this.listeners(N).length},U.prototype.hasListeners=function(N){if(this.wildcard){var B=[],H=typeof N==\"string\"?N.split(this.delimiter):N.slice();return $.call(this,B,H,this.listenerTree,0),B.length>0}var W=this._events,G=this._all;return!!(G&&G.length||W&&(N===e?d(W).length:W[N]))},U.prototype.listenersAny=function(){return this._all?this._all:[]},U.prototype.waitFor=function(N,B){var H=this,W=typeof B;return W===\"number\"?B={timeout:B}:W===\"function\"&&(B={filter:B}),B=R(B,{timeout:0,filter:e,handleError:!1,Promise,overload:!1},{filter:P,Promise:S}),V(B.Promise,function(G,O,j){function te(){var ne=B.filter;if(!(ne&&!ne.apply(H,arguments)))if(H.off(N,te),B.handleError){var ae=arguments[0];ae?O(ae):G(y.apply(null,arguments).slice(1))}else G(y.apply(null,arguments))}j(function(){H.off(N,te)}),H._on(N,te,!1)},{timeout:B.timeout,overload:B.overload})};function T(N,B,H){H=R(H,{Promise,timeout:0,overload:!1},{Promise:S});var W=H.Promise;return V(W,function(G,O,j){var te;if(typeof N.addEventListener==\"function\"){te=function(){G(y.apply(null,arguments))},j(function(){N.removeEventListener(B,te)}),N.addEventListener(B,te,{once:!0});return}var ne=function(){ae&&N.removeListener(\"error\",ae),G(y.apply(null,arguments))},ae;B!==\"error\"&&(ae=function(pe){N.removeListener(B,ne),O(pe)},N.once(\"error\",ae)),j(function(){ae&&N.removeListener(\"error\",ae),N.removeListener(B,ne)}),N.once(B,ne)},{timeout:H.timeout,overload:H.overload})}var k=U.prototype;if(Object.defineProperties(U,{defaultMaxListeners:{get:function(){return k._maxListeners},set:function(N){if(typeof N!=\"number\"||N<0||Number.isNaN(N))throw TypeError(\"n must be a non-negative number\");k._maxListeners=N},enumerable:!0},once:{value:T,writable:!0,configurable:!0}}),Object.defineProperties(k,{_maxListeners:{value:r,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof define==\"function\"&&define.amd)define(function(){return U});else if(typeof iYe==\"object\")aYe.exports=U;else{var F=new Function(\"\",\"return this\")();F.EventEmitter2=U}})()});function tU(){if(!LJ&&(LJ=typeof crypto<\"u\"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<\"u\"&&typeof msCrypto.getRandomValues==\"function\"&&msCrypto.getRandomValues.bind(msCrypto),!LJ))throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return LJ(gNt)}var LJ,gNt,Kme=Z(()=>{f();gNt=new Uint8Array(16)});var cYe,uYe=Z(()=>{f();cYe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function yNt(e){return typeof e==\"string\"&&cYe.test(e)}var g1,nU=Z(()=>{f();uYe();g1=yNt});function bNt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Hl[e[t+0]]+Hl[e[t+1]]+Hl[e[t+2]]+Hl[e[t+3]]+\"-\"+Hl[e[t+4]]+Hl[e[t+5]]+\"-\"+Hl[e[t+6]]+Hl[e[t+7]]+\"-\"+Hl[e[t+8]]+Hl[e[t+9]]+\"-\"+Hl[e[t+10]]+Hl[e[t+11]]+Hl[e[t+12]]+Hl[e[t+13]]+Hl[e[t+14]]+Hl[e[t+15]]).toLowerCase();if(!g1(n))throw TypeError(\"Stringified UUID is invalid\");return n}var Hl,BJ,uS,rU=Z(()=>{f();nU();Hl=[];for(BJ=0;BJ<256;++BJ)Hl.push((BJ+256).toString(16).substr(1));uS=bNt});function vNt(e,t,n){var r=t&&n||0,o=t||new Array(16);e=e||{};var i=e.node||lYe,a=e.clockseq!==void 0?e.clockseq:Yme;if(i==null||a==null){var c=e.random||(e.rng||tU)();i==null&&(i=lYe=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),a==null&&(a=Yme=(c[6]<<8|c[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),d=e.nsecs!==void 0?e.nsecs:Qme+1,p=u-Zme+(d-Qme)/1e4;if(p<0&&e.clockseq===void 0&&(a=a+1&16383),(p<0||u>Zme)&&e.nsecs===void 0&&(d=0),d>=1e4)throw new Error(\"uuid.v1(): Can\\'t create more than 10M uuids/sec\");Zme=u,Qme=d,Yme=a,u+=122192928e5;var h=((u&268435455)*1e4+d)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=h&255;var g=u/4294967296*1e4&268435455;o[r++]=g>>>8&255,o[r++]=g&255,o[r++]=g>>>24&15|16,o[r++]=g>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(var y=0;y<6;++y)o[r+y]=i[y];return t||uS(o)}var lYe,Yme,Zme,Qme,dYe,fYe=Z(()=>{f();Kme();rU();Zme=0,Qme=0;dYe=vNt});function wNt(e){if(!g1(e))throw TypeError(\"Invalid UUID\");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var UJ,Jme=Z(()=>{f();nU();UJ=wNt});function xNt(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}function FJ(e,t,n){function r(o,i,a,c){if(typeof o==\"string\"&&(o=xNt(o)),typeof i==\"string\"&&(i=UJ(i)),i.length!==16)throw TypeError(\"Namespace must be array-like (16 iterable integer values, 0-255)\");var u=new Uint8Array(16+o.length);if(u.set(i),u.set(o,i.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,a){c=c||0;for(var d=0;d<16;++d)a[c+d]=u[d];return a}return uS(u)}try{r.name=e}catch{}return r.DNS=ENt,r.URL=ANt,r}var ENt,ANt,Xme=Z(()=>{f();rU();Jme();ENt=\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\",ANt=\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\"});function _Nt(e){if(typeof e==\"string\"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return SNt(TNt(CNt(e),e.length*8))}function SNt(e){for(var t=[],n=e.length*32,r=\"0123456789abcdef\",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(a)}return t}function pYe(e){return(e+64>>>9<<4)+14+1}function TNt(e,t){e[t>>5]|=128<<t%32,e[pYe(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var c=n,u=r,d=o,p=i;n=Md(n,r,o,i,e[a],7,-680876936),i=Md(i,n,r,o,e[a+1],12,-389564586),o=Md(o,i,n,r,e[a+2],17,606105819),r=Md(r,o,i,n,e[a+3],22,-1044525330),n=Md(n,r,o,i,e[a+4],7,-176418897),i=Md(i,n,r,o,e[a+5],12,1200080426),o=Md(o,i,n,r,e[a+6],17,-1473231341),r=Md(r,o,i,n,e[a+7],22,-45705983),n=Md(n,r,o,i,e[a+8],7,1770035416),i=Md(i,n,r,o,e[a+9],12,-1958414417),o=Md(o,i,n,r,e[a+10],17,-42063),r=Md(r,o,i,n,e[a+11],22,-1990404162),n=Md(n,r,o,i,e[a+12],7,1804603682),i=Md(i,n,r,o,e[a+13],12,-40341101),o=Md(o,i,n,r,e[a+14],17,-1502002290),r=Md(r,o,i,n,e[a+15],22,1236535329),n=Dd(n,r,o,i,e[a+1],5,-165796510),i=Dd(i,n,r,o,e[a+6],9,-1069501632),o=Dd(o,i,n,r,e[a+11],14,643717713),r=Dd(r,o,i,n,e[a],20,-373897302),n=Dd(n,r,o,i,e[a+5],5,-701558691),i=Dd(i,n,r,o,e[a+10],9,38016083),o=Dd(o,i,n,r,e[a+15],14,-660478335),r=Dd(r,o,i,n,e[a+4],20,-405537848),n=Dd(n,r,o,i,e[a+9],5,568446438),i=Dd(i,n,r,o,e[a+14],9,-1019803690),o=Dd(o,i,n,r,e[a+3],14,-187363961),r=Dd(r,o,i,n,e[a+8],20,1163531501),n=Dd(n,r,o,i,e[a+13],5,-1444681467),i=Dd(i,n,r,o,e[a+2],9,-51403784),o=Dd(o,i,n,r,e[a+7],14,1735328473),r=Dd(r,o,i,n,e[a+12],20,-1926607734),n=Ld(n,r,o,i,e[a+5],4,-378558),i=Ld(i,n,r,o,e[a+8],11,-2022574463),o=Ld(o,i,n,r,e[a+11],16,1839030562),r=Ld(r,o,i,n,e[a+14],23,-35309556),n=Ld(n,r,o,i,e[a+1],4,-1530992060),i=Ld(i,n,r,o,e[a+4],11,1272893353),o=Ld(o,i,n,r,e[a+7],16,-155497632),r=Ld(r,o,i,n,e[a+10],23,-1094730640),n=Ld(n,r,o,i,e[a+13],4,681279174),i=Ld(i,n,r,o,e[a],11,-358537222),o=Ld(o,i,n,r,e[a+3],16,-722521979),r=Ld(r,o,i,n,e[a+6],23,76029189),n=Ld(n,r,o,i,e[a+9],4,-640364487),i=Ld(i,n,r,o,e[a+12],11,-421815835),o=Ld(o,i,n,r,e[a+15],16,530742520),r=Ld(r,o,i,n,e[a+2],23,-995338651),n=Bd(n,r,o,i,e[a],6,-198630844),i=Bd(i,n,r,o,e[a+7],10,1126891415),o=Bd(o,i,n,r,e[a+14],15,-1416354905),r=Bd(r,o,i,n,e[a+5],21,-57434055),n=Bd(n,r,o,i,e[a+12],6,1700485571),i=Bd(i,n,r,o,e[a+3],10,-1894986606),o=Bd(o,i,n,r,e[a+10],15,-1051523),r=Bd(r,o,i,n,e[a+1],21,-2054922799),n=Bd(n,r,o,i,e[a+8],6,1873313359),i=Bd(i,n,r,o,e[a+15],10,-30611744),o=Bd(o,i,n,r,e[a+6],15,-1560198380),r=Bd(r,o,i,n,e[a+13],21,1309151649),n=Bd(n,r,o,i,e[a+4],6,-145523070),i=Bd(i,n,r,o,e[a+11],10,-1120210379),o=Bd(o,i,n,r,e[a+2],15,718787259),r=Bd(r,o,i,n,e[a+9],21,-343485551),n=lS(n,c),r=lS(r,u),o=lS(o,d),i=lS(i,p)}return[n,r,o,i]}function CNt(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(pYe(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function lS(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function RNt(e,t){return e<<t|e>>>32-t}function HJ(e,t,n,r,o,i){return lS(RNt(lS(lS(t,e),lS(r,i)),o),n)}function Md(e,t,n,r,o,i,a){return HJ(t&n|~t&r,e,t,o,i,a)}function Dd(e,t,n,r,o,i,a){return HJ(t&r|n&~r,e,t,o,i,a)}function Ld(e,t,n,r,o,i,a){return HJ(t^n^r,e,t,o,i,a)}function Bd(e,t,n,r,o,i,a){return HJ(n^(t|~r),e,t,o,i,a)}var hYe,mYe=Z(()=>{f();hYe=_Nt});var INt,gYe,yYe=Z(()=>{f();Xme();mYe();INt=FJ(\"v3\",48,hYe),gYe=INt});function ONt(e,t,n){e=e||{};var r=e.random||(e.rng||tU)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return uS(r)}var bN,bYe=Z(()=>{f();Kme();rU();bN=ONt});function kNt(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function $me(e,t){return e<<t|e>>>32-t}function NNt(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e==\"string\"){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),c=new Array(a),u=0;u<a;++u){for(var d=new Uint32Array(16),p=0;p<16;++p)d[p]=e[u*64+p*4]<<24|e[u*64+p*4+1]<<16|e[u*64+p*4+2]<<8|e[u*64+p*4+3];c[u]=d}c[a-1][14]=(e.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(e.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var g=new Uint32Array(80),y=0;y<16;++y)g[y]=c[h][y];for(var v=16;v<80;++v)g[v]=$me(g[v-3]^g[v-8]^g[v-14]^g[v-16],1);for(var x=n[0],R=n[1],S=n[2],M=n[3],P=n[4],z=0;z<80;++z){var V=Math.floor(z/20),Q=$me(x,5)+kNt(V,R,S,M)+P+t[V]+g[z]>>>0;P=M,M=S,S=$me(R,30)>>>0,R=x,x=Q}n[0]=n[0]+x>>>0,n[1]=n[1]+R>>>0,n[2]=n[2]+S>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+P>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var vYe,wYe=Z(()=>{f();vYe=NNt});var PNt,xYe,EYe=Z(()=>{f();Xme();wYe();PNt=FJ(\"v5\",80,vYe),xYe=PNt});var AYe,_Ye=Z(()=>{f();AYe=\"00000000-0000-0000-0000-000000000000\"});function MNt(e){if(!g1(e))throw TypeError(\"Invalid UUID\");return parseInt(e.substr(14,1),16)}var SYe,TYe=Z(()=>{f();nU();SYe=MNt});var e0e={};qa(e0e,{NIL:()=>AYe,parse:()=>UJ,stringify:()=>uS,v1:()=>dYe,v3:()=>gYe,v4:()=>bN,v5:()=>xYe,validate:()=>g1,version:()=>SYe});var zJ=Z(()=>{f();fYe();yYe();bYe();EYe();_Ye();TYe();nU();rU();Jme()});var y1,oU,iU,jJ=Z(()=>{f();y1=Object.create(null);y1.open=\"0\";y1.close=\"1\";y1.ping=\"2\";y1.pong=\"3\";y1.message=\"4\";y1.upgrade=\"5\";y1.noop=\"6\";oU=Object.create(null);Object.keys(y1).forEach(e=>{oU[y1[e]]=e});iU={type:\"error\",data:\"parser error\"}});function RYe(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function NYe(e,t){if(IYe&&e.data instanceof Blob)return e.data.arrayBuffer().then(RYe).then(t);if(OYe&&(e.data instanceof ArrayBuffer||kYe(e.data)))return t(RYe(e.data));aU(e,!1,n=>{t0e||(t0e=new TextEncoder),t(t0e.encode(n))})}var IYe,OYe,kYe,aU,CYe,t0e,PYe=Z(()=>{f();jJ();IYe=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",OYe=typeof ArrayBuffer==\"function\",kYe=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,aU=({type:e,data:t},n,r)=>IYe&&t instanceof Blob?n?r(t):CYe(t,r):OYe&&(t instanceof ArrayBuffer||kYe(t))?n?r(t):CYe(new Blob([t]),r):r(y1[e]+(t||\"\")),CYe=(e,t)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(\",\")[1];t(\"b\"+(r||\"\"))},n.readAsDataURL(e)}});var MYe,sU,DYe,LYe=Z(()=>{f();MYe=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",sU=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<MYe.length;e++)sU[MYe.charCodeAt(e)]=e;DYe=e=>{let t=e.length*.75,n=e.length,r,o=0,i,a,c,u;e[e.length-1]===\"=\"&&(t--,e[e.length-2]===\"=\"&&t--);let d=new ArrayBuffer(t),p=new Uint8Array(d);for(r=0;r<n;r+=4)i=sU[e.charCodeAt(r)],a=sU[e.charCodeAt(r+1)],c=sU[e.charCodeAt(r+2)],u=sU[e.charCodeAt(r+3)],p[o++]=i<<2|a>>4,p[o++]=(a&15)<<4|c>>2,p[o++]=(c&3)<<6|u&63;return d}});var DNt,cU,LNt,BYe,UYe=Z(()=>{f();jJ();LYe();DNt=typeof ArrayBuffer==\"function\",cU=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:BYe(e,t)};let n=e.charAt(0);return n===\"b\"?{type:\"message\",data:LNt(e.substring(1),t)}:oU[n]?e.length>1?{type:oU[n],data:e.substring(1)}:{type:oU[n]}:iU},LNt=(e,t)=>{if(DNt){let n=DYe(e);return BYe(n,t)}else return{base64:!0,data:e}},BYe=(e,t)=>{switch(t){case\"blob\":return e instanceof Blob?e:new Blob([e]);case\"arraybuffer\":default:return e instanceof ArrayBuffer?e:e.buffer}}});function jYe(){return new TransformStream({transform(e,t){NYe(e,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=\"string\"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}function WJ(e){return e.reduce((t,n)=>t+n.length,0)}function VJ(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function WYe(e,t){n0e||(n0e=new TextDecoder);let n=[],r=0,o=-1,i=!1;return new TransformStream({transform(a,c){for(n.push(a);;){if(r===0){if(WJ(n)<1)break;let u=VJ(n,1);i=(u[0]&128)===128,o=u[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(WJ(n)<2)break;let u=VJ(n,2);o=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(WJ(n)<8)break;let u=VJ(n,8),d=new DataView(u.buffer,u.byteOffset,u.length),p=d.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(iU);break}o=p*Math.pow(2,32)+d.getUint32(4),r=3}else{if(WJ(n)<o)break;let u=VJ(n,o);c.enqueue(cU(i?u:n0e.decode(u),t)),r=0}if(o===0||o>e){c.enqueue(iU);break}}}})}var FYe,HYe,zYe,n0e,r0e,vN=Z(()=>{f();PYe();UYe();jJ();FYe=\"\\u001e\",HYe=(e,t)=>{let n=e.length,r=new Array(n),o=0;e.forEach((i,a)=>{aU(i,!1,c=>{r[a]=c,++o===n&&t(r.join(FYe))})})},zYe=(e,t)=>{let n=e.split(FYe),r=[];for(let o=0;o<n.length;o++){let i=cU(n[o],t);if(r.push(i),i.type===\"error\")break}return r};r0e=4});function ba(e){if(e)return BNt(e)}function BNt(e){for(var t in ba.prototype)e[t]=ba.prototype[t];return e}var vC=Z(()=>{f();ba.prototype.on=ba.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};ba.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ba.prototype.off=ba.prototype.removeListener=ba.prototype.removeAllListeners=ba.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[\"$\"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[\"$\"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks[\"$\"+e],this};ba.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks[\"$\"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};ba.prototype.emitReserved=ba.prototype.emit;ba.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};ba.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var Cx,Yf,VYe,wC=Z(()=>{f();Cx=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Yf=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),VYe=\"arraybuffer\"});function GJ(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function Rx(e,t){t.useNativeTimers?(e.setTimeoutFn=UNt.bind(Yf),e.clearTimeoutFn=FNt.bind(Yf)):(e.setTimeoutFn=Yf.setTimeout.bind(Yf),e.clearTimeoutFn=Yf.clearTimeout.bind(Yf))}function GYe(e){return typeof e==\"string\"?zNt(e):Math.ceil((e.byteLength||e.size)*HNt)}function zNt(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function qJ(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var UNt,FNt,HNt,xC=Z(()=>{f();wC();UNt=Yf.setTimeout,FNt=Yf.clearTimeout;HNt=1.33});function qYe(e){let t=\"\";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(n)+\"=\"+encodeURIComponent(e[n]));return t}function KYe(e){let t={},n=e.split(\"&\");for(let r=0,o=n.length;r<o;r++){let i=n[r].split(\"=\");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var o0e=Z(()=>{f()});var KJ,Ix,uU=Z(()=>{f();vN();vC();xC();o0e();KJ=class extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type=\"TransportError\"}},Ix=class extends ba{constructor(t){super(),this.writable=!1,Rx(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved(\"error\",new KJ(t,n,r)),this}open(){return this.readyState=\"opening\",this.doOpen(),this}close(){return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.doClose(),this.onClose()),this}send(t){this.readyState===\"open\"&&this.write(t)}onOpen(){this.readyState=\"open\",this.writable=!0,super.emitReserved(\"open\")}onData(t){let n=cU(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved(\"packet\",t)}onClose(t){this.readyState=\"closed\",super.emitReserved(\"close\",t)}pause(t){}createUri(t,n={}){return t+\"://\"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let t=this.opts.hostname;return t.indexOf(\":\")===-1?t:\"[\"+t+\"]\"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?\":\"+this.opts.port:\"\"}_query(t){let n=qYe(t);return n.length?\"?\"+n:\"\"}}});var lU,i0e=Z(()=>{f();uU();xC();vN();lU=class extends Ix{constructor(){super(...arguments),this._polling=!1}get name(){return\"polling\"}doOpen(){this._poll()}pause(t){this.readyState=\"pausing\";let n=()=>{this.readyState=\"paused\",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once(\"pollComplete\",function(){--r||n()})),this.writable||(r++,this.once(\"drain\",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(\"poll\")}onData(t){let n=r=>{if(this.readyState===\"opening\"&&r.type===\"open\"&&this.onOpen(),r.type===\"close\")return this.onClose({description:\"transport closed by the server\"}),!1;this.onPacket(r)};zYe(t,this.socket.binaryType).forEach(n),this.readyState!==\"closed\"&&(this._polling=!1,this.emitReserved(\"pollComplete\"),this.readyState===\"open\"&&this._poll())}doClose(){let t=()=>{this.write([{type:\"close\"}])};this.readyState===\"open\"?t():this.once(\"open\",t)}write(t){this.writable=!1,HYe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved(\"drain\")})})}uri(){let t=this.opts.secure?\"https\":\"http\",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=qJ()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}});var YYe,ZYe,QYe=Z(()=>{f();YYe=!1;try{YYe=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}ZYe=YYe});function jNt(){}function JYe(){for(let e in dS.requests)dS.requests.hasOwnProperty(e)&&dS.requests[e].abort()}function XYe(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||ZYe))return new XMLHttpRequest}catch{}if(!t)try{return new Yf[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var a0e,dS,WNt,fS,YJ=Z(()=>{f();i0e();vC();xC();wC();QYe();a0e=class extends lU{constructor(t){if(super(t),typeof location<\"u\"){let n=location.protocol===\"https:\",r=location.port;r||(r=n?\"443\":\"80\"),this.xd=typeof location<\"u\"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){let r=this.request({method:\"POST\",data:t});r.on(\"success\",n),r.on(\"error\",(o,i)=>{this.onError(\"xhr post error\",o,i)})}doPoll(){let t=this.request();t.on(\"data\",this.onData.bind(this)),t.on(\"error\",(n,r)=>{this.onError(\"xhr poll error\",n,r)}),this.pollXhr=t}},dS=class e extends ba{constructor(t,n,r){super(),this.createRequest=t,Rx(this,r),this._opts=r,this._method=r.method||\"GET\",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;let n=GJ(this._opts,\"agent\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"autoUnref\");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method===\"POST\")try{r.setRequestHeader(\"Content-type\",\"text/plain;charset=UTF-8\")}catch{}try{r.setRequestHeader(\"Accept\",\"*/*\")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),\"withCredentials\"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader(\"set-cookie\"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==\"number\"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<\"u\"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved(\"error\",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>\"u\"||this._xhr===null)){if(this._xhr.onreadystatechange=jNt,t)try{this._xhr.abort()}catch{}typeof document<\"u\"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved(\"data\",t),this.emitReserved(\"success\"),this._cleanup())}abort(){this._cleanup()}};dS.requestsCount=0;dS.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",JYe);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in Yf?\"pagehide\":\"unload\";addEventListener(e,JYe,!1)}}WNt=(function(){let e=XYe({xdomain:!1});return e&&e.responseType!==null})(),fS=class extends a0e{constructor(t){super(t);let n=t&&t.forceBase64;this.supportsBinary=WNt&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new dS(XYe,this.uri(),t)}}});var $Ye,c0e,s0e,pS,ZJ=Z(()=>{f();uU();xC();vN();wC();$Ye=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",c0e=class extends Ix{get name(){return\"websocket\"}doOpen(){let t=this.uri(),n=this.opts.protocols,r=$Ye?{}:GJ(this.opts,\"agent\",\"perMessageDeflate\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"localAddress\",\"protocolVersion\",\"origin\",\"maxPayload\",\"family\",\"checkServerIdentity\");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved(\"error\",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:\"websocket connection closed\",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError(\"websocket error\",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;aU(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}o&&Cx(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){typeof this.ws<\"u\"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?\"wss\":\"ws\",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=qJ()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}},s0e=Yf.WebSocket||Yf.MozWebSocket,pS=class extends c0e{createSocket(t,n,r){return $Ye?new s0e(t,n,r):n?new s0e(t,n):new s0e(t)}doWrite(t,n){this.ws.send(n)}}});var wN,u0e=Z(()=>{f();uU();wC();vN();wN=class extends Ix{get name(){return\"webtransport\"}doOpen(){try{this._transport=new WebTransport(this.createUri(\"https\"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved(\"error\",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError(\"webtransport error\",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let n=WYe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=jYe();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{r.read().then(({done:c,value:u})=>{c||(this.onPacket(u),i())}).catch(c=>{})};i();let a={type:\"open\"};this.query.sid&&(a.data=`{\"sid\":\"${this.query.sid}\"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Cx(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}});var l0e,d0e=Z(()=>{f();YJ();ZJ();u0e();l0e={websocket:pS,webtransport:wN,polling:fS}});function xN(e){if(e.length>8e3)throw\"URI too long\";let t=e,n=e.indexOf(\"[\"),r=e.indexOf(\"]\");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,\";\")+e.substring(r,e.length));let o=VNt.exec(e||\"\"),i={},a=14;for(;a--;)i[GNt[a]]=o[a]||\"\";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,\":\"),i.authority=i.authority.replace(\"[\",\"\").replace(\"]\",\"\").replace(/;/g,\":\"),i.ipv6uri=!0),i.pathNames=qNt(i,i.path),i.queryKey=KNt(i,i.query),i}function qNt(e,t){let n=/\\\\/{2,9}/g,r=t.replace(n,\"/\").split(\"/\");return(t.slice(0,1)==\"/\"||t.length===0)&&r.splice(0,1),t.slice(-1)==\"/\"&&r.splice(r.length-1,1),r}function KNt(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}var VNt,GNt,f0e=Z(()=>{f();VNt=/^(?:(?![^:@\\\\/?#]+:[^:@\\\\/]*@)(http|https|ws|wss):\\\\/\\\\/)?((?:(([^:@\\\\/?#]*)(?::([^:@\\\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\\\/?#]*)(?::(\\\\d*))?)(((\\\\/(?:[^?#](?![^?#\\\\/]*\\\\.[^?#\\\\/.]+(?:[?#]|$)))*\\\\/?)?([^?#\\\\/]*))(?:\\\\?([^#]*))?(?:#(.*))?)/,GNt=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"]});var p0e,QJ,EC,JJ,EN,h0e=Z(()=>{f();d0e();xC();o0e();f0e();vC();vN();wC();p0e=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",QJ=[];p0e&&addEventListener(\"offline\",()=>{QJ.forEach(e=>e())},!1);EC=class e extends ba{constructor(t,n){if(super(),this.binaryType=VYe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t==\"object\"&&(n=t,t=null),t){let r=xN(t);n.hostname=r.host,n.secure=r.protocol===\"https\"||r.protocol===\"wss\",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=xN(n.host).host);Rx(this,n),this.secure=n.secure!=null?n.secure:typeof location<\"u\"&&location.protocol===\"https:\",n.hostname&&!n.port&&(n.port=this.secure?\"443\":\"80\"),this.hostname=n.hostname||(typeof location<\"u\"?location.hostname:\"localhost\"),this.port=n.port||(typeof location<\"u\"&&location.port?location.port:this.secure?\"443\":\"80\"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:\"/engine.io\",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:\"t\",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\\\\/$/,\"\")+(this.opts.addTrailingSlash?\"/\":\"\"),typeof this.opts.query==\"string\"&&(this.opts.query=KYe(this.opts.query)),p0e&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(\"beforeunload\",this._beforeunloadEventListener,!1)),this.hostname!==\"localhost\"&&(this._offlineEventListener=()=>{this._onClose(\"transport close\",{description:\"network connection lost\"})},QJ.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let n=Object.assign({},this.opts.query);n.EIO=r0e,n.transport=t,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(\"error\",\"No transports available\")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(\"websocket\")!==-1?\"websocket\":this.transports[0];this.readyState=\"opening\";let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on(\"drain\",this._onDrain.bind(this)).on(\"packet\",this._onPacket.bind(this)).on(\"error\",this._onError.bind(this)).on(\"close\",n=>this._onClose(\"transport close\",n))}onOpen(){this.readyState=\"open\",e.priorWebsocketSuccess=this.transport.name===\"websocket\",this.emitReserved(\"open\"),this.flush()}_onPacket(t){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\")switch(this.emitReserved(\"packet\",t),this.emitReserved(\"heartbeat\"),t.type){case\"open\":this.onHandshake(JSON.parse(t.data));break;case\"ping\":this._sendPacket(\"pong\"),this.emitReserved(\"ping\"),this.emitReserved(\"pong\"),this._resetPingTimeout();break;case\"error\":let n=new Error(\"server error\");n.code=t.data,this._onError(n);break;case\"message\":this.emitReserved(\"data\",t.data),this.emitReserved(\"message\",t.data);break}}onHandshake(t){this.emitReserved(\"handshake\",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!==\"closed\"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(\"ping timeout\")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(\"drain\"):this.flush()}flush(){if(this.readyState!==\"closed\"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved(\"flush\")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===\"polling\"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=GYe(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Cx(()=>{this._onClose(\"ping timeout\")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket(\"message\",t,n,r),this}send(t,n,r){return this._sendPacket(\"message\",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n==\"function\"&&(o=n,n=void 0),typeof r==\"function\"&&(o=r,r=null),this.readyState===\"closing\"||this.readyState===\"closed\")return;r=r||{},r.compress=r.compress!==!1;let i={type:t,data:n,options:r};this.emitReserved(\"packetCreate\",i),this.writeBuffer.push(i),o&&this.once(\"flush\",o),this.flush()}close(){let t=()=>{this._onClose(\"forced close\"),this.transport.close()},n=()=>{this.off(\"upgrade\",n),this.off(\"upgradeError\",n),t()},r=()=>{this.once(\"upgrade\",n),this.once(\"upgradeError\",n)};return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.readyState=\"closing\",this.writeBuffer.length?this.once(\"drain\",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===\"opening\")return this.transports.shift(),this._open();this.emitReserved(\"error\",t),this._onClose(\"transport error\",t)}_onClose(t,n){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(\"close\"),this.transport.close(),this.transport.removeAllListeners(),p0e&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=QJ.indexOf(this._offlineEventListener);r!==-1&&QJ.splice(r,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,n),this.writeBuffer=[],this._prevBufferLen=0}}};EC.protocol=r0e;JJ=class extends EC{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===\"open\"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;EC.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:\"ping\",data:\"probe\"}]),n.once(\"packet\",h=>{if(!r)if(h.type===\"pong\"&&h.data===\"probe\"){if(this.upgrading=!0,this.emitReserved(\"upgrading\",n),!n)return;EC.priorWebsocketSuccess=n.name===\"websocket\",this.transport.pause(()=>{r||this.readyState!==\"closed\"&&(p(),this.setTransport(n),n.send([{type:\"upgrade\"}]),this.emitReserved(\"upgrade\",n),n=null,this.upgrading=!1,this.flush())})}else{let g=new Error(\"probe error\");g.transport=n.name,this.emitReserved(\"upgradeError\",g)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}let a=h=>{let g=new Error(\"probe error: \"+h);g.transport=n.name,i(),this.emitReserved(\"upgradeError\",g)};function c(){a(\"transport closed\")}function u(){a(\"socket closed\")}function d(h){n&&h.name!==n.name&&i()}let p=()=>{n.removeListener(\"open\",o),n.removeListener(\"error\",a),n.removeListener(\"close\",c),this.off(\"close\",u),this.off(\"upgrading\",d)};n.once(\"open\",o),n.once(\"error\",a),n.once(\"close\",c),this.once(\"close\",u),this.once(\"upgrading\",d),this._upgrades.indexOf(\"webtransport\")!==-1&&t!==\"webtransport\"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}},EN=class extends JJ{constructor(t,n={}){let r=typeof t==\"object\"?t:n;(!r.transports||r.transports&&typeof r.transports[0]==\"string\")&&(r.transports=(r.transports||[\"polling\",\"websocket\",\"webtransport\"]).map(o=>l0e[o]).filter(o=>!!o)),super(t,r)}}});var eZe=Z(()=>{f();i0e()});var Ffr,XJ=Z(()=>{f();h0e();h0e();uU();d0e();xC();f0e();wC();eZe();YJ();YJ();ZJ();ZJ();u0e();Ffr=EN.protocol});function tZe(e,t=\"\",n){let r=e;n=n||typeof location<\"u\"&&location,e==null&&(e=n.protocol+\"//\"+n.host),typeof e==\"string\"&&(e.charAt(0)===\"/\"&&(e.charAt(1)===\"/\"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\\\\/\\\\//.test(e)||(typeof n<\"u\"?e=n.protocol+\"//\"+e:e=\"https://\"+e),r=xN(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=\"80\":/^(http|ws)s$/.test(r.protocol)&&(r.port=\"443\")),r.path=r.path||\"/\";let i=r.host.indexOf(\":\")!==-1?\"[\"+r.host+\"]\":r.host;return r.id=r.protocol+\"://\"+i+\":\"+r.port+t,r.href=r.protocol+\"://\"+i+(n&&n.port===r.port?\"\":\":\"+r.port),r}var nZe=Z(()=>{f();XJ()});function fU(e){return ZNt&&(e instanceof ArrayBuffer||QNt(e))||JNt&&e instanceof Blob||XNt&&e instanceof File}function dU(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(dU(e[n]))return!0;return!1}if(fU(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return dU(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&dU(e[n]))return!0;return!1}var ZNt,QNt,rZe,JNt,XNt,m0e=Z(()=>{f();ZNt=typeof ArrayBuffer==\"function\",QNt=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,rZe=Object.prototype.toString,JNt=typeof Blob==\"function\"||typeof Blob<\"u\"&&rZe.call(Blob)===\"[object BlobConstructor]\",XNt=typeof File==\"function\"||typeof File<\"u\"&&rZe.call(File)===\"[object FileConstructor]\"});function oZe(e){let t=[],n=e.data,r=e;return r.data=g0e(n,t),r.attachments=t.length,{packet:r,buffers:t}}function g0e(e,t){if(!e)return e;if(fU(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=g0e(e[r],t);return n}else if(typeof e==\"object\"&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=g0e(e[r],t));return n}return e}function iZe(e,t){return e.data=y0e(e.data,t),delete e.attachments,e}function y0e(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==\"number\"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error(\"illegal attachments\")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=y0e(e[n],t);else if(typeof e==\"object\")for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=y0e(e[n],t));return e}var aZe=Z(()=>{f();m0e()});var x0e={};qa(x0e,{Decoder:()=>v0e,Encoder:()=>b0e,PacketType:()=>xo,protocol:()=>cZe});function sZe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}var $Nt,cZe,xo,b0e,v0e,w0e,$J=Z(()=>{f();vC();aZe();m0e();$Nt=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],cZe=5;(function(e){e[e.CONNECT=0]=\"CONNECT\",e[e.DISCONNECT=1]=\"DISCONNECT\",e[e.EVENT=2]=\"EVENT\",e[e.ACK=3]=\"ACK\",e[e.CONNECT_ERROR=4]=\"CONNECT_ERROR\",e[e.BINARY_EVENT=5]=\"BINARY_EVENT\",e[e.BINARY_ACK=6]=\"BINARY_ACK\"})(xo||(xo={}));b0e=class{constructor(t){this.replacer=t}encode(t){return(t.type===xo.EVENT||t.type===xo.ACK)&&dU(t)?this.encodeAsBinary({type:t.type===xo.EVENT?xo.BINARY_EVENT:xo.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=\"\"+t.type;return(t.type===xo.BINARY_EVENT||t.type===xo.BINARY_ACK)&&(n+=t.attachments+\"-\"),t.nsp&&t.nsp!==\"/\"&&(n+=t.nsp+\",\"),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){let n=oZe(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}};v0e=class e extends ba{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t==\"string\"){if(this.reconstructor)throw new Error(\"got plaintext data when reconstructing a packet\");n=this.decodeString(t);let r=n.type===xo.BINARY_EVENT;r||n.type===xo.BINARY_ACK?(n.type=r?xo.EVENT:xo.ACK,this.reconstructor=new w0e(n),n.attachments===0&&super.emitReserved(\"decoded\",n)):super.emitReserved(\"decoded\",n)}else if(fU(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved(\"decoded\",n));else throw new Error(\"got binary data when not reconstructing a packet\");else throw new Error(\"Unknown type: \"+t)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(xo[r.type]===void 0)throw new Error(\"unknown packet type \"+r.type);if(r.type===xo.BINARY_EVENT||r.type===xo.BINARY_ACK){let i=n+1;for(;t.charAt(++n)!==\"-\"&&n!=t.length;);let a=t.substring(i,n);if(a!=Number(a)||t.charAt(n)!==\"-\")throw new Error(\"Illegal attachments\");r.attachments=Number(a)}if(t.charAt(n+1)===\"/\"){let i=n+1;for(;++n&&!(t.charAt(n)===\",\"||n===t.length););r.nsp=t.substring(i,n)}else r.nsp=\"/\";let o=t.charAt(n+1);if(o!==\"\"&&Number(o)==o){let i=n+1;for(;++n;){let a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw new Error(\"invalid payload\")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case xo.CONNECT:return sZe(n);case xo.DISCONNECT:return n===void 0;case xo.CONNECT_ERROR:return typeof n==\"string\"||sZe(n);case xo.EVENT:case xo.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]==\"number\"||typeof n[0]==\"string\"&&$Nt.indexOf(n[0])===-1);case xo.ACK:case xo.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},w0e=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let n=iZe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}});function wm(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var E0e=Z(()=>{f()});var e7t,AN,A0e=Z(()=>{f();$J();E0e();vC();e7t=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),AN=class extends ba{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[wm(t,\"open\",this.onopen.bind(this)),wm(t,\"packet\",this.onpacket.bind(this)),wm(t,\"error\",this.onerror.bind(this)),wm(t,\"close\",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===\"open\"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift(\"message\"),this.emit.apply(this,t),this}emit(t,...n){var r,o,i;if(e7t.hasOwnProperty(t))throw new Error(\\'\"\\'+t.toString()+\\'\" is a reserved event name\\');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let a={type:xo.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]==\"function\"){let p=this.ids++,h=n.pop();this._registerAckCallback(p,h),a.id=p}let c=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,u=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!c||(u?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error(\"operation has timed out\"))},o),a=(...c)=>{this.io.clearTimeoutFn(i),n.apply(this,c)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{let i=(a,c)=>a?o(a):r(c);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]==\"function\"&&(n=t.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth==\"function\"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:xo.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved(\"connect_error\",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved(\"disconnect\",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){let r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error(\"socket has been disconnected\"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case xo.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved(\"connect_error\",new Error(\"It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)\"));break;case xo.EVENT:case xo.BINARY_EVENT:this.onevent(t);break;case xo.ACK:case xo.BINARY_ACK:this.onack(t);break;case xo.DISCONNECT:this.ondisconnect();break;case xo.CONNECT_ERROR:this.destroy();let r=new Error(t.data.message);r.data=t.data.data,this.emitReserved(\"connect_error\",r);break}}onevent(t){let n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]==\"string\"&&(this._lastOffset=t[t.length-1])}ack(t){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:xo.ACK,id:t,data:o}))}}onack(t){let n=this.acks[t.id];typeof n==\"function\"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved(\"connect\"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(\"io server disconnect\")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xo.DISCONNECT}),this.destroy(),this.connected&&this.onclose(\"io client disconnect\"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,t.data)}}}});function AC(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}var uZe=Z(()=>{f();AC.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};AC.prototype.reset=function(){this.attempts=0};AC.prototype.setMin=function(e){this.ms=e};AC.prototype.setMax=function(e){this.max=e};AC.prototype.setJitter=function(e){this.jitter=e}});var _N,lZe=Z(()=>{f();XJ();A0e();$J();E0e();uZe();vC();_N=class extends ba{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t==\"object\"&&(n=t,t=void 0),n=n||{},n.path=n.path||\"/socket.io\",this.opts=n,Rx(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new AC({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState=\"closed\",this.uri=t;let o=n.parser||x0e;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf(\"open\"))return this;this.engine=new EN(this.uri,this.opts);let n=this.engine,r=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=wm(n,\"open\",function(){r.onopen(),t&&t()}),i=c=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",c),t?t(c):this.maybeReconnectOnOpen()},a=wm(n,\"error\",i);if(this._timeout!==!1){let c=this._timeout,u=this.setTimeoutFn(()=>{o(),i(new Error(\"timeout\")),n.close()},c);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState=\"open\",this.emitReserved(\"open\");let t=this.engine;this.subs.push(wm(t,\"ping\",this.onping.bind(this)),wm(t,\"data\",this.ondata.bind(this)),wm(t,\"error\",this.onerror.bind(this)),wm(t,\"close\",this.onclose.bind(this)),wm(this.decoder,\"decoded\",this.ondecoded.bind(this)))}onping(){this.emitReserved(\"ping\")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose(\"parse error\",n)}}ondecoded(t){Cx(()=>{this.emitReserved(\"packet\",t)},this.setTimeoutFn)}onerror(t){this.emitReserved(\"error\",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new AN(this,t,n),this.nsps[t]=r),r}_destroy(t){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(t){let n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(\"forced close\")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState=\"closed\",this.emitReserved(\"close\",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(\"reconnect_failed\"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved(\"reconnect_attempt\",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved(\"reconnect_error\",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(\"reconnect\",t)}}});function hU(e,t){typeof e==\"object\"&&(t=e,e=void 0),t=t||{};let n=tZe(e,t.path||\"/socket.io\"),r=n.source,o=n.id,i=n.path,a=pU[o]&&i in pU[o].nsps,c=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||a,u;return c?u=new _N(r,t):(pU[o]||(pU[o]=new _N(r,t)),u=pU[o]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}var pU,dZe=Z(()=>{f();nZe();lZe();A0e();$J();XJ();pU={};Object.assign(hU,{Manager:_N,Socket:AN,io:hU,connect:hU})});var t7t,_0e=Z(()=>{t7t=s_e({})});var yet={};qa(yet,{CommunicationLayerPreference:()=>DS,ConnectionStatus:()=>Ju,DEFAULT_SERVER_URL:()=>MC,EventType:()=>Et,MessageType:()=>ts,MetaMaskSDK:()=>Zge,MetaMaskSDKEvent:()=>Xf,PROVIDER_UPDATE_TYPE:()=>A1,PlatformType:()=>Wl,SDKProvider:()=>f$,default:()=>Zge});function dt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){var p;d.done?o(d.value):(p=d.value,p instanceof n?p:new n((function(h){h(p)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function RJe(){nye=!0;for(var e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",t=0;t<64;++t)Mv[t]=e[t],xg[e.charCodeAt(t)]=t;xg[45]=62,xg[95]=63}function r7t(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Mv[(o=r)>>18&63]+Mv[o>>12&63]+Mv[o>>6&63]+Mv[63&o]);return i.join(\"\")}function fZe(e){var t;nye||RJe();for(var n=e.length,r=n%3,o=\"\",i=[],a=16383,c=0,u=n-r;c<u;c+=a)i.push(r7t(e,c,c+a>u?u:c+a));return r===1?(t=e[n-1],o+=Mv[t>>2],o+=Mv[t<<4&63],o+=\"==\"):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=Mv[t>>10],o+=Mv[t>>4&63],o+=Mv[t<<2&63],o+=\"=\"),i.push(o),i.join(\"\")}function eX(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,d=u>>1,p=-7,h=n?o-1:0,g=n?-1:1,y=e[t+h];for(h+=g,i=y&(1<<-p)-1,y>>=-p,p+=c;p>0;i=256*i+e[t+h],h+=g,p-=8);for(a=i&(1<<-p)-1,i>>=-p,p+=r;p>0;a=256*a+e[t+h],h+=g,p-=8);if(i===0)i=1-d;else{if(i===u)return a?NaN:1/0*(y?-1:1);a+=Math.pow(2,r),i-=d}return(y?-1:1)*a*Math.pow(2,i-r)}function IJe(e,t,n,r,o,i){var a,c,u,d=8*i-o-1,p=(1<<d)-1,h=p>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:i-1,v=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?g/u:g*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=p?(c=0,a=p):a+h>=1?(c=(t*u-1)*Math.pow(2,o),a+=h):(c=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+y]=255&c,y+=v,c/=256,o-=8);for(a=a<<o|c,d+=o;d>0;e[n+y]=255&a,y+=v,a/=256,d-=8);e[n+y-v]|=128*x}function UX(){return ut.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Lx(e,t){if(UX()<t)throw new RangeError(\"Invalid typed array length\");return ut.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ut.prototype:(e===null&&(e=new ut(t)),e.length=t),e}function ut(e,t,n){if(!(ut.TYPED_ARRAY_SUPPORT||this instanceof ut))return new ut(e,t,n);if(typeof e==\"number\"){if(typeof t==\"string\")throw new Error(\"If encoding is specified then the first argument must be a string\");return lge(this,e)}return kJe(this,e,t,n)}function kJe(e,t,n,r){if(typeof t==\"number\")throw new TypeError(\\'\"value\" argument must not be a number\\');return typeof ArrayBuffer<\"u\"&&t instanceof ArrayBuffer?(function(o,i,a,c){if(i.byteLength,a<0||i.byteLength<a)throw new RangeError(\"\\'offset\\' is out of bounds\");if(i.byteLength<a+(c||0))throw new RangeError(\"\\'length\\' is out of bounds\");return i=a===void 0&&c===void 0?new Uint8Array(i):c===void 0?new Uint8Array(i,a):new Uint8Array(i,a,c),ut.TYPED_ARRAY_SUPPORT?(o=i).__proto__=ut.prototype:o=S0e(o,i),o})(e,t,n,r):typeof t==\"string\"?(function(o,i,a){if(typeof a==\"string\"&&a!==\"\"||(a=\"utf8\"),!ut.isEncoding(a))throw new TypeError(\\'\"encoding\" must be a valid string encoding\\');var c=0|PJe(i,a);o=Lx(o,c);var u=o.write(i,a);return u!==c&&(o=o.slice(0,u)),o})(e,t,n):(function(o,i){if(Dv(i)){var a=0|rye(i.length);return(o=Lx(o,a)).length===0||i.copy(o,0,0,a),o}if(i){if(typeof ArrayBuffer<\"u\"&&i.buffer instanceof ArrayBuffer||\"length\"in i)return typeof i.length!=\"number\"||(c=i.length)!=c?Lx(o,0):S0e(o,i);if(i.type===\"Buffer\"&&OJe(i.data))return S0e(o,i.data)}var c;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")})(e,t)}function NJe(e){if(typeof e!=\"number\")throw new TypeError(\\'\"size\" argument must be a number\\');if(e<0)throw new RangeError(\\'\"size\" argument must not be negative\\')}function lge(e,t){if(NJe(t),e=Lx(e,t<0?0:0|rye(t)),!ut.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function S0e(e,t){var n=t.length<0?0:0|rye(t.length);e=Lx(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function rye(e){if(e>=UX())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+UX().toString(16)+\" bytes\");return 0|e}function Dv(e){return!(e==null||!e._isBuffer)}function PJe(e,t){if(Dv(e))return e.length;if(typeof ArrayBuffer<\"u\"&&typeof ArrayBuffer.isView==\"function\"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!=\"string\"&&(e=\"\"+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return FX(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return BJe(e).length;default:if(r)return FX(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function a7t(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return m7t(this,t,n);case\"utf8\":case\"utf-8\":return DJe(this,t,n);case\"ascii\":return p7t(this,t,n);case\"latin1\":case\"binary\":return h7t(this,t,n);case\"base64\":return f7t(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return g7t(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function _C(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function pZe(e,t,n,r,o){if(e.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(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(typeof t==\"string\"&&(t=ut.from(t,r)),Dv(t))return t.length===0?-1:hZe(e,t,n,r,o);if(typeof t==\"number\")return t&=255,ut.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):hZe(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function hZe(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function d(y,v){return a===1?y[v]:y.readUInt16BE(v*a)}if(o){var p=-1;for(i=n;i<c;i++)if(d(e,i)===d(t,p===-1?0:i-p)){if(p===-1&&(p=i),i-p+1===u)return p*a}else p!==-1&&(i-=i-p),p=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var h=!0,g=0;g<u;g++)if(d(e,i+g)!==d(t,g)){h=!1;break}if(h)return i}return-1}function s7t(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function c7t(e,t,n,r){return v$(FX(t,e.length-n),e,n,r)}function MJe(e,t,n,r){return v$((function(o){for(var i=[],a=0;a<o.length;++a)i.push(255&o.charCodeAt(a));return i})(t),e,n,r)}function u7t(e,t,n,r){return MJe(e,t,n,r)}function l7t(e,t,n,r){return v$(BJe(t),e,n,r)}function d7t(e,t,n,r){return v$((function(o,i){for(var a,c,u,d=[],p=0;p<o.length&&!((i-=2)<0);++p)c=(a=o.charCodeAt(p))>>8,u=a%256,d.push(u),d.push(c);return d})(t,e.length-n),e,n,r)}function f7t(e,t,n){return t===0&&n===e.length?fZe(e):fZe(e.slice(t,n))}function DJe(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,d=e[o],p=null,h=d>239?4:d>223?3:d>191?2:1;if(o+h<=n)switch(h){case 1:d<128&&(p=d);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&d)<<6|63&i)>127&&(p=u);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(u=(15&d)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(p=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],(192&i)==128&&(192&a)==128&&(192&c)==128&&(u=(15&d)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(p=u)}p===null?(p=65533,h=1):p>65535&&(p-=65536,r.push(p>>>10&1023|55296),p=56320|1023&p),r.push(p),o+=h}return(function(g){var y=g.length;if(y<=mZe)return String.fromCharCode.apply(String,g);for(var v=\"\",x=0;x<y;)v+=String.fromCharCode.apply(String,g.slice(x,x+=mZe));return v})(r)}function p7t(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function h7t(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function m7t(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=b7t(e[i]);return o}function g7t(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function Ku(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function sh(e,t,n,r,o,i){if(!Dv(e))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(t>o||t<i)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function tX(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function nX(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function LJe(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 gZe(e,t,n,r,o){return o||LJe(e,0,n,4),IJe(e,t,n,r,23,4),n+4}function yZe(e,t,n,r,o){return o||LJe(e,0,n,8),IJe(e,t,n,r,52,8),n+8}function b7t(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function FX(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&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 BJe(e){return(function(t){var n,r,o,i,a,c;nye||RJe();var u=t.length;if(u%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");a=t[u-2]===\"=\"?2:t[u-1]===\"=\"?1:0,c=new n7t(3*u/4-a),o=a>0?u-4:u;var d=0;for(n=0,r=0;n<o;n+=4,r+=3)i=xg[t.charCodeAt(n)]<<18|xg[t.charCodeAt(n+1)]<<12|xg[t.charCodeAt(n+2)]<<6|xg[t.charCodeAt(n+3)],c[d++]=i>>16&255,c[d++]=i>>8&255,c[d++]=255&i;return a===2?(i=xg[t.charCodeAt(n)]<<2|xg[t.charCodeAt(n+1)]>>4,c[d++]=255&i):a===1&&(i=xg[t.charCodeAt(n)]<<10|xg[t.charCodeAt(n+1)]<<4|xg[t.charCodeAt(n+2)]>>2,c[d++]=i>>8&255,c[d++]=255&i),c})((function(t){if((t=(function(n){return n.trim?n.trim():n.replace(/^\\\\s+|\\\\s+$/g,\"\")})(t).replace(y7t,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t})(e))}function v$(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function UJe(e){return e!=null&&(!!e._isBuffer||bZe(e)||(function(t){return typeof t.readFloatLE==\"function\"&&typeof t.slice==\"function\"&&bZe(t.slice(0,0))})(e))}function bZe(e){return!!e.constructor&&typeof e.constructor.isBuffer==\"function\"&&e.constructor.isBuffer(e)}function w$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function ZU(e){if(e.__esModule)return e;var t=e.default;if(typeof t==\"function\"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,\"__esModule\",{value:!0}),Object.keys(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})})),n}function HX(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function FJe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}function HJe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function oye(e,...t){if(!HJe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function zJe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"hash must be wrapped by utils.wrapConstructor\");HX(e.outputLen),HX(e.blockLen)}function jJe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function WJe(e,t){oye(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}function jX(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function qJe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}function KJe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function aye(e,...t){if(!KJe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function YJe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");jX(e.outputLen),jX(e.blockLen)}function ZJe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function QJe(e,t){aye(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}function sye(e,t=!1){return t?{h:Number(e&iX),l:Number(e>>dge&iX)}:{h:0|Number(e>>dge&iX),l:0|Number(e&iX)}}function JJe(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:a}=sye(e[o],t);[n[o],r[o]]=[i,a]}return[n,r]}function dXe(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}}function qX(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function KX(e){if(!qX(e))throw new Error(\"Uint8Array expected\")}function R0e(e){KX(e);let t=\"\";for(let n=0;n<e.length;n++)t+=C7t[e[n]];return t}function vZe(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function I0e(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return BigInt(e===\"\"?\"0\":`0x${e}`)}function wZe(e){return e>=Ox._0&&e<=Ox._9?e-Ox._0:e>=Ox._A&&e<=Ox._F?e-(Ox._A-10):e>=Ox._a&&e<=Ox._f?e-(Ox._a-10):void 0}function EX(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=wZe(e.charCodeAt(i)),c=wZe(e.charCodeAt(i+1));if(a===void 0||c===void 0){let u=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+u+\\'\" at index \\'+i)}r[o]=16*a+c}return r}function xZe(e,t){return EX(e.toString(16).padStart(2*t,\"0\"))}function EZe(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];KX(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function AZe(e,t,n){return O0e(e)&&O0e(t)&&O0e(n)&&t<=e&&e<n}function Am(e,t){let n=e%t;return n>=Qu?n:t+n}function bXe(e,t,n){if(n<=Qu||t<Qu)throw new Error(\"Expected power/modulo > 0\");if(n===va)return Qu;let r=va;for(;t>Qu;)t&va&&(r=r*e%n),e=e*e%n,t>>=va;return r}function sX(e,t){if(e===Qu||t<=Qu)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Am(e,t),r=t,o=Qu,i=va;for(;n!==Qu;){let a=r%n,c=o-i*(r/n);r=n,n=a,o=i,i=c}if(r!==va)throw new Error(\"invert: does not exist\");return Am(o,t)}function vXe(e){let t=(e-va)/RS,n,r,o;for(n=e-va,r=0;n%RS===Qu;n/=RS,r++);for(o=RS;o<e&&bXe(o,t,e)!==e-va;o++);if(r===1){let a=(e+va)/hge;return function(c,u){let d=c.pow(u,a);if(!c.eql(c.sqr(d),u))throw new Error(\"Cannot find square root\");return d}}let i=(n+va)/RS;return function(a,c){if(a.pow(c,t)===a.neg(a.ONE))throw new Error(\"Cannot find square root\");let u=r,d=a.pow(a.mul(a.ONE,o),n),p=a.pow(c,i),h=a.pow(c,n);for(;!a.eql(h,a.ONE);){if(a.eql(h,a.ZERO))return a.ZERO;let g=1;for(let v=a.sqr(h);g<u&&!a.eql(v,a.ONE);g++)v=a.sqr(v);let y=a.pow(d,va<<BigInt(u-g-1));d=a.sqr(y),p=a.mul(p,y),h=a.mul(h,d),u=g}return p}}function CZe(e){if(e%hge===I7t){let t=(e+va)/hge;return function(n,r){let o=n.pow(r,t);if(!n.eql(n.sqr(o),r))throw new Error(\"Cannot find square root\");return o}}if(e%TZe===SZe){let t=(e-SZe)/TZe;return function(n,r){let o=n.mul(r,RS),i=n.pow(o,t),a=n.mul(r,i),c=n.mul(n.mul(a,RS),i),u=n.mul(a,n.sub(c,n.ONE));if(!n.eql(n.sqr(u),r))throw new Error(\"Cannot find square root\");return u}}return vXe(e)}function RZe(e,t,n){if(n<Qu)throw new Error(\"Expected power > 0\");if(n===Qu)return e.ONE;if(n===va)return t;let r=e.ONE,o=t;for(;n>Qu;)n&va&&(r=e.mul(r,o)),o=e.sqr(o),n>>=va;return r}function IZe(e,t){let n=new Array(t.length),r=t.reduce(((i,a,c)=>e.is0(a)?i:(n[c]=i,e.mul(i,a))),e.ONE),o=e.inv(r);return t.reduceRight(((i,a,c)=>e.is0(a)?i:(n[c]=e.mul(i,n[c]),e.mul(i,a))),o),n}function OZe(e){let t=(e-va)/RS;return(n,r)=>n.pow(r,t)}function N0e(e,t){let n=t!==void 0?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function mge(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function kZe(e){let t=mge(e);return t+Math.ceil(t/2)}function _S(e,t){if(DU(e),DU(t),e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);let n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function L7t(e,t){let n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function DU(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function wXe(e,t,n,r){(0,Fd.abytes)(e),(0,Fd.abytes)(t),DU(n),t.length>255&&(t=r((0,Fd.concatBytes)((0,Fd.utf8ToBytes)(\"H2C-OVERSIZE-DST-\"),t)));let{outputLen:o,blockLen:i}=r,a=Math.ceil(n/o);if(n>65535||a>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let c=(0,Fd.concatBytes)(t,_S(t.length,1)),u=_S(0,i),d=_S(n,2),p=new Array(a),h=r((0,Fd.concatBytes)(u,e,d,_S(0,1),c));p[0]=r((0,Fd.concatBytes)(h,_S(1,1),c));for(let g=1;g<=a;g++){let y=[L7t(h,p[g-1]),_S(g+1,1),c];p[g]=r((0,Fd.concatBytes)(...y))}return(0,Fd.concatBytes)(...p).slice(0,n)}function xXe(e,t,n,r,o){if((0,Fd.abytes)(e),(0,Fd.abytes)(t),DU(n),t.length>255){let i=Math.ceil(2*r/8);t=o.create({dkLen:i}).update((0,Fd.utf8ToBytes)(\"H2C-OVERSIZE-DST-\")).update(t).digest()}if(n>65535||t.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:n}).update(e).update(_S(n,2)).update(t).update(_S(t.length,1)).digest()}function L0e(e,t,n){(0,Fd.validateObject)(n,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:r,k:o,m:i,hash:a,expand:c,DST:u}=n;(0,Fd.abytes)(e),DU(t);let d=typeof u==\"string\"?(0,Fd.utf8ToBytes)(u):u,p=r.toString(2).length,h=Math.ceil((p+o)/8),g=t*i*h,y;if(c===\"xmd\")y=wXe(e,d,g,a);else if(c===\"xof\")y=xXe(e,d,g,o,a);else{if(c!==\"_internal_pass\")throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');y=e}let v=new Array(t);for(let x=0;x<t;x++){let R=new Array(i);for(let S=0;S<i;S++){let M=h*(S+x*i),P=y.subarray(M,M+h);R[S]=(0,M7t.mod)(D7t(P),r)}v[x]=R}return v}function UZe(e){return{hash:e,hmac:(t,...n)=>(0,U7t.hmac)(e,t,(0,BZe.concatBytes)(...n)),randomBytes:BZe.randomBytes}}function SXe(e,t,n){return(0,vge.hash)(e),n===void 0&&(n=new Uint8Array(e.outputLen)),(0,_Xe.hmac)(e,(0,FZe.toBytes)(n),(0,FZe.toBytes)(t))}function TXe(e,t,n,r=32){if((0,vge.hash)(e),(0,vge.number)(r),r>255*e.outputLen)throw new Error(\"Length should be <= 255*HashLen\");let o=Math.ceil(r/e.outputLen);n===void 0&&(n=HZe);let i=new Uint8Array(o*e.outputLen),a=_Xe.hmac.create(e,t),c=a._cloneInto(),u=new Uint8Array(a.outputLen);for(let d=0;d<o;d++)F0e[0]=d+1,c.update(d===0?HZe:u).update(n).update(F0e).digestInto(u),i.set(u,e.outputLen*d),a._cloneInto(c);return a.destroy(),c.destroy(),u.fill(0),F0e.fill(0),i.slice(0,r)}function CXe(e){e.reverse();let t=1&e[15],n=0;for(let r=0;r<e.length;r++){let o=e[r];e[r]=o>>>1|n,n=(1&o)<<7}return e[0]^=225&-t,e}function jZe(e){let t=(r,o)=>e(o,r.length).update((0,Qf.toBytes)(r)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(r,o)=>e(r,o),t}function dye(e){return e<<1^H7t&-(e>>7)}function PN(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=dye(e);return n}function RXe(e,t){if(e.length!==256)throw new Error(\"Wrong sbox length\");let n=new Uint32Array(256).map(((d,p)=>t(e[p]))),r=n.map(H0e),o=r.map(H0e),i=o.map(H0e),a=new Uint32Array(65536),c=new Uint32Array(65536),u=new Uint16Array(65536);for(let d=0;d<256;d++)for(let p=0;p<256;p++){let h=256*d+p;a[h]=n[d]^r[p],c[h]=o[d]^i[p],u[h]=e[d]<<8|e[p]}return{sbox:e,sbox2:u,T0:n,T1:r,T2:o,T3:i,T01:a,T23:c}}function x1(e){(0,ko.bytes)(e);let t=e.length;if(![16,24,32].includes(t))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${t}`);let{sbox2:n}=fye,r=[];(0,wt.isAligned32)(e)||r.push(e=(0,wt.copyBytes)(e));let o=(0,wt.u32)(e),i=o.length,a=u=>Uv(n,u,u,u,u),c=new Uint32Array(t+28);c.set(o);for(let u=i;u<c.length;u++){let d=c[u-1];u%i==0?d=a(j7t(d))^W7t[u/i-1]:i>6&&u%i==4&&(d=a(d)),c[u]=c[u-i]^d}return(0,wt.clean)(...r),c}function BU(e){let t=x1(e),n=t.slice(),r=t.length,{sbox2:o}=fye,{T0:i,T1:a,T2:c,T3:u}=IXe;for(let d=0;d<r;d+=4)for(let p=0;p<4;p++)n[d+p]=t[r-d-4+p];(0,wt.clean)(t);for(let d=4;d<r-4;d++){let p=n[d],h=Uv(o,p,p,p,p);n[d]=i[255&h]^a[h>>>8&255]^c[h>>>16&255]^u[h>>>24]}return n}function OS(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function Uv(e,t,n,r,o){return e[255&t|65280&n]|e[r>>>16&255|o>>>16&65280]<<16}function Jf(e,t,n,r,o){let{sbox2:i,T01:a,T23:c}=fye,u=0;t^=e[u++],n^=e[u++],r^=e[u++],o^=e[u++];let d=e.length/4-2;for(let p=0;p<d;p++){let h=e[u++]^OS(a,c,t,n,r,o),g=e[u++]^OS(a,c,n,r,o,t),y=e[u++]^OS(a,c,r,o,t,n),v=e[u++]^OS(a,c,o,t,n,r);t=h,n=g,r=y,o=v}return{s0:e[u++]^Uv(i,t,n,r,o),s1:e[u++]^Uv(i,n,r,o,t),s2:e[u++]^Uv(i,r,o,t,n),s3:e[u++]^Uv(i,o,t,n,r)}}function UU(e,t,n,r,o){let{sbox2:i,T01:a,T23:c}=IXe,u=0;t^=e[u++],n^=e[u++],r^=e[u++],o^=e[u++];let d=e.length/4-2;for(let p=0;p<d;p++){let h=e[u++]^OS(a,c,t,o,r,n),g=e[u++]^OS(a,c,n,t,o,r),y=e[u++]^OS(a,c,r,n,t,o),v=e[u++]^OS(a,c,o,r,n,t);t=h,n=g,r=y,o=v}return{s0:e[u++]^Uv(i,t,o,r,n),s1:e[u++]^Uv(i,n,t,o,r),s2:e[u++]^Uv(i,r,n,t,o),s3:e[u++]^Uv(i,o,r,n,t)}}function FN(e,t){if(t===void 0)return new Uint8Array(e);if((0,ko.bytes)(t),t.length<e)throw new Error(`aes: wrong destination length, expected at least ${e}, got: ${t.length}`);if(!(0,wt.isAligned32)(t))throw new Error(\"unaligned dst\");return t}function OXe(e,t,n,r){(0,ko.bytes)(t,lh),(0,ko.bytes)(n);let o=n.length;r=FN(o,r);let i=t,a=(0,wt.u32)(i),{s0:c,s1:u,s2:d,s3:p}=Jf(e,a[0],a[1],a[2],a[3]),h=(0,wt.u32)(n),g=(0,wt.u32)(r);for(let v=0;v+4<=h.length;v+=4){g[v+0]=h[v+0]^c,g[v+1]=h[v+1]^u,g[v+2]=h[v+2]^d,g[v+3]=h[v+3]^p;let x=1;for(let R=i.length-1;R>=0;R--)x=x+(255&i[R])|0,i[R]=255&x,x>>>=8;({s0:c,s1:u,s2:d,s3:p}=Jf(e,a[0],a[1],a[2],a[3]))}let y=lh*Math.floor(h.length/4);if(y<o){let v=new Uint32Array([c,u,d,p]),x=(0,wt.u8)(v);for(let R=y,S=0;R<o;R++,S++)r[R]=n[R]^x[S];(0,wt.clean)(v)}return r}function MN(e,t,n,r,o){(0,ko.bytes)(n,lh),(0,ko.bytes)(r),o=FN(r.length,o);let i=n,a=(0,wt.u32)(i),c=(0,wt.createView)(i),u=(0,wt.u32)(r),d=(0,wt.u32)(o),p=t?0:12,h=r.length,g=c.getUint32(p,t),{s0:y,s1:v,s2:x,s3:R}=Jf(e,a[0],a[1],a[2],a[3]);for(let M=0;M+4<=u.length;M+=4)d[M+0]=u[M+0]^y,d[M+1]=u[M+1]^v,d[M+2]=u[M+2]^x,d[M+3]=u[M+3]^R,g=g+1>>>0,c.setUint32(p,g,t),{s0:y,s1:v,s2:x,s3:R}=Jf(e,a[0],a[1],a[2],a[3]);let S=lh*Math.floor(u.length/4);if(S<h){let M=new Uint32Array([y,v,x,R]),P=(0,wt.u8)(M);for(let z=S,V=0;z<h;z++,V++)o[z]=r[z]^P[V];(0,wt.clean)(M)}return o}function WZe(e){if((0,ko.bytes)(e),e.length%lh!=0)throw new Error(\"aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16\")}function VZe(e,t,n){(0,ko.bytes)(e);let r=e.length,o=r%lh;if(!t&&o!==0)throw new Error(\"aec/(cbc-ecb): unpadded plaintext with disabled padding\");(0,wt.isAligned32)(e)||(e=(0,wt.copyBytes)(e));let i=(0,wt.u32)(e);if(t){let c=lh-o;c||(c=lh),r+=c}let a=FN(r,n);return{b:i,o:(0,wt.u32)(a),out:a}}function GZe(e,t){if(!t)return e;let n=e.length;if(!n)throw new Error(\"aes/pcks5: empty ciphertext not allowed\");let r=e[n-1];if(r<=0||r>16)throw new Error(\"aes/pcks5: wrong padding\");let o=e.subarray(0,-r);for(let i=0;i<r;i++)if(e[n-i-1]!==r)throw new Error(\"aes/pcks5: wrong padding\");return o}function qZe(e){let t=new Uint8Array(16),n=(0,wt.u32)(t);t.set(e);let r=lh-e.length;for(let o=lh-r;o<lh;o++)t[o]=r;return n}function kXe(e,t,n,r,o){let i=o==null?0:o.length,a=e.create(n,r.length+i);o&&a.update(o),a.update(r);let c=new Uint8Array(16),u=(0,wt.createView)(c);o&&(0,wt.setBigUint64)(u,0,BigInt(8*i),t),(0,wt.setBigUint64)(u,8,BigInt(8*r.length),t),a.update(c);let d=a.digest();return(0,wt.clean)(c),d}function NXe(e){return e!=null&&typeof e==\"object\"&&(e instanceof Uint32Array||e.constructor.name===\"Uint32Array\")}function PXe(e,t){if((0,ko.bytes)(t,16),!NXe(e))throw new Error(\"_encryptBlock accepts result of expandKeyLE\");let n=(0,wt.u32)(t),{s0:r,s1:o,s2:i,s3:a}=Jf(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=a,t}function MXe(e,t){if((0,ko.bytes)(t,16),!NXe(e))throw new Error(\"_decryptBlock accepts result of expandKeyLE\");let n=(0,wt.u32)(t),{s0:r,s1:o,s2:i,s3:a}=UU(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=a,t}function z0e(e){return e.byteOffset%4==0}function FXe(e){let t=(r,o)=>e(o).update((0,wU.toBytes)(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function VXe(e){let{context:t}=e;Ke.RemoteCommunication(`[RemoteCommunication: clean()] context=${t}`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}function GXe(e,t){return dt(this,void 0,void 0,(function*(){var n;let r=(n=e.state.keyExchange)===null||n===void 0?void 0:n.encryptMessage(JSON.stringify(t)),o={id:e.state.channelId,context:e.state.context,clientType:e.state.isOriginator?\"dapp\":\"wallet\",message:r,plaintext:e.state.hasPlaintext?JSON.stringify(t):void 0};return Ke.SocketService(`[SocketService: encryptAndSendMessage()] context=${e.state.context}`,o),t.type===ts.TERMINATE&&(e.state.manualDisconnect=!0),new Promise(((i,a)=>{var c;(c=e.state.socket)===null||c===void 0||c.emit(Et.MESSAGE,o,((u,d)=>{var p;u&&(Ke.SocketService(`[SocketService: encryptAndSendMessage()] error=${u}`),a(u)),Ke.SocketService(\"[encryptAndSendMessage] response\",d),i((p=d?.success)!==null&&p!==void 0&&p)}))}))}))}function tQe(e,t){Ke.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} setting socket listeners for channel ${t}...`);let{socket:n}=e.state,{keyExchange:r}=e.state;n&&e.state.isOriginator&&(e.state.debug&&(n?.io.on(\"error\",(o=>{Ke.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=error`,o)})),n?.io.on(\"reconnect\",(o=>{Ke.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect`,o),Sge(e).catch((i=>{}))})),n?.io.on(\"reconnect_error\",(o=>{Ke.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_error`,o)})),n?.io.on(\"reconnect_failed\",(()=>{Ke.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_failed`)}))),n?.on(\"disconnect\",(o=>(Ke.SocketService(`[SocketService: setupChannelListener()] on \\'disconnect\\' -- MetaMaskSDK socket disconnected \\'${o}\\' begin recovery...`),(function(i){return a=>{Ke.SocketService(`[SocketService: handleDisconnect()] on \\'disconnect\\' manualDisconnect=${i.state.manualDisconnect}`,a),i.state.manualDisconnect||(i.emit(Et.SOCKET_DISCONNECTED),Sge(i).catch((c=>{})))}})(e)(o))))),tPt.forEach((({event:o,handler:i})=>{n?.on(`${o}-${t}`,i(e,t))})),nPt.forEach((({event:o,handler:i})=>{r?.on(o,i(e))})),e.state.setupChannelListeners=!0}function rPt(e){return()=>dt(this,void 0,void 0,(function*(){var t,n,r;let{state:o}=e;if(o.authorized)return;yield dt(this,void 0,void 0,(function*(){for(;!o.walletInfo;)yield HN(500)}));let i=\"7.3\".localeCompare(((t=o.walletInfo)===null||t===void 0?void 0:t.version)||\"\");if(Ke.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK \\'authorized\\' version=${(n=o.walletInfo)===null||n===void 0?void 0:n.version} compareValue=${i}`),i!==1)return;let a=o.platformType===Wl.MobileWeb||o.platformType===Wl.ReactNative||o.platformType===Wl.MetaMaskMobileWebview;Ke.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK \\'authorized\\' platform=${o.platformType} secure=${a} channel=${o.channelId} walletVersion=${(r=o.walletInfo)===null||r===void 0?void 0:r.version}`),a&&(o.authorized=!0,e.emit(Et.AUTHORIZED))}))}function oPt(e){return t=>{let{state:n}=e;Ke.RemoteCommunication(`[RemoteCommunication: handleChannelCreatedEvent()] context=${n.context} on \\'channel_created\\' channelId=${t}`),e.emit(Et.CHANNEL_CREATED,t)}}function iPt(e,t){return()=>{var n,r,o,i;let{state:a}=e;Ke.RemoteCommunication(`[RemoteCommunication: handleClientsConnectedEvent()] on \\'clients_connected\\' channel=${a.channelId} keysExchanged=${(r=(n=a.communicationLayer)===null||n===void 0?void 0:n.getKeyInfo())===null||r===void 0?void 0:r.keysExchanged}`),a.analytics&&zx(Object.assign(Object.assign({id:(o=a.channelId)!==null&&o!==void 0?o:\"\",event:a.reconnection?dc.RECONNECT:a.isOriginator?dc.REQUEST:dc.REQUEST_MOBILE},a.originatorInfo),{commLayer:t,sdkVersion:a.sdkVersion,walletVersion:(i=a.walletInfo)===null||i===void 0?void 0:i.version,commLayerVersion:MS.version}),a.communicationServerUrl).catch((c=>{})),a.clientsConnected=!0,a.originatorInfoSent=!1,e.emit(Et.CLIENTS_CONNECTED)}}function aPt(e){return t=>{let{state:n}=e;Ke.RemoteCommunication(`[RemoteCommunication: handleClientsDisconnectedEvent()] context=${n.context} on \\'clients_disconnected\\' channelId=${t}`),n.relayPersistence||(n.clientsConnected=!1,n.ready=!1,n.authorized=!1),e.emit(Et.CLIENTS_DISCONNECTED,n.channelId),e.setConnectionStatus(Ju.DISCONNECTED)}}function sPt(e){return t=>{var n;let{state:r}=e;if(Ke.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] context=${r.context} on \\'clients_waiting\\' numberUsers=${t} ready=${r.ready} autoStarted=${r.originatorConnectStarted}`),e.setConnectionStatus(Ju.WAITING),e.emit(Et.CLIENTS_WAITING,t),r.originatorConnectStarted){Ke.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] on \\'clients_waiting\\' watch autoStarted=${r.originatorConnectStarted} timeout`,r.autoConnectOptions);let o=((n=r.autoConnectOptions)===null||n===void 0?void 0:n.timeout)||3e3,i=setTimeout((()=>{Ke.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] setTimeout(${o}) terminate channelConfig`,r.autoConnectOptions),r.originatorConnectStarted=!1,r.ready||e.setConnectionStatus(Ju.TIMEOUT),clearTimeout(i)}),o)}}}function cPt(e,t){return n=>{var r,o,i,a,c,u,d,p;let{state:h}=e;if(Ke.RemoteCommunication(`[RemoteCommunication: handleKeysExchangedEvent()] context=${h.context} on commLayer.\\'keys_exchanged\\' channel=${h.channelId}`,n),(o=(r=h.communicationLayer)===null||r===void 0?void 0:r.getKeyInfo())===null||o===void 0?void 0:o.keysExchanged){let g=Object.assign(Object.assign({},h.channelConfig),{channelId:(i=h.channelId)!==null&&i!==void 0?i:\"\",validUntil:((a=h.channelConfig)===null||a===void 0?void 0:a.validUntil)||WN,localKey:h.communicationLayer.getKeyInfo().ecies.private,otherKey:h.communicationLayer.getKeyInfo().ecies.otherPubKey});(c=h.storageManager)===null||c===void 0||c.persistChannelConfig(g).catch((y=>{})),e.setConnectionStatus(Ju.LINKED)}(function(g,y){var v,x,R,S,M,P,z,V;let{state:Q}=g;Ke.RemoteCommunication(`[RemoteCommunication: setLastActiveDate()] channel=${Q.channelId}`,y);let $=Object.assign(Object.assign({},Q.channelConfig),{channelId:(v=Q.channelId)!==null&&v!==void 0?v:\"\",validUntil:(R=(x=Q.channelConfig)===null||x===void 0?void 0:x.validUntil)!==null&&R!==void 0?R:0,relayPersistence:Q.relayPersistence,localKey:(M=(S=Q.communicationLayer)===null||S===void 0?void 0:S.state.keyExchange)===null||M===void 0?void 0:M.getKeyInfo().ecies.private,otherKey:(z=(P=Q.communicationLayer)===null||P===void 0?void 0:P.state.keyExchange)===null||z===void 0?void 0:z.getKeyInfo().ecies.otherPubKey,lastActive:y.getTime()});(V=Q.storageManager)===null||V===void 0||V.persistChannelConfig($)})(e,new Date),h.analytics&&h.channelId&&zx(Object.assign(Object.assign({id:h.channelId,event:n.isOriginator?dc.CONNECTED:dc.CONNECTED_MOBILE},h.originatorInfo),{sdkVersion:h.sdkVersion,commLayer:t,commLayerVersion:MS.version,walletVersion:(u=h.walletInfo)===null||u===void 0?void 0:u.version}),h.communicationServerUrl).catch((g=>{})),h.isOriginator=n.isOriginator,n.isOriginator||((d=h.communicationLayer)===null||d===void 0||d.sendMessage({type:ts.READY}),h.ready=!0,h.paused=!1),n.isOriginator&&!h.originatorInfoSent&&((p=h.communicationLayer)===null||p===void 0||p.sendMessage({type:ts.ORIGINATOR_INFO,originatorInfo:h.originatorInfo,originator:h.originatorInfo}),h.originatorInfoSent=!0)}}function uPt(e){return t=>{let n=t;t.message&&(n=n.message),(function(r,o){let{state:i}=o;if(Ke.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] context=${i.context} on \\'message\\' typeof=${typeof r}`,r),o.state.ready=!0,i.isOriginator||r.type!==ts.ORIGINATOR_INFO)if(i.isOriginator&&r.type===ts.WALLET_INFO)(function(a,c){let{state:u}=a;u.walletInfo=c.walletInfo,u.paused=!1})(o,r);else{if(i.isOriginator&&r.type===ts.WALLET_INIT)(function(a,c){return dt(this,void 0,void 0,(function*(){var u,d,p;let{state:h}=a;if(h.isOriginator){let g=c.data||{};if(typeof g==\"object\"&&\"accounts\"in g&&\"chainId\"in g&&\"walletKey\"in g)try{let{channelConfig:y}=a.state;if(Ke.RemoteCommunication(\"WALLET_INIT: channelConfig\",JSON.stringify(y,null,2)),y){let v=g.accounts,x=g.chainId,R=g.walletKey,S,M=!1;\"deeplinkProtocol\"in g&&(M=!!g.deeplinkProtocol,a.state.deeplinkProtocolAvailable=M),\"walletVersion\"in g&&(S=g.walletVersion),yield(u=a.state.storageManager)===null||u===void 0?void 0:u.persistChannelConfig(Object.assign(Object.assign({},y),{otherKey:R,walletVersion:S,deeplinkProtocolAvailable:M,relayPersistence:!0})),yield(d=a.state.storageManager)===null||d===void 0?void 0:d.persistAccounts(v),yield(p=a.state.storageManager)===null||p===void 0?void 0:p.persistChainId(x)}a.emit(Et.WALLET_INIT,{accounts:g.accounts,chainId:g.chainId})}catch{}}}))})(o,r).catch((a=>{Ke.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] error=${a}`)}));else if(r.type===ts.TERMINATE)(function(a){return dt(this,void 0,void 0,(function*(){let{state:c}=a;c.isOriginator&&(yield KXe({options:{terminate:!0,sendMessage:!1},instance:a}),a.emit(Et.TERMINATE))}))})(o).catch((a=>{Ke.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] error=${a}`)}));else if(r.type===ts.PAUSE)(function(a){let{state:c}=a;c.paused=!0,a.setConnectionStatus(Ju.PAUSED)})(o);else if(r.type===ts.READY&&i.isOriginator)(function(a){let{state:c}=a;a.setConnectionStatus(Ju.LINKED);let u=c.paused;c.paused=!1,a.emit(Et.CLIENTS_READY,{isOriginator:c.isOriginator,walletInfo:c.walletInfo}),u&&(c.authorized=!0,a.emit(Et.AUTHORIZED))})(o);else{if(r.type===ts.OTP&&i.isOriginator)return void(function(a,c){var u;let{state:d}=a;a.emit(Et.OTP,c.otpAnswer),\"6.6\".localeCompare(((u=d.walletInfo)===null||u===void 0?void 0:u.version)||\"\")===1&&a.emit(Et.SDK_RPC_CALL,{method:ePt.ETH_REQUESTACCOUNTS,params:[]})})(o,r);r.type===ts.AUTHORIZED&&i.isOriginator&&(function(a){let{state:c}=a;c.authorized=!0,a.emit(Et.AUTHORIZED)})(o)}o.emit(Et.MESSAGE,r)}else(function(a,c){var u;let{state:d}=a;(u=d.communicationLayer)===null||u===void 0||u.sendMessage({type:ts.WALLET_INFO,walletInfo:d.walletInfo}),d.originatorInfo=c.originatorInfo||c.originator,a.emit(Et.CLIENTS_READY,{isOriginator:d.isOriginator,originatorInfo:d.originatorInfo}),d.paused=!1})(o,r)})(n,e)}}function lPt(e){return()=>{let{state:t}=e;Ke.RemoteCommunication(\"[RemoteCommunication: handleSocketReconnectEvent()] on \\'socket_reconnect\\' -- reset key exchange status / set ready to false\"),t.ready=!1,t.authorized=!1,VXe(t),e.emitServiceStatusEvent({context:\"socket_reconnect\"})}}function dPt(e){return()=>{let{state:t}=e;Ke.RemoteCommunication(\"[RemoteCommunication: handleSocketDisconnectedEvent()] on \\'socket_Disconnected\\' set ready to false\"),t.ready=!1}}function fPt(e){return()=>dt(this,void 0,void 0,(function*(){var t,n,r,o,i,a,c;let{state:u}=e;Ke.RemoteCommunication(`[RemoteCommunication: handleFullPersistenceEvent()] context=${u.context}`),e.state.ready=!0,e.state.clientsConnected=!0,e.state.authorized=!0,e.state.relayPersistence=!0,(t=e.state.communicationLayer)===null||t===void 0||t.getKeyExchange().setKeysExchanged(!0),e.emit(Et.KEYS_EXCHANGED,{keysExchanged:!0,isOriginator:!0}),e.emit(Et.AUTHORIZED),e.emit(Et.CLIENTS_READY),e.emit(Et.CHANNEL_PERSISTENCE);try{u.channelConfig=Object.assign(Object.assign({},u.channelConfig),{localKey:(n=u.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange().getKeyInfo().ecies.private,otherKey:(r=u.communicationLayer)===null||r===void 0?void 0:r.getKeyExchange().getOtherPublicKey(),channelId:(o=u.channelId)!==null&&o!==void 0?o:\"\",validUntil:(a=(i=u.channelConfig)===null||i===void 0?void 0:i.validUntil)!==null&&a!==void 0?a:WN,relayPersistence:!0}),yield(c=u.storageManager)===null||c===void 0?void 0:c.persistChannelConfig(u.channelConfig)}catch{}}))}function rQe({communicationLayerPreference:e,otherPublicKey:t,reconnect:n,ecies:r,communicationServerUrl:o=MC,instance:i}){var a,c,u,d,p,h,g,y,v,x,R;let{state:S}=i;if(Ke.RemoteCommunication(\"[initCommunicationLayer()] \",JSON.stringify(S,null,2)),e!==DS.SOCKET)throw new Error(\"Invalid communication protocol\");S.communicationLayer=new Tge({communicationLayerPreference:e,otherPublicKey:t,reconnect:n,transports:S.transports,communicationServerUrl:o,context:S.context,ecies:r,logging:S.logging,remote:i});let M=typeof document<\"u\"&&document.URL||\"\",P=typeof document<\"u\"&&document.title||\"\";!((a=S.dappMetadata)===null||a===void 0)&&a.url&&(M=S.dappMetadata.url),!((c=S.dappMetadata)===null||c===void 0)&&c.name&&(P=S.dappMetadata.name);let z=(h=(d=(u=S.dappMetadata)===null||u===void 0?void 0:u.name)!==null&&d!==void 0?d:(p=S.dappMetadata)===null||p===void 0?void 0:p.url)!==null&&h!==void 0?h:\"N/A\",V=typeof window<\"u\"&&window.location!==void 0&&(g=window.location.hostname)!==null&&g!==void 0?g:z,Q={url:M,title:P,source:(y=S.dappMetadata)===null||y===void 0?void 0:y.source,dappId:V,icon:((v=S.dappMetadata)===null||v===void 0?void 0:v.iconUrl)||((x=S.dappMetadata)===null||x===void 0?void 0:x.base64Icon),platform:S.platformType,apiVersion:MS.version,connector:(R=S.dappMetadata)===null||R===void 0?void 0:R.connector};S.originatorInfo=Q;let $={[Et.AUTHORIZED]:rPt(i),[Et.MESSAGE]:uPt(i),[Et.CHANNEL_PERSISTENCE]:fPt(i),[Et.CLIENTS_CONNECTED]:iPt(i,e),[Et.KEYS_EXCHANGED]:cPt(i,e),[Et.SOCKET_DISCONNECTED]:dPt(i),[Et.SOCKET_RECONNECT]:lPt(i),[Et.CLIENTS_DISCONNECTED]:aPt(i),[Et.KEY_INFO]:()=>{},[Et.CHANNEL_CREATED]:oPt(i),[Et.CLIENTS_WAITING]:sPt(i),[Et.RPC_UPDATE]:oe=>{i.emit(Et.RPC_UPDATE,oe)}};for(let[oe,J]of Object.entries($))try{S.communicationLayer.on(oe,J)}catch{}}function KXe(e){return dt(this,arguments,void 0,(function*({options:t,instance:n}){let{state:r}=n;return Ke.RemoteCommunication(`[RemoteCommunication: disconnect()] channel=${r.channelId}`,t),new Promise(((o,i)=>{var a,c,u,d,p,h;t?.terminate?(n.state.ready&&zx({id:(a=n.state.channelId)!==null&&a!==void 0?a:\"\",event:dc.TERMINATED},n.state.communicationServerUrl).catch((g=>{})),r.ready=!1,r.paused=!1,(c=r.storageManager)===null||c===void 0||c.terminate((u=r.channelId)!==null&&u!==void 0?u:\"\"),n.state.terminated=!0,t.sendMessage?!((d=r.communicationLayer)===null||d===void 0)&&d.getKeyInfo().keysExchanged&&n.state.communicationLayer&&GXe(n.state.communicationLayer,{type:ts.TERMINATE}).then((()=>{o(!0)})).catch((g=>{i(g)})):o(!0),r.authorized=!1,r.relayPersistence=!1,r.channelId=bN(),t.channelId=r.channelId,r.channelConfig=void 0,r.originatorConnectStarted=!1,(p=r.communicationLayer)===null||p===void 0||p.disconnect(t),n.setConnectionStatus(Ju.TERMINATED)):((h=r.communicationLayer)===null||h===void 0||h.disconnect(t),n.setConnectionStatus(Ju.DISCONNECTED),o(!0))}))}))}function mPt(e){let t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1,walletWatchAssetNFTExperimental:!1};return(n,r,o)=>{t.ethDecryptDeprecation||n.method!==\"eth_decrypt\"?t.ethGetEncryptionPublicKeyDeprecation||n.method!==\"eth_getEncryptionPublicKey\"?!t.walletWatchAssetNFTExperimental&&n.method===\"wallet_watchAsset\"&&[pPt,hPt].includes(n.params?.type||\"\")&&(e.warn(Fs.warnings.rpc.walletWatchAssetNFTExperimental),t.walletWatchAssetNFTExperimental=!0):(e.warn(Fs.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0):(e.warn(Fs.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0),o()}}function gPt(){return(e,t,n,r)=>{let o=e.id,i=oQe=(oQe+1)%YXe;e.id=i,t.id=i,n((a=>{e.id=o,t.id=o,a()}))}}function aQe(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}function Hx(e){return typeof e==\"object\"&&e!=null}function jv(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function yPt(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:u=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${jv(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*sQe(e,t,n,r){(function(o){return Hx(o)&&typeof o[Symbol.iterator]==\"function\"})(e)||(e=[e]);for(let o of e){let i=yPt(o,t,n,r);i&&(yield i)}}function*hye(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o};if(i&&(e=t.coercer(e,c),a&&t.type!==\"type\"&&Hx(t.schema)&&Hx(e)&&!Array.isArray(e)))for(let d in e)t.schema[d]===void 0&&delete e[d];let u=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,u=\"not_valid\",yield[d,void 0];for(let[d,p,h]of t.entries(e,c)){let g=hye(p,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,p],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(u=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(p=y[1],d===void 0?e=p:e instanceof Map?e.set(d,p):e instanceof Set?e.add(p):Hx(e)&&(p!==void 0||d in e)&&(e[d]=p))}if(u!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,u=\"not_refined\",yield[d,void 0];u===\"valid\"&&(yield[void 0,e])}function ZXe(e,t,n){let r=HU(e,t,{message:n});if(r[0])throw r[0]}function QXe(e,t,n){let r=HU(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function KN(e,t){return!HU(e,t)[0]}function HU(e,t,n={}){let r=hye(e,t,n),o=(function(i){let{done:a,value:c}=i.next();return a?void 0:c})(r);return o[0]?[new Rge(o[0],(function*(){for(let a of r)a[0]&&(yield a[0])})),void 0]:[void 0,o[1]]}function LS(e,t){return new Tm({type:e,schema:null,validator:t})}function cQe(e){let t;return new Tm({type:\"lazy\",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function JXe(e){return new Tm({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${jv(t)}`})}function XXe(e){let t=jv(e),n=typeof e;return new Tm({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator:r=>r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${jv(r)}`})}function $Xe(){return LS(\"number\",(e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${jv(e)}`))}function e$e(e){let t=e?Object.keys(e):[],n=LS(\"never\",(()=>!1));return new Tm({type:\"object\",schema:e||null,*entries(r){if(e&&Hx(r)){let o=new Set(Object.keys(r));for(let i of t)o.delete(i),yield[i,r[i],e[i]];for(let i of o)yield[i,r[i],n]}},validator:r=>Hx(r)||`Expected an object, but received: ${jv(r)}`,coercer:r=>Hx(r)?{...r}:r})}function uQe(e){return new Tm({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function t$e(e,t){return new Tm({type:\"record\",schema:null,*entries(n){if(Hx(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator:n=>Hx(n)||`Expected an object, but received: ${jv(n)}`})}function BS(){return LS(\"string\",(e=>typeof e==\"string\"||`Expected a string, but received: ${jv(e)}`))}function E$(e){let t=e.map((n=>n.type)).join(\" | \");return new Tm({type:\"union\",schema:null,coercer(n){for(let r of e){let[o,i]=r.validate(n,{coerce:!0});if(!o)return i}return n},validator(n,r){let o=[];for(let i of e){let[...a]=hye(n,i,r),[c]=a;if(!c[0])return[];for(let[u]of a)u&&o.push(u)}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${jv(n)}`,...o]}})}function bPt(e){return(function(t){return(function(n){return typeof n==\"object\"&&n!==null&&\"message\"in n})(t)&&typeof t.message==\"string\"?t.message:t==null?\"\":String(t)})(e).replace(/\\\\.$/u,\"\")}function vPt(e,t){return n=e,typeof n?.prototype?.constructor?.name==\"string\"?new e({message:t}):e({message:t});var n}function n$e(){throw new Error(\"setTimeout has not been defined\")}function r$e(){throw new Error(\"clearTimeout has not been defined\")}function o$e(e){if(vS===setTimeout)return setTimeout(e,0);if((vS===n$e||!vS)&&setTimeout)return vS=setTimeout,setTimeout(e,0);try{return vS(e,0)}catch{try{return vS.call(null,e,0)}catch{return vS.call(this,e,0)}}}function xPt(){zN&&OC&&(zN=!1,OC.length?Fx=OC.concat(Fx):SX=-1,Fx.length&&i$e())}function i$e(){if(!zN){var e=o$e(xPt);zN=!0;for(var t=Fx.length;t;){for(OC=Fx,Fx=[];++SX<t;)OC&&OC[SX].run();SX=-1,t=Fx.length}OC=null,zN=!1,(function(n){if(wS===clearTimeout)return clearTimeout(n);if((wS===r$e||!wS)&&clearTimeout)return wS=clearTimeout,clearTimeout(n);try{return wS(n)}catch{try{return wS.call(null,n)}catch{return wS.call(this,n)}}})(e)}}function a$e(e,t){this.fun=e,this.array=t}function LC(){}function lQe({path:e,branch:t}){let n=e[e.length-1];return $X(t[t.length-2],n)}function e$(e){return new Tm({...e,type:`optional ${e.type}`,validator:(t,n)=>!lQe(n)||e.validator(t,n),refiner:(t,n)=>!lQe(n)||e.refiner(t,n)})}function Ige(e){try{return(function(t){QXe(t,jU)})(e),!0}catch{return!1}}function pQe(e){return KN(e,kPt)}function hQe(e){return KN(e,Oge)}function c$e(e,t=PPt){if((function(n){return Number.isInteger(n)})(e)){let n=e.toString();if($X(iQe,n))return iQe[n].message;if((function(r){return r>=-32099&&r<=-32e3})(e))return DPt}return t}function gQe(e,{fallbackError:t=MPt,shouldIncludeStack:n=!0}={}){if(!hQe(t))throw new Error(\"Must provide fallback error with integer number code and string message.\");let r=(function(o,i){if(o&&typeof o==\"object\"&&\"serialize\"in o&&typeof o.serialize==\"function\")return o.serialize();if(hQe(o))return o;let a=u$e(o);return{...i,data:{cause:a}}})(e,t);return n||delete r.stack,r}function u$e(e){return Array.isArray(e)?e.map((t=>Ige(t)?t:aQe(t)?yQe(t):null)):aQe(e)?yQe(e):Ige(e)?e:null}function yQe(e){return Object.getOwnPropertyNames(e).reduce(((t,n)=>{let r=e[n];return Ige(r)&&(t[n]=r),t}),{})}function f$e(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function xU(e,t,n,r){var o;r===void 0&&(r=f$e()),kge(e,\"\",0,[],void 0,0,r);try{o=kC.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p$e(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;DC.length!==0;){var i=DC.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function jN(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),DC.push([r,n,t,o])):kC.push([t,n,e]):(r[n]=e,DC.push([r,n,t]))}function kge(e,t,n,r,o,i,a){var c;if(i+=1,typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e)return void jN(d$e,e,t,o);if(a.depthLimit!==void 0&&i>a.depthLimit||a.edgesLimit!==void 0&&n+1>a.edgesLimit)return void jN(n$,e,t,o);if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)kge(e[c],c,c,r,e,i,a);else{var u=Object.keys(e);for(c=0;c<u.length;c++){var d=u[c];kge(e[d],d,c,r,e,i,a)}}r.pop()}}function LPt(e,t){return e<t?-1:e>t?1:0}function bQe(e,t,n,r){r===void 0&&(r=f$e());var o,i=Nge(e,\"\",0,[],void 0,0,r)||e;try{o=kC.length===0?JSON.stringify(i,t,n):JSON.stringify(i,p$e(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;DC.length!==0;){var a=DC.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return o}function Nge(e,t,n,r,o,i,a){var c;if(i+=1,typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e)return void jN(d$e,e,t,o);try{if(typeof e.toJSON==\"function\")return}catch{return}if(a.depthLimit!==void 0&&i>a.depthLimit||a.edgesLimit!==void 0&&n+1>a.edgesLimit)return void jN(n$,e,t,o);if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)Nge(e[c],c,c,r,e,i,a);else{var u={},d=Object.keys(e).sort(LPt);for(c=0;c<d.length;c++){var p=d[c];Nge(e[p],p,c,r,e,i,a),u[p]=e[p]}if(o===void 0)return u;DC.push([o,t,e]),o[t]=u}r.pop()}}function p$e(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(kC.length>0)for(var r=0;r<kC.length;r++){var o=kC[r];if(o[1]===t&&o[0]===n){n=o[2],kC.splice(r,1);break}}return e.call(this,t,n)}}function UPt(e,t){if(t!==\"[Circular]\")return t}function FPt(e,t){let[n,r]=(function(o){if(o){if(typeof o==\"string\")return[o];if(typeof o==\"object\"&&!Array.isArray(o)){let{message:i,data:a}=o;if(i&&typeof i!=\"string\")throw new Error(\"Must specify string message.\");return[i??void 0,a]}}return[]})(t);return new Px(e,n??c$e(e),r)}function xS(){}function gi(){gi.init.call(this)}function m$e(e){return e._maxListeners===void 0?gi.defaultMaxListeners:e._maxListeners}function vQe(e,t,n,r){var o,i,a;if(typeof n!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');if((i=e._events)?(i.newListener&&(e.emit(\"newListener\",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new xS,e._eventsCount=0),a){if(typeof a==\"function\"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=m$e(e))&&o>0&&a.length>o){a.warned=!0;var c=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+t+\" listeners added. Use emitter.setMaxListeners() to increase limit\");c.name=\"MaxListenersExceededWarning\",c.emitter=e,c.type=t,c.count=a.length,(function(u){typeof console.warn==\"function\"?console.warn(u):console.log(u)})(c)}}else a=i[t]=n,++e._eventsCount;return e}function wQe(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function xQe(e){var t=this._events;if(t){var n=t[e];if(typeof n==\"function\")return 1;if(n)return n.length}return 0}function bU(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function EQe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout((()=>{throw r}))}}function q0e(e){return JSON.stringify(e,null,2)}function VPt(e){return(t,n,r)=>{typeof t.method==\"string\"&&t.method||(n.error=CU({message:\"The request \\'method\\' must be a non-empty string.\",data:t})),r((o=>{let{error:i}=n;return i&&e.error(`MetaMask - RPC Error: ${i.message}`,i),o()}))}}async function TQe(e,t){try{let n=await(async function(){return{name:GPt(window),icon:await qPt(window)}})();e.handle({jsonrpc:\"2.0\",id:1,method:\"metamask_sendDomainMetadata\",params:n},v$e)}catch(n){t.error({message:Fs.errors.sendSiteMetadata(),originalError:n})}}function GPt(e){let{document:t}=e,n=t.querySelector(\\'head > meta[property=\"og:site_name\"]\\');if(n)return n.content;let r=t.querySelector(\\'head > meta[name=\"title\"]\\');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function qPt(e){let{document:t}=e,n=t.querySelectorAll(\\'head > link[rel~=\"icon\"]\\');for(let r of Array.from(n))if(r&&await KPt(r.href))return r.href;return null}async function KPt(e){return new Promise(((t,n)=>{try{let r=document.createElement(\"img\");r.onload=()=>t(!0),r.onerror=()=>t(!1),r.src=e}catch(r){n(r)}}))}function CQe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout((()=>{throw r}))}}function A$e(){return IQe?RQe:(IQe=1,RQe=mye.EventEmitter)}function A$(e){if(!WU(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(zv(arguments[n]));return t.join(\" \")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(JPt,(function(c){if(c===\"%%\")return\"%\";if(n>=o)return c;switch(c){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch{return\"[Circular]\"}default:return c}})),a=r[n];n<o;a=r[++n])QU(a)||!BC(a)?i+=\" \"+a:i+=\" \"+zv(a);return i}function bye(e,t){if(Fv($f.process))return function(){return bye(e,t).apply(this,arguments)};if(Fo.noDeprecation===!0)return e;var n=!1;return function(){if(!n){if(Fo.throwDeprecation)throw new Error(t);Fo.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}function S$e(e){return Fv(K0e)&&(K0e=Fo.env.NODE_DEBUG||\"\"),e=e.toUpperCase(),!yX[e]&&(new RegExp(\"\\\\\\\\b\"+e+\"\\\\\\\\b\",\"i\").test(K0e)?yX[e]=function(){var t=A$.apply(null,arguments);console.error(\"%s %d: %s\",e,0,t)}:yX[e]=function(){}),yX[e]}function zv(e,t){var n={seen:[],stylize:$Pt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_$(t)?n.showHidden=t:t&&Eye(n,t),Fv(n.showHidden)&&(n.showHidden=!1),Fv(n.depth)&&(n.depth=2),Fv(n.colors)&&(n.colors=!1),Fv(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=XPt),i$(n,e,n.depth)}function XPt(e,t){var n=zv.styles[t];return n?\"\\\\x1B[\"+zv.colors[n][0]+\"m\"+e+\"\\\\x1B[\"+zv.colors[n][1]+\"m\":e}function $Pt(e,t){return e}function i$(e,t,n){if(e.customInspect&&t&&kU(t.inspect)&&t.inspect!==zv&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return WU(r)||(r=i$(e,r,n)),r}var o=(function(g,y){if(Fv(y))return g.stylize(\"undefined\",\"undefined\");if(WU(y)){var v=\"\\'\"+JSON.stringify(y).replace(/^\"|\"$/g,\"\").replace(/\\'/g,\"\\\\\\\\\\'\").replace(/\\\\\\\\\"/g,\\'\"\\')+\"\\'\";return g.stylize(v,\"string\")}if(wye(y))return g.stylize(\"\"+y,\"number\");if(_$(y))return g.stylize(\"\"+y,\"boolean\");if(QU(y))return g.stylize(\"null\",\"null\")})(e,t);if(o)return o;var i=Object.keys(t),a=(function(g){var y={};return g.forEach((function(v,x){y[v]=!0})),y})(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),OU(t)&&(i.indexOf(\"message\")>=0||i.indexOf(\"description\")>=0))return Y0e(t);if(i.length===0){if(kU(t)){var c=t.name?\": \"+t.name:\"\";return e.stylize(\"[Function\"+c+\"]\",\"special\")}if(IU(t))return e.stylize(RegExp.prototype.toString.call(t),\"regexp\");if(a$(t))return e.stylize(Date.prototype.toString.call(t),\"date\");if(OU(t))return Y0e(t)}var u,d=\"\",p=!1,h=[\"{\",\"}\"];return vye(t)&&(p=!0,h=[\"[\",\"]\"]),kU(t)&&(d=\" [Function\"+(t.name?\": \"+t.name:\"\")+\"]\"),IU(t)&&(d=\" \"+RegExp.prototype.toString.call(t)),a$(t)&&(d=\" \"+Date.prototype.toUTCString.call(t)),OU(t)&&(d=\" \"+Y0e(t)),i.length!==0||p&&t.length!=0?n<0?IU(t)?e.stylize(RegExp.prototype.toString.call(t),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(t),u=p?(function(g,y,v,x,R){for(var S=[],M=0,P=y.length;M<P;++M)k$e(y,String(M))?S.push(Z0e(g,y,v,x,String(M),!0)):S.push(\"\");return R.forEach((function(z){z.match(/^\\\\d+$/)||S.push(Z0e(g,y,v,x,z,!0))})),S})(e,t,n,a,i):i.map((function(g){return Z0e(e,t,n,a,g,p)})),e.seen.pop(),(function(g,y,v){var x=g.reduce((function(R,S){return S.indexOf(`\\n`),R+S.replace(/\\\\u001b\\\\[\\\\d\\\\d?m/g,\"\").length+1}),0);return x>60?v[0]+(y===\"\"?\"\":y+`\\n `)+\" \"+g.join(`,\\n  `)+\" \"+v[1]:v[0]+y+\" \"+g.join(\", \")+\" \"+v[1]})(u,d,h)):h[0]+d+h[1]}function Y0e(e){return\"[\"+Error.prototype.toString.call(e)+\"]\"}function Z0e(e,t,n,r,o,i){var a,c,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=u.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):u.set&&(c=e.stylize(\"[Setter]\",\"special\")),k$e(r,o)||(a=\"[\"+o+\"]\"),c||(e.seen.indexOf(u.value)<0?(c=QU(n)?i$(e,u.value,null):i$(e,u.value,n-1)).indexOf(`\\n`)>-1&&(c=i?c.split(`\\n`).map((function(d){return\"  \"+d})).join(`\\n`).substr(2):`\\n`+c.split(`\\n`).map((function(d){return\"   \"+d})).join(`\\n`)):c=e.stylize(\"[Circular]\",\"special\")),Fv(a)){if(i&&o.match(/^\\\\d+$/))return c;(a=JSON.stringify(\"\"+o)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,\"name\")):(a=a.replace(/\\'/g,\"\\\\\\\\\\'\").replace(/\\\\\\\\\"/g,\\'\"\\').replace(/(^\"|\"$)/g,\"\\'\"),a=e.stylize(a,\"string\"))}return a+\": \"+c}function vye(e){return Array.isArray(e)}function _$(e){return typeof e==\"boolean\"}function QU(e){return e===null}function T$e(e){return e==null}function wye(e){return typeof e==\"number\"}function WU(e){return typeof e==\"string\"}function C$e(e){return typeof e==\"symbol\"}function Fv(e){return e===void 0}function IU(e){return BC(e)&&xye(e)===\"[object RegExp]\"}function BC(e){return typeof e==\"object\"&&e!==null}function a$(e){return BC(e)&&xye(e)===\"[object Date]\"}function OU(e){return BC(e)&&(xye(e)===\"[object Error]\"||e instanceof Error)}function kU(e){return typeof e==\"function\"}function R$e(e){return e===null||typeof e==\"boolean\"||typeof e==\"number\"||typeof e==\"string\"||typeof e==\"symbol\"||e===void 0}function I$e(e){return ut.isBuffer(e)}function xye(e){return Object.prototype.toString.call(e)}function Q0e(e){return e<10?\"0\"+e.toString(10):e.toString(10)}function O$e(){console.log(\"%s - %s\",(function(){var e=new Date,t=[Q0e(e.getHours()),Q0e(e.getMinutes()),Q0e(e.getSeconds())].join(\":\");return[e.getDate(),e9t[e.getMonth()],t].join(\" \")})(),A$.apply(null,arguments))}function Eye(e,t){if(!t||!BC(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function k$e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Aye(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"original\" argument must be of type Function\\');if(CC&&e[CC]){var t;if(typeof(t=e[CC])!=\"function\")throw new TypeError(\\'The \"util.promisify.custom\" argument must be of type Function\\');return Object.defineProperty(t,CC,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,r,o=new Promise((function(c,u){n=c,r=u})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(c,u){c?r(c):n(u)}));try{e.apply(this,i)}catch(c){r(c)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),CC&&Object.defineProperty(t,CC,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,_$e(e))}function t9t(e,t){if(!e){var n=new Error(\"Promise was rejected with a falsy value\");n.reason=e,e=n}return t(e)}function N$e(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"original\" argument must be of type Function\\');function t(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if(typeof o!=\"function\")throw new TypeError(\"The last argument must be of type Function\");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,n).then((function(c){Fo.nextTick(a.bind(null,null,c))}),(function(c){Fo.nextTick(t9t.bind(null,c,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,_$e(e)),t}function r9t(){if(OQe)return J0e;function e(u,d){var p=Object.keys(u);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);d&&(h=h.filter((function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable}))),p.push.apply(p,h)}return p}function t(u){for(var d=1;d<arguments.length;d++){var p=arguments[d]!=null?arguments[d]:{};d%2?e(Object(p),!0).forEach((function(h){n(u,h,p[h])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(p)):e(Object(p)).forEach((function(h){Object.defineProperty(u,h,Object.getOwnPropertyDescriptor(p,h))}))}return u}function n(u,d,p){return(d=o(d))in u?Object.defineProperty(u,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[d]=p,u}function r(u,d,p){return d&&(function(h,g){for(var y=0;y<g.length;y++){var v=g[y];v.enumerable=v.enumerable||!1,v.configurable=!0,\"value\"in v&&(v.writable=!0),Object.defineProperty(h,o(v.key),v)}})(u.prototype,d),Object.defineProperty(u,\"prototype\",{writable:!1}),u}function o(u){var d=(function(p,h){if(typeof p!=\"object\"||p===null)return p;var g=p[Symbol.toPrimitive];if(g!==void 0){var y=g.call(p,h||\"default\");if(typeof y!=\"object\")return y;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(h===\"string\"?String:Number)(p)})(u,\"string\");return typeof d==\"symbol\"?d:String(d)}OQe=1;var i=yye.Buffer,a=P$e.inspect,c=a&&a.custom||\"inspect\";return J0e=(function(){function u(){(function(d,p){if(!(d instanceof p))throw new TypeError(\"Cannot call a class as a function\")})(this,u),this.head=null,this.tail=null,this.length=0}return r(u,[{key:\"push\",value:function(d){var p={data:d,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:\"unshift\",value:function(d){var p={data:d,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(d){if(this.length===0)return\"\";for(var p=this.head,h=\"\"+p.data;p=p.next;)h+=d+p.data;return h}},{key:\"concat\",value:function(d){if(this.length===0)return i.alloc(0);for(var p,h,g,y=i.allocUnsafe(d>>>0),v=this.head,x=0;v;)p=v.data,h=y,g=x,i.prototype.copy.call(p,h,g),x+=v.data.length,v=v.next;return y}},{key:\"consume\",value:function(d,p){var h;return d<this.head.data.length?(h=this.head.data.slice(0,d),this.head.data=this.head.data.slice(d)):h=d===this.head.data.length?this.shift():p?this._getString(d):this._getBuffer(d),h}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(d){var p=this.head,h=1,g=p.data;for(d-=g.length;p=p.next;){var y=p.data,v=d>y.length?y.length:d;if(v===y.length?g+=y:g+=y.slice(0,d),(d-=v)===0){v===y.length?(++h,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=y.slice(v));break}++h}return this.length-=h,g}},{key:\"_getBuffer\",value:function(d){var p=i.allocUnsafe(d),h=this.head,g=1;for(h.data.copy(p),d-=h.data.length;h=h.next;){var y=h.data,v=d>y.length?y.length:d;if(y.copy(p,p.length-d,0,v),(d-=v)===0){v===y.length?(++g,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=y.slice(v));break}++g}return this.length-=g,p}},{key:c,value:function(d,p){return a(this,t(t({},p),{},{depth:0,customInspect:!1}))}}]),u})(),J0e}function M$e(){if(kQe)return X0e;function e(r,o){n(r,o),t(r)}function t(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit(\"close\")}function n(r,o){r.emit(\"error\",o)}return kQe=1,X0e={destroy:function(r,o){var i=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(o?o(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Fo.nextTick(n,this,r)):Fo.nextTick(n,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(u){!o&&u?i._writableState?i._writableState.errorEmitted?Fo.nextTick(t,i):(i._writableState.errorEmitted=!0,Fo.nextTick(e,i,u)):Fo.nextTick(e,i,u):o?(Fo.nextTick(t,i),o(u)):Fo.nextTick(t,i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(r,o){var i=r._readableState,a=r._writableState;i&&i.autoDestroy||a&&a.autoDestroy?r.destroy(o):r.emit(\"error\",o)}},X0e}function yg(e,t,n){n||(n=Error);var r=(function(o){var i,a;function c(u,d,p){return o.call(this,(function(h,g,y){return typeof t==\"string\"?t:t(h,g,y)})(u,d,p))||this}return a=o,(i=c).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a,c})(n);r.prototype.name=n.name,r.prototype.code=e,D$e[e]=r}function MQe(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(r){return String(r)})),n>2?\"one of \".concat(t,\" \").concat(e.slice(0,n-1).join(\", \"),\", or \")+e[n-1]:n===2?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}return\"of \".concat(t,\" \").concat(String(e))}function L$e(){if(PQe)return NQe;PQe=1;var e=UC.codes.ERR_INVALID_OPT_VALUE;return NQe={getHighWaterMark:function(t,n,r,o){var i=(function(a,c,u){return a.highWaterMark!=null?a.highWaterMark:c?a[u]:null})(n,o,r);if(i!=null){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new e(o?r:\"highWaterMark\",i);return Math.floor(i)}return t.objectMode?16:16384}}}function i9t(){if(DQe)return $0e;function e(t){try{if(!_g.localStorage)return!1}catch{return!1}var n=_g.localStorage[t];return n!=null&&String(n).toLowerCase()===\"true\"}return DQe=1,$0e=function(t,n){if(e(\"noDeprecation\"))return t;var r=!1;return function(){if(!r){if(e(\"throwDeprecation\"))throw new Error(n);e(\"traceDeprecation\")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}},$0e}function B$e(){if(LQe)return ege;function e(K){var U=this;this.next=null,this.entry=null,this.finish=function(){(function(T,k,F){var N=T.entry;for(T.entry=null;N;){var B=N.callback;k.pendingcb--,B(F),N=N.next}k.corkedRequestsFree.next=T})(U,K)}}var t;LQe=1,ege=V,V.WritableState=z;var n={deprecate:i9t()},r=A$e(),o=yye.Buffer,i=(_g!==void 0?_g:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){},a,c=M$e(),u=L$e().getHighWaterMark,d=UC.codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,R=d.ERR_STREAM_WRITE_AFTER_END,S=d.ERR_UNKNOWN_ENCODING,M=c.errorOrDestroy;function P(){}function z(K,U,T){t=t||VN(),K=K||{},typeof T!=\"boolean\"&&(T=U instanceof t),this.objectMode=!!K.objectMode,T&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=u(this,K,\"writableHighWaterMark\",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var k=K.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=K.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){(function(N,B){var H=N._writableState,W=H.sync,G=H.writecb;if(typeof G!=\"function\")throw new g;if((function(j){j.writing=!1,j.writecb=null,j.length-=j.writelen,j.writelen=0})(H),B)(function(j,te,ne,ae,pe){--te.pendingcb,ne?(Fo.nextTick(pe,ae),Fo.nextTick(q,j,te),j._writableState.errorEmitted=!0,M(j,ae)):(pe(ae),j._writableState.errorEmitted=!0,M(j,ae),q(j,te))})(N,H,W,B,G);else{var O=J(H)||N.destroyed;O||H.corked||H.bufferProcessing||!H.bufferedRequest||oe(N,H),W?Fo.nextTick($,N,H,O,G):$(N,H,O,G)}})(U,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function V(K){var U=this instanceof(t=t||VN());if(!U&&!a.call(V,this))return new V(K);this._writableState=new z(K,this,U),this.writable=!0,K&&(typeof K.write==\"function\"&&(this._write=K.write),typeof K.writev==\"function\"&&(this._writev=K.writev),typeof K.destroy==\"function\"&&(this._destroy=K.destroy),typeof K.final==\"function\"&&(this._final=K.final)),r.call(this)}function Q(K,U,T,k,F,N,B){U.writelen=k,U.writecb=B,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new v(\"write\")):T?K._writev(F,U.onwrite):K._write(F,N,U.onwrite),U.sync=!1}function $(K,U,T,k){T||(function(F,N){N.length===0&&N.needDrain&&(N.needDrain=!1,F.emit(\"drain\"))})(K,U),U.pendingcb--,k(),q(K,U)}function oe(K,U){U.bufferProcessing=!0;var T=U.bufferedRequest;if(K._writev&&T&&T.next){var k=U.bufferedRequestCount,F=new Array(k),N=U.corkedRequestsFree;N.entry=T;for(var B=0,H=!0;T;)F[B]=T,T.isBuf||(H=!1),T=T.next,B+=1;F.allBuffers=H,Q(K,U,!0,U.length,F,\"\",N.finish),U.pendingcb++,U.lastBufferedRequest=null,N.next?(U.corkedRequestsFree=N.next,N.next=null):U.corkedRequestsFree=new e(U),U.bufferedRequestCount=0}else{for(;T;){var W=T.chunk,G=T.encoding,O=T.callback;if(Q(K,U,!1,U.objectMode?1:W.length,W,G,O),T=T.next,U.bufferedRequestCount--,U.writing)break}T===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=T,U.bufferProcessing=!1}function J(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function re(K,U){K._final((function(T){U.pendingcb--,T&&M(K,T),U.prefinished=!0,K.emit(\"prefinish\"),q(K,U)}))}function q(K,U){var T=J(U);if(T&&((function(F,N){N.prefinished||N.finalCalled||(typeof F._final!=\"function\"||N.destroyed?(N.prefinished=!0,F.emit(\"prefinish\")):(N.pendingcb++,N.finalCalled=!0,Fo.nextTick(re,F,N)))})(K,U),U.pendingcb===0&&(U.finished=!0,K.emit(\"finish\"),U.autoDestroy))){var k=K._readableState;(!k||k.autoDestroy&&k.endEmitted)&&K.destroy()}return T}return JU(V,r),z.prototype.getBuffer=function(){for(var K=this.bufferedRequest,U=[];K;)U.push(K),K=K.next;return U},(function(){try{Object.defineProperty(z.prototype,\"buffer\",{get:n.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})(),typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(K){return!!a.call(this,K)||this===V&&K&&K._writableState instanceof z}})):a=function(K){return K instanceof this},V.prototype.pipe=function(){M(this,new y)},V.prototype.write=function(K,U,T){var k,F=this._writableState,N=!1,B=!F.objectMode&&(k=K,o.isBuffer(k)||k instanceof i);return B&&!o.isBuffer(K)&&(K=(function(H){return o.from(H)})(K)),typeof U==\"function\"&&(T=U,U=null),B?U=\"buffer\":U||(U=F.defaultEncoding),typeof T!=\"function\"&&(T=P),F.ending?(function(H,W){var G=new R;M(H,G),Fo.nextTick(W,G)})(this,T):(B||(function(H,W,G,O){var j;return G===null?j=new x:typeof G==\"string\"||W.objectMode||(j=new p(\"chunk\",[\"string\",\"Buffer\"],G)),!j||(M(H,j),Fo.nextTick(O,j),!1)})(this,F,K,T))&&(F.pendingcb++,N=(function(H,W,G,O,j,te){if(!G){var ne=(function(ve,xe,De){return ve.objectMode||ve.decodeStrings===!1||typeof xe!=\"string\"||(xe=o.from(xe,De)),xe})(W,O,j);O!==ne&&(G=!0,j=\"buffer\",O=ne)}var ae=W.objectMode?1:O.length;W.length+=ae;var pe=W.length<W.highWaterMark;if(pe||(W.needDrain=!0),W.writing||W.corked){var ye=W.lastBufferedRequest;W.lastBufferedRequest={chunk:O,encoding:j,isBuf:G,callback:te,next:null},ye?ye.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else Q(H,W,!1,ae,O,j,te);return pe})(this,F,B,K,U,T)),N},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,K.writing||K.corked||K.bufferProcessing||!K.bufferedRequest||oe(this,K))},V.prototype.setDefaultEncoding=function(K){if(typeof K==\"string\"&&(K=K.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((K+\"\").toLowerCase())>-1))throw new S(K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(V.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(K,U,T){T(new h(\"_write()\"))},V.prototype._writev=null,V.prototype.end=function(K,U,T){var k=this._writableState;return typeof K==\"function\"?(T=K,K=null,U=null):typeof U==\"function\"&&(T=U,U=null),K!=null&&this.write(K,U),k.corked&&(k.corked=1,this.uncork()),k.ending||(function(F,N,B){N.ending=!0,q(F,N),B&&(N.finished?Fo.nextTick(B):F.once(\"finish\",B)),N.ended=!0,F.writable=!1})(this,k,T),this},Object.defineProperty(V.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(K){this._writableState&&(this._writableState.destroyed=K)}}),V.prototype.destroy=c.destroy,V.prototype._undestroy=c.undestroy,V.prototype._destroy=function(K,U){U(K)},ege}function VN(){if(BQe)return tge;BQe=1;var e=Object.keys||function(d){var p=[];for(var h in d)p.push(h);return p};tge=a;var t=U$e(),n=B$e();JU(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(d){if(!(this instanceof a))return new a(d);t.call(this,d),n.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",c)))}function c(){this._writableState.ended||Fo.nextTick(u,this)}function u(d){d.end()}return Object.defineProperty(a.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),tge}function PX(e){switch(this.encoding=(e||\"utf8\").toLowerCase().replace(/[-_]/,\"\"),(function(t){if(t&&!a9t(t))throw new Error(\"Unknown encoding: \"+t)})(e),this.encoding){case\"utf8\":this.surrogateSize=3;break;case\"ucs2\":case\"utf16le\":this.surrogateSize=2,this.detectIncompleteChar=c9t;break;case\"base64\":this.surrogateSize=3,this.detectIncompleteChar=u9t;break;default:return void(this.write=s9t)}this.charBuffer=new ut(6),this.charReceived=0,this.charLength=0}function s9t(e){return e.toString(this.encoding)}function c9t(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u9t(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}function l9t(){}function d9t(){if(HQe)return nge;var e;function t(x,R,S){return(R=(function(M){var P=(function(z,V){if(typeof z!=\"object\"||z===null)return z;var Q=z[Symbol.toPrimitive];if(Q!==void 0){var $=Q.call(z,V||\"default\");if(typeof $!=\"object\")return $;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(V===\"string\"?String:Number)(z)})(M,\"string\");return typeof P==\"symbol\"?P:String(P)})(R))in x?Object.defineProperty(x,R,{value:S,enumerable:!0,configurable:!0,writable:!0}):x[R]=S,x}HQe=1;var n=_ye,r=Symbol(\"lastResolve\"),o=Symbol(\"lastReject\"),i=Symbol(\"error\"),a=Symbol(\"ended\"),c=Symbol(\"lastPromise\"),u=Symbol(\"handlePromise\"),d=Symbol(\"stream\");function p(x,R){return{value:x,done:R}}function h(x){var R=x[r];if(R!==null){var S=x[d].read();S!==null&&(x[c]=null,x[r]=null,x[o]=null,R(p(S,!1)))}}function g(x){Fo.nextTick(h,x)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((t(e={get stream(){return this[d]},next:function(){var x=this,R=this[i];if(R!==null)return Promise.reject(R);if(this[a])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(z,V){Fo.nextTick((function(){x[i]?V(x[i]):z(p(void 0,!0))}))}));var S,M=this[c];if(M)S=new Promise((function(z,V){return function(Q,$){z.then((function(){V[a]?Q(p(void 0,!0)):V[u](Q,$)}),$)}})(M,this));else{var P=this[d].read();if(P!==null)return Promise.resolve(p(P,!1));S=new Promise(this[u])}return this[c]=S,S}},Symbol.asyncIterator,(function(){return this})),t(e,\"return\",(function(){var x=this;return new Promise((function(R,S){x[d].destroy(null,(function(M){M?S(M):R(p(void 0,!0))}))}))})),e),y);return nge=function(x){var R,S=Object.create(v,(t(R={},d,{value:x,writable:!0}),t(R,r,{value:null,writable:!0}),t(R,o,{value:null,writable:!0}),t(R,i,{value:null,writable:!0}),t(R,a,{value:x._readableState.endEmitted,writable:!0}),t(R,u,{value:function(M,P){var z=S[d].read();z?(S[c]=null,S[r]=null,S[o]=null,M(p(z,!1))):(S[r]=M,S[o]=P)},writable:!0}),R));return S[c]=null,n(x,(function(M){if(M&&M.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var P=S[o];return P!==null&&(S[c]=null,S[r]=null,S[o]=null,P(M)),void(S[i]=M)}var z=S[r];z!==null&&(S[c]=null,S[r]=null,S[o]=null,z(p(void 0,!0))),S[a]=!0})),x.on(\"readable\",g.bind(null,S)),S},nge}function U$e(){if(WQe)return rge;var e;WQe=1,rge=V,V.ReadableState=z,mye.EventEmitter;var t=function(O,j){return O.listeners(j).length},n=A$e(),r=yye.Buffer,o=(_g!==void 0?_g:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){},i,a=P$e;i=a&&a.debuglog?a.debuglog(\"stream\"):function(){};var c,u,d,p=r9t(),h=M$e(),g=L$e().getHighWaterMark,y=UC.codes,v=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,R=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;JU(V,n);var M=h.errorOrDestroy,P=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function z(O,j,te){e=e||VN(),O=O||{},typeof te!=\"boolean\"&&(te=j instanceof e),this.objectMode=!!O.objectMode,te&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=g(this,O,\"readableHighWaterMark\",te),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(c||(c=UQe.StringDecoder),this.decoder=new c(O.encoding),this.encoding=O.encoding)}function V(O){if(e=e||VN(),!(this instanceof V))return new V(O);var j=this instanceof e;this._readableState=new z(O,this,j),this.readable=!0,O&&(typeof O.read==\"function\"&&(this._read=O.read),typeof O.destroy==\"function\"&&(this._destroy=O.destroy)),n.call(this)}function Q(O,j,te,ne,ae){i(\"readableAddChunk\",j);var pe,ye=O._readableState;if(j===null)ye.reading=!1,(function(ve,xe){if(i(\"onEofChunk\"),!xe.ended){if(xe.decoder){var De=xe.decoder.end();De&&De.length&&(xe.buffer.push(De),xe.length+=xe.objectMode?1:De.length)}xe.ended=!0,xe.sync?re(ve):(xe.needReadable=!1,xe.emittedReadable||(xe.emittedReadable=!0,q(ve)))}})(O,ye);else if(ae||(pe=(function(ve,xe){var De;Ge=xe,r.isBuffer(Ge)||Ge instanceof o||typeof xe==\"string\"||xe===void 0||ve.objectMode||(De=new v(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],xe));var Ge;return De})(ye,j)),pe)M(O,pe);else if(ye.objectMode||j&&j.length>0)if(typeof j==\"string\"||ye.objectMode||Object.getPrototypeOf(j)===r.prototype||(j=(function(ve){return r.from(ve)})(j)),ne)ye.endEmitted?M(O,new S):$(O,ye,j,!0);else if(ye.ended)M(O,new x);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!te?(j=ye.decoder.write(j),ye.objectMode||j.length!==0?$(O,ye,j,!1):K(O,ye)):$(O,ye,j,!1)}else ne||(ye.reading=!1,K(O,ye));return!ye.ended&&(ye.length<ye.highWaterMark||ye.length===0)}function $(O,j,te,ne){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,O.emit(\"data\",te)):(j.length+=j.objectMode?1:te.length,ne?j.buffer.unshift(te):j.buffer.push(te),j.needReadable&&re(O)),K(O,j)}Object.defineProperty(V.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),V.prototype.destroy=h.destroy,V.prototype._undestroy=h.undestroy,V.prototype._destroy=function(O,j){j(O)},V.prototype.push=function(O,j){var te,ne=this._readableState;return ne.objectMode?te=!0:typeof O==\"string\"&&((j=j||ne.defaultEncoding)!==ne.encoding&&(O=r.from(O,j),j=\"\"),te=!0),Q(this,O,j,!1,te)},V.prototype.unshift=function(O){return Q(this,O,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(O){c||(c=UQe.StringDecoder);var j=new c(O);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,ne=\"\";te!==null;)ne+=j.write(te.data),te=te.next;return this._readableState.buffer.clear(),ne!==\"\"&&this._readableState.buffer.push(ne),this._readableState.length=ne.length,this};var oe=1073741824;function J(O,j){return O<=0||j.length===0&&j.ended?0:j.objectMode?1:O!=O?j.flowing&&j.length?j.buffer.head.data.length:j.length:(O>j.highWaterMark&&(j.highWaterMark=(function(te){return te>=oe?te=oe:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te})(O)),O<=j.length?O:j.ended?j.length:(j.needReadable=!0,0))}function re(O){var j=O._readableState;i(\"emitReadable\",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(i(\"emitReadable\",j.flowing),j.emittedReadable=!0,Fo.nextTick(q,O))}function q(O){var j=O._readableState;i(\"emitReadable_\",j.destroyed,j.length,j.ended),j.destroyed||!j.length&&!j.ended||(O.emit(\"readable\"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,N(O)}function K(O,j){j.readingMore||(j.readingMore=!0,Fo.nextTick(U,O,j))}function U(O,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var te=j.length;if(i(\"maybeReadMore read 0\"),O.read(0),te===j.length)break}j.readingMore=!1}function T(O){var j=O._readableState;j.readableListening=O.listenerCount(\"readable\")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:O.listenerCount(\"data\")>0&&O.resume()}function k(O){i(\"readable nexttick read 0\"),O.read(0)}function F(O,j){i(\"resume\",j.reading),j.reading||O.read(0),j.resumeScheduled=!1,O.emit(\"resume\"),N(O),j.flowing&&!j.reading&&O.read(0)}function N(O){var j=O._readableState;for(i(\"flow\",j.flowing);j.flowing&&O.read()!==null;);}function B(O,j){return j.length===0?null:(j.objectMode?te=j.buffer.shift():!O||O>=j.length?(te=j.decoder?j.buffer.join(\"\"):j.buffer.length===1?j.buffer.first():j.buffer.concat(j.length),j.buffer.clear()):te=j.buffer.consume(O,j.decoder),te);var te}function H(O){var j=O._readableState;i(\"endReadable\",j.endEmitted),j.endEmitted||(j.ended=!0,Fo.nextTick(W,j,O))}function W(O,j){if(i(\"endReadableNT\",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,j.readable=!1,j.emit(\"end\"),O.autoDestroy)){var te=j._writableState;(!te||te.autoDestroy&&te.finished)&&j.destroy()}}function G(O,j){for(var te=0,ne=O.length;te<ne;te++)if(O[te]===j)return te;return-1}return V.prototype.read=function(O){i(\"read\",O),O=parseInt(O,10);var j=this._readableState,te=O;if(O!==0&&(j.emittedReadable=!1),O===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return i(\"read: emitReadable\",j.length,j.ended),j.length===0&&j.ended?H(this):re(this),null;if((O=J(O,j))===0&&j.ended)return j.length===0&&H(this),null;var ne,ae=j.needReadable;return i(\"need readable\",ae),(j.length===0||j.length-O<j.highWaterMark)&&i(\"length less than watermark\",ae=!0),j.ended||j.reading?i(\"reading or ended\",ae=!1):ae&&(i(\"do read\"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(O=J(te,j))),(ne=O>0?B(O,j):null)===null?(j.needReadable=j.length<=j.highWaterMark,O=0):(j.length-=O,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),te!==O&&j.ended&&H(this)),ne!==null&&this.emit(\"data\",ne),ne},V.prototype._read=function(O){M(this,new R(\"_read()\"))},V.prototype.pipe=function(O,j){var te=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=O;break;case 1:ne.pipes=[ne.pipes,O];break;default:ne.pipes.push(O)}ne.pipesCount+=1,i(\"pipe count=%d opts=%j\",ne.pipesCount,j);var ae=(!j||j.end!==!1)&&O!==Fo.stdout&&O!==Fo.stderr?ye:lt;function pe(At,ht){i(\"onunpipe\"),At===te&&ht&&ht.hasUnpiped===!1&&(ht.hasUnpiped=!0,i(\"cleanup\"),O.removeListener(\"close\",gt),O.removeListener(\"finish\",Ye),O.removeListener(\"drain\",ve),O.removeListener(\"error\",Ge),O.removeListener(\"unpipe\",pe),te.removeListener(\"end\",ye),te.removeListener(\"end\",lt),te.removeListener(\"data\",De),xe=!0,!ne.awaitDrain||O._writableState&&!O._writableState.needDrain||ve())}function ye(){i(\"onend\"),O.end()}ne.endEmitted?Fo.nextTick(ae):te.once(\"end\",ae),O.on(\"unpipe\",pe);var ve=(function(At){return function(){var ht=At._readableState;i(\"pipeOnDrain\",ht.awaitDrain),ht.awaitDrain&&ht.awaitDrain--,ht.awaitDrain===0&&t(At,\"data\")&&(ht.flowing=!0,N(At))}})(te);O.on(\"drain\",ve);var xe=!1;function De(At){i(\"ondata\");var ht=O.write(At);i(\"dest.write\",ht),ht===!1&&((ne.pipesCount===1&&ne.pipes===O||ne.pipesCount>1&&G(ne.pipes,O)!==-1)&&!xe&&(i(\"false write response, pause\",ne.awaitDrain),ne.awaitDrain++),te.pause())}function Ge(At){i(\"onerror\",At),lt(),O.removeListener(\"error\",Ge),t(O,\"error\")===0&&M(O,At)}function gt(){O.removeListener(\"finish\",Ye),lt()}function Ye(){i(\"onfinish\"),O.removeListener(\"close\",gt),lt()}function lt(){i(\"unpipe\"),te.unpipe(O)}return te.on(\"data\",De),(function(At,ht,et){if(typeof At.prependListener==\"function\")return At.prependListener(ht,et);At._events&&At._events[ht]?Array.isArray(At._events[ht])?At._events[ht].unshift(et):At._events[ht]=[et,At._events[ht]]:At.on(ht,et)})(O,\"error\",Ge),O.once(\"close\",gt),O.once(\"finish\",Ye),O.emit(\"pipe\",te),ne.flowing||(i(\"pipe resume\"),te.resume()),O},V.prototype.unpipe=function(O){var j=this._readableState,te={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return O&&O!==j.pipes||(O||(O=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,O&&O.emit(\"unpipe\",this,te)),this;if(!O){var ne=j.pipes,ae=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var pe=0;pe<ae;pe++)ne[pe].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var ye=G(j.pipes,O);return ye===-1||(j.pipes.splice(ye,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),O.emit(\"unpipe\",this,te)),this},V.prototype.on=function(O,j){var te=n.prototype.on.call(this,O,j),ne=this._readableState;return O===\"data\"?(ne.readableListening=this.listenerCount(\"readable\")>0,ne.flowing!==!1&&this.resume()):O===\"readable\"&&(ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,i(\"on readable\",ne.length,ne.reading),ne.length?re(this):ne.reading||Fo.nextTick(k,this))),te},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(O,j){var te=n.prototype.removeListener.call(this,O,j);return O===\"readable\"&&Fo.nextTick(T,this),te},V.prototype.removeAllListeners=function(O){var j=n.prototype.removeAllListeners.apply(this,arguments);return O!==\"readable\"&&O!==void 0||Fo.nextTick(T,this),j},V.prototype.resume=function(){var O=this._readableState;return O.flowing||(i(\"resume\"),O.flowing=!O.readableListening,(function(j,te){te.resumeScheduled||(te.resumeScheduled=!0,Fo.nextTick(F,j,te))})(this,O)),O.paused=!1,this},V.prototype.pause=function(){return i(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(i(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},V.prototype.wrap=function(O){var j=this,te=this._readableState,ne=!1;for(var ae in O.on(\"end\",(function(){if(i(\"wrapped end\"),te.decoder&&!te.ended){var ye=te.decoder.end();ye&&ye.length&&j.push(ye)}j.push(null)})),O.on(\"data\",(function(ye){i(\"wrapped data\"),te.decoder&&(ye=te.decoder.write(ye)),te.objectMode&&ye==null||(te.objectMode||ye&&ye.length)&&(j.push(ye)||(ne=!0,O.pause()))})),O)this[ae]===void 0&&typeof O[ae]==\"function\"&&(this[ae]=(function(ye){return function(){return O[ye].apply(O,arguments)}})(ae));for(var pe=0;pe<P.length;pe++)O.on(P[pe],this.emit.bind(this,P[pe]));return this._read=function(ye){i(\"wrapped _read\",ye),ne&&(ne=!1,O.resume())},this},typeof Symbol==\"function\"&&(V.prototype[Symbol.asyncIterator]=function(){return u===void 0&&(u=d9t()),u(this)}),Object.defineProperty(V.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),V._fromList=B,Object.defineProperty(V.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==\"function\"&&(V.from=function(O,j){return d===void 0&&(d=jQe?zQe:(jQe=1,zQe=function(){throw new Error(\"Readable.from is not available in the browser\")})),d(V,O,j)}),rge}function g9t(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(\"error\",new p9t);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Dx(e){if(!(this instanceof Dx))return new Dx(e);MX.call(this,e),this._transformState={afterTransform:g9t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",y9t)}function y9t(){var e=this;typeof this._flush!=\"function\"||this._readableState.destroyed?VQe(this,null,null):this._flush((function(t,n){VQe(e,t,n)}))}function VQe(e,t,n){if(t)return e.emit(\"error\",t);if(n!=null&&e.push(n),e._writableState.length)throw new m9t;if(e._transformState.transforming)throw new h9t;return e.push(null)}function VU(e){if(!(this instanceof VU))return new VU(e);H$e.call(this,e)}function GQe(e){if(e)throw e}function qQe(e){e()}function x9t(e,t){return e.pipe(t)}function A9t(e={}){let t={},n=new GN.Duplex({objectMode:!0,read:()=>{},write:function(i,a,c){let u=null;try{i.id?(function(d){let{id:p}=d;if(p===null)return;let h=t[p];if(!h)return void console.warn(`StreamMiddleware - Unknown response id \"${p}\"`);delete t[p],Object.assign(h.res,d),setTimeout(h.end)})(i):(function(d){e?.retryOnMessage&&d.method===e.retryOnMessage&&Object.values(t).forEach((({req:p,retryCount:h=0})=>{if(!p.id)return;if(h>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id \"${p.id}\"`);let g=t[p.id];g&&(g.retryCount=h+1),o(p)})),r.emit(\"notification\",d)})(i)}catch(d){u=d}c(u)}}),r=new g$e;return{events:r,middleware:(i,a,c,u)=>{t[i.id]={req:i,res:a,next:c,end:u},o(i)},stream:n};function o(i){n.push(i)}}function bX(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function YQe(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||\"Function wrapped with `once`\";return t.onceError=n+\" shouldn\\'t be called more than once\",t.called=!1,t}function L9t(e,t){if(t!==\"[Circular]\")return t}function bg(e,t){let[n,r]=V$e(t);return new Tye.EthereumRpcError(e,n||W$e.getMessageFromCode(e),r)}function vU(e,t){let[n,r]=V$e(t);return new Tye.EthereumProviderError(e,n||W$e.getMessageFromCode(e),r)}function V$e(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function z9t({instance:e,msg:t}){return dt(this,void 0,void 0,(function*(){if(e._initialized||(Qe(\"[MetaMaskSDK: connectAndSign()] provider not ready -- wait for init()\"),yield e.init()),Qe(`[MetaMaskSDK: connectAndSign()] activeProvider=${e.activeProvider}`),!e.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");let n=/^0x([0-9A-Fa-f]{2})*$/u.test(t)?t:(function(r){let o;if(ut!==void 0)o=ut.from(r,\"utf8\").toString(\"hex\");else if(typeof TextEncoder<\"u\"){let i=new TextEncoder().encode(r);o=Array.from(i).map((a=>a.toString(16).padStart(2,\"0\"))).join(\"\")}else{if(typeof $f!=\"object\"||!(\"Buffer\"in $f))throw new Error(\"Unable to convert string to hex: No available method.\");o=$f.Buffer.from(r,\"utf8\").toString(\"hex\")}return`0x${o}`})(t);return e.activeProvider.request({method:In.METAMASK_CONNECTWITH,params:[{method:In.PERSONAL_SIGN,params:[n]}]})}))}function XQe(e){var t,n;return dt(this,void 0,void 0,(function*(){Qe(\"[MetaMaskSDK: connectWithExtensionProvider()] \",e),e.sdkProvider=e.activeProvider,e.activeProvider=window.extension,window.ethereum=window.extension;try{let r=yield(t=window.extension)===null||t===void 0?void 0:t.request({method:\"eth_requestAccounts\"});Qe(`[MetaMaskSDK: connectWithExtensionProvider()] accounts=${r}`)}catch(r){return void console.warn(\"[MetaMaskSDK: connectWithExtensionProvider()] can\\'t request accounts error\",r)}localStorage.setItem(h$,\"extension\"),e.extensionActive=!0,e.emit(Xf.ProviderUpdate,A1.EXTENSION),e.options.enableAnalytics&&((n=e.analytics)===null||n===void 0||n.send({event:dc.SDK_USE_EXTENSION}))}))}function m$(e){let t;if(ut!==void 0)t=ut.from(e,\"utf8\").toString(\"base64\");else if(typeof btoa==\"function\")t=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/gu,((n,r)=>String.fromCharCode(parseInt(r,16)))));else{if(typeof $f!=\"object\"||!(\"Buffer\"in $f))throw new Error(\"Unable to base64 encode: No available method.\");t=$f.Buffer.from(e,\"utf8\").toString(\"base64\")}return t}function j9t(e,t,n,r){var o,i,a,c,u,d,p,h,g,y,v,x,R,S,M,P,z,V,Q,$;return dt(this,void 0,void 0,(function*(){let oe=(o=e.state.remote)===null||o===void 0?void 0:o.isReady(),J=(i=e.state.remote)===null||i===void 0?void 0:i.isConnected(),re=(a=e.state.remote)===null||a===void 0?void 0:a.isPaused(),q=E1.getProvider(),K=(c=e.state.remote)===null||c===void 0?void 0:c.getChannelId(),U=(u=e.state.remote)===null||u===void 0?void 0:u.isAuthorized(),{deeplinkProtocol:T}=e.state,{method:k,data:F,triggeredInstaller:N}=(G=>{var O,j,te,ne;let ae;ut.isBuffer(G)?(ae=G.toJSON(),ae._isBuffer=!0):ae=G;let pe=(O=ae?.data)===null||O===void 0?void 0:O.method,ye=!1;return typeof((j=ae?.data)===null||j===void 0?void 0:j.params)==\"object\"&&((ne=(te=ae?.data)===null||te===void 0?void 0:te.params)===null||ne===void 0?void 0:ne.__triggeredInstaller)===!0&&(ye=!0,ae.data.params=ae.data.params.wrappedParams),{method:pe,data:ae,triggeredInstaller:ye}})(t);if(Qe(`[RCPMS: write()] method=\\'${k}\\' isRemoteReady=${oe} channelId=${K} isSocketConnected=${J} isRemotePaused=${re} providerConnected=${q.isConnected()}`,t),!K)return k!==In.METAMASK_GETPROVIDERSTATE&&Qe(`[RCPMS: write()] ${k} --> channelId is undefined`),r(new Error(\"disconnected\"));Qe(`[RCPMS: write()] remote.isPaused()=${(d=e.state.remote)===null||d===void 0?void 0:d.isPaused()} authorized=${U} ready=${oe} socketConnected=${J}`,t);let B=(p=e.state.platformManager)===null||p===void 0?void 0:p.isSecure(),H=(g=(h=e.state.platformManager)===null||h===void 0?void 0:h.isMobileWeb())!==null&&g!==void 0&&g,W=(v=(y=e.state.remote)===null||y===void 0?void 0:y.hasDeeplinkProtocol())!==null&&v!==void 0&&v&&H&&U;try{if(!N){let j=JSON.stringify(F?.data);if(j.length>F9t)return r(new Error(`Message size ${j.length} exceeds maximum allowed size of 1000000 bytes`));(x=e.state.remote)===null||x===void 0||x.sendMessage(F?.data).then((()=>{Qe(`[RCPMS: _write()] ${k} sent successfully`)})).catch((te=>{Qe(\"[RCPMS: _write()] error sending message\",te)}))}if(!B)return Qe(`[RCPMS: _write()] unsecure platform for method ${k} -- return callback`),r();if(N)return Qe(\"[RCPMS: _write()] prevent deeplink -- installation completed separately.\"),r();let G=(M=(S=(R=e.state.remote)===null||R===void 0?void 0:R.getKeyInfo())===null||S===void 0?void 0:S.ecies.public)!==null&&M!==void 0?M:\"\",O=encodeURI(`channelId=${K}&pubkey=${G}&comm=socket&t=d&v=2`);if(W){let j=JSON.stringify(F?.data),te=(P=e.state.remote)===null||P===void 0?void 0:P.encrypt(j);if(!te)return Qe(\"[RCPMS: _write()] error encrypting message\"),r(new Error(\"RemoteCommunicationPostMessageStream - disconnected\"));O+=`&scheme=${T}&rpc=${m$(te)}`}if(!(!((z=e.state.platformManager)===null||z===void 0)&&z.isMetaMaskInstalled()))return Qe(\"[RCPMS: _write()] prevent deeplink until installation is completed.\"),r();p$[k]?(Qe(`[RCPMS: _write()] redirect link for \\'${k}\\' socketConnected=${J} connect?${O}`),(V=e.state.platformManager)===null||V===void 0||V.openDeeplink(`${qU}?${O}`,`${KU}?${O}`,\"_self\")):!((Q=e.state.remote)===null||Q===void 0)&&Q.isPaused()?(Qe(`[RCPMS: _write()] MM is PAUSED! deeplink with connect! targetMethod=${k}`),($=e.state.platformManager)===null||$===void 0||$.openDeeplink(`${qU}?redirect=true&${O}`,`${KU}?redirect=true&${O}`,\"_self\")):Qe(`[RCPMS: _write()] method ${k} doesn\\'t need redirect.`)}catch(G){return Qe(\"[RCPMS: _write()] error sending message\",G),r(new Error(\"RemoteCommunicationPostMessageStream - disconnected\"))}return r()}))}function V9t(e){var t,n,r,o;return dt(this,void 0,void 0,(function*(){let{options:i}=e,a={communicationLayerPreference:(t=i.communicationLayerPreference)!==null&&t!==void 0?t:DS.SOCKET,platformManager:e.platformManager,sdk:e,checkInstallationOnAllCalls:i.checkInstallationOnAllCalls,injectProvider:(n=i.injectProvider)===null||n===void 0||n,shouldShimWeb3:(r=i.shouldShimWeb3)===null||r===void 0||r,extensionOnly:(o=i.extensionOnly)===null||o===void 0||o,installer:e.installer,remoteConnection:e.remoteConnection,debug:e.debug},c=yield W9t(a);e.activeProvider=c,(function(u){var d,p,h,g;(p=(d=u.remoteConnection)===null||d===void 0?void 0:d.getConnector())===null||p===void 0||p.on(Xf.ConnectionStatus,(y=>{u.emit(Xf.ConnectionStatus,y)})),(g=(h=u.remoteConnection)===null||h===void 0?void 0:h.getConnector())===null||g===void 0||g.on(Xf.ServiceStatus,(y=>{u.emit(Xf.ServiceStatus,y)}))})(e)}))}function eJe(e){var t,n,r;let{dappMetadata:o}=e,i=(function({url:p,name:h}){var g;let y=p+h,v=m$(y);if(!localStorage)return\"\";let x=(g=localStorage.getItem(v))!==null&&g!==void 0?g:\"\";if(!x){x=bN();try{localStorage.setItem(v,x)}catch{return\"\"}}return x})({url:(t=o?.url)!==null&&t!==void 0?t:\"no_url\",name:(n=o?.name)!==null&&n!==void 0?n:\"no_name\"}),a=(r=e.platformManager)===null||r===void 0?void 0:r.getPlatformType(),c=a===Wl.DesktopWeb,u=a===Wl.MetaMaskMobileWebview,d=\"N/A\";return c?d=\"extension\":u&&(d=\"mobile\"),{id:i,from:d}}function Y9t({mustBeMetaMask:e,sdkInstance:t}){return dt(this,void 0,void 0,(function*(){if(typeof window>\"u\")throw new Error(\"window not available\");try{let n=yield new Promise(((r,o)=>{let i=setTimeout((()=>{o(new Error(\"eip6963RequestProvider timed out\"))}),500);window.addEventListener(g$.Announce,(a=>{let c=a,{detail:{info:u,provider:d}={}}=c,{name:p,rdns:h,uuid:g}=u??{};B9t.test(g)&&p.startsWith(JQe.NAME)&&JQe.RDNS.includes(h)&&(clearTimeout(i),r(d))})),window.dispatchEvent(new Event(g$.Request))}));return Gge({provider:n,sdkInstance:t})}catch{if(!e&&window.ethereum)return Gge({provider:window.ethereum,sdkInstance:t});throw new Error(\"Provider not found\")}}))}function J9t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){var p;d.done?o(d.value):(p=d.value,p instanceof n?p:new n((function(h){h(p)}))).then(a,c)}u((r=r.apply(e,[])).next())}))}function X9t(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==\"function\"&&(i[Symbol.iterator]=function(){return this}),i;function c(u){return function(d){return(function(p){if(n)throw new TypeError(\"Generator is already executing.\");for(;a;)try{if(n=1,r&&(o=2&p[0]?r.return:p[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,p[1])).done)return o;switch(r=0,o&&(p=[2&p[0],o.value]),p[0]){case 0:case 1:o=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,r=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||p[0]!==6&&p[0]!==2)){a=0;continue}if(p[0]===3&&(!o||p[1]>o[0]&&p[1]<o[3])){a.label=p[1];break}if(p[0]===6&&a.label<o[1]){a.label=o[1],o=p;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(p);break}o[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(h){p=[6,h],r=0}finally{n=o=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}})([u,d])}}}function eMt(e,{wait:t=!1}){return dt(this,void 0,void 0,(function*(){return Qe(`[MetamaskInstaller: startInstaller()] wait=${t}`),t&&(yield Z$e(1e3)),yield e.checkInstallation()}))}function Q$e(e,t){var n,r,o,i;e.connector||(Qe(\"[RemoteConnection: initializeConnector()] initialize connector\"),e.connector=new Cge({platformType:t.platformManager.getPlatformType(),communicationLayerPreference:t.communicationLayerPreference,transports:t.transports,dappMetadata:Object.assign(Object.assign({},t.dappMetadata),{source:t._source}),analytics:t.enableAnalytics,communicationServerUrl:t.communicationServerUrl,sdkVersion:FC.version,context:\"dapp\",ecies:t.ecies,storage:t.storage,logging:t.logging}),t.timer&&(Qe(\"[RemoteConnection: initializeConnector()] reset background timer\",t.timer),(r=(n=t.timer)===null||n===void 0?void 0:n.stopBackgroundTimer)===null||r===void 0||r.call(n),(i=(o=t.timer)===null||o===void 0?void 0:o.runBackgroundTimer)===null||i===void 0||i.call(o,(()=>!1),1e4)))}function Kge(e){e.listeners.forEach((({event:t,handler:n})=>{var r;(r=e.connector)===null||r===void 0||r.off(t,n)})),e.listeners=[]}function rMt(e,t,n){return dt(this,void 0,void 0,(function*(){return new Promise(((r,o)=>{if(!e.connector)return void o(new Error(\"No connector available\"));Qe(\"[RemoteConnection: connectWithModalInstaller()]\",{state:e,options:t,linkParams:n});let i=`${e.useDeeplink?KU:qU}?${n}`;(function(a,c,u){var d,p,h,g;a.installModal=(p=(d=c.modals).install)===null||p===void 0?void 0:p.call(d,{link:u,preferDesktop:a.preferDesktop,installer:c.getMetaMaskInstaller(),terminate:()=>{Qe(\"[RemoteConnection: showInstallModal() => terminate()] terminate connection\"),c.sdk.terminate().catch((y=>{console.warn(\"[MMSDK] failed to terminate connection\",y)}))},debug:a.developerMode,connectWithExtension:()=>{var y;return(y=c.connectWithExtensionProvider)===null||y===void 0||y.call(c),!1},onAnalyticsEvent:({event:y,params:v})=>{var x,R,S;let M=Object.assign(Object.assign({},v),{sdkVersion:c.sdk.getVersion(),dappId:(x=c.dappMetadata)===null||x===void 0?void 0:x.name,source:c._source,url:(R=c.dappMetadata)===null||R===void 0?void 0:R.url});(S=a.analytics)===null||S===void 0||S.send({event:y,params:M})}}),(g=(h=a.installModal)===null||h===void 0?void 0:h.mount)===null||g===void 0||g.call(h,u)})(e,t,i),t.sdk.once(Et.PROVIDER_UPDATE,(a=>dt(this,void 0,void 0,(function*(){Qe(\"[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise\"),a!==A1.TERMINATE?o(a):o({code:4001,message:\"User rejected the request.\"})})))),e.connector.once(Et.AUTHORIZED,(()=>{r()})),e.connector.once(Et.REJECTED,(()=>{o(Et.REJECTED)})),e.connector.once(Et.CLIENTS_READY,(()=>dt(this,void 0,void 0,(function*(){Qe(\"[RemoteConnection: connectWithModalInstaller()] once clients_ready -- resolving startConnection promise\"),r()}))))}))}))}function J$e(e,t){function n(r,o){var i;(i=e.connector)===null||i===void 0||i.on(r,o),e.listeners.push({event:r,handler:o})}e.connector&&(Kge(e),n(Et.WALLET_INIT,(({accounts:r,chainId:o})=>dt(this,void 0,void 0,(function*(){Qe(`[RemoteConnection: setupListeners() => EventType.WALLET_INIT] \\'wallet_init\\' accounts=${r} chainId=${o}`);let i=E1.getProvider();i._setConnected();let a={accounts:r,chainId:o,isUnlocked:!1};i._initializeState(a),i.emit(\"chainChanged\",o),i.emit(\"accountsChanged\",r)})))),n(Et.AUTHORIZED,(()=>dt(this,void 0,void 0,(function*(){var r,o,i,a;try{Qe(\"[RemoteConnection: setupListeners() => EventType.AUTHORIZED] \\'authorized\\' closing modals\",e.pendingModal,e.installModal);let c=E1.getProvider();c._setConnected(),(o=(r=e.pendingModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r),(a=(i=e.installModal)===null||i===void 0?void 0:i.unmount)===null||a===void 0||a.call(i,!1),e.otpAnswer=void 0,e.authorized=!0,Qe(\"[RemoteConnection: setupListeners() => EventType.AUTHORIZED] \\'authorized\\' provider.state\",c.getState()),yield c.forceInitializeState()}catch{}})))),n(Et.TERMINATE,(()=>{var r,o,i,a,c;(o=(r=e.pendingModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r),(a=(i=e.installModal)===null||i===void 0?void 0:i.unmount)===null||a===void 0||a.call(i,!0),e.pendingModal=void 0,e.installModal=void 0,e.otpAnswer=void 0,(c=e.connector)===null||c===void 0||c.disconnect({terminate:!0}),e.authorized=!1,E1.getProvider().handleDisconnect({terminate:!0}),Kge(e),Qe(\"[RemoteConnection: setupListeners()] All listeners cleaned up\")})))}function oMt(e,t,{initialCheck:n,connectWith:r}={}){var o,i,a,c,u,d,p,h,g,y,v,x,R,S,M,P,z,V,Q;return dt(this,void 0,void 0,(function*(){try{if(Q$e(e,t),!e.connector)throw new Error(\"no connector defined\");J$e(e);let $=E1.getProvider();e.authorized=!1,$.emit(\"connecting\");let oe=yield(o=e.connector)===null||o===void 0?void 0:o.originatorSessionConnect();Qe(`[RemoteConnection: startConnection()] after originatorSessionConnect initialCheck=${n}`,oe);let J=(i=oe?.channelId)!==null&&i!==void 0?i:\"\",re=(c=(a=e.connector.getKeyInfo())===null||a===void 0?void 0:a.ecies.public)!==null&&c!==void 0?c:\"\",q=(d=(u=e.connector.getKeyInfo())===null||u===void 0?void 0:u.ecies.private)!==null&&d!==void 0?d:\"\";if(n&&!oe)return Promise.resolve();if(!oe&&!n){let ne=yield e.connector.generateChannelIdConnect();J=(p=ne.channelId)!==null&&p!==void 0?p:\"\",re=(h=ne.pubKey)!==null&&h!==void 0?h:\"\",q=(g=ne.privKey)!==null&&g!==void 0?g:\"\";let ae=Date.now();(y=e.connector.state.storageManager)===null||y===void 0||y.persistChannelConfig({channelId:J,localKey:q,lastActive:ae,validUntil:ae+WN})}if(n&&oe?.channelId)return!((v=e.connector)===null||v===void 0)&&v.isConnected()||(Qe(`[RemoteConnection: startConnection()] reconnecting to channel initialCheck=${n}`,oe),yield(x=e.connector)===null||x===void 0?void 0:x.connectToChannel({channelId:J})),Promise.resolve();oe&&!(!((R=e.connector)===null||R===void 0)&&R.isConnected())&&(Qe(\"[RemoteConnection: startConnection()] reconnecting to channel\",oe),yield(S=e.connector)===null||S===void 0?void 0:S.connectToChannel({channelId:J}));let K=!((M=e.platformManager)===null||M===void 0)&&M.isSecure()?\"\":\"&t=q\",U=FC.version,{iconUrl:T,name:k,url:F,scheme:N}=t.dappMetadata||{},B=(P=e.platformManager)===null||P===void 0?void 0:P.getPlatformType(),H=\"N/A\";typeof window<\"u\"&&window.location&&window.location.hostname?H=window.location.hostname:k!==void 0?H=k:F!==void 0&&(H=F);let W={url:F??\"\",title:k??\"\",icon:T,scheme:N??\"\",apiVersion:U,dappId:H||F||\"N/A\",platform:B??\"\",source:(z=t._source)!==null&&z!==void 0?z:\"\"},G=m$(JSON.stringify(W)),O=`channelId=${J}&v=2&comm=${(V=e.communicationLayerPreference)!==null&&V!==void 0?V:\"\"}&pubkey=${re}${K}&originatorInfo=${G}`;if(r){O+=`&rpc=${m$(JSON.stringify(r))}`;let ne=e.connector.getRPCMethodTracker();ne&&(ne[`${r.id}`]=Object.assign(Object.assign({},r),{id:`${r.id}`,timestamp:Date.now()}))}let j=encodeURI(O),te=`${e.useDeeplink?KU:qU}?${O}`;return e.qrcodeLink=te,e.developerMode&&Qe(`[RemoteConnection: startConnection()] qrcodeLink=${j}`),$.emit(\"display_uri\",te),!((Q=e.platformManager)===null||Q===void 0)&&Q.isSecure()?(yield(function(ne,ae){var pe,ye;return dt(this,void 0,void 0,(function*(){let ve=`${qU}?${ae}`,xe=`${KU}?${ae}`;(ye=(pe=ne.platformManager)===null||pe===void 0?void 0:pe.openDeeplink)===null||ye===void 0||ye.call(pe,ve,xe,\"_self\")}))})(e,j),new Promise(((ne,ae)=>{var pe,ye,ve;!((pe=e.connector)===null||pe===void 0)&&pe.isAuthorized()?ne():((ye=e.connector)===null||ye===void 0||ye.once(Et.AUTHORIZED,(()=>{ne()})),(ve=e.connector)===null||ve===void 0||ve.once(Et.REJECTED,(()=>{ae(Et.REJECTED)})))}))):rMt(e,t,j)}catch($){throw console.error(\"[startConnection] error\",$),$}}))}function iMt(e){var t,n,r,o,i,a,c,u,d,p,h;return dt(this,void 0,void 0,(function*(){let{options:g}=e;if(g.logging=(t=g.logging)!==null&&t!==void 0?t:{},g.communicationLayerPreference=(n=g.communicationLayerPreference)!==null&&n!==void 0?n:DS.SOCKET,g.enableDebug!==void 0&&(jd.default.enable(\"MM_SDK\"),console.warn(\"enableDebug is removed. Please use enableAnalytics instead.\")),g.enableAnalytics=(r=g.enableAnalytics)===null||r===void 0||r,g.injectProvider=(o=g.injectProvider)===null||o===void 0||o,g.shouldShimWeb3=(i=g.shouldShimWeb3)===null||i===void 0||i,g.extensionOnly=(a=g.extensionOnly)===null||a===void 0||a,g.useDeeplink=(c=g.useDeeplink)===null||c===void 0||c,g.storage=(u=g.storage)!==null&&u!==void 0?u:{enabled:!0},g.headless){(0,jd.default)(\"[MetaMaskSDK: performSDKInitialization()] headless mode enabled\");let M=()=>{},P={install:()=>({mount:M,unmount:M})},z={installer:M};g.modals=P,g.ui=z}let y=((d=g.logging)===null||d===void 0?void 0:d.developerMode)===!0;e.debug=((p=g.logging)===null||p===void 0?void 0:p.sdk)||y,Qe(\"[MetaMaskSDK: performSDKInitialization()] options\",e.options);let v=Object.assign({},g.logging);y&&(v.sdk=!0,v.eciesLayer=!0,v.keyExchangeLayer=!0,v.remoteLayer=!0,v.serviceLayer=!0,v.plaintext=!0),yield(function(M){var P;return dt(this,void 0,void 0,(function*(){let{options:z}=M;M.platformManager=new d$({useDeepLink:(P=z.useDeeplink)!==null&&P!==void 0&&P,preferredOpenLink:z.openDeeplink,debug:M.debug})}))})(e),yield(function(M){var P,z,V,Q,$,oe,J,re,q;return dt(this,void 0,void 0,(function*(){let{options:K}=M,U=(P=M.platformManager)===null||P===void 0?void 0:P.getPlatformType();M.analytics=new Vge({serverUrl:(z=K.communicationServerUrl)!==null&&z!==void 0?z:MC,enabled:K.enableAnalytics,originatorInfo:{url:(V=K.dappMetadata.url)!==null&&V!==void 0?V:\"\",title:(Q=K.dappMetadata.name)!==null&&Q!==void 0?Q:\"\",dappId:typeof window>\"u\"||window.location===void 0?(re=(oe=($=K.dappMetadata)===null||$===void 0?void 0:$.name)!==null&&oe!==void 0?oe:(J=K.dappMetadata)===null||J===void 0?void 0:J.url)!==null&&re!==void 0?re:\"N/A\":window.location.hostname,platform:U??\"\",source:(q=K._source)!==null&&q!==void 0?q:\"\"}})}))})(e),yield(function(M){var P;return dt(this,void 0,void 0,(function*(){let{options:z}=M;((P=z.storage)===null||P===void 0?void 0:P.enabled)!==!0||z.storage.storageManager||(z.storage.storageManager=yield K$e(z.storage))}))})(e),yield(function(M){return dt(this,void 0,void 0,(function*(){let{options:P}=M,z=/^(http|https):\\\\/\\\\/[^\\\\s]*$/;if(P.dappMetadata){P.dappMetadata.iconUrl&&!z.test(P.dappMetadata.iconUrl)&&(console.warn(\"Invalid dappMetadata.iconUrl: URL must start with http:// or https://\"),P.dappMetadata.iconUrl=void 0),P.dappMetadata.base64Icon&&P.dappMetadata.base64Icon.length>K9t&&(console.warn(\"Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters\"),P.dappMetadata.base64Icon=void 0),P.dappMetadata.url&&!z.test(P.dappMetadata.url)&&console.warn(\"Invalid dappMetadata.url: URL must start with http:// or https://\");let V=q9t();if(V&&!P.dappMetadata.iconUrl&&!P.dappMetadata.base64Icon){let Q=`${window.location.protocol}//${window.location.host}${V}`;P.dappMetadata.iconUrl=Q}}M.dappMetadata=P.dappMetadata}))})(e),yield Z9t(e),yield Q9t(e);let{metamaskBrowserExtension:x,preferExtension:R,shouldReturn:S}=yield(function(M){var P,z,V,Q;return dt(this,void 0,void 0,(function*(){let{options:$}=M,oe,J=!1,re=!1;if(typeof window<\"u\"&&window.ethereum&&!(!((P=M.platformManager)===null||P===void 0)&&P.isMetaMaskMobileWebView())){J=localStorage.getItem(h$)===\"extension\";try{oe=yield Y9t({mustBeMetaMask:!0,sdkInstance:M}),window.extension=oe,oe.on(kv.CHAIN_CHANGED,(q=>{Qe(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${q}`),M.sdkProvider&&M.getMobileProvider().emit(kv.CHAIN_CHANGED,q)})),oe.on(kv.ACCOUNTS_CHANGED,(q=>dt(this,void 0,void 0,(function*(){var K;Qe(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE accountsChanged accounts=${q}`);let U=!!M.sdkProvider,T=!!M.extensionActive;if(U&&M.getMobileProvider().emit(kv.ACCOUNTS_CHANGED,q),T&&q?.length===0&&(yield(K=M.getProvider())===null||K===void 0?void 0:K.request({method:In.WALLET_GETPERMISSIONS,params:[]})).length===0)try{yield M.terminate()}catch(k){Qe(\"[MetaMaskSDK: setupExtensionPreferences()] error terminating on permissions revoked\",k)}})))),oe.on(kv.DISCONNECT,(q=>{Qe(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${q}`),M.sdkProvider&&M.getMobileProvider().emit(kv.DISCONNECT,q)})),oe.on(kv.CONNECT,(q=>{Qe(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${q}`),M.sdkProvider&&M.getMobileProvider().emit(kv.CONNECT,q)})),oe.on(kv.CONNECTED,(q=>{Qe(\"[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected\",q),M.sdkProvider&&M.getMobileProvider().emit(kv.CONNECTED,q)}))}catch{window.extension=void 0}}else!((z=M.platformManager)===null||z===void 0)&&z.isMetaMaskMobileWebView()&&((V=M.analytics)===null||V===void 0||V.send({event:dc.SDK_USE_INAPP_BROWSER}),M.activeProvider=Gge({provider:window.ethereum,sdkInstance:M}),M._initialized=!0,re=!0);return oe&&$.extensionOnly&&(Qe(\"[MetaMaskSDK: setupExtensionPreferences()] EXTENSION ONLY --- prevent sdk initialization\"),(Q=M.analytics)===null||Q===void 0||Q.send({event:dc.SDK_USE_EXTENSION}),M.activeProvider=oe,M.extensionActive=!0,M.extension=oe,M._initialized=!0,re=!0),{preferExtension:J,shouldReturn:re,metamaskBrowserExtension:oe}}))})(e);if(S)Qe(\"[MetaMaskSDK: performSDKInitialization()] shouldReturn=true --- prevent sdk initialization\");else{yield(function(M,P){var z,V,Q,$,oe;return dt(this,void 0,void 0,(function*(){let{options:J}=M,re=Object.assign({},J.logging);M.remoteConnection=new Yge({preferDesktop:(z=J.preferDesktop)!==null&&z!==void 0&&z,communicationLayerPreference:(V=J.communicationLayerPreference)!==null&&V!==void 0?V:DS.SOCKET,analytics:M.analytics,dappMetadata:J.dappMetadata,_source:J._source,enableAnalytics:(Q=J.enableAnalytics)===null||Q===void 0||Q,timer:J.timer,sdk:M,platformManager:M.platformManager,transports:J.transports,communicationServerUrl:J.communicationServerUrl,storage:($=J.storage)!==null&&$!==void 0?$:{enabled:!0},getMetaMaskInstaller:()=>{if(!M.installer)throw new Error(\"Invalid SDK status -- installer not initialized\");return M.installer},logging:re,connectWithExtensionProvider:P===void 0?void 0:()=>XQe(M),modals:Object.assign(Object.assign({},J.modals),{onPendingModalDisconnect:M.terminate.bind(M)})}),yield M.remoteConnection.initRemoteCommunication({sdkInstance:M}),M.installer=new qge({remote:M.remoteConnection,preferDesktop:(oe=J.preferDesktop)!==null&&oe!==void 0&&oe,platformManager:M.platformManager,debug:M.debug})}))})(e,x),yield V9t(e),yield(function(M,P){var z,V;return dt(this,void 0,void 0,(function*(){let{options:Q}=M;P?(Qe(\"[MetaMaskSDK: handleAutoAndExtensionConnections()] preferExtension is detected -- connect with it.\"),(z=M.analytics)===null||z===void 0||z.send({event:dc.SDK_EXTENSION_UTILIZED}),XQe(M).catch(($=>{console.warn(\"Can\\'t connect with MetaMask extension...\",$),localStorage.removeItem(h$)}))):Q.checkInstallationImmediately&&(!((V=M.platformManager)===null||V===void 0)&&V.isDesktopWeb()?(Qe(\"[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately\"),M.connect().catch(($=>{Qe(`[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- error on autoconnect _err=${$}`)}))):console.warn(\"[handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- only for web desktop\")),M._initialized=!0}))})(e,R);try{yield(h=e.remoteConnection)===null||h===void 0?void 0:h.startConnection({initialCheck:!0})}catch(M){console.error(\"[MetaMaskSDK: setupRemoteConnectionAndInstaller()] Error while checking installation\",M)}e.emit(Xf.ProviderUpdate,A1.INITIALIZED)}}))}function tet(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector(\\'meta[name=\"csp-nonce\"]\\'))==null?void 0:n.getAttribute(\"content\"))!=null?r:void 0}function hMt(e,t){if(e.isOk){let n=t(e.value);return n instanceof Promise?n.then((r=>Xge(r))):Xge(n)}if(e.isErr){let n=e.value;return net(n)}throw\"should never get here\"}function gJe(e){return e.includes(\"ref\")?[...e.filter((t=>t!==\"ref\")),\"ref\"]:e}function Lye({version:e}){return we(\"div\",{style:{textAlign:\"center\",color:\"#BBC0C5\",fontSize:\"12\"}},\"SDK Version \",e?`v${e}`:\"unknown\")}function SC(e,t){return e.toString(2).padStart(t,\"0\")}function wJe(e,t){let n=e%t;return n>=0?n:t+n}function Sm(e,t){return new Array(e).fill(t)}function xJe(...e){let t=0;for(let r of e)t=Math.max(t,r.length);let n=[];for(let r=0;r<t;r++)for(let o of e)r>=o.length||n.push(o[r]);return new Uint8Array(n)}function EJe(e,t,n){if(n<0||n+t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[n+r])return!1;return!0}function AJe(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=\"string\")throw new Error(\"alphabet.decode input should be array of strings\");return t.map((n=>{if(typeof n!=\"string\")throw new Error(`alphabet.decode: not string element=${n}`);let r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: \"${n}\". Allowed: ${e}`);return r}))},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=\"number\")throw new Error(\"alphabet.encode input should be an array of numbers\");return t.map((n=>{if((function(r){if(!Number.isSafeInteger(r))throw new Error(`Wrong integer: ${r}`)})(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]}))}}}function jMt(e,t){let{words:n,shortBlocks:r,numBlocks:o,blockLen:i,total:a}=zd.capacity(e,t),c=(u=n,{encode(d){let p=cn.divisorPoly(u),h=Array.from(d);return h.push(...p.slice(0,-1).fill(0)),Uint8Array.from(cn.remainderPoly(h,p))},decode(d){let p=d.slice(),h=cn.polynomial(Array.from(d)),g=Sm(u,0),y=!1;for(let P=0;P<u;P++){let z=cn.evalPoly(h,cn.exp(P));g[g.length-1-P]=z,z!==0&&(y=!0)}if(!y)return p;g=cn.polynomial(g);let v=cn.monomial(u,1),[x,R]=cn.euclidian(v,g,u),S=Sm(cn.degree(x),0),M=0;for(let P=1;P<256&&M<S.length;P++)cn.evalPoly(x,P)===0&&(S[M++]=cn.inv(P));if(M!==S.length)throw new Error(\"RS.decode: wrong errors number\");for(let P=0;P<S.length;P++){let z=p.length-1-cn.log(S[P]);if(z<0)throw new Error(\"RS.decode: wrong error location\");let V=cn.inv(S[P]),Q=1;for(let $=0;$<S.length;$++)P!==$&&(Q=cn.mul(Q,cn.add(1,cn.mul(S[$],V))));p[z]=cn.add(p[z],cn.mul(cn.evalPoly(R,V),cn.inv(Q)))}return p}});var u;return{encode(d){let p=[],h=[];for(let x=0;x<o;x++){let R=i+(x<r?0:1);p.push(d.subarray(0,R)),h.push(c.encode(d.subarray(0,R))),d=d.subarray(R)}let g=xJe(...p),y=xJe(...h),v=new Uint8Array(g.length+y.length);return v.set(g),v.set(y,g.length),v},decode(d){if(d.length!==a)throw new Error(`interleave.decode: len(data)=${d.length}, total=${a}`);let p=[];for(let y=0;y<o;y++){let v=y<r;p.push(new Uint8Array(n+i+(v?0:1)))}let h=0;for(let y=0;y<i;y++)for(let v=0;v<o;v++)p[v][y]=d[h++];for(let y=r;y<o;y++)p[y][i]=d[h++];for(let y=i;y<i+n;y++)for(let v=0;v<o;v++){let x=v<r;p[v][y+(x?0:1)]=d[h++]}let g=[];for(let y of p)g.push(...Array.from(c.decode(y)).slice(0,-n));return Uint8Array.from(g)}}}function TJe(e,t,n,r){let o=\"\",i=n.length;if(r===\"numeric\"){let h=zd.alphabet.numeric.decode(n.split(\"\")),g=h.length;for(let y=0;y<g-2;y+=3)o+=SC(100*h[y]+10*h[y+1]+h[y+2],10);g%3==1?o+=SC(h[g-1],4):g%3==2&&(o+=SC(10*h[g-2]+h[g-1],7))}else if(r===\"alphanumeric\"){let h=zd.alphabet.alphanumerc.decode(n.split(\"\")),g=h.length;for(let y=0;y<g-1;y+=2)o+=SC(45*h[y]+h[y+1],11);g%2==1&&(o+=SC(h[g-1],6))}else{if(r!==\"byte\")throw new Error(\"encode: unsupported type\");{let h=(function(g){if(typeof g!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof g);return new Uint8Array(new TextEncoder().encode(g))})(n);i=h.length,o=Array.from(h).map((g=>SC(g,8))).join(\"\")}}let{capacity:a}=zd.capacity(e,t),c=SC(i,zd.lengthBits(e,r)),u=zd.modeBits[r]+c+o;if(u.length>a)throw new Error(\"Capacity overflow\");u+=\"0\".repeat(Math.min(4,Math.max(0,a-u.length))),u.length%8&&(u+=\"0\".repeat(8-u.length%8));let d=\"1110110000010001\";for(let h=0;u.length!==a;h++)u+=d[h%16];let p=Uint8Array.from(u.match(/(.{8})/g).map((h=>+`0b${h}`)));return jMt(e,t).encode(p)}function CJe(e,t,n,r,o=!1){let i=(function(u,d,p,h=!1){let g=zd.size.encode(u),y=new NU(g+2),v=new NU(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);y=y.embed(0,v).embed({x:-v.width,y:0},v).embed({x:0,y:-v.height},v),y=y.rectSlice(1,g);let x=new NU(1).rect(0,1,!0).border(1,!1).border(1,!0),R=zd.alignmentPatterns(u);for(let S of R)for(let M of R)y.data[S][M]===void 0&&y.embed({x:M-2,y:S-2},x);y=y.hLine({x:0,y:6},1/0,(({x:S},M)=>M===void 0?S%2==0:M)).vLine({x:6,y:0},1/0,(({y:S},M)=>M===void 0?S%2==0:M));{let S=zd.formatBits(d,p),M=P=>!h&&(S>>P&1)==1;for(let P=0;P<6;P++)y.data[P][8]=M(P);for(let P=6;P<8;P++)y.data[P+1][8]=M(P);for(let P=8;P<15;P++)y.data[g-15+P][8]=M(P);for(let P=0;P<8;P++)y.data[8][g-P-1]=M(P);for(let P=8;P<9;P++)y.data[8][15-P-1+1]=M(P);for(let P=9;P<15;P++)y.data[8][15-P-1]=M(P);y.data[g-8][8]=!h}if(u>=7){let S=zd.versionBits(u);for(let M=0;M<18;M+=1){let P=!h&&(S>>M&1)==1,z=Math.floor(M/3),V=M%3+g-8-3;y.data[z][V]=P,y.data[V][z]=P}}return y})(e,t,r,o),a=0,c=8*n.length;if((function(u,d,p){let h=u.height,g=eye[d],y=-1,v=h-1;for(let x=h-1;x>0;x-=2){for(x==6&&(x=5);;v+=y){for(let R=0;R<2;R+=1){let S=x-R;u.data[v][S]===void 0&&p(S,v,g(S,v))}if(v+y<0||v+y>=h)break}y=-y}})(i,r,((u,d,p)=>{let h=!1;a<c&&(h=(n[a>>>3]>>(7-a&7)&1)!=0,a++),i.data[d][u]=h!==p})),a!==c)throw new Error(\"QR: bytes left after draw\");return i}function WMt(e){let t=e.inverse(),n=y=>{let v=0;for(let x,R=0,S=1;R<y.length;R++)x===y[R]&&(S++,R!==y.length-1)||(S>=5&&(v+=S-5+3),x=y[R],S=1);return v},r=0;e.data.forEach((y=>r+=n(y))),t.data.forEach((y=>r+=n(y)));let o=0,i=e.data,a=e.width-1,c=e.height-1;for(let y=0;y<a;y++)for(let v=0;v<c;v++){let x=y+1,R=v+1;i[y][v]===i[x][v]&&i[x][v]===i[y][R]&&i[x][v]===i[x][R]&&(o+=3)}let u=y=>{let v=[!0,!1,!0,!0,!0,!1,!0],x=[!1,!1,!1,!1],R=[...v,...x],S=[...x,...v],M=0;for(let P=0;P<y.length;P++)EJe(y,R,P)&&(M+=40),EJe(y,S,P)&&(M+=40);return M},d=0;for(let y of e.data)d+=u(y);for(let y of t.data)d+=u(y);let p=0;e.rectRead(0,1/0,((y,v)=>p+=v?1:0));let h=p/(e.height*e.width)*100,g=10*Math.floor(Math.abs(h-50)/5);return r+o+d+g}function pet(e,t=\"raw\",n={}){let r=n.ecc!==void 0?n.ecc:\"medium\";(function(p){if(!_Je.includes(p))throw new Error(`Invalid error correction mode=${p}. Expected: ${_Je}`)})(r);let o=n.encoding!==void 0?n.encoding:(function(p){let h=\"numeric\";for(let g of p)if(!zd.alphabet.numeric.has(g)&&(h=\"alphanumeric\",!zd.alphabet.alphanumerc.has(g)))return\"byte\";return h})(e);(function(p){if(!SJe.includes(p))throw new Error(`Encoding: invalid mode=${p}. Expected: ${SJe}`);if(p===\"kanji\"||p===\"eci\")throw new Error(`Encoding: ${p} is not supported (yet?).`)})(o),n.mask!==void 0&&(function(p){if(![0,1,2,3,4,5,6,7].includes(p)||!eye[p])throw new Error(`Invalid mask=${p}. Expected number [0..7]`)})(n.mask);let i,a=n.version,c=new Error(\"Unknown error\");if(a!==void 0)(function(p){if(!Number.isSafeInteger(p)||p<1||p>40)throw new Error(`Invalid version=${p}. Expected number [1..40]`)})(a),i=TJe(a,r,e,o);else for(let p=1;p<=40;p++)try{i=TJe(p,r,e,o),a=p;break}catch(h){c=h}if(!a||!i)throw c;let u=(function(p,h,g,y){if(y===void 0){let v=(function(){let x,R=1/0;return{add(S,M){S>=R||(x=M,R=S)},get:()=>x,score:()=>R}})();for(let x=0;x<eye.length;x++)v.add(WMt(CJe(p,h,g,x,!0)),x);y=v.get()}if(y===void 0)throw new Error(\"Cannot find mask\");return CJe(p,h,g,y)})(a,r,i,n.mask);u.assertDrawn();let d=n.border===void 0?2:n.border;if(!Number.isSafeInteger(d))throw new Error(\"Wrong border type=\"+typeof d);if(u=u.border(d,!1),n.scale!==void 0&&(u=u.scale(n.scale)),t===\"raw\")return u.data;if(t===\"ascii\")return u.toASCII();if(t===\"svg\")return u.toSVG();if(t===\"gif\")return u.toGIF();if(t===\"term\")return u.toTerm();throw new Error(`Unknown output: ${t}`)}var tye,jd,qN,$f,Mv,xg,n7t,nye,o7t,OJe,i7t,mZe,y7t,v7t,_g,IN,Cm,Hd,w7t,MU,Yu,T0e,zX,x$,VJe,iye,rX,GJe,Zu,Bx,_m,x7t,jx,oX,C0e,mU,mr,iX,dge,XJe,$Je,eXe,tXe,nXe,rXe,oXe,iXe,aXe,sXe,cXe,uXe,lXe,fXe,pXe,hXe,mXe,gXe,yXe,E7t,A7t,Br,aX,_7t,S7t,hS,mS,PC,WX,VX,GX,fge,kN,bi,Kr,pge,xX,T7t,C7t,Ox,O0e,k0e,_Ze,R7t,xm,Qu,va,RS,I7t,hge,SZe,TZe,O7t,NZe,PZe,k7t,P0e,M0e,MZe,D0e,DZe,ch,Em,b1,uh,cX,N7t,P7t,AS,M7t,Fd,D7t,gge,LZe,gS,SN,B0e,EXe,Ux,U0e,vg,B7t,yS,bS,LU,yge,AX,cye,uye,U7t,BZe,F7t,bge,AXe,NN,vge,FZe,_Xe,F0e,HZe,zZe,UN,Us,RC,IC,Qf,Nx,lye,Lv,Eg,YX,wge,ko,xge,wt,lh,uX,H7t,Ege,z7t,j7t,H0e,ZX,fye,IXe,W7t,lX,QX,KZe,YZe,DXe,JX,LXe,DN,kx,wg,BXe,V7t,G7t,q7t,UXe,dX,K7t,ZZe,QZe,_U,fX,wU,zl,Age,TN,JZe,gU,Y7t,FU,XZe,pX,Z7t,$Ze,CN,Q7t,J7t,HXe,zXe,jXe,WXe,Ke,yU,hX,j0e,zx,SU,MS,MC,X7t,WN,$7t,ePt,Ju,Et,XX,yi,ts,dc,RN,_ge,_X,HN,eQe,Sge,LN,qXe,tPt,nPt,Tge,DS,Wl,nQe,Cge,pPt,hPt,Fs,YXe,oQe,pye,IS,w1,mX,Zf,SS,iQe,$X,Rge,Tm,wPt,vS,wS,OC,Fx,zN,SX,EPt,APt,_Pt,SPt,TPt,CPt,RPt,ON,IPt,OPt,Fo,zU,gX,dQe,fQe,t$,jU,TU,TX,Oge,s$e,kPt,NPt,mQe,PPt,MPt,DPt,l$e,n$,d$e,DC,kC,BPt,Px,CU,h$e,mye,HPt,zPt,r$,TS,BN,EU,CX,RX,Pge,IX,Mge,W0e,AQe,OX,Dge,V0e,_Qe,RU,o$,G0e,SQe,g$e,v1,jPt,y$e,WPt,NX,b$e,v$e,w$e,Bv,Lge,Mx,Bge,ES,TC,YPt,ZPt,x$e,RQe,IQe,QPt,Uge,gye,yye,_$e,JPt,K0e,yX,e9t,CC,J0e,OQe,X0e,kQe,n9t,P$e,UC,NQe,PQe,D$e,$0e,DQe,ege,LQe,tge,BQe,o9t,JU,a9t,UQe,FQe,nge,HQe,zQe,jQe,rge,WQe,_ye,F$e,S$,f9t,p9t,h9t,m9t,MX,oge,b9t,H$e,z$e,v9t,w9t,E9t,GN,s$,Fge,_9t,KQe,S9t,c$,T9t,Hge,C9t,ige,R9t,I9t,ZQe,O9t,k9t,Nv,Pv,N9t,P9t,M9t,Qe,j$e,NS,D9t,u$,Sye,CS,l$,Tye,W$e,Ud,G$e,q$e,Xf,E1,d$,K$e,f$,GU,FC,QQe,qU,KU,JQe,B9t,In,p$,U9t,Y$e,age,h$,zge,jge,kv,F9t,A1,H9t,Wge,$Qe,Z$e,W9t,G9t,Vge,q9t,K9t,Gge,g$,Z9t,Q9t,tJe,nJe,rJe,oJe,iJe,aJe,vX,sJe,$9t,qge,y$,tMt,nMt,Yge,Zge,aMt,sMt,cMt,uMt,lMt,dMt,Cye,kS,Rye,cJe,NC,sge,DX,X$e,T$,Hv,jl,$$e,Qge,uJe,eet,fMt,lJe,Jge,Iye,pMt,dJe,Oye,Xge,net,LX,kye,mMt,gMt,we,b$,yMt,bMt,fJe,vMt,C$,PS,ret,pJe,wMt,oet,hJe,xMt,mJe,iet,EMt,aet,set,Ag,Nye,yJe,bJe,wX,AU,BX,AMt,cet,Pye,_Mt,SMt,TMt,CMt,RMt,IMt,uet,Mye,det,OMt,fet,kMt,$ge,vJe,NMt,PMt,MMt,Dye,cge,DMt,LMt,BMt,UMt,Bye,Uye,NU,_Je,SJe,FMt,HMt,zMt,zd,eye,cn,uge,YU,PU,het,met,VMt,GMt,get,qMt,bet=Z(()=>{f();tye=he(oYe()),jd=he(Khe()),qN=he(sYe());zJ();dZe();_0e();$f=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:{},Mv=[],xg=[],n7t=typeof Uint8Array<\"u\"?Uint8Array:Array,nye=!1;o7t={}.toString,OJe=Array.isArray||function(e){return o7t.call(e)==\"[object Array]\"};ut.TYPED_ARRAY_SUPPORT=$f.TYPED_ARRAY_SUPPORT===void 0||$f.TYPED_ARRAY_SUPPORT;i7t=UX();ut.poolSize=8192,ut._augment=function(e){return e.__proto__=ut.prototype,e},ut.from=function(e,t,n){return kJe(null,e,t,n)},ut.TYPED_ARRAY_SUPPORT&&(ut.prototype.__proto__=Uint8Array.prototype,ut.__proto__=Uint8Array,typeof Symbol<\"u\"&&Symbol.species&&ut[Symbol.species]),ut.alloc=function(e,t,n){return(function(r,o,i,a){return NJe(o),o<=0?Lx(r,o):i!==void 0?typeof a==\"string\"?Lx(r,o).fill(i,a):Lx(r,o).fill(i):Lx(r,o)})(null,e,t,n)},ut.allocUnsafe=function(e){return lge(null,e)},ut.allocUnsafeSlow=function(e){return lge(null,e)},ut.isBuffer=UJe,ut.compare=function(e,t){if(!Dv(e)||!Dv(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ut.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},ut.concat=function(e,t){if(!OJe(e))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(e.length===0)return ut.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ut.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Dv(i))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');i.copy(r,o),o+=i.length}return r},ut.byteLength=PJe,ut.prototype._isBuffer=!0,ut.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)_C(this,t,t+1);return this},ut.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)_C(this,t,t+3),_C(this,t+1,t+2);return this},ut.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)_C(this,t,t+7),_C(this,t+1,t+6),_C(this,t+2,t+5),_C(this,t+3,t+4);return this},ut.prototype.toString=function(){var e=0|this.length;return e===0?\"\":arguments.length===0?DJe(this,0,e):a7t.apply(this,arguments)},ut.prototype.equals=function(e){if(!Dv(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||ut.compare(this,e)===0},ut.prototype.inspect=function(){var e=\"\";return this.length>0&&(e=this.toString(\"hex\",0,50).match(/.{2}/g).join(\" \"),this.length>50&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},ut.prototype.compare=function(e,t,n,r,o){if(!Dv(e))throw new TypeError(\"Argument must be a Buffer\");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(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;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),u=this.slice(r,o),d=e.slice(t,n),p=0;p<c;++p)if(u[p]!==d[p]){i=u[p],a=d[p];break}return i<a?-1:a<i?1:0},ut.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},ut.prototype.indexOf=function(e,t,n){return pZe(this,e,t,n,!0)},ut.prototype.lastIndexOf=function(e,t,n){return pZe(this,e,t,n,!1)},ut.prototype.write=function(e,t,n,r){if(t===void 0)r=\"utf8\",n=this.length,t=0;else if(n===void 0&&typeof t==\"string\")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,r===void 0&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||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\");for(var i=!1;;)switch(r){case\"hex\":return s7t(this,e,t,n);case\"utf8\":case\"utf-8\":return c7t(this,e,t,n);case\"ascii\":return MJe(this,e,t,n);case\"latin1\":case\"binary\":return u7t(this,e,t,n);case\"base64\":return l7t(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return d7t(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},ut.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};mZe=4096;ut.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ut.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ut.prototype;else{var o=t-e;n=new ut(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},ut.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ku(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},ut.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ku(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ut.prototype.readUInt8=function(e,t){return t||Ku(e,1,this.length),this[e]},ut.prototype.readUInt16LE=function(e,t){return t||Ku(e,2,this.length),this[e]|this[e+1]<<8},ut.prototype.readUInt16BE=function(e,t){return t||Ku(e,2,this.length),this[e]<<8|this[e+1]},ut.prototype.readUInt32LE=function(e,t){return t||Ku(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ut.prototype.readUInt32BE=function(e,t){return t||Ku(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ut.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ku(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ut.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ku(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ut.prototype.readInt8=function(e,t){return t||Ku(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ut.prototype.readInt16LE=function(e,t){t||Ku(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ut.prototype.readInt16BE=function(e,t){t||Ku(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ut.prototype.readInt32LE=function(e,t){return t||Ku(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ut.prototype.readInt32BE=function(e,t){return t||Ku(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ut.prototype.readFloatLE=function(e,t){return t||Ku(e,4,this.length),eX(this,e,!0,23,4)},ut.prototype.readFloatBE=function(e,t){return t||Ku(e,4,this.length),eX(this,e,!1,23,4)},ut.prototype.readDoubleLE=function(e,t){return t||Ku(e,8,this.length),eX(this,e,!0,52,8)},ut.prototype.readDoubleBE=function(e,t){return t||Ku(e,8,this.length),eX(this,e,!1,52,8)},ut.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||sh(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},ut.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||sh(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},ut.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,1,255,0),ut.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ut.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,2,65535,0),ut.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tX(this,e,t,!0),t+2},ut.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,2,65535,0),ut.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tX(this,e,t,!1),t+2},ut.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,4,4294967295,0),ut.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):nX(this,e,t,!0),t+4},ut.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,4,4294967295,0),ut.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nX(this,e,t,!1),t+4},ut.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);sh(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&c===0&&this[t+i-1]!==0&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},ut.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);sh(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&c===0&&this[t+i+1]!==0&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},ut.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,1,127,-128),ut.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ut.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,2,32767,-32768),ut.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tX(this,e,t,!0),t+2},ut.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,2,32767,-32768),ut.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tX(this,e,t,!1),t+2},ut.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,4,2147483647,-2147483648),ut.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):nX(this,e,t,!0),t+4},ut.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||sh(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ut.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nX(this,e,t,!1),t+4},ut.prototype.writeFloatLE=function(e,t,n){return gZe(this,e,t,!0,n)},ut.prototype.writeFloatBE=function(e,t,n){return gZe(this,e,t,!1,n)},ut.prototype.writeDoubleLE=function(e,t,n){return yZe(this,e,t,!0,n)},ut.prototype.writeDoubleBE=function(e,t,n){return yZe(this,e,t,!1,n)},ut.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!ut.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ut.prototype.fill=function(e,t,n,r){if(typeof e==\"string\"){if(typeof t==\"string\"?(r=t,t=0,n=this.length):typeof n==\"string\"&&(r=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(r!==void 0&&typeof r!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof r==\"string\"&&!ut.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else typeof e==\"number\"&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e==\"number\")for(i=t;i<n;++i)this[i]=e;else{var a=Dv(e)?e:FX(new ut(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};y7t=/[^+\\\\/0-9A-Za-z-_]/g;v7t=Object.freeze({__proto__:null,Buffer:ut,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),ut.alloc(+e)},isBuffer:UJe,kMaxLength:i7t}),_g=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:{};IN={},Cm={},Hd={};Object.defineProperty(Hd,\"__esModule\",{value:!0}),Hd.isBytes=HJe,Hd.number=HX,Hd.bool=FJe,Hd.bytes=oye,Hd.hash=zJe,Hd.exists=jJe,Hd.output=WJe;w7t={number:HX,bool:FJe,bytes:oye,hash:zJe,exists:jJe,output:WJe};Hd.default=w7t,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=e.createView=e.u32=e.u16=e.u8=void 0,e.bytesToHex=r,e.hexToBytes=a,e.hexToNumber=c,e.bytesToNumberBE=function(h){return c(r(h))},e.numberToBytesBE=function(h,g){return a(h.toString(16).padStart(2*g,\"0\"))},e.asyncLoop=async function(h,g,y){let v=Date.now();for(let x=0;x<h;x++){y(x);let R=Date.now()-v;R>=0&&R<g||(await(0,e.nextTick)(),v+=R)}},e.utf8ToBytes=u,e.bytesToUtf8=function(h){return new TextDecoder().decode(h)},e.toBytes=function(h){if(typeof h==\"string\")h=u(h);else{if(!(0,t.isBytes)(h))throw new Error(\"Uint8Array expected, got \"+typeof h);h=p(h)}return h},e.concatBytes=function(...h){let g=0;for(let v=0;v<h.length;v++){let x=h[v];(0,t.bytes)(x),g+=x.length}let y=new Uint8Array(g);for(let v=0,x=0;v<h.length;v++){let R=h[v];y.set(R,x),x+=R.length}return y},e.checkOpts=function(h,g){if(g==null||typeof g!=\"object\")throw new Error(\"options must be defined\");return Object.assign(h,g)},e.equalBytes=function(h,g){if(h.length!==g.length)return!1;let y=0;for(let v=0;v<h.length;v++)y|=h[v]^g[v];return y===0},e.setBigUint64=d,e.u64Lengths=function(h,g){let y=new Uint8Array(16),v=(0,e.createView)(y);return d(v,0,BigInt(g?g.length:0),!0),d(v,8,BigInt(h.length),!0),y},e.isAligned32=function(h){return h.byteOffset%4==0},e.copyBytes=p,e.clean=function(...h){for(let g=0;g<h.length;g++)h[g].fill(0)};let t=Hd;if(e.u8=h=>new Uint8Array(h.buffer,h.byteOffset,h.byteLength),e.u16=h=>new Uint16Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/2)),e.u32=h=>new Uint32Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/4)),e.createView=h=>new DataView(h.buffer,h.byteOffset,h.byteLength),e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error(\"Non little-endian hardware is not supported\");let n=Array.from({length:256},((h,g)=>g.toString(16).padStart(2,\"0\")));function r(h){(0,t.bytes)(h);let g=\"\";for(let y=0;y<h.length;y++)g+=n[h[y]];return g}let o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function i(h){return h>=o._0&&h<=o._9?h-o._0:h>=o._A&&h<=o._F?h-(o._A-10):h>=o._a&&h<=o._f?h-(o._a-10):void 0}function a(h){if(typeof h!=\"string\")throw new Error(\"hex string expected, got \"+typeof h);let g=h.length,y=g/2;if(g%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+g);let v=new Uint8Array(y);for(let x=0,R=0;x<y;x++,R+=2){let S=i(h.charCodeAt(R)),M=i(h.charCodeAt(R+1));if(S===void 0||M===void 0){let P=h[R]+h[R+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+P+\\'\" at index \\'+R)}v[x]=16*S+M}return v}function c(h){if(typeof h!=\"string\")throw new Error(\"hex string expected, got \"+typeof h);return BigInt(h===\"\"?\"0\":`0x${h}`)}function u(h){if(typeof h!=\"string\")throw new Error(\"string expected, got \"+typeof h);return new Uint8Array(new TextEncoder().encode(h))}e.nextTick=async()=>{},e.Hash=class{};function d(h,g,y,v){if(typeof h.setBigUint64==\"function\")return h.setBigUint64(g,y,v);let x=BigInt(32),R=BigInt(4294967295),S=Number(y>>x&R),M=Number(y&R),P=v?4:0,z=v?0:4;h.setUint32(g+P,S,v),h.setUint32(g+z,M,v)}function p(h){return Uint8Array.from(h)}e.wrapCipher=(h,g)=>(Object.assign(g,h),g)})(Cm);MU={},Yu={};Object.defineProperty(Yu,\"__esModule\",{value:!0}),Yu.AEAD_TAG_LENGTH=Yu.XCHACHA20_NONCE_LENGTH=Yu.CURVE25519_PUBLIC_KEY_SIZE=Yu.ETH_PUBLIC_KEY_SIZE=Yu.UNCOMPRESSED_PUBLIC_KEY_SIZE=Yu.COMPRESSED_PUBLIC_KEY_SIZE=Yu.SECRET_KEY_LENGTH=void 0,Yu.SECRET_KEY_LENGTH=32,Yu.COMPRESSED_PUBLIC_KEY_SIZE=33,Yu.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,Yu.ETH_PUBLIC_KEY_SIZE=64,Yu.CURVE25519_PUBLIC_KEY_SIZE=32,Yu.XCHACHA20_NONCE_LENGTH=24,Yu.AEAD_TAG_LENGTH=16,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var t=Yu,n=function(){this.ellipticCurve=\"secp256k1\",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm=\"aes-256-gcm\",this.symmetricNonceLength=16};e.ECIES_CONFIG=new n,e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve},e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed},e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed},e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm},e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength},e.ephemeralKeySize=function(){var r={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?t.COMPRESSED_PUBLIC_KEY_SIZE:t.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:t.CURVE25519_PUBLIC_KEY_SIZE,ed25519:t.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in r)return r[e.ECIES_CONFIG.ellipticCurve];throw new Error(\"Not implemented\")}})(MU);T0e={},zX={},x$={},VJe={},iye={},rX={};Object.defineProperty(rX,\"__esModule\",{value:!0}),rX.crypto=void 0,rX.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=o,e.getWebcryptoSubtle=i,e.managedNonce=function(u){return(0,n.number)(u.nonceLength),(d,...p)=>({encrypt(h,...g){let{nonceLength:y}=u,v=o(y),x=u(d,v,...p).encrypt(h,...g),R=(0,r.concatBytes)(v,x);return x.fill(0),R},decrypt(h,...g){let{nonceLength:y}=u,v=h.subarray(0,y),x=h.subarray(y);return u(d,v,...p).decrypt(x,...g)}})};let t=rX,n=Hd,r=Cm;function o(u=32){if(t.crypto&&typeof t.crypto.getRandomValues==\"function\")return t.crypto.getRandomValues(new Uint8Array(u));if(t.crypto&&typeof t.crypto.randomBytes==\"function\")return t.crypto.randomBytes(u);throw new Error(\"crypto.getRandomValues must be defined\")}function i(){if(t.crypto&&typeof t.crypto.subtle==\"object\"&&t.crypto.subtle!=null)return t.crypto.subtle;throw new Error(\"crypto.subtle must be defined\")}e.utils={async encrypt(u,d,p,h){let g=i(),y=await g.importKey(\"raw\",u,d,!0,[\"encrypt\"]),v=await g.encrypt(p,y,h);return new Uint8Array(v)},async decrypt(u,d,p,h){let g=i(),y=await g.importKey(\"raw\",u,d,!0,[\"decrypt\"]),v=await g.decrypt(p,y,h);return new Uint8Array(v)}};let a={CBC:\"AES-CBC\",CTR:\"AES-CTR\",GCM:\"AES-GCM\"};function c(u){return(d,p,h)=>{(0,n.bytes)(d),(0,n.bytes)(p);let g={name:u,length:8*d.length},y=(function(v,x,R){if(v===a.CBC)return{name:a.CBC,iv:x};if(v===a.CTR)return{name:a.CTR,counter:x,length:64};if(v===a.GCM)return R?{name:a.GCM,iv:x,additionalData:R}:{name:a.GCM,iv:x};throw new Error(\"unknown aes block mode\")})(u,p,h);return{encrypt:v=>((0,n.bytes)(v),e.utils.encrypt(d,g,y,v)),decrypt:v=>((0,n.bytes)(v),e.utils.decrypt(d,g,y,v))}}}e.cbc=c(a.CBC),e.ctr=c(a.CTR),e.gcm=c(a.GCM)})(iye);GJe={},Zu={},Bx={},_m={};Object.defineProperty(_m,\"__esModule\",{value:!0}),_m.isBytes=KJe,_m.number=jX,_m.bool=qJe,_m.bytes=aye,_m.hash=YJe,_m.exists=ZJe,_m.output=QJe;x7t={number:jX,bool:qJe,bytes:aye,hash:YJe,exists:ZJe,output:QJe};_m.default=x7t;jx={},oX={};Object.defineProperty(oX,\"__esModule\",{value:!0}),oX.crypto=void 0,oX.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.Hash=e.nextTick=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=void 0,e.isBytes=function(d){return d instanceof Uint8Array||d!=null&&typeof d==\"object\"&&d.constructor.name===\"Uint8Array\"},e.byteSwap32=function(d){for(let p=0;p<d.length;p++)d[p]=(0,e.byteSwap)(d[p])},e.bytesToHex=function(d){(0,n.bytes)(d);let p=\"\";for(let h=0;h<d.length;h++)p+=r[d[h]];return p},e.hexToBytes=function(d){if(typeof d!=\"string\")throw new Error(\"hex string expected, got \"+typeof d);let p=d.length,h=p/2;if(p%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+p);let g=new Uint8Array(h);for(let y=0,v=0;y<h;y++,v+=2){let x=i(d.charCodeAt(v)),R=i(d.charCodeAt(v+1));if(x===void 0||R===void 0){let S=d[v]+d[v+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+S+\\'\" at index \\'+v)}g[y]=16*x+R}return g},e.asyncLoop=async function(d,p,h){let g=Date.now();for(let y=0;y<d;y++){h(y);let v=Date.now()-g;v>=0&&v<p||(await(0,e.nextTick)(),g+=v)}},e.utf8ToBytes=a,e.toBytes=c,e.concatBytes=function(...d){let p=0;for(let g=0;g<d.length;g++){let y=d[g];(0,n.bytes)(y),p+=y.length}let h=new Uint8Array(p);for(let g=0,y=0;g<d.length;g++){let v=d[g];h.set(v,y),y+=v.length}return h},e.checkOpts=function(d,p){if(p!==void 0&&u.call(p)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(d,p)},e.wrapConstructor=function(d){let p=g=>d().update(c(g)).digest(),h=d();return p.outputLen=h.outputLen,p.blockLen=h.blockLen,p.create=()=>d(),p},e.wrapConstructorWithOpts=function(d){let p=(g,y)=>d(y).update(c(g)).digest(),h=d({});return p.outputLen=h.outputLen,p.blockLen=h.blockLen,p.create=g=>d(g),p},e.wrapXOFConstructorWithOpts=function(d){let p=(g,y)=>d(y).update(c(g)).digest(),h=d({});return p.outputLen=h.outputLen,p.blockLen=h.blockLen,p.create=g=>d(g),p},e.randomBytes=function(d=32){if(t.crypto&&typeof t.crypto.getRandomValues==\"function\")return t.crypto.getRandomValues(new Uint8Array(d));if(t.crypto&&typeof t.crypto.randomBytes==\"function\")return t.crypto.randomBytes(d);throw new Error(\"crypto.getRandomValues must be defined\")};let t=oX,n=_m;e.u8=d=>new Uint8Array(d.buffer,d.byteOffset,d.byteLength),e.u32=d=>new Uint32Array(d.buffer,d.byteOffset,Math.floor(d.byteLength/4)),e.createView=d=>new DataView(d.buffer,d.byteOffset,d.byteLength),e.rotr=(d,p)=>d<<32-p|d>>>p,e.rotl=(d,p)=>d<<p|d>>>32-p>>>0,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,e.byteSwap=d=>d<<24&4278190080|d<<8&16711680|d>>>8&65280|d>>>24&255,e.byteSwapIfBE=e.isLE?d=>d:d=>(0,e.byteSwap)(d);let r=Array.from({length:256},((d,p)=>p.toString(16).padStart(2,\"0\"))),o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function i(d){return d>=o._0&&d<=o._9?d-o._0:d>=o._A&&d<=o._F?d-(o._A-10):d>=o._a&&d<=o._f?d-(o._a-10):void 0}function a(d){if(typeof d!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof d);return new Uint8Array(new TextEncoder().encode(d))}function c(d){return typeof d==\"string\"&&(d=a(d)),(0,n.bytes)(d),d}e.nextTick=async()=>{},e.Hash=class{clone(){return this._cloneInto()}};let u={}.toString})(jx),Object.defineProperty(Bx,\"__esModule\",{value:!0}),Bx.HashMD=Bx.Maj=Bx.Chi=void 0;C0e=_m,mU=jx;Bx.Chi=(e,t,n)=>e&t^~e&n;Bx.Maj=(e,t,n)=>e&t^e&n^t&n;Bx.HashMD=class extends mU.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,mU.createView)(this.buffer)}update(e){(0,C0e.exists)(this);let{view:t,buffer:n,blockLen:r}=this,o=(e=(0,mU.toBytes)(e)).length;for(let i=0;i<o;){let a=Math.min(r-this.pos,o-i);if(a!==r)n.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(t,0),this.pos=0);else{let c=(0,mU.createView)(e);for(;r<=o-i;i+=r)this.process(c,i)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,C0e.exists)(this),(0,C0e.output)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:o}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>r-i&&(this.process(n,0),i=0);for(let p=i;p<r;p++)t[p]=0;(function(p,h,g,y){if(typeof p.setBigUint64==\"function\")return p.setBigUint64(h,g,y);let v=BigInt(32),x=BigInt(4294967295),R=Number(g>>v&x),S=Number(g&x),M=y?4:0,P=y?0:4;p.setUint32(h+M,R,y),p.setUint32(h+P,S,y)})(n,r-8,BigInt(8*this.length),o),this.process(n,0);let a=(0,mU.createView)(e),c=this.outputLen;if(c%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let u=c/4,d=this.get();if(u>d.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let p=0;p<u;p++)a.setUint32(4*p,d[p],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:o,destroyed:i,pos:a}=this;return e.length=r,e.pos=a,e.finished=o,e.destroyed=i,r%t&&e.buffer.set(n),e}};mr={};Object.defineProperty(mr,\"__esModule\",{value:!0}),mr.add5L=mr.add5H=mr.add4H=mr.add4L=mr.add3H=mr.add3L=mr.rotlBL=mr.rotlBH=mr.rotlSL=mr.rotlSH=mr.rotr32L=mr.rotr32H=mr.rotrBL=mr.rotrBH=mr.rotrSL=mr.rotrSH=mr.shrSL=mr.shrSH=mr.toBig=void 0,mr.fromBig=sye,mr.split=JJe,mr.add=dXe;iX=BigInt(2**32-1),dge=BigInt(32);XJe=(e,t)=>BigInt(e>>>0)<<dge|BigInt(t>>>0);mr.toBig=XJe;$Je=(e,t,n)=>e>>>n;mr.shrSH=$Je;eXe=(e,t,n)=>e<<32-n|t>>>n;mr.shrSL=eXe;tXe=(e,t,n)=>e>>>n|t<<32-n;mr.rotrSH=tXe;nXe=(e,t,n)=>e<<32-n|t>>>n;mr.rotrSL=nXe;rXe=(e,t,n)=>e<<64-n|t>>>n-32;mr.rotrBH=rXe;oXe=(e,t,n)=>e>>>n-32|t<<64-n;mr.rotrBL=oXe;iXe=(e,t)=>t;mr.rotr32H=iXe;aXe=(e,t)=>e;mr.rotr32L=aXe;sXe=(e,t,n)=>e<<n|t>>>32-n;mr.rotlSH=sXe;cXe=(e,t,n)=>t<<n|e>>>32-n;mr.rotlSL=cXe;uXe=(e,t,n)=>t<<n-32|e>>>64-n;mr.rotlBH=uXe;lXe=(e,t,n)=>e<<n-32|t>>>64-n;mr.rotlBL=lXe;fXe=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);mr.add3L=fXe;pXe=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;mr.add3H=pXe;hXe=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);mr.add4L=hXe;mXe=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;mr.add4H=mXe;gXe=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);mr.add5L=gXe;yXe=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;mr.add5H=yXe;E7t={fromBig:sye,split:JJe,toBig:XJe,shrSH:$Je,shrSL:eXe,rotrSH:tXe,rotrSL:nXe,rotrBH:rXe,rotrBL:oXe,rotr32H:iXe,rotr32L:aXe,rotlSH:sXe,rotlSL:cXe,rotlBH:uXe,rotlBL:lXe,add:dXe,add3L:fXe,add3H:pXe,add4L:hXe,add4H:mXe,add5H:yXe,add5L:gXe};mr.default=E7t,Object.defineProperty(Zu,\"__esModule\",{value:!0}),Zu.sha384=Zu.sha512_256=Zu.sha512_224=Zu.sha512=Zu.SHA384=Zu.SHA512_256=Zu.SHA512_224=Zu.SHA512=void 0;A7t=Bx,Br=mr,aX=jx,[_7t,S7t]=Br.default.split([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map((e=>BigInt(e)))),hS=new Uint32Array(80),mS=new Uint32Array(80),PC=class extends A7t.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:a,Dh:c,Dl:u,Eh:d,El:p,Fh:h,Fl:g,Gh:y,Gl:v,Hh:x,Hl:R}=this;return[t,n,r,o,i,a,c,u,d,p,h,g,y,v,x,R]}set(t,n,r,o,i,a,c,u,d,p,h,g,y,v,x,R){this.Ah=0|t,this.Al=0|n,this.Bh=0|r,this.Bl=0|o,this.Ch=0|i,this.Cl=0|a,this.Dh=0|c,this.Dl=0|u,this.Eh=0|d,this.El=0|p,this.Fh=0|h,this.Fl=0|g,this.Gh=0|y,this.Gl=0|v,this.Hh=0|x,this.Hl=0|R}process(t,n){for(let P=0;P<16;P++,n+=4)hS[P]=t.getUint32(n),mS[P]=t.getUint32(n+=4);for(let P=16;P<80;P++){let z=0|hS[P-15],V=0|mS[P-15],Q=Br.default.rotrSH(z,V,1)^Br.default.rotrSH(z,V,8)^Br.default.shrSH(z,V,7),$=Br.default.rotrSL(z,V,1)^Br.default.rotrSL(z,V,8)^Br.default.shrSL(z,V,7),oe=0|hS[P-2],J=0|mS[P-2],re=Br.default.rotrSH(oe,J,19)^Br.default.rotrBH(oe,J,61)^Br.default.shrSH(oe,J,6),q=Br.default.rotrSL(oe,J,19)^Br.default.rotrBL(oe,J,61)^Br.default.shrSL(oe,J,6),K=Br.default.add4L($,q,mS[P-7],mS[P-16]),U=Br.default.add4H(K,Q,re,hS[P-7],hS[P-16]);hS[P]=0|U,mS[P]=0|K}let{Ah:r,Al:o,Bh:i,Bl:a,Ch:c,Cl:u,Dh:d,Dl:p,Eh:h,El:g,Fh:y,Fl:v,Gh:x,Gl:R,Hh:S,Hl:M}=this;for(let P=0;P<80;P++){let z=Br.default.rotrSH(h,g,14)^Br.default.rotrSH(h,g,18)^Br.default.rotrBH(h,g,41),V=Br.default.rotrSL(h,g,14)^Br.default.rotrSL(h,g,18)^Br.default.rotrBL(h,g,41),Q=h&y^~h&x,$=g&v^~g&R,oe=Br.default.add5L(M,V,$,S7t[P],mS[P]),J=Br.default.add5H(oe,S,z,Q,_7t[P],hS[P]),re=0|oe,q=Br.default.rotrSH(r,o,28)^Br.default.rotrBH(r,o,34)^Br.default.rotrBH(r,o,39),K=Br.default.rotrSL(r,o,28)^Br.default.rotrBL(r,o,34)^Br.default.rotrBL(r,o,39),U=r&i^r&c^i&c,T=o&a^o&u^a&u;S=0|x,M=0|R,x=0|y,R=0|v,y=0|h,v=0|g,{h,l:g}=Br.default.add(0|d,0|p,0|J,0|re),d=0|c,p=0|u,c=0|i,u=0|a,i=0|r,a=0|o;let k=Br.default.add3L(re,K,T);r=Br.default.add3H(k,J,q,U),o=0|k}({h:r,l:o}=Br.default.add(0|this.Ah,0|this.Al,0|r,0|o)),{h:i,l:a}=Br.default.add(0|this.Bh,0|this.Bl,0|i,0|a),{h:c,l:u}=Br.default.add(0|this.Ch,0|this.Cl,0|c,0|u),{h:d,l:p}=Br.default.add(0|this.Dh,0|this.Dl,0|d,0|p),{h,l:g}=Br.default.add(0|this.Eh,0|this.El,0|h,0|g),{h:y,l:v}=Br.default.add(0|this.Fh,0|this.Fl,0|y,0|v),{h:x,l:R}=Br.default.add(0|this.Gh,0|this.Gl,0|x,0|R),{h:S,l:M}=Br.default.add(0|this.Hh,0|this.Hl,0|S,0|M),this.set(r,o,i,a,c,u,d,p,h,g,y,v,x,R,S,M)}roundClean(){hS.fill(0),mS.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};Zu.SHA512=PC;WX=class extends PC{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}};Zu.SHA512_224=WX;VX=class extends PC{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}};Zu.SHA512_256=VX;GX=class extends PC{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};Zu.SHA384=GX,Zu.sha512=(0,aX.wrapConstructor)((()=>new PC)),Zu.sha512_224=(0,aX.wrapConstructor)((()=>new WX)),Zu.sha512_256=(0,aX.wrapConstructor)((()=>new VX)),Zu.sha384=(0,aX.wrapConstructor)((()=>new GX));fge={},kN={},bi={},Kr={};Object.defineProperty(Kr,\"__esModule\",{value:!0}),Kr.notImplemented=Kr.bitMask=void 0,Kr.isBytes=qX,Kr.abytes=KX,Kr.abool=function(e,t){if(typeof t!=\"boolean\")throw new Error(`${e} must be valid boolean, got \"${t}\".`)},Kr.bytesToHex=R0e,Kr.numberToHexUnpadded=vZe,Kr.hexToNumber=I0e,Kr.hexToBytes=EX,Kr.bytesToNumberBE=function(e){return I0e(R0e(e))},Kr.bytesToNumberLE=function(e){return KX(e),I0e(R0e(Uint8Array.from(e).reverse()))},Kr.numberToBytesBE=xZe,Kr.numberToBytesLE=function(e,t){return xZe(e,t).reverse()},Kr.numberToVarBytesBE=function(e){return EX(vZe(e))},Kr.ensureBytes=function(e,t,n){let r;if(typeof t==\"string\")try{r=EX(t)}catch(i){throw new Error(`${e} must be valid hex string, got \"${t}\". Cause: ${i}`)}else{if(!qX(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(`${e} expected ${n} bytes, got ${o}`);return r},Kr.concatBytes=EZe,Kr.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0},Kr.utf8ToBytes=function(e){if(typeof e!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof e);return new Uint8Array(new TextEncoder().encode(e))},Kr.inRange=AZe,Kr.aInRange=function(e,t,n,r){if(!AZe(t,n,r))throw new Error(`expected valid ${e}: ${n} <= n < ${r}, got ${typeof t} ${t}`)},Kr.bitLen=function(e){let t;for(t=0;e>pge;e>>=xX,t+=1);return t},Kr.bitGet=function(e,t){return e>>BigInt(t)&xX},Kr.bitSet=function(e,t,n){return e|(n?xX:pge)<<BigInt(t)},Kr.createHmacDrbg=function(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=k0e(e),o=k0e(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},c=(...p)=>n(o,r,...p),u=(p=k0e())=>{o=c(_Ze([0]),p),r=c(),p.length!==0&&(o=c(_Ze([1]),p),r=c())},d=()=>{if(i++>=1e3)throw new Error(\"drbg: tried 1000 values\");let p=0,h=[];for(;p<t;){r=c();let g=r.slice();h.push(g),p+=r.length}return EZe(...h)};return(p,h)=>{let g;for(a(),u(p);!(g=h(d()));)u();return a(),g}},Kr.validateObject=function(e,t,n={}){let r=(o,i,a)=>{let c=R7t[i];if(typeof c!=\"function\")throw new Error(`Invalid validator \"${i}\", expected function`);let u=e[o];if(!(a&&u===void 0||c(u,e)))throw new Error(`Invalid param ${String(o)}=${u} (${typeof u}), expected ${i}`)};for(let[o,i]of Object.entries(t))r(o,i,!1);for(let[o,i]of Object.entries(n))r(o,i,!0);return e},Kr.memoized=function(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}};pge=BigInt(0),xX=BigInt(1),T7t=BigInt(2);C7t=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,\"0\")));Ox={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};O0e=e=>typeof e==\"bigint\"&&pge<=e;Kr.bitMask=e=>(T7t<<BigInt(e-1))-xX;k0e=e=>new Uint8Array(e),_Ze=e=>Uint8Array.from(e),R7t={bigint:e=>typeof e==\"bigint\",function:e=>typeof e==\"function\",boolean:e=>typeof e==\"boolean\",string:e=>typeof e==\"string\",stringOrUint8Array:e=>typeof e==\"string\"||qX(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==\"function\"&&Number.isSafeInteger(e.outputLen)};Kr.notImplemented=()=>{throw new Error(\"not implemented\")},Object.defineProperty(bi,\"__esModule\",{value:!0}),bi.isNegativeLE=void 0,bi.mod=Am,bi.pow=bXe,bi.pow2=function(e,t,n){let r=e;for(;t-- >Qu;)r*=r,r%=n;return r},bi.invert=sX,bi.tonelliShanks=vXe,bi.FpSqrt=CZe,bi.validateField=function(e){let t=O7t.reduce(((n,r)=>(n[r]=\"function\",n)),{ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"});return(0,xm.validateObject)(e,t)},bi.FpPow=RZe,bi.FpInvertBatch=IZe,bi.FpDiv=function(e,t,n){return e.mul(t,typeof n==\"bigint\"?sX(n,e.ORDER):e.inv(n))},bi.FpLegendre=OZe,bi.FpIsSquare=function(e){let t=OZe(e.ORDER);return n=>{let r=t(e,n);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},bi.nLength=N0e,bi.Field=function(e,t,n=!1,r={}){if(e<=Qu)throw new Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:i}=N0e(e,t);if(i>2048)throw new Error(\"Field lengths over 2048 bytes are not supported\");let a=CZe(e),c=Object.freeze({ORDER:e,BITS:o,BYTES:i,MASK:(0,xm.bitMask)(o),ZERO:Qu,ONE:va,create:u=>Am(u,e),isValid:u=>{if(typeof u!=\"bigint\")throw new Error(\"Invalid field element: expected bigint, got \"+typeof u);return Qu<=u&&u<e},is0:u=>u===Qu,isOdd:u=>(u&va)===va,neg:u=>Am(-u,e),eql:(u,d)=>u===d,sqr:u=>Am(u*u,e),add:(u,d)=>Am(u+d,e),sub:(u,d)=>Am(u-d,e),mul:(u,d)=>Am(u*d,e),pow:(u,d)=>RZe(c,u,d),div:(u,d)=>Am(u*sX(d,e),e),sqrN:u=>u*u,addN:(u,d)=>u+d,subN:(u,d)=>u-d,mulN:(u,d)=>u*d,inv:u=>sX(u,e),sqrt:r.sqrt||(u=>a(c,u)),invertBatch:u=>IZe(c,u),cmov:(u,d,p)=>p?d:u,toBytes:u=>n?(0,xm.numberToBytesLE)(u,i):(0,xm.numberToBytesBE)(u,i),fromBytes:u=>{if(u.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${u.length}`);return n?(0,xm.bytesToNumberLE)(u):(0,xm.bytesToNumberBE)(u)}});return Object.freeze(c)},bi.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error(\"Field doesn\\'t have isOdd\");let n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},bi.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error(\"Field doesn\\'t have isOdd\");let n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},bi.hashToPrivateScalar=function(e,t,n=!1){e=(0,xm.ensureBytes)(\"privateHash\",e);let r=e.length,o=N0e(t).nByteLength+8;if(o<24||r<o||r>1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${r}`);let i=n?(0,xm.bytesToNumberLE)(e):(0,xm.bytesToNumberBE)(e);return Am(i,t-va)+va},bi.getFieldBytesLength=mge,bi.getMinHashLength=kZe,bi.mapHashToField=function(e,t,n=!1){let r=e.length,o=mge(t),i=kZe(t);if(r<16||r<i||r>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);let a=Am(n?(0,xm.bytesToNumberBE)(e):(0,xm.bytesToNumberLE)(e),t-va)+va;return n?(0,xm.numberToBytesLE)(a,o):(0,xm.numberToBytesBE)(a,o)};xm=Kr,Qu=BigInt(0),va=BigInt(1),RS=BigInt(2),I7t=BigInt(3),hge=BigInt(4),SZe=BigInt(5),TZe=BigInt(8);BigInt(9),BigInt(16);bi.isNegativeLE=(e,t)=>(Am(e,t)&va)===va;O7t=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"];Object.defineProperty(kN,\"__esModule\",{value:!0}),kN.wNAF=function(e,t){let n=(i,a)=>{let c=a.negate();return i?c:a},r=i=>{if(!Number.isSafeInteger(i)||i<=0||i>t)throw new Error(`Wrong window size=${i}, should be [1..${t}]`)},o=i=>(r(i),{windows:Math.ceil(t/i)+1,windowSize:2**(i-1)});return{constTimeNegate:n,unsafeLadder(i,a){let c=e.ZERO,u=i;for(;a>k7t;)a&P0e&&(c=c.add(u)),u=u.double(),a>>=P0e;return c},precomputeWindow(i,a){let{windows:c,windowSize:u}=o(a),d=[],p=i,h=p;for(let g=0;g<c;g++){h=p,d.push(h);for(let y=1;y<u;y++)h=h.add(p),d.push(h);p=h.double()}return d},wNAF(i,a,c){let{windows:u,windowSize:d}=o(i),p=e.ZERO,h=e.BASE,g=BigInt(2**i-1),y=2**i,v=BigInt(i);for(let x=0;x<u;x++){let R=x*d,S=Number(c&g);c>>=v,S>d&&(S-=y,c+=P0e);let M=R,P=R+Math.abs(S)-1,z=x%2!=0,V=S<0;S===0?h=h.add(n(z,a[M])):p=p.add(n(V,a[P]))}return{p,f:h}},wNAFCached(i,a,c){let u=MZe.get(i)||1,d=M0e.get(i);return d||(d=this.precomputeWindow(i,u),u!==1&&M0e.set(i,c(d))),this.wNAF(u,d,a)},setWindowSize(i,a){r(a),MZe.set(i,a),M0e.delete(i)}}},kN.pippenger=function(e,t,n,r){if(!Array.isArray(n)||!Array.isArray(r)||r.length!==n.length)throw new Error(\"arrays of points and scalars must have equal length\");r.forEach(((p,h)=>{if(!t.isValid(p))throw new Error(`wrong scalar at index ${h}`)})),n.forEach(((p,h)=>{if(!(p instanceof e))throw new Error(`wrong point at index ${h}`)}));let o=(0,PZe.bitLen)(BigInt(n.length)),i=o>12?o-3:o>4?o-2:o?2:1,a=(1<<i)-1,c=new Array(a+1).fill(e.ZERO),u=Math.floor((t.BITS-1)/i)*i,d=e.ZERO;for(let p=u;p>=0;p-=i){c.fill(e.ZERO);for(let g=0;g<r.length;g++){let y=r[g],v=Number(y>>BigInt(p)&BigInt(a));c[v]=c[v].add(n[g])}let h=e.ZERO;for(let g=c.length-1,y=e.ZERO;g>0;g--)y=y.add(c[g]),h=h.add(y);if(d=d.add(h),p!==0)for(let g=0;g<i;g++)d=d.double()}return d},kN.validateBasic=function(e){return(0,NZe.validateField)(e.Fp),(0,PZe.validateObject)(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...(0,NZe.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};NZe=bi,PZe=Kr,k7t=BigInt(0),P0e=BigInt(1),M0e=new WeakMap,MZe=new WeakMap;Object.defineProperty(fge,\"__esModule\",{value:!0}),fge.twistedEdwards=function(e){let t=(function(U){let T=(0,D0e.validateBasic)(U);return ch.validateObject(U,{hash:\"function\",a:\"bigint\",d:\"bigint\",randomBytes:\"function\"},{adjustScalarBytes:\"function\",domain:\"function\",uvRatio:\"function\",mapToCurve:\"function\"}),Object.freeze({...T})})(e),{Fp:n,n:r,prehash:o,hash:i,randomBytes:a,nByteLength:c,h:u}=t,d=cX<<BigInt(8*c)-uh,p=n.create,h=(0,DZe.Field)(t.n,t.nBitLength),g=t.uvRatio||((U,T)=>{try{return{isValid:!0,value:n.sqrt(U*n.inv(T))}}catch{return{isValid:!1,value:b1}}}),y=t.adjustScalarBytes||(U=>U),v=t.domain||((U,T,k)=>{if((0,Em.abool)(\"phflag\",k),T.length||k)throw new Error(\"Contexts/pre-hash are not supported\");return U});function x(U,T){ch.aInRange(\"coordinate \"+U,T,b1,d)}function R(U){if(!(U instanceof P))throw new Error(\"ExtendedPoint expected\")}let S=(0,Em.memoized)(((U,T)=>{let{ex:k,ey:F,ez:N}=U,B=U.is0();T==null&&(T=B?N7t:n.inv(N));let H=p(k*T),W=p(F*T),G=p(N*T);if(B)return{x:b1,y:uh};if(G!==uh)throw new Error(\"invZ was invalid\");return{x:H,y:W}})),M=(0,Em.memoized)((U=>{let{a:T,d:k}=t;if(U.is0())throw new Error(\"bad point: ZERO\");let{ex:F,ey:N,ez:B,et:H}=U,W=p(F*F),G=p(N*N),O=p(B*B),j=p(O*O),te=p(W*T);if(p(O*p(te+G))!==p(j+p(k*p(W*G))))throw new Error(\"bad point: equation left != right (1)\");if(p(F*N)!==p(B*H))throw new Error(\"bad point: equation left != right (2)\");return!0}));class P{constructor(T,k,F,N){this.ex=T,this.ey=k,this.ez=F,this.et=N,x(\"x\",T),x(\"y\",k),x(\"z\",F),x(\"t\",N),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(T){if(T instanceof P)throw new Error(\"extended point not allowed\");let{x:k,y:F}=T||{};return x(\"x\",k),x(\"y\",F),new P(k,F,uh,p(k*F))}static normalizeZ(T){let k=n.invertBatch(T.map((F=>F.ez)));return T.map(((F,N)=>F.toAffine(k[N]))).map(P.fromAffine)}static msm(T,k){return(0,D0e.pippenger)(P,h,T,k)}_setWindowSize(T){Q.setWindowSize(this,T)}assertValidity(){M(this)}equals(T){R(T);let{ex:k,ey:F,ez:N}=this,{ex:B,ey:H,ez:W}=T,G=p(k*W),O=p(B*N),j=p(F*W),te=p(H*N);return G===O&&j===te}is0(){return this.equals(P.ZERO)}negate(){return new P(p(-this.ex),this.ey,this.ez,p(-this.et))}double(){let{a:T}=t,{ex:k,ey:F,ez:N}=this,B=p(k*k),H=p(F*F),W=p(cX*p(N*N)),G=p(T*B),O=k+F,j=p(p(O*O)-B-H),te=G+H,ne=te-W,ae=G-H,pe=p(j*ne),ye=p(te*ae),ve=p(j*ae),xe=p(ne*te);return new P(pe,ye,xe,ve)}add(T){R(T);let{a:k,d:F}=t,{ex:N,ey:B,ez:H,et:W}=this,{ex:G,ey:O,ez:j,et:te}=T;if(k===BigInt(-1)){let ht=p((B-N)*(O+G)),et=p((B+N)*(O-G)),fn=p(et-ht);if(fn===b1)return this.double();let Zt=p(H*cX*te),Vt=p(W*cX*j),jt=Vt+Zt,Jt=et+ht,Xt=Vt-Zt,sr=p(jt*fn),Yn=p(Jt*Xt),Fr=p(jt*Xt),Ws=p(fn*Jt);return new P(sr,Yn,Ws,Fr)}let ne=p(N*G),ae=p(B*O),pe=p(W*F*te),ye=p(H*j),ve=p((N+B)*(G+O)-ne-ae),xe=ye-pe,De=ye+pe,Ge=p(ae-k*ne),gt=p(ve*xe),Ye=p(De*Ge),lt=p(ve*Ge),At=p(xe*De);return new P(gt,Ye,At,lt)}subtract(T){return this.add(T.negate())}wNAF(T){return Q.wNAFCached(this,T,P.normalizeZ)}multiply(T){let k=T;ch.aInRange(\"scalar\",k,uh,r);let{p:F,f:N}=this.wNAF(k);return P.normalizeZ([F,N])[0]}multiplyUnsafe(T){let k=T;return ch.aInRange(\"scalar\",k,b1,r),k===b1?V:this.equals(V)||k===uh?this:this.equals(z)?this.wNAF(k).p:Q.unsafeLadder(this,k)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return Q.unsafeLadder(this,r).is0()}toAffine(T){return S(this,T)}clearCofactor(){let{h:T}=t;return T===uh?this:this.multiplyUnsafe(T)}static fromHex(T,k=!1){let{d:F,a:N}=t,B=n.BYTES;T=(0,Em.ensureBytes)(\"pointHex\",T,B),(0,Em.abool)(\"zip215\",k);let H=T.slice(),W=T[B-1];H[B-1]=-129&W;let G=ch.bytesToNumberLE(H),O=k?d:n.ORDER;ch.aInRange(\"pointHex.y\",G,b1,O);let j=p(G*G),te=p(j-uh),ne=p(F*j-N),{isValid:ae,value:pe}=g(te,ne);if(!ae)throw new Error(\"Point.fromHex: invalid y coordinate\");let ye=(pe&uh)===uh,ve=(128&W)!=0;if(!k&&pe===b1&&ve)throw new Error(\"Point.fromHex: x=0 and x_0=1\");return ve!==ye&&(pe=p(-pe)),P.fromAffine({x:pe,y:G})}static fromPrivateKey(T){return J(T).point}toRawBytes(){let{x:T,y:k}=this.toAffine(),F=ch.numberToBytesLE(k,n.BYTES);return F[F.length-1]|=T&uh?128:0,F}toHex(){return ch.bytesToHex(this.toRawBytes())}}P.BASE=new P(t.Gx,t.Gy,uh,p(t.Gx*t.Gy)),P.ZERO=new P(b1,uh,uh,b1);let{BASE:z,ZERO:V}=P,Q=(0,D0e.wNAF)(P,8*c);function $(U){return(0,DZe.mod)(U,r)}function oe(U){return $(ch.bytesToNumberLE(U))}function J(U){let T=c;U=(0,Em.ensureBytes)(\"private key\",U,T);let k=(0,Em.ensureBytes)(\"hashed private key\",i(U),2*T),F=y(k.slice(0,T)),N=k.slice(T,2*T),B=oe(F),H=z.multiply(B),W=H.toRawBytes();return{head:F,prefix:N,scalar:B,point:H,pointBytes:W}}function re(U=new Uint8Array,...T){let k=ch.concatBytes(...T);return oe(i(v(k,(0,Em.ensureBytes)(\"context\",U),!!o)))}let q=P7t;return z._setWindowSize(8),{CURVE:t,getPublicKey:function(U){return J(U).pointBytes},sign:function(U,T,k={}){U=(0,Em.ensureBytes)(\"message\",U),o&&(U=o(U));let{prefix:F,scalar:N,pointBytes:B}=J(T),H=re(k.context,F,U),W=z.multiply(H).toRawBytes(),G=$(H+re(k.context,W,B,U)*N);ch.aInRange(\"signature.s\",G,b1,r);let O=ch.concatBytes(W,ch.numberToBytesLE(G,n.BYTES));return(0,Em.ensureBytes)(\"result\",O,2*c)},verify:function(U,T,k,F=q){let{context:N,zip215:B}=F,H=n.BYTES;U=(0,Em.ensureBytes)(\"signature\",U,2*H),T=(0,Em.ensureBytes)(\"message\",T),B!==void 0&&(0,Em.abool)(\"zip215\",B),o&&(T=o(T));let W=ch.bytesToNumberLE(U.slice(H,2*H)),G,O,j;try{G=P.fromHex(k,B),O=P.fromHex(U.slice(0,H),B),j=z.multiplyUnsafe(W)}catch{return!1}if(!B&&G.isSmallOrder())return!1;let te=re(N,O.toRawBytes(),G.toRawBytes(),T);return O.add(G.multiplyUnsafe(te)).subtract(j).clearCofactor().equals(P.ZERO)},ExtendedPoint:P,utils:{getExtendedPublicKey:J,randomPrivateKey:()=>a(n.BYTES),precompute:(U=8,T=P.BASE)=>(T._setWindowSize(U),T.multiply(BigInt(3)),T)}}};D0e=kN,DZe=bi,ch=Kr,Em=Kr,b1=BigInt(0),uh=BigInt(1),cX=BigInt(2),N7t=BigInt(8),P7t={zip215:!0},AS={};Object.defineProperty(AS,\"__esModule\",{value:!0}),AS.expand_message_xmd=wXe,AS.expand_message_xof=xXe,AS.hash_to_field=L0e,AS.isogenyMap=function(e,t){let n=t.map((r=>Array.from(r).reverse()));return(r,o)=>{let[i,a,c,u]=n.map((d=>d.reduce(((p,h)=>e.add(e.mul(p,r),h)))));return r=e.div(i,a),o=e.mul(o,e.div(c,u)),{x:r,y:o}}},AS.createHasher=function(e,t,n){if(typeof t!=\"function\")throw new Error(\"mapToCurve() must be defined\");return{hashToCurve(r,o){let i=L0e(r,2,{...n,DST:n.DST,...o}),a=e.fromAffine(t(i[0])),c=e.fromAffine(t(i[1])),u=a.add(c).clearCofactor();return u.assertValidity(),u},encodeToCurve(r,o){let i=L0e(r,1,{...n,DST:n.encodeDST,...o}),a=e.fromAffine(t(i[0])).clearCofactor();return a.assertValidity(),a},mapToCurve(r){if(!Array.isArray(r))throw new Error(\"mapToCurve: expected array of bigints\");for(let i of r)if(typeof i!=\"bigint\")throw new Error(`mapToCurve: expected array of bigints, got ${i} in array`);let o=e.fromAffine(t(r)).clearCofactor();return o.assertValidity(),o}}};M7t=bi,Fd=Kr,D7t=Fd.bytesToNumberBE;gge={};Object.defineProperty(gge,\"__esModule\",{value:!0}),gge.montgomery=function(e){let t=(function(x){return(0,gS.validateObject)(x,{a:\"bigint\"},{montgomeryBits:\"isSafeInteger\",nByteLength:\"isSafeInteger\",adjustScalarBytes:\"function\",domain:\"function\",powPminus2:\"function\",Gu:\"bigint\"}),Object.freeze({...x})})(e),{P:n}=t,r=x=>(0,LZe.mod)(x,n),o=t.montgomeryBits,i=Math.ceil(o/8),a=t.nByteLength,c=t.adjustScalarBytes||(x=>x),u=t.powPminus2||(x=>(0,LZe.pow)(x,n-BigInt(2),n));function d(x,R,S){let M=r(x*(R-S));return[R=r(R-M),S=r(S+M)]}let p=(t.a-BigInt(2))/BigInt(4);function h(x){return(0,gS.numberToBytesLE)(r(x),i)}function g(x,R){let S=(function(z){let V=(0,gS.ensureBytes)(\"u coordinate\",z,i);return a===32&&(V[31]&=127),(0,gS.bytesToNumberLE)(V)})(R),M=(function(z){let V=(0,gS.ensureBytes)(\"scalar\",z),Q=V.length;if(Q!==i&&Q!==a)throw new Error(`Expected ${i} or ${a} bytes, got ${Q}`);return(0,gS.bytesToNumberLE)(c(V))})(x),P=(function(z,V){(0,gS.aInRange)(\"u\",z,SN,n),(0,gS.aInRange)(\"scalar\",V,SN,n);let Q=V,$=z,oe,J=B0e,re=SN,q=z,K=B0e,U=SN;for(let k=BigInt(o-1);k>=SN;k--){let F=Q>>k&B0e;U^=F,oe=d(U,J,q),J=oe[0],q=oe[1],oe=d(U,re,K),re=oe[0],K=oe[1],U=F;let N=J+re,B=r(N*N),H=J-re,W=r(H*H),G=B-W,O=q+K,j=r((q-K)*N),te=r(O*H),ne=j+te,ae=j-te;q=r(ne*ne),K=r($*r(ae*ae)),J=r(B*W),re=r(G*(B+r(p*G)))}oe=d(U,J,q),J=oe[0],q=oe[1],oe=d(U,re,K),re=oe[0],K=oe[1];let T=u(re);return r(J*T)})(S,M);if(P===SN)throw new Error(\"Invalid private or public key received\");return h(P)}let y=h(t.Gu);function v(x){return g(x,y)}return{scalarMult:g,scalarMultBase:v,getSharedSecret:(x,R)=>g(x,R),getPublicKey:x=>v(x),utils:{randomPrivateKey:()=>t.randomBytes(t.nByteLength)},GuBytes:y}};LZe=bi,gS=Kr,SN=BigInt(0),B0e=BigInt(1);(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0,e.edwardsToMontgomeryPub=Q,e.edwardsToMontgomeryPriv=function(te){let ne=z.hash(te.subarray(0,32));return z.adjustScalarBytes(ne).subarray(0,32)};let t=Zu,n=jx,r=fge,o=AS,i=bi,a=gge,c=Kr,u=BigInt(\"57896044618658097711785492504343953926634992332820282019728792003956564819949\"),d=BigInt(\"19681161376707505956807079304988542015446066515923890162744021073123829784752\"),p=BigInt(0),h=BigInt(1),g=BigInt(2),y=BigInt(3),v=BigInt(5),x=BigInt(8);function R(te){let ne=BigInt(10),ae=BigInt(20),pe=BigInt(40),ye=BigInt(80),ve=u,xe=te*te%ve*te%ve,De=(0,i.pow2)(xe,g,ve)*xe%ve,Ge=(0,i.pow2)(De,h,ve)*te%ve,gt=(0,i.pow2)(Ge,v,ve)*Ge%ve,Ye=(0,i.pow2)(gt,ne,ve)*gt%ve,lt=(0,i.pow2)(Ye,ae,ve)*Ye%ve,At=(0,i.pow2)(lt,pe,ve)*lt%ve,ht=(0,i.pow2)(At,ye,ve)*At%ve,et=(0,i.pow2)(ht,ye,ve)*At%ve,fn=(0,i.pow2)(et,ne,ve)*gt%ve;return{pow_p_5_8:(0,i.pow2)(fn,g,ve)*te%ve,b2:xe}}function S(te){return te[0]&=248,te[31]&=127,te[31]|=64,te}function M(te,ne){let ae=u,pe=(0,i.mod)(ne*ne*ne,ae),ye=R(te*(0,i.mod)(pe*pe*ne,ae)).pow_p_5_8,ve=(0,i.mod)(te*pe*ye,ae),xe=(0,i.mod)(ne*ve*ve,ae),De=ve,Ge=(0,i.mod)(ve*d,ae),gt=xe===te,Ye=xe===(0,i.mod)(-te,ae),lt=xe===(0,i.mod)(-te*d,ae);return gt&&(ve=De),(Ye||lt)&&(ve=Ge),(0,i.isNegativeLE)(ve,ae)&&(ve=(0,i.mod)(-ve,ae)),{isValid:gt||Ye,value:ve}}e.ED25519_TORSION_SUBGROUP=[\"0100000000000000000000000000000000000000000000000000000000000000\",\"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a\",\"0000000000000000000000000000000000000000000000000000000000000080\",\"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05\",\"ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f\",\"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85\",\"0000000000000000000000000000000000000000000000000000000000000000\",\"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa\"];let P=(0,i.Field)(u,void 0,!0),z={a:BigInt(-1),d:BigInt(\"37095705934669439343138083508754565189542113879843219016388785533085940283555\"),Fp:P,n:BigInt(\"7237005577332262213973186563042994240857116359379907606001950938285454250989\"),h:x,Gx:BigInt(\"15112221349535400772501151409588531511454012693041857206046113283949847762202\"),Gy:BigInt(\"46316835694926478169428394003475163141307993866256225615783033603165251855960\"),hash:t.sha512,randomBytes:n.randomBytes,adjustScalarBytes:S,uvRatio:M};function V(te,ne,ae){if(ne.length>255)throw new Error(\"Context is too big\");return(0,n.concatBytes)((0,n.utf8ToBytes)(\"SigEd25519 no Ed25519 collisions\"),new Uint8Array([ae?1:0,ne.length]),ne,te)}function Q(te){let{y:ne}=e.ed25519.ExtendedPoint.fromHex(te),ae=BigInt(1);return P.toBytes(P.create((ae+ne)*P.inv(ae-ne)))}e.ed25519=(0,r.twistedEdwards)(z),e.ed25519ctx=(0,r.twistedEdwards)({...z,domain:V}),e.ed25519ph=(0,r.twistedEdwards)(Object.assign({},z,{domain:V,prehash:t.sha512})),e.x25519=(0,a.montgomery)({P:u,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:te=>{let ne=u,{pow_p_5_8:ae,b2:pe}=R(te);return(0,i.mod)((0,i.pow2)(ae,y,ne)*pe,ne)},adjustScalarBytes:S,randomBytes:n.randomBytes}),e.edwardsToMontgomery=Q;let $=(P.ORDER+y)/x,oe=P.pow(g,$),J=P.sqrt(P.neg(P.ONE)),re=(0,i.FpSqrtEven)(P,P.neg(BigInt(486664)));function q(te){let{xMn:ne,xMd:ae,yMn:pe,yMd:ye}=(function(At){let ht=(P.ORDER-v)/x,et=BigInt(486662),fn=P.sqr(At);fn=P.mul(fn,g);let Zt=P.add(fn,P.ONE),Vt=P.neg(et),jt=P.sqr(Zt),Jt=P.mul(jt,Zt),Xt=P.mul(fn,et);Xt=P.mul(Xt,Vt),Xt=P.add(Xt,jt),Xt=P.mul(Xt,Vt);let sr=P.sqr(Jt);jt=P.sqr(sr),sr=P.mul(sr,Jt),sr=P.mul(sr,Xt),jt=P.mul(jt,sr);let Yn=P.pow(jt,ht);Yn=P.mul(Yn,sr);let Fr=P.mul(Yn,J);jt=P.sqr(Yn),jt=P.mul(jt,Jt);let Ws=P.eql(jt,Xt),io=P.cmov(Fr,Yn,Ws),Hr=P.mul(Vt,fn),qi=P.mul(Yn,At);qi=P.mul(qi,oe);let Ar=P.mul(qi,J),zr=P.mul(Xt,fn);jt=P.sqr(qi),jt=P.mul(jt,Jt);let la=P.eql(jt,zr),ue=P.cmov(Ar,qi,la);jt=P.sqr(io),jt=P.mul(jt,Jt);let Ie=P.eql(jt,Xt),_t=P.cmov(Hr,Vt,Ie),ot=P.cmov(ue,io,Ie),Mt=P.isOdd(ot);return ot=P.cmov(ot,P.neg(ot),Ie!==Mt),{xMn:_t,xMd:Zt,yMn:ot,yMd:h}})(te),ve=P.mul(ne,ye);ve=P.mul(ve,re);let xe=P.mul(ae,pe),De=P.sub(ne,ae),Ge=P.add(ne,ae),gt=P.mul(xe,Ge),Ye=P.eql(gt,P.ZERO);ve=P.cmov(ve,P.ZERO,Ye),xe=P.cmov(xe,P.ONE,Ye),De=P.cmov(De,P.ONE,Ye),Ge=P.cmov(Ge,P.ONE,Ye);let lt=P.invertBatch([xe,Ge]);return{x:P.mul(ve,lt[0]),y:P.mul(De,lt[1])}}let K=(0,o.createHasher)(e.ed25519.ExtendedPoint,(te=>q(te[0])),{DST:\"edwards25519_XMD:SHA-512_ELL2_RO_\",encodeDST:\"edwards25519_XMD:SHA-512_ELL2_NU_\",p:P.ORDER,m:1,k:128,expand:\"xmd\",hash:t.sha512});function U(te){if(!(te instanceof j))throw new Error(\"RistrettoPoint expected\")}e.hashToCurve=K.hashToCurve,e.encodeToCurve=K.encodeToCurve;let T=d,k=BigInt(\"25063068953384623474111414158702152701244531502492656460079210482610430750235\"),F=BigInt(\"54469307008909316920995813868745141605393597292927456921205312896311721017578\"),N=BigInt(\"1159843021668779879193775521855586647937357759715417654439879720876111806838\"),B=BigInt(\"40440834346308536858101042469323190826248399146238708352240133220865137265952\"),H=te=>M(h,te),W=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),G=te=>e.ed25519.CURVE.Fp.create((0,c.bytesToNumberLE)(te)&W);function O(te){let{d:ne}=e.ed25519.CURVE,ae=e.ed25519.CURVE.Fp.ORDER,pe=e.ed25519.CURVE.Fp.create,ye=pe(T*te*te),ve=pe((ye+h)*N),xe=BigInt(-1),De=pe((xe-ne*ye)*pe(ye+ne)),{isValid:Ge,value:gt}=M(ve,De),Ye=pe(gt*te);(0,i.isNegativeLE)(Ye,ae)||(Ye=pe(-Ye)),Ge||(gt=Ye),Ge||(xe=ye);let lt=pe(xe*(ye-h)*B-De),At=gt*gt,ht=pe((gt+gt)*De),et=pe(lt*k),fn=pe(h-At),Zt=pe(h+At);return new e.ed25519.ExtendedPoint(pe(ht*Zt),pe(fn*et),pe(et*Zt),pe(ht*fn))}class j{constructor(ne){this.ep=ne}static fromAffine(ne){return new j(e.ed25519.ExtendedPoint.fromAffine(ne))}static hashToCurve(ne){ne=(0,c.ensureBytes)(\"ristrettoHash\",ne,64);let ae=O(G(ne.slice(0,32))),pe=O(G(ne.slice(32,64)));return new j(ae.add(pe))}static fromHex(ne){ne=(0,c.ensureBytes)(\"ristrettoHex\",ne,32);let{a:ae,d:pe}=e.ed25519.CURVE,ye=e.ed25519.CURVE.Fp.ORDER,ve=e.ed25519.CURVE.Fp.create,xe=\"RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint\",De=G(ne);if(!(0,c.equalBytes)((0,c.numberToBytesLE)(De,32),ne)||(0,i.isNegativeLE)(De,ye))throw new Error(xe);let Ge=ve(De*De),gt=ve(h+ae*Ge),Ye=ve(h-ae*Ge),lt=ve(gt*gt),At=ve(Ye*Ye),ht=ve(ae*pe*lt-At),{isValid:et,value:fn}=H(ve(ht*At)),Zt=ve(fn*Ye),Vt=ve(fn*Zt*ht),jt=ve((De+De)*Zt);(0,i.isNegativeLE)(jt,ye)&&(jt=ve(-jt));let Jt=ve(gt*Vt),Xt=ve(jt*Jt);if(!et||(0,i.isNegativeLE)(Xt,ye)||Jt===p)throw new Error(xe);return new j(new e.ed25519.ExtendedPoint(jt,Jt,h,Xt))}toRawBytes(){let{ex:ne,ey:ae,ez:pe,et:ye}=this.ep,ve=e.ed25519.CURVE.Fp.ORDER,xe=e.ed25519.CURVE.Fp.create,De=xe(xe(pe+ae)*xe(pe-ae)),Ge=xe(ne*ae),gt=xe(Ge*Ge),{value:Ye}=H(xe(De*gt)),lt=xe(Ye*De),At=xe(Ye*Ge),ht=xe(lt*At*ye),et;if((0,i.isNegativeLE)(ye*ht,ve)){let Zt=xe(ae*T),Vt=xe(ne*T);ne=Zt,ae=Vt,et=xe(lt*F)}else et=At;(0,i.isNegativeLE)(ne*ht,ve)&&(ae=xe(-ae));let fn=xe((pe-ae)*et);return(0,i.isNegativeLE)(fn,ve)&&(fn=xe(-fn)),(0,c.numberToBytesLE)(fn,32)}toHex(){return(0,c.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(ne){U(ne);let{ex:ae,ey:pe}=this.ep,{ex:ye,ey:ve}=ne.ep,xe=e.ed25519.CURVE.Fp.create,De=xe(ae*ve)===xe(pe*ye),Ge=xe(pe*ve)===xe(ae*ye);return De||Ge}add(ne){return U(ne),new j(this.ep.add(ne.ep))}subtract(ne){return U(ne),new j(this.ep.subtract(ne.ep))}multiply(ne){return new j(this.ep.multiply(ne))}multiplyUnsafe(ne){return new j(this.ep.multiplyUnsafe(ne))}double(){return new j(this.ep.double())}negate(){return new j(this.ep.negate())}}e.RistrettoPoint=(j.BASE||(j.BASE=new j(e.ed25519.ExtendedPoint.BASE)),j.ZERO||(j.ZERO=new j(e.ed25519.ExtendedPoint.ZERO)),j),e.hashToRistretto255=(te,ne)=>{let ae=ne.DST,pe=typeof ae==\"string\"?(0,n.utf8ToBytes)(ae):ae,ye=(0,o.expand_message_xmd)(te,pe,64,t.sha512);return j.hashToCurve(ye)},e.hash_to_ristretto255=e.hashToRistretto255})(GJe);EXe={},Ux={};Object.defineProperty(Ux,\"__esModule\",{value:!0}),Ux.sha224=Ux.sha256=Ux.SHA256=void 0;U0e=Bx,vg=jx,B7t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yS=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),bS=new Uint32Array(64),LU=class extends U0e.HashMD{constructor(){super(64,32,8,!1),this.A=0|yS[0],this.B=0|yS[1],this.C=0|yS[2],this.D=0|yS[3],this.E=0|yS[4],this.F=0|yS[5],this.G=0|yS[6],this.H=0|yS[7]}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:u}=this;return[t,n,r,o,i,a,c,u]}set(t,n,r,o,i,a,c,u){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|a,this.G=0|c,this.H=0|u}process(t,n){for(let h=0;h<16;h++,n+=4)bS[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=bS[h-15],y=bS[h-2],v=(0,vg.rotr)(g,7)^(0,vg.rotr)(g,18)^g>>>3,x=(0,vg.rotr)(y,17)^(0,vg.rotr)(y,19)^y>>>10;bS[h]=x+bS[h-7]+v+bS[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let g=p+((0,vg.rotr)(c,6)^(0,vg.rotr)(c,11)^(0,vg.rotr)(c,25))+(0,U0e.Chi)(c,u,d)+B7t[h]+bS[h]|0,y=((0,vg.rotr)(r,2)^(0,vg.rotr)(r,13)^(0,vg.rotr)(r,22))+(0,U0e.Maj)(r,o,i)|0;p=d,d=u,u=c,c=a+g|0,a=i,i=o,o=r,r=g+y|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,o,i,a,c,u,d,p)}roundClean(){bS.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};Ux.SHA256=LU;yge=class extends LU{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};Ux.sha256=(0,vg.wrapConstructor)((()=>new LU)),Ux.sha224=(0,vg.wrapConstructor)((()=>new yge));AX={},cye={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hmac=e.HMAC=void 0;let t=_m,n=jx;class r extends n.Hash{constructor(i,a){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);let c=(0,n.toBytes)(a);if(this.iHash=i.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let u=this.blockLen,d=new Uint8Array(u);d.set(c.length>u?i.create().update(c).digest():c);for(let p=0;p<d.length;p++)d[p]^=54;this.iHash.update(d),this.oHash=i.create();for(let p=0;p<d.length;p++)d[p]^=106;this.oHash.update(d),d.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){let i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));let{oHash:a,iHash:c,finished:u,destroyed:d,blockLen:p,outputLen:h}=this;return i.finished=u,i.destroyed=d,i.blockLen=p,i.outputLen=h,i.oHash=a._cloneInto(i.oHash),i.iHash=c._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=r,e.hmac=(o,i,a)=>new r(o,i).update(a).digest(),e.hmac.create=(o,i)=>new r(o,i)})(cye);uye={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.DER=void 0,e.weierstrassPoints=y,e.weierstrass=function(x){let R=(function(te){let ne=(0,t.validateBasic)(te);return r.validateObject(ne,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...ne})})(x),{Fp:S,n:M}=R,P=S.BYTES+1,z=2*S.BYTES+1;function V(te){return n.mod(te,M)}function Q(te){return n.invert(te,M)}let{ProjectivePoint:$,normPrivateKeyToScalar:oe,weierstrassEquation:J,isWithinCurveOrder:re}=y({...R,toBytes(te,ne,ae){let pe=ne.toAffine(),ye=S.toBytes(pe.x),ve=r.concatBytes;return(0,o.abool)(\"isCompressed\",ae),ae?ve(Uint8Array.from([ne.hasEvenY()?2:3]),ye):ve(Uint8Array.from([4]),ye,S.toBytes(pe.y))},fromBytes(te){let ne=te.length,ae=te[0],pe=te.subarray(1);if(ne!==P||ae!==2&&ae!==3){if(ne===z&&ae===4)return{x:S.fromBytes(pe.subarray(0,S.BYTES)),y:S.fromBytes(pe.subarray(S.BYTES,2*S.BYTES))};throw new Error(`Point of length ${ne} was invalid. Expected ${P} compressed bytes or ${z} uncompressed bytes`)}{let ye=r.bytesToNumberBE(pe);if(!r.inRange(ye,d,S.ORDER))throw new Error(\"Point is not on curve\");let ve=J(ye),xe;try{xe=S.sqrt(ve)}catch(De){let Ge=De instanceof Error?\": \"+De.message:\"\";throw new Error(\"Point is not on curve\"+Ge)}return(1&ae)==1!=((xe&d)===d)&&(xe=S.neg(xe)),{x:ye,y:xe}}}}),q=te=>r.bytesToHex(r.numberToBytesBE(te,R.nByteLength));function K(te){return te>M>>d}let U=(te,ne,ae)=>r.bytesToNumberBE(te.slice(ne,ae));class T{constructor(ne,ae,pe){this.r=ne,this.s=ae,this.recovery=pe,this.assertValidity()}static fromCompact(ne){let ae=R.nByteLength;return ne=(0,o.ensureBytes)(\"compactSignature\",ne,2*ae),new T(U(ne,0,ae),U(ne,ae,2*ae))}static fromDER(ne){let{r:ae,s:pe}=e.DER.toSig((0,o.ensureBytes)(\"DER\",ne));return new T(ae,pe)}assertValidity(){r.aInRange(\"r\",this.r,d,M),r.aInRange(\"s\",this.s,d,M)}addRecoveryBit(ne){return new T(this.r,this.s,ne)}recoverPublicKey(ne){let{r:ae,s:pe,recovery:ye}=this,ve=B((0,o.ensureBytes)(\"msgHash\",ne));if(ye==null||![0,1,2,3].includes(ye))throw new Error(\"recovery id invalid\");let xe=ye===2||ye===3?ae+R.n:ae;if(xe>=S.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let De=(1&ye)==0?\"02\":\"03\",Ge=$.fromHex(De+q(xe)),gt=Q(xe),Ye=V(-ve*gt),lt=V(pe*gt),At=$.BASE.multiplyAndAddUnsafe(Ge,Ye,lt);if(!At)throw new Error(\"point at infinify\");return At.assertValidity(),At}hasHighS(){return K(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,V(-this.s),this.recovery):this}toDERRawBytes(){return r.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return r.hexToBytes(this.toCompactHex())}toCompactHex(){return q(this.r)+q(this.s)}}let k={isValidPrivateKey(te){try{return oe(te),!0}catch{return!1}},normPrivateKeyToScalar:oe,randomPrivateKey:()=>{let te=n.getMinHashLength(R.n);return n.mapHashToField(R.randomBytes(te),R.n)},precompute:(te=8,ne=$.BASE)=>(ne._setWindowSize(te),ne.multiply(BigInt(3)),ne)};function F(te){let ne=r.isBytes(te),ae=typeof te==\"string\",pe=(ne||ae)&&te.length;return ne?pe===P||pe===z:ae?pe===2*P||pe===2*z:te instanceof $}let N=R.bits2int||function(te){let ne=r.bytesToNumberBE(te),ae=8*te.length-R.nBitLength;return ae>0?ne>>BigInt(ae):ne},B=R.bits2int_modN||function(te){return V(N(te))},H=r.bitMask(R.nBitLength);function W(te){return r.aInRange(`num < 2^${R.nBitLength}`,te,u,H),r.numberToBytesBE(te,R.nByteLength)}function G(te,ne,ae=O){if([\"recovered\",\"canonical\"].some((ht=>ht in ae)))throw new Error(\"sign() legacy options not supported\");let{hash:pe,randomBytes:ye}=R,{lowS:ve,prehash:xe,extraEntropy:De}=ae;ve==null&&(ve=!0),te=(0,o.ensureBytes)(\"msgHash\",te),i(ae),xe&&(te=(0,o.ensureBytes)(\"prehashed msgHash\",pe(te)));let Ge=B(te),gt=oe(ne),Ye=[W(gt),W(Ge)];if(De!=null&&De!==!1){let ht=De===!0?ye(S.BYTES):De;Ye.push((0,o.ensureBytes)(\"extraEntropy\",ht))}let lt=r.concatBytes(...Ye),At=Ge;return{seed:lt,k2sig:function(ht){let et=N(ht);if(!re(et))return;let fn=Q(et),Zt=$.BASE.multiply(et).toAffine(),Vt=V(Zt.x);if(Vt===u)return;let jt=V(fn*V(At+Vt*gt));if(jt===u)return;let Jt=(Zt.x===Vt?0:2)|Number(Zt.y&d),Xt=jt;return ve&&K(jt)&&(Xt=(function(sr){return K(sr)?V(-sr):sr})(jt),Jt^=1),new T(Vt,Xt,Jt)}}}let O={lowS:R.lowS,prehash:!1},j={lowS:R.lowS,prehash:!1};return $.BASE._setWindowSize(8),{CURVE:R,getPublicKey:function(te,ne=!0){return $.fromPrivateKey(te).toRawBytes(ne)},getSharedSecret:function(te,ne,ae=!0){if(F(te))throw new Error(\"first arg must be private key\");if(!F(ne))throw new Error(\"second arg must be public key\");return $.fromHex(ne).multiply(oe(te)).toRawBytes(ae)},sign:function(te,ne,ae=O){let{seed:pe,k2sig:ye}=G(te,ne,ae),ve=R;return r.createHmacDrbg(ve.hash.outputLen,ve.nByteLength,ve.hmac)(pe,ye)},verify:function(te,ne,ae,pe=j){let ye=te;if(ne=(0,o.ensureBytes)(\"msgHash\",ne),ae=(0,o.ensureBytes)(\"publicKey\",ae),\"strict\"in pe)throw new Error(\"options.strict was renamed to lowS\");i(pe);let{lowS:ve,prehash:xe}=pe,De,Ge;try{if(typeof ye==\"string\"||r.isBytes(ye))try{De=T.fromDER(ye)}catch(Vt){if(!(Vt instanceof e.DER.Err))throw Vt;De=T.fromCompact(ye)}else{if(typeof ye!=\"object\"||typeof ye.r!=\"bigint\"||typeof ye.s!=\"bigint\")throw new Error(\"PARSE\");{let{r:Vt,s:jt}=ye;De=new T(Vt,jt)}}Ge=$.fromHex(ae)}catch(Vt){if(Vt.message===\"PARSE\")throw new Error(\"signature must be Signature instance, Uint8Array or hex string\");return!1}if(ve&&De.hasHighS())return!1;xe&&(ne=R.hash(ne));let{r:gt,s:Ye}=De,lt=B(ne),At=Q(Ye),ht=V(lt*At),et=V(gt*At),fn=$.BASE.multiplyAndAddUnsafe(Ge,ht,et)?.toAffine();return fn?V(fn.x)===gt:!1},ProjectivePoint:$,Signature:T,utils:k}},e.SWUFpSqrtRatio=v,e.mapToCurveSimpleSWU=function(x,R){if(n.validateField(x),!x.isValid(R.A)||!x.isValid(R.B)||!x.isValid(R.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let S=v(x,R.Z);if(!x.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return M=>{let P,z,V,Q,$,oe,J,re;P=x.sqr(M),P=x.mul(P,R.Z),z=x.sqr(P),z=x.add(z,P),V=x.add(z,x.ONE),V=x.mul(V,R.B),Q=x.cmov(R.Z,x.neg(z),!x.eql(z,x.ZERO)),Q=x.mul(Q,R.A),z=x.sqr(V),oe=x.sqr(Q),$=x.mul(oe,R.A),z=x.add(z,$),z=x.mul(z,V),oe=x.mul(oe,Q),$=x.mul(oe,R.B),z=x.add(z,$),J=x.mul(P,V);let{isValid:q,value:K}=S(z,oe);re=x.mul(P,M),re=x.mul(re,K),J=x.cmov(J,V,q),re=x.cmov(re,K,q);let U=x.isOdd(M)===x.isOdd(re);return re=x.cmov(x.neg(re),re,U),J=x.div(J,Q),{x:J,y:re}}};let t=kN,n=bi,r=Kr,o=Kr;function i(x){x.lowS!==void 0&&(0,o.abool)(\"lowS\",x.lowS),x.prehash!==void 0&&(0,o.abool)(\"prehash\",x.prehash)}let{bytesToNumberBE:a,hexToBytes:c}=r;e.DER={Err:class extends Error{constructor(x=\"\"){super(x)}},_tlv:{encode:(x,R)=>{let{Err:S}=e.DER;if(x<0||x>256)throw new S(\"tlv.encode: wrong tag\");if(1&R.length)throw new S(\"tlv.encode: unpadded data\");let M=R.length/2,P=r.numberToHexUnpadded(M);if(P.length/2&128)throw new S(\"tlv.encode: long form length too big\");let z=M>127?r.numberToHexUnpadded(P.length/2|128):\"\";return`${r.numberToHexUnpadded(x)}${z}${P}${R}`},decode(x,R){let{Err:S}=e.DER,M=0;if(x<0||x>256)throw new S(\"tlv.encode: wrong tag\");if(R.length<2||R[M++]!==x)throw new S(\"tlv.decode: wrong tlv\");let P=R[M++],z=0;if(128&P){let Q=127&P;if(!Q)throw new S(\"tlv.decode(long): indefinite length not supported\");if(Q>4)throw new S(\"tlv.decode(long): byte length is too big\");let $=R.subarray(M,M+Q);if($.length!==Q)throw new S(\"tlv.decode: length bytes not complete\");if($[0]===0)throw new S(\"tlv.decode(long): zero leftmost byte\");for(let oe of $)z=z<<8|oe;if(M+=Q,z<128)throw new S(\"tlv.decode(long): not minimal encoding\")}else z=P;let V=R.subarray(M,M+z);if(V.length!==z)throw new S(\"tlv.decode: wrong value length\");return{v:V,l:R.subarray(M+z)}}},_int:{encode(x){let{Err:R}=e.DER;if(x<u)throw new R(\"integer: negative integers are not allowed\");let S=r.numberToHexUnpadded(x);if(8&Number.parseInt(S[0],16)&&(S=\"00\"+S),1&S.length)throw new R(\"unexpected assertion\");return S},decode(x){let{Err:R}=e.DER;if(128&x[0])throw new R(\"Invalid signature integer: negative\");if(x[0]===0&&!(128&x[1]))throw new R(\"Invalid signature integer: unnecessary leading zero\");return a(x)}},toSig(x){let{Err:R,_int:S,_tlv:M}=e.DER,P=typeof x==\"string\"?c(x):x;r.abytes(P);let{v:z,l:V}=M.decode(48,P);if(V.length)throw new R(\"Invalid signature: left bytes after parsing\");let{v:Q,l:$}=M.decode(2,z),{v:oe,l:J}=M.decode(2,$);if(J.length)throw new R(\"Invalid signature: left bytes after parsing\");return{r:S.decode(Q),s:S.decode(oe)}},hexFromSig(x){let{_tlv:R,_int:S}=e.DER,M=`${R.encode(2,S.encode(x.r))}${R.encode(2,S.encode(x.s))}`;return R.encode(48,M)}};let u=BigInt(0),d=BigInt(1),p=BigInt(2),h=BigInt(3),g=BigInt(4);function y(x){let R=(function(U){let T=(0,t.validateBasic)(U);r.validateObject(T,{a:\"field\",b:\"field\"},{allowedPrivateKeyLengths:\"array\",wrapPrivateKey:\"boolean\",isTorsionFree:\"function\",clearCofactor:\"function\",allowInfinityPoint:\"boolean\",fromBytes:\"function\",toBytes:\"function\"});let{endo:k,Fp:F,a:N}=T;if(k){if(!F.eql(N,F.ZERO))throw new Error(\"Endomorphism can only be defined for Koblitz curves that have a=0\");if(typeof k!=\"object\"||typeof k.beta!=\"bigint\"||typeof k.splitScalar!=\"function\")throw new Error(\"Expected endomorphism with beta: bigint and splitScalar: function\")}return Object.freeze({...T})})(x),{Fp:S}=R,M=n.Field(R.n,R.nBitLength),P=R.toBytes||((U,T,k)=>{let F=T.toAffine();return r.concatBytes(Uint8Array.from([4]),S.toBytes(F.x),S.toBytes(F.y))}),z=R.fromBytes||(U=>{let T=U.subarray(1);return{x:S.fromBytes(T.subarray(0,S.BYTES)),y:S.fromBytes(T.subarray(S.BYTES,2*S.BYTES))}});function V(U){let{a:T,b:k}=R,F=S.sqr(U),N=S.mul(F,U);return S.add(S.add(N,S.mul(U,T)),k)}if(!S.eql(S.sqr(R.Gy),V(R.Gx)))throw new Error(\"bad generator point: equation left != right\");function Q(U){let{allowedPrivateKeyLengths:T,nByteLength:k,wrapPrivateKey:F,n:N}=R;if(T&&typeof U!=\"bigint\"){if(r.isBytes(U)&&(U=r.bytesToHex(U)),typeof U!=\"string\"||!T.includes(U.length))throw new Error(\"Invalid key\");U=U.padStart(2*k,\"0\")}let B;try{B=typeof U==\"bigint\"?U:r.bytesToNumberBE((0,o.ensureBytes)(\"private key\",U,k))}catch{throw new Error(`private key must be ${k} bytes, hex or bigint, not ${typeof U}`)}return F&&(B=n.mod(B,N)),r.aInRange(\"private key\",B,d,N),B}function $(U){if(!(U instanceof re))throw new Error(\"ProjectivePoint expected\")}let oe=(0,o.memoized)(((U,T)=>{let{px:k,py:F,pz:N}=U;if(S.eql(N,S.ONE))return{x:k,y:F};let B=U.is0();T==null&&(T=B?S.ONE:S.inv(N));let H=S.mul(k,T),W=S.mul(F,T),G=S.mul(N,T);if(B)return{x:S.ZERO,y:S.ZERO};if(!S.eql(G,S.ONE))throw new Error(\"invZ was invalid\");return{x:H,y:W}})),J=(0,o.memoized)((U=>{if(U.is0()){if(R.allowInfinityPoint&&!S.is0(U.py))return;throw new Error(\"bad point: ZERO\")}let{x:T,y:k}=U.toAffine();if(!S.isValid(T)||!S.isValid(k))throw new Error(\"bad point: x or y not FE\");let F=S.sqr(k),N=V(T);if(!S.eql(F,N))throw new Error(\"bad point: equation left != right\");if(!U.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0}));class re{constructor(T,k,F){if(this.px=T,this.py=k,this.pz=F,T==null||!S.isValid(T))throw new Error(\"x required\");if(k==null||!S.isValid(k))throw new Error(\"y required\");if(F==null||!S.isValid(F))throw new Error(\"z required\");Object.freeze(this)}static fromAffine(T){let{x:k,y:F}=T||{};if(!T||!S.isValid(k)||!S.isValid(F))throw new Error(\"invalid affine point\");if(T instanceof re)throw new Error(\"projective point not allowed\");let N=B=>S.eql(B,S.ZERO);return N(k)&&N(F)?re.ZERO:new re(k,F,S.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(T){let k=S.invertBatch(T.map((F=>F.pz)));return T.map(((F,N)=>F.toAffine(k[N]))).map(re.fromAffine)}static fromHex(T){let k=re.fromAffine(z((0,o.ensureBytes)(\"pointHex\",T)));return k.assertValidity(),k}static fromPrivateKey(T){return re.BASE.multiply(Q(T))}static msm(T,k){return(0,t.pippenger)(re,M,T,k)}_setWindowSize(T){K.setWindowSize(this,T)}assertValidity(){J(this)}hasEvenY(){let{y:T}=this.toAffine();if(S.isOdd)return!S.isOdd(T);throw new Error(\"Field doesn\\'t support isOdd\")}equals(T){$(T);let{px:k,py:F,pz:N}=this,{px:B,py:H,pz:W}=T,G=S.eql(S.mul(k,W),S.mul(B,N)),O=S.eql(S.mul(F,W),S.mul(H,N));return G&&O}negate(){return new re(this.px,S.neg(this.py),this.pz)}double(){let{a:T,b:k}=R,F=S.mul(k,h),{px:N,py:B,pz:H}=this,W=S.ZERO,G=S.ZERO,O=S.ZERO,j=S.mul(N,N),te=S.mul(B,B),ne=S.mul(H,H),ae=S.mul(N,B);return ae=S.add(ae,ae),O=S.mul(N,H),O=S.add(O,O),W=S.mul(T,O),G=S.mul(F,ne),G=S.add(W,G),W=S.sub(te,G),G=S.add(te,G),G=S.mul(W,G),W=S.mul(ae,W),O=S.mul(F,O),ne=S.mul(T,ne),ae=S.sub(j,ne),ae=S.mul(T,ae),ae=S.add(ae,O),O=S.add(j,j),j=S.add(O,j),j=S.add(j,ne),j=S.mul(j,ae),G=S.add(G,j),ne=S.mul(B,H),ne=S.add(ne,ne),j=S.mul(ne,ae),W=S.sub(W,j),O=S.mul(ne,te),O=S.add(O,O),O=S.add(O,O),new re(W,G,O)}add(T){$(T);let{px:k,py:F,pz:N}=this,{px:B,py:H,pz:W}=T,G=S.ZERO,O=S.ZERO,j=S.ZERO,te=R.a,ne=S.mul(R.b,h),ae=S.mul(k,B),pe=S.mul(F,H),ye=S.mul(N,W),ve=S.add(k,F),xe=S.add(B,H);ve=S.mul(ve,xe),xe=S.add(ae,pe),ve=S.sub(ve,xe),xe=S.add(k,N);let De=S.add(B,W);return xe=S.mul(xe,De),De=S.add(ae,ye),xe=S.sub(xe,De),De=S.add(F,N),G=S.add(H,W),De=S.mul(De,G),G=S.add(pe,ye),De=S.sub(De,G),j=S.mul(te,xe),G=S.mul(ne,ye),j=S.add(G,j),G=S.sub(pe,j),j=S.add(pe,j),O=S.mul(G,j),pe=S.add(ae,ae),pe=S.add(pe,ae),ye=S.mul(te,ye),xe=S.mul(ne,xe),pe=S.add(pe,ye),ye=S.sub(ae,ye),ye=S.mul(te,ye),xe=S.add(xe,ye),ae=S.mul(pe,xe),O=S.add(O,ae),ae=S.mul(De,xe),G=S.mul(ve,G),G=S.sub(G,ae),ae=S.mul(ve,pe),j=S.mul(De,j),j=S.add(j,ae),new re(G,O,j)}subtract(T){return this.add(T.negate())}is0(){return this.equals(re.ZERO)}wNAF(T){return K.wNAFCached(this,T,re.normalizeZ)}multiplyUnsafe(T){r.aInRange(\"scalar\",T,u,R.n);let k=re.ZERO;if(T===u)return k;if(T===d)return this;let{endo:F}=R;if(!F)return K.unsafeLadder(this,T);let{k1neg:N,k1:B,k2neg:H,k2:W}=F.splitScalar(T),G=k,O=k,j=this;for(;B>u||W>u;)B&d&&(G=G.add(j)),W&d&&(O=O.add(j)),j=j.double(),B>>=d,W>>=d;return N&&(G=G.negate()),H&&(O=O.negate()),O=new re(S.mul(O.px,F.beta),O.py,O.pz),G.add(O)}multiply(T){let{endo:k,n:F}=R,N,B;if(r.aInRange(\"scalar\",T,d,F),k){let{k1neg:H,k1:W,k2neg:G,k2:O}=k.splitScalar(T),{p:j,f:te}=this.wNAF(W),{p:ne,f:ae}=this.wNAF(O);j=K.constTimeNegate(H,j),ne=K.constTimeNegate(G,ne),ne=new re(S.mul(ne.px,k.beta),ne.py,ne.pz),N=j.add(ne),B=te.add(ae)}else{let{p:H,f:W}=this.wNAF(T);N=H,B=W}return re.normalizeZ([N,B])[0]}multiplyAndAddUnsafe(T,k,F){let N=re.BASE,B=(W,G)=>G!==u&&G!==d&&W.equals(N)?W.multiply(G):W.multiplyUnsafe(G),H=B(this,k).add(B(T,F));return H.is0()?void 0:H}toAffine(T){return oe(this,T)}isTorsionFree(){let{h:T,isTorsionFree:k}=R;if(T===d)return!0;if(k)return k(re,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:T,clearCofactor:k}=R;return T===d?this:k?k(re,this):this.multiplyUnsafe(R.h)}toRawBytes(T=!0){return(0,o.abool)(\"isCompressed\",T),this.assertValidity(),P(re,this,T)}toHex(T=!0){return(0,o.abool)(\"isCompressed\",T),r.bytesToHex(this.toRawBytes(T))}}re.BASE=new re(R.Gx,R.Gy,S.ONE),re.ZERO=new re(S.ZERO,S.ONE,S.ZERO);let q=R.nBitLength,K=(0,t.wNAF)(re,R.endo?Math.ceil(q/2):q);return{CURVE:R,ProjectivePoint:re,normPrivateKeyToScalar:Q,weierstrassEquation:V,isWithinCurveOrder:function(U){return r.inRange(U,d,R.n)}}}function v(x,R){let S=x.ORDER,M=u;for(let U=S-d;U%p===u;U/=p)M+=d;let P=M,z=p<<P-d-d,V=z*p,Q=(S-d)/V,$=(Q-d)/p,oe=V-d,J=z,re=x.pow(R,Q),q=x.pow(R,(Q+d)/p),K=(U,T)=>{let k=re,F=x.pow(T,oe),N=x.sqr(F);N=x.mul(N,T);let B=x.mul(U,N);B=x.pow(B,$),B=x.mul(B,F),F=x.mul(B,T),N=x.mul(B,U);let H=x.mul(N,F);B=x.pow(H,J);let W=x.eql(B,x.ONE);F=x.mul(N,q),B=x.mul(H,k),N=x.cmov(F,N,W),H=x.cmov(B,H,W);for(let G=P;G>d;G--){let O=G-p;O=p<<O-d;let j=x.pow(H,O),te=x.eql(j,x.ONE);F=x.mul(N,k),k=x.mul(k,k),j=x.mul(H,k),N=x.cmov(F,N,te),H=x.cmov(j,H,te)}return{isValid:W,value:N}};if(x.ORDER%g===h){let U=(x.ORDER-h)/g,T=x.sqrt(x.neg(R));K=(k,F)=>{let N=x.sqr(F),B=x.mul(k,F);N=x.mul(N,B);let H=x.pow(N,U);H=x.mul(H,B);let W=x.mul(H,T),G=x.mul(x.sqr(H),F),O=x.eql(G,k);return{isValid:O,value:x.cmov(W,H,O)}}}return K}})(uye),Object.defineProperty(AX,\"__esModule\",{value:!0}),AX.getHash=UZe,AX.createCurve=function(e,t){let n=r=>(0,F7t.weierstrass)({...e,...UZe(r)});return Object.freeze({...n(t),create:n})};U7t=cye,BZe=jx,F7t=uye;(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;let t=Ux,n=jx,r=AX,o=AS,i=bi,a=Kr,c=uye,u=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),d=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),p=BigInt(1),h=BigInt(2),g=(B,H)=>(B+H/h)/H;function y(B){let H=u,W=BigInt(3),G=BigInt(6),O=BigInt(11),j=BigInt(22),te=BigInt(23),ne=BigInt(44),ae=BigInt(88),pe=B*B*B%H,ye=pe*pe*B%H,ve=(0,i.pow2)(ye,W,H)*ye%H,xe=(0,i.pow2)(ve,W,H)*ye%H,De=(0,i.pow2)(xe,h,H)*pe%H,Ge=(0,i.pow2)(De,O,H)*De%H,gt=(0,i.pow2)(Ge,j,H)*Ge%H,Ye=(0,i.pow2)(gt,ne,H)*gt%H,lt=(0,i.pow2)(Ye,ae,H)*Ye%H,At=(0,i.pow2)(lt,ne,H)*gt%H,ht=(0,i.pow2)(At,W,H)*ye%H,et=(0,i.pow2)(ht,te,H)*Ge%H,fn=(0,i.pow2)(et,G,H)*pe%H,Zt=(0,i.pow2)(fn,h,H);if(!v.eql(v.sqr(Zt),B))throw new Error(\"Cannot find square root\");return Zt}let v=(0,i.Field)(u,void 0,void 0,{sqrt:y});e.secp256k1=(0,r.createCurve)({a:BigInt(0),b:BigInt(7),Fp:v,n:d,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:B=>{let H=d,W=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),G=-p*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),O=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),j=W,te=BigInt(\"0x100000000000000000000000000000000\"),ne=g(j*B,H),ae=g(-G*B,H),pe=(0,i.mod)(B-ne*W-ae*O,H),ye=(0,i.mod)(-ne*G-ae*j,H),ve=pe>te,xe=ye>te;if(ve&&(pe=H-pe),xe&&(ye=H-ye),pe>te||ye>te)throw new Error(\"splitScalar: Endomorphism failed, k=\"+B);return{k1neg:ve,k1:pe,k2neg:xe,k2:ye}}}},t.sha256);let x=BigInt(0),R={};function S(B,...H){let W=R[B];if(W===void 0){let G=(0,t.sha256)(Uint8Array.from(B,(O=>O.charCodeAt(0))));W=(0,a.concatBytes)(G,G),R[B]=W}return(0,t.sha256)((0,a.concatBytes)(W,...H))}let M=B=>B.toRawBytes(!0).slice(1),P=B=>(0,a.numberToBytesBE)(B,32),z=B=>(0,i.mod)(B,u),V=B=>(0,i.mod)(B,d),Q=e.secp256k1.ProjectivePoint,$=(B,H,W)=>Q.BASE.multiplyAndAddUnsafe(B,H,W);function oe(B){let H=e.secp256k1.utils.normPrivateKeyToScalar(B),W=Q.fromPrivateKey(H);return{scalar:W.hasEvenY()?H:V(-H),bytes:M(W)}}function J(B){(0,a.aInRange)(\"x\",B,p,u);let H=z(B*B),W=y(z(H*B+BigInt(7)));W%h!==x&&(W=z(-W));let G=new Q(B,W,p);return G.assertValidity(),G}let re=a.bytesToNumberBE;function q(...B){return V(re(S(\"BIP0340/challenge\",...B)))}function K(B){return oe(B).bytes}function U(B,H,W=(0,n.randomBytes)(32)){let G=(0,a.ensureBytes)(\"message\",B),{bytes:O,scalar:j}=oe(H),te=(0,a.ensureBytes)(\"auxRand\",W,32),ne=P(j^re(S(\"BIP0340/aux\",te))),ae=S(\"BIP0340/nonce\",ne,O,G),pe=V(re(ae));if(pe===x)throw new Error(\"sign failed: k is zero\");let{bytes:ye,scalar:ve}=oe(pe),xe=q(ye,O,G),De=new Uint8Array(64);if(De.set(ye,0),De.set(P(V(ve+xe*j)),32),!T(De,G,O))throw new Error(\"sign: Invalid signature produced\");return De}function T(B,H,W){let G=(0,a.ensureBytes)(\"signature\",B,64),O=(0,a.ensureBytes)(\"message\",H),j=(0,a.ensureBytes)(\"publicKey\",W,32);try{let te=J(re(j)),ne=re(G.subarray(0,32));if(!(0,a.inRange)(ne,p,u))return!1;let ae=re(G.subarray(32,64));if(!(0,a.inRange)(ae,p,d))return!1;let pe=q(P(ne),M(te),O),ye=$(te,ae,V(-pe));return!(!ye||!ye.hasEvenY()||ye.toAffine().x!==ne)}catch{return!1}}e.schnorr={getPublicKey:K,sign:U,verify:T,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:J,pointToBytes:M,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:S,mod:i.mod}};let k=(0,o.isogenyMap)(v,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map((B=>B.map((H=>BigInt(H)))))),F=(0,c.mapToCurveSimpleSWU)(v,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:v.create(BigInt(\"-11\"))}),N=(0,o.createHasher)(e.secp256k1.ProjectivePoint,(B=>{let{x:H,y:W}=F(v.create(B[0]));return k(H,W)}),{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:v.ORDER,m:1,k:128,expand:\"xmd\",hash:t.sha256});e.hashToCurve=N.hashToCurve,e.encodeToCurve=N.encodeToCurve})(EXe);bge={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.decodeHex=e.remove0x=void 0;var t=Cm;e.remove0x=function(n){return n.startsWith(\"0x\")||n.startsWith(\"0X\")?n.slice(2):n},e.decodeHex=function(n){return(0,t.hexToBytes)((0,e.remove0x)(n))}})(bge),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var t=iye,n=GJe,r=EXe,o=MU,i=Yu,a=bge;e.getValidSecret=function(){var p;do p=(0,t.randomBytes)(i.SECRET_KEY_LENGTH);while(!(0,e.isValidPrivateKey)(p));return p},e.isValidPrivateKey=function(p){return c((0,o.ellipticCurve)(),(function(h){return h.utils.isValidPrivateKey(p)}),(function(){return!0}),(function(){return!0}))},e.getPublicKey=function(p){return c((0,o.ellipticCurve)(),(function(h){return h.getPublicKey(p)}),(function(h){return h.getPublicKey(p)}),(function(h){return h.getPublicKey(p)}))},e.getSharedPoint=function(p,h,g){return c((0,o.ellipticCurve)(),(function(y){return y.getSharedSecret(p,h,g)}),(function(y){return y.getSharedSecret(p,h)}),(function(y){return d(y,p,h)}))},e.convertPublicKeyFormat=function(p,h){return c((0,o.ellipticCurve)(),(function(g){return g.getSharedSecret(BigInt(1),p,h)}),(function(){return p}),(function(){return p}))};function c(p,h,g,y){if(p===\"secp256k1\")return h(r.secp256k1);if(p===\"x25519\")return g(n.x25519);if(p===\"ed25519\")return y(n.ed25519);throw new Error(\"Not implemented\")}e.hexToPublicKey=function(p){var h=(0,a.decodeHex)(p);return c((0,o.ellipticCurve)(),(function(){return u(h)}),(function(){return h}),(function(){return h}))};var u=function(p){if(p.length===i.ETH_PUBLIC_KEY_SIZE){var h=new Uint8Array(1+p.length);return h.set([4]),h.set(p,1),h}return p},d=function(p,h,g){var y=p.utils.getExtendedPublicKey(h).scalar;return p.ExtendedPoint.fromHex(g).multiply(y).toRawBytes()}})(VJe);AXe={},NN={};Object.defineProperty(NN,\"__esModule\",{value:!0}),NN.hkdf=void 0,NN.extract=SXe,NN.expand=TXe;vge=_m,FZe=jx,_Xe=cye;F0e=new Uint8Array([0]),HZe=new Uint8Array;NN.hkdf=(e,t,n,r,o)=>TXe(e,SXe(e,t,n),r,o),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var t=Cm,n=NN,r=Ux;e.deriveKey=function(o,i,a){return(0,n.hkdf)(r.sha256,o,i,a,32)},e.getSharedKey=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return(0,e.deriveKey)(t.concatBytes.apply(void 0,o))}})(AXe);zZe={},UN={},Us={},RC={};Object.defineProperty(RC,\"__esModule\",{value:!0}),RC.polyval=RC.ghash=void 0,RC._toGHASHKey=CXe;IC=Hd,Qf=Cm,Nx=16,lye=new Uint8Array(16),Lv=(0,Qf.u32)(lye),Eg=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;YX=class{constructor(t,n){this.blockLen=Nx,this.outputLen=Nx,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,Qf.toBytes)(t),(0,IC.bytes)(t,16);let r=(0,Qf.createView)(t),o=r.getUint32(0,!1),i=r.getUint32(4,!1),a=r.getUint32(8,!1),c=r.getUint32(12,!1),u=[];for(let S=0;S<128;S++)u.push({s0:Eg(o),s1:Eg(i),s2:Eg(a),s3:Eg(c)}),{s0:o,s1:i,s2:a,s3:c}={s3:(h=a)<<31|(g=c)>>>1,s2:(p=i)<<31|h>>>1,s1:(d=o)<<31|p>>>1,s0:d>>>1^225<<24&-(1&g)};var d,p,h,g;let y=(S=>S>65536?8:S>1024?4:2)(n||1024);if(![1,2,4,8].includes(y))throw new Error(`ghash: wrong window size=${y}, should be 2, 4 or 8`);this.W=y;let v=128/y,x=this.windowSize=2**y,R=[];for(let S=0;S<v;S++)for(let M=0;M<x;M++){let P=0,z=0,V=0,Q=0;for(let $=0;$<y;$++){if(!(M>>>y-$-1&1))continue;let{s0:oe,s1:J,s2:re,s3:q}=u[y*S+$];P^=oe,z^=J,V^=re,Q^=q}R.push({s0:P,s1:z,s2:V,s3:Q})}this.t=R}_updateBlock(t,n,r,o){t^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;let{W:i,t:a,windowSize:c}=this,u=0,d=0,p=0,h=0,g=(1<<i)-1,y=0;for(let v of[t,n,r,o])for(let x=0;x<4;x++){let R=v>>>8*x&255;for(let S=8/i-1;S>=0;S--){let M=R>>>i*S&g,{s0:P,s1:z,s2:V,s3:Q}=a[y*c+M];u^=P,d^=z,p^=V,h^=Q,y+=1}}this.s0=u,this.s1=d,this.s2=p,this.s3=h}update(t){t=(0,Qf.toBytes)(t),(0,IC.exists)(this);let n=(0,Qf.u32)(t),r=Math.floor(t.length/Nx),o=t.length%Nx;for(let i=0;i<r;i++)this._updateBlock(n[4*i+0],n[4*i+1],n[4*i+2],n[4*i+3]);return o&&(lye.set(t.subarray(r*Nx)),this._updateBlock(Lv[0],Lv[1],Lv[2],Lv[3]),(0,Qf.clean)(Lv)),this}destroy(){let{t}=this;for(let n of t)n.s0=0,n.s1=0,n.s2=0,n.s3=0}digestInto(t){(0,IC.exists)(this),(0,IC.output)(t,this),this.finished=!0;let{s0:n,s1:r,s2:o,s3:i}=this,a=(0,Qf.u32)(t);return a[0]=n,a[1]=r,a[2]=o,a[3]=i,t}digest(){let t=new Uint8Array(Nx);return this.digestInto(t),this.destroy(),t}},wge=class extends YX{constructor(t,n){t=(0,Qf.toBytes)(t);let r=CXe((0,Qf.copyBytes)(t));super(r,n),(0,Qf.clean)(r)}update(t){t=(0,Qf.toBytes)(t),(0,IC.exists)(this);let n=(0,Qf.u32)(t),r=t.length%Nx,o=Math.floor(t.length/Nx);for(let i=0;i<o;i++)this._updateBlock(Eg(n[4*i+3]),Eg(n[4*i+2]),Eg(n[4*i+1]),Eg(n[4*i+0]));return r&&(lye.set(t.subarray(o*Nx)),this._updateBlock(Eg(Lv[3]),Eg(Lv[2]),Eg(Lv[1]),Eg(Lv[0])),(0,Qf.clean)(Lv)),this}digestInto(t){(0,IC.exists)(this),(0,IC.output)(t,this),this.finished=!0;let{s0:n,s1:r,s2:o,s3:i}=this,a=(0,Qf.u32)(t);return a[0]=n,a[1]=r,a[2]=o,a[3]=i,t.reverse()}};RC.ghash=jZe(((e,t)=>new YX(e,t))),RC.polyval=jZe(((e,t)=>new wge(e,t))),Object.defineProperty(Us,\"__esModule\",{value:!0}),Us.unsafe=Us.aeskwp=Us.aeskw=Us.siv=Us.gcm=Us.cfb=Us.cbc=Us.ecb=Us.ctr=void 0,Us.expandKeyLE=x1,Us.expandKeyDecLE=BU;ko=Hd,xge=RC,wt=Cm,lh=16,uX=new Uint8Array(lh),H7t=283;Ege=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=dye(r))e[n]=r;let t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,wt.clean)(e),t})(),z7t=Ege.map(((e,t)=>Ege.indexOf(t))),j7t=e=>e<<24|e>>>8,H0e=e=>e<<8|e>>>24,ZX=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;fye=RXe(Ege,(e=>PN(e,3)<<24|e<<16|e<<8|PN(e,2))),IXe=RXe(z7t,(e=>PN(e,11)<<24|PN(e,13)<<16|PN(e,9)<<8|PN(e,14))),W7t=(()=>{let e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=dye(n))e[t]=n;return e})();Us.ctr=(0,wt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t){function n(r,o){if((0,ko.bytes)(r),o!==void 0&&((0,ko.bytes)(o),!(0,wt.isAligned32)(o)))throw new Error(\"unaligned destination\");let i=x1(e),a=(0,wt.copyBytes)(t),c=[i,a];(0,wt.isAligned32)(r)||c.push(r=(0,wt.copyBytes)(r));let u=OXe(i,a,r,o);return(0,wt.clean)(...c),u}return(0,ko.bytes)(e),(0,ko.bytes)(t,lh),{encrypt:(r,o)=>n(r,o),decrypt:(r,o)=>n(r,o)}})),Us.ecb=(0,wt.wrapCipher)({blockSize:16},(function(e,t={}){(0,ko.bytes)(e);let n=!t.disablePadding;return{encrypt(r,o){let{b:i,o:a,out:c}=VZe(r,n,o),u=x1(e),d=0;for(;d+4<=i.length;){let{s0:p,s1:h,s2:g,s3:y}=Jf(u,i[d+0],i[d+1],i[d+2],i[d+3]);a[d++]=p,a[d++]=h,a[d++]=g,a[d++]=y}if(n){let p=qZe(r.subarray(4*d)),{s0:h,s1:g,s2:y,s3:v}=Jf(u,p[0],p[1],p[2],p[3]);a[d++]=h,a[d++]=g,a[d++]=y,a[d++]=v}return(0,wt.clean)(u),c},decrypt(r,o){WZe(r);let i=BU(e),a=FN(r.length,o),c=[i];(0,wt.isAligned32)(r)||c.push(r=(0,wt.copyBytes)(r));let u=(0,wt.u32)(r),d=(0,wt.u32)(a);for(let p=0;p+4<=u.length;){let{s0:h,s1:g,s2:y,s3:v}=UU(i,u[p+0],u[p+1],u[p+2],u[p+3]);d[p++]=h,d[p++]=g,d[p++]=y,d[p++]=v}return(0,wt.clean)(...c),GZe(a,n)}}})),Us.cbc=(0,wt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t,n={}){(0,ko.bytes)(e),(0,ko.bytes)(t,16);let r=!n.disablePadding;return{encrypt(o,i){let a=x1(e),{b:c,o:u,out:d}=VZe(o,r,i),p=t,h=[a];(0,wt.isAligned32)(p)||h.push(p=(0,wt.copyBytes)(p));let g=(0,wt.u32)(p),y=g[0],v=g[1],x=g[2],R=g[3],S=0;for(;S+4<=c.length;)y^=c[S+0],v^=c[S+1],x^=c[S+2],R^=c[S+3],{s0:y,s1:v,s2:x,s3:R}=Jf(a,y,v,x,R),u[S++]=y,u[S++]=v,u[S++]=x,u[S++]=R;if(r){let M=qZe(o.subarray(4*S));y^=M[0],v^=M[1],x^=M[2],R^=M[3],{s0:y,s1:v,s2:x,s3:R}=Jf(a,y,v,x,R),u[S++]=y,u[S++]=v,u[S++]=x,u[S++]=R}return(0,wt.clean)(...h),d},decrypt(o,i){WZe(o);let a=BU(e),c=t,u=[a];(0,wt.isAligned32)(c)||u.push(c=(0,wt.copyBytes)(c));let d=(0,wt.u32)(c),p=FN(o.length,i);(0,wt.isAligned32)(o)||u.push(o=(0,wt.copyBytes)(o));let h=(0,wt.u32)(o),g=(0,wt.u32)(p),y=d[0],v=d[1],x=d[2],R=d[3];for(let S=0;S+4<=h.length;){let M=y,P=v,z=x,V=R;y=h[S+0],v=h[S+1],x=h[S+2],R=h[S+3];let{s0:Q,s1:$,s2:oe,s3:J}=UU(a,y,v,x,R);g[S++]=Q^M,g[S++]=$^P,g[S++]=oe^z,g[S++]=J^V}return(0,wt.clean)(...u),GZe(p,r)}}})),Us.cfb=(0,wt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t){function n(r,o,i){(0,ko.bytes)(r);let a=r.length;i=FN(a,i);let c=x1(e),u=t,d=[c];(0,wt.isAligned32)(u)||d.push(u=(0,wt.copyBytes)(u)),(0,wt.isAligned32)(r)||d.push(r=(0,wt.copyBytes)(r));let p=(0,wt.u32)(r),h=(0,wt.u32)(i),g=o?h:p,y=(0,wt.u32)(u),v=y[0],x=y[1],R=y[2],S=y[3];for(let P=0;P+4<=p.length;){let{s0:z,s1:V,s2:Q,s3:$}=Jf(c,v,x,R,S);h[P+0]=p[P+0]^z,h[P+1]=p[P+1]^V,h[P+2]=p[P+2]^Q,h[P+3]=p[P+3]^$,v=g[P++],x=g[P++],R=g[P++],S=g[P++]}let M=lh*Math.floor(p.length/4);if(M<a){({s0:v,s1:x,s2:R,s3:S}=Jf(c,v,x,R,S));let P=(0,wt.u8)(new Uint32Array([v,x,R,S]));for(let z=M,V=0;z<a;z++,V++)i[z]=r[z]^P[V];(0,wt.clean)(P)}return(0,wt.clean)(...d),i}return(0,ko.bytes)(e),(0,ko.bytes)(t,16),{encrypt:(r,o)=>n(r,!0,o),decrypt:(r,o)=>n(r,!1,o)}})),Us.gcm=(0,wt.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},(function(e,t,n){if((0,ko.bytes)(e),(0,ko.bytes)(t),n!==void 0&&(0,ko.bytes)(n),t.length<8)throw new Error(\"aes/gcm: invalid nonce length\");let r=16;function o(a,c,u){let d=kXe(xge.ghash,!1,a,u,n);for(let p=0;p<c.length;p++)d[p]^=c[p];return d}function i(){let a=x1(e),c=uX.slice(),u=uX.slice();if(MN(a,!1,u,u,c),t.length===12)u.set(t);else{let d=uX.slice(),p=(0,wt.createView)(d);(0,wt.setBigUint64)(p,8,BigInt(8*t.length),!1);let h=xge.ghash.create(c).update(t).update(d);h.digestInto(u),h.destroy()}return{xk:a,authKey:c,counter:u,tagMask:MN(a,!1,u,uX)}}return{encrypt(a){(0,ko.bytes)(a);let{xk:c,authKey:u,counter:d,tagMask:p}=i(),h=new Uint8Array(a.length+r),g=[c,u,d,p];(0,wt.isAligned32)(a)||g.push(a=(0,wt.copyBytes)(a)),MN(c,!1,d,a,h);let y=o(u,p,h.subarray(0,h.length-r));return g.push(y),h.set(y,a.length),(0,wt.clean)(...g),h},decrypt(a){if((0,ko.bytes)(a),a.length<r)throw new Error(\"aes/gcm: ciphertext less than tagLen (16)\");let{xk:c,authKey:u,counter:d,tagMask:p}=i(),h=[c,u,p,d];(0,wt.isAligned32)(a)||h.push(a=(0,wt.copyBytes)(a));let g=a.subarray(0,-16),y=a.subarray(-16),v=o(u,p,g);if(h.push(v),!(0,wt.equalBytes)(v,y))throw new Error(\"aes/gcm: invalid ghash tag\");let x=MN(c,!1,d,g);return(0,wt.clean)(...h),x}}}));lX=(e,t,n)=>r=>{if(!Number.isSafeInteger(r)||t>r||r>n)throw new Error(`${e}: invalid value=${r}, must be [${t}..${n}]`)};Us.siv=(0,wt.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},(function(e,t,n){let r=lX(\"AAD\",0,68719476736),o=lX(\"plaintext\",0,2**36),i=lX(\"nonce\",12,12),a=lX(\"ciphertext\",16,2**36+16);function c(){let p=x1(e),h=new Uint8Array(e.length),g=new Uint8Array(16),y=[p,h],v=t;(0,wt.isAligned32)(v)||y.push(v=(0,wt.copyBytes)(v));let x=(0,wt.u32)(v),R=0,S=x[0],M=x[1],P=x[2],z=0;for(let Q of[g,h].map(wt.u32)){let $=(0,wt.u32)(Q);for(let oe=0;oe<$.length;oe+=2){let{s0:J,s1:re}=Jf(p,R,S,M,P);$[oe+0]=J,$[oe+1]=re,R=++z}}let V={authKey:g,encKey:x1(h)};return(0,wt.clean)(...y),V}function u(p,h,g){let y=kXe(xge.polyval,!0,h,g,n);for(let P=0;P<12;P++)y[P]^=t[P];y[15]&=127;let v=(0,wt.u32)(y),x=v[0],R=v[1],S=v[2],M=v[3];return{s0:x,s1:R,s2:S,s3:M}=Jf(p,x,R,S,M),v[0]=x,v[1]=R,v[2]=S,v[3]=M,y}function d(p,h,g){let y=(0,wt.copyBytes)(h);y[15]|=128;let v=MN(p,!0,y,g);return(0,wt.clean)(y),v}return(0,ko.bytes)(e,16,24,32),(0,ko.bytes)(t),i(t.length),n!==void 0&&((0,ko.bytes)(n),r(n.length)),{encrypt(p){(0,ko.bytes)(p),o(p.length);let{encKey:h,authKey:g}=c(),y=u(h,g,p),v=[h,g,y];(0,wt.isAligned32)(p)||v.push(p=(0,wt.copyBytes)(p));let x=new Uint8Array(p.length+16);return x.set(y,p.length),x.set(d(h,y,p)),(0,wt.clean)(...v),x},decrypt(p){(0,ko.bytes)(p),a(p.length);let h=p.subarray(-16),{encKey:g,authKey:y}=c(),v=[g,y];(0,wt.isAligned32)(p)||v.push(p=(0,wt.copyBytes)(p));let x=d(g,h,p.subarray(0,-16)),R=u(g,y,x);if(v.push(R),!(0,wt.equalBytes)(h,R))throw(0,wt.clean)(...v),new Error(\"invalid polyval tag\");return(0,wt.clean)(...v),x}}}));QX={encrypt(e,t){if(t.length>=2**32)throw new Error(\"plaintext should be less than 4gb\");let n=x1(e);if(t.length===16)PXe(n,t);else{let r=(0,wt.u32)(t),o=r[0],i=r[1];for(let a=0,c=1;a<6;a++)for(let u=2;u<r.length;u+=2,c++){let{s0:d,s1:p,s2:h,s3:g}=Jf(n,o,i,r[u],r[u+1]);o=d,i=p^ZX(c),r[u]=h,r[u+1]=g}r[0]=o,r[1]=i}n.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error(\"ciphertext should be less than 4gb\");let n=BU(e),r=t.length/8-1;if(r===1)MXe(n,t);else{let o=(0,wt.u32)(t),i=o[0],a=o[1];for(let c=0,u=6*r;c<6;c++)for(let d=2*r;d>=1;d-=2,u--){a^=ZX(u);let{s0:p,s1:h,s2:g,s3:y}=UU(n,i,a,o[d],o[d+1]);i=p,a=h,o[d]=g,o[d+1]=y}o[0]=i,o[1]=a}n.fill(0)}},KZe=new Uint8Array(8).fill(166);Us.aeskw=(0,wt.wrapCipher)({blockSize:8},(e=>({encrypt(t){if((0,ko.bytes)(t),!t.length||t.length%8!=0)throw new Error(\"invalid plaintext length\");if(t.length===8)throw new Error(\"8-byte keys not allowed in AESKW, use AESKWP instead\");let n=(0,wt.concatBytes)(KZe,t);return QX.encrypt(e,n),n},decrypt(t){if((0,ko.bytes)(t),t.length%8!=0||t.length<24)throw new Error(\"invalid ciphertext length\");let n=(0,wt.copyBytes)(t);if(QX.decrypt(e,n),!(0,wt.equalBytes)(n.subarray(0,8),KZe))throw new Error(\"integrity check failed\");return n.subarray(0,8).fill(0),n.subarray(8)}})));YZe=2790873510;Us.aeskwp=(0,wt.wrapCipher)({blockSize:8},(e=>({encrypt(t){if((0,ko.bytes)(t),!t.length)throw new Error(\"invalid plaintext length\");let n=8*Math.ceil(t.length/8),r=new Uint8Array(8+n);r.set(t,8);let o=(0,wt.u32)(r);return o[0]=YZe,o[1]=ZX(t.length),QX.encrypt(e,r),r},decrypt(t){if((0,ko.bytes)(t),t.length<16)throw new Error(\"invalid ciphertext length\");let n=(0,wt.copyBytes)(t),r=(0,wt.u32)(n);QX.decrypt(e,n);let o=ZX(r[1])>>>0,i=8*Math.ceil(o/8);if(r[0]!==YZe||n.length-8!==i)throw new Error(\"integrity check failed\");for(let a=o;a<i;a++)if(n[8+a]!==0)throw new Error(\"integrity check failed\");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}}))),Us.unsafe={expandKeyLE:x1,expandKeyDecLE:BU,encrypt:Jf,decrypt:UU,encryptBlock:PXe,decryptBlock:MXe,ctrCounter:OXe,ctr32:MN},Object.defineProperty(UN,\"__esModule\",{value:!0}),UN.aes256cbc=UN.aes256gcm=void 0;DXe=Us;UN.aes256gcm=function(e,t,n){return(0,DXe.gcm)(e,t,n)};UN.aes256cbc=function(e,t,n){return(0,DXe.cbc)(e,t)};JX={},LXe={},DN={};Object.defineProperty(DN,\"__esModule\",{value:!0}),DN.sigma=void 0,DN.rotl=function(e,t){return e<<t|e>>>32-t},DN.createCipher=function(e,t){let{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:a}=(0,wg.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!=\"function\")throw new Error(\"core must be a function\");return(0,kx.number)(o),(0,kx.number)(a),(0,kx.bool)(i),(0,kx.bool)(n),(c,u,d,p,h=0)=>{(0,kx.bytes)(c),(0,kx.bytes)(u),(0,kx.bytes)(d);let g=d.length;if(p===void 0&&(p=new Uint8Array(g)),(0,kx.bytes)(p),(0,kx.number)(h),h<0||h>=ZZe)throw new Error(\"arx: counter overflow\");if(p.length<g)throw new Error(`arx: output (${p.length}) is shorter than data (${g})`);let y=[],v,x,R=c.length;if(R===32)y.push(v=(0,wg.copyBytes)(c)),x=UXe;else{if(R!==16||!n)throw new Error(`arx: invalid 32-byte key, got length=${R}`);v=new Uint8Array(32),v.set(c),v.set(c,16),x=q7t,y.push(v)}z0e(u)||y.push(u=(0,wg.copyBytes)(u));let S=(0,wg.u32)(v);if(r){if(u.length!==24)throw new Error(\"arx: extended nonce must be 24 bytes\");r(x,S,(0,wg.u32)(u.subarray(0,16)),S),u=u.subarray(16)}let M=16-o;if(M!==u.length)throw new Error(`arx: nonce must be ${M} or 16 bytes`);if(M!==12){let z=new Uint8Array(12);z.set(u,i?0:12-u.length),u=z,y.push(u)}let P=(0,wg.u32)(u);return(function(z,V,Q,$,oe,J,re,q){let K=oe.length,U=new Uint8Array(dX),T=(0,wg.u32)(U),k=z0e(oe)&&z0e(J),F=k?(0,wg.u32)(oe):QZe,N=k?(0,wg.u32)(J):QZe;for(let B=0;B<K;re++){if(z(V,Q,$,T,re,q),re>=ZZe)throw new Error(\"arx: counter overflow\");let H=Math.min(dX,K-B);if(k&&H===dX){let W=B/4;if(B%4!=0)throw new Error(\"arx: invalid block position\");for(let G,O=0;O<K7t;O++)G=W+O,N[G]=F[G]^T[O];B+=dX}else{for(let W,G=0;G<H;G++)W=B+G,J[W]=oe[W]^U[G];B+=H}}})(e,x,S,P,d,p,h,a),(0,wg.clean)(...y),p}};kx=Hd,wg=Cm,BXe=e=>Uint8Array.from(e.split(\"\").map((t=>t.charCodeAt(0)))),V7t=BXe(\"expand 16-byte k\"),G7t=BXe(\"expand 32-byte k\"),q7t=(0,wg.u32)(V7t),UXe=(0,wg.u32)(G7t);DN.sigma=UXe.slice();dX=64,K7t=16,ZZe=2**32-1,QZe=new Uint32Array,_U={};Object.defineProperty(_U,\"__esModule\",{value:!0}),_U.poly1305=void 0,_U.wrapConstructorWithKey=FXe;fX=Hd,wU=Cm,zl=(e,t)=>255&e[t++]|(255&e[t++])<<8,Age=class{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,wU.toBytes)(t),(0,fX.bytes)(t,32);let n=zl(t,0),r=zl(t,2),o=zl(t,4),i=zl(t,6),a=zl(t,8),c=zl(t,10),u=zl(t,12),d=zl(t,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|i<<9),this.r[4]=255&(i>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|u<<5),this.r[8]=8191&(u>>>8|d<<8),this.r[9]=d>>>5&127;for(let p=0;p<8;p++)this.pad[p]=zl(t,16+2*p)}process(t,n,r=!1){let o=r?0:2048,{h:i,r:a}=this,c=a[0],u=a[1],d=a[2],p=a[3],h=a[4],g=a[5],y=a[6],v=a[7],x=a[8],R=a[9],S=zl(t,n+0),M=zl(t,n+2),P=zl(t,n+4),z=zl(t,n+6),V=zl(t,n+8),Q=zl(t,n+10),$=zl(t,n+12),oe=zl(t,n+14),J=i[0]+(8191&S),re=i[1]+(8191&(S>>>13|M<<3)),q=i[2]+(8191&(M>>>10|P<<6)),K=i[3]+(8191&(P>>>7|z<<9)),U=i[4]+(8191&(z>>>4|V<<12)),T=i[5]+(V>>>1&8191),k=i[6]+(8191&(V>>>14|Q<<2)),F=i[7]+(8191&(Q>>>11|$<<5)),N=i[8]+(8191&($>>>8|oe<<8)),B=i[9]+(oe>>>5|o),H=0,W=H+J*c+re*(5*R)+q*(5*x)+K*(5*v)+U*(5*y);H=W>>>13,W&=8191,W+=T*(5*g)+k*(5*h)+F*(5*p)+N*(5*d)+B*(5*u),H+=W>>>13,W&=8191;let G=H+J*u+re*c+q*(5*R)+K*(5*x)+U*(5*v);H=G>>>13,G&=8191,G+=T*(5*y)+k*(5*g)+F*(5*h)+N*(5*p)+B*(5*d),H+=G>>>13,G&=8191;let O=H+J*d+re*u+q*c+K*(5*R)+U*(5*x);H=O>>>13,O&=8191,O+=T*(5*v)+k*(5*y)+F*(5*g)+N*(5*h)+B*(5*p),H+=O>>>13,O&=8191;let j=H+J*p+re*d+q*u+K*c+U*(5*R);H=j>>>13,j&=8191,j+=T*(5*x)+k*(5*v)+F*(5*y)+N*(5*g)+B*(5*h),H+=j>>>13,j&=8191;let te=H+J*h+re*p+q*d+K*u+U*c;H=te>>>13,te&=8191,te+=T*(5*R)+k*(5*x)+F*(5*v)+N*(5*y)+B*(5*g),H+=te>>>13,te&=8191;let ne=H+J*g+re*h+q*p+K*d+U*u;H=ne>>>13,ne&=8191,ne+=T*c+k*(5*R)+F*(5*x)+N*(5*v)+B*(5*y),H+=ne>>>13,ne&=8191;let ae=H+J*y+re*g+q*h+K*p+U*d;H=ae>>>13,ae&=8191,ae+=T*u+k*c+F*(5*R)+N*(5*x)+B*(5*v),H+=ae>>>13,ae&=8191;let pe=H+J*v+re*y+q*g+K*h+U*p;H=pe>>>13,pe&=8191,pe+=T*d+k*u+F*c+N*(5*R)+B*(5*x),H+=pe>>>13,pe&=8191;let ye=H+J*x+re*v+q*y+K*g+U*h;H=ye>>>13,ye&=8191,ye+=T*p+k*d+F*u+N*c+B*(5*R),H+=ye>>>13,ye&=8191;let ve=H+J*R+re*x+q*v+K*y+U*g;H=ve>>>13,ve&=8191,ve+=T*h+k*p+F*d+N*u+B*c,H+=ve>>>13,ve&=8191,H=(H<<2)+H|0,H=H+W|0,W=8191&H,H>>>=13,G+=H,i[0]=W,i[1]=G,i[2]=O,i[3]=j,i[4]=te,i[5]=ne,i[6]=ae,i[7]=pe,i[8]=ye,i[9]=ve}finalize(){let{h:t,pad:n}=this,r=new Uint16Array(10),o=t[1]>>>13;t[1]&=8191;for(let c=2;c<10;c++)t[c]+=o,o=t[c]>>>13,t[c]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=t[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let i=(1^o)-1;for(let c=0;c<10;c++)r[c]&=i;i=~i;for(let c=0;c<10;c++)t[c]=t[c]&i|r[c];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let a=t[0]+n[0];t[0]=65535&a;for(let c=1;c<8;c++)a=(t[c]+n[c]|0)+(a>>>16)|0,t[c]=65535&a;(0,wU.clean)(r)}update(t){(0,fX.exists)(this);let{buffer:n,blockLen:r}=this,o=(t=(0,wU.toBytes)(t)).length;for(let i=0;i<o;){let a=Math.min(r-this.pos,o-i);if(a!==r)n.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(n,0,!1),this.pos=0);else for(;r<=o-i;i+=r)this.process(t,i)}return this}destroy(){(0,wU.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,fX.exists)(this),(0,fX.output)(t,this),this.finished=!0;let{buffer:n,h:r}=this,{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let i=0;for(let a=0;a<8;a++)t[i++]=r[a]>>>0,t[i++]=r[a]>>>8;return t}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}};_U.poly1305=FXe((e=>new Age(e))),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;let t=DN,n=Hd,r=_U,o=Cm;function i(h,g,y,v,x,R=20){let S=h[0],M=h[1],P=h[2],z=h[3],V=g[0],Q=g[1],$=g[2],oe=g[3],J=g[4],re=g[5],q=g[6],K=g[7],U=x,T=y[0],k=y[1],F=y[2],N=S,B=M,H=P,W=z,G=V,O=Q,j=$,te=oe,ne=J,ae=re,pe=q,ye=K,ve=U,xe=T,De=k,Ge=F;for(let Ye=0;Ye<R;Ye+=2)N=N+G|0,ve=(0,t.rotl)(ve^N,16),ne=ne+ve|0,G=(0,t.rotl)(G^ne,12),N=N+G|0,ve=(0,t.rotl)(ve^N,8),ne=ne+ve|0,G=(0,t.rotl)(G^ne,7),B=B+O|0,xe=(0,t.rotl)(xe^B,16),ae=ae+xe|0,O=(0,t.rotl)(O^ae,12),B=B+O|0,xe=(0,t.rotl)(xe^B,8),ae=ae+xe|0,O=(0,t.rotl)(O^ae,7),H=H+j|0,De=(0,t.rotl)(De^H,16),pe=pe+De|0,j=(0,t.rotl)(j^pe,12),H=H+j|0,De=(0,t.rotl)(De^H,8),pe=pe+De|0,j=(0,t.rotl)(j^pe,7),W=W+te|0,Ge=(0,t.rotl)(Ge^W,16),ye=ye+Ge|0,te=(0,t.rotl)(te^ye,12),W=W+te|0,Ge=(0,t.rotl)(Ge^W,8),ye=ye+Ge|0,te=(0,t.rotl)(te^ye,7),N=N+O|0,Ge=(0,t.rotl)(Ge^N,16),pe=pe+Ge|0,O=(0,t.rotl)(O^pe,12),N=N+O|0,Ge=(0,t.rotl)(Ge^N,8),pe=pe+Ge|0,O=(0,t.rotl)(O^pe,7),B=B+j|0,ve=(0,t.rotl)(ve^B,16),ye=ye+ve|0,j=(0,t.rotl)(j^ye,12),B=B+j|0,ve=(0,t.rotl)(ve^B,8),ye=ye+ve|0,j=(0,t.rotl)(j^ye,7),H=H+te|0,xe=(0,t.rotl)(xe^H,16),ne=ne+xe|0,te=(0,t.rotl)(te^ne,12),H=H+te|0,xe=(0,t.rotl)(xe^H,8),ne=ne+xe|0,te=(0,t.rotl)(te^ne,7),W=W+G|0,De=(0,t.rotl)(De^W,16),ae=ae+De|0,G=(0,t.rotl)(G^ae,12),W=W+G|0,De=(0,t.rotl)(De^W,8),ae=ae+De|0,G=(0,t.rotl)(G^ae,7);let gt=0;v[gt++]=S+N|0,v[gt++]=M+B|0,v[gt++]=P+H|0,v[gt++]=z+W|0,v[gt++]=V+G|0,v[gt++]=Q+O|0,v[gt++]=$+j|0,v[gt++]=oe+te|0,v[gt++]=J+ne|0,v[gt++]=re+ae|0,v[gt++]=q+pe|0,v[gt++]=K+ye|0,v[gt++]=U+ve|0,v[gt++]=T+xe|0,v[gt++]=k+De|0,v[gt++]=F+Ge|0}function a(h,g,y,v){let x=h[0],R=h[1],S=h[2],M=h[3],P=g[0],z=g[1],V=g[2],Q=g[3],$=g[4],oe=g[5],J=g[6],re=g[7],q=y[0],K=y[1],U=y[2],T=y[3];for(let F=0;F<20;F+=2)x=x+P|0,q=(0,t.rotl)(q^x,16),$=$+q|0,P=(0,t.rotl)(P^$,12),x=x+P|0,q=(0,t.rotl)(q^x,8),$=$+q|0,P=(0,t.rotl)(P^$,7),R=R+z|0,K=(0,t.rotl)(K^R,16),oe=oe+K|0,z=(0,t.rotl)(z^oe,12),R=R+z|0,K=(0,t.rotl)(K^R,8),oe=oe+K|0,z=(0,t.rotl)(z^oe,7),S=S+V|0,U=(0,t.rotl)(U^S,16),J=J+U|0,V=(0,t.rotl)(V^J,12),S=S+V|0,U=(0,t.rotl)(U^S,8),J=J+U|0,V=(0,t.rotl)(V^J,7),M=M+Q|0,T=(0,t.rotl)(T^M,16),re=re+T|0,Q=(0,t.rotl)(Q^re,12),M=M+Q|0,T=(0,t.rotl)(T^M,8),re=re+T|0,Q=(0,t.rotl)(Q^re,7),x=x+z|0,T=(0,t.rotl)(T^x,16),J=J+T|0,z=(0,t.rotl)(z^J,12),x=x+z|0,T=(0,t.rotl)(T^x,8),J=J+T|0,z=(0,t.rotl)(z^J,7),R=R+V|0,q=(0,t.rotl)(q^R,16),re=re+q|0,V=(0,t.rotl)(V^re,12),R=R+V|0,q=(0,t.rotl)(q^R,8),re=re+q|0,V=(0,t.rotl)(V^re,7),S=S+Q|0,K=(0,t.rotl)(K^S,16),$=$+K|0,Q=(0,t.rotl)(Q^$,12),S=S+Q|0,K=(0,t.rotl)(K^S,8),$=$+K|0,Q=(0,t.rotl)(Q^$,7),M=M+P|0,U=(0,t.rotl)(U^M,16),oe=oe+U|0,P=(0,t.rotl)(P^oe,12),M=M+P|0,U=(0,t.rotl)(U^M,8),oe=oe+U|0,P=(0,t.rotl)(P^oe,7);let k=0;v[k++]=x,v[k++]=R,v[k++]=S,v[k++]=M,v[k++]=q,v[k++]=K,v[k++]=U,v[k++]=T}e.chacha20orig=(0,t.createCipher)(i,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,t.createCipher)(i,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,rounds:12});let c=new Uint8Array(16),u=(h,g)=>{h.update(g);let y=g.length%16;y&&h.update(c.subarray(y))},d=new Uint8Array(32);function p(h,g,y,v,x){let R=h(g,y,d),S=r.poly1305.create(R);x&&u(S,x),u(S,v);let M=new Uint8Array(16),P=(0,o.createView)(M);(0,o.setBigUint64)(P,0,BigInt(x?x.length:0),!0),(0,o.setBigUint64)(P,8,BigInt(v.length),!0),S.update(M);let z=S.digest();return(0,o.clean)(R,M),z}e._poly1305_aead=h=>(g,y,v)=>((0,n.bytes)(g,32),(0,n.bytes)(y),{encrypt(R,S){let M=R.length,P=M+16;S?(0,n.bytes)(S,P):S=new Uint8Array(P),h(g,y,R,S,1);let z=p(h,g,y,S.subarray(0,-16),v);return S.set(z,M),(0,o.clean)(z),S},decrypt(R,S){let M=R.length,P=M-16;if(M<16)throw new Error(\"encrypted data must be at least 16 bytes\");S?(0,n.bytes)(S,P):S=new Uint8Array(P);let z=R.subarray(0,-16),V=R.subarray(-16),Q=p(h,g,y,z,v);if(!(0,o.equalBytes)(V,Q))throw new Error(\"invalid tag\");return h(g,y,z,S,1),(0,o.clean)(Q),S}}),e.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))})(LXe),Object.defineProperty(JX,\"__esModule\",{value:!0}),JX.xchacha20=void 0;Y7t=LXe;JX.xchacha20=function(e,t,n){return(0,Y7t.xchacha20poly1305)(e,t,n)},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var t=Cm,n=iye,r=UN,o=JX,i=MU,a=Yu;e.symEncrypt=function(p,h,g){return c(u,p,h,g)};function c(p,h,g,y){var v=(0,i.symmetricAlgorithm)();if(v===\"aes-256-gcm\")return p(r.aes256gcm,h,g,(0,i.symmetricNonceLength)(),a.AEAD_TAG_LENGTH,y);if(v===\"xchacha20\")return p(o.xchacha20,h,g,a.XCHACHA20_NONCE_LENGTH,a.AEAD_TAG_LENGTH,y);if(v===\"aes-256-cbc\")return p(r.aes256cbc,h,g,16,0);throw new Error(\"Not implemented\")}function u(p,h,g,y,v,x){var R=(0,n.randomBytes)(y),S=p(h,R,x).encrypt(g);if(v===0)return(0,t.concatBytes)(R,S);var M=S.length-v,P=S.subarray(0,M),z=S.subarray(M);return(0,t.concatBytes)(R,z,P)}function d(p,h,g,y,v,x){var R=g.subarray(0,y),S=p(h,Uint8Array.from(R),x),M=g.subarray(y);if(v===0)return S.decrypt(M);var P=M.subarray(0,v),z=M.subarray(v);return S.decrypt((0,t.concatBytes)(z,P))}e.symDecrypt=function(p,h,g){return c(d,p,h,g)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt})(zZe),TN=x$,JZe=_g&&_g.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),gU=_g&&_g.__exportStar||function(e,t){for(var n in e)n===\"default\"||Object.prototype.hasOwnProperty.call(t,n)||JZe(t,e,n)},Object.defineProperty(TN,\"__esModule\",{value:!0}),gU(VJe,TN),gU(AXe,TN),gU(bge,TN),gU(zZe,TN);FU={};Object.defineProperty(FU,\"__esModule\",{value:!0}),FU.PublicKey=void 0;XZe=Cm,pX=x$,Z7t=(function(){function e(t){this.data=(0,pX.convertPublicKeyFormat)(t,!0)}return e.fromHex=function(t){return new e((0,pX.hexToPublicKey)(t))},Object.defineProperty(e.prototype,\"uncompressed\",{get:function(){return ut.from((0,pX.convertPublicKeyFormat)(this.data,!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"compressed\",{get:function(){return ut.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(t){return t===void 0&&(t=!0),(0,XZe.bytesToHex)(t?this.data:this.uncompressed)},e.prototype.decapsulate=function(t,n){n===void 0&&(n=!1);var r=n?this.data:this.uncompressed,o=t.multiply(this,n);return(0,pX.getSharedKey)(r,o)},e.prototype.equals=function(t){return(0,XZe.equalBytes)(this.data,t.data)},e})();FU.PublicKey=Z7t,Object.defineProperty(zX,\"__esModule\",{value:!0}),zX.PrivateKey=void 0;$Ze=Cm,CN=x$,Q7t=FU,J7t=(function(){function e(t){if(t===void 0)this.data=(0,CN.getValidSecret)();else{if(!(0,CN.isValidPrivateKey)(t))throw new Error(\"Invalid private key\");this.data=t}this.publicKey=new Q7t.PublicKey((0,CN.getPublicKey)(this.data))}return e.fromHex=function(t){return new e((0,CN.decodeHex)(t))},Object.defineProperty(e.prototype,\"secret\",{get:function(){return ut.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(){return(0,$Ze.bytesToHex)(this.data)},e.prototype.encapsulate=function(t,n){n===void 0&&(n=!1);var r=n?this.publicKey.compressed:this.publicKey.uncompressed,o=this.multiply(t,n);return(0,CN.getSharedKey)(r,o)},e.prototype.multiply=function(t,n){return n===void 0&&(n=!1),(0,CN.getSharedPoint)(this.data,t.compressed,n)},e.prototype.equals=function(t){return(0,$Ze.equalBytes)(this.data,t.data)},e})();zX.PrivateKey=J7t,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var t=zX;Object.defineProperty(e,\"PrivateKey\",{enumerable:!0,get:function(){return t.PrivateKey}});var n=FU;Object.defineProperty(e,\"PublicKey\",{enumerable:!0,get:function(){return n.PublicKey}})})(T0e),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.ECIES_CONFIG=void 0,e.encrypt=function(c,u){var d=new r.PrivateKey,p=c instanceof Uint8Array?new r.PublicKey(c):r.PublicKey.fromHex(c),h=d.encapsulate(p,(0,n.isHkdfKeyCompressed)()),g=(0,n.isEphemeralKeyCompressed)()?d.publicKey.compressed:d.publicKey.uncompressed,y=(0,o.symEncrypt)(h,u);return ut.from((0,t.concatBytes)(g,y))},e.decrypt=function(c,u){var d=c instanceof Uint8Array?new r.PrivateKey(c):r.PrivateKey.fromHex(c),p=(0,n.ephemeralKeySize)(),h=new r.PublicKey(u.subarray(0,p)),g=u.subarray(p),y=h.decapsulate(d,(0,n.isHkdfKeyCompressed)());return ut.from((0,o.symDecrypt)(y,g))};var t=Cm,n=MU,r=T0e,o=x$,i=MU;Object.defineProperty(e,\"ECIES_CONFIG\",{enumerable:!0,get:function(){return i.ECIES_CONFIG}});var a=T0e;Object.defineProperty(e,\"PrivateKey\",{enumerable:!0,get:function(){return a.PrivateKey}}),Object.defineProperty(e,\"PublicKey\",{enumerable:!0,get:function(){return a.PublicKey}}),e.utils={aesEncrypt:o.aesEncrypt,aesDecrypt:o.aesDecrypt,symEncrypt:o.symEncrypt,symDecrypt:o.symDecrypt,decodeHex:o.decodeHex,getValidSecret:o.getValidSecret,remove0x:o.remove0x}})(IN);HXe=(0,jd.default)(\"KeyExchange:Layer\"),zXe=(0,jd.default)(\"SocketService:Layer\"),jXe=(0,jd.default)(\"Ecies:Layer\"),WXe=(0,jd.default)(\"RemoteCommunication:Layer\");HXe.color=\"##95c44e\",zXe.color=\"#f638d7\",jXe.color=\"#465b9c\",WXe.color=\"#47a2be\";Ke={KeyExchange:HXe,SocketService:zXe,Ecies:jXe,RemoteCommunication:WXe},hX=[],j0e=[],zx=(e,t)=>dt(void 0,void 0,void 0,(function*(){yU=t,j0e.push(e),(function(n){return dt(this,void 0,void 0,(function*(){if(!yU||!n)return;(function(){let a=j0e;j0e=hX,hX=a})();let r=yU.endsWith(\"/\")?`${yU}evt`:`${yU}/evt`,o=Object.assign({},n);if(delete o.params,n.params)for(let[a,c]of Object.entries(n.params))o[a]=c;let i=JSON.stringify(o);Ke.RemoteCommunication(`[sendBufferedEvents] Sending ${hX.length} analytics events to ${r}`);try{let a=yield(0,tye.default)(r,{method:\"POST\",headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},body:i}),c=yield a.text();Ke.RemoteCommunication(`[sendBufferedEvents] Response: ${c}`),hX.length=0}catch{}}))})(e).catch((()=>{}))})),SU=class{constructor(t){this.enabled=!0,t?.debug&&jd.default.enable(\"Ecies:Layer\"),this.ecies=t?.privateKey?IN.PrivateKey.fromHex(t.privateKey):new IN.PrivateKey,Ke.Ecies(\"[ECIES constructor()] initialized secret: \",this.ecies.toHex()),Ke.Ecies(\"[ECIES constructor()] initialized public: \",this.ecies.publicKey.toHex()),Ke.Ecies(\"[ECIES constructor()] init with\",this)}generateECIES(){this.ecies=new IN.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(t,n){let r=t;if(this.enabled)try{Ke.Ecies(\"[ECIES: encrypt()] using otherPublicKey\",n);let o=ut.from(t),i=IN.encrypt(n,o);r=ut.from(i).toString(\"base64\")}catch(o){throw Ke.Ecies(\"[ECIES: encrypt()] error encrypt:\",o),Ke.Ecies(\"[ECIES: encrypt()] private: \",this.ecies.toHex()),Ke.Ecies(\"[ECIES: encrypt()] data: \",t),Ke.Ecies(\"[ECIES: encrypt()] otherkey: \",n),o}return r}decrypt(t){let n=t;if(this.enabled)try{Ke.Ecies(\"[ECIES: decrypt()] using privateKey\",this.ecies.toHex());let r=ut.from(t.toString(),\"base64\");n=IN.decrypt(this.ecies.toHex(),r).toString()}catch(r){throw Ke.Ecies(\"[ECIES: decrypt()] error decrypt\",r),Ke.Ecies(\"[ECIES: decrypt()] private: \",this.ecies.toHex()),Ke.Ecies(\"[ECIES: decrypt()] encryptedData: \",t),r}return n}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){Ke.Ecies(\"[ECIES: toString()]\",this.getKeyInfo())}},MS={name:\"@metamask/sdk-communication-layer\",version:\"0.32.0\",description:\"\",homepage:\"https://github.com/MetaMask/metamask-sdk#readme\",bugs:{url:\"https://github.com/MetaMask/metamask-sdk/issues\"},repository:{type:\"git\",url:\"https://github.com/MetaMask/metamask-sdk.git\",directory:\"packages/sdk-communication-layer\"},main:\"dist/node/cjs/metamask-sdk-communication-layer.js\",unpkg:\"dist/browser/umd/metamask-sdk-communication-layer.js\",module:\"dist/node/es/metamask-sdk-communication-layer.js\",browser:\"dist/browser/es/metamask-sdk-communication-layer.js\",\"react-native\":\"dist/react-native/es/metamask-sdk-communication-layer.js\",types:\"dist/types/src/index.d.ts\",files:[\"/dist\"],scripts:{\"build:types\":\"tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist/types\",\"build:clean\":\"yarn clean && yarn build\",build:\"yarn build:types && rollup -c --bundleConfigAsCjs\",\"build:dev\":\"yarn build:types && NODE_ENV=dev rollup -c --bundleConfigAsCjs\",dev:\\'concurrently \"tsc --watch\" \"rollup -c --bundleConfigAsCjs -w\"\\',\"build:post-tsc\":\"echo \\'N/A\\'\",\"build:pre-tsc\":\"echo \\'N/A\\'\",size:\"size-limit\",clean:\"rimraf ./dist\",lint:\"yarn lint:eslint && yarn lint:misc --check\",\"lint:changelog\":\"../../scripts/validate-changelog.sh @metamask/sdk-communication-layer\",\"lint:eslint\":\"eslint . --cache --ext js,ts\",\"lint:fix\":\"yarn lint:eslint --fix && yarn lint:misc --write\",\"lint:misc\":\"prettier \\'**/*.json\\' \\'**/*.md\\' \\'!CHANGELOG.md\\' --ignore-path ../../.gitignore\",\"publish:preview\":\"yarn npm publish --tag preview\",prepack:\"../../scripts/prepack.sh\",reset:\"yarn clean && rimraf ./node_modules/\",test:\\'jest --testPathIgnorePatterns \"/e2e/\"\\',\"test:e2e\":\\'jest --testPathPattern \"/e2e/\"\\',\"test:coverage\":\"jest --coverage\",\"test:ci\":\\'jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js --testPathIgnorePatterns \"/e2e/\"\\',\"test:dev\":\"jest\",watch:\"rollup -c --bundleConfigAsCjs -w\"},dependencies:{bufferutil:\"^4.0.8\",\"date-fns\":\"^2.29.3\",debug:\"^4.3.4\",\"utf-8-validate\":\"^5.0.2\",uuid:\"^8.3.2\"},devDependencies:{\"@jest/globals\":\"^29.3.1\",\"@lavamoat/allow-scripts\":\"^2.3.1\",\"@metamask/auto-changelog\":\"3.1.0\",\"@metamask/eslint-config\":\"^6.0.0\",\"@metamask/eslint-config-nodejs\":\"^6.0.0\",\"@metamask/eslint-config-typescript\":\"^6.0.0\",\"@rollup/plugin-commonjs\":\"^25.0.0\",\"@rollup/plugin-json\":\"^6.0.0\",\"@rollup/plugin-node-resolve\":\"^15.0.2\",\"@rollup/plugin-replace\":\"^6.0.1\",\"@rollup/plugin-terser\":\"^0.4.4\",\"@size-limit/preset-big-lib\":\"^11.0.2\",\"@types/jest\":\"^29.2.4\",\"@types/node\":\"^20.1.3\",\"@types/uuid\":\"^9.0.0\",\"@typescript-eslint/eslint-plugin\":\"^4.26.0\",\"@typescript-eslint/parser\":\"^4.26.0\",concurrently:\"^9.1.2\",\"cross-fetch\":\"^4.0.0\",eciesjs:\"^0.4.11\",eslint:\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-import\":\"^2.23.4\",\"eslint-plugin-jest\":\"^24.4.0\",\"eslint-plugin-jsdoc\":\"^36.1.0\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-prettier\":\"^3.4.0\",eventemitter2:\"^6.4.9\",jest:\"^29.3.1\",prettier:\"^2.3.0\",rimraf:\"^3.0.2\",rollup:\"^4.26.0\",\"rollup-plugin-jscc\":\"^2.0.0\",\"rollup-plugin-natives\":\"^0.7.5\",\"rollup-plugin-node-builtins\":\"^2.1.2\",\"rollup-plugin-node-globals\":\"^1.4.0\",\"rollup-plugin-peer-deps-external\":\"^2.2.4\",\"rollup-plugin-polyfill-node\":\"^0.13.0\",\"rollup-plugin-sizes\":\"^1.0.6\",\"rollup-plugin-typescript2\":\"^0.31.2\",\"rollup-plugin-visualizer\":\"^5.12.0\",\"size-limit\":\"^11.1.6\",\"socket.io-client\":\"^4.5.1\",\"stream-browserify\":\"^3.0.0\",\"ts-jest\":\"^29.0.3\",\"ts-node\":\"^10.9.1\",typescript:\"^5.6.3\"},peerDependencies:{\"cross-fetch\":\"^4.0.0\",eciesjs:\"*\",eventemitter2:\"^6.4.9\",\"readable-stream\":\"^3.6.2\",\"socket.io-client\":\"^4.5.1\"},publishConfig:{access:\"public\",registry:\"https://registry.npmjs.org/\"},lavamoat:{allowScripts:{\"@lavamoat/preinstall-always-fail\":!1,canvas:!0,\"eciesjs>secp256k1\":!1,\"socket.io-client>engine.io-client>ws>bufferutil\":!1,\"socket.io-client>engine.io-client>ws>utf-8-validate\":!1,bufferutil:!1,\"utf-8-validate\":!1}}},MC=\"https://metamask-sdk.api.cx.metamask.io/\",X7t=[\"websocket\"],WN=6048e5,$7t=3e3,ePt={METAMASK_GETPROVIDERSTATE:\"metamask_getProviderState\",ETH_REQUESTACCOUNTS:\"eth_requestAccounts\"};(RN=Ju||(Ju={})).DISCONNECTED=\"disconnected\",RN.WAITING=\"waiting\",RN.TIMEOUT=\"timeout\",RN.LINKED=\"linked\",RN.PAUSED=\"paused\",RN.TERMINATED=\"terminated\",(function(e){e.KEY_INFO=\"key_info\",e.SERVICE_STATUS=\"service_status\",e.PROVIDER_UPDATE=\"provider_update\",e.RPC_UPDATE=\"rpc_update\",e.KEYS_EXCHANGED=\"keys_exchanged\",e.JOIN_CHANNEL=\"join_channel\",e.PUBLIC_KEY=\"public_key\",e.CHANNEL_CREATED=\"channel_created\",e.CLIENTS_CONNECTED=\"clients_connected\",e.CLIENTS_DISCONNECTED=\"clients_disconnected\",e.CLIENTS_WAITING=\"clients_waiting\",e.CLIENTS_READY=\"clients_ready\",e.REJECTED=\"rejected\",e.WALLET_INIT=\"wallet_init\",e.CHANNEL_PERSISTENCE=\"channel_persistence\",e.CONFIG=\"config\",e.MESSAGE_ACK=\"ack\",e.SOCKET_DISCONNECTED=\"socket_disconnected\",e.SOCKET_RECONNECT=\"socket_reconnect\",e.OTP=\"otp\",e.SDK_RPC_CALL=\"sdk_rpc_call\",e.AUTHORIZED=\"authorized\",e.CONNECTION_STATUS=\"connection_status\",e.MESSAGE=\"message\",e.TERMINATE=\"terminate\"})(Et||(Et={})),(XX||(XX={})).KEY_EXCHANGE=\"key_exchange\",(function(e){e.KEY_HANDSHAKE_START=\"key_handshake_start\",e.KEY_HANDSHAKE_CHECK=\"key_handshake_check\",e.KEY_HANDSHAKE_SYN=\"key_handshake_SYN\",e.KEY_HANDSHAKE_SYNACK=\"key_handshake_SYNACK\",e.KEY_HANDSHAKE_ACK=\"key_handshake_ACK\",e.KEY_HANDSHAKE_WALLET=\"key_handshake_wallet\",e.KEY_HANDSHAKE_NONE=\"none\"})(yi||(yi={}));_ge=class extends qN.EventEmitter2{constructor({communicationLayer:t,otherPublicKey:n,context:r,ecies:o,logging:i}){super(),this.keysExchanged=!1,this.step=yi.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=r,this.communicationLayer=t,o?.privateKey&&n&&(Ke.KeyExchange(`[KeyExchange: constructor()] otherPubKey=${n} set keysExchanged to true!`,o),this.keysExchanged=!0),this.myECIES=new SU(Object.assign(Object.assign({},o),{debug:i?.eciesLayer})),this.communicationLayer.state.eciesInstance=this.myECIES,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=i?.keyExchangeLayer===!0,n&&this.setOtherPublicKey(n),this.communicationLayer.on(XX.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){let{relayPersistence:n}=this.communicationLayer.remote.state;if(Ke.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} keysExchanged=${this.keysExchanged} relayPersistence=${n}`,t),n)return void Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Ignoring key exchange message because relay persistence is activated\");let{message:r}=t;this.keysExchanged&&Ke.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(Et.KEY_INFO,r.type),r.type===yi.KEY_HANDSHAKE_SYN?(this.checkStep([yi.KEY_HANDSHAKE_NONE,yi.KEY_HANDSHAKE_ACK]),Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYN\",r),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:yi.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}).catch((o=>{Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Error sending KEY_HANDSHAKE_SYNACK\",o)})),this.setStep(yi.KEY_HANDSHAKE_ACK)):r.type===yi.KEY_HANDSHAKE_SYNACK?(this.checkStep([yi.KEY_HANDSHAKE_SYNACK,yi.KEY_HANDSHAKE_ACK,yi.KEY_HANDSHAKE_NONE]),Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYNACK\"),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:yi.KEY_HANDSHAKE_ACK}).catch((o=>{Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Error sending KEY_HANDSHAKE_ACK\",o)})),this.keysExchanged=!0,this.setStep(yi.KEY_HANDSHAKE_ACK),this.emit(Et.KEYS_EXCHANGED)):r.type===yi.KEY_HANDSHAKE_ACK&&(Ke.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_ACK set keysExchanged to true!\"),this.checkStep([yi.KEY_HANDSHAKE_ACK,yi.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(yi.KEY_HANDSHAKE_ACK),this.emit(Et.KEYS_EXCHANGED))}resetKeys(t){this.clean(),this.myECIES=new SU(t)}clean(){Ke.KeyExchange(`[KeyExchange: clean()] context=${this.context} reset handshake state`),this.setStep(yi.KEY_HANDSHAKE_NONE),this.emit(Et.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:t,force:n}){let{relayPersistence:r,protocolVersion:o}=this.communicationLayer.remote.state,i=o>=2;r?Ke.KeyExchange(\"[KeyExchange: start()] Ignoring key exchange message because relay persistence is activated\"):(Ke.KeyExchange(`[KeyExchange: start()] context=${this.context} protocolVersion=${o} isOriginator=${t} step=${this.step} force=${n} relayPersistence=${r} keysExchanged=${this.keysExchanged}`),t?!(this.keysExchanged||this.step!==yi.KEY_HANDSHAKE_NONE&&this.step!==yi.KEY_HANDSHAKE_SYNACK)||n?(Ke.KeyExchange(`[KeyExchange: start()] context=${this.context} -- start key exchange (force=${n}) -- step=${this.step}`,this.step),this.clean(),this.setStep(yi.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:yi.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey,v:2}).catch((a=>{Ke.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_SYN\",a)}))):Ke.KeyExchange(`[KeyExchange: start()] context=${this.context} -- key exchange already ${this.keysExchanged?\"done\":\"in progress\"} -- aborted.`,this.step):this.keysExchanged&&n!==!0?Ke.KeyExchange(\"[KeyExchange: start()] don\\'t send KEY_HANDSHAKE_START -- exchange already done.\"):i?this.communicationLayer.sendMessage({type:yi.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey,v:2}).catch((a=>{Ke.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_SYNACK\",a)})):(this.communicationLayer.sendMessage({type:yi.KEY_HANDSHAKE_START}).catch((a=>{Ke.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_START\",a)})),this.clean()))}setStep(t){this.step=t,this.emit(Et.KEY_INFO,t)}checkStep(t){t.length>0&&t.indexOf(this.step.toString())}setRelayPersistence({localKey:t,otherKey:n}){this.otherPublicKey=n,this.myECIES=new SU({privateKey:t,debug:this.debug}),this.keysExchanged=!0}setKeysExchanged(t){this.keysExchanged=t}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(t){Ke.KeyExchange(\"[KeyExchange: setOtherPubKey()]\",t),this.otherPublicKey=t}encryptMessage(t){if(!this.otherPublicKey)throw new Error(\"encryptMessage: Keys not exchanged - missing otherPubKey\");return this.myECIES.encrypt(t,this.otherPublicKey)}decryptMessage(t){if(!this.otherPublicKey)throw new Error(\"decryptMessage: Keys not exchanged - missing otherPubKey\");return this.myECIES.decrypt(t)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){let t={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(t)}};(function(e){e.TERMINATE=\"terminate\",e.ANSWER=\"answer\",e.OFFER=\"offer\",e.CANDIDATE=\"candidate\",e.JSONRPC=\"jsonrpc\",e.WALLET_INFO=\"wallet_info\",e.WALLET_INIT=\"wallet_init\",e.ORIGINATOR_INFO=\"originator_info\",e.PAUSE=\"pause\",e.OTP=\"otp\",e.AUTHORIZED=\"authorized\",e.PING=\"ping\",e.READY=\"ready\"})(ts||(ts={})),(function(e){e.REQUEST=\"sdk_connect_request_started\",e.REQUEST_MOBILE=\"sdk_connect_request_started_mobile\",e.RECONNECT=\"sdk_reconnect_request_started\",e.CONNECTED=\"sdk_connection_established\",e.CONNECTED_MOBILE=\"sdk_connection_established_mobile\",e.AUTHORIZED=\"sdk_connection_authorized\",e.REJECTED=\"sdk_connection_rejected\",e.TERMINATED=\"sdk_connection_terminated\",e.DISCONNECTED=\"sdk_disconnected\",e.SDK_USE_EXTENSION=\"sdk_use_extension\",e.SDK_RPC_REQUEST=\"sdk_rpc_request\",e.SDK_RPC_REQUEST_RECEIVED=\"sdk_rpc_request_received\",e.SDK_RPC_REQUEST_DONE=\"sdk_rpc_request_done\",e.SDK_EXTENSION_UTILIZED=\"sdk_extension_utilized\",e.SDK_USE_INAPP_BROWSER=\"sdk_use_inapp_browser\"})(dc||(dc={}));_X=(e,t,n)=>dt(void 0,void 0,void 0,(function*(){var r,o,i,a,c,u;let{remote:d,state:p}=e,{channelId:h,isOriginator:g}=p;if(t===\"error_terminated\")return Ke.SocketService(`handleJoinChannelResults: Channel ${h} terminated`),void e.emit(Et.TERMINATE);if(!n)return void Ke.SocketService(`handleJoinChannelResults: No result for channel ${h}`);let{persistence:y,walletKey:v,rejected:x}=n;if(Ke.SocketService(`handleJoinChannelResults: Channel ${h} persistence=${y} walletKey=${v} rejected=${x}`),x)return Ke.SocketService(`handleJoinChannelResults: Channel ${h} rejected`),yield e.remote.disconnect({terminate:!0}),e.remote.emit(Et.REJECTED,{channelId:h}),void e.remote.emitServiceStatusEvent();if(v&&!(!((r=d.state.channelConfig)===null||r===void 0)&&r.otherKey)){e.getKeyExchange().setOtherPublicKey(v),(o=e.state.keyExchange)===null||o===void 0||o.setKeysExchanged(!0),d.state.ready=!0,d.state.authorized=!0,d.emit(Et.AUTHORIZED);let{communicationLayer:R,storageManager:S}=d.state,M=Object.assign(Object.assign({},d.state.channelConfig),{channelId:(i=d.state.channelId)!==null&&i!==void 0?i:\"\",validUntil:Date.now()+WN,localKey:R?.getKeyInfo().ecies.private,otherKey:v});e.sendMessage({type:yi.KEY_HANDSHAKE_ACK}).catch((P=>{})),(a=e.state.socket)===null||a===void 0||a.emit(ts.PING,{id:h,clientType:g?\"dapp\":\"wallet\",context:\"on_channel_reconnect\",message:\"\"}),yield S?.persistChannelConfig(M),d.emitServiceStatusEvent(),d.setConnectionStatus(Ju.LINKED)}y&&(e.emit(Et.CHANNEL_PERSISTENCE),(c=e.state.keyExchange)===null||c===void 0||c.setKeysExchanged(!0),d.state.ready=!0,d.state.authorized=!0,d.emit(Et.AUTHORIZED),zx(Object.assign(Object.assign({id:h??\"\",event:g?dc.CONNECTED:dc.CONNECTED_MOBILE},e.remote.state.originatorInfo),{sdkVersion:e.remote.state.sdkVersion,commLayer:e.state.communicationLayerPreference,commLayerVersion:MS.version,walletVersion:(u=e.remote.state.walletInfo)===null||u===void 0?void 0:u.version}),p.communicationServerUrl).catch((R=>{})))})),HN=e=>new Promise((t=>{setTimeout(t,e)})),eQe=(e,t,...n)=>dt(void 0,[e,t,...n],void 0,(function*(r,o,i=200){let a,c=Date.now(),u=!1;for(;!u;){if(u=Date.now()-c>3e5,a=o[r],a.elapsedTime!==void 0)return a;yield HN(i)}throw new Error(`RPC ${r} timed out`)})),Sge=e=>dt(void 0,void 0,void 0,(function*(){let{state:t}=e,{socket:n,channelId:r,context:o,isOriginator:i,isReconnecting:a}=t;if(a)return Ke.SocketService(\"[SocketService: reconnectSocket()] Reconnection already in progress, skipping\",e),!1;if(!n)return Ke.SocketService(\"[SocketService: reconnectSocket()] socket is not defined\",e),!1;if(!r)return!1;let{connected:c}=n;t.isReconnecting=!0,t.reconnectionAttempts=0,Ke.SocketService(`[SocketService: reconnectSocket()] connected=${c} trying to reconnect after socketio disconnection`,e);try{for(;3>t.reconnectionAttempts;){if(Ke.SocketService(`[SocketService: reconnectSocket()] Attempt ${t.reconnectionAttempts+1} of 3`,e),yield HN(200),n.connected)return Ke.SocketService(\"Socket already connected --- ping to retrieve messages\"),n.emit(ts.PING,{id:r,clientType:i?\"dapp\":\"wallet\",context:\"on_channel_config\",message:\"\"}),!0;t.resumed=!0,n.connect(),e.emit(Et.SOCKET_RECONNECT);try{if(yield new Promise(((u,d)=>{n.emit(Et.JOIN_CHANNEL,{channelId:r,context:`${o}connect_again`,clientType:i?\"dapp\":\"wallet\"},((p,h)=>dt(void 0,void 0,void 0,(function*(){try{yield _X(e,p,h),u()}catch(g){d(g)}}))))})),yield HN(100),n.connected)return Ke.SocketService(`Reconnection successful on attempt ${t.reconnectionAttempts+1}`),!0}catch(u){Ke.SocketService(`Error during reconnection attempt ${t.reconnectionAttempts+1}:`,u)}t.reconnectionAttempts+=1,3>t.reconnectionAttempts&&(yield HN(200))}return Ke.SocketService(\"Failed to reconnect after 3 attempts\"),!1}finally{t.isReconnecting=!1,t.reconnectionAttempts=0}}));(function(e){e.RPC_CHECK=\"rpcCheck\",e.SKIPPED_RPC=\"skippedRpc\"})(LN||(LN={}));qXe=[\"eth_sendTransaction\",\"eth_signTypedData\",\"eth_signTransaction\",\"personal_sign\",\"wallet_requestPermissions\",\"wallet_switchEthereumChain\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"metamask_connectSign\",\"metamask_connectWith\",\"metamask_batch\"].map((e=>e.toLowerCase())),tPt=[{event:Et.CLIENTS_CONNECTED,handler:function(e,t){return n=>dt(this,void 0,void 0,(function*(){var r,o,i,a,c,u,d,p,h,g,y;let v=(o=(r=e.remote.state.channelConfig)===null||r===void 0?void 0:r.relayPersistence)!==null&&o!==void 0&&o;if(Ke.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected-${t}\\' relayPersistence=${v} resumed=${e.state.resumed}  clientsPaused=${e.state.clientsPaused} keysExchanged=${(i=e.state.keyExchange)===null||i===void 0?void 0:i.areKeysExchanged()} isOriginator=${e.state.isOriginator}`),e.emit(Et.CLIENTS_CONNECTED,{isOriginator:e.state.isOriginator,keysExchanged:(a=e.state.keyExchange)===null||a===void 0?void 0:a.areKeysExchanged(),context:e.state.context}),e.state.resumed)e.state.isOriginator||(Ke.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} \\'clients_connected\\' / keysExchanged=${(c=e.state.keyExchange)===null||c===void 0?void 0:c.areKeysExchanged()} -- backward compatibility`),(u=e.state.keyExchange)===null||u===void 0||u.start({isOriginator:(d=e.state.isOriginator)!==null&&d!==void 0&&d})),e.state.resumed=!1;else if(e.state.clientsPaused)Ke.SocketService(\"[SocketService: handleClientsConnected()] \\'clients_connected\\' skip sending originatorInfo on pause\");else if(!e.state.isOriginator){let x=!v;Ke.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected\\' / keysExchanged=${(p=e.state.keyExchange)===null||p===void 0?void 0:p.areKeysExchanged()} -- force=${x} -- backward compatibility`),Ke.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected\\' / keysExchanged=${(h=e.state.keyExchange)===null||h===void 0?void 0:h.areKeysExchanged()} -- force=${x} -- backward compatibility`),(g=e.state.keyExchange)===null||g===void 0||g.start({isOriginator:(y=e.state.isOriginator)!==null&&y!==void 0&&y,force:x})}e.state.clientsConnected=!0,e.state.clientsPaused=!1}))}},{event:Et.CHANNEL_CREATED,handler:function(e,t){return n=>{Ke.SocketService(`[SocketService: handleChannelCreated()] context=${e.state.context} on \\'channel_created-${t}\\'`,n),e.emit(Et.CHANNEL_CREATED,n)}}},{event:Et.CLIENTS_DISCONNECTED,handler:function(e,t){return()=>{var n;e.state.clientsConnected=!1,Ke.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on \\'clients_disconnected-${t}\\'`),e.remote.state.relayPersistence?Ke.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on \\'clients_disconnected-${t}\\' - relayPersistence enabled, skipping key exchange cleanup.`):(e.state.isOriginator&&!e.state.clientsPaused&&((n=e.state.keyExchange)===null||n===void 0||n.clean()),e.emit(Et.CLIENTS_DISCONNECTED,t))}}},{event:Et.CONFIG,handler:function(e,t){return n=>dt(this,void 0,void 0,(function*(){var r,o,i;Ke.SocketService(`[SocketService: handleChannelConfig()] update relayPersistence on \\'config-${t}\\'`,n);let{persistence:a,walletKey:c}=n;e.state.isOriginator&&e.remote.state.channelConfig?(n.walletKey&&!e.remote.state.channelConfig.otherKey&&(Ke.SocketService(`Setting wallet key ${c}`),e.remote.state.channelConfig.otherKey=c,e.getKeyExchange().setOtherPublicKey(n.walletKey),(r=e.state.keyExchange)===null||r===void 0||r.setKeysExchanged(!0),yield e.remote.sendMessage({type:yi.KEY_HANDSHAKE_ACK}),yield e.remote.sendMessage({type:ts.PING}),yield(o=e.remote.state.storageManager)===null||o===void 0?void 0:o.persistChannelConfig(e.remote.state.channelConfig)),a!==!0||e.remote.state.channelConfig.relayPersistence||(Ke.SocketService(`Setting relay persistence ${a}`),e.remote.state.channelConfig.relayPersistence=a,e.remote.state.relayPersistence=!0,e.remote.emit(Et.CHANNEL_PERSISTENCE),e.remote.state.authorized=!0,e.remote.state.ready=!0,e.remote.emit(Et.AUTHORIZED),yield(i=e.remote.state.storageManager)===null||i===void 0?void 0:i.persistChannelConfig(e.remote.state.channelConfig))):e.state.isOriginator||n.persistence&&(e.remote.state.relayPersistence=!0,e.remote.emit(Et.CHANNEL_PERSISTENCE))}))}},{event:Et.MESSAGE,handler:function(e,t){return n=>{var r,o,i,a,c,u,d,p,h,g,y,v,x,R,S,M,P,z;let{ackId:V,message:Q,error:$}=n,oe=(r=e.remote.state.relayPersistence)!==null&&r!==void 0&&r;if(Ke.SocketService(`[SocketService handleMessage()]  relayPersistence=${oe}  context=${e.state.context} on \\'message\\' ${t} keysExchanged=${(o=e.state.keyExchange)===null||o===void 0?void 0:o.areKeysExchanged()}`,n),$)throw Ke.SocketService(`\\n      [SocketService handleMessage()] context=${e.state.context}::on \\'message\\' error=${$}`),new Error($);let J=typeof Q==\"string\";if(!J&&Q?.type===yi.KEY_HANDSHAKE_START)return oe?void 0:(Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' received HANDSHAKE_START isOriginator=${e.state.isOriginator}`,Q),void((i=e.state.keyExchange)===null||i===void 0||i.start({isOriginator:(a=e.state.isOriginator)!==null&&a!==void 0&&a,force:!0})));if(!J&&(!((c=Q?.type)===null||c===void 0)&&c.startsWith(\"key_handshake\")))return oe?void 0:(Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' emit KEY_EXCHANGE`,Q),void e.emit(XX.KEY_EXCHANGE,{message:Q,context:e.state.context}));if(J&&!(!((u=e.state.keyExchange)===null||u===void 0)&&u.areKeysExchanged())){let K=!1;try{Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' trying to decrypt message`),(d=e.state.keyExchange)===null||d===void 0||d.decryptMessage(Q),K=!0}catch(U){Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' error`,U)}if(!K)return e.state.isOriginator?(h=e.state.keyExchange)===null||h===void 0||h.start({isOriginator:(g=e.state.isOriginator)!==null&&g!==void 0&&g}):e.sendMessage({type:yi.KEY_HANDSHAKE_START}).catch((U=>{})),void Ke.SocketService(`Message ignored because invalid key exchange status. step=${(y=e.state.keyExchange)===null||y===void 0?void 0:y.getKeyInfo().step}`,(v=e.state.keyExchange)===null||v===void 0?void 0:v.getKeyInfo(),Q);Ke.SocketService(\"Invalid key exchange status detected --- updating it.\"),(p=e.state.keyExchange)===null||p===void 0||p.setKeysExchanged(!0)}else if(!J&&Q?.type)return void e.emit(Et.MESSAGE,Q);if(!J)return void e.emit(Et.MESSAGE,Q);let re=(x=e.state.keyExchange)===null||x===void 0?void 0:x.decryptMessage(Q),q=JSON.parse(re??\"{}\");if(V&&V?.length>0&&(Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' ackid=${V} channelId=${t}`),(R=e.state.socket)===null||R===void 0||R.emit(Et.MESSAGE_ACK,{ackId:V,channelId:t,clientType:e.state.isOriginator?\"dapp\":\"wallet\"})),e.state.clientsPaused=q?.type===ts.PAUSE,e.state.isOriginator&&q.data){let K=q.data,U=e.state.rpcMethodTracker[K.id];if(U){let T=Date.now()-U.timestamp;Ke.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' received answer for id=${K.id} method=${U.method} responseTime=${T}`,q),e.remote.state.analytics&&qXe.includes(U.method.toLowerCase())&&zx(Object.assign(Object.assign({id:(S=e.remote.state.channelId)!==null&&S!==void 0?S:\"\",event:dc.SDK_RPC_REQUEST_DONE,sdkVersion:e.remote.state.sdkVersion,commLayerVersion:MS.version},e.remote.state.originatorInfo),{walletVersion:(M=e.remote.state.walletInfo)===null||M===void 0?void 0:M.version,params:{method:U.method,from:\"mobile\"}}),e.remote.state.communicationServerUrl).catch((F=>{}));let k=Object.assign(Object.assign({},U),{result:K.result,error:K.error?{code:(P=K.error)===null||P===void 0?void 0:P.code,message:(z=K.error)===null||z===void 0?void 0:z.message}:void 0,elapsedTime:T});e.state.rpcMethodTracker[K.id]=k,e.emit(Et.RPC_UPDATE,k)}}e.emit(Et.MESSAGE,{message:q})}}},{event:Et.REJECTED,handler:function(e,t){return n=>dt(this,void 0,void 0,(function*(){var r;e.state.isOriginator&&!e.remote.state.ready?(Ke.SocketService(`[SocketService: handleChannelRejected()] context=${e.state.context} channelId=${t} isOriginator=${e.state.isOriginator} ready=${e.remote.state.ready}`,e.remote.state.originatorInfo),zx(Object.assign(Object.assign({id:t,event:dc.REJECTED},e.remote.state.originatorInfo),{sdkVersion:e.remote.state.sdkVersion,commLayer:e.state.communicationLayerPreference,commLayerVersion:MS.version,walletVersion:(r=e.remote.state.walletInfo)===null||r===void 0?void 0:r.version}),e.remote.state.communicationServerUrl).catch((o=>{})),yield e.remote.disconnect({terminate:!0}),e.remote.emit(Et.REJECTED,{channelId:t}),e.remote.setConnectionStatus(Ju.DISCONNECTED)):Ke.SocketService(`[SocketService: handleChannelRejected()] SKIP -- channelId=${t} isOriginator=${e.state.isOriginator} ready=${e.remote.state.ready}`)}))}},{event:\"clients_waiting_to_join\",handler:function(e,t){return n=>{Ke.SocketService(`[SocketService: handleClientsWaitingToJoin()] context=${e.state.context} on \\'clients_waiting_to_join-${t}\\'`,n),e.emit(Et.CLIENTS_WAITING,n)}}}],nPt=[{event:Et.KEY_INFO,handler:function(e){return t=>{Ke.SocketService(\"[SocketService: handleKeyInfo()] on \\'KEY_INFO\\'\",t),e.emit(Et.KEY_INFO,t)}}},{event:Et.KEYS_EXCHANGED,handler:function(e){return()=>{var t,n,r;Ke.SocketService(`[SocketService: handleKeysExchanged()] on \\'keys_exchanged\\' keyschanged=${(t=e.state.keyExchange)===null||t===void 0?void 0:t.areKeysExchanged()}`);let{channelConfig:o}=e.remote.state;if(o){let a=e.getKeyExchange().getKeyInfo().ecies;o.localKey=a.private,o.otherKey=a.otherPubKey,e.remote.state.channelConfig=o,(n=e.remote.state.storageManager)===null||n===void 0||n.persistChannelConfig(o).catch((c=>{}))}e.emit(Et.KEYS_EXCHANGED,{keysExchanged:(r=e.state.keyExchange)===null||r===void 0?void 0:r.areKeysExchanged(),isOriginator:e.state.isOriginator});let i={keyInfo:e.getKeyInfo()};e.emit(Et.SERVICE_STATUS,i)}}}];Tge=class extends qN.EventEmitter2{constructor(t){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:\"\",focusListenerAdded:!1,removeFocusListener:void 0,isReconnecting:!1,reconnectionAttempts:0},this.options=t;let{reconnect:n,communicationLayerPreference:r,communicationServerUrl:o,context:i,remote:a,logging:c}=t;this.state.resumed=n,this.state.context=i,this.state.isOriginator=a.state.isOriginator,this.state.communicationLayerPreference=r,this.state.debug=c?.serviceLayer===!0,this.remote=a,c?.serviceLayer===!0&&jd.default.enable(\"SocketService:Layer\"),this.state.communicationServerUrl=o,this.state.hasPlaintext=this.state.communicationServerUrl!==MC&&c?.plaintext===!0,Ke.SocketService(`[SocketService: constructor()] Socket IO url: ${this.state.communicationServerUrl}`),this.initSocket()}initSocket(){var t;let{otherPublicKey:n,ecies:r,logging:o}=this.options,i={autoConnect:!1,transports:X7t,withCredentials:!0},a=this.state.communicationServerUrl;Ke.SocketService(`[SocketService: initSocket()] Socket IO url: ${a}`),this.state.socket=hU(a,i),(function(u){if(typeof window<\"u\"&&typeof document<\"u\"&&(Ke.SocketService(`[SocketService: setupSocketFocusListener()] hasFocus=${document.hasFocus()}`,u),!u.state.focusListenerAdded)){let d=()=>{Ke.SocketService(\"Document has focus --- reconnecting socket\"),Sge(u).catch((p=>{}))};window.addEventListener(\"focus\",d),u.state.focusListenerAdded=!0,u.state.removeFocusListener=()=>{window.removeEventListener(\"focus\",d),u.state.focusListenerAdded=!1}}})(this);let c={communicationLayer:this,otherPublicKey:n,sendPublicKey:!1,context:(t=this.state.context)!==null&&t!==void 0?t:\"\",ecies:r,logging:o};this.state.keyExchange=new _ge(c)}resetKeys(){return Ke.SocketService(\"[SocketService: resetKeys()] Resetting keys.\"),void((t=this.state.keyExchange)===null||t===void 0||t.resetKeys());var t}createChannel(){return dt(this,void 0,void 0,(function*(){return(function(t){return dt(this,void 0,void 0,(function*(){var n,r,o;if(Ke.SocketService(`[SocketService: createChannel()] context=${t.state.context}`),t.state.socket||t.initSocket(),(n=t.state.socket)===null||n===void 0?void 0:n.connected)throw new Error(\"socket already connected\");(r=t.state.socket)===null||r===void 0||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;let i=bN();t.state.channelId=i,tQe(t,i),yield new Promise(((c,u)=>{var d;(d=t.state.socket)===null||d===void 0||d.emit(Et.JOIN_CHANNEL,{channelId:i,context:`${t.state.context}createChannel`,clientType:\"dapp\"},((p,h)=>dt(this,void 0,void 0,(function*(){try{yield _X(t,p,h),c()}catch(g){u(g)}}))))}));let a=(o=t.state.keyExchange)===null||o===void 0?void 0:o.getKeyInfo();return{channelId:i,pubKey:a?.ecies.public||\"\",privKey:a?.ecies.private||\"\"}}))})(this)}))}connectToChannel({channelId:t,withKeyExchange:n=!1,authorized:r}){return(function(o){return dt(this,arguments,void 0,(function*({options:i,instance:a}){let{channelId:c,authorized:u,withKeyExchange:d}=i,{state:p,remote:h}=a,{isOriginator:g=!1,socket:y,keyExchange:v}=p,{channelConfig:x}=h.state;if(y?.connected)throw new Error(\"socket already connected\");if(g&&x?.relayPersistence){let{localKey:R,otherKey:S}=x;R&&S&&v?.setRelayPersistence({localKey:R,otherKey:S})}return Object.assign(p,{manualDisconnect:!1,withKeyExchange:d,isOriginator:g,channelId:c}),y?.connect(),tQe(a,c),!g&&u&&(v?.setKeysExchanged(!0),Object.assign(h.state,{ready:!0,authorized:!0})),new Promise((R=>{var S;let M=(S=v?.getKeyInfo())===null||S===void 0?void 0:S.ecies.public;y?.emit(Et.JOIN_CHANNEL,{channelId:c,context:`${p.context}_connectToChannel`,clientType:g?\"dapp\":\"wallet\",publicKey:u&&!g?M:void 0},((P,z)=>dt(this,void 0,void 0,(function*(){yield _X(a,P,z),R()}))))}))}))})({options:{channelId:t,withKeyExchange:n,authorized:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;(n=(t=this).state.socket)===null||n===void 0||n.emit(Et.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:yi.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(t){return dt(this,void 0,void 0,(function*(){return(function(n,r){return dt(this,void 0,void 0,(function*(){var o,i,a;if(!n.state.channelId)throw Ke.SocketService(\"handleSendMessage: no channelId - Create a channel first\"),new Error(\"Create a channel first\");if(Ke.SocketService(`[SocketService: handleSendMessage()] context=${n.state.context} areKeysExchanged=${(o=n.state.keyExchange)===null||o===void 0?void 0:o.areKeysExchanged()}`,r),(i=r?.type)===null||i===void 0?void 0:i.startsWith(\"key_handshake\"))return(function(u,d){var p;Ke.SocketService(`[SocketService: handleKeyHandshake()] context=${u.state.context}`,d),(p=u.state.socket)===null||p===void 0||p.emit(Et.MESSAGE,{id:u.state.channelId,context:u.state.context,clientType:u.state.isOriginator?\"dapp\":\"wallet\",message:d})})(n,r),!0;(function(u,d){var p;if(!(!((p=u.state.keyExchange)===null||p===void 0)&&p.areKeysExchanged())&&!u.remote.state.relayPersistence)throw Ke.SocketService(`[SocketService: validateKeyExchange()] context=${u.state.context} ERROR keys not exchanged`,d),new Error(\"Keys not exchanged BBB\")})(n,r),(function(u,d){var p;let h=(p=d?.method)!==null&&p!==void 0?p:\"\",g=d?.id;u.state.isOriginator&&g&&(u.state.rpcMethodTracker[g]={id:g,timestamp:Date.now(),method:h},u.emit(Et.RPC_UPDATE,u.state.rpcMethodTracker[g]))})(n,r);let c=yield GXe(n,r);return n.remote.state.analytics&&n.remote.state.isOriginator&&r.method&&qXe.includes(r.method.toLowerCase())&&zx({id:(a=n.remote.state.channelId)!==null&&a!==void 0?a:\"\",event:dc.SDK_RPC_REQUEST,params:{method:r.method,from:\"mobile\"}},n.remote.state.communicationServerUrl).catch((u=>{})),(function(u,d){return dt(this,void 0,void 0,(function*(){var p;let h=d?.id,g=(p=d?.method)!==null&&p!==void 0?p:\"\";if(u.state.isOriginator&&h)try{let y=eQe(h,u.state.rpcMethodTracker,200).then((R=>({type:LN.RPC_CHECK,result:R}))),v=dt(this,void 0,void 0,(function*(){let R=yield(M=>dt(void 0,[M],void 0,(function*({rpcId:P,instance:z}){for(;z.state.lastRpcId===P||z.state.lastRpcId===void 0;)yield HN(200);return z.state.lastRpcId})))({instance:u,rpcId:h}),S=yield eQe(R,u.state.rpcMethodTracker,200);return{type:LN.SKIPPED_RPC,result:S}})),x=yield Promise.race([y,v]);if(x.type===LN.RPC_CHECK){let R=x.result;Ke.SocketService(`[SocketService:handleRpcReplies()] id=${d.id} ${g} ( ${R.elapsedTime} ms)`,R.result)}else{if(x.type!==LN.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${h}`);{let R=Object.assign(Object.assign({},u.state.rpcMethodTracker[h]),{error:new Error(\"SDK_CONNECTION_ISSUE\")});u.emit(Et.RPC_UPDATE,R);let S={data:Object.assign(Object.assign({},R),{jsonrpc:\"2.0\"}),name:\"metamask-provider\"};u.emit(Et.MESSAGE,{message:S})}}}catch(y){throw y}}))})(n,r).catch((u=>{})),c}))})(this,t)}))}ping(){return(function(t){return dt(this,void 0,void 0,(function*(){var n,r;Ke.SocketService(`[SocketService: ping()] context=${t.state.context} originator=${t.state.isOriginator} keysExchanged=${(n=t.state.keyExchange)===null||n===void 0?void 0:n.areKeysExchanged()}`),(r=t.state.socket)===null||r===void 0||r.emit(ts.PING,{id:t.state.channelId,context:\"ping\",clientType:t.remote.state.isOriginator?\"dapp\":\"wallet\",message:\"\"})}))})(this)}pause(){return(function(t){return dt(this,void 0,void 0,(function*(){var n,r;Ke.SocketService(`[SocketService: pause()] context=${t.state.context}`),t.state.manualDisconnect=!0,!((n=t.state.keyExchange)===null||n===void 0)&&n.areKeysExchanged()&&(yield t.sendMessage({type:ts.PAUSE})),(r=t.state.socket)===null||r===void 0||r.disconnect()}))})(this)}isConnected(){var t;return(t=this.state.socket)===null||t===void 0?void 0:t.connected}resume(){return(function(t){return dt(this,void 0,void 0,(function*(){let{state:n,remote:r}=t,{socket:o,channelId:i,context:a,keyExchange:c,isOriginator:u}=n,{isOriginator:d}=r.state;if(Ke.SocketService(`[SocketService: resume()] channelId=${i} context=${a} connected=${o?.connected} manualDisconnect=${n.manualDisconnect} resumed=${n.resumed} keysExchanged=${c?.areKeysExchanged()}`),!i)throw Ke.SocketService(\"[SocketService: resume()] channelId is not defined\"),new Error(\"ChannelId is not defined\");o?.connected?(Ke.SocketService(\"[SocketService: resume()] already connected.\"),o.emit(ts.PING,{id:i,clientType:d?\"dapp\":\"wallet\",context:\"on_channel_config\",message:\"\"}),r.hasRelayPersistence()||c?.areKeysExchanged()||(u?yield t.sendMessage({type:ts.READY}):c?.start({isOriginator:!1}))):(o?.connect(),Ke.SocketService(`[SocketService: resume()] after connecting socket --> connected=${o?.connected}`),o?.emit(Et.JOIN_CHANNEL,{channelId:i,context:`${a}_resume`,clientType:d?\"dapp\":\"wallet\"},((p,h)=>dt(this,void 0,void 0,(function*(){try{yield _X(t,p,h)}catch{}}))))),n.manualDisconnect=!1,n.resumed=!0}))})(this)}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(t){return(function(n,r){var o,i,a,c,u;Ke.SocketService(`[SocketService: disconnect()] context=${n.state.context}`,r),r?.terminate&&((i=(o=n.state).removeFocusListener)===null||i===void 0||i.call(o),n.state.channelId=r.channelId,(a=n.state.socket)===null||a===void 0||a.removeAllListeners(),(c=n.state.keyExchange)===null||c===void 0||c.clean(),n.remote.state.ready=!1,n.state.socket=void 0,n.state.rpcMethodTracker={}),n.state.manualDisconnect=!0,(u=n.state.socket)===null||u===void 0||u.disconnect()})(this,t)}};(DS||(DS={})).SOCKET=\"socket\",(function(e){e.NonBrowser=\"nodejs\",e.MetaMaskMobileWebview=\"in-app-browser\",e.DesktopWeb=\"web-desktop\",e.MobileWeb=\"web-mobile\",e.ReactNative=\"react-native\"})(Wl||(Wl={}));Cge=class extends qN.EventEmitter2{constructor(t){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,terminated:!1,protocolVersion:1,paused:!1,deeplinkProtocolAvailable:!1,platformType:\"metamask-mobile\",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:MC,context:\"\",persist:!1,clientsConnected:!1,sessionDuration:WN,originatorConnectStarted:!1,debug:!1,_connectionStatus:Ju.DISCONNECTED},this._options=t;let{platformType:n,communicationLayerPreference:r,otherPublicKey:o,reconnect:i,walletInfo:a,dappMetadata:c,protocolVersion:u,transports:d,context:p,relayPersistence:h,ecies:g,analytics:y=!1,storage:v,sdkVersion:x,communicationServerUrl:R=MC,logging:S,autoConnect:M={timeout:$7t}}=t;this.state.otherPublicKey=o,this.state.dappMetadata=c,this.state.walletInfo=a,this.state.transports=d,this.state.platformType=n,this.state.analytics=y,this.state.protocolVersion=u??1,this.state.isOriginator=!o,this.state.relayPersistence=h,this.state.communicationServerUrl=R,this.state.context=p,this.state.terminated=!1,this.state.sdkVersion=x,this.setMaxListeners(50),this.setConnectionStatus(Ju.DISCONNECTED),v?.duration&&(this.state.sessionDuration=WN),this.state.storageOptions=v,this.state.autoConnectOptions=M,this.state.debug=S?.remoteLayer===!0,S?.remoteLayer===!0&&jd.default.enable(\"RemoteCommunication:Layer\"),S?.serviceLayer===!0&&jd.default.enable(\"SocketService:Layer\"),S?.eciesLayer===!0&&jd.default.enable(\"ECIES:Layer\"),S?.keyExchangeLayer===!0&&jd.default.enable(\"KeyExchange:Layer\"),this.state.logging=S,v?.storageManager&&(this.state.storageManager=v.storageManager),Ke.RemoteCommunication(`[RemoteCommunication: constructor()] protocolVersion=${u} relayPersistence=${h} isOriginator=${this.state.isOriginator} communicationLayerPreference=${r} otherPublicKey=${o} reconnect=${i}`),this.state.isOriginator||rQe({communicationLayerPreference:r,otherPublicKey:o,reconnect:i,ecies:g,communicationServerUrl:R,instance:this}),this.emitServiceStatusEvent({context:\"constructor\"})}initFromDappStorage(){return dt(this,void 0,void 0,(function*(){var t;if(this.state.storageManager){let n=yield this.state.storageManager.getPersistedChannelConfig({});n&&(this.state.channelConfig=n,this.state.channelId=n.channelId,this.state.deeplinkProtocolAvailable=(t=n.deeplinkProtocolAvailable)!==null&&t!==void 0&&t,n.relayPersistence&&(this.state.authorized=!0,this.state.ready=!0,this.setConnectionStatus(Ju.LINKED),yield this.connectToChannel({channelId:n.channelId})))}rQe({communicationLayerPreference:DS.SOCKET,otherPublicKey:this.state.otherPublicKey,reconnect:this._options.reconnect,ecies:this._options.ecies,communicationServerUrl:this.state.communicationServerUrl,instance:this})}))}originatorSessionConnect(){return dt(this,void 0,void 0,(function*(){return yield(function(t){return dt(this,void 0,void 0,(function*(){var n;let{state:r}=t;if(!r.storageManager)return void Ke.RemoteCommunication(\"[RemoteCommunication: originatorSessionConnect()] no storage manager defined - skip\");let o=yield r.storageManager.getPersistedChannelConfig({});if(Ke.RemoteCommunication(`[RemoteCommunication: originatorSessionConnect()] autoStarted=${r.originatorConnectStarted} channelConfig`,o),(n=r.communicationLayer)===null||n===void 0?void 0:n.isConnected())return Ke.RemoteCommunication(\"[RemoteCommunication: originatorSessionConnect()] socket already connected - skip\"),o;if(o){if(o.validUntil>Date.now())return r.channelConfig=o,r.originatorConnectStarted=!0,r.channelId=o?.channelId,r.reconnection=!0,o;Ke.RemoteCommunication(\"[RemoteCommunication: autoConnect()] Session has expired\")}r.originatorConnectStarted=!1}))})(this)}))}generateChannelIdConnect(){return dt(this,void 0,void 0,(function*(){return(function(t){return dt(this,void 0,void 0,(function*(){var n,r,o,i,a,c;if(!t.communicationLayer)throw new Error(\"communication layer not initialized\");if(t.ready)throw new Error(\"Channel already connected\");if(t.channelId&&(!((n=t.communicationLayer)===null||n===void 0)&&n.isConnected()))return t.channelConfig=Object.assign(Object.assign({},t.channelConfig),{channelId:t.channelId,validUntil:Date.now()+t.sessionDuration}),(r=t.storageManager)===null||r===void 0||r.persistChannelConfig(t.channelConfig),{channelId:t.channelId,privKey:(i=(o=t.communicationLayer)===null||o===void 0?void 0:o.getKeyInfo())===null||i===void 0?void 0:i.ecies.private,pubKey:(c=(a=t.communicationLayer)===null||a===void 0?void 0:a.getKeyInfo())===null||c===void 0?void 0:c.ecies.public};Ke.RemoteCommunication(\"[RemoteCommunication: generateChannelId()]\");let u=yield t.communicationLayer.createChannel();Ke.RemoteCommunication(\"[RemoteCommunication: generateChannelId()] channel created\",u);let d=Object.assign(Object.assign({},t.channelConfig),{channelId:u.channelId,localKey:u.privKey,validUntil:Date.now()+t.sessionDuration});return t.channelId=u.channelId,t.channelConfig=d,{channelId:t.channelId,pubKey:u.pubKey,privKey:u.privKey}}))})(this.state)}))}clean(){return VXe(this.state)}connectToChannel({channelId:t,withKeyExchange:n,authorized:r}){return(function(o){return dt(this,arguments,void 0,(function*({channelId:i,withKeyExchange:a,authorized:c,state:u}){var d,p,h;if(!g1(i))throw Ke.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${u.context} invalid channel channelId=${i}`),new Error(`Invalid channel ${i}`);if(Ke.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${u.context} channelId=${i} withKeyExchange=${a}`),(d=u.communicationLayer)===null||d===void 0?void 0:d.isConnected())return void Ke.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${u.context} already connected - interrupt connection.`);u.channelId=i,yield(p=u.communicationLayer)===null||p===void 0?void 0:p.connectToChannel({channelId:i,authorized:c,withKeyExchange:a});let g=Object.assign(Object.assign({},u.channelConfig),{channelId:i,validUntil:Date.now()+u.sessionDuration});u.channelConfig=g,(h=u.storageManager)===null||h===void 0||h.persistChannelConfig(g)}))})({channelId:t,authorized:r,withKeyExchange:n,state:this.state})}sendMessage(t){return(function(n,r){return dt(this,void 0,void 0,(function*(){var o,i;let{state:a}=n;Ke.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${a.context} paused=${a.paused} ready=${a.ready} relayPersistence=${a.relayPersistence} authorized=${a.authorized} socket=${(o=a.communicationLayer)===null||o===void 0?void 0:o.isConnected()} clientsConnected=${a.clientsConnected} status=${a._connectionStatus}`,r),a.relayPersistence||a.ready&&(!((i=a.communicationLayer)===null||i===void 0)&&i.isConnected())&&a.clientsConnected||(Ke.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${a.context}  SKIP message waiting for MM mobile readiness.`),yield new Promise((c=>{n.once(Et.CLIENTS_READY,c)})),Ke.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${a.context}  AFTER SKIP / READY -- sending pending message`));try{return yield(function(u,d){return dt(this,void 0,void 0,(function*(){return new Promise((p=>{var h;let{state:g}=u;Ke.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${g.context} ready=${g.ready} authorized=${g.authorized} method=${d.method}`),!g.isOriginator||g.authorized||g.relayPersistence?(h=g.communicationLayer)===null||h===void 0||h.sendMessage(d).then((y=>{p(y)})).catch((y=>{p(!1)})):u.once(Et.AUTHORIZED,(()=>{var y;Ke.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${g.context}  AFTER SKIP / AUTHORIZED -- sending pending message`),(y=g.communicationLayer)===null||y===void 0||y.sendMessage(d).then((v=>{p(v)})).catch((v=>{p(!1)}))}))}))}))})(n,r)}catch(c){throw c}}))})(this,t)}testStorage(){return dt(this,void 0,void 0,(function*(){return(function(t){return dt(this,void 0,void 0,(function*(){var n;let r=yield(n=t.storageManager)===null||n===void 0?void 0:n.getPersistedChannelConfig();Ke.RemoteCommunication(\"[RemoteCommunication: testStorage()] res\",r)}))})(this.state)}))}hasDeeplinkProtocol(){return this.state.deeplinkProtocolAvailable}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){return dt(this,void 0,void 0,(function*(){var t;Ke.RemoteCommunication(`[RemoteCommunication: ping()] channel=${this.state.channelId}`),yield(t=this.state.communicationLayer)===null||t===void 0?void 0:t.ping()}))}testLogger(){Ke.RemoteCommunication(`testLogger() channel=${this.state.channelId}`),Ke.SocketService(`testLogger() channel=${this.state.channelId}`),Ke.Ecies(`testLogger() channel=${this.state.channelId}`),Ke.KeyExchange(`testLogger() channel=${this.state.channelId}`)}keyCheck(){var t;Ke.RemoteCommunication(`[RemoteCommunication: keyCheck()] channel=${this.state.channelId}`),(t=this.state.communicationLayer)===null||t===void 0||t.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(Et.CONNECTION_STATUS,t),this.emitServiceStatusEvent({context:\"setConnectionStatus\"}))}emitServiceStatusEvent(t={}){this.emit(Et.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getKeyInfo()}resetKeys(){var t;(t=this.state.communicationLayer)===null||t===void 0||t.resetKeys()}setOtherPublicKey(t){var n;let r=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange();if(!r)throw new Error(\"KeyExchange is not initialized.\");r.getOtherPublicKey()!==t&&r.setOtherPublicKey(t)}pause(){return dt(this,void 0,void 0,(function*(){var t;Ke.RemoteCommunication(`[RemoteCommunication: pause()] channel=${this.state.channelId}`),yield(t=this.state.communicationLayer)===null||t===void 0?void 0:t.pause(),this.setConnectionStatus(Ju.PAUSED)}))}getVersion(){return MS.version}hasRelayPersistence(){var t;return(t=this.state.relayPersistence)!==null&&t!==void 0&&t}resume(){return dt(this,void 0,void 0,(function*(){return(function(t){return dt(this,void 0,void 0,(function*(){var n;let{state:r}=t;Ke.RemoteCommunication(`[RemoteCommunication: resume()] channel=${r.channelId}`),yield(n=r.communicationLayer)===null||n===void 0?void 0:n.resume(),t.setConnectionStatus(Ju.LINKED)}))})(this)}))}encrypt(t){var n,r,o;let i=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange(),a=i?.getOtherPublicKey();if(!a)throw new Error(\"KeyExchange not completed\");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.encrypt(t,a)}decrypt(t){var n,r,o;if(!(!((n=this.state.communicationLayer)===null||n===void 0)&&n.state.eciesInstance))throw new Error(\"ECIES instance is not initialized\");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.decrypt(t)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getRPCMethodTracker()}reject({channelId:t}){return(function(n){return dt(this,arguments,void 0,(function*({channelId:r,state:o}){var i,a,c;if(!g1(r))throw Ke.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${o.context} invalid channel channelId=${r}`),new Error(`Invalid channel ${r}`);if(o.isOriginator)return void Ke.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} isOriginator=${o.isOriginator} channelId=${r}`);let{socket:u}=(a=(i=o.communicationLayer)===null||i===void 0?void 0:i.state)!==null&&a!==void 0?a:{};u?.connected||(Ke.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} socket already connected`),u?.connect()),zx(Object.assign(Object.assign({id:r,event:dc.REJECTED},o.originatorInfo),{sdkVersion:o.sdkVersion,commLayerVersion:MS.version,walletVersion:(c=o.walletInfo)===null||c===void 0?void 0:c.version}),o.communicationServerUrl).catch((d=>{})),yield new Promise(((d,p)=>{u?.emit(Et.REJECTED,{channelId:r},((h,g)=>{Ke.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} socket=${u?.id}`,{error:h,response:g}),h?p(h):d(g)}))}))}))})({channelId:t,state:this.state})}disconnect(t){return dt(this,void 0,void 0,(function*(){return KXe({options:t,instance:this})}))}};(function(e){e.RENEW=\"renew\",e.LINK=\"link\"})(nQe||(nQe={}));pPt=\"ERC721\",hPt=\"ERC1155\",Fs={errors:{disconnected:()=>\"MetaMask: Disconnected from chain. Attempting to connect.\",permanentlyDisconnected:()=>\"MetaMask: Disconnected from MetaMask background. Page reload required.\",sendSiteMetadata:()=>\"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.\",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>\"Must provide a Node.js-style duplex stream.\",invalidNetworkParams:()=>\"MetaMask: Received invalid network parameters. Please report this bug.\",invalidRequestArgs:()=>\"Expected a single, non-array, object argument.\",invalidRequestMethod:()=>\"\\'args.method\\' must be a non-empty string.\",invalidRequestParams:()=>\"\\'args.params\\' must be an object or array if provided.\",invalidLoggerObject:()=>\"\\'args.logger\\' must be an object if provided.\",invalidLoggerMethod:e=>`\\'args.logger\\' must include required method \\'${e}\\'.`},info:{connected:e=>`MetaMask: Connected to chain with ID \"${e}\".`},warnings:{chainIdDeprecation:`MetaMask: \\'ethereum.chainId\\' is deprecated and may be removed in the future. Please use the \\'eth_chainId\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,networkVersionDeprecation:`MetaMask: \\'ethereum.networkVersion\\' is deprecated and may be removed in the future. Please use the \\'net_version\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,selectedAddressDeprecation:`MetaMask: \\'ethereum.selectedAddress\\' is deprecated and may be removed in the future. Please use the \\'eth_accounts\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,enableDeprecation:`MetaMask: \\'ethereum.enable()\\' is deprecated and may be removed in the future. Please use the \\'eth_requestAccounts\\' RPC method instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102`,sendDeprecation:`MetaMask: \\'ethereum.send(...)\\' is deprecated and may be removed in the future. Please use \\'ethereum.sendAsync(...)\\' or \\'ethereum.request(...)\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193`,events:{close:`MetaMask: The event \\'close\\' is deprecated and may be removed in the future. Please use \\'disconnect\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect`,data:`MetaMask: The event \\'data\\' is deprecated and will be removed in the future. Use \\'message\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`,networkChanged:`MetaMask: The event \\'networkChanged\\' is deprecated and may be removed in the future. Use \\'chainChanged\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged`,notification:`MetaMask: The event \\'notification\\' is deprecated and may be removed in the future. Use \\'message\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`},rpc:{ethDecryptDeprecation:`MetaMask: The RPC method \\'eth_decrypt\\' is deprecated and may be removed in the future.\\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,ethGetEncryptionPublicKeyDeprecation:`MetaMask: The RPC method \\'eth_getEncryptionPublicKey\\' is deprecated and may be removed in the future.\\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,walletWatchAssetNFTExperimental:`MetaMask: The RPC method \\'wallet_watchAsset\\' is experimental for ERC721/ERC1155 assets and may change in the future.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md and https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle`},experimentalMethods:\"MetaMask: \\'ethereum._metamask\\' exposes non-standard, experimental methods. They may be removed or changed without warning.\"}};YXe=4294967295,oQe=Math.floor(Math.random()*YXe);pye=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},IS=(e,t,n)=>(pye(e,t,\"read from private field\"),n?n.call(e):t.get(e)),w1=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},mX=(e,t,n,r)=>(pye(e,t,\"write to private field\"),t.set(e,n),n),Zf=(e,t,n)=>(pye(e,t,\"access private method\"),n),SS={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},iQe={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}};$X=(e,t)=>Object.hasOwnProperty.call(e,t),Rge=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,u=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??u),i!=null&&(this.cause=u),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};Tm=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=(u=>u),entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,this.validator=o?(u,d)=>sQe(o(u,d),d,this,u):()=>[],this.refiner=i?(u,d)=>sQe(i(u,d),d,this,u):()=>[]}assert(t,n){return ZXe(t,this,n)}create(t,n){return QXe(t,this,n)}is(t){return KN(t,this)}mask(t,n){return(function(r,o,i){let a=HU(r,o,{coerce:!0,mask:!0,message:i});if(a[0])throw a[0];return a[1]})(t,this,n)}validate(t,n={}){return HU(t,this,n)}};wPt=class extends Error{constructor(e){super(e.message),this.code=\"ERR_ASSERTION\"}};vS=n$e,wS=r$e;typeof $f.setTimeout==\"function\"&&(vS=setTimeout),typeof $f.clearTimeout==\"function\"&&(wS=clearTimeout);Fx=[],zN=!1,SX=-1;a$e.prototype.run=function(){this.fun.apply(null,this.array)};EPt=LC,APt=LC,_Pt=LC,SPt=LC,TPt=LC,CPt=LC,RPt=LC,ON=$f.performance||{},IPt=ON.now||ON.mozNow||ON.msNow||ON.oNow||ON.webkitNow||function(){return new Date().getTime()},OPt=new Date,Fo={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Fx.push(new a$e(e,t)),Fx.length!==1||zN||o$e(i$e)},title:\"browser\",browser:!0,env:{},argv:[],version:\"\",versions:{},on:EPt,addListener:APt,once:_Pt,off:SPt,removeListener:TPt,removeAllListeners:CPt,emit:RPt,binding:function(e){throw new Error(\"process.binding is not supported\")},cwd:function(){return\"/\"},chdir:function(e){throw new Error(\"process.chdir is not supported\")},umask:function(){return 0},hrtime:function(e){var t=.001*IPt.call(ON),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:\"browser\",release:{},config:{},uptime:function(){return(new Date-OPt)/1e3}},zU=e=>e$e(e);t$=E$([XXe(null),LS(\"boolean\",(e=>typeof e==\"boolean\")),LS(\"finite number\",(e=>KN(e,$Xe())&&Number.isFinite(e))),BS(),JXe(cQe((()=>t$))),t$e(BS(),cQe((()=>t$)))]),jU=(gX=t$,dQe=LS(\"any\",(()=>!0)),fQe=e=>((function(t,n,r=\"Assertion failed\",o=wPt){try{ZXe(t,n)}catch(i){throw vPt(o,`${r}: ${bPt(i)}.`)}})(e,t$),JSON.parse(JSON.stringify(e,((t,n)=>{if(t!==\"__proto__\"&&t!==\"constructor\")return n})))),new Tm({...gX,coercer:(e,t)=>KN(e,dQe)?gX.coercer(fQe(e,t),t):gX.coercer(e,t)}));TU=XXe(\"2.0\"),TX=(function(e){return new Tm({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})})(E$([$Xe(),BS()])),Oge=zU({code:LS(\"integer\",(e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${jv(e)}`)),message:BS(),data:e$(jU),stack:e$(BS())}),s$e=E$([t$e(BS(),jU),JXe(jU)]),kPt=zU({id:TX,jsonrpc:TU,method:BS(),params:e$(s$e)}),NPt=zU({jsonrpc:TU,method:BS(),params:e$(s$e)});e$e({id:TX,jsonrpc:TU,result:uQe(LS(\"unknown\",(()=>!0))),error:uQe(Oge)}),E$([zU({id:TX,jsonrpc:TU,result:jU}),zU({id:TX,jsonrpc:TU,error:Oge})]);mQe=SS.internal,PPt=\"Unspecified error message. This is a bug, please report it.\",MPt={code:mQe,message:c$e(mQe)},DPt=\"Unspecified server error.\";l$e=xU;xU.default=xU,xU.stable=bQe,xU.stableStringify=bQe;n$=\"[...]\",d$e=\"[Circular]\",DC=[],kC=[];BPt=w$(l$e),Px=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error(\\'\"code\" must be an integer.\\');if(!t||typeof t!=\"string\")throw new Error(\\'\"message\" must be a non-empty string.\\');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data,(function(t){if(typeof t!=\"object\"||t===null)return!1;try{let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}catch{return!1}})(this.data)&&(e.data.cause=u$e(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return BPt(this.serialize(),UPt,2)}};CU=e=>FPt(SS.invalidRequest,e);h$e={};xS.prototype=Object.create(null),gi.EventEmitter=gi,gi.usingDomains=!1,gi.prototype.domain=void 0,gi.prototype._events=void 0,gi.prototype._maxListeners=void 0,gi.defaultMaxListeners=10,gi.init=function(){this.domain=null,gi.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new xS,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},gi.prototype.setMaxListeners=function(e){if(typeof e!=\"number\"||e<0||isNaN(e))throw new TypeError(\\'\"n\" argument must be a positive number\\');return this._maxListeners=e,this},gi.prototype.getMaxListeners=function(){return m$e(this)},gi.prototype.emit=function(e){var t,n,r,o,i,a,c,u=e===\"error\";if(a=this._events)u=u&&a.error==null;else if(!u)return!1;if(c=this.domain,u){if(t=arguments[1],!c){if(t instanceof Error)throw t;var d=new Error(\\'Uncaught, unspecified \"error\" event. (\\'+t+\")\");throw d.context=t,d}return t||(t=new Error(\\'Uncaught, unspecified \"error\" event\\')),t.domainEmitter=this,t.domain=c,t.domainThrown=!1,c.emit(\"error\",t),!1}if(!(n=a[e]))return!1;var p=typeof n==\"function\";switch(r=arguments.length){case 1:(function(h,g,y){if(g)h.call(y);else for(var v=h.length,x=bU(h,v),R=0;R<v;++R)x[R].call(y)})(n,p,this);break;case 2:(function(h,g,y,v){if(g)h.call(y,v);else for(var x=h.length,R=bU(h,x),S=0;S<x;++S)R[S].call(y,v)})(n,p,this,arguments[1]);break;case 3:(function(h,g,y,v,x){if(g)h.call(y,v,x);else for(var R=h.length,S=bU(h,R),M=0;M<R;++M)S[M].call(y,v,x)})(n,p,this,arguments[1],arguments[2]);break;case 4:(function(h,g,y,v,x,R){if(g)h.call(y,v,x,R);else for(var S=h.length,M=bU(h,S),P=0;P<S;++P)M[P].call(y,v,x,R)})(n,p,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];(function(h,g,y,v){if(g)h.apply(y,v);else for(var x=h.length,R=bU(h,x),S=0;S<x;++S)R[S].apply(y,v)})(n,p,this,o)}return!0},gi.prototype.addListener=function(e,t){return vQe(this,e,t,!1)},gi.prototype.on=gi.prototype.addListener,gi.prototype.prependListener=function(e,t){return vQe(this,e,t,!0)},gi.prototype.once=function(e,t){if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');return this.on(e,wQe(this,e,t)),this},gi.prototype.prependOnceListener=function(e,t){if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');return this.prependListener(e,wQe(this,e,t)),this},gi.prototype.removeListener=function(e,t){var n,r,o,i,a;if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)--this._eventsCount==0?this._events=new xS:(delete r[e],r.removeListener&&this.emit(\"removeListener\",e,n.listener||t));else if(typeof n!=\"function\"){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new xS,this;delete r[e]}else(function(c,u){for(var d=u,p=d+1,h=c.length;p<h;d+=1,p+=1)c[d]=c[p];c.pop()})(n,o);r.removeListener&&this.emit(\"removeListener\",e,a||t)}return this},gi.prototype.off=function(e,t){return this.removeListener(e,t)},gi.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return arguments.length===0?(this._events=new xS,this._eventsCount=0):n[e]&&(--this._eventsCount==0?this._events=new xS:delete n[e]),this;if(arguments.length===0){for(var r,o=Object.keys(n),i=0;i<o.length;++i)(r=o[i])!==\"removeListener\"&&this.removeAllListeners(r);return this.removeAllListeners(\"removeListener\"),this._events=new xS,this._eventsCount=0,this}if(typeof(t=n[e])==\"function\")this.removeListener(e,t);else if(t)do this.removeListener(e,t[t.length-1]);while(t[0]);return this},gi.prototype.listeners=function(e){var t,n,r=this._events;return n=r&&(t=r[e])?typeof t==\"function\"?[t.listener||t]:(function(o){for(var i=new Array(o.length),a=0;a<i.length;++a)i[a]=o[a].listener||o[a];return i})(t):[],n},gi.listenerCount=function(e,t){return typeof e.listenerCount==\"function\"?e.listenerCount(t):xQe.call(e,t)},gi.prototype.listenerCount=xQe,gi.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};mye=ZU(Object.freeze({__proto__:null,EventEmitter:gi,default:gi}));Object.defineProperty(h$e,\"__esModule\",{value:!0});HPt=mye;zPt=class extends HPt.EventEmitter{emit(e,...t){let n=e===\"error\",r=this._events;if(r!==void 0)n=n&&r.error===void 0;else if(!n)return!1;if(n){let i;if(t.length>0&&([i]=t),i instanceof Error)throw i;let a=new Error(\"Unhandled error.\"+(i?` (${i.message})`:\"\"));throw a.context=i,a}let o=r[e];if(o===void 0)return!1;if(typeof o==\"function\")EQe(o,this,t);else{let i=o.length,a=(function(c){let u=c.length,d=new Array(u);for(let p=0;p<u;p+=1)d[p]=c[p];return d})(o);for(let c=0;c<i;c+=1)EQe(a[c],this,t)}return!0}},g$e=h$e.default=zPt,v1=class kX extends g$e{constructor({notificationHandler:t}={}){super(),w1(this,EU),w1(this,RX),w1(this,IX),w1(this,r$,!1),w1(this,TS,void 0),w1(this,BN,void 0),mX(this,TS,[]),mX(this,BN,t)}destroy(){IS(this,TS).forEach((t=>{\"destroy\"in t&&typeof t.destroy==\"function\"&&t.destroy()})),mX(this,TS,[]),mX(this,r$,!0)}push(t){Zf(this,EU,CX).call(this),IS(this,TS).push(t)}handle(t,n){if(Zf(this,EU,CX).call(this),n&&typeof n!=\"function\")throw new Error(\\'\"callback\" must be a function if provided.\\');return Array.isArray(t)?n?Zf(this,RX,Pge).call(this,t,n):Zf(this,RX,Pge).call(this,t):n?Zf(this,IX,Mge).call(this,t,n):this._promiseHandle(t)}asMiddleware(){return Zf(this,EU,CX).call(this),async(t,n,r,o)=>{var i,a;try{let[c,u,d]=await Zf(i=kX,OX,Dge).call(i,t,n,IS(this,TS));return u?(await Zf(a=kX,RU,o$).call(a,d),o(c)):r((async p=>{var h;try{await Zf(h=kX,RU,o$).call(h,d)}catch(g){return p(g)}return p()}))}catch(c){return o(c)}}}async _promiseHandle(t){return new Promise(((n,r)=>{Zf(this,IX,Mge).call(this,t,((o,i)=>{o&&i===void 0?r(o):n(i)})).catch(r)}))}};r$=new WeakMap,TS=new WeakMap,BN=new WeakMap,EU=new WeakSet,CX=function(){if(IS(this,r$))throw new Error(\"This engine is destroyed and can no longer be used.\")},RX=new WeakSet,Pge=async function(e,t){try{if(e.length===0){let r=[{id:null,jsonrpc:\"2.0\",error:new Px(SS.invalidRequest,\"Request batch must contain plain objects. Received an empty array\")}];return t?t(null,r):r}let n=(await Promise.all(e.map(this._promiseHandle.bind(this)))).filter((r=>r!==void 0));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}},IX=new WeakSet,Mge=async function(e,t){var n;if(!e||Array.isArray(e)||typeof e!=\"object\"){let a=new Px(SS.invalidRequest,\"Requests must be plain objects. Received: \"+typeof e,{request:e});return t(a,{id:null,jsonrpc:\"2.0\",error:a})}if(typeof e.method!=\"string\"){let a=new Px(SS.invalidRequest,\"Must specify a string method. Received: \"+typeof e.method,{request:e});return IS(this,BN)&&!pQe(e)?t(null):t(a,{id:e.id??null,jsonrpc:\"2.0\",error:a})}if(IS(this,BN)&&KN(e,NPt)&&!pQe(e)){try{await IS(this,BN).call(this,e)}catch(a){return t(a)}return t(null)}let r=null,o={...e},i={id:o.id,jsonrpc:o.jsonrpc};try{await Zf(n=v1,W0e,AQe).call(n,o,i,IS(this,TS))}catch(a){r=a}return r&&(delete i.result,i.error||(i.error=gQe(r))),t(r,i)},W0e=new WeakSet,AQe=async function(e,t,n){var r,o,i;let[a,c,u]=await Zf(r=v1,OX,Dge).call(r,e,t,n);if(Zf(o=v1,G0e,SQe).call(o,e,t,c),await Zf(i=v1,RU,o$).call(i,u),a)throw a},OX=new WeakSet,Dge=async function(e,t,n){var r;let o=[],i=null,a=!1;for(let c of n)if([i,a]=await Zf(r=v1,V0e,_Qe).call(r,e,t,c,o),a)break;return[i,a,o.reverse()]},V0e=new WeakSet,_Qe=async function(e,t,n,r){return new Promise((o=>{let i=c=>{let u=c||t.error;u&&(t.error=gQe(u)),o([u,!0])},a=c=>{t.error?i(t.error):(c&&(typeof c!=\"function\"&&i(new Px(SS.internal,`JsonRpcEngine: \"next\" return handlers must be functions. Received \"${typeof c}\" for request:\\n${q0e(e)}`,{request:e})),r.push(c)),o([null,!1]))};try{n(e,t,a,i)}catch(c){i(c)}}))},RU=new WeakSet,o$=async function(e){for(let t of e)await new Promise(((n,r)=>{t((o=>o?r(o):n()))}))},G0e=new WeakSet,SQe=function(e,t,n){if(!$X(t,\"result\")&&!$X(t,\"error\"))throw new Px(SS.internal,`JsonRpcEngine: Response has no error or result for request:\\n${q0e(e)}`,{request:e});if(!n)throw new Px(SS.internal,`JsonRpcEngine: Nothing ended request:\\n${q0e(e)}`,{request:e})},w1(v1,W0e),w1(v1,OX),w1(v1,V0e),w1(v1,RU),w1(v1,G0e);jPt=v1;y$e=Object.freeze([\"eth_subscription\"]),WPt=(e=console)=>[gPt(),VPt(e),mPt(e)];NX=(e,t,n=!0)=>(r,o)=>{r||o.error?t(r||o.error):!n||Array.isArray(o)?e(o):e(o.result)},b$e=e=>!!e&&typeof e==\"string\"&&e.startsWith(\"0x\"),v$e=()=>{};w$e=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},Bv=(e,t,n)=>(w$e(e,t,\"read from private field\"),n?n.call(e):t.get(e)),Lge=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},Mx=(e,t,n,r)=>(w$e(e,t,\"write to private field\"),t.set(e,n),n);Bge=class extends gi{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(\"Unhandled error.\"+(a?` (${a.message})`:\"\"));throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")CQe(i,this,n);else{let a=i.length,c=(function(u){let d=u.length,p=new Array(d);for(let h=0;h<d;h+=1)p[h]=u[h];return p})(i);for(let u=0;u<a;u+=1)CQe(c[u],this,n)}return!0}},YPt=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==\"object\"&&typeof n==\"object\"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;o--!=0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!=0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},ZPt=w$(YPt),x$e=class E$e extends Bge{constructor({logger:t=console,maxEventListeners:n=100,rpcMiddleware:r=[]}={}){super(),Lge(this,ES,void 0),Lge(this,TC,void 0),this._log=t,this.setMaxListeners(n),this._state={...E$e._defaultState},Mx(this,TC,null),Mx(this,ES,null),this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);let o=new jPt;r.forEach((i=>o.push(i))),this._rpcEngine=o}get chainId(){return Bv(this,ES)}get selectedAddress(){return Bv(this,TC)}isConnected(){return this._state.isConnected}async request(t){if(!t||typeof t!=\"object\"||Array.isArray(t))throw CU({message:Fs.errors.invalidRequestArgs(),data:t});let{method:n,params:r}=t;if(typeof n!=\"string\"||n.length===0)throw CU({message:Fs.errors.invalidRequestMethod(),data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\"object\"||r===null))throw CU({message:Fs.errors.invalidRequestParams(),data:t});let o=r==null?{method:n}:{method:n,params:r};return new Promise(((i,a)=>{this._rpcRequest(o,NX(i,a))}))}_initializeState(t){if(this._state.initialized)throw new Error(\"Provider already initialized.\");if(t){let{accounts:n,chainId:r,isUnlocked:o,networkVersion:i}=t;this._handleConnect(r),this._handleChainChanged({chainId:r,networkVersion:i}),this._handleUnlockStateChanged({accounts:n,isUnlocked:o}),this._handleAccountsChanged(n)}this._state.initialized=!0,this.emit(\"_initialized\")}_rpcRequest(t,n){let r=n;return Array.isArray(t)||(t.jsonrpc||(t.jsonrpc=\"2.0\"),t.method!==\"eth_accounts\"&&t.method!==\"eth_requestAccounts\"||(r=(o,i)=>{this._handleAccountsChanged(i.result??[],t.method===\"eth_accounts\"),n(o,i)})),this._rpcEngine.handle(t,r)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit(\"connect\",{chainId:t}),this._log.debug(Fs.info.connected(t)))}_handleDisconnect(t,n){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){let r;this._state.isConnected=!1,t?(r=new Px(1013,n??Fs.errors.disconnected()),this._log.debug(r)):(r=new Px(1011,n??Fs.errors.permanentlyDisconnected()),this._log.error(r),Mx(this,ES,null),this._state.accounts=null,Mx(this,TC,null),this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit(\"disconnect\",r)}}_handleChainChanged({chainId:t}={}){b$e(t)?(this._handleConnect(t),t!==Bv(this,ES)&&(Mx(this,ES,t),this._state.initialized&&this.emit(\"chainChanged\",Bv(this,ES)))):this._log.error(Fs.errors.invalidNetworkParams(),{chainId:t})}_handleAccountsChanged(t,n=!1){let r=t;Array.isArray(t)||(this._log.error(\"MetaMask: Received invalid accounts parameter. Please report this bug.\",t),r=[]);for(let o of t)if(typeof o!=\"string\"){this._log.error(\"MetaMask: Received non-string account. Please report this bug.\",t),r=[];break}if(!ZPt(this._state.accounts,r)&&(n&&this._state.accounts!==null&&this._log.error(\"MetaMask: \\'eth_accounts\\' unexpectedly updated accounts. Please report this bug.\",r),this._state.accounts=r,Bv(this,TC)!==r[0]&&Mx(this,TC,r[0]||null),this._state.initialized)){let o=[...r];this.emit(\"accountsChanged\",o)}}_handleUnlockStateChanged({accounts:t,isUnlocked:n}={}){typeof n==\"boolean\"?n!==this._state.isUnlocked&&(this._state.isUnlocked=n,this._handleAccountsChanged(t??[])):this._log.error(\"MetaMask: Received invalid isUnlocked parameter. Please report this bug.\")}};ES=new WeakMap,TC=new WeakMap,x$e._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};QPt=x$e,Uge={exports:{}};yye=ZU(v7t);gye=typeof Object.create==\"function\"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};_$e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},JPt=/%[sdj%]/g;yX={};zv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},zv.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"};e9t=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];CC=typeof Symbol<\"u\"?Symbol(\"util.promisify.custom\"):void 0;Aye.custom=CC;n9t={inherits:gye,_extend:Eye,log:O$e,isBuffer:I$e,isPrimitive:R$e,isFunction:kU,isError:OU,isDate:a$,isObject:BC,isRegExp:IU,isUndefined:Fv,isSymbol:C$e,isString:WU,isNumber:wye,isNullOrUndefined:T$e,isNull:QU,isBoolean:_$,isArray:vye,inspect:zv,deprecate:bye,format:A$,debuglog:S$e,promisify:Aye,callbackify:N$e},P$e=ZU(Object.freeze({__proto__:null,_extend:Eye,callbackify:N$e,debuglog:S$e,default:n9t,deprecate:bye,format:A$,inherits:gye,inspect:zv,isArray:vye,isBoolean:_$,isBuffer:I$e,isDate:a$,isError:OU,isFunction:kU,isNull:QU,isNullOrUndefined:T$e,isNumber:wye,isObject:BC,isPrimitive:R$e,isRegExp:IU,isString:WU,isSymbol:C$e,isUndefined:Fv,log:O$e,promisify:Aye}));UC={},D$e={};yg(\"ERR_INVALID_OPT_VALUE\",(function(e,t){return\\'The value \"\\'+t+\\'\" is invalid for option \"\\'+e+\\'\"\\'}),TypeError),yg(\"ERR_INVALID_ARG_TYPE\",(function(e,t,n){var r,o,i;if(typeof t==\"string\"&&(o=\"not \",t.substr(0,o.length)===o)?(r=\"must not be\",t=t.replace(/^not /,\"\")):r=\"must be\",(function(c,u,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-u.length,d)===u})(e,\" argument\"))i=\"The \".concat(e,\" \").concat(r,\" \").concat(MQe(t,\"type\"));else{var a=(function(c,u,d){return typeof d!=\"number\"&&(d=0),!(d+u.length>c.length)&&c.indexOf(u,d)!==-1})(e,\".\")?\"property\":\"argument\";i=\\'The \"\\'.concat(e,\\'\" \\').concat(a,\" \").concat(r,\" \").concat(MQe(t,\"type\"))}return i+=\". Received type \".concat(typeof n)}),TypeError),yg(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),yg(\"ERR_METHOD_NOT_IMPLEMENTED\",(function(e){return\"The \"+e+\" method is not implemented\"})),yg(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),yg(\"ERR_STREAM_DESTROYED\",(function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"})),yg(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),yg(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),yg(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),yg(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),yg(\"ERR_UNKNOWN_ENCODING\",(function(e){return\"Unknown encoding: \"+e}),TypeError),yg(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),UC.codes=D$e;o9t=typeof Object.create==\"function\"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},JU=ZU(Object.freeze({__proto__:null,default:o9t}));a9t=ut.isEncoding||function(e){switch(e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};PX.prototype.write=function(e){for(var t=\"\";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return\"\";if(e=e.slice(n,e.length),!((o=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&o<=56319)){if(this.charReceived=this.charLength=0,e.length===0)return t;break}this.charLength+=this.surrogateSize,t=\"\"}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var o;if(r=(t+=e.toString(this.encoding,0,r)).length-1,(o=t.charCodeAt(r))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,r)}return t},PX.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(t==1&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},PX.prototype.end=function(e){var t=\"\";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t};UQe=ZU(Object.freeze({__proto__:null,StringDecoder:PX})),FQe=UC.codes.ERR_STREAM_PREMATURE_CLOSE;_ye=function e(t,n,r){if(typeof n==\"function\")return e(t,null,n);n||(n={}),r=(function(v){var x=!1;return function(){if(!x){x=!0;for(var R=arguments.length,S=new Array(R),M=0;M<R;M++)S[M]=arguments[M];v.apply(this,S)}}})(r||l9t);var o=n.readable||n.readable!==!1&&t.readable,i=n.writable||n.writable!==!1&&t.writable,a=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){i=!1,c=!0,o||r.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){o=!1,d=!0,i||r.call(t)},h=function(v){r.call(t,v)},g=function(){var v;return o&&!d?(t._readableState&&t._readableState.ended||(v=new FQe),r.call(t,v)):i&&!c?(t._writableState&&t._writableState.ended||(v=new FQe),r.call(t,v)):void 0},y=function(){t.req.on(\"finish\",u)};return(function(v){return v.setHeader&&typeof v.abort==\"function\"})(t)?(t.on(\"complete\",u),t.on(\"abort\",g),t.req?y():t.on(\"request\",y)):i&&!t._writableState&&(t.on(\"end\",a),t.on(\"close\",a)),t.on(\"end\",p),t.on(\"finish\",u),n.error!==!1&&t.on(\"error\",h),t.on(\"close\",g),function(){t.removeListener(\"complete\",u),t.removeListener(\"abort\",g),t.removeListener(\"request\",y),t.req&&t.req.removeListener(\"finish\",u),t.removeListener(\"end\",a),t.removeListener(\"close\",a),t.removeListener(\"finish\",u),t.removeListener(\"end\",p),t.removeListener(\"error\",h),t.removeListener(\"close\",g)}};F$e=Dx,S$=UC.codes,f9t=S$.ERR_METHOD_NOT_IMPLEMENTED,p9t=S$.ERR_MULTIPLE_CALLBACK,h9t=S$.ERR_TRANSFORM_ALREADY_TRANSFORMING,m9t=S$.ERR_TRANSFORM_WITH_LENGTH_0,MX=VN();JU(Dx,MX),Dx.prototype.push=function(e,t){return this._transformState.needTransform=!1,MX.prototype.push.call(this,e,t)},Dx.prototype._transform=function(e,t,n){n(new f9t(\"_transform()\"))},Dx.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Dx.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Dx.prototype._destroy=function(e,t){MX.prototype._destroy.call(this,e,(function(n){t(n)}))};b9t=VU,H$e=F$e;JU(VU,H$e),VU.prototype._transform=function(e,t,n){n(null,e)};z$e=UC.codes,v9t=z$e.ERR_MISSING_ARGS,w9t=z$e.ERR_STREAM_DESTROYED;E9t=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=(function(a){return a.length?typeof a[a.length-1]!=\"function\"?GQe:a.pop():GQe})(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new v9t(\"streams\");var i=t.map((function(a,c){var u=c<t.length-1;return(function(d,p,h,g){g=(function(x){var R=!1;return function(){R||(R=!0,x.apply(void 0,arguments))}})(g);var y=!1;d.on(\"close\",(function(){y=!0})),oge===void 0&&(oge=_ye),oge(d,{readable:p,writable:h},(function(x){if(x)return g(x);y=!0,g()}));var v=!1;return function(x){if(!y&&!v)return v=!0,(function(R){return R.setHeader&&typeof R.abort==\"function\"})(d)?d.abort():typeof d.destroy==\"function\"?d.destroy():void g(x||new w9t(\"pipe\"))}})(a,u,c>0,(function(d){r||(r=d),d&&i.forEach(qQe),u||(i.forEach(qQe),o(r))}))}));return t.reduce(x9t)};(function(e,t){(t=Uge.exports=U$e()).Stream=t,t.Readable=t,t.Writable=B$e(),t.Duplex=VN(),t.Transform=F$e,t.PassThrough=b9t,t.finished=_ye,t.pipeline=E9t})(0,Uge.exports);GN=Uge.exports;s$={},Fge={exports:{}},_9t=function e(t,n){if(t&&n)return e(t)(n);if(typeof t!=\"function\")throw new TypeError(\"need wrapper function\");return Object.keys(t).forEach((function(o){r[o]=t[o]})),r;function r(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];var a=t.apply(this,o),c=o[o.length-1];return typeof a==\"function\"&&a!==c&&Object.keys(c).forEach((function(u){a[u]=c[u]})),a}},KQe=_9t;Fge.exports=KQe(bX),Fge.exports.strict=KQe(YQe),bX.proto=bX((function(){Object.defineProperty(Function.prototype,\"once\",{value:function(){return bX(this)},configurable:!0}),Object.defineProperty(Function.prototype,\"onceStrict\",{value:function(){return YQe(this)},configurable:!0})}));S9t=Fge.exports,c$={};Object.defineProperty(c$,\"__esModule\",{value:!0}),c$.Substream=void 0;T9t=GN,Hge=class extends T9t.Duplex{constructor({parent:t,name:n}){super({objectMode:!0}),this._parent=t,this._name=n}_read(){}_write(t,n,r){this._parent.push({name:this._name,data:t}),r()}};c$.Substream=Hge;C9t=_g&&_g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s$,\"__esModule\",{value:!0}),s$.ObjectMultiplex=void 0;ige=GN,R9t=C9t(S9t),I9t=c$,ZQe=Symbol(\"IGNORE_SUBSTREAM\"),O9t=class extends ige.Duplex{constructor(e={}){super(Object.assign(Object.assign({},e),{objectMode:!0})),this._substreams={}}createStream(e){if(this.destroyed)throw new Error(`ObjectMultiplex - parent stream for name \"${e}\" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw new Error(`ObjectMultiplex - parent stream for name \"${e}\" already ended`);if(!e)throw new Error(\"ObjectMultiplex - name must not be empty\");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name \"${e}\" already exists`);let t=new I9t.Substream({parent:this,name:e});return this._substreams[e]=t,(function(n,r){let o=(0,R9t.default)(r);(0,ige.finished)(n,{readable:!1},o),(0,ige.finished)(n,{writable:!1},o)})(this,(n=>t.destroy(n||void 0))),t}ignoreStream(e){if(!e)throw new Error(\"ObjectMultiplex - name must not be empty\");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name \"${e}\" already exists`);this._substreams[e]=ZQe}_read(){}_write(e,t,n){let{name:r,data:o}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name \"${e}\"`),n();let i=this._substreams[r];return i?(i!==ZQe&&i.push(o),n()):(console.warn(`ObjectMultiplex - orphaned data for stream \"${r}\"`),n())}};s$.ObjectMultiplex=O9t;k9t=w$(s$.ObjectMultiplex),Nv=e=>e!==null&&typeof e==\"object\"&&typeof e.pipe==\"function\";Nv.writable=e=>Nv(e)&&e.writable!==!1&&typeof e._write==\"function\"&&typeof e._writableState==\"object\",Nv.readable=e=>Nv(e)&&e.readable!==!1&&typeof e._read==\"function\"&&typeof e._readableState==\"object\",Nv.duplex=e=>Nv.writable(e)&&Nv.readable(e),Nv.transform=e=>Nv.duplex(e)&&typeof e._transform==\"function\";N9t=Nv,P9t=class extends QPt{constructor(e,{jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,rpcMiddleware:o=[]}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:o}),!N9t.duplex(e))throw new Error(Fs.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);let i=new k9t;GN.pipeline(e,i,e,this._handleStreamDisconnect.bind(this,\"MetaMask\")),this._jsonRpcConnection=A9t({retryOnMessage:\"METAMASK_EXTENSION_CONNECT_CAN_RETRY\"}),GN.pipeline(this._jsonRpcConnection.stream,i.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,\"MetaMask RpcProvider\")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on(\"notification\",(a=>{let{method:c,params:u}=a;c===\"metamask_accountsChanged\"?this._handleAccountsChanged(u):c===\"metamask_unlockStateChanged\"?this._handleUnlockStateChanged(u):c===\"metamask_chainChanged\"?this._handleChainChanged(u):y$e.includes(c)?this.emit(\"message\",{type:c,data:u}):c===\"METAMASK_STREAM_FAILURE\"&&e.destroy(new Error(Fs.errors.permanentlyDisconnected()))}))}async _initializeStateAsync(){let e;try{e=await this.request({method:\"metamask_getProviderState\"})}catch(t){this._log.error(\"MetaMask: Failed to get initial state. Please report this bug.\",t)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to \"${e}\".`;t?.stack&&(n+=`\\n${t.stack}`),this._log.warn(n),this.listenerCount(\"error\")>0&&this.emit(\"error\",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){b$e(e)&&(n=>!!n&&typeof n==\"string\")(t)?t===\"loading\"?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(Fs.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}},M9t=class extends P9t{constructor(e,{jsonRpcStreamName:t=\"metamask-provider\",logger:n=console,maxEventListeners:r=100,shouldSendMetadata:o}={}){if(super(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:WPt(n)}),this._sentWarnings={chainId:!1,networkVersion:!1,selectedAddress:!1,enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},Lge(this,Pv,void 0),this._initializeStateAsync(),Mx(this,Pv,null),this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on(\"notification\",(i=>{let{method:a}=i;y$e.includes(a)&&(this.emit(\"data\",i),this.emit(\"notification\",i.params.result))})),o)if(document.readyState===\"complete\")TQe(this._rpcEngine,this._log);else{let i=()=>{TQe(this._rpcEngine,this._log),window.removeEventListener(\"DOMContentLoaded\",i)};window.addEventListener(\"DOMContentLoaded\",i)}}get chainId(){return this._sentWarnings.chainId||(this._log.warn(Fs.warnings.chainIdDeprecation),this._sentWarnings.chainId=!0),super.chainId}get networkVersion(){return this._sentWarnings.networkVersion||(this._log.warn(Fs.warnings.networkVersionDeprecation),this._sentWarnings.networkVersion=!0),Bv(this,Pv)}get selectedAddress(){return this._sentWarnings.selectedAddress||(this._log.warn(Fs.warnings.selectedAddressDeprecation),this._sentWarnings.selectedAddress=!0),super.selectedAddress}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),Bv(this,Pv)&&!e&&Mx(this,Pv,null)}_warnOfDeprecation(e){this._sentWarnings?.events[e]===!1&&(this._log.warn(Fs.warnings.events[e]),this._sentWarnings.events[e]=!0)}async enable(){return this._sentWarnings.enable||(this._log.warn(Fs.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise(((e,t)=>{try{this._rpcRequest({method:\"eth_requestAccounts\",params:[]},NX(e,t))}catch(n){t(n)}}))}send(e,t){return this._sentWarnings.send||(this._log.warn(Fs.warnings.sendDeprecation),this._sentWarnings.send=!0),typeof e!=\"string\"||t&&!Array.isArray(t)?e&&typeof e==\"object\"&&typeof t==\"function\"?this._rpcRequest(e,t):this._sendSync(e):new Promise(((n,r)=>{try{this._rpcRequest({method:e,params:t},NX(n,r,!1))}catch(o){r(o)}}))}_sendSync(e){let t;switch(e.method){case\"eth_accounts\":t=this.selectedAddress?[this.selectedAddress]:[];break;case\"eth_coinbase\":t=this.selectedAddress??null;break;case\"eth_uninstallFilter\":this._rpcRequest(e,v$e),t=!0;break;case\"net_version\":t=Bv(this,Pv)??null;break;default:throw new Error(Fs.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise((e=>{this.on(\"_initialized\",(()=>e()))})),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw CU({message:\"Batch requests must be made with an array of request objects.\",data:e});return new Promise(((t,n)=>{this._rpcRequest(e,NX(t,n))}))}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(Fs.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==Bv(this,Pv)&&(Mx(this,Pv,t),this._state.initialized&&this.emit(\"networkChanged\",Bv(this,Pv)))}};Pv=new WeakMap;Qe=(0,jd.default)(\"MM_SDK\");Qe.color=\"#FFAC1C\";j$e={},NS={};Object.defineProperty(NS,\"__esModule\",{value:!0}),NS.EthereumProviderError=NS.EthereumRpcError=void 0;D9t=l$e,u$=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return D9t.default(this.serialize(),L9t,2)}};NS.EthereumRpcError=u$;NS.EthereumProviderError=class extends u${constructor(e,t,n){if(!(function(r){return Number.isInteger(r)&&r>=1e3&&r<=4999})(e))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(e,t,n)}};Sye={},CS={};Object.defineProperty(CS,\"__esModule\",{value:!0}),CS.errorValues=CS.errorCodes=void 0,CS.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},CS.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let t=CS,n=NS,r=t.errorCodes.rpc.internal,o=\"Unspecified error message. This is a bug, please report it.\",i={code:r,message:a(r)};function a(h,g=o){if(Number.isInteger(h)){let y=h.toString();if(p(t.errorValues,y))return t.errorValues[y].message;if(u(h))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return g}function c(h){if(!Number.isInteger(h))return!1;let g=h.toString();return!!t.errorValues[g]||!!u(h)}function u(h){return h>=-32099&&h<=-32e3}function d(h){return h&&typeof h==\"object\"&&!Array.isArray(h)?Object.assign({},h):h}function p(h,g){return Object.prototype.hasOwnProperty.call(h,g)}e.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(h,{fallbackError:g=i,shouldIncludeStack:y=!1}={}){var v,x;if(!g||!Number.isInteger(g.code)||typeof g.message!=\"string\")throw new Error(\"Must provide fallback error with integer number code and string message.\");if(h instanceof n.EthereumRpcError)return h.serialize();let R={};if(h&&typeof h==\"object\"&&!Array.isArray(h)&&p(h,\"code\")&&c(h.code)){let M=h;R.code=M.code,M.message&&typeof M.message==\"string\"?(R.message=M.message,p(M,\"data\")&&(R.data=M.data)):(R.message=a(R.code),R.data={originalError:d(h)})}else{R.code=g.code;let M=(v=h)===null||v===void 0?void 0:v.message;R.message=M&&typeof M==\"string\"?M:g.message,R.data={originalError:d(h)}}let S=(x=h)===null||x===void 0?void 0:x.stack;return y&&h&&S&&typeof S==\"string\"&&(R.stack=S),R}})(Sye);l$={};Object.defineProperty(l$,\"__esModule\",{value:!0}),l$.ethErrors=void 0;Tye=NS,W$e=Sye,Ud=CS;l$.ethErrors={rpc:{parse:e=>bg(Ud.errorCodes.rpc.parse,e),invalidRequest:e=>bg(Ud.errorCodes.rpc.invalidRequest,e),invalidParams:e=>bg(Ud.errorCodes.rpc.invalidParams,e),methodNotFound:e=>bg(Ud.errorCodes.rpc.methodNotFound,e),internal:e=>bg(Ud.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return bg(t,e)},invalidInput:e=>bg(Ud.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>bg(Ud.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>bg(Ud.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>bg(Ud.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>bg(Ud.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>bg(Ud.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>vU(Ud.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>vU(Ud.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>vU(Ud.errorCodes.provider.unsupportedMethod,e),disconnected:e=>vU(Ud.errorCodes.provider.disconnected,e),chainDisconnected:e=>vU(Ud.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new Tye.EthereumProviderError(t,n,r)}}},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;let t=NS;Object.defineProperty(e,\"EthereumRpcError\",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,\"EthereumProviderError\",{enumerable:!0,get:function(){return t.EthereumProviderError}});let n=Sye;Object.defineProperty(e,\"serializeError\",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,\"getMessageFromCode\",{enumerable:!0,get:function(){return n.getMessageFromCode}});let r=l$;Object.defineProperty(e,\"ethErrors\",{enumerable:!0,get:function(){return r.ethErrors}});let o=CS;Object.defineProperty(e,\"errorCodes\",{enumerable:!0,get:function(){return o.errorCodes}})})(j$e);G$e={exports:{}};G$e.exports=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,i){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<\"u\"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(r,\"__esModule\",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r==\"object\"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:r}),2&o&&typeof r!=\"string\")for(var a in r)n.d(i,a,function(c){return r[c]}.bind(null,a));return i},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,\"a\",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p=\"\",n(n.s=90)})({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),o=(function(){function i(){}return i.getFirstMatch=function(a,c){var u=c.match(a);return u&&u.length>0&&u[1]||\"\"},i.getSecondMatch=function(a,c){var u=c.match(a);return u&&u.length>1&&u[2]||\"\"},i.matchAndReturnConst=function(a,c,u){if(a.test(c))return u},i.getWindowsVersionName=function(a){switch(a){case\"NT\":return\"NT\";case\"XP\":case\"NT 5.1\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}},i.getMacOSVersionName=function(a){var c=a.split(\".\").splice(0,2).map((function(u){return parseInt(u,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return\"Leopard\";case 6:return\"Snow Leopard\";case 7:return\"Lion\";case 8:return\"Mountain Lion\";case 9:return\"Mavericks\";case 10:return\"Yosemite\";case 11:return\"El Capitan\";case 12:return\"Sierra\";case 13:return\"High Sierra\";case 14:return\"Mojave\";case 15:return\"Catalina\";default:return}},i.getAndroidVersionName=function(a){var c=a.split(\".\").splice(0,2).map((function(u){return parseInt(u,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?\"Cupcake\":c[0]===1&&c[1]>=6?\"Donut\":c[0]===2&&c[1]<2?\"Eclair\":c[0]===2&&c[1]===2?\"Froyo\":c[0]===2&&c[1]>2?\"Gingerbread\":c[0]===3?\"Honeycomb\":c[0]===4&&c[1]<1?\"Ice Cream Sandwich\":c[0]===4&&c[1]<4?\"Jelly Bean\":c[0]===4&&c[1]>=4?\"KitKat\":c[0]===5?\"Lollipop\":c[0]===6?\"Marshmallow\":c[0]===7?\"Nougat\":c[0]===8?\"Oreo\":c[0]===9?\"Pie\":void 0},i.getVersionPrecision=function(a){return a.split(\".\").length},i.compareVersions=function(a,c,u){u===void 0&&(u=!1);var d=i.getVersionPrecision(a),p=i.getVersionPrecision(c),h=Math.max(d,p),g=0,y=i.map([a,c],(function(v){var x=h-i.getVersionPrecision(v),R=v+new Array(x+1).join(\".0\");return i.map(R.split(\".\"),(function(S){return new Array(20-S.length).join(\"0\")+S})).reverse()}));for(u&&(g=h-Math.min(d,p)),h-=1;h>=g;){if(y[0][h]>y[1][h])return 1;if(y[0][h]===y[1][h]){if(h===g)return 0;h-=1}else if(y[0][h]<y[1][h])return-1}},i.map=function(a,c){var u,d=[];if(Array.prototype.map)return Array.prototype.map.call(a,c);for(u=0;u<a.length;u+=1)d.push(c(a[u]));return d},i.find=function(a,c){var u,d;if(Array.prototype.find)return Array.prototype.find.call(a,c);for(u=0,d=a.length;u<d;u+=1){var p=a[u];if(c(p,u))return p}},i.assign=function(a){for(var c,u,d=a,p=arguments.length,h=new Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];if(Object.assign)return Object.assign.apply(Object,[a].concat(h));var y=function(){var v=h[c];typeof v==\"object\"&&v!==null&&Object.keys(v).forEach((function(x){d[x]=v[x]}))};for(c=0,u=h.length;c<u;c+=1)y();return a},i.getBrowserAlias=function(a){return r.BROWSER_ALIASES_MAP[a]},i.getBrowserTypeByAlias=function(a){return r.BROWSER_MAP[a]||\"\"},i})();t.default=o,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={\"Amazon Silk\":\"amazon_silk\",\"Android Browser\":\"android\",Bada:\"bada\",BlackBerry:\"blackberry\",Chrome:\"chrome\",Chromium:\"chromium\",Electron:\"electron\",Epiphany:\"epiphany\",Firefox:\"firefox\",Focus:\"focus\",Generic:\"generic\",\"Google Search\":\"google_search\",Googlebot:\"googlebot\",\"Internet Explorer\":\"ie\",\"K-Meleon\":\"k_meleon\",Maxthon:\"maxthon\",\"Microsoft Edge\":\"edge\",\"MZ Browser\":\"mz\",\"NAVER Whale Browser\":\"naver\",Opera:\"opera\",\"Opera Coast\":\"opera_coast\",PhantomJS:\"phantomjs\",Puffin:\"puffin\",QupZilla:\"qupzilla\",QQ:\"qq\",QQLite:\"qqlite\",Safari:\"safari\",Sailfish:\"sailfish\",\"Samsung Internet for Android\":\"samsung_internet\",SeaMonkey:\"seamonkey\",Sleipnir:\"sleipnir\",Swing:\"swing\",Tizen:\"tizen\",\"UC Browser\":\"uc\",Vivaldi:\"vivaldi\",\"WebOS Browser\":\"webos\",WeChat:\"wechat\",\"Yandex Browser\":\"yandex\",Roku:\"roku\"},t.BROWSER_MAP={amazon_silk:\"Amazon Silk\",android:\"Android Browser\",bada:\"Bada\",blackberry:\"BlackBerry\",chrome:\"Chrome\",chromium:\"Chromium\",electron:\"Electron\",epiphany:\"Epiphany\",firefox:\"Firefox\",focus:\"Focus\",generic:\"Generic\",googlebot:\"Googlebot\",google_search:\"Google Search\",ie:\"Internet Explorer\",k_meleon:\"K-Meleon\",maxthon:\"Maxthon\",edge:\"Microsoft Edge\",mz:\"MZ Browser\",naver:\"NAVER Whale Browser\",opera:\"Opera\",opera_coast:\"Opera Coast\",phantomjs:\"PhantomJS\",puffin:\"Puffin\",qupzilla:\"QupZilla\",qq:\"QQ Browser\",qqlite:\"QQ Browser Lite\",safari:\"Safari\",sailfish:\"Sailfish\",samsung_internet:\"Samsung Internet for Android\",seamonkey:\"SeaMonkey\",sleipnir:\"Sleipnir\",swing:\"Swing\",tizen:\"Tizen\",uc:\"UC Browser\",vivaldi:\"Vivaldi\",webos:\"WebOS Browser\",wechat:\"WeChat\",yandex:\"Yandex Browser\"},t.PLATFORMS_MAP={tablet:\"tablet\",mobile:\"mobile\",desktop:\"desktop\",tv:\"tv\"},t.OS_MAP={WindowsPhone:\"Windows Phone\",Windows:\"Windows\",MacOS:\"macOS\",iOS:\"iOS\",Android:\"Android\",WebOS:\"WebOS\",BlackBerry:\"BlackBerry\",Bada:\"Bada\",Tizen:\"Tizen\",Linux:\"Linux\",ChromeOS:\"Chrome OS\",PlayStation4:\"PlayStation 4\",Roku:\"Roku\"},t.ENGINE_MAP={EdgeHTML:\"EdgeHTML\",Blink:\"Blink\",Trident:\"Trident\",Presto:\"Presto\",Gecko:\"Gecko\",WebKit:\"WebKit\"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(u,d){for(var p=0;p<d.length;p++){var h=d[p];h.enumerable=h.enumerable||!1,h.configurable=!0,\"value\"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}var c=(function(){function u(){}var d,p,h;return u.getParser=function(g,y){if(y===void 0&&(y=!1),typeof g!=\"string\")throw new Error(\"UserAgent should be a string\");return new o.default(g,y)},u.parse=function(g){return new o.default(g).getResult()},d=u,h=[{key:\"BROWSER_MAP\",get:function(){return i.BROWSER_MAP}},{key:\"ENGINE_MAP\",get:function(){return i.ENGINE_MAP}},{key:\"OS_MAP\",get:function(){return i.OS_MAP}},{key:\"PLATFORMS_MAP\",get:function(){return i.PLATFORMS_MAP}}],(p=null)&&a(d.prototype,p),h&&a(d,h),u})();t.default=c,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=u(n(92)),o=u(n(93)),i=u(n(94)),a=u(n(95)),c=u(n(17));function u(p){return p&&p.__esModule?p:{default:p}}var d=(function(){function p(g,y){if(y===void 0&&(y=!1),g==null||g===\"\")throw new Error(\"UserAgent parameter can\\'t be empty\");this._ua=g,this.parsedResult={},y!==!0&&this.parse()}var h=p.prototype;return h.getUA=function(){return this._ua},h.test=function(g){return g.test(this._ua)},h.parseBrowser=function(){var g=this;this.parsedResult.browser={};var y=c.default.find(r.default,(function(v){if(typeof v.test==\"function\")return v.test(g);if(v.test instanceof Array)return v.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.browser=y.describe(this.getUA())),this.parsedResult.browser},h.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},h.getBrowserName=function(g){return g?String(this.getBrowser().name).toLowerCase()||\"\":this.getBrowser().name||\"\"},h.getBrowserVersion=function(){return this.getBrowser().version},h.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},h.parseOS=function(){var g=this;this.parsedResult.os={};var y=c.default.find(o.default,(function(v){if(typeof v.test==\"function\")return v.test(g);if(v.test instanceof Array)return v.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.os=y.describe(this.getUA())),this.parsedResult.os},h.getOSName=function(g){var y=this.getOS().name;return g?String(y).toLowerCase()||\"\":y||\"\"},h.getOSVersion=function(){return this.getOS().version},h.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},h.getPlatformType=function(g){g===void 0&&(g=!1);var y=this.getPlatform().type;return g?String(y).toLowerCase()||\"\":y||\"\"},h.parsePlatform=function(){var g=this;this.parsedResult.platform={};var y=c.default.find(i.default,(function(v){if(typeof v.test==\"function\")return v.test(g);if(v.test instanceof Array)return v.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.platform=y.describe(this.getUA())),this.parsedResult.platform},h.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},h.getEngineName=function(g){return g?String(this.getEngine().name).toLowerCase()||\"\":this.getEngine().name||\"\"},h.parseEngine=function(){var g=this;this.parsedResult.engine={};var y=c.default.find(a.default,(function(v){if(typeof v.test==\"function\")return v.test(g);if(v.test instanceof Array)return v.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.engine=y.describe(this.getUA())),this.parsedResult.engine},h.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},h.getResult=function(){return c.default.assign({},this.parsedResult)},h.satisfies=function(g){var y=this,v={},x=0,R={},S=0;if(Object.keys(g).forEach((function(J){var re=g[J];typeof re==\"string\"?(R[J]=re,S+=1):typeof re==\"object\"&&(v[J]=re,x+=1)})),x>0){var M=Object.keys(v),P=c.default.find(M,(function(J){return y.isOS(J)}));if(P){var z=this.satisfies(v[P]);if(z!==void 0)return z}var V=c.default.find(M,(function(J){return y.isPlatform(J)}));if(V){var Q=this.satisfies(v[V]);if(Q!==void 0)return Q}}if(S>0){var $=Object.keys(R),oe=c.default.find($,(function(J){return y.isBrowser(J,!0)}));if(oe!==void 0)return this.compareVersion(R[oe])}},h.isBrowser=function(g,y){y===void 0&&(y=!1);var v=this.getBrowserName().toLowerCase(),x=g.toLowerCase(),R=c.default.getBrowserTypeByAlias(x);return y&&R&&(x=R.toLowerCase()),x===v},h.compareVersion=function(g){var y=[0],v=g,x=!1,R=this.getBrowserVersion();if(typeof R==\"string\")return g[0]===\">\"||g[0]===\"<\"?(v=g.substr(1),g[1]===\"=\"?(x=!0,v=g.substr(2)):y=[],g[0]===\">\"?y.push(1):y.push(-1)):g[0]===\"=\"?v=g.substr(1):g[0]===\"~\"&&(x=!0,v=g.substr(1)),y.indexOf(c.default.compareVersions(R,v,x))>-1},h.isOS=function(g){return this.getOSName(!0)===String(g).toLowerCase()},h.isPlatform=function(g){return this.getPlatformType(!0)===String(g).toLowerCase()},h.isEngine=function(g){return this.getEngineName(!0)===String(g).toLowerCase()},h.is=function(g,y){return y===void 0&&(y=!1),this.isBrowser(g,y)||this.isOS(g)||this.isPlatform(g)},h.some=function(g){var y=this;return g===void 0&&(g=[]),g.some((function(v){return y.is(v)}))},p})();t.default=d,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,a=[{test:[/googlebot/i],describe:function(c){var u={name:\"Googlebot\"},d=o.default.getFirstMatch(/googlebot\\\\/(\\\\d+(\\\\.\\\\d+))/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/opera/i],describe:function(c){var u={name:\"Opera\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:opera)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/opr\\\\/|opios/i],describe:function(c){var u={name:\"Opera\"},d=o.default.getFirstMatch(/(?:opr|opios)[\\\\s/](\\\\S+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/SamsungBrowser/i],describe:function(c){var u={name:\"Samsung Internet for Android\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:SamsungBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/Whale/i],describe:function(c){var u={name:\"NAVER Whale Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:whale)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/MZBrowser/i],describe:function(c){var u={name:\"MZ Browser\"},d=o.default.getFirstMatch(/(?:MZBrowser)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/focus/i],describe:function(c){var u={name:\"Focus\"},d=o.default.getFirstMatch(/(?:focus)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/swing/i],describe:function(c){var u={name:\"Swing\"},d=o.default.getFirstMatch(/(?:swing)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/coast/i],describe:function(c){var u={name:\"Opera Coast\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:coast)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/opt\\\\/\\\\d+(?:.?_?\\\\d+)+/i],describe:function(c){var u={name:\"Opera Touch\"},d=o.default.getFirstMatch(/(?:opt)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/yabrowser/i],describe:function(c){var u={name:\"Yandex Browser\"},d=o.default.getFirstMatch(/(?:yabrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/ucbrowser/i],describe:function(c){var u={name:\"UC Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:ucbrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/Maxthon|mxios/i],describe:function(c){var u={name:\"Maxthon\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/epiphany/i],describe:function(c){var u={name:\"Epiphany\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:epiphany)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/puffin/i],describe:function(c){var u={name:\"Puffin\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:puffin)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/sleipnir/i],describe:function(c){var u={name:\"Sleipnir\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:sleipnir)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/k-meleon/i],describe:function(c){var u={name:\"K-Meleon\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:k-meleon)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/micromessenger/i],describe:function(c){var u={name:\"WeChat\"},d=o.default.getFirstMatch(/(?:micromessenger)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/qqbrowser/i],describe:function(c){var u={name:/qqbrowserlite/i.test(c)?\"QQ Browser Lite\":\"QQ Browser\"},d=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/msie|trident/i],describe:function(c){var u={name:\"Internet Explorer\"},d=o.default.getFirstMatch(/(?:msie |rv:)(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/\\\\sedg\\\\//i],describe:function(c){var u={name:\"Microsoft Edge\"},d=o.default.getFirstMatch(/\\\\sedg\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/edg([ea]|ios)/i],describe:function(c){var u={name:\"Microsoft Edge\"},d=o.default.getSecondMatch(/edg([ea]|ios)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/vivaldi/i],describe:function(c){var u={name:\"Vivaldi\"},d=o.default.getFirstMatch(/vivaldi\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/seamonkey/i],describe:function(c){var u={name:\"SeaMonkey\"},d=o.default.getFirstMatch(/seamonkey\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/sailfish/i],describe:function(c){var u={name:\"Sailfish\"},d=o.default.getFirstMatch(/sailfish\\\\s?browser\\\\/(\\\\d+(\\\\.\\\\d+)?)/i,c);return d&&(u.version=d),u}},{test:[/silk/i],describe:function(c){var u={name:\"Amazon Silk\"},d=o.default.getFirstMatch(/silk\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/phantom/i],describe:function(c){var u={name:\"PhantomJS\"},d=o.default.getFirstMatch(/phantomjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/slimerjs/i],describe:function(c){var u={name:\"SlimerJS\"},d=o.default.getFirstMatch(/slimerjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(c){var u={name:\"BlackBerry\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/blackberry[\\\\d]+\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/(web|hpw)[o0]s/i],describe:function(c){var u={name:\"WebOS Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/bada/i],describe:function(c){var u={name:\"Bada\"},d=o.default.getFirstMatch(/dolfin\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/tizen/i],describe:function(c){var u={name:\"Tizen\"},d=o.default.getFirstMatch(/(?:tizen\\\\s?)?browser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/qupzilla/i],describe:function(c){var u={name:\"QupZilla\"},d=o.default.getFirstMatch(/(?:qupzilla)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/firefox|iceweasel|fxios/i],describe:function(c){var u={name:\"Firefox\"},d=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/electron/i],describe:function(c){var u={name:\"Electron\"},d=o.default.getFirstMatch(/(?:electron)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/MiuiBrowser/i],describe:function(c){var u={name:\"Miui\"},d=o.default.getFirstMatch(/(?:MiuiBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/chromium/i],describe:function(c){var u={name:\"Chromium\"},d=o.default.getFirstMatch(/(?:chromium)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/chrome|crios|crmo/i],describe:function(c){var u={name:\"Chrome\"},d=o.default.getFirstMatch(/(?:chrome|crios|crmo)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/GSA/i],describe:function(c){var u={name:\"Google Search\"},d=o.default.getFirstMatch(/(?:GSA)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:function(c){var u=!c.test(/like android/i),d=c.test(/android/i);return u&&d},describe:function(c){var u={name:\"Android Browser\"},d=o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/playstation 4/i],describe:function(c){var u={name:\"PlayStation 4\"},d=o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/safari|applewebkit/i],describe:function(c){var u={name:\"Safari\"},d=o.default.getFirstMatch(i,c);return d&&(u.version=d),u}},{test:[/.*/i],describe:function(c){var u=c.search(\"\\\\\\\\(\")!==-1?/^(.*)\\\\/(.*)[ \\\\t]\\\\((.*)/:/^(.*)\\\\/(.*) /;return{name:o.default.getFirstMatch(u,c),version:o.default.getSecondMatch(u,c)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\\\\/DVP/],describe:function(c){var u=o.default.getFirstMatch(/Roku\\\\/DVP-(\\\\d+\\\\.\\\\d+)/i,c);return{name:i.OS_MAP.Roku,version:u}}},{test:[/windows phone/i],describe:function(c){var u=o.default.getFirstMatch(/windows phone (?:os)?\\\\s?(\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.WindowsPhone,version:u}}},{test:[/windows /i],describe:function(c){var u=o.default.getFirstMatch(/Windows ((NT|XP)( \\\\d\\\\d?.\\\\d)?)/i,c),d=o.default.getWindowsVersionName(u);return{name:i.OS_MAP.Windows,version:u,versionName:d}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(c){var u={name:i.OS_MAP.iOS},d=o.default.getSecondMatch(/(Version\\\\/)(\\\\d[\\\\d.]+)/,c);return d&&(u.version=d),u}},{test:[/macintosh/i],describe:function(c){var u=o.default.getFirstMatch(/mac os x (\\\\d+(\\\\.?_?\\\\d+)+)/i,c).replace(/[_\\\\s]/g,\".\"),d=o.default.getMacOSVersionName(u),p={name:i.OS_MAP.MacOS,version:u};return d&&(p.versionName=d),p}},{test:[/(ipod|iphone|ipad)/i],describe:function(c){var u=o.default.getFirstMatch(/os (\\\\d+([_\\\\s]\\\\d+)*) like mac os x/i,c).replace(/[_\\\\s]/g,\".\");return{name:i.OS_MAP.iOS,version:u}}},{test:function(c){var u=!c.test(/like android/i),d=c.test(/android/i);return u&&d},describe:function(c){var u=o.default.getFirstMatch(/android[\\\\s/-](\\\\d+(\\\\.\\\\d+)*)/i,c),d=o.default.getAndroidVersionName(u),p={name:i.OS_MAP.Android,version:u};return d&&(p.versionName=d),p}},{test:[/(web|hpw)[o0]s/i],describe:function(c){var u=o.default.getFirstMatch(/(?:web|hpw)[o0]s\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,c),d={name:i.OS_MAP.WebOS};return u&&u.length&&(d.version=u),d}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(c){var u=o.default.getFirstMatch(/rim\\\\stablet\\\\sos\\\\s(\\\\d+(\\\\.\\\\d+)*)/i,c)||o.default.getFirstMatch(/blackberry\\\\d+\\\\/(\\\\d+([_\\\\s]\\\\d+)*)/i,c)||o.default.getFirstMatch(/\\\\bbb(\\\\d+)/i,c);return{name:i.OS_MAP.BlackBerry,version:u}}},{test:[/bada/i],describe:function(c){var u=o.default.getFirstMatch(/bada\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.Bada,version:u}}},{test:[/tizen/i],describe:function(c){var u=o.default.getFirstMatch(/tizen[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.Tizen,version:u}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(c){var u=o.default.getFirstMatch(/PlayStation 4[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.PlayStation4,version:u}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:\"bot\",vendor:\"Google\"}}},{test:[/huawei/i],describe:function(c){var u=o.default.getFirstMatch(/(can-l01)/i,c)&&\"Nova\",d={type:i.PLATFORMS_MAP.mobile,vendor:\"Huawei\"};return u&&(d.model=u),d}},{test:[/nexus\\\\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Nexus\"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Amazon\",model:\"Kindle Fire HD 7\"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Amazon\"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(c){var u=c.test(/ipod|iphone/i),d=c.test(/like (ipod|iphone)/i);return u&&!d},describe:function(c){var u=o.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:i.PLATFORMS_MAP.mobile,vendor:\"Apple\",model:u}}},{test:[/nexus\\\\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"Nexus\"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getBrowserName(!0)===\"blackberry\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"BlackBerry\"}}},{test:function(c){return c.getBrowserName(!0)===\"bada\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getBrowserName()===\"windows phone\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"Microsoft\"}}},{test:function(c){var u=Number(String(c.getOSVersion()).split(\".\")[0]);return c.getOSName(!0)===\"android\"&&u>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(c){return c.getOSName(!0)===\"android\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getOSName(!0)===\"macos\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:\"Apple\"}}},{test:function(c){return c.getOSName(!0)===\"windows\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(c){return c.getOSName(!0)===\"linux\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(c){return c.getOSName(!0)===\"playstation 4\"},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(c){return c.getOSName(!0)===\"roku\"},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(c){return c.getBrowserName(!0)===\"microsoft edge\"},describe:function(c){if(/\\\\sedg\\\\//i.test(c))return{name:i.ENGINE_MAP.Blink};var u=o.default.getFirstMatch(/edge\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return{name:i.ENGINE_MAP.EdgeHTML,version:u}}},{test:[/trident/i],describe:function(c){var u={name:i.ENGINE_MAP.Trident},d=o.default.getFirstMatch(/trident\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:function(c){return c.test(/presto/i)},describe:function(c){var u={name:i.ENGINE_MAP.Presto},d=o.default.getFirstMatch(/presto\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:function(c){var u=c.test(/gecko/i),d=c.test(/like gecko/i);return u&&!d},describe:function(c){var u={name:i.ENGINE_MAP.Gecko},d=o.default.getFirstMatch(/gecko\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}},{test:[/(apple)?webkit\\\\/537\\\\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(c){var u={name:i.ENGINE_MAP.WebKit},d=o.default.getFirstMatch(/webkit\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(u.version=d),u}}];t.default=a,e.exports=t.default}});q$e=w$(G$e.exports),Xf={Initialized:\"initialized\",DisplayURI:\"display_uri\",ProviderUpdate:\"provider_update\",ConnectWithResponse:\"connectWithResponse\",ConnectionStatus:\"connection_status\",ServiceStatus:\"service_status\"},E1=class e{constructor({shouldSetOnWindow:t,connectionStream:n,shouldSendMetadata:r=!1,shouldShimWeb3:o,sdkInstance:i}){let a=new f$({connectionStream:n,shouldSendMetadata:r,shouldSetOnWindow:t,shouldShimWeb3:o,autoRequestAccounts:!1}),c=new Proxy(a,{deleteProperty:()=>!0});if(this.provider=c,this.sdkInstance=i,t&&typeof window<\"u\")try{u=a,window.ethereum=u,window.dispatchEvent(new Event(\"ethereum#initialized\"))}catch(d){Qe(\"[Ethereum] Unable to set global provider - window.ethereum may be read-only\",d)}var u;if(o&&typeof window<\"u\")try{(function(d,p=console){let h=!1,g=!1;if(!window.web3){let y=\"__isMetaMaskShim__\",v={currentProvider:d};Object.defineProperty(v,y,{value:!0,enumerable:!0,configurable:!1,writable:!1}),v=new Proxy(v,{get:(x,R,...S)=>(R!==\"currentProvider\"||h?R===\"currentProvider\"||R===y||g||(g=!0,p.error(\"MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\"),d.request({method:\"metamask_logWeb3ShimUsage\"}).catch((M=>{p.debug(\"MetaMask: Failed to log web3 shim usage.\",M)}))):(h=!0,p.warn(\"You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\")),Reflect.get(x,R,...S)),set:(...x)=>(p.warn(\"You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\"),Reflect.set(...x))}),Object.defineProperty(window,\"web3\",{value:v,enumerable:!1,configurable:!0,writable:!0})}})(this.provider)}catch(d){Qe(\"[Ethereum] Unable to shim web3 - window.web3 may be read-only\",d)}this.provider.on(\"display_uri\",(d=>{this.sdkInstance.emit(Xf.DisplayURI,d)})),this.provider.on(\"_initialized\",(()=>{let d={chainId:this.provider.getChainId(),isConnected:this.provider.isConnected(),isMetaMask:this.provider.isMetaMask,selectedAddress:this.provider.getSelectedAddress(),networkVersion:this.provider.getNetworkVersion()};this.sdkInstance.emit(Xf.Initialized,d),Qe(\"[Ethereum: constructor()] provider initialized\",d)}))}static init(t){var n;return Qe(\"[Ethereum: init()] Initializing Ethereum service\"),this.instance=new e(t),(n=this.instance)===null||n===void 0?void 0:n.provider}static destroy(){}static getInstance(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error(\"Ethereum instance not intiialized - call Ethereum.factory first.\");return this.instance}static getProvider(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error(\"Ethereum instance not intiialized - call Ethereum.factory first.\");return this.instance.provider}},d$=class e{constructor({useDeepLink:t,preferredOpenLink:n,debug:r=!1}){this.state={platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=t,this.state.preferredOpenLink=n,this.state.debug=r}openDeeplink(t,n,r){return(function(o,i,a,c){let{state:u}=o;Qe(`[PlatfformManager: openDeeplink()] universalLink --> ${i}`),Qe(`[PlatfformManager: openDeeplink()] deepLink --> ${a}`);try{if(u.preferredOpenLink)return void u.preferredOpenLink(u.useDeeplink?a:i,c);if(Qe(`[PlatfformManager: openDeeplink()] open link now useDeepLink=${u.useDeeplink} link=${u.useDeeplink?a:i}`),u.useDeeplink)typeof window<\"u\"&&(window.location.href=a);else if(typeof document<\"u\"){let d=document.createElement(\"a\");d.href=i,d.target=\"_self\",d.rel=\"noreferrer noopener\",d.click()}}catch(d){console.log(\"[PlatfformManager: openDeeplink()] can\\'t open link\",d)}})(this,t,n,r)}isReactNative(){var t;return this.isNotBrowser()&&typeof window<\"u\"&&window?.navigator&&((t=window.navigator)===null||t===void 0?void 0:t.product)===\"ReactNative\"}isMetaMaskInstalled(){return(function(){let t=E1.getProvider()||window?.ethereum;return Qe(`[PlatfformManager: isMetaMaskInstalled()] isMetaMask=${t?.isMetaMask} isConnected=${t?.isConnected()}`),t?.isMetaMask&&t?.isConnected()})()}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var t,n;let r=q$e.parse(window.navigator.userAgent);return((t=r?.platform)===null||t===void 0?void 0:t.type)===\"mobile\"||((n=r?.platform)===null||n===void 0?void 0:n.type)===\"tablet\"}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return typeof window<\"u\"&&!!window.ReactNativeWebView&&!!navigator.userAgent.endsWith(\"MetaMaskMobile\")}isMobileWeb(){return this.state.platformType===Wl.MobileWeb}static isNotBrowser(){var t;return typeof window>\"u\"||!window?.navigator||$f!==void 0&&((t=$f?.navigator)===null||t===void 0?void 0:t.product)===\"ReactNative\"||navigator?.product===\"ReactNative\"}isNotBrowser(){return e.isNotBrowser()}static isBrowser(){return!this.isNotBrowser()}isBrowser(){return e.isBrowser()}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return(function(t){let{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?Wl.ReactNative:t.isNotBrowser()?Wl.NonBrowser:t.isMetaMaskMobileWebView()?Wl.MetaMaskMobileWebview:t.isMobile()?Wl.MobileWeb:Wl.DesktopWeb})(this)}},K$e=e=>dt(void 0,void 0,void 0,(function*(){if(d$.isBrowser()){let{StorageManagerWeb:n}=yield Promise.resolve().then((function(){return aMt}));return new n(e)}let t={persistChannelConfig:()=>dt(void 0,void 0,void 0,(function*(){})),getPersistedChannelConfig:()=>dt(void 0,void 0,void 0,(function*(){})),persistAccounts:()=>dt(void 0,void 0,void 0,(function*(){})),getCachedAccounts:()=>dt(void 0,void 0,void 0,(function*(){return[]})),persistChainId:()=>dt(void 0,void 0,void 0,(function*(){})),getCachedChainId:()=>dt(void 0,void 0,void 0,(function*(){})),terminate:()=>dt(void 0,void 0,void 0,(function*(){}))};return Promise.resolve(t)})),f$=class extends M9t{constructor({connectionStream:t,shouldSendMetadata:n,autoRequestAccounts:r=!1}){super(t,{logger:console,maxEventListeners:100,shouldSendMetadata:n}),this.state={accounts:null,autoRequestAccounts:!1,providerStateRequested:!1,chainId:\"\",networkVersion:\"\"},Qe(`[SDKProvider: constructor()] autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r}forceInitializeState(){return dt(this,void 0,void 0,(function*(){return Qe(`[SDKProvider: forceInitializeState()] autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()}))}_setConnected(){Qe(\"[SDKProvider: _setConnected()] Setting connected state\"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}getSelectedAddress(){var t;let{accounts:n}=this._state;return n&&n.length!==0?((t=n[0])===null||t===void 0?void 0:t.toLowerCase())||\"\":(Qe(\"[SDKProvider: getSelectedAddress] No accounts found\"),null)}getChainId(){return this.state.chainId}getNetworkVersion(){return this.state.networkVersion}setSDKProviderState(t){this.state=Object.assign(Object.assign({},this.state),t)}handleAccountsChanged(t,n){return this._handleAccountsChanged(t,n)}handleDisconnect({terminate:t=!1}){(function({terminate:n=!1,instance:r}){let{state:o}=r;Qe(`[SDKProvider: handleDisconnect()] cleaning up provider state terminate=${n}`,r),n&&(r._state.accounts=null,r._state.isUnlocked=!1,r._state.isPermanentlyDisconnected=!0,r._state.initialized=!1),r._handleAccountsChanged([]),r._state.isConnected=!1,r.emit(\"disconnect\",j$e.ethErrors.provider.disconnected()),o.providerStateRequested=!1})({terminate:t,instance:this})}_initializeStateAsync(){return dt(this,void 0,void 0,(function*(){return(function(t){var n,r;return dt(this,void 0,void 0,(function*(){t.state===void 0&&(t.state={accounts:null,autoRequestAccounts:!1,providerStateRequested:!1,chainId:\"\"});let{state:o}=t,i;if(o.providerStateRequested)Qe(\"[SDKProvider: initializeStateAsync()] initialization already in progress\");else{let a;o.providerStateRequested=!0;let c=null,u=!1,d=!1,p=yield K$e({enabled:!0});if(p){let h=yield p.getPersistedChannelConfig({});u=(n=h?.relayPersistence)!==null&&n!==void 0&&n,a=yield p.getCachedChainId();let g=yield p.getCachedAccounts();g.length>0&&(c=g[0])}if(Qe(`[SDKProvider: initializeStateAsync()] relayPersistence=${u}`,{relayPersistence:u,cachedChainId:a,cachedSelectedAddress:c}),u)if(a&&c)i={accounts:[c],chainId:a,isUnlocked:!1},d=!0;else try{i=yield t.request({method:\"metamask_getProviderState\"})}catch(h){return t._log.error(\"MetaMask: Failed to get initial state. Please report this bug.\",h),void(o.providerStateRequested=!1)}if(((r=i?.accounts)===null||r===void 0?void 0:r.length)===0)if(t.getSelectedAddress())i.accounts=[t.getSelectedAddress()];else{Qe(\"[SDKProvider: initializeStateAsync()] Fetch accounts remotely.\");let h=yield t.request({method:\"eth_requestAccounts\",params:[]});i.accounts=h}t._initializeState(i),o.providerStateRequested=!1,d&&(t._state.isConnected=!0,t.emit(\"connect\",{chainId:i?.chainId}))}}))})(this)}))}_initializeState(t){return Qe(\"[SDKProvider: _initializeState()]\",t),(function(n,r,o){return Qe(\"[SDKProvider: initializeState()] set state._initialized to false\"),n._state.initialized=!1,r(o)})(this,super._initializeState.bind(this),t)}_handleChainChanged({chainId:t,networkVersion:n}={}){this.state.chainId=t,this.state.networkVersion=n,(function({instance:r,chainId:o,networkVersion:i,superHandleChainChanged:a}){Qe(`[SDKProvider: handleChainChanged()] chainId=${o} networkVersion=${i}`);let c=i;i||(Qe(\"[SDKProvider: handleChainChanged()] forced network version to prevent provider error\"),c=\"1\"),r._state.isConnected=!0,r.emit(\"connect\",{chainId:o}),a({chainId:o,networkVersion:c})})({instance:this,chainId:t,networkVersion:n,superHandleChainChanged:super._handleChainChanged.bind(this)})}},FC={name:\"@metamask/sdk\",version:\"0.32.0\",description:\"\",homepage:\"https://github.com/MetaMask/metamask-sdk#readme\",bugs:{url:\"https://github.com/MetaMask/metamask-sdk/issues\"},repository:{type:\"git\",url:\"https://github.com/MetaMask/metamask-sdk\",directory:\"packages/sdk\"},main:\"dist/node/cjs/metamask-sdk.js\",module:\"dist/browser/es/metamask-sdk.js\",browser:\"dist/browser/es/metamask-sdk.js\",unpkg:\"dist/browser/umd/metamask-sdk.js\",\"react-native\":\"dist/react-native/es/metamask-sdk.js\",types:\"dist/types/src/index.d.ts\",sideEffects:!1,files:[\"/dist\"],scripts:{\"build:types\":\"tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist/types\",build:\"yarn build:types && rollup -c --bundleConfigAsCjs\",\"build:clean\":\"yarn clean && yarn build\",\"build:post-tsc\":\"echo \\'N/A\\'\",\"build:pre-tsc\":\"echo \\'N/A\\'\",typecheck:\"tsc --noEmit\",clean:\"rimraf ./dist\",size:\"node bundle-size && size-limit\",lint:\"yarn lint:eslint && yarn lint:misc --check\",\"lint:changelog\":\"../../scripts/validate-changelog.sh @metamask/sdk\",\"lint:eslint\":\"eslint . --cache --ext js,ts\",\"lint:fix\":\"yarn lint:eslint --fix && yarn lint:misc --write\",\"lint:misc\":\"prettier \\'**/*.json\\' \\'**/*.md\\' \\'!CHANGELOG.md\\' --ignore-path ../../.gitignore\",prepack:\"../../scripts/prepack.sh\",\"publish:preview\":\"yarn npm publish --tag preview\",reset:\"yarn clean && rimraf ./node_modules/\",test:\\'jest --testPathIgnorePatterns \"/e2e/\"\\',\"test:coverage\":\\'jest --coverage --testPathIgnorePatterns \"/e2e/\"\\',\"test:e2e\":\\'jest --testPathPattern \"/e2e/\"\\',\"test:ci\":\\'jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js --testPathIgnorePatterns \"/e2e/\"\\',\"test:dev\":\\'jest -c ./jest.config.ts --detectOpenHandles  --testPathIgnorePatterns \"/e2e/\"\\',watch:\"rollup -c -w\",dev:\\'concurrently \"tsc --watch\" \"rollup -c -w --bundleConfigAsCjs\"\\',\"build:dev\":\"yarn build:types && NODE_ENV=dev rollup -c --bundleConfigAsCjs\"},dependencies:{\"@babel/runtime\":\"^7.26.0\",\"@metamask/onboarding\":\"^1.0.1\",\"@metamask/providers\":\"16.1.0\",\"@metamask/sdk-communication-layer\":\"workspace:*\",\"@metamask/sdk-install-modal-web\":\"workspace:*\",\"@paulmillr/qr\":\"^0.2.1\",bowser:\"^2.9.0\",\"cross-fetch\":\"^4.0.0\",debug:\"^4.3.4\",eciesjs:\"^0.4.11\",\"eth-rpc-errors\":\"^4.0.3\",eventemitter2:\"^6.4.9\",\"obj-multiplex\":\"^1.0.0\",pump:\"^3.0.0\",\"readable-stream\":\"^3.6.2\",\"socket.io-client\":\"^4.5.1\",tslib:\"^2.6.0\",util:\"^0.12.4\",uuid:\"^8.3.2\"},devDependencies:{\"@jest/globals\":\"^29.3.1\",\"@lavamoat/allow-scripts\":\"^2.3.1\",\"@metamask/auto-changelog\":\"3.1.0\",\"@metamask/eslint-config\":\"^6.0.0\",\"@metamask/eslint-config-nodejs\":\"^6.0.0\",\"@metamask/eslint-config-typescript\":\"^6.0.0\",\"@react-native-async-storage/async-storage\":\"^1.19.6\",\"@rollup/plugin-alias\":\"^5.1.1\",\"@rollup/plugin-commonjs\":\"^25.0.7\",\"@rollup/plugin-json\":\"^6.0.0\",\"@rollup/plugin-node-resolve\":\"^15.0.2\",\"@rollup/plugin-replace\":\"^6.0.1\",\"@rollup/plugin-terser\":\"^0.4.1\",\"@size-limit/preset-big-lib\":\"^11.0.2\",\"@types/dom-screen-wake-lock\":\"^1.0.2\",\"@types/node\":\"^20.1.3\",\"@types/pump\":\"^1.1.1\",\"@types/qrcode-terminal\":\"^0.12.0\",\"@types/uuid\":\"^10.0.0\",\"@typescript-eslint/eslint-plugin\":\"^4.26.0\",\"@typescript-eslint/parser\":\"^4.26.0\",\"browserify-zlib\":\"^0.2.0\",buffer:\"^6.0.3\",concurrently:\"^9.1.2\",\"crypto-browserify\":\"^3.12.0\",eslint:\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-import\":\"^2.23.4\",\"eslint-plugin-jest\":\"^24.4.0\",\"eslint-plugin-jsdoc\":\"^36.1.0\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"https-browserify\":\"^1.0.0\",jest:\"^29.3.1\",\"jest-environment-jsdom\":\"^29.3.1\",prettier:\"^2.3.0\",process:\"^0.11.10\",rimraf:\"^4.4.0\",rollup:\"^4.26.0\",\"rollup-plugin-analyzer\":\"^4.0.0\",\"rollup-plugin-jscc\":\"^2.0.0\",\"rollup-plugin-natives\":\"^0.7.5\",\"rollup-plugin-node-builtins\":\"^2.1.2\",\"rollup-plugin-polyfill-node\":\"^0.13.0\",\"rollup-plugin-sizes\":\"^1.0.6\",\"rollup-plugin-typescript2\":\"^0.31.2\",\"rollup-plugin-visualizer\":\"^5.12.0\",\"size-limit\":\"^11.0.2\",\"stream-browserify\":\"^3.0.0\",\"stream-http\":\"^3.2.0\",\"ts-jest\":\"^29.0.3\",\"ts-node\":\"^10.9.1\",typescript:\"^4.3.2\",url:\"^0.11.0\",webpack:\"^5.0.0\"},publishConfig:{access:\"public\",registry:\"https://registry.npmjs.org/\"},lavamoat:{allowScripts:{\"eciesjs>secp256k1\":!1,\"socket.io-client>engine.io-client>ws>bufferutil\":!1,\"socket.io-client>engine.io-client>ws>utf-8-validate\":!1,\"@metamask/sdk-communication-layer>bufferutil\":!1,\"@metamask/sdk-communication-layer>eciesjs>secp256k1\":!1,\"@metamask/sdk-communication-layer>utf-8-validate\":!1}}};(function(e){e.INPAGE=\"metamask-inpage\",e.CONTENT_SCRIPT=\"metamask-contentscript\",e.PROVIDER=\"metamask-provider\"})(GU||(GU={}));QQe=\"direct\",qU=\"https://metamask.app.link/connect\",KU=\"metamask://connect\",JQe={NAME:\"MetaMask\",RDNS:[\"io.metamask\",\"io.metamask.flask\"]},B9t=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,In={METAMASK_GETPROVIDERSTATE:\"metamask_getProviderState\",METAMASK_CONNECTSIGN:\"metamask_connectSign\",METAMASK_CONNECTWITH:\"metamask_connectWith\",METAMASK_OPEN:\"metamask_open\",METAMASK_BATCH:\"metamask_batch\",PERSONAL_SIGN:\"personal_sign\",WALLET_REQUESTPERMISSIONS:\"wallet_requestPermissions\",WALLET_REVOKEPERMISSIONS:\"wallet_revokePermissions\",WALLET_GETPERMISSIONS:\"wallet_getPermissions\",WALLET_WATCHASSET:\"wallet_watchAsset\",WALLET_ADDETHEREUMCHAIN:\"wallet_addEthereumChain\",WALLET_SWITCHETHETHEREUMCHAIN:\"wallet_switchEthereumChain\",ETH_REQUESTACCOUNTS:\"eth_requestAccounts\",ETH_ACCOUNTS:\"eth_accounts\",ETH_CHAINID:\"eth_chainId\",ETH_SENDTRANSACTION:\"eth_sendTransaction\",ETH_SIGNTYPEDDATA:\"eth_signTypedData\",ETH_SIGNTYPEDDATA_V3:\"eth_signTypedData_v3\",ETH_SIGNTYPEDDATA_V4:\"eth_signTypedData_v4\",ETH_SIGNTRANSACTION:\"eth_signTransaction\",ETH_SIGN:\"eth_sign\",PERSONAL_EC_RECOVER:\"personal_ecRecover\"},p$={[In.ETH_REQUESTACCOUNTS]:!0,[In.ETH_SENDTRANSACTION]:!0,[In.ETH_SIGNTRANSACTION]:!0,[In.ETH_SIGN]:!0,[In.PERSONAL_SIGN]:!0,[In.ETH_ACCOUNTS]:!1,[In.ETH_CHAINID]:!1,[In.PERSONAL_SIGN]:!0,[In.ETH_SIGNTYPEDDATA]:!0,[In.ETH_SIGNTYPEDDATA_V3]:!0,[In.ETH_SIGNTYPEDDATA_V4]:!0,[In.WALLET_REQUESTPERMISSIONS]:!0,[In.WALLET_GETPERMISSIONS]:!0,[In.WALLET_WATCHASSET]:!0,[In.WALLET_ADDETHEREUMCHAIN]:!0,[In.WALLET_SWITCHETHETHEREUMCHAIN]:!0,[In.METAMASK_CONNECTSIGN]:!0,[In.METAMASK_CONNECTWITH]:!0,[In.PERSONAL_EC_RECOVER]:!0,[In.METAMASK_BATCH]:!0,[In.METAMASK_OPEN]:!0},U9t=Object.keys(p$).map((e=>e.toLowerCase())),Y$e=[\"eth_signTypedData\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_sign\"].map((e=>e.toLowerCase())),age=\".sdk-comm\",h$=\"providerType\",zge=\".MMSDK_cached_address\",jge=\".MMSDK_cached_chainId\",kv={CHAIN_CHANGED:\"chainChanged\",ACCOUNTS_CHANGED:\"accountsChanged\",DISCONNECT:\"disconnect\",CONNECT:\"connect\",CONNECTED:\"connected\"},F9t=1e6;(function(e){e.TERMINATE=\"terminate\",e.EXTENSION=\"extension\",e.INITIALIZED=\"initialized\"})(A1||(A1={}));H9t=typeof window<\"u\"&&window.localStorage;Wge=class extends GN.Duplex{constructor({name:t,remote:n,deeplinkProtocol:r,platformManager:o}){super({objectMode:!0}),this.state={_name:null,remote:null,deeplinkProtocol:!1,platformManager:null},this.state._name=t,this.state.remote=n,this.state.deeplinkProtocol=r,this.state.platformManager=o,this._onMessage=this._onMessage.bind(this),this.state.remote.on(Et.MESSAGE,this._onMessage)}_write(t,n,r){return dt(this,void 0,void 0,(function*(){return j9t(this,t,0,r)}))}_read(){}_onMessage(t){return(function(n,r){try{if(Qe(\"[RCPMS: onMessage()] message\",r),!r||typeof r!=\"object\"||typeof r?.data!=\"object\")return;if(!r?.name)return void Qe(\"[RCPMS: onMessage()] ignore message without name\",r);if(r?.name!==GU.PROVIDER)return void Qe(`[RCPMS: onMessage()] ignore message with wrong name message=${r}`);if(ut.isBuffer(r)){let o=ut.from(r);n.push(o)}else n.push(r)}catch(o){Qe(`[RCPMS: onMessage()] ignore message error err=${o}`)}})(this,t)}start(){}},$Qe=1,Z$e=e=>new Promise((t=>{setTimeout((()=>{t(!0)}),e)})),W9t=({checkInstallationOnAllCalls:e=!1,communicationLayerPreference:t,injectProvider:n,shouldShimWeb3:r,platformManager:o,installer:i,sdk:a,remoteConnection:c,debug:u})=>dt(void 0,void 0,void 0,(function*(){var d,p;let h=(({name:re,remoteConnection:q})=>{if(!q||!q?.getConnector())throw new Error(\"Missing remote connection parameter\");return new Wge({name:re,remote:q?.getConnector(),deeplinkProtocol:q?.state.deeplinkProtocol,platformManager:q?.getPlatformManager()})})({name:GU.INPAGE,target:GU.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:t,remoteConnection:c}),g=o.getPlatformType(),y=a.options.dappMetadata,v=`Sdk/Javascript SdkVersion/${FC.version} Platform/${g} dApp/${(d=y.url)!==null&&d!==void 0?d:y.name} dAppTitle/${y.name}`,x=null,R=null,S=(p=a.options.storage)===null||p===void 0?void 0:p.storageManager;if(S){try{let re=yield S.getCachedAccounts();re.length>0&&(x=re[0])}catch(re){console.error(`[initializeMobileProvider] failed to get cached addresses: ${re}`)}try{let re=yield S.getCachedChainId();re&&(R=re)}catch(re){console.error(`[initializeMobileProvider] failed to parse cached chainId: ${re}`)}}Qe(`[initializeMobileProvider] cachedAccountAddress: ${x}, cachedChainId: ${R}`);let M=!(!n||g===Wl.NonBrowser||g===Wl.ReactNative),P=E1.init({shouldSetOnWindow:M,connectionStream:h,shouldShimWeb3:r,sdkInstance:a}),z=!1,V=re=>{z=re},Q=()=>z,$=(re,q,K,U)=>dt(void 0,void 0,void 0,(function*(){var T,k,F,N,B,H,W,G,O;let j=E1.getProvider();if(z){j.emit(\"display_uri\",c?.state.qrcodeLink||\"\"),c?.showActiveModal();let Ge=Q();for(;Ge;){let gt=Q(),Ye=c?.isAuthorized();Ge=gt&&!Ye,Qe(`[initializeMobileProvider: sendRequest()] waiting for initialization to complete - initializing: ${gt} authorized: ${Ye}`),yield Z$e(1e3)}return Qe(\"[initializeMobileProvider: sendRequest()] initial method completed -- prevent installation and call provider\"),K(...q)}let te=o.isMetaMaskInstalled(),ne=c?.isConnected(),ae=null,pe=null,ye=null;if(ae=(T=j.getSelectedAddress())!==null&&T!==void 0?T:x,ye=j.getChainId()||R,ae&&S&&ae!==x&&S.persistAccounts([ae]).catch((Ge=>{console.error(`[initializeMobileProvider] failed to persist account: ${Ge}`)})),ye&&(R=ye,S&&S.persistChainId(ye).catch((Ge=>{console.error(`[initializeMobileProvider] failed to persist chainId: ${Ge}`)}))),Qe(\"[initializeMobileProvider: sendRequest()]\",{selectedAddress:ae,chainId:ye}),U&&Qe(`[initializeMobileProvider: sendRequest()] method=${re} ongoing=${z} selectedAddress=${ae} isInstalled=${te} checkInstallationOnAllCalls=${e} socketConnected=${ne}`),ae&&re.toLowerCase()===In.ETH_ACCOUNTS.toLowerCase())return[ae];if(ye&&re.toLowerCase()===In.ETH_CHAINID.toLowerCase())return ye;let ve=[In.ETH_REQUESTACCOUNTS,In.WALLET_REQUESTPERMISSIONS,In.METAMASK_CONNECTSIGN,In.METAMASK_CONNECTWITH],xe=!p$[re],De=(k=a.options.readonlyRPCMap)===null||k===void 0?void 0:k[ye];if(De&&xe)try{let Ge=(F=q?.[0])===null||F===void 0?void 0:F.params,gt=yield(({rpcEndpoint:Ye,method:lt,sdkInfo:At,params:ht})=>dt(void 0,void 0,void 0,(function*(){let et=JSON.stringify({jsonrpc:\"2.0\",method:lt,params:ht,id:($Qe+=1,$Qe)}),fn={Accept:\"application/json\",\"Content-Type\":\"application/json\"},Zt;Ye.includes(\"infura\")&&(fn[\"Metamask-Sdk-Info\"]=At);try{Zt=yield(0,tye.default)(Ye,{method:\"POST\",headers:fn,body:et})}catch(Vt){throw Vt instanceof Error?new Error(`Failed to fetch from RPC: ${Vt.message}`):new Error(`Failed to fetch from RPC: ${Vt}`)}if(!Zt.ok)throw new Error(`Server responded with a status of ${Zt.status}`);return(yield Zt.json()).result})))({rpcEndpoint:De,sdkInfo:v,method:re,params:Ge||[]});return U&&Qe(`initializeProvider::ReadOnlyRPCResponse ${gt}`),gt}catch(Ge){console.warn(`[initializeMobileProvider: sendRequest()] method=${re} readOnlyRPCRequest failed:`,Ge)}if((!te||te&&!ne)&&re!==In.METAMASK_GETPROVIDERSTATE){let Ge=((N=q?.[0])===null||N===void 0?void 0:N.params)||[];if(ve.indexOf(re)!==-1||e){V(!0);let gt=re===In.METAMASK_CONNECTWITH,Ye=`${Date.now()}`;try{yield i.start({wait:!1,connectWith:gt?{method:re,id:Ye,params:Ge}:void 0}),yield new Promise(((lt,At)=>{c?.isAuthorized()&&(Qe(\"[initializeMobileProvider: sendRequest()] already authorized\"),lt(!0)),c?.getConnector().once(Et.AUTHORIZED,(()=>{lt(!0)})),a.once(Et.PROVIDER_UPDATE,(ht=>{Qe(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${ht}`),ht===A1.EXTENSION?At(Et.PROVIDER_UPDATE):At(new Error(\"Connection Terminated\"))}))}))}catch(lt){if(A1.EXTENSION===lt){if(Qe(`[initializeMobileProvider: sendRequest()] extension provider detect: re-create ${re} on the active provider`),re.toLowerCase()===In.METAMASK_CONNECTSIGN.toLowerCase()){let At=yield(B=a.getProvider())===null||B===void 0?void 0:B.request({method:In.ETH_REQUESTACCOUNTS,params:[]});if(!At.length)throw new Error(\"SDK state invalid -- undefined accounts\");let ht=yield(H=a.getProvider())===null||H===void 0?void 0:H.request({method:In.PERSONAL_SIGN,params:[Ge[0],At[0]]});return a.emit(Xf.ConnectWithResponse,ht),ht}if(re.toLowerCase()===In.METAMASK_CONNECTWITH.toLowerCase()){let[At]=Ge,ht=yield(({method:et,sdk:fn,params:Zt})=>dt(void 0,void 0,void 0,(function*(){var Vt,jt,Jt,Xt;if(!fn.isExtensionActive())throw new Error(\"SDK state invalid -- extension is not active\");Qe(\"[MetaMaskProvider: extensionConnectWithOverwrite()] Overwriting request method\",et,Zt);let sr=yield(Vt=fn.getProvider())===null||Vt===void 0?void 0:Vt.request({method:In.ETH_REQUESTACCOUNTS,params:[]});if(!sr.length)throw new Error(\"SDK state invalid -- undefined accounts\");if(et?.toLowerCase()===In.PERSONAL_SIGN.toLowerCase()){let Yn={method:et,params:[Zt[0],sr[0]]};return yield(jt=fn.getProvider())===null||jt===void 0?void 0:jt.request(Yn)}if(et?.toLowerCase()===In.ETH_SENDTRANSACTION.toLowerCase()){let Yn={method:et,params:[Object.assign(Object.assign({},Zt[0]),{from:sr[0]})]};return yield(Jt=fn.getProvider())===null||Jt===void 0?void 0:Jt.request(Yn)}return Y$e.includes(et.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${et} -- not handled by the extension -- call separately`),sr):yield(Xt=fn.getProvider())===null||Xt===void 0?void 0:Xt.request({method:et,params:Zt})})))({method:At.method,sdk:a,params:At.params});return a.emit(Xf.ConnectWithResponse,ht),ht}return Qe(`[initializeMobileProvider: sendRequest()] sending \\'${re}\\' on active provider`,Ge),yield(W=a.getProvider())===null||W===void 0?void 0:W.request({method:re,params:Ge})}throw lt===Et.REJECTED?(c?.closeModal(),(G=a.getProvider())===null||G===void 0||G.handleDisconnect({terminate:!1}),Object.assign(new Error(\"User rejected connection\"),{code:4001})):(Qe(`[initializeMobileProvider: sendRequest()] failed to start installer: ${lt}`),lt)}finally{V(!1)}if(re===In.ETH_REQUESTACCOUNTS)return pe=yield new Promise((lt=>{let At=setInterval((()=>{let{accounts:ht}=j.getState();ht&&(clearInterval(At),lt(ht))}),100)})),Qe(`[initializeMobileProvider: sendRequest()] selectedAddress: ${ae} --- SKIP rpc call`),pe;if(re===In.METAMASK_CONNECTWITH)try{let lt=0,At=5,ht=({resolve:Vt,reject:jt})=>{lt+=1;let Jt=c?.getConnector().getRPCMethodTracker(),Xt=Jt?.[Ye];return Qe(`TRACKER: update method ${Ye}`,Xt),Xt?.result?(Qe(\"[initializeMobileProvider: sendRequest()] found result\",Xt.result),a.emit(Xf.ConnectWithResponse,Xt.result),void Vt(Xt.result)):Xt?.error?(Qe(\"[initializeMobileProvider: sendRequest()] found error\",Xt.error),void jt(Xt.error)):lt>=At?(Qe(\"[initializeMobileProvider: sendRequest()] max message count reached without result\"),void jt(new Error(\"Max message count reached without result\"))):void Qe(\"[initializeMobileProvider: sendRequest()] not found yet, need to wait for next update\")},et,fn,Zt=yield new Promise(((Vt,jt)=>{let Jt=c?.getConnector().getRPCMethodTracker();Qe(`TRACKER: method ${Ye}`,Jt),Jt?.[Ye].result?(Qe(\"[initializeMobileProvider: sendRequest()] found result\",Jt?.[Ye].result),Vt(Jt?.[Ye].result)):Jt?.[Ye].error&&(Qe(\"[initializeMobileProvider: sendRequest()] found error\",Jt?.[Ye].error),jt(Jt?.[Ye].error)),fn=()=>ht({resolve:Vt,reject:jt}),et=c?.getConnector().on(Et.RPC_UPDATE,fn)}));return fn&&et?.off(Et.RPC_UPDATE,fn),Qe(\"TRACKER: result\",Zt),Zt}catch(lt){throw Qe(\"[initializeMobileProvider: sendRequest()] error:\",lt),lt}return q[0]&&typeof q[0]==\"object\"&&(q[0].params={__triggeredInstaller:!0,wrappedParams:q[0].params}),K(...q)}if(o.isSecure()&&p$[re])return K(...q);if(a.isExtensionActive())return Qe(`[initializeMobileProvider: sendRequest()] EXTENSION active - redirect request \\'${re}\\' to it`,q,Ge),yield(O=a.getProvider())===null||O===void 0?void 0:O.request({method:re,params:Ge});throw Qe(`[initializeMobileProvider: sendRequest()] method=${re} --- skip --- not connected/installed`),new Error(\"MetaMask is not connected/installed, please call eth_requestAccounts to connect first.\")}try{let Ge=yield K(...q);if(Qe(`[initializeMobileProvider: sendRequest()] method=${re} rpcResponse`,Ge),re===In.WALLET_REQUESTPERMISSIONS){let gt=Ge.reduce(((Ye,lt)=>{var At;if(lt.parentCapability===\"eth_accounts\"){let ht=(At=lt.caveats.find((et=>et.type===\"restrictReturnedAccounts\")))===null||At===void 0?void 0:At.value;ht&&Ye.push(...ht)}return Ye}),[]);Qe(\"[initializeMobileProvider: sendRequest()] accountsToPersist:\",gt),gt.length>0&&(j.handleAccountsChanged(gt,!1),S?.persistAccounts(gt))}return Ge}catch(Ge){throw console.error(\"[initializeMobileProvider: sendRequest()] error:\",Ge),Ge}})),{request:oe}=P;P.request=(...re)=>dt(void 0,void 0,void 0,(function*(){return $(re?.[0].method,re,oe,u)}));let{send:J}=P;return P.send=(...re)=>dt(void 0,void 0,void 0,(function*(){return $(re?.[0],re,J,u)})),Qe(\"[initializeMobileProvider: sendRequest()] metamaskStream.start()\"),h.start(),P}));G9t=\"sdk\",Vge=class{constructor({serverUrl:t,enabled:n,originatorInfo:r}){this.serverURL=MC,this.serverURL=t,this.originatorInfo=r,this.enabled=n==null||n}send({event:t,params:n}){if(!this.enabled)return;let r=Object.assign(Object.assign({id:G9t,event:t,sdkVersion:FC.version},this.originatorInfo),{params:n});Qe(`[Analytics: send()] event: ${t}`,r),zx(r,this.serverURL).catch((o=>{Qe(`[Analytics: send()] error: ${o}`)}))}},q9t=()=>{if(typeof document>\"u\")return;let e,t=document.getElementsByTagName(\"link\");for(let n=0;n<t.length;n++)t[n].getAttribute(\"rel\")!==\"icon\"&&t[n].getAttribute(\"rel\")!==\"shortcut icon\"||(e=t[n].getAttribute(\"href\"));return e},K9t=163400;Gge=({provider:e,sdkInstance:t})=>{if(\"state\"in e)throw new Error(\"INVALID EXTENSION PROVIDER\");return new Proxy(e,{get:(n,r)=>r===\"request\"?function(o){var i,a;return dt(this,void 0,void 0,(function*(){Qe(\"[wrapExtensionProvider()] Overwriting request method\",o);let{method:c,params:u}=o,d=U9t.includes(c.toLowerCase()),{id:p,from:h}=eJe(t);if(d&&((i=t.analytics)===null||i===void 0||i.send({event:dc.SDK_RPC_REQUEST,params:{method:c,from:h,id:p}})),c===In.METAMASK_BATCH&&Array.isArray(u))return(({target:y,args:v,trackEvent:x,sdkInstance:R})=>dt(void 0,void 0,void 0,(function*(){var S,M;if(v.method!==\"metamask_batch\")throw new Error(\"Invalid usage\");let P=[],z=(S=v?.params)!==null&&S!==void 0?S:[];for(let $ of z){let oe=yield y?.request({method:$.method,params:$.params});P.push(oe)}let{id:V,from:Q}=eJe(R);return x&&((M=R.analytics)===null||M===void 0||M.send({event:dc.SDK_RPC_REQUEST_DONE,params:{method:v.method,from:Q,id:V}})),P})))({target:n,args:o,trackEvent:d,sdkInstance:t});if(c.toLowerCase()===In.METAMASK_CONNECTSIGN.toLowerCase()&&Array.isArray(u))return(({target:y,params:v})=>dt(void 0,void 0,void 0,(function*(){let x=yield y.request({method:In.ETH_REQUESTACCOUNTS,params:[]});if(!x.length)throw new Error(\"SDK state invalid -- undefined accounts\");return yield y.request({method:In.PERSONAL_SIGN,params:[v[0],x[0]]})})))({target:n,params:u});if(c.toLowerCase()===In.METAMASK_CONNECTWITH.toLowerCase()&&Array.isArray(u))return(({target:y,params:v})=>dt(void 0,void 0,void 0,(function*(){let[x]=v,R=x.method,S=x.params,M=yield y.request({method:In.ETH_REQUESTACCOUNTS,params:[]});if(!M.length)throw new Error(\"SDK state invalid -- undefined accounts\");return R?.toLowerCase()===In.PERSONAL_SIGN.toLowerCase()?yield y.request({method:R,params:[S[0],M[0]]}):R?.toLowerCase()===In.ETH_SENDTRANSACTION.toLowerCase()?yield y.request({method:R,params:[Object.assign(Object.assign({},S[0]),{from:M[0]})]}):Y$e.includes(R.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${R} -- not handled by the extension -- call separately`),M):yield y.request({method:R,params:S})})))({target:n,params:u});let g;try{return g=yield n.request(o),g}finally{d&&((a=t.analytics)===null||a===void 0||a.send({event:dc.SDK_RPC_REQUEST_DONE,params:{method:c,from:h,id:p}}))}}))}:r===\"getChainId\"?function(){return e.chainId}:r===\"getNetworkVersion\"?function(){return e.networkVersion}:r===\"getSelectedAddress\"?function(){return e.selectedAddress}:r===\"isConnected\"?function(){return e._state.isConnected}:n[r]})};(function(e){e.Announce=\"eip6963:announceProvider\",e.Request=\"eip6963:requestProvider\"})(g$||(g$={}));Z9t=e=>dt(void 0,void 0,void 0,(function*(){let{options:t}=e,{infuraAPIKey:n}=t;if(!n)return;let r={\"0x1\":`https://mainnet.infura.io/v3/${n}`,\"0x5\":`https://goerli.infura.io/v3/${n}`,\"0xaa36a7\":`https://sepolia.infura.io/v3/${n}`,\"0xe708\":`https://linea-mainnet.infura.io/v3/${n}`,\"0xe704\":`https://linea-goerli.infura.io/v3/${n}`,\"0x89\":`https://polygon-mainnet.infura.io/v3/${n}`,\"0x13881\":`https://polygon-mumbai.infura.io/v3/${n}`,\"0x45\":`https://optimism-mainnet.infura.io/v3/${n}`,\"0x1a4\":`https://optimism-goerli.infura.io/v3/${n}`,\"0xa4b1\":`https://arbitrum-mainnet.infura.io/v3/${n}`,\"0x66eed\":`https://arbitrum-goerli.infura.io/v3/${n}`,\"0x2a15c308d\":`https://palm-mainnet.infura.io/v3/${n}`,\"0x2a15c3083\":`https://palm-testnet.infura.io/v3/${n}`,\"0xa86a\":`https://avalanche-mainnet.infura.io/v3/${n}`,\"0xa869\":`https://avalanche-fuji.infura.io/v3/${n}`,\"0x4e454152\":`https://aurora-mainnet.infura.io/v3/${n}`,\"0x4e454153\":`https://aurora-testnet.infura.io/v3/${n}`,\"0x534e5f4d41494e\":`https://starknet-mainnet.infura.io/v3/${n}`,\"0x534e5f474f45524c49\":`https://starknet-goerli.infura.io/v3/${n}`,\"0x534e5f474f45524c4932\":`https://starknet-goerli2.infura.io/v3/${n}`,\"0xa4ec\":`https://celo-mainnet.infura.io/v3/${n}`,\"0xaef3\":`https://celo-alfajores.infura.io/v3/${n}`};e.options.readonlyRPCMap?e.options.readonlyRPCMap=Object.assign(Object.assign({},e.options.readonlyRPCMap),r):e.options.readonlyRPCMap=r})),Q9t=e=>dt(void 0,void 0,void 0,(function*(){let{options:t}=e,{readonlyRPCMap:n}=t;if(n)try{Qe(\"[MetaMaskSDK: setupReadOnlyRPCProviders()] Setting up Readonly RPC Providers\",n),e.setReadOnlyRPCCalls(!0)}catch{throw new Error(\"Invalid Infura Settings\")}}));tJe=\"INSTALLED\",nJe=\"NOT_INSTALLED\",rJe=\"REGISTERED\",oJe=\"REGISTERING\",iJe=\"RELOADING\",aJe={CHROME:\"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn\",FIREFOX:\"https://addons.mozilla.org/firefox/addon/ether-metamask/\",DEFAULT:\"https://metamask.io\"},vX=\"REGISTRATION_IN_PROGRESS\",sJe=\"FORWARDER_ID\",$9t=(function(){function e(t){var n=t===void 0?{}:t,r=n.forwarderOrigin,o=r===void 0?\"https://fwd.metamask.io\":r,i=n.forwarderMode,a=i===void 0?e.FORWARDER_MODE.INJECT:i;this.forwarderOrigin=o,this.forwarderMode=a,this.state=e.isMetaMaskInstalled()?tJe:nJe;var c=e._detectBrowser();this.downloadUrl=c?aJe[c]:aJe.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener(\"message\",this._onMessage),a===e.FORWARDER_MODE.INJECT&&sessionStorage.getItem(vX)===\"true\"&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(t){if(t.origin===this.forwarderOrigin)return t.data.type===\"metamask:reload\"?this._onMessageFromForwarder(t):void console.debug(\"Unknown message from \\'\"+t.origin+\"\\' with data \"+JSON.stringify(t.data))},e.prototype._onMessageUnknownStateError=function(t){throw new Error(\"Unknown state: \\'\"+t+\"\\'\")},e.prototype._onMessageFromForwarder=function(t){return J9t(this,0,void 0,(function(){return X9t(this,(function(n){switch(n.label){case 0:switch(this.state){case iJe:return[3,1];case nJe:return[3,2];case tJe:return[3,3];case oJe:return[3,5];case rJe:return[3,6]}return[3,7];case 1:return console.debug(\"Ignoring message while reloading\"),[3,8];case 2:return console.debug(\"Reloading now to register with MetaMask\"),this.state=iJe,location.reload(),[3,8];case 3:return console.debug(\"Registering with MetaMask\"),this.state=oJe,[4,e._register()];case 4:return n.sent(),this.state=rJe,t.source.postMessage({type:\"metamask:registrationCompleted\"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug(\"Already registering - ignoring reload message\"),[3,8];case 6:return console.debug(\"Already registered - ignoring reload message\"),[3,8];case 7:this._onMessageUnknownStateError(this.state),n.label=8;case 8:return[2]}}))}))},e.prototype.startOnboarding=function(){sessionStorage.setItem(vX,\"true\"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){sessionStorage.getItem(vX)===\"true\"&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug(\"Removing forwarder\"),e._removeForwarder()),sessionStorage.setItem(vX,\"false\"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,\"_blank\"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,\"_blank\")},e.isMetaMaskInstalled=function(){return!!(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:\"wallet_registerOnboarding\"})},e._injectForwarder=function(t){var n=document.body,r=document.createElement(\"iframe\");r.setAttribute(\"height\",\"0\"),r.setAttribute(\"width\",\"0\"),r.setAttribute(\"style\",\"display: none;\"),r.setAttribute(\"src\",t),r.setAttribute(\"id\",sJe),n.insertBefore(r,n.children[0])},e._removeForwarder=function(){var t;(t=document.getElementById(sJe))===null||t===void 0||t.remove()},e._detectBrowser=function(){var t=q$e.parse(window.navigator.userAgent);return t.browser.name===\"Firefox\"?\"FIREFOX\":[\"Chrome\",\"Chromium\"].includes(t.browser.name||\"\")?\"CHROME\":null},e.FORWARDER_MODE={INJECT:\"INJECT\",OPEN_TAB:\"OPEN_TAB\"},e})();qge=class{constructor({remote:t,preferDesktop:n,platformManager:r,debug:o=!1}){this.state={isInstalling:!1,hasInstalled:!1,resendRequest:null,preferDesktop:!1,platformManager:null,remote:null,debug:!1,connectWith:void 0},this.state.remote=t,this.state.preferDesktop=n,this.state.platformManager=r,this.state.debug=o}startDesktopOnboarding(){return(function(){return dt(this,void 0,void 0,(function*(){Qe(\"[MetamaskInstaller: startDesktopOnboarding() starting desktop onboarding\"),window.ethereum&&(window.ethereum=void 0),new $9t().startOnboarding()}))})()}redirectToProperInstall(){return dt(this,void 0,void 0,(function*(){return(function(t){var n,r;return dt(this,void 0,void 0,(function*(){let{state:o}=t,i=(n=o.platformManager)===null||n===void 0?void 0:n.getPlatformType();if(Qe(`[MetamaskInstaller: redirectToProperInstall()] platform=${i}`),i===Wl.MetaMaskMobileWebview)return!1;o.isInstalling=!0;try{yield(r=o.remote)===null||r===void 0?void 0:r.startConnection({connectWith:o.connectWith}),o.isInstalling=!1,o.hasInstalled=!0}catch(a){throw o.isInstalling=!1,a}return!0}))})(this)}))}checkInstallation(){return dt(this,void 0,void 0,(function*(){return(function(t){var n;return dt(this,void 0,void 0,(function*(){let{state:r}=t,o=(n=r.platformManager)===null||n===void 0?void 0:n.isMetaMaskInstalled();return Qe(`[MetamaskInstaller: checkInstallation()] isInstalled=${o}`),!!o||(yield t.redirectToProperInstall())}))})(this)}))}start({wait:t=!1,connectWith:n}){return dt(this,void 0,void 0,(function*(){this.state.connectWith=n,Qe(`[MetaMaskInstaller: start()] wait=${t}`,n),yield eMt(this,{wait:t})}))}},y$=class{constructor({debug:t,sdkVersion:n}){this.containers={install:void 0,pending:void 0,select:void 0},this.defined={install:!1,pending:!1,select:!1},this.debug=t!=null&&t,this.sdkVersion=n}loadComponent(t){return dt(this,void 0,void 0,(function*(){if(!this.defined[t]){this.defined[t]=!0;try{let n=yield Promise.resolve().then((function(){return PMt}));console.log(\"loader\",n),n.defineCustomElements()}catch(n){console.error(`Failed to load ${t} modal:`,n)}}}))}renderInstallModal(t){var n;return dt(this,void 0,void 0,(function*(){this.debug&&console.debug(\"ModalLoader: renderInstallModal\",t),this.containers.install=t.parentElement,yield this.loadComponent(\"install\");let r=document.createElement(\"mm-install-modal\");r.link=t.link,r.preferDesktop=t.preferDesktop,r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.addEventListener(\"close\",(({detail:{shouldTerminate:o}})=>t.onClose(o))),r.addEventListener(\"startDesktopOnboarding\",t.metaMaskInstaller.startDesktopOnboarding),r.addEventListener(\"trackAnalytics\",(o=>{var i;return(i=t.onAnalyticsEvent)===null||i===void 0?void 0:i.call(t,o.detail)})),t.parentElement.appendChild(r)}))}renderSelectModal(t){var n;return dt(this,void 0,void 0,(function*(){this.containers.select=t.parentElement,yield this.loadComponent(\"select\");let r=document.createElement(\"mm-select-modal\");r.link=t.link,r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.preferDesktop=t.preferDesktop,r.addEventListener(\"close\",(({detail:{shouldTerminate:o}})=>t.onClose(o))),r.addEventListener(\"connectWithExtension\",t.connectWithExtension),t.parentElement.appendChild(r),setTimeout((()=>this.updateQRCode(t.link)),100)}))}renderPendingModal(t){var n;return dt(this,void 0,void 0,(function*(){this.containers.pending=t.parentElement,yield this.loadComponent(\"pending\");let r=document.createElement(\"mm-pending-modal\");r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.displayOTP=t.displayOTP,r.addEventListener(\"close\",t.onClose),r.addEventListener(\"updateOTPValue\",(({detail:{otpValue:o}})=>t.updateOTPValue(o))),t.onDisconnect&&r.addEventListener(\"disconnect\",t.onDisconnect),t.parentElement.appendChild(r)}))}updateOTPValue(t){let n=()=>{var r;let o=(r=this.containers.pending)===null||r===void 0?void 0:r.querySelector(\"mm-pending-modal\");return!!o&&(o.otpCode=t,!0)};setTimeout((()=>{n()}),800)}updateQRCode(t){var n,r;let o=(n=this.containers.install)===null||n===void 0?void 0:n.querySelector(\"mm-install-modal\");if(o)o.link=t;else{let i=(r=this.containers.select)===null||r===void 0?void 0:r.querySelector(\"mm-select-modal\");i&&(i.link=t)}}unmount(){Object.entries(this.containers).forEach((([t,n])=>{var r;(r=n?.parentNode)===null||r===void 0||r.removeChild(n),this.containers[t]=void 0}))}},tMt=({link:e,debug:t,installer:n,terminate:r,connectWithExtension:o,preferDesktop:i,onAnalyticsEvent:a})=>{let c=null,u=null;Qe(\"[UI: InstallModal-web: sdkWebInstallModal()] ################## Installing Modal #################\"),Qe(`[UI: InstallModal-web: sdkWebInstallModal()] link=${e}`),Qe(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open \"${e}\" --ios`),Qe(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open \"${e}\" --android`),Qe(`[UI: InstallModal-web: sdkWebInstallModal()] adb shell am start -a android.intent.action.VIEW -d \"${e}\"`);let d=p=>{var h;Qe(\"[UI: InstallModal-web: sdkWebInstallModal()] installModal-web unmounting install modal -- shouldTerminate:\",p,u),u?.parentNode&&((h=u.parentNode)===null||h===void 0||h.removeChild(u)),u=null,c=null,p===!0&&r?.()};return{mount:p=>{if(Qe(\"[UI: InstallModal-web: sdkWebInstallModal()] installModal-web mounting install modal\",u),u)return u.style.display=\"block\",void(c==null||c.updateQRCode(p));c=new y$({debug:t,sdkVersion:FC.version}),u=document.createElement(\"div\"),document.body.appendChild(u),window.extension?c.renderSelectModal({parentElement:u,connectWithExtension:()=>{d(),o?.()},onClose:d,link:e,preferDesktop:i!=null&&i}).catch((h=>{console.error(h)})):c.renderInstallModal({parentElement:u,preferDesktop:i!=null&&i,link:e,metaMaskInstaller:n,onClose:d,onAnalyticsEvent:a}).catch((h=>{console.error(\"[UI: InstallModal-web: sdkWebInstallModal()]\",h)}))},unmount:d}},nMt=({onDisconnect:e,debug:t})=>{let n=null,r=null,o=()=>{Qe(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web unmount\",n),n?.parentNode&&n.parentNode.removeChild(n),n=null,r=null},i=c=>{Qe(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web updateOTPValue\",c),r&&r.updateOTPValue(c)},a=({displayOTP:c}={displayOTP:!0})=>{Qe(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web mount\",n),n?n.style.display=\"block\":(r=new y$({debug:t,sdkVersion:FC.version}),n=document.createElement(\"div\"),document.body.appendChild(n),r.renderPendingModal({parentElement:n,onClose:o,onDisconnect:e,updateOTPValue:i,displayOTP:c}).catch((u=>{console.error(\"[UI: pendingModal-web: sdkWebPendingModal()]\",u)})))};return a(),{mount:a,unmount:o,updateOTPValue:i}};Yge=class{constructor(t){var n,r,o;this.state={connector:void 0,qrcodeLink:void 0,analytics:void 0,developerMode:!1,authorized:!1,reconnection:!1,preferDesktop:!1,deeplinkProtocol:!1,listeners:[],communicationLayerPreference:void 0,platformManager:void 0,pendingModal:void 0,installModal:void 0,otpAnswer:void 0},this.options=t;let i=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0||((r=t.logging)===null||r===void 0?void 0:r.sdk)===!0;this.state.developerMode=i,this.state.analytics=t.analytics,this.state.preferDesktop=(o=t.preferDesktop)!==null&&o!==void 0&&o,this.state.useDeeplink=t.sdk.options.useDeeplink,this.state.communicationLayerPreference=t.communicationLayerPreference,this.state.platformManager=t.platformManager,t.modals.install||(t.modals.install=tMt),t.modals.otp||(t.modals.otp=nMt)}startConnection(t){return dt(this,void 0,void 0,(function*(){return oMt(this.state,this.options,t)}))}initRemoteCommunication({sdkInstance:t}){var n,r,o;return dt(this,void 0,void 0,(function*(){let i=yield(r=(n=t.options.storage)===null||n===void 0?void 0:n.storageManager)===null||r===void 0?void 0:r.getPersistedChannelConfig();if(!this.options.ecies){let a={privateKey:i?.localKey};this.options.ecies=a}Q$e(this.state,this.options),yield(o=this.getConnector())===null||o===void 0?void 0:o.initFromDappStorage(),J$e(this.state,this.options)}))}showActiveModal(){return(function(t){var n,r,o,i;t.authorized?Qe(\"[RemoteConnection: showActiveModal()] already authorized\"):t.pendingModal?(r=(n=t.pendingModal).mount)===null||r===void 0||r.call(n):t.installModal&&((i=(o=t.installModal).mount)===null||i===void 0||i.call(o,t.qrcodeLink||\"\"))})(this.state)}closeModal(){var t,n,r,o;(n=(t=this.state.pendingModal)===null||t===void 0?void 0:t.unmount)===null||n===void 0||n.call(t),(o=(r=this.state.installModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r,!1)}getUniversalLink(){if(!this.state.qrcodeLink)throw new Error(\"connection not started. run startConnection() first.\");return this.state.qrcodeLink}getChannelConfig(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getChannelConfig()}getKeyInfo(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getKeyInfo()}getConnector(){if(!this.state.connector)throw new Error(\"invalid remote connector\");return this.state.connector}getPlatformManager(){if(!this.state.platformManager)throw new Error(\"PlatformManager not available\");return this.state.platformManager}isConnected(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isReady())||!1}isAuthorized(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isAuthorized())||!1}isPaused(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.isPaused()}disconnect(t){var n,r,o;Qe(\"[RemoteConnection: disconnect()]\",t),t?.terminate&&(E1.getProvider().handleDisconnect({terminate:!0}),(r=(n=this.state.pendingModal)===null||n===void 0?void 0:n.unmount)===null||r===void 0||r.call(n),this.state.otpAnswer=void 0),(o=this.state.connector)===null||o===void 0||o.disconnect(t),(function(i){Qe(\"[RemoteConnection: cleanupConnector()] cleaning up connector\"),i.connector&&(Kge(i),i.connector.disconnect({terminate:!0}).catch((a=>{Qe(\"[RemoteConnection: cleanupConnector()] error disconnecting connector\",a)})))})(this.state)}};Zge=class extends qN.default{constructor(t={storage:{enabled:!0},injectProvider:!0,forceInjectProvider:!1,enableAnalytics:!0,shouldShimWeb3:!0,useDeeplink:!0,extensionOnly:!0,headless:!1,dappMetadata:{name:\"\",url:\"\",iconUrl:\"\"},_source:QQe,i18nOptions:{enabled:!1}}){var n,r,o;super(),this.extensionActive=!1,this._initialized=!1,this.sdkInitPromise=void 0,this.debug=!1,this.readonlyRPCCalls=!1,this.availableLanguages=[\"en\"],jd.default.disable();let i=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0;if((!((r=t.logging)===null||r===void 0)&&r.sdk||i)&&jd.default.enable(\"MM_SDK\"),Qe(\"[MetaMaskSDK: constructor()]: begin.\"),this.setMaxListeners(50),!(!((o=t.dappMetadata)===null||o===void 0)&&o.url)){if(typeof window>\"u\"||typeof document>\"u\")throw new Error(\"You must provide dAppMetadata url\");t.dappMetadata=Object.assign(Object.assign({},t.dappMetadata),{url:`${window.location.protocol}//${window.location.host}`})}this.options=t,this.options._source||(t._source=QQe),this.init().then((()=>{Qe(\"[MetaMaskSDK: constructor()]: initialized successfully.\"),typeof window<\"u\"&&(window.mmsdk=this)})).catch((a=>{console.error(\"[MetaMaskSDK: constructor()] error during initialization\",a)}))}init(){return dt(this,void 0,void 0,(function*(){return(function(t){var n;return dt(this,void 0,void 0,(function*(){if(typeof window<\"u\"&&(!((n=window.mmsdk)===null||n===void 0)&&n.isInitialized()))return Qe(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initialized\"),Promise.resolve(window.mmsdk);if(t._initialized)return Qe(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initialized\"),t.sdkInitPromise;if(t.sdkInitPromise)return Qe(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initializing\"),t.sdkInitPromise;try{t.sdkInitPromise=iMt(t),yield t.sdkInitPromise}catch(r){throw console.error(r),r}return t.sdkInitPromise}))})(this)}))}isExtensionActive(){return this.extensionActive}checkExtensionAvailability(){var t;return typeof window<\"u\"&&!!(!((t=window.ethereum)===null||t===void 0)&&t.isMetaMask)}connect(){return dt(this,void 0,void 0,(function*(){return(function(t){return dt(this,void 0,void 0,(function*(){if(t._initialized||(Qe(\"[MetaMaskSDK: connect()] provider not ready -- wait for init()\"),yield t.init()),Qe(`[MetaMaskSDK: connect()] isExtensionActive=${t.isExtensionActive()} activeProvider`,t.activeProvider),!t.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");let n=t.activeProvider.getSelectedAddress();return n?[n]:t.activeProvider.request({method:In.ETH_REQUESTACCOUNTS,params:[]})}))})(this)}))}connectAndSign({msg:t}){return dt(this,void 0,void 0,(function*(){return z9t({instance:this,msg:t})}))}connectWith(t){return dt(this,void 0,void 0,(function*(){return(function({instance:n,rpc:r}){return dt(this,void 0,void 0,(function*(){if(n._initialized||(Qe(\"[MetaMaskSDK: connectWith()] provider not ready -- wait for init()\"),yield n.init()),Qe(`[MetaMaskSDK: connectWith()] method: ${r.method} rpc=${r}`),!n.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");return n.activeProvider.request({method:In.METAMASK_CONNECTWITH,params:[r]})}))})({instance:this,rpc:t})}))}resume(){return(function(t){var n,r,o;return dt(this,void 0,void 0,(function*(){if(!(!((r=(n=t.remoteConnection)===null||n===void 0?void 0:n.getConnector())===null||r===void 0)&&r.isReady()))return Qe(\"[MetaMaskSDK: resume()] channel is not ready -- starting connection\"),void((o=t.remoteConnection)===null||o===void 0||o.startConnection());Qe(\"[MetaMaskSDK: resume()] channel is ready\")}))})(this)}disconnect(){return console.warn(\"MetaMaskSDK.disconnect() is deprecated, use terminate()\"),this.terminate()}isAuthorized(){var t;(t=this.remoteConnection)===null||t===void 0||t.isAuthorized()}terminate(){return(function(t){var n,r,o;return dt(this,void 0,void 0,(function*(){if(!(!((n=t.platformManager)===null||n===void 0)&&n.isMetaMaskMobileWebView())){if(H9t&&(window.localStorage.removeItem(h$),window.localStorage.removeItem(jge),window.localStorage.removeItem(zge)),t.extensionActive){try{yield(r=t.activeProvider)===null||r===void 0?void 0:r.request({method:In.WALLET_REVOKEPERMISSIONS,params:[{eth_accounts:{}}]})}catch(i){Qe(\"[MetaMaskSDK: terminate()] error revoking permissions\",i)}return t.options.extensionOnly?(t.emit(Xf.ProviderUpdate,A1.TERMINATE),void Qe(\"[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers\")):(t.activeProvider=t.sdkProvider,window.ethereum=t.activeProvider,t.extensionActive=!1,void t.emit(Xf.ProviderUpdate,A1.TERMINATE))}t.emit(Xf.ProviderUpdate,A1.TERMINATE),Qe(`[MetaMaskSDK: terminate()] remoteConnection=${t.remoteConnection}`),(o=t.remoteConnection)===null||o===void 0||o.disconnect({terminate:!0,sendMessage:!0})}}))})(this)}isInitialized(){return this._initialized}setReadOnlyRPCCalls(t){this.readonlyRPCCalls=t}hasReadOnlyRPCCalls(){return this.readonlyRPCCalls}getProvider(){if(this.activeProvider)return this.activeProvider;console.warn(\"MetaMaskSDK: No active provider found\")}getMobileProvider(){if(!this.sdkProvider)throw new Error(\"SDK state invalid -- undefined mobile provider\");return this.sdkProvider}getUniversalLink(){var t;let n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getUniversalLink();if(!n)throw new Error(\"No Universal Link available, please call eth_requestAccounts first.\");return n}getChannelId(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig())===null||n===void 0?void 0:n.channelId}getRPCHistory(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getRPCMethodTracker()}getVersion(){return FC.version}getWalletStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getConnectionStatus()}_getChannelConfig(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig()}_ping(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.ping()}_keyCheck(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.keyCheck()}_getServiceStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getServiceStatus()}_getRemoteConnection(){return this.remoteConnection}_getDappMetadata(){return this.dappMetadata}_getKeyInfo(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getKeyInfo()}_resetKeys(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.resetKeys()}_getConnection(){return this.remoteConnection}emit(t,n){return super.emit(t,n)}on(t,n){return super.on(t,n)}},aMt=Object.freeze({__proto__:null,StorageManagerWeb:class{constructor({enabled:e}={enabled:!1}){this.enabled=!1,this.enabled=e}persistChannelConfig(e){return dt(this,void 0,void 0,(function*(){let t=JSON.stringify(e);Qe(`[StorageManagerWeb: persistChannelConfig()] enabled=${this.enabled}`,e),localStorage.setItem(age,t)}))}getPersistedChannelConfig(){return dt(this,void 0,void 0,(function*(){let e;try{if(Qe(`[StorageManagerWeb: getPersistedChannelConfig()] enabled=${this.enabled}`),e=localStorage.getItem(age),Qe(\"[StorageManagerWeb: getPersistedChannelConfig()]\",e),!e)return;let t=JSON.parse(e);return Qe(\"[StorageManagerWeb: getPersistedChannelConfig()] channelConfig\",t),t}catch(t){return void console.error(\"[StorageManagerWeb: getPersistedChannelConfig()] Can\\'t find existing channel config\",t)}}))}persistAccounts(e){return dt(this,void 0,void 0,(function*(){Qe(`[StorageManagerWeb: persistAccounts()] enabled=${this.enabled}`,e);let t=JSON.stringify(e);localStorage.setItem(zge,t)}))}getCachedAccounts(){return dt(this,void 0,void 0,(function*(){try{let e=localStorage.getItem(zge);return e?JSON.parse(e):[]}catch(e){throw console.error(\"[StorageManagerWeb: getCachedAccounts()] Error reading cached accounts\",e),e}}))}persistChainId(e){return dt(this,void 0,void 0,(function*(){Qe(`[StorageManagerWeb: persistChainId()] enabled=${this.enabled}`,e),localStorage.setItem(jge,e)}))}getCachedChainId(){return dt(this,void 0,void 0,(function*(){try{let e=localStorage.getItem(jge);return e??void 0}catch(e){throw console.error(\"[StorageManagerWeb: getCachedChainId()] Error reading cached chainId\",e),e}}))}terminate(){return dt(this,void 0,void 0,(function*(){Qe(`[StorageManagerWeb: terminate()] enabled=${this.enabled}`),localStorage.removeItem(age)}))}}}),sMt=\"hydrated\",cMt=!1,uMt=!1,lMt=!0,dMt=Object.defineProperty,Cye=new WeakMap,kS=e=>Cye.get(e),Rye=(e,t)=>Cye.set(t.$lazyInstance$=e,t),cJe=(e,t)=>t in e,NC=(e,t)=>(0,console.error)(e,t),sge=new Map,DX=new Map,X$e=\"slot-fb{display:contents}slot-fb[hidden]{display:none}\",T$=typeof window<\"u\"?window:{},Hv=T$.document||{head:{}},jl={$flags$:0,$resourcesUrl$:\"\",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},$$e=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync==\"function\"}catch{}return!1})(),Qge=!1,uJe=[],eet=[],fMt=(e,t)=>n=>{e.push(n),Qge||(Qge=!0,4&jl.$flags$?Iye(Jge):jl.raf(Jge))},lJe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){NC(n)}e.length=0},Jge=()=>{lJe(uJe),lJe(eet),(Qge=uJe.length>0)&&jl.raf(Jge)},Iye=e=>(t=>Promise.resolve(t))().then(e),pMt=fMt(eet),dJe={},Oye=e=>(e=typeof e)==\"object\"||e===\"function\";((e,t)=>{for(var n in t)dMt(e,n,{get:t[n],enumerable:!0})})({},{err:()=>net,map:()=>hMt,ok:()=>Xge,unwrap:()=>mMt,unwrapErr:()=>gMt});Xge=e=>({isOk:!0,isErr:!1,value:e}),net=e=>({isOk:!1,isErr:!0,value:e});mMt=e=>{if(e.isOk)return e.value;throw e.value},gMt=e=>{if(e.isErr)return e.value;throw e.value},we=(e,t,...n)=>{let r=null,o=!1,i=!1,a=[],c=d=>{for(let p=0;p<d.length;p++)r=d[p],Array.isArray(r)?c(r):r!=null&&typeof r!=\"boolean\"&&((o=typeof e!=\"function\"&&!Oye(r))&&(r=String(r)),o&&i?a[a.length-1].$text$+=r:a.push(o?b$(null,r):r),i=o)};if(c(n),t){let d=t.className||t.class;d&&(t.class=typeof d!=\"object\"?d:Object.keys(d).filter((p=>d[p])).join(\" \"))}if(typeof e==\"function\")return e(t===null?{}:t,a,bMt);let u=b$(e,null);return u.$attrs$=t,a.length>0&&(u.$children$=a),u},b$=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null}),yMt={},bMt={forEach:(e,t)=>e.map(fJe).forEach(t),map:(e,t)=>e.map(fJe).map(t).map(vMt)},fJe=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),vMt=e=>{if(typeof e.vtag==\"function\"){let n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),we(e.vtag,n,...e.vchildren||[])}let t=b$(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},C$=e=>kS(e).$hostElement$,PS=(e,t,n)=>{let r=C$(e);return{emit:o=>ret(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:o})}},ret=(e,t,n)=>{let r=jl.ce(t,n);return e.dispatchEvent(r),r},pJe=new WeakMap,wMt=e=>{let t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=(t.$tagName$,()=>{}),i=((a,c,u)=>{var d;let p=oet(c),h=DX.get(p);if(a=a.nodeType===11?a:Hv,h)if(typeof h==\"string\"){a=a.head||a;let g,y=pJe.get(a);if(y||pJe.set(a,y=new Set),!y.has(p)){{g=Hv.createElement(\"style\"),g.innerHTML=h;let v=(d=jl.$nonce$)!=null?d:tet(Hv);if(v!=null&&g.setAttribute(\"nonce\",v),!(1&c.$flags$))if(a.nodeName===\"HEAD\"){let x=a.querySelectorAll(\"link[rel=preconnect]\"),R=x.length>0?x[x.length-1].nextSibling:a.querySelector(\"style\");a.insertBefore(g,R)}else if(\"host\"in a)if($$e){let x=new CSSStyleSheet;x.replaceSync(h),a.adoptedStyleSheets=[x,...a.adoptedStyleSheets]}else{let x=a.querySelector(\"style\");x?x.innerHTML=h+x.innerHTML:a.prepend(g)}else a.append(g);1&c.$flags$&&a.nodeName!==\"HEAD\"&&a.insertBefore(g,null)}4&c.$flags$&&(g.innerHTML+=X$e),y&&y.add(p)}}else a.adoptedStyleSheets.includes(h)||(a.adoptedStyleSheets=[...a.adoptedStyleSheets,h]);return p})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&2&r&&(n[\"s-sc\"]=i,n.classList.add(i+\"-h\")),o()},oet=(e,t)=>\"sc-\"+e.$tagName$,hJe=(e,t,n,r,o,i)=>{if(n!==r){let a=cJe(e,t),c=t.toLowerCase();if(t===\"class\"){let u=e.classList,d=mJe(n),p=mJe(r);u.remove(...d.filter((h=>h&&!p.includes(h)))),u.add(...p.filter((h=>h&&!d.includes(h))))}else if(t===\"style\"){for(let u in n)r&&r[u]!=null||(u.includes(\"-\")?e.style.removeProperty(u):e.style[u]=\"\");for(let u in r)n&&r[u]===n[u]||(u.includes(\"-\")?e.style.setProperty(u,r[u]):e.style[u]=r[u])}else if(a||t[0]!==\"o\"||t[1]!==\"n\"){let u=Oye(r);if((a||u&&r!==null)&&!o)try{if(e.tagName.includes(\"-\"))e[t]=r;else{let d=r??\"\";t===\"list\"?a=!1:n!=null&&e[t]==d||(typeof e.__lookupSetter__(t)==\"function\"?e[t]=d:e.setAttribute(t,d))}}catch{}r==null||r===!1?r===!1&&e.getAttribute(t)!==\"\"||e.removeAttribute(t):(!a||4&i||o)&&!u&&(r=r===!0?\"\":r,e.setAttribute(t,r))}else if(t=t[2]===\"-\"?t.slice(3):cJe(T$,c)?c.slice(2):c[2]+t.slice(3),n||r){let u=t.endsWith(iet);t=t.replace(EMt,\"\"),n&&jl.rel(e,t,n,u),r&&jl.ael(e,t,r,u)}}},xMt=/\\\\s/,mJe=e=>e?e.split(xMt):[],iet=\"Capture\",EMt=new RegExp(iet+\"$\"),aet=(e,t,n)=>{let r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||dJe,i=t.$attrs$||dJe;for(let a of gJe(Object.keys(o)))a in i||hJe(r,a,o[a],void 0,n,t.$flags$);for(let a of gJe(Object.keys(i)))hJe(r,a,o[a],i[a],n,t.$flags$)};set=!1,Ag=!1,Nye=(e,t,n,r)=>{let o=t.$children$[n],i,a,c=0;if(o.$text$!==null)i=o.$elm$=Hv.createTextNode(o.$text$);else{if(Ag||(Ag=o.$tag$===\"svg\"),i=o.$elm$=Hv.createElementNS(Ag?\"http://www.w3.org/2000/svg\":\"http://www.w3.org/1999/xhtml\",!set&&uMt&&2&o.$flags$?\"slot-fb\":o.$tag$),Ag&&o.$tag$===\"foreignObject\"&&(Ag=!1),aet(null,o,Ag),i.getRootNode().querySelector(\"body\")&&cMt&&(u=>u!=null)(LX)&&i[\"s-si\"]!==LX&&i.classList.add(i[\"s-si\"]=LX),o.$children$)for(c=0;c<o.$children$.length;++c)a=Nye(e,o,c),a&&i.appendChild(a);o.$tag$===\"svg\"?Ag=!1:i.tagName===\"foreignObject\"&&(Ag=!0)}return i[\"s-hn\"]=kye,i},yJe=(e,t,n,r,o,i)=>{let a,c=e;for(c.shadowRoot&&c.tagName===kye&&(c=c.shadowRoot);o<=i;++o)r[o]&&(a=Nye(null,n,o),a&&(r[o].$elm$=a,BX(c,a,t)))},bJe=(e,t,n)=>{for(let r=t;r<=n;++r){let o=e[r];if(o){let i=o.$elm$;i&&i.remove()}}},wX=(e,t,n=!1)=>e.$tag$===t.$tag$,AU=(e,t,n=!1)=>{let r=t.$elm$=e.$elm$,o=e.$children$,i=t.$children$,a=t.$tag$,c=t.$text$;c===null?(aet(e,t,Ag=a===\"svg\"||a!==\"foreignObject\"&&Ag),o!==null&&i!==null?((u,d,p,h,g=!1)=>{let y,v=0,x=0,R=d.length-1,S=d[0],M=d[R],P=h.length-1,z=h[0],V=h[P];for(;v<=R&&x<=P;)S==null?S=d[++v]:M==null?M=d[--R]:z==null?z=h[++x]:V==null?V=h[--P]:wX(S,z,g)?(AU(S,z,g),S=d[++v],z=h[++x]):wX(M,V,g)?(AU(M,V,g),M=d[--R],V=h[--P]):wX(S,V,g)?(AU(S,V,g),BX(u,S.$elm$,M.$elm$.nextSibling),S=d[++v],V=h[--P]):wX(M,z,g)?(AU(M,z,g),BX(u,M.$elm$,S.$elm$),M=d[--R],z=h[++x]):(y=Nye(d&&d[x],p,x),z=h[++x],y&&BX(S.$elm$.parentNode,y,S.$elm$));v>R?yJe(u,h[P+1]==null?null:h[P+1].$elm$,p,h,x,P):x>P&&bJe(d,v,R)})(r,o,t,i,n):i!==null?(e.$text$!==null&&(r.textContent=\"\"),yJe(r,null,t,i,0,i.length-1)):!n&&lMt&&o!==null&&bJe(o,0,o.length-1),Ag&&a===\"svg\"&&(Ag=!1)):e.$text$!==c&&(r.data=c)},BX=(e,t,n)=>e?.insertBefore(t,n),AMt=(e,t,n=!1)=>{let r=e.$hostElement$,o=e.$cmpMeta$,i=e.$vnode$||b$(null,null),a=(c=t)&&c.$tag$===yMt?t:we(null,null,t);var c;if(kye=r.tagName,n&&a.$attrs$)for(let u of Object.keys(a.$attrs$))r.hasAttribute(u)&&![\"key\",\"ref\",\"style\",\"class\"].includes(u)&&(a.$attrs$[u]=r[u]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=i.$elm$=r.shadowRoot||r,LX=r[\"s-sc\"],set=(1&o.$flags$)!=0,AU(i,a,n)},cet=(e,t)=>{t&&!e.$onRenderResolve$&&t[\"s-p\"]&&t[\"s-p\"].push(new Promise((n=>e.$onRenderResolve$=n)))},Pye=(e,t)=>(e.$flags$|=16,4&e.$flags$?void(e.$flags$|=512):(cet(e,e.$ancestorComponent$),pMt((()=>_Mt(e,t))))),_Mt=(e,t)=>{let n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),o=e.$lazyInstance$;if(!o)throw new Error(`Can\\'t render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \\\\`externalRuntime: true\\\\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return r(),SMt(void 0,(()=>CMt(e,o,t)))},SMt=(e,t)=>TMt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),TMt=e=>e instanceof Promise||e&&e.then&&typeof e.then==\"function\",CMt=async(e,t,n)=>{var r;let o=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),a=o[\"s-rc\"];n&&wMt(e);let c=(e.$cmpMeta$.$tagName$,()=>{});RMt(e,t,o,n),a&&(a.map((u=>u())),o[\"s-rc\"]=void 0),c(),i();{let u=(r=o[\"s-p\"])!=null?r:[],d=()=>IMt(e);u.length===0?d():(Promise.all(u).then(d),e.$flags$|=4,u.length=0)}},RMt=(e,t,n,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,AMt(e,t,r)}catch(o){NC(o,e.$hostElement$)}return null},IMt=e=>{e.$cmpMeta$.$tagName$;let t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,o=e.$ancestorComponent$;64&e.$flags$?n():(e.$flags$|=64,det(t),Mye(r,\"componentDidLoad\"),n(),e.$onReadyResolve$(t),o||uet()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Iye((()=>Pye(e,!1))),e.$flags$&=-517},uet=e=>{det(Hv.documentElement),Iye((()=>ret(T$,\"appload\",{detail:{namespace:\"sdk-install-modal-web\"}})))},Mye=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){NC(r)}},det=e=>{var t;return e.classList.add((t=sMt)!=null?t:\"hydrated\")},OMt=(e,t,n,r)=>{let o=kS(e);if(!o)throw new Error(`Couldn\\'t find host element for \"${r.$tagName$}\" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);let i=o.$hostElement$,a=o.$instanceValues$.get(t),c=o.$flags$,u=o.$lazyInstance$;var d,p;d=n,p=r.$members$[t][0],n=d==null||Oye(d)?d:4&p?d!==\"false\"&&(d===\"\"||!!d):1&p?String(d):d;let h=Number.isNaN(a)&&Number.isNaN(n);if((!(8&c)||a===void 0)&&n!==a&&!h&&(o.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&c){let g=r.$watchers$[t];g&&g.map((y=>{try{u[y](n,a,t)}catch(v){NC(v,i)}}))}(18&c)==2&&Pye(o,!1)}},fet=(e,t,n)=>{var r,o;let i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let a=Object.entries((r=t.$members$)!=null?r:{});if(a.map((([c,[u]])=>{(31&u||2&n&&32&u)&&Object.defineProperty(i,c,{get(){return d=c,kS(this).$instanceValues$.get(d);var d},set(d){OMt(this,c,d,t)},configurable:!0,enumerable:!0})})),1&n){let c=new Map;i.attributeChangedCallback=function(u,d,p){jl.jmp((()=>{var h;let g=c.get(u);if(this.hasOwnProperty(g))p=this[g],delete this[g];else{if(i.hasOwnProperty(g)&&typeof this[g]==\"number\"&&this[g]==p)return;if(g==null){let y=kS(this),v=y?.$flags$;if(v&&!(8&v)&&128&v&&p!==d){let x=y.$lazyInstance$,R=(h=t.$watchers$)==null?void 0:h[u];R?.forEach((S=>{x[S]!=null&&x[S].call(x,p,d,u)}))}return}}this[g]=(p!==null||typeof this[g]!=\"boolean\")&&p}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.$watchers$)!=null?o:{}),...a.filter((([u,d])=>15&d[0])).map((([u,d])=>{let p=d[1]||u;return c.set(p,u),p}))]))}}return e},kMt=async(e,t,n,r)=>{let o;if((32&t.$flags$)==0){if(t.$flags$|=32,n.$lazyBundleId$){let c=((d,p,h)=>{let g=d.$tagName$.replace(/-/g,\"_\"),y=d.$lazyBundleId$;if(!y)return;let v=sge.get(y);if(v)return v[g];{let x=R=>(sge.set(y,R),R[g]);if(y===\"mm-install-modal_3\")return Promise.resolve().then((function(){return qMt})).then(x,NC)}return t7t(`./${y}.entry.js`).then((x=>(sge.set(y,x),x[g])),NC)})(n);if(c&&\"then\"in c){let d=()=>{};o=await c,d()}else o=c;if(!o)throw new Error(`Constructor for \"${n.$tagName$}#${t.$modeName$}\" was not found`);o.isProxied||(n.$watchers$=o.watchers,fet(o,n,2),o.isProxied=!0);let u=(n.$tagName$,()=>{});t.$flags$|=8;try{new o(t)}catch(d){NC(d)}t.$flags$&=-9,t.$flags$|=128,u(),$ge(t.$lazyInstance$)}else{o=e.constructor;let c=e.localName;customElements.whenDefined(c).then((()=>t.$flags$|=128))}if(o&&o.style){let c;typeof o.style==\"string\"&&(c=o.style);let u=oet(n);if(!DX.has(u)){let d=(n.$tagName$,()=>{});((p,h,g)=>{let y=DX.get(p);$$e&&g?(y=y||new CSSStyleSheet,typeof y==\"string\"?y=h:y.replaceSync(h)):y=h,DX.set(p,y)})(u,c,!!(1&n.$flags$)),d()}}}let i=t.$ancestorComponent$,a=()=>Pye(t,!0);i&&i[\"s-rc\"]?i[\"s-rc\"].push(a):a()},$ge=e=>{Mye(e,\"connectedCallback\")},vJe=e=>{Mye(e,\"disconnectedCallback\")},NMt=(e,t={})=>{var n;let r=()=>{},o=[],i=t.exclude||[],a=T$.customElements,c=Hv.head,u=c.querySelector(\"meta[charset]\"),d=Hv.createElement(\"style\"),p=[],h,g=!0;Object.assign(jl,t),jl.$resourcesUrl$=new URL(t.resourcesUrl||\"./\",Hv.baseURI).href;let y=!1;if(e.map((v=>{v[1].map((x=>{var R;let S={$flags$:x[0],$tagName$:x[1],$members$:x[2],$listeners$:x[3]};4&S.$flags$&&(y=!0),S.$members$=x[2],S.$watchers$=(R=x[4])!=null?R:{};let M=S.$tagName$,P=class extends HTMLElement{constructor(z){if(super(z),this.hasRegisteredEventListeners=!1,((V,Q)=>{let $={$flags$:0,$hostElement$:V,$cmpMeta$:Q,$instanceValues$:new Map};$.$onReadyPromise$=new Promise((oe=>$.$onReadyResolve$=oe)),V[\"s-p\"]=[],V[\"s-rc\"]=[],Cye.set(V,$)})(z=this,S),1&S.$flags$)if(z.shadowRoot){if(z.shadowRoot.mode!==\"open\")throw new Error(`Unable to re-use existing shadow root for ${S.$tagName$}! Mode is set to ${z.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else z.attachShadow({mode:\"open\"})}connectedCallback(){kS(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),h&&(clearTimeout(h),h=null),g?p.push(this):jl.jmp((()=>(z=>{if((1&jl.$flags$)==0){let V=kS(z),Q=V.$cmpMeta$,$=(Q.$tagName$,()=>{});if(1&V.$flags$)V?.$lazyInstance$?$ge(V.$lazyInstance$):V?.$onReadyPromise$&&V.$onReadyPromise$.then((()=>$ge(V.$lazyInstance$)));else{V.$flags$|=1;{let oe=z;for(;oe=oe.parentNode||oe.host;)if(oe[\"s-p\"]){cet(V,V.$ancestorComponent$=oe);break}}Q.$members$&&Object.entries(Q.$members$).map((([oe,[J]])=>{if(31&J&&z.hasOwnProperty(oe)){let re=z[oe];delete z[oe],z[oe]=re}})),kMt(z,V,Q)}$()}})(this)))}disconnectedCallback(){jl.jmp((()=>(async z=>{if((1&jl.$flags$)==0){let V=kS(z);V?.$lazyInstance$?vJe(V.$lazyInstance$):V?.$onReadyPromise$&&V.$onReadyPromise$.then((()=>vJe(V.$lazyInstance$)))}})(this)))}componentOnReady(){return kS(this).$onReadyPromise$}};S.$lazyBundleId$=v[0],i.includes(M)||a.get(M)||(o.push(M),a.define(M,fet(P,S,1)))}))})),o.length>0&&(y&&(d.textContent+=X$e),d.textContent+=o.sort()+\"{visibility:hidden}.hydrated{visibility:inherit}\",d.innerHTML.length)){d.setAttribute(\"data-styles\",\"\");let v=(n=jl.$nonce$)!=null?n:tet(Hv);v!=null&&d.setAttribute(\"nonce\",v),c.insertBefore(d,u?u.nextSibling:c.firstChild)}g=!1,p.length?p.map((v=>v.connectedCallback())):jl.jmp((()=>h=setTimeout(uet,30))),r()};(function(){if(typeof window<\"u\"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();PMt=Object.freeze({__proto__:null,defineCustomElements:async(e,t)=>{if(typeof window<\"u\")return await void 0,NMt([[\"mm-install-modal_3\",[[1,\"mm-install-modal\",{link:[1],sdkVersion:[1,\"sdk-version\"],preferDesktop:[4,\"prefer-desktop\"],tab:[32],isDefaultTab:[32],translationsLoaded:[32]},null,{preferDesktop:[\"updatePreferDesktop\"]}],[1,\"mm-pending-modal\",{displayOTP:[4,\"display-o-t-p\"],sdkVersion:[1,\"sdk-version\"],otpCode:[1,\"otp-code\"],translationsLoaded:[32]}],[1,\"mm-select-modal\",{link:[1],sdkVersion:[1,\"sdk-version\"],preferDesktop:[4,\"prefer-desktop\"],tab:[32],isDefaultTab:[32],translationsLoaded:[32]},null,{preferDesktop:[\"updatePreferDesktop\"]}]]]],t)},setNonce:e=>jl.$nonce$=e}),MMt={fontFamily:\"Roboto, sans-serif\"},Dye=({className:e},t)=>we(\"div\",{style:MMt,class:e},t),cge=({Icon:e,text:t})=>we(\"div\",{class:\"flexContainer\",style:{padding:\"6\",flexDirection:\"row\"}},we(\"div\",{class:\"flexItem1\"},we(e,null)),we(\"div\",{class:\"flexItem11\"},we(\"span\",{style:{lineHeight:\"2\",color:\"black\"}},t))),DMt=()=>we(\"svg\",{width:\"20\",height:\"18\",viewBox:\"0 0 20 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M20.0002 7.9702V10.0302C20.0002 10.5802 19.5602 11.0302 19.0002 11.0502H17.0402C15.9602 11.0502 14.9702 10.2602 14.8802 9.1802C14.8202 8.5502 15.0602 7.9602 15.4802 7.5502C15.8502 7.1702 16.3602 6.9502 16.9202 6.9502H19.0002C19.5602 6.9702 20.0002 7.4202 20.0002 7.9702Z\",fill:\"#037DD6\"}),we(\"path\",{d:\"M18.47 12.55H17.04C15.14 12.55 13.54 11.12 13.38 9.3C13.29 8.26 13.67 7.22 14.43 6.48C15.07 5.82 15.96 5.45 16.92 5.45H18.47C18.76 5.45 19 5.21 18.97 4.92C18.75 2.49 17.14 0.83 14.75 0.55C14.51 0.51 14.26 0.5 14 0.5H5C4.72 0.5 4.45 0.52 4.19 0.56C1.64 0.88 0 2.78 0 5.5V12.5C0 15.26 2.24 17.5 5 17.5H14C16.8 17.5 18.73 15.75 18.97 13.08C19 12.79 18.76 12.55 18.47 12.55ZM11 6.75H5C4.59 6.75 4.25 6.41 4.25 6C4.25 5.59 4.59 5.25 5 5.25H11C11.41 5.25 11.75 5.59 11.75 6C11.75 6.41 11.41 6.75 11 6.75Z\",fill:\"#037DD6\"})),LMt=()=>we(\"svg\",{width:\"20\",height:\"18\",viewBox:\"0 0 20 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M14.44 0.0999756C12.63 0.0999756 11.01 0.979976 10 2.32998C8.99 0.979976 7.37 0.0999756 5.56 0.0999756C2.49 0.0999756 0 2.59998 0 5.68998C0 6.87998 0.19 7.97998 0.52 8.99998C2.1 14 6.97 16.99 9.38 17.81C9.72 17.93 10.28 17.93 10.62 17.81C13.03 16.99 17.9 14 19.48 8.99998C19.81 7.97998 20 6.87998 20 5.68998C20 2.59998 17.51 0.0999756 14.44 0.0999756Z\",fill:\"#037DD6\"})),BMt=()=>we(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M16.28 7.53V6.28C16.28 3.58 15.63 0 10 0C4.37 0 3.72 3.58 3.72 6.28V7.53C0.92 7.88 0 9.3 0 12.79V14.65C0 18.75 1.25 20 5.35 20H14.65C18.75 20 20 18.75 20 14.65V12.79C20 9.3 19.08 7.88 16.28 7.53ZM10 16.74C8.33 16.74 6.98 15.38 6.98 13.72C6.98 12.05 8.34 10.7 10 10.7C11.66 10.7 13.02 12.06 13.02 13.72C13.02 15.39 11.67 16.74 10 16.74ZM5.35 7.44C5.27 7.44 5.2 7.44 5.12 7.44V6.28C5.12 3.35 5.95 1.4 10 1.4C14.05 1.4 14.88 3.35 14.88 6.28V7.45C14.8 7.45 14.73 7.45 14.65 7.45H5.35V7.44Z\",fill:\"#037DD6\"})),UMt=()=>we(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M16.4405 8.8999C20.0405 9.2099 21.5105 11.0599 21.5105 15.1099V15.2399C21.5105 19.7099 19.7205 21.4999 15.2505 21.4999H8.74047C4.27047 21.4999 2.48047 19.7099 2.48047 15.2399V15.1099C2.48047 11.0899 3.93047 9.2399 7.47047 8.9099\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M12 2V14.88\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M15.3504 12.6499L12.0004 15.9999L8.65039 12.6499\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}));Bye=()=>we(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"rect\",{width:\"16\",height:\"16\",fill:\"white\"}),we(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M2.40554 2.40554C2.94627 1.86482 3.82296 1.86482 4.36369 2.40554L8 6.04186L11.6363 2.40554C12.177 1.86482 13.0537 1.86482 13.5945 2.40554C14.1352 2.94627 14.1352 3.82296 13.5945 4.36369L9.95814 8L13.5945 11.6363C14.1352 12.177 14.1352 13.0537 13.5945 13.5945C13.0537 14.1352 12.177 14.1352 11.6363 13.5945L8 9.95814L4.36369 13.5945C3.82296 14.1352 2.94627 14.1352 2.40554 13.5945C1.86482 13.0537 1.86482 12.177 2.40554 11.6363L6.04186 8L2.40554 4.36369C1.86482 3.82296 1.86482 2.94627 2.40554 2.40554Z\",fill:\"#BBC0C5\"})),Uye=()=>we(\"svg\",{width:\"273\",height:\"51\",viewBox:\"0 0 273 51\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M240.882 25.9263C239.472 24.997 237.916 24.3361 236.443 23.5101C235.489 22.9731 234.473 22.4982 233.643 21.8167C232.233 20.6602 232.524 18.3885 233.996 17.3973C236.112 15.993 239.617 16.7777 239.99 19.6483C239.99 19.7102 240.052 19.7515 240.114 19.7515H243.308C243.391 19.7515 243.454 19.6896 243.433 19.607C243.267 17.6244 242.5 15.9723 241.089 14.9191C239.741 13.9072 238.206 13.3702 236.568 13.3702C228.127 13.3702 227.359 22.271 231.901 25.0796C232.42 25.41 236.879 27.6404 238.455 28.611C240.032 29.5816 240.529 31.3576 239.845 32.7619C239.223 34.0423 237.605 34.9303 235.987 34.8271C234.224 34.7238 232.855 33.7738 232.378 32.2869C232.295 32.0185 232.254 31.5022 232.254 31.275C232.254 31.2131 232.192 31.1511 232.129 31.1511H228.666C228.604 31.1511 228.541 31.2131 228.541 31.275C228.541 33.7738 229.164 35.1575 230.864 36.4172C232.461 37.615 234.203 38.1106 236.008 38.1106C240.737 38.1106 243.184 35.4466 243.682 32.6793C244.117 29.974 243.308 27.5371 240.882 25.9263Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M90.4943 13.8246H88.9595H87.2795C87.2173 13.8246 87.1758 13.8659 87.1551 13.9072L84.3137 23.2416C84.2722 23.3655 84.1063 23.3655 84.0648 23.2416L81.2234 13.9072C81.2026 13.8452 81.1612 13.8246 81.0989 13.8246H79.419H77.8842H75.8102C75.748 13.8246 75.6857 13.8865 75.6857 13.9485V37.7802C75.6857 37.8422 75.748 37.9041 75.8102 37.9041H79.2738C79.336 37.9041 79.3982 37.8422 79.3982 37.7802V19.6689C79.3982 19.5244 79.6056 19.5037 79.6471 19.6276L82.5093 29.024L82.7167 29.6849C82.7374 29.7468 82.7789 29.7675 82.8411 29.7675H85.4959C85.5581 29.7675 85.5996 29.7262 85.6203 29.6849L85.8277 29.024L88.6899 19.6276C88.7313 19.4831 88.9387 19.5244 88.9387 19.6689V37.7802C88.9387 37.8422 89.001 37.9041 89.0632 37.9041H92.5268C92.589 37.9041 92.6513 37.8422 92.6513 37.7802V13.9485C92.6513 13.8865 92.589 13.8246 92.5268 13.8246H90.4943Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M187.849 13.8246C187.787 13.8246 187.745 13.8659 187.725 13.9072L184.883 23.2416C184.842 23.3655 184.676 23.3655 184.634 23.2416L181.793 13.9072C181.772 13.8452 181.731 13.8246 181.668 13.8246H176.4C176.338 13.8246 176.276 13.8865 176.276 13.9485V37.7802C176.276 37.8422 176.338 37.9041 176.4 37.9041H179.864C179.926 37.9041 179.988 37.8422 179.988 37.7802V19.6689C179.988 19.5244 180.196 19.5037 180.237 19.6276L183.099 29.024L183.307 29.6849C183.328 29.7468 183.369 29.7675 183.431 29.7675H186.086C186.148 29.7675 186.19 29.7262 186.211 29.6849L186.418 29.024L189.28 19.6276C189.322 19.4831 189.529 19.5244 189.529 19.6689V37.7802C189.529 37.8422 189.591 37.9041 189.653 37.9041H193.117C193.179 37.9041 193.241 37.8422 193.241 37.7802V13.9485C193.241 13.8865 193.179 13.8246 193.117 13.8246H187.849Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M143.174 13.8246H136.724H133.261H126.81C126.748 13.8246 126.686 13.8865 126.686 13.9485V16.9223C126.686 16.9843 126.748 17.0462 126.81 17.0462H133.136V37.7802C133.136 37.8422 133.198 37.9041 133.261 37.9041H136.724C136.786 37.9041 136.849 37.8422 136.849 37.7802V17.0462H143.174C143.237 17.0462 143.299 16.9843 143.299 16.9223V13.9485C143.299 13.8865 143.257 13.8246 143.174 13.8246Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M163.604 37.9041H166.756C166.839 37.9041 166.901 37.8215 166.881 37.7389L160.368 13.8245C160.347 13.7626 160.306 13.7419 160.244 13.7419H159.041H156.925H155.722C155.66 13.7419 155.619 13.7832 155.598 13.8245L149.085 37.7389C149.065 37.8215 149.127 37.9041 149.21 37.9041H152.362C152.425 37.9041 152.466 37.8628 152.487 37.8215L154.374 30.862C154.395 30.8 154.436 30.7794 154.499 30.7794H161.467C161.53 30.7794 161.571 30.8207 161.592 30.862L163.479 37.8215C163.5 37.8628 163.562 37.9041 163.604 37.9041ZM155.328 27.3719L157.859 18.0581C157.9 17.9342 158.066 17.9342 158.107 18.0581L160.638 27.3719C160.659 27.4545 160.596 27.5371 160.513 27.5371H155.453C155.37 27.5371 155.308 27.4545 155.328 27.3719Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M217.362 37.9041H220.515C220.598 37.9041 220.66 37.8215 220.639 37.7389L214.127 13.8245C214.106 13.7626 214.065 13.7419 214.002 13.7419H212.8H210.684H209.481C209.419 13.7419 209.377 13.7832 209.357 13.8245L202.844 37.7389C202.823 37.8215 202.886 37.9041 202.969 37.9041H206.121C206.183 37.9041 206.225 37.8628 206.246 37.8215L208.133 30.862C208.154 30.8 208.195 30.7794 208.257 30.7794H215.226C215.288 30.7794 215.33 30.8207 215.351 30.862L217.238 37.8215C217.259 37.8628 217.3 37.9041 217.362 37.9041ZM209.087 27.3719L211.617 18.0581C211.659 17.9342 211.825 17.9342 211.866 18.0581L214.397 27.3719C214.417 27.4545 214.355 27.5371 214.272 27.5371H209.211C209.129 27.5371 209.066 27.4545 209.087 27.3719Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M106.713 34.3727V26.9795C106.713 26.9176 106.775 26.8556 106.837 26.8556H116.067C116.129 26.8556 116.191 26.7936 116.191 26.7317V23.7579C116.191 23.6959 116.129 23.634 116.067 23.634H106.837C106.775 23.634 106.713 23.572 106.713 23.5101V17.1907C106.713 17.1288 106.775 17.0668 106.837 17.0668H117.332C117.394 17.0668 117.457 17.0049 117.457 16.9429V13.9691C117.457 13.9072 117.394 13.8452 117.332 13.8452H106.713H103.125C103.063 13.8452 103.001 13.9072 103.001 13.9691V17.0668V23.6546V26.8763V34.5173V37.7802C103.001 37.8422 103.063 37.9041 103.125 37.9041H106.713H117.768C117.83 37.9041 117.892 37.8422 117.892 37.7802V34.6412C117.892 34.5792 117.83 34.5173 117.768 34.5173H106.817C106.755 34.4966 106.713 34.4553 106.713 34.3727Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M272.532 37.6976L260.544 25.3687C260.502 25.3274 260.502 25.2448 260.544 25.2035L271.329 14.0517C271.412 13.9691 271.349 13.8452 271.246 13.8452H266.828C266.787 13.8452 266.766 13.8659 266.745 13.8865L257.599 23.3449C257.516 23.4275 257.391 23.3655 257.391 23.2623V13.9691C257.391 13.9072 257.329 13.8452 257.267 13.8452H253.803C253.741 13.8452 253.679 13.9072 253.679 13.9691V37.8009C253.679 37.8628 253.741 37.9248 253.803 37.9248H257.267C257.329 37.9248 257.391 37.8628 257.391 37.8009V27.3099C257.391 27.2067 257.536 27.1447 257.599 27.2273L267.969 37.8835C267.989 37.9041 268.031 37.9248 268.052 37.9248H272.469C272.552 37.9041 272.615 37.7596 272.532 37.6976Z\",fill:\"#24292E\"}),we(\"path\",{d:\"M52.021 1L31.0526 16.4886L34.9517 7.36063L52.021 1Z\",fill:\"#E17726\",stroke:\"#E17726\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M3.65491 1L24.4366 16.6331L20.7241 7.36063L3.65491 1Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M44.4716 36.9127L38.8925 45.4211L50.8389 48.7047L54.261 37.0986L44.4716 36.9127Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M1.43555 37.0986L4.83695 48.7047L16.7626 45.4211L11.2042 36.9127L1.43555 37.0986Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M16.1197 22.5395L12.8013 27.5371L24.6232 28.074L24.2292 15.3734L16.1197 22.5395Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M39.5561 22.5394L31.3222 15.2288L31.0526 28.0739L42.8746 27.537L39.5561 22.5394Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M16.7626 45.4212L23.918 41.9724L17.7582 37.1813L16.7626 45.4212Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M31.7578 41.9724L38.8925 45.4212L37.9177 37.1813L31.7578 41.9724Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M38.8923 45.4212L31.7577 41.9724L32.3384 46.5983L32.2762 48.5602L38.8923 45.4212Z\",fill:\"#D5BFB2\",stroke:\"#D5BFB2\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M16.7625 45.4212L23.3994 48.5602L23.3579 46.5983L23.9179 41.9724L16.7625 45.4212Z\",fill:\"#D5BFB2\",stroke:\"#D5BFB2\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M23.5239 34.1249L17.5922 32.3902L21.7818 30.4696L23.5239 34.1249Z\",fill:\"#233447\",stroke:\"#233447\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M32.1517 34.1249L33.8939 30.4696L38.1042 32.3902L32.1517 34.1249Z\",fill:\"#233447\",stroke:\"#233447\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M16.7626 45.4212L17.7996 36.9128L11.2042 37.0987L16.7626 45.4212Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M37.8761 36.9128L38.8924 45.4212L44.4715 37.0987L37.8761 36.9128Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M42.8745 27.5371L31.0526 28.074L32.1518 34.1249L33.894 30.4696L38.1042 32.3902L42.8745 27.5371Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M17.5922 32.3902L21.7817 30.4696L23.5239 34.1249L24.6232 28.074L12.8012 27.5371L17.5922 32.3902Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M12.8013 27.5371L17.7582 37.1813L17.5923 32.3902L12.8013 27.5371Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M38.1044 32.3902L37.9177 37.1813L42.8746 27.5371L38.1044 32.3902Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M24.6232 28.0741L23.524 34.125L24.9136 41.2703L25.2247 31.8533L24.6232 28.0741Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M31.0526 28.0741L30.4719 31.8327L30.7623 41.2703L32.1519 34.125L31.0526 28.0741Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M32.1519 34.1249L30.7623 41.2702L31.7578 41.9724L37.9177 37.1813L38.1043 32.3901L32.1519 34.1249Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M17.5922 32.3901L17.7581 37.1813L23.918 41.9724L24.9135 41.2702L23.5239 34.1249L17.5922 32.3901Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M32.2763 48.5602L32.3385 46.5983L31.7993 46.1439H23.8765L23.358 46.5983L23.3995 48.5602L16.7626 45.4211L19.0855 47.3211L23.7935 50.5633H31.8615L36.5903 47.3211L38.8924 45.4211L32.2763 48.5602Z\",fill:\"#C0AC9D\",stroke:\"#C0AC9D\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M31.7578 41.9724L30.7622 41.2703H24.9135L23.918 41.9724L23.358 46.5983L23.8765 46.144H31.7993L32.3385 46.5983L31.7578 41.9724Z\",fill:\"#24292E\",stroke:\"#24292E\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M52.9128 17.5005L54.6757 8.95079L52.021 1L31.7578 15.9723L39.5561 22.5394L50.5692 25.7404L52.9958 22.9111L51.938 22.147L53.618 20.6188L52.3321 19.6276L54.0121 18.3472L52.9128 17.5005Z\",fill:\"#763E1A\",stroke:\"#763E1A\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M1 8.95079L2.78366 17.5005L1.64295 18.3472L3.34365 19.6276L2.05775 20.6188L3.73771 22.147L2.67996 22.9111L5.10657 25.7404L16.1196 22.5394L23.918 15.9723L3.65475 1L1 8.95079Z\",fill:\"#763E1A\",stroke:\"#763E1A\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M50.5692 25.7404L39.5561 22.5394L42.8746 27.5371L37.9177 37.1813L44.4716 37.0987H54.261L50.5692 25.7404Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M16.1196 22.5394L5.10651 25.7404L1.43549 37.0987H11.2041L17.7581 37.1813L12.8011 27.5371L16.1196 22.5394Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M31.0526 28.0741L31.7578 15.9724L34.9518 7.36072H20.7239L23.9179 15.9724L24.6231 28.0741L24.8927 31.8739L24.9135 41.2703H30.7622L30.783 31.8739L31.0526 28.0741Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}));NU=class e{static size(t,n){if(typeof t==\"number\"&&(t={height:t,width:t}),!Number.isSafeInteger(t.height)&&t.height!==1/0)throw new Error(`Bitmap: wrong height=${t.height} (${typeof t.height})`);if(!Number.isSafeInteger(t.width)&&t.width!==1/0)throw new Error(`Bitmap: wrong width=${t.width} (${typeof t.width})`);return n!==void 0&&(t={width:Math.min(t.width,n.width),height:Math.min(t.height,n.height)}),t}static fromString(t){let n=(t=t.replace(/^\\\\n+/g,\"\").replace(/\\\\n+$/g,\"\")).split(`\\n`),r=n.length,o=new Array(r),i;for(let a of n){let c=a.split(\"\").map((u=>{if(u===\"X\")return!0;if(u===\" \")return!1;if(u!==\"?\")throw new Error(`Bitmap.fromString: unknown symbol=${u}`)}));if(i&&c.length!==i)throw new Error(`Bitmap.fromString different row sizes: width=${i} cur=${c.length}`);i=c.length,o.push(c)}return i||(i=0),new e({height:r,width:i},o)}constructor(t,n){let{height:r,width:o}=e.size(t);this.data=n||Array.from({length:r},(()=>Sm(o,void 0))),this.height=r,this.width=o}point(t){return this.data[t.y][t.x]}isInside(t){return 0<=t.x&&t.x<this.width&&0<=t.y&&t.y<this.height}size(t){if(!t)return{height:this.height,width:this.width};let{x:n,y:r}=this.xy(t);return{height:this.height-r,width:this.width-n}}xy(t){if(typeof t==\"number\"&&(t={x:t,y:t}),!Number.isSafeInteger(t.x))throw new Error(`Bitmap: wrong x=${t.x}`);if(!Number.isSafeInteger(t.y))throw new Error(`Bitmap: wrong y=${t.y}`);return t.x=wJe(t.x,this.width),t.y=wJe(t.y,this.height),t}rect(t,n,r){let{x:o,y:i}=this.xy(t),{height:a,width:c}=e.size(n,this.size({x:o,y:i}));for(let u=0;u<a;u++)for(let d=0;d<c;d++)this.data[i+u][o+d]=typeof r==\"function\"?r({x:d,y:u},this.data[i+u][o+d]):r;return this}rectRead(t,n,r){return this.rect(t,n,((o,i)=>(r(o,i),i)))}hLine(t,n,r){return this.rect(t,{width:n,height:1},r)}vLine(t,n,r){return this.rect(t,{width:1,height:n},r)}border(t=2,n){let r=this.height+2*t,o=this.width+2*t,i=Sm(t,n),a=Array.from({length:t},(()=>Sm(o,n)));return new e({height:r,width:o},[...a,...this.data.map((c=>[...i,...c,...i])),...a])}embed(t,n){return this.rect(t,n.size(),(({x:r,y:o})=>n.data[o][r]))}rectSlice(t,n=this.size()){let r=new e(e.size(n,this.size(this.xy(t))));return this.rect(t,n,(({x:o,y:i},a)=>r.data[i][o]=a)),r}inverse(){let{height:t,width:n}=this;return new e({height:n,width:t}).rect({x:0,y:0},1/0,(({x:r,y:o})=>this.data[r][o]))}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`Wrong scale factor: ${t}`);let{height:n,width:r}=this;return new e({height:t*n,width:t*r}).rect({x:0,y:0},1/0,(({x:o,y:i})=>this.data[Math.floor(i/t)][Math.floor(o/t)]))}clone(){return new e(this.size()).rect({x:0,y:0},this.size(),(({x:t,y:n})=>this.data[n][t]))}assertDrawn(){this.rectRead(0,1/0,((t,n)=>{if(typeof n!=\"boolean\")throw new Error(\"Invalid color type=\"+typeof n)}))}toString(){return this.data.map((t=>t.map((n=>n===void 0?\"?\":n?\"X\":\" \")).join(\"\"))).join(`\\n`)}toASCII(){let{height:t,width:n,data:r}=this,o=\"\";for(let i=0;i<t;i+=2){for(let a=0;a<n;a++){let c=r[i][a],u=i+1>=t||r[i+1][a];c||u?!c&&u?o+=\"\\\\u2580\":c&&!u?o+=\"\\\\u2584\":c&&u&&(o+=\" \"):o+=\"\\\\u2588\"}o+=`\\n`}return o}toTerm(){let t=\"\\\\x1B[0m\",n=`\\\\x1B[1;47m  ${t}`,r=`\\\\x1B[40m  ${t}`;return this.data.map((o=>o.map((i=>i?r:n)).join(\"\"))).join(`\\n`)}toSVG(){let t=`<svg xmlns:svg=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${this.width} ${this.height}\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">`;return this.rectRead(0,1/0,(({x:n,y:r},o)=>{o&&(t+=`<rect x=\"${n}\" y=\"${r}\" width=\"1\" height=\"1\" />`)})),t+=\"</svg>\",t}toGIF(){let t=c=>[255&c,c>>>8&255],n=[...t(this.width),...t(this.height)],r=[];this.rectRead(0,1/0,((c,u)=>r.push(+(u===!0))));let o=126,i=[71,73,70,56,55,97,...n,246,0,0,255,255,255,...Sm(381,0),44,0,0,0,0,...n,0,7],a=Math.floor(r.length/o);for(let c=0;c<a;c++)i.push(127,128,...r.slice(o*c,o*(c+1)).map((u=>+u)));return i.push(r.length%o+1,128,...r.slice(a*o).map((c=>+c))),i.push(1,129,0,59),new Uint8Array(i)}toImage(t=!1){let{height:n,width:r}=this.size(),o=new Uint8Array(n*r*(t?3:4)),i=0;for(let a=0;a<n;a++)for(let c=0;c<r;c++){let u=this.data[a][c]?0:255;o[i++]=u,o[i++]=u,o[i++]=u,t||(o[i++]=255)}return{height:n,width:r,data:o}}},_Je=[\"low\",\"medium\",\"quartile\",\"high\"],SJe=[\"numeric\",\"alphanumeric\",\"byte\",\"kanji\",\"eci\"],FMt=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],HMt={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},zMt={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},zd={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];let t=zd.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),o=Math.floor(n/r);o%2?o+=1:n%r*2>=r&&(o+=2);let i=[6];for(let a=1;a<r;a++)i.push(t-(r-a)*o);return i.push(t),i},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=zd.ECCode[e]<<3|t,r=n;for(let o=0;o<10;o++)r=r<<1^1335*(r>>9);return(n<<10|r)^zd.formatMask},versionBits(e){let t=e;for(let n=0;n<12;n++)t=t<<1^7973*(t>>11);return e<<12|t},alphabet:{numeric:AJe(\"0123456789\"),alphanumerc:AJe(\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\")},lengthBits:(e,t)=>({numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]})[t][zd.sizeType(e)],modeBits:{numeric:\"0001\",alphanumeric:\"0010\",byte:\"0100\",kanji:\"1000\",eci:\"0111\"},capacity(e,t){let n=FMt[e-1],r=HMt[t][e-1],o=zMt[t][e-1],i=Math.floor(n/o)-r,a=o-n%o;return{words:r,numBlocks:o,shortBlocks:a,blockLen:i,capacity:8*(n-r*o),total:(r+i)*o+o-a}}},eye=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],cn={tables:(e=>{let t=Sm(256,0),n=Sm(256,0);for(let r=0,o=1;r<256;r++)t[r]=o,n[o]=r,o<<=1,256&o&&(o^=285);return{exp:t,log:n}})(),exp:e=>cn.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: wrong arg=${e}`);return cn.tables.log[e]%255},mul:(e,t)=>e===0||t===0?0:cn.tables.exp[(cn.tables.log[e]+cn.tables.log[t])%255],add:(e,t)=>e^t,pow:(e,t)=>cn.tables.exp[cn.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: wrong arg=${e}`);return cn.tables.exp[255-cn.tables.log[e]]},polynomial(e){if(e.length==0)throw new Error(\"GF.polymomial: wrong length\");if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw new Error(`GF.monomial: wrong degree=${e}`);if(t==0)return[0];let n=Sm(e+1,0);return n[0]=t,cn.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[cn.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];let n=Sm(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]=cn.add(n[r+o],cn.mul(e[r],t[o]));return cn.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;let n=Sm(e.length,0);for(let r=0;r<e.length;r++)n[r]=cn.mul(e[r],t);return cn.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw new Error(\"GF.mulPolyMonomial: wrong degree\");if(n==0)return[0];let r=Sm(e.length+t,0);for(let o=0;o<e.length;o++)r[o]=cn.mul(e[o],n);return cn.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let o=Sm(r.length,0),i=r.length-n.length,a=r.slice(0,i);for(let c=0;c<a.length;c++)o[c]=a[c];for(let c=i;c<r.length;c++)o[c]=cn.add(n[c-i],r[c]);return cn.polynomial(o)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let o=n[r];if(o!==0)for(let i=1;i<t.length;i++)t[i]!==0&&(n[r+i]=cn.add(n[r+i],cn.mul(t[i],o)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=cn.mulPoly(t,[1,cn.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return cn.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=cn.add(cn.mul(t,n),e[r]);return n},euclidian(e,t,n){cn.degree(e)<cn.degree(t)&&([e,t]=[t,e]);let r=e,o=t,i=[0],a=[1];for(;2*cn.degree(o)>=n;){let d=r,p=i;if(r=o,i=a,r[0]===0)throw new Error(\"rLast[0] === 0\");o=d;let h=[0],g=cn.inv(r[0]);for(;cn.degree(o)>=cn.degree(r)&&o[0]!==0;){let y=cn.degree(o)-cn.degree(r),v=cn.mul(o[0],g);h=cn.addPoly(h,cn.monomial(y,v)),o=cn.addPoly(o,cn.mulPolyMonomial(r,y,v))}if(h=cn.mulPoly(h,i),a=cn.addPoly(h,p),cn.degree(o)>=cn.degree(r))throw new Error(`Division failed r: ${o}, rLast: ${r}`)}let c=cn.coefficient(a,0);if(c==0)throw new Error(\"sigmaTilde(0) was zero\");let u=cn.inv(c);return[cn.mulPolyScalar(a,u),cn.mulPolyScalar(o,u)]}};uge={DESKTOP:\"Desktop\",MOBILE:\"Mobile\",META_MASK_MOBILE_APP:\"MetaMask mobile app\",SCAN_TO_CONNECT:\"Scan to connect and sign with\",CONNECT_WITH_EXTENSION:\"Connect With MetaMask Extension\",INSTALL_MODAL:{TRUSTED_BY_USERS:\"Trusted by over 30 million users to buy, store, send and swap crypto securely\",LEADING_CRYPTO_WALLET:\"The leading crypto wallet & gateway to blockchain apps built on Ethereum Mainnet, Polygon, Optimism, and many other networks\",CONTROL_DIGITAL_INTERACTIONS:\"Puts you in control of your digital interactions by making power of cryptography more accessible\",INSTALL_META_MASK_EXTENSION:\"Install MetaMask Extension\"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:\"Please open the MetaMask wallet app and select the code on the screen OR disconnect\",OPEN_META_MASK_CONTINUE:\"Open the MetaMask app to continue with your session.\",NUMBER_AFTER_OPEN_NOTICE:\"If a number doesn\\'t appear after opening MetaMask, please click disconnect and re-scan the QRCode.\",DISCONNECT:\"Disconnect\"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:\"Take control of your crypto and explore the blockchain with the wallet trusted by over 30 million people worldwide\"},META_MASK_MODAL:{ADDRESS_COPIED:\"Address copied to clipboard!\",DISCONNECT:\"Disconnect\",ACTIVE_NETWORK:\"Active Network\"}},YU=class{constructor(t){var n;this.translations=uge,this.supportedLocales=[\"es\",\"fr\",\"he\",\"it\",\"pt\",\"tr\"],this.baseUrl=(n=t?.baseUrl)!==null&&n!==void 0?n:\"https://raw.githubusercontent.com/MetaMask/metamask-sdk/refs/heads/gh-pages/locales\"}getBrowserLanguage(){if((navigator.languages||[navigator.language]).some((n=>n.toLowerCase().startsWith(\"en\"))))return\"en\";let t=navigator.language.toLowerCase().split(\"-\")[0];return this.supportedLocales.includes(t)?t:\"en\"}async init(t){let n=this.getBrowserLanguage()||t.fallbackLng;await this.loadTranslations(n)}async loadTranslations(t){let n=t.split(\"-\")[0];if(n!==\"en\"&&this.supportedLocales.includes(n))try{let r=`${this.baseUrl}/${n}.json`,o=await fetch(r);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);this.translations=await o.json()}catch(r){console.warn(`\\\\u274C Failed to load ${n} translations, falling back to English:`,r),this.translations=uge}else this.translations=uge}t(t){return this.getNestedTranslation(t,this.translations)||t}getNestedTranslation(t,n){let r=t.split(\".\"),o=n;for(let i of r){if(typeof o!=\"object\")return\"\";o=o[i]}return typeof o==\"string\"?o:\"\"}};(function(e){e.SDK_MODAL_VIEWED=\"sdk_modal_viewed\",e.SDK_MODAL_BUTTON_CLICKED=\"sdk_modal_button_clicked\",e.SDK_MODAL_TOGGLE_CHANGED=\"sdk_modal_toggle_changed\"})(PU||(PU={}));het=class{constructor(e){Rye(this,e),this.close=PS(this,\"close\",7),this.startDesktopOnboarding=PS(this,\"startDesktopOnboarding\",7),this.trackAnalytics=PS(this,\"trackAnalytics\",7),this.link=void 0,this.sdkVersion=void 0,this.preferDesktop=void 0,this.tab=1,this.isDefaultTab=!0,this.translationsLoaded=!1,this.onClose=this.onClose.bind(this),this.onStartDesktopOnboardingHandler=this.onStartDesktopOnboardingHandler.bind(this),this.setTab=this.setTab.bind(this),this.render=this.render.bind(this),this.setTab(this.preferDesktop?1:2),this.i18nInstance=new YU}componentDidLoad(){this.trackAnalytics.emit({event:PU.SDK_MODAL_VIEWED,params:{extensionInstalled:!1,tab:this.tab===1?\"desktop\":\"mobile\"}})}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}updatePreferDesktop(e){e?this.setTab(1):this.setTab(2)}onClose(e=!1){this.close.emit({shouldTerminate:e})}onStartDesktopOnboardingHandler(){this.trackAnalytics.emit({event:PU.SDK_MODAL_BUTTON_CLICKED,params:{button_type:\"install_extension\",tab:\"desktop\"}}),this.startDesktopOnboarding.emit()}setTab(e,t=!1){t&&this.trackAnalytics.emit({event:PU.SDK_MODAL_TOGGLE_CHANGED,params:{toggle:this.tab===1?\"desktop_to_mobile\":\"mobile_to_desktop\"}}),this.tab=e,this.isDefaultTab=!1}render(){if(!this.translationsLoaded)return null;let e=r=>this.i18nInstance.t(r),t=this.isDefaultTab?this.preferDesktop?1:2:this.tab,n=pet(this.link,\"svg\",{ecc:\"medium\",scale:2});return we(Dye,{className:\"install-model\"},we(\"div\",{class:\"backdrop\",onClick:()=>this.onClose(!0)}),we(\"div\",{class:\"modal\"},we(\"div\",{class:\"closeButtonContainer\"},we(\"div\",{class:\"right\"},we(\"span\",{class:\"closeButton\",onClick:()=>this.onClose(!0)},we(Bye,null)))),we(\"div\",{class:\"logoContainer\"},we(Uye,null)),we(\"div\",null,we(\"div\",{class:\"tabcontainer\"},we(\"div\",{class:\"flexContainer\"},we(\"div\",{onClick:()=>this.setTab(1,!0),class:\"tab flexItem \"+(t===1?\"tabactive\":\"\")},e(\"DESKTOP\")),we(\"div\",{onClick:()=>this.setTab(2,!0),class:\"tab flexItem \"+(t===2?\"tabactive\":\"\")},e(\"MOBILE\")))),we(\"div\",{style:{display:t===1?\"none\":\"block\"}},we(\"div\",{class:\"flexContainer\"},we(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"4\"}},n&&we(\"div\",{id:\"sdk-mm-qrcode\",class:\"center\",innerHTML:n}),we(\"div\",{class:\"connectMobileText\"},e(\"SCAN_TO_CONNECT\"),\" \",we(\"br\",null),we(\"span\",{class:\"blue\"},we(\"b\",null,e(\"META_MASK_MOBILE_APP\"))))))),we(\"div\",{style:{display:t===2?\"none\":\"block\"}},we(\"div\",{class:\"item\"},we(cge,{Icon:LMt,text:e(\"INSTALL_MODAL.TRUSTED_BY_USERS\")})),we(\"div\",{class:\"item\"},we(cge,{Icon:DMt,text:e(\"INSTALL_MODAL.LEADING_CRYPTO_WALLET\")})),we(\"div\",{class:\"item\"},we(cge,{Icon:BMt,text:e(\"INSTALL_MODAL.CONTROL_DIGITAL_INTERACTIONS\")})),we(\"button\",{class:\"button\",onClick:()=>this.onStartDesktopOnboardingHandler()},we(UMt,null),we(\"span\",{class:\"installExtensionText\"},e(\"INSTALL_MODAL.INSTALL_META_MASK_EXTENSION\"))))),we(Lye,{version:this.sdkVersion})))}get el(){return C$(this)}static get watchers(){return{preferDesktop:[\"updatePreferDesktop\"]}}};het.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;met=class{constructor(e){Rye(this,e),this.close=PS(this,\"close\",7),this.disconnect=PS(this,\"disconnect\",7),this.updateOTPValue=PS(this,\"updateOTPValue\",7),this.displayOTP=void 0,this.sdkVersion=void 0,this.otpCode=void 0,this.translationsLoaded=!1,this.i18nInstance=new YU}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}onClose(){this.close.emit()}onDisconnect(){this.disconnect.emit()}onUpdateOTPValueHandler(e){this.updateOTPValue.emit({otpValue:e})}disconnectedCallback(){this.onClose()}render(){var e;if(!this.translationsLoaded)return null;let t=(e=this.displayOTP)===null||e===void 0||e,n=this.sdkVersion,r=o=>this.i18nInstance.t(o);return we(Dye,{className:\"pending-modal\"},we(\"div\",{class:\"backdrop\",onClick:()=>this.onClose()}),we(\"div\",{class:\"modal\"},we(\"div\",{class:\"closeButtonContainer\"},we(\"div\",{class:\"right\"},we(\"span\",{class:\"closeButton\",onClick:()=>this.onClose()},we(Bye,null)))),we(\"div\",{class:\"logoContainer\"},we(Uye,null)),we(\"div\",null,we(\"div\",{class:\"flexContainer\",style:{flexDirection:\"column\",color:\"black\"}},we(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"30px\",marginBottom:\"30px\",fontSize:\"16px\"}},r(t?\"PENDING_MODAL.OPEN_META_MASK_SELECT_CODE\":\"PENDING_MODAL.OPEN_META_MASK_CONTINUE\")),we(\"div\",{id:\"sdk-mm-otp-value\",style:{padding:\"10px\",fontSize:\"32px\",display:this.otpCode?\"block\":\"none\"}},this.otpCode),t&&we(\"div\",{class:\"notice\"},\"* \",r(\"PENDING_MODAL.NUMBER_AFTER_OPEN_NOTICE\"))),we(\"div\",{style:{marginTop:\"20px\"}},we(\"button\",{class:\"button blue\",style:{marginTop:\"5px\",color:\"#0376C9\",borderColor:\"#0376C9\",borderWidth:\"1px\",borderStyle:\"solid\",backgroundColor:\"white\"},onClick:()=>this.onDisconnect()},r(\"PENDING_MODAL.DISCONNECT\")))),we(Lye,{version:n})))}get el(){return C$(this)}};met.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;VMt=()=>we(\"svg\",{width:\"21\",height:\"15\",viewBox:\"0 0 21 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M14.1364 14.9851C13.5909 14.9851 13.2273 14.5851 13.2273 13.9851C13.2273 13.3851 13.5909 12.9851 14.1364 12.9851C16.6818 12.9851 18.6818 10.7851 18.6818 7.98508C18.6818 5.18508 16.6818 2.98508 14.1364 2.98508C11.5909 2.98508 9.59091 5.18508 9.59091 7.98508C9.59091 8.58508 9.22727 8.98508 8.68182 8.98508C8.13636 8.98508 7.77273 8.58508 7.77273 7.98508C7.77273 4.08508 10.5909 0.985077 14.1364 0.985077C17.6818 0.985077 20.5 4.08508 20.5 7.98508C20.5 11.8851 17.6818 14.9851 14.1364 14.9851ZM6.68182 14.7851C3.22727 14.7851 0.5 11.6851 0.5 7.98508C0.5 4.28508 3.22727 1.18508 6.68182 1.18508C7.22727 1.18508 7.59091 1.58508 7.59091 2.18508C7.59091 2.78508 7.22727 3.18508 6.68182 3.18508C4.22727 3.18508 2.31818 5.38508 2.31818 7.98508C2.31818 10.5851 4.22727 12.7851 6.68182 12.7851C9.13636 12.7851 11.0455 10.6851 11.0455 7.98508C11.0455 7.38508 11.4091 6.98508 11.9545 6.98508C12.5 6.98508 12.8636 7.38508 12.8636 7.98508C12.7727 11.6851 10.0455 14.7851 6.68182 14.7851Z\",fill:\"white\"})),GMt=()=>we(\"svg\",{width:\"400\",height:\"300\",viewBox:\"0 0 467 300\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},we(\"path\",{d:\"M312.387 280.629C312.549 280.583 312.247 280.735 312.387 280.629L339.678 260.425C340.088 260.118 340.132 259.156 340.07 258.647C340.008 258.138 339.573 258.257 339.106 258.084L311.712 247.455C311.292 247.301 311.308 247.402 310.939 247.673C310.569 247.944 310.356 248.21 310.356 248.672L310.459 279.504C310.461 280.025 311.163 280.619 311.614 280.847C311.913 280.996 312.072 280.718 312.387 280.629ZM336.204 259.736L312.979 276.292L313.439 251.139L336.204 259.736Z\",fill:\"url(#paint0_linear_1356_14057)\"}),we(\"path\",{d:\"M324.639 260.342C324.358 259.547 323.485 258.91 322.707 259.215C319.6 260.432 318.17 262.313 317.287 264.066C316.482 265.665 316.197 267.482 314.188 268.269C312.178 269.055 310.763 268.663 309.162 268.007C307.406 267.287 305.504 266.182 302.397 267.399C299.289 268.616 297.859 270.497 296.976 272.25C296.171 273.849 295.697 274.886 293.685 275.673C291.675 276.459 290.261 276.067 288.659 275.411C286.903 274.691 284.999 273.587 281.894 274.803C278.789 276.019 277.549 278.681 276.666 280.434C275.861 282.034 275.386 283.07 273.374 283.857C272.596 284.161 271.931 285.055 272.211 285.849C272.492 286.644 273.365 287.281 274.143 286.977C277.25 285.76 278.68 283.879 279.563 282.125C280.368 280.526 280.65 278.71 282.662 277.923C284.672 277.136 286.087 277.528 287.688 278.184C289.444 278.904 291.348 280.009 294.453 278.793C297.561 277.576 298.991 275.695 299.874 273.941C300.679 272.342 301.153 271.306 303.165 270.519C305.175 269.732 306.589 270.124 308.191 270.78C309.947 271.5 311.849 272.605 314.956 271.388C318.063 270.172 319.301 267.511 320.184 265.757C320.989 264.158 321.466 263.121 323.476 262.335C324.254 262.032 324.919 261.137 324.639 260.342Z\",fill:\"url(#paint1_linear_1356_14057)\"}),we(\"path\",{d:\"M389.034 111.124C388.968 112.406 387.342 113.113 386.324 113.549C384.297 114.419 382.089 114.493 379.942 114.5C376.607 114.509 373.215 114.163 369.89 113.976C366.712 113.798 363.156 113.311 360.03 114.232C357.705 114.919 355.667 116.762 353.452 117.739C351.129 118.765 348.957 119.198 346.489 119.687C335.569 121.85 323.587 120.825 312.656 119.977C311.92 119.92 312.539 118.997 313.237 118.981C313.207 118.815 313.001 118.394 313.045 118.201C313.086 118.029 312.781 117.586 312.853 117.421C312.67 117.198 313.316 117.427 313.626 117.204C315.912 115.557 318.721 114.79 321.363 115.041C324.677 115.355 327.293 116.04 330.641 115.781C334.392 115.491 338.125 114.787 341.857 114.312C345.142 113.892 349.09 113.941 352.106 112.28C352.916 111.834 353.137 111.262 353.269 110.287C353.331 109.828 353.672 108.969 353.658 108.511C353.629 107.529 354.191 107.886 355.013 107.298C356.857 105.981 358.274 105.516 360.428 105.784C362.841 106.083 365.264 107.273 367.578 107.953C370.761 108.888 374.328 108.646 377.631 108.477C380.517 108.329 383.141 107.901 385.944 108.653C387.013 108.941 389.104 109.745 389.034 111.124Z\",fill:\"url(#paint2_linear_1356_14057)\"}),we(\"path\",{d:\"M278.118 85.4414C280.313 83.8186 283.302 83.9 285.853 83.2728C290.501 82.127 295.644 78.4476 300.549 79.1524C301.299 79.2595 300.904 81.0355 300.159 80.9295C300.131 80.9256 300.187 80.9333 300.159 80.9295C300.089 81.0185 299.516 81.1051 299.385 81.1463C294.999 82.515 292.895 87.5083 289.126 89.8598C287.799 90.688 286.771 90.8351 285.258 90.9441C283.515 91.0691 280.964 90.5775 279.269 90.1219C277.15 89.5532 275.965 87.034 278.118 85.4414Z\",fill:\"url(#paint3_linear_1356_14057)\"}),we(\"path\",{d:\"M122.567 166.093C113.597 172.832 104.535 179.836 99.517 190.092C98.5342 192.099 97.519 195.019 97.9533 197.204C98.9699 202.316 105.76 203.049 110.691 201.96C113.468 201.347 116.325 199.231 115.921 196.319C115.576 193.81 113.158 192.986 112.072 190.73C110.779 188.04 112.35 184.97 114.218 182.62C128.134 165.099 150.074 157.394 171.093 151.607C175.385 150.425 180.897 147.69 180.581 143.099C180.372 140.072 177.118 137.683 174.221 137.383C171.324 137.082 168.481 138.773 165.715 139.776C158.416 142.419 151.17 143.799 143.489 143.526C136.865 143.29 130.976 143.316 129.562 150.781C128.138 158.276 129.53 160.863 122.567 166.093Z\",fill:\"url(#paint4_linear_1356_14057)\"}),we(\"path\",{d:\"M79.1056 153.531C60.3932 164.378 43.7478 178.354 32.8214 197.415C30.3313 201.76 27.9216 206.554 27.1821 211.512C26.4448 216.47 27.7591 222.525 30.8133 226.337C34.908 231.446 41.6938 232.915 48.1811 233.125C50.7248 233.208 53.0035 233.066 55.3316 231.947C57.6602 230.83 59.7548 228.359 59.5978 225.742C59.3303 221.315 54.5491 219.665 50.9271 217.34C42.6566 212.037 40.4958 199.493 44.2381 190.032C47.9803 180.57 55.8228 173.173 63.2316 166.338C67.229 162.651 71.5194 158.372 76.777 157.522C79.9167 157.015 83.4706 157.589 86.6295 157.252C93.9004 156.479 99.64 151.404 105.588 146.912C115.048 139.765 126.045 134.283 137.501 132.093C141.913 131.248 146.293 130.493 149.682 127.831C151.37 126.507 150.803 123.567 148.726 123.93C138.542 125.713 128.652 131.135 119.142 134.758C105.627 139.914 91.7133 146.223 79.1056 153.531Z\",fill:\"url(#paint5_linear_1356_14057)\"}),we(\"path\",{d:\"M96.3677 117.321C96.0315 116.64 95.2914 116.612 94.6293 116.975C91.9858 118.417 91.5452 120.509 90.9466 122.178C90.4004 123.702 89.3647 124.67 87.6542 125.604C85.9437 126.538 85.0983 126.316 83.5956 125.91C81.9481 125.465 79.8603 125.424 77.2168 126.866C74.5734 128.309 74.1348 130.401 73.5341 132.07C72.9879 133.593 71.9522 134.562 70.2417 135.496C68.5313 136.43 67.6859 136.208 66.1832 135.801C64.5357 135.357 62.2569 134.538 59.6128 135.978C56.9694 137.42 56.5308 139.512 55.9301 141.181C55.3839 142.705 54.5398 144.454 52.8293 145.388C52.1667 145.748 52.1006 146.485 52.439 147.165C52.7752 147.845 53.5153 147.874 54.1773 147.511C56.8208 146.069 57.2594 143.977 57.86 142.307C58.4062 140.784 59.4419 139.815 61.1524 138.881C62.8629 137.948 63.7083 138.17 65.211 138.576C66.8585 139.021 68.9458 139.059 71.5898 137.619C74.2333 136.177 74.6718 134.085 75.2725 132.416C75.8187 130.892 76.8544 129.924 78.5649 128.99C80.2754 128.056 81.1207 128.278 82.6235 128.684C84.2709 129.129 86.5503 129.95 89.1938 128.507C91.8373 127.065 92.2779 124.973 92.8765 123.304C93.4227 121.78 94.2663 120.03 95.9773 119.098C96.6378 118.738 96.7039 118.001 96.3677 117.321Z\",fill:\"#FBC49D\"}),we(\"path\",{d:\"M391.827 164.699C392.04 164.639 392.39 164.573 392.6 164.481C393.87 163.921 395.363 162.429 395.893 161.051C396.421 159.673 396.237 158.321 395.712 156.931C394.629 154.061 391.777 152.62 389.155 153.775C386.531 154.931 384.962 158.455 386.042 161.325C387.038 163.963 389.369 165.392 391.827 164.699ZM394.166 157.367C394.529 158.332 394.52 159.751 394.156 160.706C393.792 161.662 393.1 162.534 392.218 162.921C390.398 163.723 388.338 162.878 387.589 160.889C387.226 159.925 387.234 158.506 387.599 157.55C387.963 156.594 388.654 155.723 389.536 155.336C391.356 154.534 393.416 155.376 394.166 157.367Z\",fill:\"#86E29B\"}),we(\"path\",{d:\"M62.7198 108.691C64.4912 108.191 66.6152 106.609 67.5596 104.824C68.4273 103.187 68.465 101.455 67.9609 99.7066C67.4547 97.9586 66.0792 96.5141 64.4963 95.6786C62.9135 94.843 61.2077 94.8578 59.4756 95.4255C57.7435 95.9933 56.2768 97.4364 55.409 99.074C53.6185 102.456 55.2032 106.494 58.4723 108.22C60.0142 109.035 61.1315 109.138 62.7198 108.691ZM60.6304 96.7682C61.819 96.4332 63.0232 96.8871 64.1048 97.4571C65.2463 98.0603 66.0495 98.8796 66.4145 100.142C66.7791 101.403 66.4488 103.299 65.8224 104.48C64.5299 106.919 61.2212 107.686 58.8638 106.441C56.5063 105.197 55.8538 101.858 57.1462 99.4185C57.7726 98.2375 58.6059 97.3957 59.8573 96.9862C59.9214 96.9635 60.5631 96.7872 60.6304 96.7682Z\",fill:\"#FFB0EB\"}),we(\"path\",{d:\"M77.0217 242.979C75.9542 243.28 75.1664 242.151 74.9029 241.074C74.6394 239.996 75 239.378 76.0676 239.077C77.1351 238.776 78.5053 238.907 78.7688 239.984C79.0323 241.061 78.0893 242.678 77.0217 242.979Z\",fill:\"url(#paint6_linear_1356_14057)\"}),we(\"path\",{d:\"M380.506 184.577C379.439 184.878 378.651 183.749 378.387 182.672C378.124 181.594 378.484 180.976 379.552 180.675C380.619 180.374 381.99 180.505 382.253 181.582C382.517 182.659 381.574 184.276 380.506 184.577Z\",fill:\"url(#paint7_linear_1356_14057)\"}),we(\"path\",{d:\"M348.82 246.969C347.752 247.27 346.382 247.14 346.119 246.063C345.855 244.985 346.798 243.369 347.866 243.068C348.933 242.767 349.721 243.896 349.985 244.973C350.248 246.05 349.888 246.669 348.82 246.969Z\",fill:\"url(#paint8_linear_1356_14057)\"}),we(\"path\",{d:\"M140.419 282.412C139.351 282.713 138.754 282.365 138.491 281.288C138.227 280.21 138.397 278.812 139.464 278.511C140.532 278.21 142.093 279.121 142.357 280.198C142.62 281.275 141.486 282.111 140.419 282.412Z\",fill:\"url(#paint9_linear_1356_14057)\"}),we(\"path\",{d:\"M121.462 101.679C120.395 101.979 119.798 101.631 119.534 100.554C119.271 99.4764 119.44 98.0779 120.508 97.777C121.575 97.4761 123.136 98.3868 123.4 99.4642C123.663 100.542 122.53 101.378 121.462 101.679Z\",fill:\"url(#paint10_linear_1356_14057)\"}),we(\"path\",{d:\"M370.749 159.005C369.682 159.306 368.311 159.175 368.048 158.098C367.784 157.021 368.727 155.404 369.795 155.103C370.863 154.802 371.65 155.931 371.914 157.008C372.177 158.086 371.817 158.704 370.749 159.005Z\",fill:\"url(#paint11_linear_1356_14057)\"}),we(\"path\",{d:\"M384.211 245.345C383.143 245.646 381.773 245.515 381.51 244.438C381.246 243.361 382.189 241.744 383.257 241.443C384.324 241.142 385.112 242.271 385.376 243.348C385.639 244.426 385.278 245.044 384.211 245.345Z\",fill:\"url(#paint12_linear_1356_14057)\"}),we(\"path\",{d:\"M364.771 41.3873C363.063 41.8687 361.337 40.8616 360.915 39.1378C360.493 37.414 361.536 35.6263 363.244 35.1449C364.953 34.6634 366.679 35.6706 367.101 37.3944C367.522 39.1182 366.479 40.9059 364.771 41.3873Z\",fill:\"url(#paint13_linear_1356_14057)\"}),we(\"path\",{d:\"M404.311 77.905C404.602 77.8231 404.875 77.9236 405.084 77.6871C405.437 77.2908 404.814 76.6385 404.703 76.1265L401.277 58.7418C401.149 58.163 400.687 57.5371 400.123 57.3991C399.558 57.2611 398.969 57.3812 398.576 57.835L385.784 73.1179C385.395 73.564 385.199 74.3453 385.393 74.8964C385.585 75.4481 385.978 76.1646 386.548 76.2391L403.538 78.123C403.744 78.1479 404.114 77.9607 404.311 77.905ZM398.948 62.7348L401.811 74.4394L389.841 72.8085L398.948 62.7348Z\",fill:\"#FFB0EB\"}),we(\"path\",{d:\"M97.5393 295.311C97.7108 295.263 97.4284 295.461 97.5393 295.311L108.785 280.464C108.975 280.211 108.718 279.972 108.594 279.684C108.47 279.396 108.124 279.917 107.821 279.902L88.5106 278.672C88.2101 278.659 87.895 278.62 87.7374 278.89C87.5798 279.159 87.7755 279.402 87.9283 279.67L96.5753 294.749C96.7102 294.99 97.2696 295.297 97.5393 295.311C97.6283 295.319 97.4556 295.335 97.5393 295.311ZM106.465 281.118L96.9667 292.97L90.6295 280.577L106.465 281.118Z\",fill:\"#86E29B\"}),we(\"path\",{d:\"M393.699 108.848C389.518 104.446 414.629 114.366 413.945 120.659C413.259 126.952 401.355 129.102 403.894 123.491C406.042 118.747 400.376 115.876 393.699 108.848Z\",fill:\"#FBC49D\"}),we(\"path\",{d:\"M139.414 115.959C139.434 115.953 139.392 115.965 139.414 115.959C141.963 115.2 143.436 111.976 142.717 109.189C142.37 107.839 141.526 107.199 140.408 106.504C139.289 105.808 138.171 105.449 136.933 105.815C135.698 106.182 134.85 107.033 134.222 108.247C133.595 109.461 133.282 111.234 133.63 112.585C133.978 113.935 134.821 114.574 135.94 115.27C137.04 115.952 138.199 116.301 139.414 115.959ZM137.315 107.375C138.222 107.12 139.005 106.994 139.825 107.502C140.661 108.02 140.912 108.618 141.171 109.625C141.708 111.704 140.935 113.834 139.032 114.398C138.11 114.675 137.356 114.791 136.522 114.272C135.686 113.753 135.436 113.155 135.176 112.149C134.917 111.142 134.718 109.714 135.186 108.81C135.654 107.905 136.394 107.649 137.315 107.375C137.329 107.371 137.299 107.38 137.315 107.375Z\",fill:\"#75C4FD\"}),we(\"path\",{d:\"M308.981 78.7519C310.052 78.4043 311.158 78.7096 312.265 78.6613C313.655 78.6006 314.936 78.517 316.323 78.3531C319.497 77.9795 322.798 77.4906 325.984 77.3012C329.309 77.1025 332.514 76.8551 335.836 77.0295C338.809 77.1842 342.163 77.3405 345.105 77.7558C352.129 78.7468 359.331 79.0578 366.347 80.1158C372.252 81.008 377.93 82.1319 383.722 83.5644C385.925 84.0054 388.267 85.0754 389.126 85.3792C389.421 85.4833 389.37 85.8347 389.317 86.1595C389.306 86.2271 389.353 86.1146 389.317 86.1595C388.269 87.414 386.564 86.8124 385.259 86.4677C384.406 86.241 381.488 85.9494 381.011 85.9957C380.14 86.0815 379.277 86.014 379.656 87.2114C380.122 88.6824 382.391 89.7375 383.704 90.2419C385.883 91.0803 388.771 91.2561 390.845 92.4015C392.968 92.821 395.425 93.5002 397.022 93.9986C402.83 95.8103 407.806 98.8678 413.033 102.002C415.503 103.482 417.829 104.764 419.973 106.72C421.647 108.248 423.771 109.882 424.595 112.091C425.113 113.482 424.451 115.471 422.848 115.085C420.353 114.488 419.638 111.665 418.227 109.714C415.003 105.251 410.067 102.067 405.118 100.06C402.64 99.0556 399.803 98.729 397.204 98.1176C394.411 97.4613 391.597 97.0442 388.707 97.1736C385.646 97.3097 382.846 97.5534 379.819 98.0078C377.027 98.4264 374.252 98.4441 371.514 97.8441C368.766 97.2421 366.276 96.7553 363.6 95.9021C361.662 95.2848 359.013 94.5583 357.232 93.5247C355.699 92.6339 355.631 91.2381 357.241 90.186C359.87 88.4656 362.778 89.8021 365.546 90.3497C365.561 90.3527 365.532 90.3468 365.546 90.3497C367.858 90.804 369.649 90.098 371.923 89.3884C372.489 89.2128 373.255 89.0482 373.47 88.953C374.383 88.5432 375.895 87.8227 375.407 86.7394C374.868 85.5457 372.659 84.8846 371.55 84.4891C369.74 83.8428 368.053 82.9215 366.147 82.6743C365.654 82.6095 365.109 83.1606 364.6 83.1097C363.36 83.1121 361.769 83.348 360.543 83.418C357.43 83.5916 354.583 83.6228 351.464 83.4719C348.714 83.3377 346.432 82.8542 343.741 82.3102C340.773 81.7101 337.52 81.5879 334.471 81.5839C331.393 81.5811 328.6 81.7214 325.583 82.4181C322.758 83.0702 319.757 83.6198 316.887 84.0326C314.698 84.3481 312.467 84.6054 310.319 84.2137C309.079 83.9871 306.994 83.3394 306.461 81.9635C305.846 80.3659 307.736 79.1556 308.981 78.7519Z\",fill:\"url(#paint14_linear_1356_14057)\"}),we(\"path\",{d:\"M242.269 242.95C242.295 242.947 242.244 242.955 242.269 242.95C244.934 242.606 247.53 241.858 250.2 241.574C253.133 241.264 256.006 240.56 258.906 239.982C263.26 239.117 268.026 238.52 272.254 237.097C274.429 236.365 276.067 235.298 278.251 234.592C280.361 233.909 283.058 233.12 285.216 232.652C289.317 231.764 293.049 231.66 297.016 230.198C301.109 228.69 305.088 226.673 308.819 224.409C312.645 222.086 316.282 219.769 320.622 218.62C322.381 218.154 323.919 218.219 325.65 218.886C327.016 219.413 327.739 220.337 327.196 221.79C326.557 223.504 324.659 224.7 323.131 225.423C320.854 226.5 319.53 227.184 317.134 227.927C314.619 228.707 311.888 229.24 309.395 230.083C308.226 230.947 307.17 232.522 306.105 233.501C303.996 235.441 301.666 237.03 298.945 237.996C292.934 240.129 286.354 238.602 280.183 239.056C279.661 239.095 279.162 239.442 278.635 239.487C275.592 240.135 272.2 240.63 269.156 241.294C264.546 242.299 260.456 243.409 255.808 244.179C251.971 244.814 243.815 245.854 243.815 245.854L242.074 245.505C240.575 245.281 240.751 243.152 242.269 242.95Z\",fill:\"url(#paint15_linear_1356_14057)\"}),we(\"path\",{d:\"M432.985 171.626C438.212 165.465 445.109 153.64 442.906 144.649C442.162 137.999 433.671 132.912 424.963 135.518C420.16 136.957 416.435 142.146 419.724 144.498C420.656 145.164 422.187 145.591 423.391 145.969C434.204 149.375 434.925 162.538 425.069 169.683C421.087 172.569 416.347 174.292 411.914 176.719C400.151 183.162 399.887 196.847 387.7 202.712C382.326 205.298 375.761 206.838 370.297 209.275C359.98 213.88 352.555 221.733 342.241 226.341C337.225 228.584 330.266 231.632 323.483 234.12C321.475 234.855 321.999 237.058 324.056 236.46C324.098 236.449 324.017 236.474 324.056 236.46C329.079 234.971 334.437 233.161 339.331 231.33C352.278 226.48 365.28 220.971 377.43 214.775C401.78 202.367 416.881 190.609 432.985 171.626Z\",fill:\"url(#paint16_linear_1356_14057)\"}),we(\"path\",{d:\"M343.644 241.104C348.002 234.144 357.126 232.455 364.343 231.134C368.176 230.431 372.406 229.878 376.137 228.662C380.691 227.175 384.558 224.095 388.327 221.077C389.452 220.177 391.204 218.466 392.393 217.436C393.185 216.748 393.644 216.026 394.33 215.225C396 213.275 399.599 209.812 401.687 208.16C403.263 206.914 407.779 204.758 408.259 207.986C408.611 210.359 406.379 213.087 404.961 214.747C402.224 217.953 398.998 221.079 395.475 223.243C391.749 225.531 387.701 227.439 383.674 229.051C381.672 229.853 379.519 230.073 377.486 230.785C376.001 231.307 374.486 232.236 373.037 232.866C371.034 233.738 368.99 234.28 367.041 235.38C364.436 236.849 361.782 238.783 359.108 240.105C356.331 241.477 353.823 242.691 350.791 243.27C348.6 243.687 345.501 243.641 343.836 241.884C343.526 241.554 343.389 241.51 343.644 241.104Z\",fill:\"url(#paint17_linear_1356_14057)\"}),we(\"path\",{d:\"M190.163 273.219C222.905 268.849 232.64 262.943 213.962 259.057C195.285 255.172 187.5 262.08 188.434 266.2C189.366 270.32 180.381 271.326 169.286 272.39C158.193 273.454 157.141 276.354 190.163 273.219Z\",fill:\"url(#paint18_linear_1356_14057)\"}),we(\"path\",{d:\"M295.952 95.4242L241.395 135.226L251.54 111.77L295.952 95.4242Z\",fill:\"#E17726\",stroke:\"#E17726\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M170.111 95.4242L224.181 135.598L214.522 111.77L170.111 95.4242Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M276.309 187.712L261.793 209.576L292.876 218.014L301.78 188.189L276.309 187.712Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M164.336 188.189L173.186 218.014L204.215 209.576L189.753 187.712L164.336 188.189Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M202.542 150.776L193.908 163.618L224.667 164.998L223.642 132.36L202.542 150.776Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M263.52 150.775L242.097 131.989L241.395 164.998L272.154 163.618L263.52 150.775Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M204.215 209.576L222.832 200.714L206.805 188.402L204.215 209.576Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M243.23 200.714L261.793 209.576L259.257 188.402L243.23 200.714Z\",fill:\"#E27625\",stroke:\"#E27625\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M261.793 209.576L243.23 200.714L244.741 212.601L244.579 217.643L261.793 209.576Z\",fill:\"#D5BFB2\",stroke:\"#D5BFB2\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M204.215 209.576L221.483 217.643L221.375 212.601L222.832 200.714L204.215 209.576Z\",fill:\"#D5BFB2\",stroke:\"#D5BFB2\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M221.807 180.547L206.373 176.09L217.274 171.154L221.807 180.547Z\",fill:\"#233447\",stroke:\"#233447\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M244.255 180.547L248.788 171.154L259.742 176.09L244.255 180.547Z\",fill:\"#233447\",stroke:\"#233447\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M204.215 209.576L206.913 187.712L189.753 188.189L204.215 209.576Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M259.149 187.712L261.793 209.576L276.309 188.189L259.149 187.712Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M272.154 163.618L241.395 164.998L244.255 180.547L248.788 171.154L259.742 176.09L272.154 163.618Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M206.373 176.09L217.274 171.154L221.807 180.547L224.667 164.998L193.908 163.618L206.373 176.09Z\",fill:\"#CC6228\",stroke:\"#CC6228\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M193.908 163.618L206.805 188.402L206.373 176.09L193.908 163.618Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M259.743 176.09L259.257 188.402L272.154 163.618L259.743 176.09Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M224.667 164.998L221.807 180.548L225.422 198.909L226.232 174.71L224.667 164.998Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M241.395 164.998L239.884 174.657L240.64 198.909L244.255 180.548L241.395 164.998Z\",fill:\"#E27525\",stroke:\"#E27525\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M244.255 180.547L240.64 198.909L243.23 200.714L259.257 188.402L259.743 176.09L244.255 180.547Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M206.373 176.09L206.805 188.402L222.832 200.714L225.422 198.909L221.807 180.547L206.373 176.09Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M244.579 217.643L244.741 212.601L243.338 211.434H222.724L221.375 212.601L221.483 217.643L204.215 209.576L210.259 214.459L222.508 222.791H243.5L255.803 214.459L261.793 209.576L244.579 217.643Z\",fill:\"#C0AC9D\",stroke:\"#C0AC9D\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M243.23 200.714L240.64 198.909H225.422L222.832 200.714L221.375 212.601L222.724 211.434H243.338L244.741 212.601L243.23 200.714Z\",fill:\"#161616\",stroke:\"#161616\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M298.272 137.827L302.859 115.856L295.952 95.4242L243.23 133.899L263.52 150.775L292.174 159.001L298.488 151.731L295.736 149.767L300.107 145.84L296.761 143.293L301.132 140.002L298.272 137.827Z\",fill:\"#763E1A\",stroke:\"#763E1A\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M163.203 115.856L167.844 137.827L164.876 140.002L169.301 143.293L165.955 145.84L170.326 149.767L167.574 151.731L173.888 159.001L202.542 150.775L222.832 133.899L170.11 95.4242L163.203 115.856Z\",fill:\"#763E1A\",stroke:\"#763E1A\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M292.175 159.001L263.52 150.775L272.154 163.618L259.257 188.402L276.309 188.189H301.78L292.175 159.001Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M202.542 150.775L173.888 159.001L164.336 188.189H189.753L206.805 188.402L193.908 163.618L202.542 150.775Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"path\",{d:\"M241.395 164.998L243.23 133.9L251.54 111.77H214.522L222.832 133.9L224.667 164.998L225.368 174.763L225.422 198.909H240.64L240.694 174.763L241.395 164.998Z\",fill:\"#F5841F\",stroke:\"#F5841F\",\"stroke-width\":\"0.94513\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),we(\"defs\",null,we(\"linearGradient\",{id:\"paint0_linear_1356_14057\",x1:\"335.991\",y1:\"250.487\",x2:\"303.873\",y2:\"266.801\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint1_linear_1356_14057\",x1:\"276.993\",y1:\"303.722\",x2:\"205.254\",y2:\"401.574\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"0.0929\",\"stop-color\":\"#81C2F6\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#F0B8BD\"})),we(\"linearGradient\",{id:\"paint2_linear_1356_14057\",x1:\"271.074\",y1:\"119.924\",x2:\"553.077\",y2:\"104.53\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint3_linear_1356_14057\",x1:\"264.209\",y1:\"91.0943\",x2:\"357.834\",y2:\"72.8792\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint4_linear_1356_14057\",x1:\"212.46\",y1:\"121.997\",x2:\"92.6119\",y2:\"183.406\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint5_linear_1356_14057\",x1:\"23.0498\",y1:\"204.411\",x2:\"161.86\",y2:\"163.003\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"0.0929\",\"stop-color\":\"#81C2F6\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#F0B8BD\"})),we(\"linearGradient\",{id:\"paint6_linear_1356_14057\",x1:\"78.8647\",y1:\"240.375\",x2:\"74.9655\",y2:\"241.328\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint7_linear_1356_14057\",x1:\"382.349\",y1:\"181.971\",x2:\"378.45\",y2:\"182.925\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint8_linear_1356_14057\",x1:\"349.889\",y1:\"244.583\",x2:\"345.99\",y2:\"245.537\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint9_linear_1356_14057\",x1:\"142.262\",y1:\"279.808\",x2:\"138.362\",y2:\"280.762\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint10_linear_1356_14057\",x1:\"123.305\",y1:\"99.0746\",x2:\"119.406\",y2:\"100.028\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint11_linear_1356_14057\",x1:\"371.818\",y1:\"156.617\",x2:\"367.919\",y2:\"157.571\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint12_linear_1356_14057\",x1:\"385.281\",y1:\"242.958\",x2:\"381.382\",y2:\"243.911\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint13_linear_1356_14057\",x1:\"367.125\",y1:\"37.5052\",x2:\"360.843\",y2:\"38.8076\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#75C3FC\"})),we(\"linearGradient\",{id:\"paint14_linear_1356_14057\",x1:\"300.182\",y1:\"91.321\",x2:\"479.464\",y2:\"104.041\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint15_linear_1356_14057\",x1:\"363.434\",y1:\"201.232\",x2:\"102.977\",y2:\"302.269\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})),we(\"linearGradient\",{id:\"paint16_linear_1356_14057\",x1:\"447.962\",y1:\"165.159\",x2:\"313.049\",y2:\"197.95\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"0.0929\",\"stop-color\":\"#81C2F6\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#F0B8BD\"})),we(\"linearGradient\",{id:\"paint17_linear_1356_14057\",x1:\"410.211\",y1:\"215.859\",x2:\"341.378\",y2:\"232.788\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#75C3FC\"}),we(\"stop\",{offset:\"0.0929\",\"stop-color\":\"#81C2F6\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#F0B8BD\"})),we(\"linearGradient\",{id:\"paint18_linear_1356_14057\",x1:\"222.282\",y1:\"258.986\",x2:\"162.257\",y2:\"273.774\",gradientUnits:\"userSpaceOnUse\"},we(\"stop\",{\"stop-color\":\"#FFE466\"}),we(\"stop\",{offset:\"1\",\"stop-color\":\"#FFAFEA\"})))),get=class{constructor(e){Rye(this,e),this.close=PS(this,\"close\",7),this.connectWithExtension=PS(this,\"connectWithExtension\",7),this.link=void 0,this.sdkVersion=void 0,this.preferDesktop=void 0,this.tab=1,this.isDefaultTab=!0,this.translationsLoaded=!1,this.i18nInstance=new YU,this.setTab(this.preferDesktop?1:2)}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}onClose(e=!1){this.close.emit({shouldTerminate:e})}connectWithExtensionHandler(){this.connectWithExtension.emit()}setTab(e){this.tab=e,this.isDefaultTab=!1}disconnectedCallback(){this.onClose()}updatePreferDesktop(e){e?this.setTab(1):this.setTab(2)}render(){if(!this.translationsLoaded)return null;let e=o=>this.i18nInstance.t(o),t=this.sdkVersion,n=this.isDefaultTab?this.preferDesktop?1:2:this.tab,r=pet(this.link,\"svg\",{ecc:\"medium\",scale:2});return we(Dye,{className:\"select-modal\"},we(\"div\",{class:\"backdrop\",onClick:()=>this.onClose(!0)}),we(\"div\",{class:\"modal\"},we(\"div\",{class:\"closeButtonContainer\"},we(\"div\",{class:\"right\"},we(\"span\",{class:\"closeButton\",onClick:()=>this.onClose(!0)},we(Bye,null)))),we(\"div\",{class:\"logoContainer\"},we(Uye,null)),we(\"div\",null,we(\"div\",{class:\"tabcontainer\"},we(\"div\",{class:\"flexContainer\"},we(\"div\",{onClick:()=>this.setTab(1),class:\"tab flexItem \"+(n===1?\"tabactive\":\"\")},e(\"DESKTOP\")),we(\"div\",{onClick:()=>this.setTab(2),class:\"tab flexItem \"+(n===2?\"tabactive\":\"\")},e(\"MOBILE\")))),we(\"div\",{style:{display:n===1?\"none\":\"block\"}},we(\"div\",{class:\"flexContainer\"},we(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"4\"}},we(\"div\",{class:\"center\",id:\"sdk-mm-qrcode\",innerHTML:r}),we(\"div\",{class:\"connectMobileText\"},e(\"SCAN_TO_CONNECT\"),we(\"br\",null),we(\"span\",{class:\"blue\"},we(\"b\",null,e(\"META_MASK_MOBILE_APP\"))))))),we(\"div\",{style:{display:n===2?\"none\":\"block\"}},we(\"div\",{style:{display:\"flex\",justifyContent:\"center\",height:\"300\",marginTop:\"-20\"}},we(GMt,null)),we(\"div\",{class:\"extensionLabel\"},e(\"SELECT_MODAL.CRYPTO_TAKE_CONTROL_TEXT\")),we(\"button\",{class:\"button\",onClick:()=>this.connectWithExtensionHandler()},we(VMt,null),we(\"span\",{class:\"installExtensionText\"},e(\"CONNECT_WITH_EXTENSION\"))))),we(Lye,{version:t})))}get el(){return C$(this)}static get watchers(){return{preferDesktop:[\"updatePreferDesktop\"]}}};get.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;qMt=Object.freeze({__proto__:null,mm_install_modal:het,mm_pending_modal:met,mm_select_modal:get})});var Yet=me((q0r,Ket)=>{\"use strict\";f();var L$=f1().Buffer;function tBt(e){if(e.length>=255)throw new TypeError(\"Alphabet too long\");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var o=e.charAt(r),i=o.charCodeAt(0);if(t[i]!==255)throw new TypeError(o+\" is ambiguous\");t[i]=r}var a=e.length,c=e.charAt(0),u=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function p(y){if((Array.isArray(y)||y instanceof Uint8Array)&&(y=L$.from(y)),!L$.isBuffer(y))throw new TypeError(\"Expected Buffer\");if(y.length===0)return\"\";for(var v=0,x=0,R=0,S=y.length;R!==S&&y[R]===0;)R++,v++;for(var M=(S-R)*d+1>>>0,P=new Uint8Array(M);R!==S;){for(var z=y[R],V=0,Q=M-1;(z!==0||V<x)&&Q!==-1;Q--,V++)z+=256*P[Q]>>>0,P[Q]=z%a>>>0,z=z/a>>>0;if(z!==0)throw new Error(\"Non-zero carry\");x=V,R++}for(var $=M-x;$!==M&&P[$]===0;)$++;for(var oe=c.repeat(v);$<M;++$)oe+=e.charAt(P[$]);return oe}function h(y){if(typeof y!=\"string\")throw new TypeError(\"Expected String\");if(y.length===0)return L$.alloc(0);for(var v=0,x=0,R=0;y[v]===c;)x++,v++;for(var S=(y.length-v)*u+1>>>0,M=new Uint8Array(S);v<y.length;){var P=y.charCodeAt(v);if(P>255)return;var z=t[P];if(z===255)return;for(var V=0,Q=S-1;(z!==0||V<R)&&Q!==-1;Q--,V++)z+=a*M[Q]>>>0,M[Q]=z%256>>>0,z=z/256>>>0;if(z!==0)throw new Error(\"Non-zero carry\");R=V,v++}for(var $=S-R;$!==S&&M[$]===0;)$++;var oe=L$.allocUnsafe(x+(S-$));oe.fill(0,0,x);for(var J=x;$!==S;)oe[J++]=M[$++];return oe}function g(y){var v=h(y);if(v)return v;throw new Error(\"Non-base\"+a+\" character\")}return{encode:p,decodeUnsafe:h,decode:g}}Ket.exports=tBt});var $ye=me((Y0r,Zet)=>{f();var nBt=Yet(),rBt=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\";Zet.exports=nBt(rBt)});var Qet=me(n1e=>{\"use strict\";f();function Zx(e,t,n){return t<=e&&e<=n}function z$(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError(\"Could not convert argument to dictionary\")}function oBt(e){for(var t=String(e),n=t.length,r=0,o=[];r<n;){var i=t.charCodeAt(r);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)o.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var c=i&1023,u=a&1023;o.push(65536+(c<<10)+u),r+=1}else o.push(65533)}r+=1}return o}function iBt(e){for(var t=\"\",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode((r>>10)+55296,(r&1023)+56320))}return t}var B$=-1;function t1e(e){this.tokens=[].slice.call(e)}t1e.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():B$},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var o7=-1;function e1e(e,t){if(e)throw TypeError(\"Decoder error\");return t||65533}var U$=\"utf-8\";function F$(e,t){if(!(this instanceof F$))return new F$(e,t);if(e=e!==void 0?String(e).toLowerCase():U$,e!==U$)throw new Error(\"Encoding not supported. Only utf-8 is supported\");t=z$(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,\"encoding\",{value:\"utf-8\"}),Object.defineProperty(this,\"fatal\",{value:this._fatal}),Object.defineProperty(this,\"ignoreBOM\",{value:this._ignoreBOM})}F$.prototype={decode:function(t,n){var r;typeof t==\"object\"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t==\"object\"&&\"buffer\"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=z$(n),this._streaming||(this._decoder=new aBt({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var o=new t1e(r),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==o7);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===o7)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&[\"utf-8\"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),iBt(i)}};function H$(e,t){if(!(this instanceof H$))return new H$(e,t);if(e=e!==void 0?String(e).toLowerCase():U$,e!==U$)throw new Error(\"Encoding not supported. Only utf-8 is supported\");t=z$(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,\"encoding\",{value:\"utf-8\"})}H$.prototype={encode:function(t,n){t=t?String(t):\"\",n=z$(n),this._streaming||(this._encoder=new sBt(this._options)),this._streaming=!!n.stream;for(var r=[],o=new t1e(oBt(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==o7);)Array.isArray(i)?r.push.apply(r,i):r.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==o7;)Array.isArray(i)?r.push.apply(r,i):r.push(i);this._encoder=null}return new Uint8Array(r)}};function aBt(e){var t=e.fatal,n=0,r=0,o=0,i=128,a=191;this.handler=function(c,u){if(u===B$&&o!==0)return o=0,e1e(t);if(u===B$)return o7;if(o===0){if(Zx(u,0,127))return u;if(Zx(u,194,223))o=1,n=u-192;else if(Zx(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,n=u-224;else if(Zx(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,n=u-240;else return e1e(t);return n=n<<6*o,null}if(!Zx(u,i,a))return n=o=r=0,i=128,a=191,c.prepend(u),e1e(t);if(i=128,a=191,r+=1,n+=u-128<<6*(o-r),r!==o)return null;var d=n;return n=o=r=0,d}}function sBt(e){var t=e.fatal;this.handler=function(n,r){if(r===B$)return o7;if(Zx(r,0,127))return r;var o,i;Zx(r,128,2047)?(o=1,i=192):Zx(r,2048,65535)?(o=2,i=224):Zx(r,65536,1114111)&&(o=3,i=240);for(var a=[(r>>6*o)+i];o>0;){var c=r>>6*(o-1);a.push(128|c&63),o-=1}return a}}n1e.TextEncoder=H$;n1e.TextDecoder=F$});var ttt=me(Vi=>{\"use strict\";f();var cBt=Vi&&Vi.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),uBt=Vi&&Vi.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Kv=Vi&&Vi.__decorate||function(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")i=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},lBt=Vi&&Vi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==\"default\"&&Object.hasOwnProperty.call(e,n)&&cBt(t,e,n);return uBt(t,e),t},Jet=Vi&&Vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,\"__esModule\",{value:!0});Vi.deserializeUnchecked=Vi.deserialize=Vi.serialize=Vi.BinaryReader=Vi.BinaryWriter=Vi.BorshError=Vi.baseDecode=Vi.baseEncode=void 0;var VS=Jet(G6()),Xet=Jet($ye()),dBt=lBt(Qet()),fBt=typeof TextDecoder!=\"function\"?dBt.TextDecoder:TextDecoder,pBt=new fBt(\"utf-8\",{fatal:!0});function hBt(e){return typeof e==\"string\"&&(e=globalThis.Buffer.from(e,\"utf8\")),Xet.default.encode(globalThis.Buffer.from(e))}Vi.baseEncode=hBt;function mBt(e){return globalThis.Buffer.from(Xet.default.decode(e))}Vi.baseDecode=mBt;var r1e=1024,Gl=class extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+\": \"+this.fieldPath.join(\".\")}};Vi.BorshError=Gl;var j$=class{constructor(){this.buf=globalThis.Buffer.alloc(r1e),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=globalThis.Buffer.concat([this.buf,globalThis.Buffer.alloc(r1e)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new VS.default(t).toArray(\"le\",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new VS.default(t).toArray(\"le\",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new VS.default(t).toArray(\"le\",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new VS.default(t).toArray(\"le\",64)))}writeBuffer(t){this.buf=globalThis.Buffer.concat([globalThis.Buffer.from(this.buf.subarray(0,this.length)),t,globalThis.Buffer.alloc(r1e)]),this.length+=t.length}writeString(t){this.maybeResize();let n=globalThis.Buffer.from(t,\"utf8\");this.writeU32(n.length),this.writeBuffer(n)}writeFixedArray(t){this.writeBuffer(globalThis.Buffer.from(t))}writeArray(t,n){this.maybeResize(),this.writeU32(t.length);for(let r of t)this.maybeResize(),n(r)}toArray(){return this.buf.subarray(0,this.length)}};Vi.BinaryWriter=j$;function Yv(e,t,n){let r=n.value;n.value=function(...o){try{return r.apply(this,o)}catch(i){if(i instanceof RangeError){let a=i.code;if([\"ERR_BUFFER_OUT_OF_BOUNDS\",\"ERR_OUT_OF_RANGE\"].indexOf(a)>=0)throw new Gl(\"Reached the end of buffer when deserializing\")}throw i}}}var ep=class{constructor(t){this.buf=t,this.offset=0}readU8(){let t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){let t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){let t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){let t=this.readBuffer(8);return new VS.default(t,\"le\")}readU128(){let t=this.readBuffer(16);return new VS.default(t,\"le\")}readU256(){let t=this.readBuffer(32);return new VS.default(t,\"le\")}readU512(){let t=this.readBuffer(64);return new VS.default(t,\"le\")}readBuffer(t){if(this.offset+t>this.buf.length)throw new Gl(`Expected buffer length ${t} isn\\'t within bounds`);let n=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,n}readString(){let t=this.readU32(),n=this.readBuffer(t);try{return pBt.decode(n)}catch(r){throw new Gl(`Error decoding UTF-8 string: ${r}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){let n=this.readU32(),r=Array();for(let o=0;o<n;++o)r.push(t());return r}};Kv([Yv],ep.prototype,\"readU8\",null);Kv([Yv],ep.prototype,\"readU16\",null);Kv([Yv],ep.prototype,\"readU32\",null);Kv([Yv],ep.prototype,\"readU64\",null);Kv([Yv],ep.prototype,\"readU128\",null);Kv([Yv],ep.prototype,\"readU256\",null);Kv([Yv],ep.prototype,\"readU512\",null);Kv([Yv],ep.prototype,\"readString\",null);Kv([Yv],ep.prototype,\"readFixedArray\",null);Kv([Yv],ep.prototype,\"readArray\",null);Vi.BinaryReader=ep;function $et(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oR(e,t,n,r,o){try{if(typeof r==\"string\")o[`write${$et(r)}`](n);else if(r instanceof Array)if(typeof r[0]==\"number\"){if(n.length!==r[0])throw new Gl(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);o.writeFixedArray(n)}else if(r.length===2&&typeof r[1]==\"number\"){if(n.length!==r[1])throw new Gl(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let i=0;i<r[1];i++)oR(e,null,n[i],r[0],o)}else o.writeArray(n,i=>{oR(e,t,i,r[0],o)});else if(r.kind!==void 0)switch(r.kind){case\"option\":{n==null?o.writeU8(0):(o.writeU8(1),oR(e,t,n,r.type,o));break}case\"map\":{o.writeU32(n.size),n.forEach((i,a)=>{oR(e,t,a,r.key,o),oR(e,t,i,r.value,o)});break}default:throw new Gl(`FieldType ${r} unrecognized`)}else ett(e,n,o)}catch(i){throw i instanceof Gl&&i.addToFieldPath(t),i}}function ett(e,t,n){if(typeof t.borshSerialize==\"function\"){t.borshSerialize(n);return}let r=e.get(t.constructor);if(!r)throw new Gl(`Class ${t.constructor.name} is missing in schema`);if(r.kind===\"struct\")r.fields.map(([o,i])=>{oR(e,o,t[o],i,n)});else if(r.kind===\"enum\"){let o=t[r.field];for(let i=0;i<r.values.length;++i){let[a,c]=r.values[i];if(a===o){n.writeU8(i),oR(e,a,t[a],c,n);break}}}else throw new Gl(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}function gBt(e,t,n=j$){let r=new n;return ett(e,t,r),r.toArray()}Vi.serialize=gBt;function iR(e,t,n,r){try{if(typeof n==\"string\")return r[`read${$et(n)}`]();if(n instanceof Array){if(typeof n[0]==\"number\")return r.readFixedArray(n[0]);if(typeof n[1]==\"number\"){let o=[];for(let i=0;i<n[1];i++)o.push(iR(e,null,n[0],r));return o}else return r.readArray(()=>iR(e,t,n[0],r))}if(n.kind===\"option\")return r.readU8()?iR(e,t,n.type,r):void 0;if(n.kind===\"map\"){let o=new Map,i=r.readU32();for(let a=0;a<i;a++){let c=iR(e,t,n.key,r),u=iR(e,t,n.value,r);o.set(c,u)}return o}return o1e(e,n,r)}catch(o){throw o instanceof Gl&&o.addToFieldPath(t),o}}function o1e(e,t,n){if(typeof t.borshDeserialize==\"function\")return t.borshDeserialize(n);let r=e.get(t);if(!r)throw new Gl(`Class ${t.name} is missing in schema`);if(r.kind===\"struct\"){let o={};for(let[i,a]of e.get(t).fields)o[i]=iR(e,i,a,n);return new t(o)}if(r.kind===\"enum\"){let o=n.readU8();if(o>=r.values.length)throw new Gl(`Enum index: ${o} is out of range`);let[i,a]=r.values[o],c=iR(e,i,a,n);return new t({[i]:c})}throw new Gl(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}function yBt(e,t,n,r=ep){let o=new r(n),i=o1e(e,t,o);if(o.offset<n.length)throw new Gl(`Unexpected ${n.length-o.offset} bytes after deserialized data`);return i}Vi.deserialize=yBt;function bBt(e,t,n,r=ep){let o=new r(n);return o1e(e,t,o)}Vi.deserializeUnchecked=bBt});var c1e=me(qe=>{\"use strict\";f();Object.defineProperty(qe,\"__esModule\",{value:!0});qe.s16=qe.s8=qe.nu64be=qe.u48be=qe.u40be=qe.u32be=qe.u24be=qe.u16be=qe.nu64=qe.u48=qe.u40=qe.u32=qe.u24=qe.u16=qe.u8=qe.offset=qe.greedy=qe.Constant=qe.UTF8=qe.CString=qe.Blob=qe.Boolean=qe.BitField=qe.BitStructure=qe.VariantLayout=qe.Union=qe.UnionLayoutDiscriminator=qe.UnionDiscriminator=qe.Structure=qe.Sequence=qe.DoubleBE=qe.Double=qe.FloatBE=qe.Float=qe.NearInt64BE=qe.NearInt64=qe.NearUInt64BE=qe.NearUInt64=qe.IntBE=qe.Int=qe.UIntBE=qe.UInt=qe.OffsetLayout=qe.GreedyCount=qe.ExternalLayout=qe.bindConstructorLayout=qe.nameWithProperty=qe.Layout=qe.uint8ArrayToBuffer=qe.checkUint8Array=void 0;qe.constant=qe.utf8=qe.cstr=qe.blob=qe.unionLayoutDiscriminator=qe.union=qe.seq=qe.bits=qe.struct=qe.f64be=qe.f64=qe.f32be=qe.f32=qe.ns64be=qe.s48be=qe.s40be=qe.s32be=qe.s24be=qe.s16be=qe.ns64=qe.s48=qe.s40=qe.s32=qe.s24=void 0;var a1e=v2();function s7(e){if(!(e instanceof Uint8Array))throw new TypeError(\"b must be a Uint8Array\")}qe.checkUint8Array=s7;function Qo(e){return s7(e),a1e.Buffer.from(e.buffer,e.byteOffset,e.length)}qe.uint8ArrayToBuffer=Qo;var li=class{constructor(t,n){if(!Number.isInteger(t))throw new TypeError(\"span must be an integer\");this.span=t,this.property=n}makeDestinationObject(){return{}}getSpan(t,n){if(0>this.span)throw new RangeError(\"indeterminate span\");return this.span}replicate(t){let n=Object.create(this.constructor.prototype);return Object.assign(n,this),n.property=t,n}fromArray(t){}};qe.Layout=li;function s1e(e,t){return t.property?e+\"[\"+t.property+\"]\":e}qe.nameWithProperty=s1e;function vBt(e,t){if(typeof e!=\"function\")throw new TypeError(\"Class must be constructor\");if(Object.prototype.hasOwnProperty.call(e,\"layout_\"))throw new Error(\"Class is already bound to a layout\");if(!(t&&t instanceof li))throw new TypeError(\"layout must be a Layout\");if(Object.prototype.hasOwnProperty.call(t,\"boundConstructor_\"))throw new Error(\"layout is already bound to a constructor\");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=(()=>new e),Object.defineProperty(e.prototype,\"encode\",{value(n,r){return t.encode(this,n,r)},writable:!0}),Object.defineProperty(e,\"decode\",{value(n,r){return t.decode(n,r)},writable:!0})}qe.bindConstructorLayout=vBt;var Vd=class extends li{isCount(){throw new Error(\"ExternalLayout is abstract\")}};qe.ExternalLayout=Vd;var W$=class extends Vd{constructor(t=1,n){if(!Number.isInteger(t)||0>=t)throw new TypeError(\"elementSpan must be a (positive) integer\");super(-1,n),this.elementSpan=t}isCount(){return!0}decode(t,n=0){s7(t);let r=t.length-n;return Math.floor(r/this.elementSpan)}encode(t,n,r){return 0}};qe.GreedyCount=W$;var sF=class extends Vd{constructor(t,n=0,r){if(!(t instanceof li))throw new TypeError(\"layout must be a Layout\");if(!Number.isInteger(n))throw new TypeError(\"offset must be integer or undefined\");super(t.span,r||t.property),this.layout=t,this.offset=n}isCount(){return this.layout instanceof hh||this.layout instanceof Rm}decode(t,n=0){return this.layout.decode(t,n+this.offset)}encode(t,n,r=0){return this.layout.encode(t,n,r+this.offset)}};qe.OffsetLayout=sF;var hh=class extends li{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return Qo(t).readUIntLE(n,this.span)}encode(t,n,r=0){return Qo(n).writeUIntLE(t,r,this.span),this.span}};qe.UInt=hh;var Rm=class extends li{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return Qo(t).readUIntBE(n,this.span)}encode(t,n,r=0){return Qo(n).writeUIntBE(t,r,this.span),this.span}};qe.UIntBE=Rm;var Qx=class extends li{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return Qo(t).readIntLE(n,this.span)}encode(t,n,r=0){return Qo(n).writeIntLE(t,r,this.span),this.span}};qe.Int=Qx;var GS=class extends li{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return Qo(t).readIntBE(n,this.span)}encode(t,n,r=0){return Qo(n).writeIntBE(t,r,this.span),this.span}};qe.IntBE=GS;var i1e=Math.pow(2,32);function aee(e){let t=Math.floor(e/i1e),n=e-t*i1e;return{hi32:t,lo32:n}}function see(e,t){return e*i1e+t}var V$=class extends li{constructor(t){super(8,t)}decode(t,n=0){let r=Qo(t),o=r.readUInt32LE(n),i=r.readUInt32LE(n+4);return see(i,o)}encode(t,n,r=0){let o=aee(t),i=Qo(n);return i.writeUInt32LE(o.lo32,r),i.writeUInt32LE(o.hi32,r+4),8}};qe.NearUInt64=V$;var G$=class extends li{constructor(t){super(8,t)}decode(t,n=0){let r=Qo(t),o=r.readUInt32BE(n),i=r.readUInt32BE(n+4);return see(o,i)}encode(t,n,r=0){let o=aee(t),i=Qo(n);return i.writeUInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}};qe.NearUInt64BE=G$;var q$=class extends li{constructor(t){super(8,t)}decode(t,n=0){let r=Qo(t),o=r.readUInt32LE(n),i=r.readInt32LE(n+4);return see(i,o)}encode(t,n,r=0){let o=aee(t),i=Qo(n);return i.writeUInt32LE(o.lo32,r),i.writeInt32LE(o.hi32,r+4),8}};qe.NearInt64=q$;var K$=class extends li{constructor(t){super(8,t)}decode(t,n=0){let r=Qo(t),o=r.readInt32BE(n),i=r.readUInt32BE(n+4);return see(o,i)}encode(t,n,r=0){let o=aee(t),i=Qo(n);return i.writeInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}};qe.NearInt64BE=K$;var Y$=class extends li{constructor(t){super(4,t)}decode(t,n=0){return Qo(t).readFloatLE(n)}encode(t,n,r=0){return Qo(n).writeFloatLE(t,r),4}};qe.Float=Y$;var Z$=class extends li{constructor(t){super(4,t)}decode(t,n=0){return Qo(t).readFloatBE(n)}encode(t,n,r=0){return Qo(n).writeFloatBE(t,r),4}};qe.FloatBE=Z$;var Q$=class extends li{constructor(t){super(8,t)}decode(t,n=0){return Qo(t).readDoubleLE(n)}encode(t,n,r=0){return Qo(n).writeDoubleLE(t,r),8}};qe.Double=Q$;var J$=class extends li{constructor(t){super(8,t)}decode(t,n=0){return Qo(t).readDoubleBE(n)}encode(t,n,r=0){return Qo(n).writeDoubleBE(t,r),8}};qe.DoubleBE=J$;var X$=class extends li{constructor(t,n,r){if(!(t instanceof li))throw new TypeError(\"elementLayout must be a Layout\");if(!(n instanceof Vd&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError(\"count must be non-negative integer or an unsigned integer ExternalLayout\");let o=-1;!(n instanceof Vd)&&0<t.span&&(o=n*t.span),super(o,r),this.elementLayout=t,this.count=n}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0,o=this.count;if(o instanceof Vd&&(o=o.decode(t,n)),0<this.elementLayout.span)r=o*this.elementLayout.span;else{let i=0;for(;i<o;)r+=this.elementLayout.getSpan(t,n+r),++i}return r}decode(t,n=0){let r=[],o=0,i=this.count;for(i instanceof Vd&&(i=i.decode(t,n));o<i;)r.push(this.elementLayout.decode(t,n)),n+=this.elementLayout.getSpan(t,n),o+=1;return r}encode(t,n,r=0){let o=this.elementLayout,i=t.reduce((a,c)=>a+o.encode(c,n,r+a),0);return this.count instanceof Vd&&this.count.encode(t.length,n,r),i}};qe.Sequence=X$;var $$=class extends li{constructor(t,n,r){if(!(Array.isArray(t)&&t.reduce((i,a)=>i&&a instanceof li,!0)))throw new TypeError(\"fields must be array of Layout instances\");typeof n==\"boolean\"&&r===void 0&&(r=n,n=void 0);for(let i of t)if(0>i.span&&i.property===void 0)throw new Error(\"fields cannot contain unnamed variable-length layout\");let o=-1;try{o=t.reduce((i,a)=>i+a.getSpan(),0)}catch{}super(o,n),this.fields=t,this.decodePrefixes=!!r}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0;try{r=this.fields.reduce((o,i)=>{let a=i.getSpan(t,n);return n+=a,o+a},0)}catch{throw new RangeError(\"indeterminate span\")}return r}decode(t,n=0){s7(t);let r=this.makeDestinationObject();for(let o of this.fields)if(o.property!==void 0&&(r[o.property]=o.decode(t,n)),n+=o.getSpan(t,n),this.decodePrefixes&&t.length===n)break;return r}encode(t,n,r=0){let o=r,i=0,a=0;for(let c of this.fields){let u=c.span;if(a=0<u?u:0,c.property!==void 0){let d=t[c.property];d!==void 0&&(a=c.encode(d,n,r),0>u&&(u=c.getSpan(n,r)))}i=r,r+=u}return i+a-o}fromArray(t){let n=this.makeDestinationObject();for(let r of this.fields)r.property!==void 0&&0<t.length&&(n[r.property]=t.shift());return n}layoutFor(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");for(let n of this.fields)if(n.property===t)return n}offsetOf(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");let n=0;for(let r of this.fields){if(r.property===t)return n;0>r.span?n=-1:0<=n&&(n+=r.span)}}};qe.Structure=$$;var cF=class{constructor(t){this.property=t}decode(t,n){throw new Error(\"UnionDiscriminator is abstract\")}encode(t,n,r){throw new Error(\"UnionDiscriminator is abstract\")}};qe.UnionDiscriminator=cF;var a7=class extends cF{constructor(t,n){if(!(t instanceof Vd&&t.isCount()))throw new TypeError(\"layout must be an unsigned integer ExternalLayout\");super(n||t.property||\"variant\"),this.layout=t}decode(t,n){return this.layout.decode(t,n)}encode(t,n,r){return this.layout.encode(t,n,r)}};qe.UnionLayoutDiscriminator=a7;var uF=class extends li{constructor(t,n,r){let o;if(t instanceof hh||t instanceof Rm)o=new a7(new sF(t));else if(t instanceof Vd&&t.isCount())o=new a7(t);else if(t instanceof cF)o=t;else throw new TypeError(\"discr must be a UnionDiscriminator or an unsigned integer layout\");if(n===void 0&&(n=null),!(n===null||n instanceof li))throw new TypeError(\"defaultLayout must be null or a Layout\");if(n!==null){if(0>n.span)throw new Error(\"defaultLayout must have constant span\");n.property===void 0&&(n=n.replicate(\"content\"))}let i=-1;n&&(i=n.span,0<=i&&(t instanceof hh||t instanceof Rm)&&(i+=o.layout.span)),super(i,r),this.discriminator=o,this.usesPrefixDiscriminator=t instanceof hh||t instanceof Rm,this.defaultLayout=n,this.registry={};let a=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(c){return a(c)},this.configGetSourceVariant=function(c){a=c.bind(this)}}getSpan(t,n=0){if(0<=this.span)return this.span;let r=this.getVariant(t,n);if(!r)throw new Error(\"unable to determine span for unrecognized variant\");return r.getSpan(t,n)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;let n=this.registry[t[this.discriminator.property]];if(n&&(!n.layout||n.property&&Object.prototype.hasOwnProperty.call(t,n.property)))return n}else for(let n in this.registry){let r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error(\"unable to infer src variant\")}decode(t,n=0){let r,o=this.discriminator,i=o.decode(t,n),a=this.registry[i];if(a===void 0){let c=this.defaultLayout,u=0;this.usesPrefixDiscriminator&&(u=o.layout.span),r=this.makeDestinationObject(),r[o.property]=i,r[c.property]=c.decode(t,n+u)}else r=a.decode(t,n);return r}encode(t,n,r=0){let o=this.getSourceVariant(t);if(o===void 0){let i=this.discriminator,a=this.defaultLayout,c=0;return this.usesPrefixDiscriminator&&(c=i.layout.span),i.encode(t[i.property],n,r),c+a.encode(t[a.property],n,r+c)}return o.encode(t,n,r)}addVariant(t,n,r){let o=new eee(this,t,n,r);return this.registry[t]=o,o}getVariant(t,n=0){let r;return t instanceof Uint8Array?r=this.discriminator.decode(t,n):r=t,this.registry[r]}};qe.Union=uF;var eee=class extends li{constructor(t,n,r,o){if(!(t instanceof uF))throw new TypeError(\"union must be a Union\");if(!Number.isInteger(n)||0>n)throw new TypeError(\"variant must be a (non-negative) integer\");if(typeof r==\"string\"&&o===void 0&&(o=r,r=null),r){if(!(r instanceof li))throw new TypeError(\"layout must be a Layout\");if(t.defaultLayout!==null&&0<=r.span&&r.span>t.defaultLayout.span)throw new Error(\"variant span exceeds span of containing union\");if(typeof o!=\"string\")throw new TypeError(\"variant must have a String property\")}let i=t.span;0>t.span&&(i=r?r.span:0,0<=i&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span)),super(i,o),this.union=t,this.variant=n,this.layout=r||null}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);let o=0;return this.layout&&(o=this.layout.getSpan(t,n+r)),r+o}decode(t,n=0){let r=this.makeDestinationObject();if(this!==this.union.getVariant(t,n))throw new Error(\"variant mismatch\");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,n+o):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(t,n,r=0){let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError(\"variant lacks property \"+this.property);this.union.discriminator.encode(this.variant,n,r);let i=o;if(this.layout&&(this.layout.encode(t[this.property],n,r+o),i+=this.layout.getSpan(n,r+o),0<=this.union.span&&i>this.union.span))throw new Error(\"encoded variant overruns containing union\");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}};qe.VariantLayout=eee;function i7(e){return 0>e&&(e+=4294967296),e}var lF=class extends li{constructor(t,n,r){if(!(t instanceof hh||t instanceof Rm))throw new TypeError(\"word must be a UInt or UIntBE layout\");if(typeof n==\"string\"&&r===void 0&&(r=n,n=!1),4<t.span)throw new RangeError(\"word cannot exceed 32 bits\");super(t.span,r),this.word=t,this.msb=!!n,this.fields=[];let o=0;this._packedSetValue=function(i){return o=i7(i),this},this._packedGetValue=function(){return o}}decode(t,n=0){let r=this.makeDestinationObject(),o=this.word.decode(t,n);this._packedSetValue(o);for(let i of this.fields)i.property!==void 0&&(r[i.property]=i.decode(t));return r}encode(t,n,r=0){let o=this.word.decode(n,r);this._packedSetValue(o);for(let i of this.fields)if(i.property!==void 0){let a=t[i.property];a!==void 0&&i.encode(a)}return this.word.encode(this._packedGetValue(),n,r)}addField(t,n){let r=new dF(this,t,n);return this.fields.push(r),r}addBoolean(t){let n=new tee(this,t);return this.fields.push(n),n}fieldFor(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");for(let n of this.fields)if(n.property===t)return n}};qe.BitStructure=lF;var dF=class{constructor(t,n,r){if(!(t instanceof lF))throw new TypeError(\"container must be a BitStructure\");if(!Number.isInteger(n)||0>=n)throw new TypeError(\"bits must be positive integer\");let o=8*t.span,i=t.fields.reduce((a,c)=>a+c.bits,0);if(n+i>o)throw new Error(\"bits too long for span remainder (\"+(o-i)+\" of \"+o+\" remain)\");this.container=t,this.bits=n,this.valueMask=(1<<n)-1,n===32&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=o-i-n),this.wordMask=i7(this.valueMask<<this.start),this.property=r}decode(t,n){let r=this.container._packedGetValue();return i7(r&this.wordMask)>>>this.start}encode(t){if(typeof t!=\"number\"||!Number.isInteger(t)||t!==i7(t&this.valueMask))throw new TypeError(s1e(\"BitField.encode\",this)+\" value must be integer not exceeding \"+this.valueMask);let n=this.container._packedGetValue(),r=i7(t<<this.start);this.container._packedSetValue(i7(n&~this.wordMask)|r)}};qe.BitField=dF;var tee=class extends dF{constructor(t,n){super(t,1,n)}decode(t,n){return!!super.decode(t,n)}encode(t){typeof t==\"boolean\"&&(t=+t),super.encode(t)}};qe.Boolean=tee;var nee=class extends li{constructor(t,n){if(!(t instanceof Vd&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError(\"length must be positive integer or an unsigned integer ExternalLayout\");let r=-1;t instanceof Vd||(r=t),super(r,n),this.length=t}getSpan(t,n){let r=this.span;return 0>r&&(r=this.length.decode(t,n)),r}decode(t,n=0){let r=this.span;return 0>r&&(r=this.length.decode(t,n)),Qo(t).slice(n,n+r)}encode(t,n,r){let o=this.length;if(this.length instanceof Vd&&(o=t.length),!(t instanceof Uint8Array&&o===t.length))throw new TypeError(s1e(\"Blob.encode\",this)+\" requires (length \"+o+\") Uint8Array as src\");if(r+o>n.length)throw new RangeError(\"encoding overruns Uint8Array\");let i=Qo(t);return Qo(n).write(i.toString(\"hex\"),r,o,\"hex\"),this.length instanceof Vd&&this.length.encode(o,n,r),o}};qe.Blob=nee;var ree=class extends li{constructor(t){super(-1,t)}getSpan(t,n=0){s7(t);let r=n;for(;r<t.length&&t[r]!==0;)r+=1;return 1+r-n}decode(t,n=0){let r=this.getSpan(t,n);return Qo(t).slice(n,n+r-1).toString(\"utf-8\")}encode(t,n,r=0){typeof t!=\"string\"&&(t=String(t));let o=a1e.Buffer.from(t,\"utf8\"),i=o.length;if(r+i>n.length)throw new RangeError(\"encoding overruns Buffer\");let a=Qo(n);return o.copy(a,r),a[r+i]=0,i+1}};qe.CString=ree;var oee=class extends li{constructor(t,n){if(typeof t==\"string\"&&n===void 0&&(n=t,t=void 0),t===void 0)t=-1;else if(!Number.isInteger(t))throw new TypeError(\"maxSpan must be an integer\");super(-1,n),this.maxSpan=t}getSpan(t,n=0){return s7(t),t.length-n}decode(t,n=0){let r=this.getSpan(t,n);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError(\"text length exceeds maxSpan\");return Qo(t).slice(n,n+r).toString(\"utf-8\")}encode(t,n,r=0){typeof t!=\"string\"&&(t=String(t));let o=a1e.Buffer.from(t,\"utf8\"),i=o.length;if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError(\"text length exceeds maxSpan\");if(r+i>n.length)throw new RangeError(\"encoding overruns Buffer\");return o.copy(Qo(n),r),i}};qe.UTF8=oee;var iee=class extends li{constructor(t,n){super(0,n),this.value=t}decode(t,n){return this.value}encode(t,n,r){return 0}};qe.Constant=iee;qe.greedy=((e,t)=>new W$(e,t));qe.offset=((e,t,n)=>new sF(e,t,n));qe.u8=(e=>new hh(1,e));qe.u16=(e=>new hh(2,e));qe.u24=(e=>new hh(3,e));qe.u32=(e=>new hh(4,e));qe.u40=(e=>new hh(5,e));qe.u48=(e=>new hh(6,e));qe.nu64=(e=>new V$(e));qe.u16be=(e=>new Rm(2,e));qe.u24be=(e=>new Rm(3,e));qe.u32be=(e=>new Rm(4,e));qe.u40be=(e=>new Rm(5,e));qe.u48be=(e=>new Rm(6,e));qe.nu64be=(e=>new G$(e));qe.s8=(e=>new Qx(1,e));qe.s16=(e=>new Qx(2,e));qe.s24=(e=>new Qx(3,e));qe.s32=(e=>new Qx(4,e));qe.s40=(e=>new Qx(5,e));qe.s48=(e=>new Qx(6,e));qe.ns64=(e=>new q$(e));qe.s16be=(e=>new GS(2,e));qe.s24be=(e=>new GS(3,e));qe.s32be=(e=>new GS(4,e));qe.s40be=(e=>new GS(5,e));qe.s48be=(e=>new GS(6,e));qe.ns64be=(e=>new K$(e));qe.f32=(e=>new Y$(e));qe.f32be=(e=>new Z$(e));qe.f64=(e=>new Q$(e));qe.f64be=(e=>new J$(e));qe.struct=((e,t,n)=>new $$(e,t,n));qe.bits=((e,t,n)=>new lF(e,t,n));qe.seq=((e,t,n)=>new X$(e,t,n));qe.union=((e,t,n)=>new uF(e,t,n));qe.unionLayoutDiscriminator=((e,t)=>new a7(e,t));qe.blob=((e,t)=>new nee(e,t));qe.cstr=(e=>new ree(e));qe.utf8=((e,t)=>new oee(e,t));qe.constant=((e,t)=>new iee(e,t))});var wtt=me((mgr,vtt)=>{\"use strict\";f();var Pzt=(zJ(),qo(e0e)).v4,Mzt=function(e,t,n,r){if(typeof e!=\"string\")throw new TypeError(e+\" must be a string\");r=r||{};let o=typeof r.version==\"number\"?r.version:2;if(o!==1&&o!==2)throw new TypeError(o+\" must be 1 or 2\");let i={method:e};if(o===2&&(i.jsonrpc=\"2.0\"),t){if(typeof t!=\"object\"&&!Array.isArray(t))throw new TypeError(t+\" must be an object, array or omitted\");i.params=t}if(typeof n>\"u\"){let a=typeof r.generator==\"function\"?r.generator:function(){return Pzt()};i.id=a(i,r)}else o===2&&n===null?r.notificationIdNull&&(i.id=null):i.id=n;return i};vtt.exports=Mzt});var Ett=me((ygr,xtt)=>{\"use strict\";f();var Dzt=(zJ(),qo(e0e)).v4,Lzt=wtt(),hF=function(e,t){if(!(this instanceof hF))return new hF(e,t);t||(t={}),this.options={reviver:typeof t.reviver<\"u\"?t.reviver:null,replacer:typeof t.replacer<\"u\"?t.replacer:null,generator:typeof t.generator<\"u\"?t.generator:function(){return Dzt()},version:typeof t.version<\"u\"?t.version:2,notificationIdNull:typeof t.notificationIdNull==\"boolean\"?t.notificationIdNull:!1},this.callServer=e};xtt.exports=hF;hF.prototype.request=function(e,t,n,r){let o=this,i=null,a=Array.isArray(e)&&typeof t==\"function\";if(this.options.version===1&&a)throw new TypeError(\"JSON-RPC 1.0 does not support batching\");if(a||!a&&e&&typeof e==\"object\"&&typeof t==\"function\")r=t,i=e;else{typeof n==\"function\"&&(r=n,n=void 0);let d=typeof r==\"function\";try{i=Lzt(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(p){if(d)return r(p);throw p}if(!d)return i}let u;try{u=JSON.stringify(i,this.options.replacer)}catch(d){return r(d)}return this.callServer(u,function(d,p){o._parseResponse(d,p,r)}),i};hF.prototype._parseResponse=function(e,t,n){if(e){n(e);return}if(!t)return n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(o){return n(o)}if(n.length===3)if(Array.isArray(r)){let o=function(a){return typeof a.error<\"u\"},i=function(a){return!o(a)};return n(null,r.filter(o),r.filter(i))}else return n(null,r.error,r.result);n(null,r)}});var Xat=me((i5,Jat)=>{f();var Vte=typeof globalThis<\"u\"&&globalThis||typeof self<\"u\"&&self||typeof globalThis<\"u\"&&globalThis,Gte=(function(){function e(){this.fetch=!1,this.DOMException=Vte.DOMException}return e.prototype=Vte,new e})();(function(e){var t=(function(n){var r=typeof e<\"u\"&&e||typeof self<\"u\"&&self||typeof e<\"u\"&&e||{},o={searchParams:\"URLSearchParams\"in r,iterable:\"Symbol\"in r&&\"iterator\"in Symbol,blob:\"FileReader\"in r&&\"Blob\"in r&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:\"FormData\"in r,arrayBuffer:\"ArrayBuffer\"in r};function i(q){return q&&DataView.prototype.isPrototypeOf(q)}if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],c=ArrayBuffer.isView||function(q){return q&&a.indexOf(Object.prototype.toString.call(q))>-1};function u(q){if(typeof q!=\"string\"&&(q=String(q)),/[^a-z0-9\\\\-#$%&\\'*+.^_`|~!]/i.test(q)||q===\"\")throw new TypeError(\\'Invalid character in header field name: \"\\'+q+\\'\"\\');return q.toLowerCase()}function d(q){return typeof q!=\"string\"&&(q=String(q)),q}function p(q){var K={next:function(){var U=q.shift();return{done:U===void 0,value:U}}};return o.iterable&&(K[Symbol.iterator]=function(){return K}),K}function h(q){this.map={},q instanceof h?q.forEach(function(K,U){this.append(U,K)},this):Array.isArray(q)?q.forEach(function(K){if(K.length!=2)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+K.length);this.append(K[0],K[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(K){this.append(K,q[K])},this)}h.prototype.append=function(q,K){q=u(q),K=d(K);var U=this.map[q];this.map[q]=U?U+\", \"+K:K},h.prototype.delete=function(q){delete this.map[u(q)]},h.prototype.get=function(q){return q=u(q),this.has(q)?this.map[q]:null},h.prototype.has=function(q){return this.map.hasOwnProperty(u(q))},h.prototype.set=function(q,K){this.map[u(q)]=d(K)},h.prototype.forEach=function(q,K){for(var U in this.map)this.map.hasOwnProperty(U)&&q.call(K,this.map[U],U,this)},h.prototype.keys=function(){var q=[];return this.forEach(function(K,U){q.push(U)}),p(q)},h.prototype.values=function(){var q=[];return this.forEach(function(K){q.push(K)}),p(q)},h.prototype.entries=function(){var q=[];return this.forEach(function(K,U){q.push([U,K])}),p(q)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(q){if(!q._noBody){if(q.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));q.bodyUsed=!0}}function y(q){return new Promise(function(K,U){q.onload=function(){K(q.result)},q.onerror=function(){U(q.error)}})}function v(q){var K=new FileReader,U=y(K);return K.readAsArrayBuffer(q),U}function x(q){var K=new FileReader,U=y(K),T=/charset=([A-Za-z0-9_-]+)/.exec(q.type),k=T?T[1]:\"utf-8\";return K.readAsText(q,k),U}function R(q){for(var K=new Uint8Array(q),U=new Array(K.length),T=0;T<K.length;T++)U[T]=String.fromCharCode(K[T]);return U.join(\"\")}function S(q){if(q.slice)return q.slice(0);var K=new Uint8Array(q.byteLength);return K.set(new Uint8Array(q)),K.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(q){this.bodyUsed=this.bodyUsed,this._bodyInit=q,q?typeof q==\"string\"?this._bodyText=q:o.blob&&Blob.prototype.isPrototypeOf(q)?this._bodyBlob=q:o.formData&&FormData.prototype.isPrototypeOf(q)?this._bodyFormData=q:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)?this._bodyText=q.toString():o.arrayBuffer&&o.blob&&i(q)?(this._bodyArrayBuffer=S(q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(q)||c(q))?this._bodyArrayBuffer=S(q):this._bodyText=q=Object.prototype.toString.call(q):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(typeof q==\"string\"?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var q=g(this);if(q)return q;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var q=g(this);return q||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(v);throw new Error(\"could not read as ArrayBuffer\")}},this.text=function(){var q=g(this);if(q)return q;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(Q)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function z(q){var K=q.toUpperCase();return P.indexOf(K)>-1?K:q}function V(q,K){if(!(this instanceof V))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');K=K||{};var U=K.body;if(q instanceof V){if(q.bodyUsed)throw new TypeError(\"Already read\");this.url=q.url,this.credentials=q.credentials,K.headers||(this.headers=new h(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!U&&q._bodyInit!=null&&(U=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=K.credentials||this.credentials||\"same-origin\",(K.headers||!this.headers)&&(this.headers=new h(K.headers)),this.method=z(K.method||this.method||\"GET\"),this.mode=K.mode||this.mode||null,this.signal=K.signal||this.signal||(function(){if(\"AbortController\"in r){var F=new AbortController;return F.signal}})(),this.referrer=null,(this.method===\"GET\"||this.method===\"HEAD\")&&U)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(U),(this.method===\"GET\"||this.method===\"HEAD\")&&(K.cache===\"no-store\"||K.cache===\"no-cache\")){var T=/([?&])_=[^&]*/;if(T.test(this.url))this.url=this.url.replace(T,\"$1_=\"+new Date().getTime());else{var k=/\\\\?/;this.url+=(k.test(this.url)?\"&\":\"?\")+\"_=\"+new Date().getTime()}}}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function Q(q){var K=new FormData;return q.trim().split(\"&\").forEach(function(U){if(U){var T=U.split(\"=\"),k=T.shift().replace(/\\\\+/g,\" \"),F=T.join(\"=\").replace(/\\\\+/g,\" \");K.append(decodeURIComponent(k),decodeURIComponent(F))}}),K}function $(q){var K=new h,U=q.replace(/\\\\r?\\\\n[\\\\t ]+/g,\" \");return U.split(\"\\\\r\").map(function(T){return T.indexOf(`\\n`)===0?T.substr(1,T.length):T}).forEach(function(T){var k=T.split(\":\"),F=k.shift().trim();if(F){var N=k.join(\":\").trim();try{K.append(F,N)}catch(B){console.warn(\"Response \"+B.message)}}}),K}M.call(V.prototype);function oe(q,K){if(!(this instanceof oe))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');if(K||(K={}),this.type=\"default\",this.status=K.status===void 0?200:K.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct \\'Response\\': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=K.statusText===void 0?\"\":\"\"+K.statusText,this.headers=new h(K.headers),this.url=K.url||\"\",this._initBody(q)}M.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},oe.error=function(){var q=new oe(null,{status:200,statusText:\"\"});return q.ok=!1,q.status=0,q.type=\"error\",q};var J=[301,302,303,307,308];oe.redirect=function(q,K){if(J.indexOf(K)===-1)throw new RangeError(\"Invalid status code\");return new oe(null,{status:K,headers:{location:q}})},n.DOMException=r.DOMException;try{new n.DOMException}catch{n.DOMException=function(K,U){this.message=K,this.name=U;var T=Error(K);this.stack=T.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function re(q,K){return new Promise(function(U,T){var k=new V(q,K);if(k.signal&&k.signal.aborted)return T(new n.DOMException(\"Aborted\",\"AbortError\"));var F=new XMLHttpRequest;function N(){F.abort()}F.onload=function(){var W={statusText:F.statusText,headers:$(F.getAllResponseHeaders()||\"\")};k.url.indexOf(\"file://\")===0&&(F.status<200||F.status>599)?W.status=200:W.status=F.status,W.url=\"responseURL\"in F?F.responseURL:W.headers.get(\"X-Request-URL\");var G=\"response\"in F?F.response:F.responseText;setTimeout(function(){U(new oe(G,W))},0)},F.onerror=function(){setTimeout(function(){T(new TypeError(\"Network request failed\"))},0)},F.ontimeout=function(){setTimeout(function(){T(new TypeError(\"Network request timed out\"))},0)},F.onabort=function(){setTimeout(function(){T(new n.DOMException(\"Aborted\",\"AbortError\"))},0)};function B(W){try{return W===\"\"&&r.location.href?r.location.href:W}catch{return W}}if(F.open(k.method,B(k.url),!0),k.credentials===\"include\"?F.withCredentials=!0:k.credentials===\"omit\"&&(F.withCredentials=!1),\"responseType\"in F&&(o.blob?F.responseType=\"blob\":o.arrayBuffer&&(F.responseType=\"arraybuffer\")),K&&typeof K.headers==\"object\"&&!(K.headers instanceof h||r.Headers&&K.headers instanceof r.Headers)){var H=[];Object.getOwnPropertyNames(K.headers).forEach(function(W){H.push(u(W)),F.setRequestHeader(W,d(K.headers[W]))}),k.headers.forEach(function(W,G){H.indexOf(G)===-1&&F.setRequestHeader(G,W)})}else k.headers.forEach(function(W,G){F.setRequestHeader(G,W)});k.signal&&(k.signal.addEventListener(\"abort\",N),F.onreadystatechange=function(){F.readyState===4&&k.signal.removeEventListener(\"abort\",N)}),F.send(typeof k._bodyInit>\"u\"?null:k._bodyInit)})}return re.polyfill=!0,r.fetch||(r.fetch=re,r.Headers=h,r.Request=V,r.Response=oe),n.Headers=h,n.Request=V,n.Response=oe,n.fetch=re,Object.defineProperty(n,\"__esModule\",{value:!0}),n})({})})(Gte);Gte.fetch.ponyfill=!0;delete Gte.fetch.polyfill;var Z7=Vte.fetch?Vte:Gte;i5=Z7.fetch;i5.default=Z7.fetch;i5.fetch=Z7.fetch;i5.Headers=Z7.Headers;i5.Request=Z7.Request;i5.Response=Z7.Response;Jat.exports=i5});var Eut=me(Mne=>{\"use strict\";f();(function(){function e(A,C,D,ee){return\"\"+C+(D===\"s\"?\"\\\\\\\\73 \":\"\\\\\\\\53 \")+ee}function t(A,C,D,ee){return\"\"+C+(D===\"s\"?\"\\\\\\\\u0073\":\"\\\\\\\\u0053\")+ee}function n(A){return Object.prototype.toString.call(A).replace(/^\\\\[object (.*)\\\\]$/,function(C,D){return D})}function r(A){var C=JSON.stringify(A);return\\'\"\\'+A+\\'\"\\'===C?A:C}function o(A){switch(typeof A){case\"string\":return JSON.stringify(10>=A.length?A:A.slice(0,10)+\"...\");case\"object\":return ul(A)?\"[...]\":A!==null&&A.$$typeof===Ow?\"client\":(A=n(A),A===\"Object\"?\"{...}\":A);case\"function\":return A.$$typeof===Ow?\"client\":(A=A.displayName||A.name)?\"function \"+A:\"function\";default:return String(A)}}function i(A){if(typeof A==\"string\")return A;switch(A){case Qm:return\"Suspense\";case uf:return\"SuspenseList\"}if(typeof A==\"object\")switch(A.$$typeof){case kh:return i(A.render);case lf:return i(A.type);case qs:var C=A._payload;A=A._init;try{return i(A(C))}catch{}}return\"\"}function a(A,C){var D=n(A);if(D!==\"Object\"&&D!==\"Array\")return D;var ee=-1,ce=0;if(ul(A))if(RE.has(A)){var de=RE.get(A);D=\"<\"+i(de)+\">\";for(var Oe=0;Oe<A.length;Oe++){var Me=A[Oe];Me=typeof Me==\"string\"?Me:typeof Me==\"object\"&&Me!==null?\"{\"+a(Me)+\"}\":\"{\"+o(Me)+\"}\",\"\"+Oe===C?(ee=D.length,ce=Me.length,D+=Me):D=15>Me.length&&40>D.length+Me.length?D+Me:D+\"{...}\"}D+=\"</\"+i(de)+\">\"}else{for(D=\"[\",de=0;de<A.length;de++)0<de&&(D+=\", \"),Oe=A[de],Oe=typeof Oe==\"object\"&&Oe!==null?a(Oe):o(Oe),\"\"+de===C?(ee=D.length,ce=Oe.length,D+=Oe):D=10>Oe.length&&40>D.length+Oe.length?D+Oe:D+\"...\";D+=\"]\"}else if(A.$$typeof===Kg)D=\"<\"+i(A.type)+\"/>\";else{if(A.$$typeof===Ow)return\"client\";if(ll.has(A)){for(D=ll.get(A),D=\"<\"+(i(D)||\"...\"),de=Object.keys(A),Oe=0;Oe<de.length;Oe++){D+=\" \",Me=de[Oe],D+=r(Me)+\"=\";var it=A[Me],Le=Me===C&&typeof it==\"object\"&&it!==null?a(it):o(it);typeof it!=\"string\"&&(Le=\"{\"+Le+\"}\"),Me===C?(ee=D.length,ce=Le.length,D+=Le):D=10>Le.length&&40>D.length+Le.length?D+Le:D+\"...\"}D+=\">\"}else{for(D=\"{\",de=Object.keys(A),Oe=0;Oe<de.length;Oe++)0<Oe&&(D+=\", \"),Me=de[Oe],D+=r(Me)+\": \",it=A[Me],it=typeof it==\"object\"&&it!==null?a(it):o(it),Me===C?(ee=D.length,ce=it.length,D+=it):D=10>it.length&&40>D.length+it.length?D+it:D+\"...\";D+=\"}\"}}return C===void 0?D:-1<ee&&0<ce?(A=\" \".repeat(ee)+\"^\".repeat(ce),`\\n  `+D+`\\n  `+A):`\\n  `+D}function c(A,C){var D=A.length&3,ee=A.length-D,ce=C;for(C=0;C<ee;){var de=A.charCodeAt(C)&255|(A.charCodeAt(++C)&255)<<8|(A.charCodeAt(++C)&255)<<16|(A.charCodeAt(++C)&255)<<24;++C,de=3432918353*(de&65535)+((3432918353*(de>>>16)&65535)<<16)&4294967295,de=de<<15|de>>>17,de=461845907*(de&65535)+((461845907*(de>>>16)&65535)<<16)&4294967295,ce^=de,ce=ce<<13|ce>>>19,ce=5*(ce&65535)+((5*(ce>>>16)&65535)<<16)&4294967295,ce=(ce&65535)+27492+(((ce>>>16)+58964&65535)<<16)}switch(de=0,D){case 3:de^=(A.charCodeAt(C+2)&255)<<16;case 2:de^=(A.charCodeAt(C+1)&255)<<8;case 1:de^=A.charCodeAt(C)&255,de=3432918353*(de&65535)+((3432918353*(de>>>16)&65535)<<16)&4294967295,de=de<<15|de>>>17,ce^=461845907*(de&65535)+((461845907*(de>>>16)&65535)<<16)&4294967295}return ce^=A.length,ce^=ce>>>16,ce=2246822507*(ce&65535)+((2246822507*(ce>>>16)&65535)<<16)&4294967295,ce^=ce>>>13,ce=3266489909*(ce&65535)+((3266489909*(ce>>>16)&65535)<<16)&4294967295,(ce^ce>>>16)>>>0}function u(A){return typeof Symbol==\"function\"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||\"Object\"}function d(A){try{return p(A),!1}catch{return!0}}function p(A){return\"\"+A}function h(A,C){if(d(A))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",C,u(A)),p(A)}function g(A,C){if(d(A))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",C,u(A)),p(A)}function y(A){if(d(A))return console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",u(A)),p(A)}function v(A){return Io.call(yc,A)?!0:Io.call(kw,A)?!1:PP.test(A)?yc[A]=!0:(kw[A]=!0,console.error(\"Invalid attribute name: `%s`\",A),!1)}function x(A,C){X1[C.type]||C.onChange||C.onInput||C.readOnly||C.disabled||C.value==null||console.error(A===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),C.onChange||C.readOnly||C.disabled||C.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function R(A,C){if(Io.call(Ph,C)&&Ph[C])return!0;if(Xm.test(C)){if(A=\"aria-\"+C.slice(4).toLowerCase(),A=Nh.hasOwnProperty(A)?A:null,A==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",C),Ph[C]=!0;if(C!==A)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",C,A),Ph[C]=!0}if(B5.test(C)){if(A=C.toLowerCase(),A=Nh.hasOwnProperty(A)?A:null,A==null)return Ph[C]=!0,!1;C!==A&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",C,A),Ph[C]=!0)}return!0}function S(A,C){var D=[],ee;for(ee in C)R(A,ee)||D.push(ee);C=D.map(function(ce){return\"`\"+ce+\"`\"}).join(\", \"),D.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",C,A):1<D.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",C,A)}function M(A,C,D,ee){if(Io.call(As,C)&&As[C])return!0;var ce=C.toLowerCase();if(ce===\"onfocusin\"||ce===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),As[C]=!0;if(typeof D==\"function\"&&(A===\"form\"&&C===\"action\"||A===\"input\"&&C===\"formAction\"||A===\"button\"&&C===\"formAction\"))return!0;if(ee!=null){if(A=ee.possibleRegistrationNames,ee.registrationNameDependencies.hasOwnProperty(C))return!0;if(ee=A.hasOwnProperty(ce)?A[ce]:null,ee!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",C,ee),As[C]=!0;if(zo.test(C))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",C),As[C]=!0}else if(zo.test(C))return Zr.test(C)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",C),As[C]=!0;if(U5.test(C)||$m.test(C))return!0;if(ce===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),As[C]=!0;if(ce===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),As[C]=!0;if(ce===\"is\"&&D!==null&&D!==void 0&&typeof D!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof D),As[C]=!0;if(typeof D==\"number\"&&isNaN(D))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",C),As[C]=!0;if(bc.hasOwnProperty(ce)){if(ce=bc[ce],ce!==C)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",C,ce),As[C]=!0}else if(C!==ce)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",C,ce),As[C]=!0;switch(C){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof D){case\"boolean\":switch(C){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return ce=C.toLowerCase().slice(0,5),ce===\"data-\"||ce===\"aria-\"?!0:(D?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',D,C,C,D,C):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',D,C,C,D,C,C,C),As[C]=!0)}case\"function\":case\"symbol\":return As[C]=!0,!1;case\"string\":if(D===\"false\"||D===\"true\"){switch(C){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",D,C,D===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',C,D),As[C]=!0}}return!0}function P(A,C,D){var ee=[],ce;for(ce in C)M(A,ce,C[ce],D)||ee.push(ce);C=ee.map(function(de){return\"`\"+de+\"`\"}).join(\", \"),ee.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",C,A):1<ee.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",C,A)}function z(A){return A.replace(Nw,function(C,D){return D.toUpperCase()})}function V(A){if(typeof A==\"boolean\"||typeof A==\"number\"||typeof A==\"bigint\")return\"\"+A;y(A),A=\"\"+A;var C=Mh.exec(A);if(C){var D=\"\",ee,ce=0;for(ee=C.index;ee<A.length;ee++){switch(A.charCodeAt(ee)){case 34:C=\"&quot;\";break;case 38:C=\"&amp;\";break;case 39:C=\"&#x27;\";break;case 60:C=\"&lt;\";break;case 62:C=\"&gt;\";break;default:continue}ce!==ee&&(D+=A.slice(ce,ee)),ce=ee+1,D+=C}A=ce!==ee?D+A.slice(ce,ee):D}return A}function Q(A){return OE.test(\"\"+A)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":A}function $(A){return y(A),(\"\"+A).replace(Dw,t)}function oe(A,C,D,ee,ce){return{idPrefix:A===void 0?\"\":A,nextFormID:0,streamingFormat:0,bootstrapScriptContent:D,bootstrapScripts:ee,bootstrapModules:ce,instructions:mp,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function J(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:NE}}function re(A,C,D){return{insertionMode:A,selectedValue:C,tagScope:D}}function q(A,C,D){switch(C){case\"noscript\":return re(Ki,null,A.tagScope|1);case\"select\":return re(Ki,D.value!=null?D.value:D.defaultValue,A.tagScope);case\"svg\":return re(Qs,null,A.tagScope);case\"picture\":return re(Ki,null,A.tagScope|2);case\"math\":return re(df,null,A.tagScope);case\"foreignObject\":return re(Ki,null,A.tagScope);case\"table\":return re(Lw,null,A.tagScope);case\"thead\":case\"tbody\":case\"tfoot\":return re(t0,null,A.tagScope);case\"colgroup\":return re(eb,null,A.tagScope);case\"tr\":return re(ey,null,A.tagScope);case\"head\":if(A.insertionMode<Ki)return re($g,null,A.tagScope);break;case\"html\":if(A.insertionMode===Xg)return re(di,null,A.tagScope)}return A.insertionMode>=Lw||A.insertionMode<Ki?re(Ki,null,A.tagScope):A}function K(A,C){if(typeof C!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");var D=!0,ee;for(ee in C)if(Io.call(C,ee)){var ce=C[ee];if(ce!=null&&typeof ce!=\"boolean\"&&ce!==\"\"){if(ee.indexOf(\"--\")===0){var de=V(ee);g(ce,ee),ce=V((\"\"+ce).trim())}else{de=ee;var Oe=ce;if(-1<de.indexOf(\"-\")){var Me=de;e0.hasOwnProperty(Me)&&e0[Me]||(e0[Me]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",Me,z(Me.replace(qR,\"ms-\"))))}else if(F5.test(de))Me=de,e0.hasOwnProperty(Me)&&e0[Me]||(e0[Me]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",Me,Me.charAt(0).toUpperCase()+Me.slice(1)));else if($1.test(Oe)){Me=de;var it=Oe;rd.hasOwnProperty(it)&&rd[it]||(rd[it]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,Me,it.replace($1,\"\")))}typeof Oe==\"number\"&&(isNaN(Oe)?H5||(H5=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",de)):isFinite(Oe)||Pw||(Pw=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",de))),de=ee,Oe=Fa.get(de),Oe!==void 0||(Oe=V(de.replace(hp,\"-$1\").toLowerCase().replace(Ks,\"-ms-\")),Fa.set(de,Oe)),de=Oe,typeof ce==\"number\"?ce=ce===0||L5.has(ee)?\"\"+ce:ce+\"px\":(g(ce,ee),ce=V((\"\"+ce).trim()))}D?(D=!1,A.push(xu,de,Bw,ce)):A.push(j5,de,Bw,ce)}}D||A.push(wc)}function U(A,C,D){D&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(vc,C,tb)}function T(A,C,D){typeof D!=\"function\"&&typeof D!=\"symbol\"&&typeof D!=\"boolean\"&&A.push(vc,C,fl,V(D),wc)}function k(A,C){this.push(\\'<input type=\"hidden\"\\'),F(A),T(this,\"name\",C),T(this,\"value\",A),this.push(Lh)}function F(A){if(typeof A!=\"string\")throw Error(\"File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.\")}function N(A,C){if(typeof C.$$FORM_ACTION==\"function\"){var D=A.nextFormID++;A=A.idPrefix+D;try{var ee=C.$$FORM_ACTION(A);if(ee){var ce=ee.data;ce?.forEach(F)}return ee}catch(de){if(typeof de==\"object\"&&de!==null&&typeof de.then==\"function\")throw de;console.error(`Failed to serialize an action for progressive enhancement:\\n%s`,de)}}return null}function B(A,C,D,ee,ce,de,Oe,Me){var it=null;if(typeof ee==\"function\"){Me===null||pl||(pl=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),ce===null&&de===null||vt||(vt=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),Oe===null||Wn||(Wn=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"));var Le=N(C,ee);Le!==null?(Me=Le.name,ee=Le.action||\"\",ce=Le.encType,de=Le.method,Oe=Le.target,it=Le.data):(A.push(vc,\"formAction\",fl,gp,wc),Oe=de=ce=ee=Me=null,j(C,D))}return Me!=null&&H(A,\"name\",Me),ee!=null&&H(A,\"formAction\",ee),ce!=null&&H(A,\"formEncType\",ce),de!=null&&H(A,\"formMethod\",de),Oe!=null&&H(A,\"formTarget\",Oe),it}function H(A,C,D){switch(C){case\"className\":T(A,\"class\",D);break;case\"tabIndex\":T(A,\"tabindex\",D);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":T(A,C,D);break;case\"style\":K(A,D);break;case\"src\":case\"href\":if(D===\"\"){console.error(C===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',C,C);break}case\"action\":case\"formAction\":if(D==null||typeof D==\"function\"||typeof D==\"symbol\"||typeof D==\"boolean\")break;h(D,C),D=Q(\"\"+D),A.push(vc,C,fl,V(D),wc);break;case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"autoFocus\":case\"multiple\":case\"muted\":U(A,C.toLowerCase(),D);break;case\"xlinkHref\":if(typeof D==\"function\"||typeof D==\"symbol\"||typeof D==\"boolean\")break;h(D,C),D=Q(\"\"+D),A.push(vc,\"xlink:href\",fl,V(D),wc);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(vc,C,fl,V(D),wc);break;case\"inert\":D!==\"\"||kE[C]||(kE[C]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",C));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":D&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(vc,C,tb);break;case\"capture\":case\"download\":D===!0?A.push(vc,C,tb):D!==!1&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(vc,C,fl,V(D),wc);break;case\"cols\":case\"rows\":case\"size\":case\"span\":typeof D!=\"function\"&&typeof D!=\"symbol\"&&!isNaN(D)&&1<=D&&A.push(vc,C,fl,V(D),wc);break;case\"rowSpan\":case\"start\":typeof D==\"function\"||typeof D==\"symbol\"||isNaN(D)||A.push(vc,C,fl,V(D),wc);break;case\"xlinkActuate\":T(A,\"xlink:actuate\",D);break;case\"xlinkArcrole\":T(A,\"xlink:arcrole\",D);break;case\"xlinkRole\":T(A,\"xlink:role\",D);break;case\"xlinkShow\":T(A,\"xlink:show\",D);break;case\"xlinkTitle\":T(A,\"xlink:title\",D);break;case\"xlinkType\":T(A,\"xlink:type\",D);break;case\"xmlBase\":T(A,\"xml:base\",D);break;case\"xmlLang\":T(A,\"xml:lang\",D);break;case\"xmlSpace\":T(A,\"xml:space\",D);break;default:if((!(2<C.length)||C[0]!==\"o\"&&C[0]!==\"O\"||C[1]!==\"n\"&&C[1]!==\"N\")&&(C=IE.get(C)||C,v(C))){switch(typeof D){case\"function\":case\"symbol\":return;case\"boolean\":var ee=C.toLowerCase().slice(0,5);if(ee!==\"data-\"&&ee!==\"aria-\")return}A.push(vc,C,fl,V(D),wc)}}}function W(A,C,D){if(C!=null){if(D!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof C!=\"object\"||!(\"__html\"in C))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");C=C.__html,C!=null&&(y(C),A.push(\"\"+C))}}function G(A,C){var D=A[C];D!=null&&(D=ul(D),A.multiple&&!D?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.\",C):!A.multiple&&D&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.\",C))}function O(A){var C=\"\";return M5.Children.forEach(A,function(D){D!=null&&(C+=D,ny||typeof D==\"string\"||typeof D==\"number\"||typeof D==\"bigint\"||(ny=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\")))}),C}function j(A,C){(A.instructions&16)===mp&&(A.instructions|=16,C.bootstrapChunks.unshift(C.startInlineScript,n0,\"<\\\\/script>\"))}function te(A,C){A.push(De(\"link\"));for(var D in C)if(Io.call(C,D)){var ee=C[D];if(ee!=null)switch(D){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:H(A,D,ee)}}return A.push(Lh),null}function ne(A){return y(A),(\"\"+A).replace(rb,e)}function ae(A,C,D){A.push(De(D));for(var ee in C)if(Io.call(C,ee)){var ce=C[ee];if(ce!=null)switch(ee){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(D+\" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:H(A,ee,ce)}}return A.push(Lh),null}function pe(A,C){A.push(De(\"title\"));var D=null,ee=null,ce;for(ce in C)if(Io.call(C,ce)){var de=C[ce];if(de!=null)switch(ce){case\"children\":D=de;break;case\"dangerouslySetInnerHTML\":ee=de;break;default:H(A,ce,de)}}return A.push(Mi),C=Array.isArray(D)?2>D.length?D[0]:null:D,typeof C!=\"function\"&&typeof C!=\"symbol\"&&C!==null&&C!==void 0&&A.push(V(\"\"+C)),W(A,ee,D),A.push(gt(\"title\")),null}function ye(A,C){A.push(De(\"script\"));var D=null,ee=null,ce;for(ce in C)if(Io.call(C,ce)){var de=C[ce];if(de!=null)switch(ce){case\"children\":D=de;break;case\"dangerouslySetInnerHTML\":ee=de;break;default:H(A,ce,de)}}return A.push(Mi),D!=null&&typeof D!=\"string\"&&(C=typeof D==\"number\"?\"a number for children\":Array.isArray(D)?\"an array for children\":\"something unexpected for children\",console.error(\"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.\",C)),W(A,ee,D),typeof D==\"string\"&&A.push($(D)),A.push(gt(\"script\")),null}function ve(A,C,D){A.push(De(D));var ee=D=null,ce;for(ce in C)if(Io.call(C,ce)){var de=C[ce];if(de!=null)switch(ce){case\"children\":D=de;break;case\"dangerouslySetInnerHTML\":ee=de;break;default:H(A,ce,de)}}return A.push(Mi),W(A,ee,D),D}function xe(A,C,D){A.push(De(D));var ee=D=null,ce;for(ce in C)if(Io.call(C,ce)){var de=C[ce];if(de!=null)switch(ce){case\"children\":D=de;break;case\"dangerouslySetInnerHTML\":ee=de;break;default:H(A,ce,de)}}return A.push(Mi),W(A,ee,D),typeof D==\"string\"?(A.push(V(D)),null):D}function De(A){var C=Fw.get(A);if(C===void 0){if(!ff.test(A))throw Error(\"Invalid tag: \"+A);C=\"<\"+A,Fw.set(A,C)}return C}function Ge(A,C,D,ee,ce,de,Oe,Me,it,Le){S(C,D),C!==\"input\"&&C!==\"textarea\"&&C!==\"select\"||D==null||D.value!==null||nu||(nu=!0,C===\"select\"&&D.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",C):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",C));e:if(C.indexOf(\"-\")===-1)var St=!1;else switch(C){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":St=!1;break e;default:St=!0}switch(St||typeof D.is==\"string\"||P(C,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\"),Me.insertionMode!==Qs&&Me.insertionMode!==df&&C.indexOf(\"-\")===-1&&C.toLowerCase()!==C&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",C),C){case\"div\":case\"span\":case\"svg\":case\"path\":break;case\"a\":A.push(De(\"a\"));var Ot=null,Pt=null,qt;for(qt in D)if(Io.call(D,qt)){var ft=D[qt];if(ft!=null)switch(qt){case\"children\":Ot=ft;break;case\"dangerouslySetInnerHTML\":Pt=ft;break;case\"href\":ft===\"\"?T(A,\"href\",\"\"):H(A,qt,ft);break;default:H(A,qt,ft)}}if(A.push(Mi),W(A,Pt,Ot),typeof Ot==\"string\"){A.push(V(Ot));var gr=null}else gr=Ot;return gr;case\"g\":case\"p\":case\"li\":break;case\"select\":x(\"select\",D),G(D,\"value\"),G(D,\"defaultValue\"),D.value===void 0||D.defaultValue===void 0||ty||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),ty=!0),A.push(De(\"select\"));var Dn=null,Rn=null,wn;for(wn in D)if(Io.call(D,wn)){var Ca=D[wn];if(Ca!=null)switch(wn){case\"children\":Dn=Ca;break;case\"dangerouslySetInnerHTML\":Rn=Ca;break;case\"defaultValue\":case\"value\":break;default:H(A,wn,Ca)}}return A.push(Mi),W(A,Rn,Dn),Dn;case\"option\":var yn=Me.selectedValue;A.push(De(\"option\"));var Hn=null,Mo=null,fa=null,Ra=null,Di;for(Di in D)if(Io.call(D,Di)){var ni=D[Di];if(ni!=null)switch(Di){case\"children\":Hn=ni;break;case\"selected\":fa=ni,ru||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),ru=!0);break;case\"dangerouslySetInnerHTML\":Ra=ni;break;case\"value\":Mo=ni;default:H(A,Di,ni)}}if(yn!=null){if(Mo!==null){h(Mo,\"value\");var Su=\"\"+Mo}else Ra===null||ry||(ry=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\")),Su=O(Hn);if(ul(yn)){for(var _c=0;_c<yn.length;_c++)if(h(yn[_c],\"value\"),\"\"+yn[_c]===Su){A.push(\\' selected=\"\"\\');break}}else h(yn,\"select.value\"),\"\"+yn===Su&&A.push(\\' selected=\"\"\\')}else fa&&A.push(\\' selected=\"\"\\');return A.push(Mi),W(A,Ra,Hn),Hn;case\"textarea\":x(\"textarea\",D),D.value===void 0||D.defaultValue===void 0||PE||(console.error(\"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\"),PE=!0),A.push(De(\"textarea\"));var Wr=null,E=null,_=null,L;for(L in D)if(Io.call(D,L)){var X=D[L];if(X!=null)switch(L){case\"children\":_=X;break;case\"value\":Wr=X;break;case\"defaultValue\":E=X;break;case\"dangerouslySetInnerHTML\":throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");default:H(A,L,X)}}if(Wr===null&&E!==null&&(Wr=E),A.push(Mi),_!=null){if(console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\"),Wr!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(ul(_)){if(1<_.length)throw Error(\"<textarea> can only have at most one child.\");y(_[0]),Wr=\"\"+_[0]}y(_),Wr=\"\"+_}return typeof Wr==\"string\"&&Wr[0]===`\\n`&&A.push(Ei),Wr!==null&&(h(Wr,\"value\"),A.push(V(\"\"+Wr))),null;case\"input\":x(\"input\",D),A.push(De(\"input\"));var se=null,le=null,Ae=null,Ce=null,He=null,ke=null,yt=null,pt=null,It=null,xt;for(xt in D)if(Io.call(D,xt)){var at=D[xt];if(at!=null)switch(xt){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");case\"name\":se=at;break;case\"formAction\":le=at;break;case\"formEncType\":Ae=at;break;case\"formMethod\":Ce=at;break;case\"formTarget\":He=at;break;case\"defaultChecked\":It=at;break;case\"defaultValue\":yt=at;break;case\"checked\":pt=at;break;case\"value\":ke=at;break;default:H(A,xt,at)}}le===null||D.type===\"image\"||D.type===\"submit\"||Bh||(Bh=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\'));var Ln=B(A,ee,ce,le,Ae,Ce,He,se);return pt===null||It===null||nb||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",D.type),nb=!0),ke===null||yt===null||Uw||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",D.type),Uw=!0),pt!==null?U(A,\"checked\",pt):It!==null&&U(A,\"checked\",It),ke!==null?H(A,\"value\",ke):yt!==null&&H(A,\"value\",yt),A.push(Lh),Ln?.forEach(k,A),null;case\"button\":A.push(De(\"button\"));var Qr=null,Bn=null,nn=null,fi=null,co=null,zn=null,za=null,Ss;for(Ss in D)if(Io.call(D,Ss)){var Li=D[Ss];if(Li!=null)switch(Ss){case\"children\":Qr=Li;break;case\"dangerouslySetInnerHTML\":Bn=Li;break;case\"name\":nn=Li;break;case\"formAction\":fi=Li;break;case\"formEncType\":co=Li;break;case\"formMethod\":zn=Li;break;case\"formTarget\":za=Li;break;default:H(A,Ss,Li)}}fi===null||D.type==null||D.type===\"submit\"||Bh||(Bh=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\'));var Zi=B(A,ee,ce,fi,co,zn,za,nn);if(A.push(Mi),Zi?.forEach(k,A),W(A,Bn,Qr),typeof Qr==\"string\"){A.push(V(Qr));var Vo=null}else Vo=Qr;return Vo;case\"form\":A.push(De(\"form\"));var _i=null,Qi=null,$n=null,Go=null,uo=null,ja=null,Wa;for(Wa in D)if(Io.call(D,Wa)){var pa=D[Wa];if(pa!=null)switch(Wa){case\"children\":_i=pa;break;case\"dangerouslySetInnerHTML\":Qi=pa;break;case\"action\":$n=pa;break;case\"encType\":Go=pa;break;case\"method\":uo=pa;break;case\"target\":ja=pa;break;default:H(A,Wa,pa)}}var iu=null,Ia=null;if(typeof $n==\"function\"){Go===null&&uo===null||vt||(vt=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),ja===null||Wn||(Wn=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"));var au=N(ee,$n);au!==null?($n=au.action||\"\",Go=au.encType,uo=au.method,ja=au.target,iu=au.data,Ia=au.name):(A.push(vc,\"action\",fl,gp,wc),ja=uo=Go=$n=null,j(ee,ce))}if($n!=null&&H(A,\"action\",$n),Go!=null&&H(A,\"encType\",Go),uo!=null&&H(A,\"method\",uo),ja!=null&&H(A,\"target\",ja),A.push(Mi),Ia!==null&&(A.push(\\'<input type=\"hidden\"\\'),T(A,\"name\",Ia),A.push(Lh),iu?.forEach(k,A)),W(A,Qi,_i),typeof _i==\"string\"){A.push(V(_i));var gf=null}else gf=_i;return gf;case\"menuitem\":A.push(De(\"menuitem\"));for(var or in D)if(Io.call(D,or)){var yl=D[or];if(yl!=null)switch(or){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.\");default:H(A,or,yl)}}return A.push(Mi),null;case\"object\":A.push(De(\"object\"));var Sc=null,yf=null,ss;for(ss in D)if(Io.call(D,ss)){var ha=D[ss];if(ha!=null)switch(ss){case\"children\":Sc=ha;break;case\"dangerouslySetInnerHTML\":yf=ha;break;case\"data\":h(ha,\"data\");var ri=Q(\"\"+ha);if(ri===\"\"){console.error(\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',ss,ss);break}A.push(vc,\"data\",fl,V(ri),wc);break;default:H(A,ss,ha)}}if(A.push(Mi),W(A,yf,Sc),typeof Sc==\"string\"){A.push(V(Sc));var cs=null}else cs=Sc;return cs;case\"title\":var $s=Me.insertionMode,ud=!!(Me.tagScope&1);if(Io.call(D,\"children\")){var Va=D.children,Tu=Array.isArray(Va)?2>Va.length?Va[0]:null:Va;Array.isArray(Va)&&1<Va.length?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.\",Va.length):typeof Tu==\"function\"||typeof Tu==\"symbol\"?console.error(\"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.\",typeof Tu==\"function\"?\"a Function\":\"a Sybmol\"):Tu&&Tu.toString==={}.toString&&(Tu.$$typeof!=null?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.\"):console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.\"))}if($s===Qs||ud||D.itemProp!=null)var Tc=pe(A,D);else Le?Tc=null:(pe(ce.hoistableChunks,D),Tc=void 0);return Tc;case\"link\":var ec=D.rel,oi=D.href,Ts=D.precedence;if(Me.insertionMode===Qs||Me.tagScope&1||D.itemProp!=null||typeof ec!=\"string\"||typeof oi!=\"string\"||oi===\"\"){ec===\"stylesheet\"&&typeof D.precedence==\"string\"&&(typeof oi==\"string\"&&oi||console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.\\',oi===null?\"`null`\":oi===void 0?\"`undefined`\":oi===\"\"?\"an empty string\":\\'something with type \"\\'+typeof oi+\\'\"\\')),te(A,D);var su=null}else if(D.rel===\"stylesheet\")if(typeof Ts!=\"string\"||D.disabled!=null||D.onLoad||D.onError){if(typeof Ts==\"string\"){if(D.disabled!=null)console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.\\');else if(D.onLoad||D.onError){var Cu=D.onLoad&&D.onError?\"`onLoad` and `onError` props\":D.onLoad?\"`onLoad` prop\":\"`onError` prop\";console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',Cu,Cu)}}su=te(A,D)}else{var cu=ce.styles.get(Ts),ld=ee.styleResources.hasOwnProperty(oi)?ee.styleResources[oi]:void 0;if(ld!==ei){ee.styleResources[oi]=ei,cu||(cu={precedence:V(Ts),rules:[],hrefs:[],sheets:new Map},ce.styles.set(Ts,cu));var tc={state:uy,props:da({},D,{\"data-precedence\":D.precedence,precedence:null})};if(ld){ld.length===2&&la(tc.props,ld);var bl=ce.preloads.stylesheets.get(oi);bl&&0<bl.length?bl.length=0:tc.state=jw}cu.sheets.set(oi,tc),Oe&&Oe.stylesheets.add(tc)}else if(cu){var Ru=cu.sheets.get(oi);Ru&&Oe&&Oe.stylesheets.add(Ru)}it&&A.push(\"<!-- -->\"),su=null}else D.onLoad||D.onError?su=te(A,D):(it&&A.push(\"<!-- -->\"),su=Le?null:te(ce.hoistableChunks,D));return su;case\"script\":var vl=D.async;if(typeof D.src!=\"string\"||!D.src||!vl||typeof vl==\"function\"||typeof vl==\"symbol\"||D.onLoad||D.onError||Me.insertionMode===Qs||Me.tagScope&1||D.itemProp!=null)var wl=ye(A,D);else{var Cc=D.src;if(D.type===\"module\")var nc=ee.moduleScriptResources,Vh=ce.preloads.moduleScripts;else nc=ee.scriptResources,Vh=ce.preloads.scripts;var Tn=nc.hasOwnProperty(Cc)?nc[Cc]:void 0;if(Tn!==ei){nc[Cc]=ei;var dd=D;if(Tn){Tn.length===2&&(dd=da({},D),la(dd,Tn));var fd=Vh.get(Cc);fd&&(fd.length=0)}var c0=[];ce.scripts.add(c0),ye(c0,dd)}it&&A.push(\"<!-- -->\"),wl=null}return wl;case\"style\":var uu=Me.insertionMode,pd=!!(Me.tagScope&1);if(Io.call(D,\"children\")){var Ga=D.children,us=Array.isArray(Ga)?2>Ga.length?Ga[0]:null:Ga;(typeof us==\"function\"||typeof us==\"symbol\"||Array.isArray(us))&&console.error(\"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.\",typeof us==\"function\"?\"a Function\":typeof us==\"symbol\"?\"a Sybmol\":\"an Array\")}var pi=D.precedence,Ji=D.href;if(uu===Qs||pd||D.itemProp!=null||typeof pi!=\"string\"||typeof Ji!=\"string\"||Ji===\"\"){A.push(De(\"style\"));var Vr=null,wy=null,Xi;for(Xi in D)if(Io.call(D,Xi)){var xl=D[Xi];if(xl!=null)switch(Xi){case\"children\":Vr=xl;break;case\"dangerouslySetInnerHTML\":wy=xl;break;default:H(A,Xi,xl)}}A.push(Mi);var Cs=Array.isArray(Vr)?2>Vr.length?Vr[0]:null:Vr;typeof Cs!=\"function\"&&typeof Cs!=\"symbol\"&&Cs!==null&&Cs!==void 0&&A.push(ne(Cs)),W(A,wy,Vr),A.push(gt(\"style\"));var xy=null}else{Ji.includes(\" \")&&console.error(\\'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is \"%s\".\\',Ji);var Si=ce.styles.get(pi),Mr=ee.styleResources.hasOwnProperty(Ji)?ee.styleResources[Ji]:void 0;if(Mr!==ei){ee.styleResources[Ji]=ei,Mr&&console.error(\\'React encountered a hoistable style tag for the same href as a preload: \"%s\". When using a style tag to inline styles you should not also preload it as a stylsheet.\\',Ji),Si?Si.hrefs.push(V(Ji)):(Si={precedence:V(pi),rules:[],hrefs:[V(Ji)],sheets:new Map},ce.styles.set(pi,Si));var hd=Si.rules,ii=null,Gh=null,bf;for(bf in D)if(Io.call(D,bf)){var Ep=D[bf];if(Ep!=null)switch(bf){case\"children\":ii=Ep;break;case\"dangerouslySetInnerHTML\":Gh=Ep}}var Ap=Array.isArray(ii)?2>ii.length?ii[0]:null:ii;typeof Ap!=\"function\"&&typeof Ap!=\"symbol\"&&Ap!==null&&Ap!==void 0&&hd.push(ne(Ap)),W(hd,Gh,ii)}Si&&Oe&&Oe.styles.add(Si),it&&A.push(\"<!-- -->\"),xy=void 0}return xy;case\"meta\":if(Me.insertionMode===Qs||Me.tagScope&1||D.itemProp!=null)var Rc=ae(A,D,\"meta\");else it&&A.push(\"<!-- -->\"),Rc=Le?null:typeof D.charSet==\"string\"?ae(ce.charsetChunks,D,\"meta\"):D.name===\"viewport\"?ae(ce.viewportChunks,D,\"meta\"):ae(ce.hoistableChunks,D,\"meta\");return Rc;case\"listing\":case\"pre\":A.push(De(C));var _p=null,md=null,gd;for(gd in D)if(Io.call(D,gd)){var lu=D[gd];if(lu!=null)switch(gd){case\"children\":_p=lu;break;case\"dangerouslySetInnerHTML\":md=lu;break;default:H(A,gd,lu)}}if(A.push(Mi),md!=null){if(_p!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof md!=\"object\"||!(\"__html\"in md))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");var yd=md.__html;yd!=null&&(typeof yd==\"string\"&&0<yd.length&&yd[0]===`\\n`?A.push(Ei,yd):(y(yd),A.push(\"\"+yd)))}return typeof _p==\"string\"&&_p[0]===`\\n`&&A.push(Ei),_p;case\"img\":var Oa=D.src,Ti=D.srcSet;if(!(D.loading===\"lazy\"||!Oa&&!Ti||typeof Oa!=\"string\"&&Oa!=null||typeof Ti!=\"string\"&&Ti!=null)&&D.fetchPriority!==\"low\"&&!(Me.tagScope&3)&&(typeof Oa!=\"string\"||Oa[4]!==\":\"||Oa[0]!==\"d\"&&Oa[0]!==\"D\"||Oa[1]!==\"a\"&&Oa[1]!==\"A\"||Oa[2]!==\"t\"&&Oa[2]!==\"T\"||Oa[3]!==\"a\"&&Oa[3]!==\"A\")&&(typeof Ti!=\"string\"||Ti[4]!==\":\"||Ti[0]!==\"d\"&&Ti[0]!==\"D\"||Ti[1]!==\"a\"&&Ti[1]!==\"A\"||Ti[2]!==\"t\"&&Ti[2]!==\"T\"||Ti[3]!==\"a\"&&Ti[3]!==\"A\")){var wb=typeof D.sizes==\"string\"?D.sizes:void 0,Sp=Ti?Ti+`\\n`+(wb||\"\"):Oa,Ey=ce.preloads.images,Tp=Ey.get(Sp);if(Tp)(D.fetchPriority===\"high\"||10>ce.highImagePreloads.size)&&(Ey.delete(Sp),ce.highImagePreloads.add(Tp));else if(!ee.imageResources.hasOwnProperty(Sp)){ee.imageResources[Sp]=Zs;var Cp=D.crossOrigin,xb=typeof Cp==\"string\"?Cp===\"use-credentials\"?Cp:\"\":void 0,Rp=ce.headers,El;Rp&&0<Rp.remainingCapacity&&typeof D.srcSet!=\"string\"&&(D.fetchPriority===\"high\"||500>Rp.highImagePreloads.length)&&(El=ue(Oa,\"image\",{imageSrcSet:D.srcSet,imageSizes:D.sizes,crossOrigin:xb,integrity:D.integrity,nonce:D.nonce,type:D.type,fetchPriority:D.fetchPriority,referrerPolicy:D.refererPolicy}),0<=(Rp.remainingCapacity-=El.length+2))?(ce.resets.image[Sp]=Zs,Rp.highImagePreloads&&(Rp.highImagePreloads+=\", \"),Rp.highImagePreloads+=El):(Tp=[],te(Tp,{rel:\"preload\",as:\"image\",href:Ti?void 0:Oa,imageSrcSet:Ti,imageSizes:wb,crossOrigin:xb,integrity:D.integrity,type:D.type,fetchPriority:D.fetchPriority,referrerPolicy:D.referrerPolicy}),D.fetchPriority===\"high\"||10>ce.highImagePreloads.size?ce.highImagePreloads.add(Tp):(ce.bulkPreloads.add(Tp),Ey.set(Sp,Tp)))}}return ae(A,D,\"img\");case\"base\":case\"area\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"param\":case\"source\":case\"track\":case\"wbr\":return ae(A,D,C);case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":break;case\"head\":if(Me.insertionMode<Ki){var u0=de||ce.preamble;if(u0.headChunks)throw Error(\"The `<head>` tag may only be rendered once.\");u0.headChunks=[];var Ip=ve(u0.headChunks,D,\"head\")}else Ip=xe(A,D,\"head\");return Ip;case\"body\":if(Me.insertionMode<Ki){var Ay=de||ce.preamble;if(Ay.bodyChunks)throw Error(\"The `<body>` tag may only be rendered once.\");Ay.bodyChunks=[];var t2=ve(Ay.bodyChunks,D,\"body\")}else t2=xe(A,D,\"body\");return t2;case\"html\":if(Me.insertionMode===Xg){var l0=de||ce.preamble;if(l0.htmlChunks)throw Error(\"The `<html>` tag may only be rendered once.\");l0.htmlChunks=[JE];var h3=ve(l0.htmlChunks,D,\"html\")}else h3=xe(A,D,\"html\");return h3;default:if(C.indexOf(\"-\")!==-1){A.push(De(C));var qh=null,m3=null,_y;for(_y in D)if(Io.call(D,_y)){var Rs=D[_y];if(Rs!=null){var g3=_y;switch(_y){case\"children\":qh=Rs;break;case\"dangerouslySetInnerHTML\":m3=Rs;break;case\"style\":K(A,Rs);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"className\":g3=\"class\";default:if(v(_y)&&typeof Rs!=\"function\"&&typeof Rs!=\"symbol\"&&Rs!==!1){if(Rs===!0)Rs=\"\";else if(typeof Rs==\"object\")continue;A.push(vc,g3,fl,V(Rs),wc)}}}}return A.push(Mi),W(A,m3,qh),qh}}return xe(A,D,C)}function gt(A){var C=W5.get(A);return C===void 0&&(C=\"</\"+A+\">\",W5.set(A,C)),C}function Ye(A,C){A=A.preamble,A.htmlChunks===null&&C.htmlChunks&&(A.htmlChunks=C.htmlChunks,C.contribution|=1),A.headChunks===null&&C.headChunks&&(A.headChunks=C.headChunks,C.contribution|=4),A.bodyChunks===null&&C.bodyChunks&&(A.bodyChunks=C.bodyChunks,C.contribution|=2)}function lt(A,C){C=C.bootstrapChunks;for(var D=0;D<C.length-1;D++)A.push(C[D]);return D<C.length?(D=C[D],C.length=0,A.push(D)):!0}function At(A,C,D){if(A.push(Eu),D===null)throw Error(\"An ID must have been assigned before we can complete the boundary.\");return A.push(C.boundaryPrefix),C=D.toString(16),A.push(C),A.push(ou)}function ht(A,C){C=C.contribution,C!==NE&&(A.push(BE),A.push(\"\"+C),A.push(ob))}function et(A,C,D,ee){switch(D.insertionMode){case Xg:case di:case $g:case Ki:return A.push(UE),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(iy);case Qs:return A.push(Hw),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(zw);case df:return A.push(KR),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(G5);case Lw:return A.push(K5),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(HE);case t0:return A.push(Y5),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(DP);case ey:return A.push(ZR),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(QR);case eb:return A.push(JR),A.push(C.segmentPrefix),C=ee.toString(16),A.push(C),A.push(XR);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function fn(A,C){switch(C.insertionMode){case Xg:case di:case $g:case Ki:return A.push(V5);case Qs:return A.push(FE);case df:return A.push(q5);case Lw:return A.push(YR);case t0:return A.push(Z5);case ey:return A.push(Q5);case eb:return A.push(ib);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function Zt(A){return JSON.stringify(A).replace(t3,function(C){switch(C){case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function Vt(A){return JSON.stringify(A).replace(t4,function(C){switch(C){case\"&\":return\"\\\\\\\\u0026\";case\">\":return\"\\\\\\\\u003e\";case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function jt(A){var C=A.rules,D=A.hrefs;0<C.length&&D.length===0&&console.error(\"React expected to have at least one href for an a hoistable style but found none. This is a bug in React.\");var ee=0;if(D.length){for(this.push(n4),this.push(A.precedence),this.push(n3);ee<D.length-1;ee++)this.push(D[ee]),this.push(o3);for(this.push(D[ee]),this.push(r4),ee=0;ee<C.length;ee++)this.push(C[ee]);YE=this.push(o4),cb=!0,C.length=0,D.length=0}}function Jt(A){return A.state!==ub?cb=!0:!1}function Xt(A,C,D){return cb=!1,YE=!0,C.styles.forEach(jt,A),C.stylesheets.forEach(Jt),cb&&(D.stylesToHoist=!0),YE}function sr(A){for(var C=0;C<A.length;C++)this.push(A[C]);A.length=0}function Yn(A){te(Uh,A.props);for(var C=0;C<Uh.length;C++)this.push(Uh[C]);Uh.length=0,A.state=ub}function Fr(A){var C=0<A.sheets.size;A.sheets.forEach(Yn,this),A.sheets.clear();var D=A.rules,ee=A.hrefs;if(!C||ee.length){if(this.push(r3),this.push(A.precedence),A=0,ee.length){for(this.push(i4);A<ee.length-1;A++)this.push(ee[A]),this.push(o3);this.push(ee[A])}for(this.push(cy),A=0;A<D.length;A++)this.push(D[A]);this.push(i3),D.length=0,ee.length=0}}function Ws(A){if(A.state===uy){A.state=jw;var C=A.props;for(te(Uh,{rel:\"preload\",as:\"style\",href:A.props.href,crossOrigin:C.crossOrigin,fetchPriority:C.fetchPriority,integrity:C.integrity,media:C.media,hrefLang:C.hrefLang,referrerPolicy:C.referrerPolicy}),A=0;A<Uh.length;A++)this.push(Uh[A]);Uh.length=0}}function io(A){A.sheets.forEach(Ws,this),A.sheets.clear()}function Hr(A,C){A.push(ZE);var D=ZE;C.stylesheets.forEach(function(ee){if(ee.state!==ub)if(ee.state===s3)A.push(D),ee=ee.props.href,h(ee,\"href\"),ee=Vt(\"\"+ee),A.push(ee),A.push(QE),D=a4;else{A.push(D);var ce=ee.props[\"data-precedence\"],de=ee.props,Oe=Q(\"\"+ee.props.href);Oe=Vt(Oe),A.push(Oe),h(ce,\"precedence\"),ce=\"\"+ce,A.push(a3),ce=Vt(ce),A.push(ce);for(var Me in de)if(Io.call(de,Me)&&(ce=de[Me],ce!=null))switch(Me){case\"href\":case\"rel\":case\"precedence\":case\"data-precedence\":break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:qi(A,Me,ce)}A.push(QE),D=a4,ee.state=s3}}),A.push(QE)}function qi(A,C,D){var ee=C.toLowerCase();switch(typeof D){case\"function\":case\"symbol\":return}switch(C){case\"innerHTML\":case\"dangerouslySetInnerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"style\":case\"ref\":return;case\"className\":ee=\"class\",h(D,ee),C=\"\"+D;break;case\"hidden\":if(D===!1)return;C=\"\";break;case\"src\":case\"href\":D=Q(D),h(D,ee),C=\"\"+D;break;default:if(2<C.length&&(C[0]===\"o\"||C[0]===\"O\")&&(C[1]===\"n\"||C[1]===\"N\")||!v(C))return;h(D,ee),C=\"\"+D}A.push(a3),ee=Vt(ee),A.push(ee),A.push(a3),ee=Vt(C),A.push(ee)}function Ar(){return{styles:new Set,stylesheets:new Set}}function zr(A,C,D,ee){(A.scriptResources.hasOwnProperty(D)||A.moduleScriptResources.hasOwnProperty(D))&&console.error(\\'Internal React Error: React expected bootstrap script or module with src \"%s\" to not have been preloaded already. please file an issue\\',D),A.scriptResources[D]=ei,A.moduleScriptResources[D]=ei,A=[],te(A,ee),C.bootstrapScripts.add(A)}function la(A,C){A.crossOrigin==null&&(A.crossOrigin=C[0]),A.integrity==null&&(A.integrity=C[1])}function ue(A,C,D){A=Ie(A),C=ot(C,\"as\"),C=\"<\"+A+\\'>; rel=preload; as=\"\\'+C+\\'\"\\';for(var ee in D)Io.call(D,ee)&&(A=D[ee],typeof A==\"string\"&&(C+=\"; \"+ee.toLowerCase()+\\'=\"\\'+ot(A,ee)+\\'\"\\'));return C}function Ie(A){return h(A,\"href\"),(\"\"+A).replace(s4,_t)}function _t(A){switch(A){case\"<\":return\"%3C\";case\">\":return\"%3E\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function ot(A,C){return d(A)&&(console.error(\"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.\",C,u(A)),p(A)),(\"\"+A).replace(Xs,Mt)}function Mt(A){switch(A){case\\'\"\\':return\"%22\";case\"\\'\":return\"%27\";case\";\":return\"%3B\";case\",\":return\"%2C\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function Sn(A){this.styles.add(A)}function Gt(A){this.stylesheets.add(A)}function mn(A,C){var D=A.idPrefix,ee=[],ce=A.bootstrapScriptContent,de=A.bootstrapScripts,Oe=A.bootstrapModules;if(ce!==void 0&&ee.push(\"<script>\",$(ce),\"<\\\\/script>\"),D={placeholderPrefix:D+\"P:\",segmentPrefix:D+\"S:\",boundaryPrefix:D+\"B:\",startInlineScript:\"<script>\",preamble:J(),externalRuntimeScript:null,bootstrapChunks:ee,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:void 0,hoistableState:null,stylesToHoist:!1},de!==void 0)for(ce=0;ce<de.length;ce++){var Me=de[ce],it,Le=void 0,St=void 0,Ot={rel:\"preload\",as:\"script\",fetchPriority:\"low\",nonce:void 0};typeof Me==\"string\"?Ot.href=it=Me:(Ot.href=it=Me.src,Ot.integrity=St=typeof Me.integrity==\"string\"?Me.integrity:void 0,Ot.crossOrigin=Le=typeof Me==\"string\"||Me.crossOrigin==null?void 0:Me.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),zr(A,D,it,Ot),ee.push(\\'<script src=\"\\',V(it)),typeof St==\"string\"&&ee.push(\\'\" integrity=\"\\',V(St)),typeof Le==\"string\"&&ee.push(\\'\" crossorigin=\"\\',V(Le)),ee.push(\\'\" async=\"\"><\\\\/script>\\')}if(Oe!==void 0)for(de=0;de<Oe.length;de++)ce=Oe[de],Le=it=void 0,St={rel:\"modulepreload\",fetchPriority:\"low\",nonce:void 0},typeof ce==\"string\"?St.href=Me=ce:(St.href=Me=ce.src,St.integrity=Le=typeof ce.integrity==\"string\"?ce.integrity:void 0,St.crossOrigin=it=typeof ce==\"string\"||ce.crossOrigin==null?void 0:ce.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),zr(A,D,Me,St),ee.push(\\'<script type=\"module\" src=\"\\',V(Me)),typeof Le==\"string\"&&ee.push(\\'\" integrity=\"\\',V(Le)),typeof it==\"string\"&&ee.push(\\'\" crossorigin=\"\\',V(it)),ee.push(\\'\" async=\"\"><\\\\/script>\\');return{placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,startInlineScript:D.startInlineScript,preamble:D.preamble,externalRuntimeScript:D.externalRuntimeScript,bootstrapChunks:D.bootstrapChunks,importMapChunks:D.importMapChunks,onHeaders:D.onHeaders,headers:D.headers,resets:D.resets,charsetChunks:D.charsetChunks,viewportChunks:D.viewportChunks,hoistableChunks:D.hoistableChunks,preconnects:D.preconnects,fontPreloads:D.fontPreloads,highImagePreloads:D.highImagePreloads,styles:D.styles,bootstrapScripts:D.bootstrapScripts,scripts:D.scripts,bulkPreloads:D.bulkPreloads,preloads:D.preloads,stylesToHoist:D.stylesToHoist,generateStaticMarkup:C}}function On(A,C,D,ee){return D.generateStaticMarkup?(A.push(V(C)),!1):(C===\"\"?A=ee:(ee&&A.push(\"<!-- -->\"),A.push(V(C)),A=!0),A)}function rr(A,C,D,ee){C.generateStaticMarkup||D&&ee&&A.push(\"<!-- -->\")}function un(A){if(A==null)return null;if(typeof A==\"function\")return A.$$typeof===Ww?null:A.displayName||A.name||null;if(typeof A==\"string\")return A;switch(A){case Ym:return\"Fragment\";case Zm:return\"Profiler\";case Yg:return\"StrictMode\";case Qm:return\"Suspense\";case uf:return\"SuspenseList\";case Zg:return\"Activity\"}if(typeof A==\"object\")switch(typeof A.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),A.$$typeof){case CE:return\"Portal\";case Z1:return(A.displayName||\"Context\")+\".Provider\";case Y1:return(A._context.displayName||\"Context\")+\".Consumer\";case kh:var C=A.render;return A=A.displayName,A||(A=C.displayName||C.name||\"\",A=A!==\"\"?\"ForwardRef(\"+A+\")\":\"ForwardRef\"),A;case lf:return C=A.displayName||null,C!==null?C:un(A.type)||\"Memo\";case qs:C=A._payload,A=A._init;try{return un(A(C))}catch{}}return null}function Ni(A,C){if(A!==C){A.context._currentValue2=A.parentValue,A=A.parent;var D=C.parent;if(A===null){if(D!==null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\")}else{if(D===null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\");Ni(A,D)}C.context._currentValue2=C.value}}function yo(A){A.context._currentValue2=A.parentValue,A=A.parent,A!==null&&yo(A)}function Xo(A){var C=A.parent;C!==null&&Xo(C),A.context._currentValue2=A.value}function of(A,C){if(A.context._currentValue2=A.parentValue,A=A.parent,A===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");A.depth===C.depth?Ni(A,C):of(A,C)}function _r(A,C){var D=C.parent;if(D===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");A.depth===D.depth?Ni(A,D):_r(A,D),C.context._currentValue2=C.value}function Nr(A){var C=ml;C!==A&&(C===null?Xo(A):A===null?yo(C):C.depth===A.depth?Ni(C,A):C.depth>A.depth?of(C,A):_r(C,A),ml=A)}function $l(A){if(A!==null&&typeof A!=\"function\"){var C=String(A);o0.has(C)||(o0.add(C),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",A))}}function kn(A,C){A=(A=A.constructor)&&un(A)||\"ReactClass\";var D=A+\".\"+C;c3[D]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\\n\\nPlease check the code for the %s component.`,C,A),c3[D]=!0)}function bo(A,C,D){var ee=A.id;A=A.overflow;var ce=32-qw(ee)-1;ee&=~(1<<ce),D+=1;var de=32-qw(C)+ce;if(30<de){var Oe=ce-ce%5;return de=(ee&(1<<Oe)-1).toString(32),ee>>=Oe,ce-=Oe,{id:1<<32-qw(C)+ce|D<<ce|ee,overflow:de+A}}return{id:1<<de|D<<ce|ee,overflow:A}}function cp(A){return A>>>=0,A===0?32:31-(eA(A)/f3|0)|0}function ao(){}function $o(A,C,D){switch(D=A[D],D===void 0?A.push(C):D!==C&&(C.then(ao,ao),C=D),C.status){case\"fulfilled\":return C.value;case\"rejected\":throw C.reason;default:switch(typeof C.status==\"string\"?C.then(ao,ao):(A=C,A.status=\"pending\",A.then(function(ee){if(C.status===\"pending\"){var ce=C;ce.status=\"fulfilled\",ce.value=ee}},function(ee){if(C.status===\"pending\"){var ce=C;ce.status=\"rejected\",ce.reason=ee}})),C.status){case\"fulfilled\":return C.value;case\"rejected\":throw C.reason}throw i0=C,vp}}function Yt(){if(i0===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var A=i0;return i0=null,A}function jr(A,C){return A===C&&(A!==0||1/A===1/C)||A!==A&&C!==C}function Mn(){if(pf===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return sd&&console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"),pf}function af(){if(0<py)throw Error(\"Rendered more hooks than during the previous render\");return{memoizedState:null,queue:null,next:null}}function Ro(){return ti===null?Zw===null?(db=!1,Zw=ti=af()):(db=!0,ti=Zw):ti.next===null?(db=!1,ti=ti.next=af()):(db=!0,ti=ti.next),ti}function Yr(){var A=jh;return jh=null,A}function Vs(){sd=!1,Yw=lb=Ta=pf=null,fy=!1,Zw=null,py=0,ti=hf=null}function ol(A){return sd&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),A._currentValue2}function xi(A,C){return typeof C==\"function\"?C(A):C}function sf(A,C,D){if(A!==xi&&(a0=\"useReducer\"),pf=Mn(),ti=Ro(),db){if(D=ti.queue,C=D.dispatch,hf!==null){var ee=hf.get(D);if(ee!==void 0){hf.delete(D),D=ti.memoizedState;do{var ce=ee.action;sd=!0,D=A(D,ce),sd=!1,ee=ee.next}while(ee!==null);return ti.memoizedState=D,[D,C]}}return[ti.memoizedState,C]}return sd=!0,A=A===xi?typeof C==\"function\"?C():C:D!==void 0?D(C):C,sd=!1,ti.memoizedState=A,A=ti.queue={last:null,dispatch:null},A=A.dispatch=cf.bind(null,pf,A),[ti.memoizedState,A]}function Ua(A,C){if(pf=Mn(),ti=Ro(),C=C===void 0?null:C,ti!==null){var D=ti.memoizedState;if(D!==null&&C!==null){e:{var ee=D[1];if(ee===null)console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",a0),ee=!1;else{C.length!==ee.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,a0,\"[\"+C.join(\", \")+\"]\",\"[\"+ee.join(\", \")+\"]\");for(var ce=0;ce<ee.length&&ce<C.length;ce++)if(!Kw(C[ce],ee[ce])){ee=!1;break e}ee=!0}}if(ee)return D[0]}}return sd=!0,A=A(),sd=!1,ti.memoizedState=[A,C],A}function cf(A,C,D){if(25<=py)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(A===pf)if(fy=!0,A={action:D,next:null},hf===null&&(hf=new Map),D=hf.get(C),D===void 0)hf.set(C,A);else{for(C=D;C.next!==null;)C=C.next;C.next=A}}function il(){throw Error(\"startTransition cannot be called during server rendering.\")}function Xc(){throw Error(\"Cannot update optimistic state while rendering.\")}function $c(A,C,D){Mn();var ee=zh++,ce=lb;if(typeof A.$$FORM_ACTION==\"function\"){var de=null,Oe=Yw;ce=ce.formState;var Me=A.$$IS_SIGNATURE_EQUAL;if(ce!==null&&typeof Me==\"function\"){var it=ce[1];Me.call(A,ce[2],ce[3])&&(de=D!==void 0?\"p\"+D:\"k\"+c(JSON.stringify([Oe,null,ee]),0),it===de&&(ad=ee,C=ce[0]))}var Le=A.bind(null,C);return A=function(Ot){Le(Ot)},typeof Le.$$FORM_ACTION==\"function\"&&(A.$$FORM_ACTION=function(Ot){Ot=Le.$$FORM_ACTION(Ot),D!==void 0&&(h(D,\"target\"),D+=\"\",Ot.action=D);var Pt=Ot.data;return Pt&&(de===null&&(de=D!==void 0?\"p\"+D:\"k\"+c(JSON.stringify([Oe,null,ee]),0)),Pt.append(\"$ACTION_KEY\",de)),Ot}),[C,A,!1]}var St=A.bind(null,C);return[C,function(Ot){St(Ot)},!1]}function hc(A){var C=fb;return fb+=1,jh===null&&(jh=[]),$o(jh,A,C)}function ed(){throw Error(\"Cache cannot be refreshed during server rendering.\")}function eu(){}function td(){}function up(){if(s0===0){tA=console.log,wp=console.info,my=console.warn,c4=console.error,nA=console.group,Ac=console.groupCollapsed,hb=console.groupEnd;var A={configurable:!0,enumerable:!0,value:td,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}s0++}function U1(){if(s0--,s0===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:da({},A,{value:tA}),info:da({},A,{value:wp}),warn:da({},A,{value:my}),error:da({},A,{value:c4}),group:da({},A,{value:nA}),groupCollapsed:da({},A,{value:Ac}),groupEnd:da({},A,{value:hb})})}0>s0&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function Pi(A){if(mb===void 0)try{throw Error()}catch(D){var C=D.stack.trim().match(/\\\\n( *(at )?)/);mb=C&&C[1]||\"\",_u=-1<D.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<D.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+mb+A+_u}function bu(A,C){if(!A||jo)return\"\";var D=Qw.get(A);if(D!==void 0)return D;jo=!0,D=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ee=null;ee=Ys.H,Ys.H=null,up();try{var ce={DetermineComponentFrameRoot:function(){try{if(C){var Pt=function(){throw Error()};if(Object.defineProperty(Pt.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Pt,[])}catch(ft){var qt=ft}Reflect.construct(A,[],Pt)}else{try{Pt.call()}catch(ft){qt=ft}A.call(Pt.prototype)}}else{try{throw Error()}catch(ft){qt=ft}(Pt=A())&&typeof Pt.catch==\"function\"&&Pt.catch(function(){})}}catch(ft){if(ft&&qt&&typeof ft.stack==\"string\")return[ft.stack,qt.stack]}return[null,null]}};ce.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var de=Object.getOwnPropertyDescriptor(ce.DetermineComponentFrameRoot,\"name\");de&&de.configurable&&Object.defineProperty(ce.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var Oe=ce.DetermineComponentFrameRoot(),Me=Oe[0],it=Oe[1];if(Me&&it){var Le=Me.split(`\\n`),St=it.split(`\\n`);for(Oe=de=0;de<Le.length&&!Le[de].includes(\"DetermineComponentFrameRoot\");)de++;for(;Oe<St.length&&!St[Oe].includes(\"DetermineComponentFrameRoot\");)Oe++;if(de===Le.length||Oe===St.length)for(de=Le.length-1,Oe=St.length-1;1<=de&&0<=Oe&&Le[de]!==St[Oe];)Oe--;for(;1<=de&&0<=Oe;de--,Oe--)if(Le[de]!==St[Oe]){if(de!==1||Oe!==1)do if(de--,Oe--,0>Oe||Le[de]!==St[Oe]){var Ot=`\\n`+Le[de].replace(\" at new \",\" at \");return A.displayName&&Ot.includes(\"<anonymous>\")&&(Ot=Ot.replace(\"<anonymous>\",A.displayName)),typeof A==\"function\"&&Qw.set(A,Ot),Ot}while(1<=de&&0<=Oe);break}}}finally{jo=!1,Ys.H=ee,U1(),Error.prepareStackTrace=D}return Le=(Le=A?A.displayName||A.name:\"\")?Pi(Le):\"\",typeof A==\"function\"&&Qw.set(A,Le),Le}function al(A){var C=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,A=A.stack,Error.prepareStackTrace=C,A.startsWith(`Error: react-stack-top-frame\\n`)&&(A=A.slice(29)),C=A.indexOf(`\\n`),C!==-1&&(A=A.slice(C+1)),C=A.indexOf(\"react_stack_bottom_frame\"),C!==-1&&(C=A.lastIndexOf(`\\n`,C)),C!==-1)A=A.slice(0,C);else return\"\";return A}function Bm(A){if(typeof A==\"string\")return Pi(A);if(typeof A==\"function\")return A.prototype&&A.prototype.isReactComponent?bu(A,!0):bu(A,!1);if(typeof A==\"object\"&&A!==null){switch(A.$$typeof){case kh:return bu(A.render,!1);case lf:return bu(A.type,!1);case qs:var C=A,D=C._payload;C=C._init;try{A=C(D)}catch{return Pi(\"Lazy\")}return Bm(A)}if(typeof A.name==\"string\")return D=A.env,Pi(A.name+(D?\" [\"+D+\"]\":\"\"))}switch(A){case uf:return Pi(\"SuspenseList\");case Qm:return Pi(\"Suspense\")}return\"\"}function Ch(A){if(typeof A==\"object\"&&A!==null&&typeof A.environmentName==\"string\"){var C=A.environmentName;A=[A].slice(0),typeof A[0]==\"string\"?A.splice(0,1,\"[%s] \"+A[0],\" \"+C+\" \"):A.splice(0,0,\"[%s] \",\" \"+C+\" \"),A.unshift(console),C=XE.apply(console.error,A),C()}else console.error(A);return null}function lp(){}function k5(A,C,D,ee,ce,de,Oe,Me,it,Le,St){var Ot=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=A,this.renderState=C,this.rootFormatContext=D,this.progressiveChunkSize=ee===void 0?12800:ee,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=Ot,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=ce===void 0?Ch:ce,this.onPostpone=Le===void 0?lp:Le,this.onAllReady=de===void 0?lp:de,this.onShellReady=Oe===void 0?lp:Oe,this.onShellError=Me===void 0?lp:Me,this.onFatalError=it===void 0?lp:it,this.formState=St===void 0?null:St,this.didWarnForKey=null}function Sw(A,C,D,ee,ce,de,Oe,Me,it,Le,St,Ot){var Pt=yy();return 1e3<Pt-mf&&(Ys.recentlyCreatedOwnerStacks=0,mf=Pt),C=new k5(C,D,ee,ce,de,Oe,Me,it,Le,St,Ot),D=zg(C,0,null,ee,!1,!1),D.parentFlushed=!0,A=F1(C,null,A,-1,null,D,null,null,C.abortableTasks,null,ee,null,d3,null,!1,hl,null),Fm(A),C.pingedTasks.push(A),C}function vu(A,C){A.pingedTasks.push(C),A.pingedTasks.length===1&&(A.flushScheduled=A.destination!==null,sl(A))}function dp(A,C,D,ee){return{status:cd,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:C,errorDigest:null,contentState:Ar(),fallbackState:Ar(),contentPreamble:D,fallbackPreamble:ee,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function F1(A,C,D,ee,ce,de,Oe,Me,it,Le,St,Ot,Pt,qt,ft,gr,Dn){A.allPendingTasks++,ce===null?A.pendingRootTasks++:ce.pendingTasks++;var Rn={replay:null,node:D,childIndex:ee,ping:function(){return vu(A,Rn)},blockedBoundary:ce,blockedSegment:de,blockedPreamble:Oe,hoistableState:Me,abortSet:it,keyPath:Le,formatContext:St,context:Ot,treeContext:Pt,componentStack:qt,thenableState:C,isFallback:ft};return Rn.debugTask=Dn,it.add(Rn),Rn}function SE(A,C,D,ee,ce,de,Oe,Me,it,Le,St,Ot,Pt,qt,ft,gr){A.allPendingTasks++,de===null?A.pendingRootTasks++:de.pendingTasks++,D.pendingTasks++;var Dn={replay:D,node:ee,childIndex:ce,ping:function(){return vu(A,Dn)},blockedBoundary:de,blockedSegment:null,blockedPreamble:null,hoistableState:Oe,abortSet:Me,keyPath:it,formatContext:Le,context:St,treeContext:Ot,componentStack:Pt,thenableState:C,isFallback:qt};return Dn.debugTask=gr,Me.add(Dn),Dn}function zg(A,C,D,ee,ce,de){return{status:cd,parentFlushed:!1,id:-1,index:C,chunks:[],children:[],preambleChildren:[],parentFormatContext:ee,boundary:D,lastPushedText:ce,textEmbedded:de}}function Um(){if(gl===null||gl.componentStack===null)return\"\";var A=gl.componentStack;try{var C=\"\";if(typeof A.type==\"string\")C+=Pi(A.type);else if(typeof A.type==\"function\"){if(!A.owner){var D=C,ee=A.type,ce=ee?ee.displayName||ee.name:\"\",de=ce?Pi(ce):\"\";C=D+de}}else A.owner||(C+=Bm(A.type));for(;A;)D=null,A.debugStack!=null?D=al(A.debugStack):(de=A,de.stack!=null&&(D=typeof de.stack!=\"string\"?de.stack=al(de.stack):de.stack)),(A=A.owner)&&D&&(C+=`\\n`+D);var Oe=C}catch(Me){Oe=`\\nError generating stack: `+Me.message+`\\n`+Me.stack}return Oe}function H1(A,C){if(C!=null)for(var D=0;D<C.length;D++){var ee=C[D];typeof ee.name==\"string\"&&ee.debugStack!==void 0&&(A.componentStack={parent:A.componentStack,type:ee,owner:ee.owner,stack:ee.debugStack},A.debugTask=ee.debugTask)}}function Fm(A){var C=A.node;if(typeof C==\"object\"&&C!==null)switch(C.$$typeof){case Kg:var D=C.type,ee=C._owner,ce=C._debugStack;H1(A,C._debugInfo),A.debugTask=C._debugTask,A.componentStack={parent:A.componentStack,type:D,owner:ee,stack:ce};break;case qs:H1(A,C._debugInfo);break;default:typeof C.then==\"function\"&&H1(A,C._debugInfo)}}function Hm(A){var C={};return A&&Object.defineProperty(C,\"componentStack\",{configurable:!0,enumerable:!0,get:function(){try{var D=\"\",ee=A;do D+=Bm(ee.type),ee=ee.parent;while(ee);var ce=D}catch(de){ce=`\\nError generating stack: `+de.message+`\\n`+de.stack}return Object.defineProperty(C,\"componentStack\",{value:ce}),ce}}),C}function zm(A,C,D,ee,ce){A.errorDigest=C,D instanceof Error?(C=String(D.message),D=String(D.stack)):(C=typeof D==\"object\"&&D!==null?a(D):String(D),D=null),ce=ce?`Switched to client rendering because the server rendering aborted due to:\\n\\n`:`Switched to client rendering because the server rendering errored:\\n\\n`,A.errorMessage=ce+C,A.errorStack=D!==null?ce+D:null,A.errorComponentStack=ee.componentStack}function Gs(A,C,D,ee){if(A=A.onError,C=ee?ee.run(A.bind(null,C,D)):A(C,D),C!=null&&typeof C!=\"string\")console.error(\\'onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"%s\" instead\\',typeof C);else return C}function fp(A,C,D,ee){D=A.onShellError;var ce=A.onFatalError;ee?(ee.run(D.bind(null,C)),ee.run(ce.bind(null,C))):(D(C),ce(C)),A.destination!==null?(A.status=_s,A.destination.destroy(C)):(A.status=13,A.fatalError=C)}function Tw(A,C,D,ee,ce,de){var Oe=C.thenableState;for(C.thenableState=null,pf={},Ta=C,lb=A,Yw=D,sd=!1,zh=Ec=0,ad=-1,fb=0,jh=Oe,A=Jw(ee,ce,de);fy;)fy=!1,zh=Ec=0,ad=-1,fb=0,py+=1,ti=null,A=ee(ce,de);return Vs(),A}function pp(A,C,D,ee,ce,de,Oe){var Me=!1;if(de!==0&&A.formState!==null){var it=C.blockedSegment;if(it!==null){Me=!0,it=it.chunks;for(var Le=0;Le<de;Le++)Le===Oe?it.push(\"<!--F!-->\"):it.push(\"<!--F-->\")}}de=C.keyPath,C.keyPath=D,ce?(D=C.treeContext,C.treeContext=bo(D,1,0),tu(A,C,ee,-1),C.treeContext=D):Me?tu(A,C,ee,-1):as(A,C,ee,-1),C.keyPath=de}function Rh(A,C,D,ee,ce,de){if(typeof ee==\"function\")if(ee.prototype&&ee.prototype.isReactComponent){var Oe=ce;if(\"ref\"in ce){Oe={};for(var Me in ce)Me!==\"ref\"&&(Oe[Me]=ce[Me])}var it=ee.defaultProps;if(it){Oe===ce&&(Oe=da({},Oe,ce));for(var Le in it)Oe[Le]===void 0&&(Oe[Le]=it[Le])}var St=Oe,Ot=hl,Pt=ee.contextType;if(\"contextType\"in ee&&Pt!==null&&(Pt===void 0||Pt.$$typeof!==Z1)&&!bp.has(ee)){bp.add(ee);var qt=Pt===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof Pt!=\"object\"?\" However, it is set to a \"+typeof Pt+\".\":Pt.$$typeof===Y1?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(Pt).join(\", \")+\"}.\";console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",un(ee)||\"Component\",qt)}typeof Pt==\"object\"&&Pt!==null&&(Ot=Pt._currentValue2);var ft=new ee(St,Ot);if(typeof ee.getDerivedStateFromProps==\"function\"&&(ft.state===null||ft.state===void 0)){var gr=un(ee)||\"Component\";u3.has(gr)||(u3.add(gr),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",gr,ft.state===null?\"null\":\"undefined\",gr))}if(typeof ee.getDerivedStateFromProps==\"function\"||typeof ft.getSnapshotBeforeUpdate==\"function\"){var Dn=null,Rn=null,wn=null;if(typeof ft.componentWillMount==\"function\"&&ft.componentWillMount.__suppressDeprecationWarning!==!0?Dn=\"componentWillMount\":typeof ft.UNSAFE_componentWillMount==\"function\"&&(Dn=\"UNSAFE_componentWillMount\"),typeof ft.componentWillReceiveProps==\"function\"&&ft.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Rn=\"componentWillReceiveProps\":typeof ft.UNSAFE_componentWillReceiveProps==\"function\"&&(Rn=\"UNSAFE_componentWillReceiveProps\"),typeof ft.componentWillUpdate==\"function\"&&ft.componentWillUpdate.__suppressDeprecationWarning!==!0?wn=\"componentWillUpdate\":typeof ft.UNSAFE_componentWillUpdate==\"function\"&&(wn=\"UNSAFE_componentWillUpdate\"),Dn!==null||Rn!==null||wn!==null){var Ca=un(ee)||\"Component\",yn=typeof ee.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";yp.has(Ca)||(yp.add(Ca),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,Ca,yn,Dn!==null?`\\n  `+Dn:\"\",Rn!==null?`\\n  `+Rn:\"\",wn!==null?`\\n  `+wn:\"\"))}}var Hn=un(ee)||\"Component\";ft.render||(ee.prototype&&typeof ee.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",Hn):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",Hn)),!ft.getInitialState||ft.getInitialState.isReactClassApproved||ft.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",Hn),ft.getDefaultProps&&!ft.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",Hn),ft.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",Hn),ee.childContextTypes&&!Gw.has(ee)&&(Gw.add(ee),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",Hn)),ee.contextTypes&&!dy.has(ee)&&(dy.add(ee),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",Hn)),typeof ft.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",Hn),ee.prototype&&ee.prototype.isPureReactComponent&&typeof ft.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",un(ee)||\"A pure component\"),typeof ft.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",Hn),typeof ft.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",Hn),typeof ft.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",Hn),typeof ft.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",Hn);var Mo=ft.props!==St;ft.props!==void 0&&Mo&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",Hn),ft.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",Hn,Hn),typeof ft.getSnapshotBeforeUpdate!=\"function\"||typeof ft.componentDidUpdate==\"function\"||Hh.has(ee)||(Hh.add(ee),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",un(ee))),typeof ft.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",Hn),typeof ft.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",Hn),typeof ee.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",Hn);var fa=ft.state;fa&&(typeof fa!=\"object\"||ul(fa))&&console.error(\"%s.state: must be set to an object or null\",Hn),typeof ft.getChildContext==\"function\"&&typeof ee.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",Hn);var Ra=ft.state!==void 0?ft.state:null;ft.updater=l3,ft.props=St,ft.state=Ra;var Di={queue:[],replace:!1};ft._reactInternals=Di;var ni=ee.contextType;if(ft.context=typeof ni==\"object\"&&ni!==null?ni._currentValue2:hl,ft.state===St){var Su=un(ee)||\"Component\";Vw.has(Su)||(Vw.add(Su),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",Su))}var _c=ee.getDerivedStateFromProps;if(typeof _c==\"function\"){var Wr=_c(St,Ra);if(Wr===void 0){var E=un(ee)||\"Component\";$E.has(E)||($E.add(E),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",E))}var _=Wr==null?Ra:da({},Ra,Wr);ft.state=_}if(typeof ee.getDerivedStateFromProps!=\"function\"&&typeof ft.getSnapshotBeforeUpdate!=\"function\"&&(typeof ft.UNSAFE_componentWillMount==\"function\"||typeof ft.componentWillMount==\"function\")){var L=ft.state;if(typeof ft.componentWillMount==\"function\"){if(ft.componentWillMount.__suppressDeprecationWarning!==!0){var X=un(ee)||\"Unknown\";Fh[X]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\\n\\nPlease update the following components: %s`,X),Fh[X]=!0)}ft.componentWillMount()}if(typeof ft.UNSAFE_componentWillMount==\"function\"&&ft.UNSAFE_componentWillMount(),L!==ft.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",un(ee)||\"Component\"),l3.enqueueReplaceState(ft,ft.state,null)),Di.queue!==null&&0<Di.queue.length){var se=Di.queue,le=Di.replace;if(Di.queue=null,Di.replace=!1,le&&se.length===1)ft.state=se[0];else{for(var Ae=le?se[0]:ft.state,Ce=!0,He=le?1:0;He<se.length;He++){var ke=se[He],yt=typeof ke==\"function\"?ke.call(ft,Ae,St,void 0):ke;yt!=null&&(Ce?(Ce=!1,Ae=da({},Ae,yt)):da(Ae,yt))}ft.state=Ae}}else Di.queue=null}var pt=gb(ft);if(A.status===12)throw null;ft.props!==St&&($w||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",un(ee)||\"a component\"),$w=!0);var It=C.keyPath;C.keyPath=D,as(A,C,pt,-1),C.keyPath=It}else{if(ee.prototype&&typeof ee.prototype.render==\"function\"){var xt=un(ee)||\"Unknown\";u4[xt]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",xt,xt),u4[xt]=!0)}var at=Tw(A,C,D,ee,ce,void 0);if(A.status===12)throw null;var Ln=Ec!==0,Qr=zh,Bn=ad;if(ee.contextTypes){var nn=un(ee)||\"Unknown\";vy[nn]||(vy[nn]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",nn))}if(ee&&ee.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,ee.displayName||ee.name||\"Component\"),typeof ee.getDerivedStateFromProps==\"function\"){var fi=un(ee)||\"Unknown\";oA[fi]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",fi),oA[fi]=!0)}if(typeof ee.contextType==\"object\"&&ee.contextType!==null){var co=un(ee)||\"Unknown\";Xw[co]||(console.error(\"%s: Function components do not support contextType.\",co),Xw[co]=!0)}pp(A,C,D,at,Ln,Qr,Bn)}else if(typeof ee==\"string\"){var zn=C.blockedSegment;if(zn===null){var za=ce.children,Ss=C.formatContext,Li=C.keyPath;C.formatContext=q(Ss,ee,ce),C.keyPath=D,tu(A,C,za,-1),C.formatContext=Ss,C.keyPath=Li}else{var Zi=Ge(zn.chunks,ee,ce,A.resumableState,A.renderState,C.blockedPreamble,C.hoistableState,C.formatContext,zn.lastPushedText,C.isFallback);zn.lastPushedText=!1;var Vo=C.formatContext,_i=C.keyPath;if(C.keyPath=D,(C.formatContext=q(Vo,ee,ce)).insertionMode===$g){var Qi=zg(A,0,null,C.formatContext,!1,!1);zn.preambleChildren.push(Qi);var $n=F1(A,null,Zi,-1,C.blockedBoundary,Qi,C.blockedPreamble,C.hoistableState,A.abortableTasks,C.keyPath,C.formatContext,C.context,C.treeContext,C.componentStack,C.isFallback,hl,C.debugTask);Fm($n),A.pingedTasks.push($n)}else tu(A,C,Zi,-1);C.formatContext=Vo,C.keyPath=_i;e:{var Go=zn.chunks,uo=A.resumableState;switch(ee){case\"title\":case\"style\":case\"script\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break e;case\"body\":if(Vo.insertionMode<=di){uo.hasBody=!0;break e}break;case\"html\":if(Vo.insertionMode===Xg){uo.hasHtml=!0;break e}break;case\"head\":if(Vo.insertionMode<=di)break e}Go.push(gt(ee))}zn.lastPushedText=!1}}else{switch(ee){case Jm:case Yg:case Zm:case Ym:var ja=C.keyPath;C.keyPath=D,as(A,C,ce.children,-1),C.keyPath=ja;return;case Zg:if(ce.mode!==\"hidden\"){var Wa=C.keyPath;C.keyPath=D,as(A,C,ce.children,-1),C.keyPath=Wa}return;case uf:var pa=C.keyPath;C.keyPath=D,as(A,C,ce.children,-1),C.keyPath=pa;return;case Es:case cl:throw Error(\"ReactDOMServer does not yet support scope components.\");case Qm:e:if(C.replay!==null){var iu=C.keyPath;C.keyPath=D;var Ia=ce.children;try{tu(A,C,Ia,-1)}finally{C.keyPath=iu}}else{var au=C.keyPath,gf=C.blockedBoundary,or=C.blockedPreamble,yl=C.hoistableState,Sc=C.blockedSegment,yf=ce.fallback,ss=ce.children,ha=new Set,ri=C.formatContext.insertionMode<Ki?dp(A,ha,J(),J()):dp(A,ha,null,null);A.trackedPostpones!==null&&(ri.trackedContentKeyPath=D);var cs=zg(A,Sc.chunks.length,ri,C.formatContext,!1,!1);Sc.children.push(cs),Sc.lastPushedText=!1;var $s=zg(A,0,null,C.formatContext,!1,!1);if($s.parentFlushed=!0,A.trackedPostpones!==null){var ud=[D[0],\"Suspense Fallback\",D[2]],Va=[ud[1],ud[2],[],null];A.trackedPostpones.workingMap.set(ud,Va),ri.trackedFallbackNode=Va,C.blockedSegment=cs,C.blockedPreamble=ri.fallbackPreamble,C.keyPath=ud,cs.status=6;try{tu(A,C,yf,-1),rr(cs.chunks,A.renderState,cs.lastPushedText,cs.textEmbedded),cs.status=Ai}catch(Ga){throw cs.status=A.status===12?3:4,Ga}finally{C.blockedSegment=Sc,C.blockedPreamble=or,C.keyPath=au}var Tu=F1(A,null,ss,-1,ri,$s,ri.contentPreamble,ri.contentState,C.abortSet,D,C.formatContext,C.context,C.treeContext,C.componentStack,C.isFallback,hl,C.debugTask);Fm(Tu),A.pingedTasks.push(Tu)}else{C.blockedBoundary=ri,C.blockedPreamble=ri.contentPreamble,C.hoistableState=ri.contentState,C.blockedSegment=$s,C.keyPath=D,$s.status=6;try{if(tu(A,C,ss,-1),rr($s.chunks,A.renderState,$s.lastPushedText,$s.textEmbedded),$s.status=Ai,Oh(ri,$s),ri.pendingTasks===0&&ri.status===cd){ri.status=Ai,A.pendingRootTasks===0&&C.blockedPreamble&&Vm(A);break e}}catch(Ga){if(ri.status=Ha,A.status===12){$s.status=3;var Tc=A.fatalError}else $s.status=4,Tc=Ga;var ec=Hm(C.componentStack),oi=Gs(A,Tc,ec,C.debugTask);zm(ri,oi,Tc,ec,!1),jg(A,ri)}finally{C.blockedBoundary=gf,C.blockedPreamble=or,C.hoistableState=yl,C.blockedSegment=Sc,C.keyPath=au}var Ts=F1(A,null,yf,-1,gf,cs,ri.fallbackPreamble,ri.fallbackState,ha,[D[0],\"Suspense Fallback\",D[2]],C.formatContext,C.context,C.treeContext,C.componentStack,!0,hl,C.debugTask);Fm(Ts),A.pingedTasks.push(Ts)}}return}if(typeof ee==\"object\"&&ee!==null)switch(ee.$$typeof){case kh:if(\"ref\"in ce){var su={};for(var Cu in ce)Cu!==\"ref\"&&(su[Cu]=ce[Cu])}else su=ce;var cu=Tw(A,C,D,ee.render,su,de);pp(A,C,D,cu,Ec!==0,zh,ad);return;case lf:Rh(A,C,D,ee.type,ce,de);return;case D5:case Z1:var ld=ce.value,tc=ce.children,bl=C.context,Ru=C.keyPath,vl=ee._currentValue2;ee._currentValue2=ld,ee._currentRenderer2!==void 0&&ee._currentRenderer2!==null&&ee._currentRenderer2!==ly&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),ee._currentRenderer2=ly;var wl=ml,Cc={parent:wl,depth:wl===null?0:wl.depth+1,context:ee,parentValue:vl,value:ld};ml=Cc,C.context=Cc,C.keyPath=D,as(A,C,tc,-1);var nc=ml;if(nc===null)throw Error(\"Tried to pop a Context at the root of the app. This is a bug in React.\");nc.context!==ee&&console.error(\"The parent context is not the expected context. This is probably a bug in React.\"),nc.context._currentValue2=nc.parentValue,ee._currentRenderer2!==void 0&&ee._currentRenderer2!==null&&ee._currentRenderer2!==ly&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),ee._currentRenderer2=ly;var Vh=ml=nc.parent;C.context=Vh,C.keyPath=Ru,bl!==C.context&&console.error(\"Popping the context provider did not return back to the original snapshot. This is a bug in React.\");return;case Y1:var Tn=ee._context,dd=ce.children;typeof dd!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\");var fd=dd(Tn._currentValue2),c0=C.keyPath;C.keyPath=D,as(A,C,fd,-1),C.keyPath=c0;return;case qs:var uu=xp(ee);if(A.status===12)throw null;Rh(A,C,D,uu,ce,de);return}var pd=\"\";throw(ee===void 0||typeof ee==\"object\"&&ee!==null&&Object.keys(ee).length===0)&&(pd+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+((ee==null?ee:typeof ee)+\".\"+pd))}}function z1(A,C,D,ee,ce){var de=C.replay,Oe=C.blockedBoundary,Me=zg(A,0,null,C.formatContext,!1,!1);Me.id=D,Me.parentFlushed=!0;try{C.replay=null,C.blockedSegment=Me,tu(A,C,ee,ce),Me.status=Ai,Oe===null?A.completedRootSegment=Me:(Oh(Oe,Me),Oe.parentFlushed&&A.partialBoundaries.push(Oe))}finally{C.replay=de,C.blockedSegment=null}}function jm(A,C,D,ee,ce,de,Oe,Me,it,Le){de=Le.nodes;for(var St=0;St<de.length;St++){var Ot=de[St];if(ce===Ot[1]){if(Ot.length===4){if(ee!==null&&ee!==Ot[0])throw Error(\"Expected the resume to render <\"+Ot[0]+\"> in this slot but instead it rendered <\"+ee+\">. The tree doesn\\'t match so React will fallback to client rendering.\");var Pt=Ot[2];Ot=Ot[3],ee=C.node,C.replay={nodes:Pt,slots:Ot,pendingTasks:1};try{if(Rh(A,C,D,Oe,Me,it),C.replay.pendingTasks===1&&0<C.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");C.replay.pendingTasks--}catch(yn){if(typeof yn==\"object\"&&yn!==null&&(yn===vp||typeof yn.then==\"function\"))throw C.node===ee&&(C.replay=Le),yn;C.replay.pendingTasks--,Oe=Hm(C.componentStack),Me=A,A=C.blockedBoundary,D=yn,it=Ot,Ot=Gs(Me,D,Oe,C.debugTask),Wm(Me,A,Pt,it,D,Ot,Oe,!1)}C.replay=Le}else{if(Oe!==Qm)throw Error(\"Expected the resume to render <Suspense> in this slot but instead it rendered <\"+(un(Oe)||\"Unknown\")+\">. The tree doesn\\'t match so React will fallback to client rendering.\");e:{Le=void 0,Oe=Ot[5],it=Ot[2],ee=Ot[3],ce=Ot[4]===null?[]:Ot[4][2],Ot=Ot[4]===null?null:Ot[4][3];var qt=C.keyPath,ft=C.replay,gr=C.blockedBoundary,Dn=C.hoistableState,Rn=Me.children,wn=Me.fallback,Ca=new Set;Me=C.formatContext.insertionMode<Ki?dp(A,Ca,J(),J()):dp(A,Ca,null,null),Me.parentFlushed=!0,Me.rootSegmentID=Oe,C.blockedBoundary=Me,C.hoistableState=Me.contentState,C.keyPath=D,C.replay={nodes:it,slots:ee,pendingTasks:1};try{if(tu(A,C,Rn,-1),C.replay.pendingTasks===1&&0<C.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");if(C.replay.pendingTasks--,Me.pendingTasks===0&&Me.status===cd){Me.status=Ai,A.completedBoundaries.push(Me);break e}}catch(yn){Me.status=Ha,Pt=Hm(C.componentStack),Le=Gs(A,yn,Pt,C.debugTask),zm(Me,Le,yn,Pt,!1),C.replay.pendingTasks--,A.clientRenderedBoundaries.push(Me)}finally{C.blockedBoundary=gr,C.hoistableState=Dn,C.replay=ft,C.keyPath=qt}Me=SE(A,null,{nodes:ce,slots:Ot,pendingTasks:0},wn,-1,gr,Me.fallbackState,Ca,[D[0],\"Suspense Fallback\",D[2]],C.formatContext,C.context,C.treeContext,C.componentStack,!0,hl,C.debugTask),Fm(Me),A.pingedTasks.push(Me)}}de.splice(St,1);break}}}function as(A,C,D,ee){C.replay!==null&&typeof C.replay.slots==\"number\"?z1(A,C,C.replay.slots,D,ee):(C.node=D,C.childIndex=ee,D=C.componentStack,ee=C.debugTask,Fm(C),nd(A,C),C.componentStack=D,C.debugTask=ee)}function nd(A,C){var D=C.node,ee=C.childIndex;if(D!==null){if(typeof D==\"object\"){switch(D.$$typeof){case Kg:var ce=D.type,de=D.key;D=D.props;var Oe=D.ref;Oe=Oe!==void 0?Oe:null;var Me=C.debugTask,it=un(ce);de=de??(ee===-1?0:ee);var Le=[C.keyPath,it,de];C.replay!==null?Me?Me.run(jm.bind(null,A,C,Le,it,de,ee,ce,D,Oe,C.replay)):jm(A,C,Le,it,de,ee,ce,D,Oe,C.replay):Me?Me.run(Rh.bind(null,A,C,Le,ce,D,Oe)):Rh(A,C,Le,ce,D,Oe);return;case CE:throw Error(\"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.\");case qs:if(D=xp(D),A.status===12)throw null;as(A,C,D,ee);return}if(ul(D)){mc(A,C,D,ee);return}if(D===null||typeof D!=\"object\"?de=null:(ce=J1&&D[J1]||D[\"@@iterator\"],de=typeof ce==\"function\"?ce:null),de&&(ce=de.call(D))){if(ce===D?(ee!==-1||C.componentStack===null||typeof C.componentStack.type!=\"function\"||Object.prototype.toString.call(C.componentStack.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(ce)!==\"[object Generator]\")&&(e2||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),e2=!0):D.entries!==de||vb||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),vb=!0),D=ce.next(),!D.done){de=[];do de.push(D.value),D=ce.next();while(!D.done);mc(A,C,de,ee)}return}if(typeof D.then==\"function\")return C.thenableState=null,as(A,C,hc(D),ee);if(D.$$typeof===Z1)return as(A,C,D._currentValue2,ee);throw A=Object.prototype.toString.call(D),Error(\"Objects are not valid as a React child (found: \"+(A===\"[object Object]\"?\"object with keys {\"+Object.keys(D).join(\", \")+\"}\":A)+\"). If you meant to render a collection of children, use an array instead.\")}typeof D==\"string\"?(C=C.blockedSegment,C!==null&&(C.lastPushedText=On(C.chunks,D,A.renderState,C.lastPushedText))):typeof D==\"number\"||typeof D==\"bigint\"?(C=C.blockedSegment,C!==null&&(C.lastPushedText=On(C.chunks,\"\"+D,A.renderState,C.lastPushedText))):(typeof D==\"function\"&&(A=D.displayName||D.name||\"Component\",console.error(\"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\",A,A)),typeof D==\"symbol\"&&console.error(`Symbols are not valid as a React child.\\n  %s`,String(D)))}}function mc(A,C,D,ee){var ce=C.keyPath,de=C.componentStack,Oe=C.debugTask;if(H1(C,C.node._debugInfo),ee!==-1&&(C.keyPath=[C.keyPath,\"Fragment\",ee],C.replay!==null)){for(var Me=C.replay,it=Me.nodes,Le=0;Le<it.length;Le++){var St=it[Le];if(St[1]===ee){ee=St[2],St=St[3],C.replay={nodes:ee,slots:St,pendingTasks:1};try{if(mc(A,C,D,-1),C.replay.pendingTasks===1&&0<C.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");C.replay.pendingTasks--}catch(Rn){if(typeof Rn==\"object\"&&Rn!==null&&(Rn===vp||typeof Rn.then==\"function\"))throw Rn;C.replay.pendingTasks--;var Ot=Hm(C.componentStack);D=C.blockedBoundary;var Pt=Rn,qt=St;St=Gs(A,Pt,Ot,C.debugTask),Wm(A,D,ee,qt,Pt,St,Ot,!1)}C.replay=Me,it.splice(Le,1);break}}C.keyPath=ce,C.componentStack=de,C.debugTask=Oe;return}if(Me=C.treeContext,it=D.length,C.replay!==null&&(Le=C.replay.slots,Le!==null&&typeof Le==\"object\")){for(ee=0;ee<it;ee++)St=D[ee],C.treeContext=bo(Me,it,ee),Pt=Le[ee],typeof Pt==\"number\"?(z1(A,C,Pt,St,ee),delete Le[ee]):tu(A,C,St,ee);C.treeContext=Me,C.keyPath=ce,C.componentStack=de,C.debugTask=Oe;return}for(Le=0;Le<it;Le++){if(ee=D[Le],qt=A,St=C,Pt=ee,Pt!==null&&typeof Pt==\"object\"&&(Pt.$$typeof===Kg||Pt.$$typeof===CE)&&Pt._store&&(!Pt._store.validated&&Pt.key==null||Pt._store.validated===2)){if(typeof Pt._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");if(Pt._store.validated=1,Ot=qt.didWarnForKey,Ot==null&&(Ot=qt.didWarnForKey=new WeakSet),qt=St.componentStack,qt!==null&&!Ot.has(qt)){Ot.add(qt);var ft=un(Pt.type);Ot=Pt._owner;var gr=qt.owner;if(qt=\"\",gr&&typeof gr.type<\"u\"){var Dn=un(gr.type);Dn&&(qt=`\\n\\nCheck the render method of \\\\``+Dn+\"`.\")}qt||ft&&(qt=`\\n\\nCheck the top-level render call using <`+ft+\">.\"),ft=\"\",Ot!=null&&gr!==Ot&&(gr=null,typeof Ot.type<\"u\"?gr=un(Ot.type):typeof Ot.name==\"string\"&&(gr=Ot.name),gr&&(ft=\" It was passed a child from \"+gr+\".\")),Ot=St.componentStack,St.componentStack={parent:St.componentStack,type:Pt.type,owner:Pt._owner,stack:Pt._debugStack},console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',qt,ft),St.componentStack=Ot}}C.treeContext=bo(Me,it,Le),tu(A,C,ee,Le)}C.treeContext=Me,C.keyPath=ce,C.componentStack=de,C.debugTask=Oe}function jg(A,C){A=A.trackedPostpones,A!==null&&(C=C.trackedContentKeyPath,C!==null&&(C=A.workingMap.get(C),C!==void 0&&(C.length=4,C[2]=[],C[3]=null)))}function N5(A,C,D){return SE(A,D,C.replay,C.node,C.childIndex,C.blockedBoundary,C.hoistableState,C.abortSet,C.keyPath,C.formatContext,C.context,C.treeContext,C.componentStack,C.isFallback,hl,C.debugTask)}function P5(A,C,D){var ee=C.blockedSegment,ce=zg(A,ee.chunks.length,null,C.formatContext,ee.lastPushedText,!0);return ee.children.push(ce),ee.lastPushedText=!1,F1(A,D,C.node,C.childIndex,C.blockedBoundary,ce,C.blockedPreamble,C.hoistableState,C.abortSet,C.keyPath,C.formatContext,C.context,C.treeContext,C.componentStack,C.isFallback,hl,C.debugTask)}function tu(A,C,D,ee){var ce=C.formatContext,de=C.context,Oe=C.keyPath,Me=C.treeContext,it=C.componentStack,Le=C.debugTask,St=C.blockedSegment;if(St===null)try{return as(A,C,D,ee)}catch(qt){if(Vs(),D=qt===vp?Yt():qt,typeof D==\"object\"&&D!==null){if(typeof D.then==\"function\"){ee=Yr(),A=N5(A,C,ee).ping,D.then(A,A),C.formatContext=ce,C.context=de,C.keyPath=Oe,C.treeContext=Me,C.componentStack=it,C.debugTask=Le,Nr(de);return}if(D.message===\"Maximum call stack size exceeded\"){D=Yr(),D=N5(A,C,D),A.pingedTasks.push(D),C.formatContext=ce,C.context=de,C.keyPath=Oe,C.treeContext=Me,C.componentStack=it,C.debugTask=Le,Nr(de);return}}}else{var Ot=St.children.length,Pt=St.chunks.length;try{return as(A,C,D,ee)}catch(qt){if(Vs(),St.children.length=Ot,St.chunks.length=Pt,D=qt===vp?Yt():qt,typeof D==\"object\"&&D!==null){if(typeof D.then==\"function\"){ee=Yr(),A=P5(A,C,ee).ping,D.then(A,A),C.formatContext=ce,C.context=de,C.keyPath=Oe,C.treeContext=Me,C.componentStack=it,C.debugTask=Le,Nr(de);return}if(D.message===\"Maximum call stack size exceeded\"){D=Yr(),D=P5(A,C,D),A.pingedTasks.push(D),C.formatContext=ce,C.context=de,C.keyPath=Oe,C.treeContext=Me,C.componentStack=it,C.debugTask=Le,Nr(de);return}}}}throw C.formatContext=ce,C.context=de,C.keyPath=Oe,C.treeContext=Me,Nr(de),D}function Wg(A){var C=A.blockedBoundary;A=A.blockedSegment,A!==null&&(A.status=3,Gg(this,C,A))}function Wm(A,C,D,ee,ce,de,Oe,Me){for(var it=0;it<D.length;it++){var Le=D[it];if(Le.length===4)Wm(A,C,Le[2],Le[3],ce,de,Oe,Me);else{var St=A;Le=Le[5];var Ot=ce,Pt=de,qt=Oe,ft=Me,gr=dp(St,new Set,null,null);gr.parentFlushed=!0,gr.rootSegmentID=Le,gr.status=Ha,zm(gr,Pt,Ot,qt,ft),gr.parentFlushed&&St.clientRenderedBoundaries.push(gr)}}if(D.length=0,ee!==null){if(C===null)throw Error(\"We should not have any resumable nodes in the shell. This is a bug in React.\");if(C.status!==Ha&&(C.status=Ha,zm(C,de,ce,Oe,Me),C.parentFlushed&&A.clientRenderedBoundaries.push(C)),typeof ee==\"object\")for(var Dn in ee)delete ee[Dn]}}function wu(A,C,D){var ee=A.blockedBoundary,ce=A.blockedSegment;if(ce!==null){if(ce.status===6)return;ce.status=3}if(ce=Hm(A.componentStack),ee===null){if(C.status!==13&&C.status!==_s){if(ee=A.replay,ee===null){Gs(C,D,ce,null),fp(C,D,ce,null);return}ee.pendingTasks--,ee.pendingTasks===0&&0<ee.nodes.length&&(A=Gs(C,D,ce,null),Wm(C,null,ee.nodes,ee.slots,D,A,ce,!0)),C.pendingRootTasks--,C.pendingRootTasks===0&&Ih(C)}}else ee.pendingTasks--,ee.status!==Ha&&(ee.status=Ha,A=Gs(C,D,ce,null),ee.status=Ha,zm(ee,A,D,ce,!0),jg(C,ee),ee.parentFlushed&&C.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(de){return wu(de,C,D)}),ee.fallbackAbortableTasks.clear();C.allPendingTasks--,C.allPendingTasks===0&&Vg(C)}function j1(A,C){try{var D=A.renderState,ee=D.onHeaders;if(ee){var ce=D.headers;if(ce){D.headers=null;var de=ce.preconnects;if(ce.fontPreloads&&(de&&(de+=\", \"),de+=ce.fontPreloads),ce.highImagePreloads&&(de&&(de+=\", \"),de+=ce.highImagePreloads),!C){var Oe=D.styles.values(),Me=Oe.next();e:for(;0<ce.remainingCapacity&&!Me.done;Me=Oe.next())for(var it=Me.value.sheets.values(),Le=it.next();0<ce.remainingCapacity&&!Le.done;Le=it.next()){var St=Le.value,Ot=St.props,Pt=Ot.href,qt=St.props,ft=ue(qt.href,\"style\",{crossOrigin:qt.crossOrigin,integrity:qt.integrity,nonce:qt.nonce,type:qt.type,fetchPriority:qt.fetchPriority,referrerPolicy:qt.referrerPolicy,media:qt.media});if(0<=(ce.remainingCapacity-=ft.length+2))D.resets.style[Pt]=Zs,de&&(de+=\", \"),de+=ft,D.resets.style[Pt]=typeof Ot.crossOrigin==\"string\"||typeof Ot.integrity==\"string\"?[Ot.crossOrigin,Ot.integrity]:Zs;else break e}}ee(de?{Link:de}:{})}}}catch(gr){Gs(A,gr,{},null)}}function Ih(A){A.trackedPostpones===null&&j1(A,!0),A.trackedPostpones===null&&Vm(A),A.onShellError=lp,A=A.onShellReady,A()}function Vg(A){j1(A,A.trackedPostpones===null?!0:A.completedRootSegment===null||A.completedRootSegment.status!==Wh),Vm(A),A=A.onAllReady,A()}function Oh(A,C){if(C.chunks.length===0&&C.children.length===1&&C.children[0].boundary===null&&C.children[0].id===-1){var D=C.children[0];D.id=C.id,D.parentFlushed=!0,D.status===Ai&&Oh(A,D)}else A.completedSegments.push(C)}function Gg(A,C,D){if(C===null){if(D!==null&&D.parentFlushed){if(A.completedRootSegment!==null)throw Error(\"There can only be one root segment. This is a bug in React.\");A.completedRootSegment=D}A.pendingRootTasks--,A.pendingRootTasks===0&&Ih(A)}else C.pendingTasks--,C.status!==Ha&&(C.pendingTasks===0?(C.status===cd&&(C.status=Ai),D!==null&&D.parentFlushed&&D.status===Ai&&Oh(C,D),C.parentFlushed&&A.completedBoundaries.push(C),C.status===Ai&&(C.fallbackAbortableTasks.forEach(Wg,A),C.fallbackAbortableTasks.clear(),A.pendingRootTasks===0&&A.trackedPostpones===null&&C.contentPreamble!==null&&Vm(A))):D!==null&&D.parentFlushed&&D.status===Ai&&(Oh(C,D),C.completedSegments.length===1&&C.parentFlushed&&A.partialBoundaries.push(C)));A.allPendingTasks--,A.allPendingTasks===0&&Vg(A)}function sl(A){if(A.status!==_s&&A.status!==13){var C=ml,D=Ys.H;Ys.H=pb;var ee=Ys.A;Ys.A=p3;var ce=Wo;Wo=A;var de=Ys.getCurrentStack;Ys.getCurrentStack=Um;var Oe=hy;hy=A.resumableState;try{var Me=A.pingedTasks,it;for(it=0;it<Me.length;it++){var Le=A,St=Me[it],Ot=St.blockedSegment;if(Ot===null){var Pt=void 0,qt=Le;if(Le=St,Le.replay.pendingTasks!==0){Nr(Le.context),Pt=gl,gl=Le;try{if(typeof Le.replay.slots==\"number\"?z1(qt,Le,Le.replay.slots,Le.node,Le.childIndex):nd(qt,Le),Le.replay.pendingTasks===1&&0<Le.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");Le.replay.pendingTasks--,Le.abortSet.delete(Le),Gg(qt,Le.blockedBoundary,null)}catch(_){Vs();var ft=_===vp?Yt():_;if(typeof ft==\"object\"&&ft!==null&&typeof ft.then==\"function\"){var gr=Le.ping;ft.then(gr,gr),Le.thenableState=Yr()}else{Le.replay.pendingTasks--,Le.abortSet.delete(Le);var Dn=Hm(Le.componentStack),Rn=void 0,wn=qt,Ca=Le.blockedBoundary,yn=qt.status===12?qt.fatalError:ft,Hn=Dn,Mo=Le.replay.nodes,fa=Le.replay.slots;Rn=Gs(wn,yn,Hn,Le.debugTask),Wm(wn,Ca,Mo,fa,yn,Rn,Hn,!1),qt.pendingRootTasks--,qt.pendingRootTasks===0&&Ih(qt),qt.allPendingTasks--,qt.allPendingTasks===0&&Vg(qt)}}finally{gl=Pt}}}else if(qt=Pt=void 0,Rn=St,wn=Ot,wn.status===cd){wn.status=6,Nr(Rn.context),qt=gl,gl=Rn;var Ra=wn.children.length,Di=wn.chunks.length;try{nd(Le,Rn),rr(wn.chunks,Le.renderState,wn.lastPushedText,wn.textEmbedded),Rn.abortSet.delete(Rn),wn.status=Ai,Gg(Le,Rn.blockedBoundary,wn)}catch(_){Vs(),wn.children.length=Ra,wn.chunks.length=Di;var ni=_===vp?Yt():Le.status===12?Le.fatalError:_;if(typeof ni==\"object\"&&ni!==null&&typeof ni.then==\"function\"){wn.status=cd,Rn.thenableState=Yr();var Su=Rn.ping;ni.then(Su,Su)}else{var _c=Hm(Rn.componentStack);Rn.abortSet.delete(Rn),wn.status=4;var Wr=Rn.blockedBoundary,E=Rn.debugTask;Pt=Gs(Le,ni,_c,E),Wr===null?fp(Le,ni,_c,E):(Wr.pendingTasks--,Wr.status!==Ha&&(Wr.status=Ha,zm(Wr,Pt,ni,_c,!1),jg(Le,Wr),Wr.parentFlushed&&Le.clientRenderedBoundaries.push(Wr),Le.pendingRootTasks===0&&Le.trackedPostpones===null&&Wr.contentPreamble!==null&&Vm(Le))),Le.allPendingTasks--,Le.allPendingTasks===0&&Vg(Le)}}finally{gl=qt}}}Me.splice(0,it),A.destination!==null&&q1(A,A.destination)}catch(_){Me={},Gs(A,_,Me,null),fp(A,_,Me,null)}finally{hy=Oe,Ys.H=D,Ys.A=ee,Ys.getCurrentStack=de,D===pb&&Nr(C),Wo=ce}}}function gc(A,C,D){C.preambleChildren.length&&D.push(C.preambleChildren);for(var ee=!1,ce=0;ce<C.children.length;ce++)ee=W1(A,C.children[ce],D)||ee;return ee}function W1(A,C,D){var ee=C.boundary;if(ee===null)return gc(A,C,D);var ce=ee.contentPreamble,de=ee.fallbackPreamble;if(ce===null||de===null)return!1;switch(ee.status){case Ai:if(Ye(A.renderState,ce),C=ee.completedSegments[0],!C)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return gc(A,C,D);case Wh:if(A.trackedPostpones!==null)return!0;case Ha:if(C.status===Ai)return Ye(A.renderState,de),gc(A,C,D);default:return!0}}function Vm(A){if(A.completedRootSegment&&A.completedPreambleSegments===null){var C=[],D=W1(A,A.completedRootSegment,C),ee=A.renderState.preamble;(D===!1||ee.headChunks&&ee.bodyChunks)&&(A.completedPreambleSegments=C)}}function qg(A,C,D,ee){switch(D.parentFlushed=!0,D.status){case cd:D.id=A.nextSegmentId++;case Wh:return ee=D.id,D.lastPushedText=!1,D.textEmbedded=!1,A=A.renderState,C.push(ME),C.push(A.placeholderPrefix),A=ee.toString(16),C.push(A),C.push(MP);case Ai:D.status=bb;var ce=!0,de=D.chunks,Oe=0;D=D.children;for(var Me=0;Me<D.length;Me++){for(ce=D[Me];Oe<ce.index;Oe++)C.push(de[Oe]);ce=Gm(A,C,ce,ee)}for(;Oe<de.length-1;Oe++)C.push(de[Oe]);return Oe<de.length&&(ce=C.push(de[Oe])),ce;default:throw Error(\"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.\")}}function Gm(A,C,D,ee){var ce=D.boundary;if(ce===null)return qg(A,C,D,ee);if(ce.parentFlushed=!0,ce.status===Ha){if(!A.renderState.generateStaticMarkup){var de=ce.errorDigest,Oe=ce.errorMessage,Me=ce.errorStack,it=ce.errorComponentStack;C.push(xc),C.push(DE),de&&(C.push(od),de=V(de),C.push(de),C.push(Yi)),Oe&&(C.push(r0),Oe=V(Oe),C.push(Oe),C.push(Yi)),Me&&(C.push(id),Me=V(Me),C.push(Me),C.push(Yi)),it&&(C.push(LE),it=V(it),C.push(it),C.push(Yi)),C.push(oy)}return qg(A,C,D,ee),A.renderState.generateStaticMarkup?C=!0:((A=ce.fallbackPreamble)&&ht(C,A),C=C.push(so)),C}if(ce.status!==Ai)return ce.status===cd&&(ce.rootSegmentID=A.nextSegmentId++),0<ce.completedSegments.length&&A.partialBoundaries.push(ce),At(C,A.renderState,ce.rootSegmentID),ee&&(ce=ce.fallbackState,ce.styles.forEach(Sn,ee),ce.stylesheets.forEach(Gt,ee)),qg(A,C,D,ee),C.push(so);if(ce.byteSize>A.progressiveChunkSize)return ce.rootSegmentID=A.nextSegmentId++,A.completedBoundaries.push(ce),At(C,A.renderState,ce.rootSegmentID),qg(A,C,D,ee),C.push(so);if(ee&&(D=ce.contentState,D.styles.forEach(Sn,ee),D.stylesheets.forEach(Gt,ee)),A.renderState.generateStaticMarkup||C.push(Js),D=ce.completedSegments,D.length!==1)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return Gm(A,C,D[0],ee),A.renderState.generateStaticMarkup?C=!0:((A=ce.contentPreamble)&&ht(C,A),C=C.push(so)),C}function V1(A,C,D,ee){return et(C,A.renderState,D.parentFormatContext,D.id),Gm(A,C,D,ee),fn(C,D.parentFormatContext)}function G1(A,C,D){for(var ee=D.completedSegments,ce=0;ce<ee.length;ce++)Cw(A,C,D,ee[ce]);ee.length=0,Xt(C,D.contentState,A.renderState),ee=A.resumableState,A=A.renderState,ce=D.rootSegmentID,D=D.contentState;var de=A.stylesToHoist;return A.stylesToHoist=!1,C.push(A.startInlineScript),de?(ee.instructions&Jg)===mp?(ee.instructions=ee.instructions|Dh|Jg,C.push(J5)):(ee.instructions&Dh)===mp?(ee.instructions|=Dh,C.push(sy)):C.push(Au):(ee.instructions&Jg)===mp?(ee.instructions|=Jg,C.push(ab)):C.push(WE),ee=ce.toString(16),C.push(A.boundaryPrefix),C.push(ee),C.push(VE),C.push(A.segmentPrefix),C.push(ee),de?(C.push(X5),Hr(C,D)):C.push(e4),D=C.push($5),lt(C,A)&&D}function Cw(A,C,D,ee){if(ee.status===bb)return!0;var ce=D.contentState,de=ee.id;if(de===-1){if((ee.id=D.rootSegmentID)===-1)throw Error(\"A root segment ID must have been assigned by now. This is a bug in React.\");return V1(A,C,ee,ce)}return de===D.rootSegmentID?V1(A,C,ee,ce):(V1(A,C,ee,ce),D=A.resumableState,A=A.renderState,C.push(A.startInlineScript),(D.instructions&z5)===mp?(D.instructions|=z5,C.push(ay)):C.push($R),C.push(A.segmentPrefix),de=de.toString(16),C.push(de),C.push(zE),C.push(A.placeholderPrefix),C.push(de),C=C.push(jE),C)}function q1(A,C){try{if(!(0<A.pendingRootTasks)){var D,ee=A.completedRootSegment;if(ee!==null){if(ee.status===Wh)return;var ce=A.completedPreambleSegments;if(ce===null)return;var de=A.renderState,Oe=de.preamble,Me=Oe.htmlChunks,it=Oe.headChunks,Le;if(Me){for(Le=0;Le<Me.length;Le++)C.push(Me[Le]);if(it)for(Le=0;Le<it.length;Le++)C.push(it[Le]);else{var St=De(\"head\");C.push(St),C.push(Mi)}}else if(it)for(Le=0;Le<it.length;Le++)C.push(it[Le]);var Ot=de.charsetChunks;for(Le=0;Le<Ot.length;Le++)C.push(Ot[Le]);Ot.length=0,de.preconnects.forEach(sr,C),de.preconnects.clear();var Pt=de.viewportChunks;for(Le=0;Le<Pt.length;Le++)C.push(Pt[Le]);Pt.length=0,de.fontPreloads.forEach(sr,C),de.fontPreloads.clear(),de.highImagePreloads.forEach(sr,C),de.highImagePreloads.clear(),de.styles.forEach(Fr,C);var qt=de.importMapChunks;for(Le=0;Le<qt.length;Le++)C.push(qt[Le]);qt.length=0,de.bootstrapScripts.forEach(sr,C),de.scripts.forEach(sr,C),de.scripts.clear(),de.bulkPreloads.forEach(sr,C),de.bulkPreloads.clear();var ft=de.hoistableChunks;for(Le=0;Le<ft.length;Le++)C.push(ft[Le]);for(de=ft.length=0;de<ce.length;de++){var gr=ce[de];for(Oe=0;Oe<gr.length;Oe++)Gm(A,C,gr[Oe],null)}var Dn=A.renderState.preamble,Rn=Dn.headChunks;if(Dn.htmlChunks||Rn){var wn=gt(\"head\");C.push(wn)}var Ca=Dn.bodyChunks;if(Ca)for(ce=0;ce<Ca.length;ce++)C.push(Ca[ce]);Gm(A,C,ee,null),A.completedRootSegment=null,lt(C,A.renderState)}var yn=A.renderState;ee=0;var Hn=yn.viewportChunks;for(ee=0;ee<Hn.length;ee++)C.push(Hn[ee]);Hn.length=0,yn.preconnects.forEach(sr,C),yn.preconnects.clear(),yn.fontPreloads.forEach(sr,C),yn.fontPreloads.clear(),yn.highImagePreloads.forEach(sr,C),yn.highImagePreloads.clear(),yn.styles.forEach(io,C),yn.scripts.forEach(sr,C),yn.scripts.clear(),yn.bulkPreloads.forEach(sr,C),yn.bulkPreloads.clear();var Mo=yn.hoistableChunks;for(ee=0;ee<Mo.length;ee++)C.push(Mo[ee]);Mo.length=0;var fa=A.clientRenderedBoundaries;for(D=0;D<fa.length;D++){var Ra=fa[D];yn=C;var Di=A.resumableState,ni=A.renderState,Su=Ra.rootSegmentID,_c=Ra.errorDigest,Wr=Ra.errorMessage,E=Ra.errorStack,_=Ra.errorComponentStack;yn.push(ni.startInlineScript),(Di.instructions&dl)===mp?(Di.instructions|=dl,yn.push(GE)):yn.push(e3),yn.push(ni.boundaryPrefix);var L=Su.toString(16);if(yn.push(L),yn.push(qE),_c||Wr||E||_){yn.push(sb);var X=Zt(_c||\"\");yn.push(X)}if(Wr||E||_){yn.push(sb);var se=Zt(Wr||\"\");yn.push(se)}if(E||_){yn.push(sb);var le=Zt(E||\"\");yn.push(le)}if(_){yn.push(sb);var Ae=Zt(_);yn.push(Ae)}var Ce=yn.push(KE);if(!Ce){A.destination=null,D++,fa.splice(0,D);return}}fa.splice(0,D);var He=A.completedBoundaries;for(D=0;D<He.length;D++)if(!G1(A,C,He[D])){A.destination=null,D++,He.splice(0,D);return}He.splice(0,D);var ke=A.partialBoundaries;for(D=0;D<ke.length;D++){e:{fa=A,Ra=C;var yt=ke[D],pt=yt.completedSegments;for(Ce=0;Ce<pt.length;Ce++)if(!Cw(fa,Ra,yt,pt[Ce])){Ce++,pt.splice(0,Ce);var It=!1;break e}pt.splice(0,Ce),It=Xt(Ra,yt.contentState,fa.renderState)}if(!It){A.destination=null,D++,ke.splice(0,D);return}}ke.splice(0,D);var xt=A.completedBoundaries;for(D=0;D<xt.length;D++)if(!G1(A,C,xt[D])){A.destination=null,D++,xt.splice(0,D);return}xt.splice(0,D)}}finally{A.allPendingTasks===0&&A.pingedTasks.length===0&&A.clientRenderedBoundaries.length===0&&A.completedBoundaries.length===0&&(A.flushScheduled=!1,D=A.resumableState,D.hasBody&&(ke=gt(\"body\"),C.push(ke)),D.hasHtml&&(D=gt(\"html\"),C.push(D)),A.abortableTasks.size!==0&&console.error(\"There was still abortable task at the root when we closed. This is a bug in React.\"),A.status=_s,C.push(null),A.destination=null)}}function TE(A){A.flushScheduled=A.destination!==null,sl(A),A.status===10&&(A.status=11),A.trackedPostpones===null&&j1(A,A.pendingRootTasks===0)}function qm(A){if(A.flushScheduled===!1&&A.pingedTasks.length===0&&A.destination!==null){A.flushScheduled=!0;var C=A.destination;C?q1(A,C):A.flushScheduled=!1}}function Km(A,C){if(A.status===13)A.status=_s,C.destroy(A.fatalError);else if(A.status!==_s&&A.destination===null){A.destination=C;try{q1(A,C)}catch(D){C={},Gs(A,D,C,null),fp(A,D,C,null)}}}function Rw(A,C){(A.status===11||A.status===10)&&(A.status=12);try{var D=A.abortableTasks;if(0<D.size){var ee=C===void 0?Error(\"The render was aborted by the server without a reason.\"):typeof C==\"object\"&&C!==null&&typeof C.then==\"function\"?Error(\"The render was aborted by the server with a promise.\"):C;A.fatalError=ee,D.forEach(function(ce){return wu(ce,A,ee)}),D.clear()}A.destination!==null&&q1(A,A.destination)}catch(ce){C={},Gs(A,ce,C,null),fp(A,ce,C,null)}}function K1(){}function Iw(A,C,D,ee){var ce=!1,de=null,Oe=\"\",Me=!1;if(C=oe(C?C.identifierPrefix:void 0),A=Sw(A,C,mn(C,D),re(Xg,null,0),1/0,K1,void 0,function(){Me=!0},void 0,void 0,void 0),TE(A),Rw(A,ee),Km(A,{push:function(it){return it!==null&&(Oe+=it),!0},destroy:function(it){ce=!0,de=it}}),ce&&de!==ee)throw de;if(!Me)throw Error(\"A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.\");return Oe}var M5=$e(),GR=Ny(),Kg=Symbol.for(\"react.transitional.element\"),CE=Symbol.for(\"react.portal\"),Ym=Symbol.for(\"react.fragment\"),Yg=Symbol.for(\"react.strict_mode\"),Zm=Symbol.for(\"react.profiler\"),D5=Symbol.for(\"react.provider\"),Y1=Symbol.for(\"react.consumer\"),Z1=Symbol.for(\"react.context\"),kh=Symbol.for(\"react.forward_ref\"),Qm=Symbol.for(\"react.suspense\"),uf=Symbol.for(\"react.suspense_list\"),lf=Symbol.for(\"react.memo\"),qs=Symbol.for(\"react.lazy\"),cl=Symbol.for(\"react.scope\"),Zg=Symbol.for(\"react.activity\"),Jm=Symbol.for(\"react.legacy_hidden\"),Q1=Symbol.for(\"react.memo_cache_sentinel\"),Es=Symbol.for(\"react.view_transition\"),J1=Symbol.iterator,ul=Array.isArray,ll=new WeakMap,RE=new WeakMap,Ow=Symbol.for(\"react.client.reference\"),da=Object.assign,Io=Object.prototype.hasOwnProperty,PP=RegExp(\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),kw={},yc={},L5=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),IE=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),X1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Nh={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0},Ph={},B5=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Xm=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),nu=!1,bc={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},As={},zo=/^on./,Zr=/^on[^A-Z]/,U5=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),$m=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),F5=/^(?:webkit|moz|o)[A-Z]/,qR=/^-ms-/,Nw=/-(.)/g,$1=/;\\\\s*$/,e0={},rd={},H5=!1,Pw=!1,Mh=/[\"\\'&<>]/,hp=/([A-Z])/g,Ks=/^ms-/,OE=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,Ys=M5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mw=GR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qg=Object.freeze({pending:!1,data:null,method:null,action:null}),vo=Mw.d;Mw.d={f:vo.f,r:vo.r,D:function(A){var C=Wo||null;if(C){var D=C.resumableState,ee=C.renderState;if(typeof A==\"string\"&&A){if(!D.dnsResources.hasOwnProperty(A)){D.dnsResources[A]=ei,D=ee.headers;var ce,de;(de=D&&0<D.remainingCapacity)&&(de=(ce=\"<\"+Ie(A)+\">; rel=dns-prefetch\",0<=(D.remainingCapacity-=ce.length+2))),de?(ee.resets.dns[A]=ei,D.preconnects&&(D.preconnects+=\", \"),D.preconnects+=ce):(ce=[],te(ce,{href:A,rel:\"dns-prefetch\"}),ee.preconnects.add(ce))}qm(C)}}else vo.D(A)},C:function(A,C){var D=Wo||null;if(D){var ee=D.resumableState,ce=D.renderState;if(typeof A==\"string\"&&A){var de=C===\"use-credentials\"?\"credentials\":typeof C==\"string\"?\"anonymous\":\"default\";if(!ee.connectResources[de].hasOwnProperty(A)){ee.connectResources[de][A]=ei,ee=ce.headers;var Oe,Me;if(Me=ee&&0<ee.remainingCapacity){if(Me=\"<\"+Ie(A)+\">; rel=preconnect\",typeof C==\"string\"){var it=ot(C,\"crossOrigin\");Me+=\\'; crossorigin=\"\\'+it+\\'\"\\'}Me=(Oe=Me,0<=(ee.remainingCapacity-=Oe.length+2))}Me?(ce.resets.connect[de][A]=ei,ee.preconnects&&(ee.preconnects+=\", \"),ee.preconnects+=Oe):(de=[],te(de,{rel:\"preconnect\",href:A,crossOrigin:C}),ce.preconnects.add(de))}qm(D)}}else vo.C(A,C)},L:function(A,C,D){var ee=Wo||null;if(ee){var ce=ee.resumableState,de=ee.renderState;if(C&&A){switch(C){case\"image\":if(D)var Oe=D.imageSrcSet,Me=D.imageSizes,it=D.fetchPriority;var Le=Oe?Oe+`\\n`+(Me||\"\"):A;if(ce.imageResources.hasOwnProperty(Le))return;ce.imageResources[Le]=Zs,ce=de.headers;var St;ce&&0<ce.remainingCapacity&&typeof Oe!=\"string\"&&it===\"high\"&&(St=ue(A,C,D),0<=(ce.remainingCapacity-=St.length+2))?(de.resets.image[Le]=Zs,ce.highImagePreloads&&(ce.highImagePreloads+=\", \"),ce.highImagePreloads+=St):(ce=[],te(ce,da({rel:\"preload\",href:Oe?void 0:A,as:C},D)),it===\"high\"?de.highImagePreloads.add(ce):(de.bulkPreloads.add(ce),de.preloads.images.set(Le,ce)));break;case\"style\":if(ce.styleResources.hasOwnProperty(A))return;Oe=[],te(Oe,da({rel:\"preload\",href:A,as:C},D)),ce.styleResources[A]=!D||typeof D.crossOrigin!=\"string\"&&typeof D.integrity!=\"string\"?Zs:[D.crossOrigin,D.integrity],de.preloads.stylesheets.set(A,Oe),de.bulkPreloads.add(Oe);break;case\"script\":if(ce.scriptResources.hasOwnProperty(A))return;Oe=[],de.preloads.scripts.set(A,Oe),de.bulkPreloads.add(Oe),te(Oe,da({rel:\"preload\",href:A,as:C},D)),ce.scriptResources[A]=!D||typeof D.crossOrigin!=\"string\"&&typeof D.integrity!=\"string\"?Zs:[D.crossOrigin,D.integrity];break;default:if(ce.unknownResources.hasOwnProperty(C)){if(Oe=ce.unknownResources[C],Oe.hasOwnProperty(A))return}else Oe={},ce.unknownResources[C]=Oe;if(Oe[A]=Zs,(ce=de.headers)&&0<ce.remainingCapacity&&C===\"font\"&&(Le=ue(A,C,D),0<=(ce.remainingCapacity-=Le.length+2)))de.resets.font[A]=Zs,ce.fontPreloads&&(ce.fontPreloads+=\", \"),ce.fontPreloads+=Le;else switch(ce=[],A=da({rel:\"preload\",href:A,as:C},D),te(ce,A),C){case\"font\":de.fontPreloads.add(ce);break;default:de.bulkPreloads.add(ce)}}qm(ee)}}else vo.L(A,C,D)},m:function(A,C){var D=Wo||null;if(D){var ee=D.resumableState,ce=D.renderState;if(A){var de=C&&typeof C.as==\"string\"?C.as:\"script\";switch(de){case\"script\":if(ee.moduleScriptResources.hasOwnProperty(A))return;de=[],ee.moduleScriptResources[A]=!C||typeof C.crossOrigin!=\"string\"&&typeof C.integrity!=\"string\"?Zs:[C.crossOrigin,C.integrity],ce.preloads.moduleScripts.set(A,de);break;default:if(ee.moduleUnknownResources.hasOwnProperty(de)){var Oe=ee.unknownResources[de];if(Oe.hasOwnProperty(A))return}else Oe={},ee.moduleUnknownResources[de]=Oe;de=[],Oe[A]=Zs}te(de,da({rel:\"modulepreload\",href:A},C)),ce.bulkPreloads.add(de),qm(D)}}else vo.m(A,C)},X:function(A,C){var D=Wo||null;if(D){var ee=D.resumableState,ce=D.renderState;if(A){var de=ee.scriptResources.hasOwnProperty(A)?ee.scriptResources[A]:void 0;de!==ei&&(ee.scriptResources[A]=ei,C=da({src:A,async:!0},C),de&&(de.length===2&&la(C,de),A=ce.preloads.scripts.get(A))&&(A.length=0),A=[],ce.scripts.add(A),ye(A,C),qm(D))}}else vo.X(A,C)},S:function(A,C,D){var ee=Wo||null;if(ee){var ce=ee.resumableState,de=ee.renderState;if(A){C=C||\"default\";var Oe=de.styles.get(C),Me=ce.styleResources.hasOwnProperty(A)?ce.styleResources[A]:void 0;Me!==ei&&(ce.styleResources[A]=ei,Oe||(Oe={precedence:V(C),rules:[],hrefs:[],sheets:new Map},de.styles.set(C,Oe)),C={state:uy,props:da({rel:\"stylesheet\",href:A,\"data-precedence\":C},D)},Me&&(Me.length===2&&la(C.props,Me),(de=de.preloads.stylesheets.get(A))&&0<de.length?de.length=0:C.state=jw),Oe.sheets.set(A,C),qm(ee))}}else vo.S(A,C,D)},M:function(A,C){var D=Wo||null;if(D){var ee=D.resumableState,ce=D.renderState;if(A){var de=ee.moduleScriptResources.hasOwnProperty(A)?ee.moduleScriptResources[A]:void 0;de!==ei&&(ee.moduleScriptResources[A]=ei,C=da({src:A,type:\"module\",async:!0},C),de&&(de.length===2&&la(C,de),A=ce.preloads.moduleScripts.get(A))&&(A.length=0),A=[],ce.scripts.add(A),ye(A,C),qm(D))}}else vo.M(A,C)}};var mp=0,z5=1,Jg=2,dl=4,Dh=8,ei=null,Zs=[];Object.freeze(Zs);var Dw=/(<\\\\/|<)(s)(cript)/gi,kE={},NE=0,Xg=0,di=1,Ki=2,$g=3,Qs=4,df=5,Lw=6,t0=7,ey=8,eb=9,Fa=new Map,xu=\\' style=\"\\',Bw=\":\",j5=\";\",vc=\" \",fl=\\'=\"\\',wc=\\'\"\\',tb=\\'=\"\"\\',gp=V(\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"),Mi=\">\",Lh=\"/>\",Uw=!1,nb=!1,ty=!1,PE=!1,ny=!1,ry=!1,ru=!1,Bh=!1,pl=!1,Wn=!1,vt=!1,n0=`addEventListener(\"submit\",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute(\"formAction\");null!=f&&(e=f,b=null)}\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"===e&&(a.preventDefault(),b?(a=document.createElement(\"input\"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,rb=/(<\\\\/|<)(s)(tyle)/gi,Ei=`\\n`,ff=/^[a-zA-Z][a-zA-Z:_\\\\.\\\\-\\\\d]*$/,Fw=new Map,W5=new Map,ME=\\'<template id=\"\\',MP=\\'\"></template>\\',Js=\"<!--$-->\",Eu=\\'<!--$?--><template id=\"\\',ou=\\'\"></template>\\',xc=\"<!--$!-->\",so=\"<!--/$-->\",DE=\"<template\",Yi=\\'\"\\',od=\\' data-dgst=\"\\',r0=\\' data-msg=\"\\',id=\\' data-stck=\"\\',LE=\\' data-cstck=\"\\',oy=\"></template>\",BE=\"<!--\",ob=\"-->\",UE=\\'<div hidden id=\"\\',iy=\\'\">\\',V5=\"</div>\",Hw=\\'<svg aria-hidden=\"true\" style=\"display:none\" id=\"\\',zw=\\'\">\\',FE=\"</svg>\",KR=\\'<math aria-hidden=\"true\" style=\"display:none\" id=\"\\',G5=\\'\">\\',q5=\"</math>\",K5=\\'<table hidden id=\"\\',HE=\\'\">\\',YR=\"</table>\",Y5=\\'<table hidden><tbody id=\"\\',DP=\\'\">\\',Z5=\"</tbody></table>\",ZR=\\'<table hidden><tr id=\"\\',QR=\\'\">\\',Q5=\"</tr></table>\",JR=\\'<table hidden><colgroup id=\"\\',XR=\\'\">\\',ib=\"</colgroup></table>\",ay=\\'$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"\\',$R=\\'$RS(\"\\',zE=\\'\",\"\\',jE=\\'\")<\\\\/script>\\',ab=\\'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data=\"$!\",a.setAttribute(\"data-dgst\",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if(\"/$\"===d)if(0===f)break;else f--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data=\"$\"}b._reactRetry&&b._reactRetry()}};$RC(\"\\',WE=\\'$RC(\"\\',J5=`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data=\"$!\",a.setAttribute(\"data-dgst\",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if(\"/$\"===d)if(0===f)break;else f--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data=\"$\"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),x=[],k=0;b=h[k++];)\"not all\"===b.getAttribute(\"media\")?x.push(b):(\"LINK\"===b.tagName&&p.set(b.getAttribute(\"href\"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement(\"link\");a.href=\\nd;a.rel=\"stylesheet\";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute(\"media\");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\\nt,u,\"\"),w.bind(null,t,u,\"Resource failed to load\"))};$RR(\"`,sy=`$RM=new Map;\\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),x=[],k=0;b=h[k++];)\"not all\"===b.getAttribute(\"media\")?x.push(b):(\"LINK\"===b.tagName&&p.set(b.getAttribute(\"href\"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement(\"link\");a.href=\\nd;a.rel=\"stylesheet\";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute(\"media\");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\\nt,u,\"\"),w.bind(null,t,u,\"Resource failed to load\"))};$RR(\"`,Au=\\'$RR(\"\\',VE=\\'\",\"\\',X5=\\'\",\\',e4=\\'\"\\',$5=\")<\\\\/script>\",GE=\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX(\"\\',e3=\\'$RX(\"\\',qE=\\'\"\\',sb=\",\",KE=\")<\\\\/script>\",t3=/[<\\\\u2028\\\\u2029]/g,t4=/[&><\\\\u2028\\\\u2029]/g,n4=\\'<style media=\"not all\" data-precedence=\"\\',n3=\\'\" data-href=\"\\',r4=\\'\">\\',o4=\"</style>\",cb=!1,YE=!0,Uh=[],r3=\\'<style data-precedence=\"\\',i4=\\'\" data-href=\"\\',o3=\" \",cy=\\'\">\\',i3=\"</style>\",ZE=\"[\",a4=\",[\",a3=\",\",QE=\"]\",uy=0,jw=1,ub=2,s3=3,s4=/[<>\\\\r\\\\n]/g,Xs=/[\"\\';,\\\\r\\\\n]/g,JE=\"\",XE=Function.prototype.bind,Ww=Symbol.for(\"react.client.reference\"),hl={};Object.freeze(hl);var ly={},ml=null,c3={},Fh={},u3=new Set,Hh=new Set,yp=new Set,Vw=new Set,$E=new Set,dy=new Set,Gw=new Set,bp=new Set,o0=new Set,l3={enqueueSetState:function(A,C,D){var ee=A._reactInternals;ee.queue===null?kn(A,\"setState\"):(ee.queue.push(C),D!=null&&$l(D))},enqueueReplaceState:function(A,C,D){A=A._reactInternals,A.replace=!0,A.queue=[C],D!=null&&$l(D)},enqueueForceUpdate:function(A,C){A._reactInternals.queue===null?kn(A,\"forceUpdate\"):C!=null&&$l(C)}},d3={id:1,overflow:\"\"},qw=Math.clz32?Math.clz32:cp,eA=Math.log,f3=Math.LN2,vp=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),i0=null,Kw=typeof Object.is==\"function\"?Object.is:jr,pf=null,Ta=null,lb=null,Yw=null,Zw=null,ti=null,db=!1,fy=!1,Ec=0,zh=0,ad=-1,fb=0,jh=null,hf=null,py=0,sd=!1,a0,pb={readContext:ol,use:function(A){if(A!==null&&typeof A==\"object\"){if(typeof A.then==\"function\")return hc(A);if(A.$$typeof===Z1)return ol(A)}throw Error(\"An unsupported type was passed to use(): \"+String(A))},useContext:function(A){return a0=\"useContext\",Mn(),A._currentValue2},useMemo:Ua,useReducer:sf,useRef:function(A){pf=Mn(),ti=Ro();var C=ti.memoizedState;return C===null?(A={current:A},Object.seal(A),ti.memoizedState=A):C},useState:function(A){return a0=\"useState\",sf(xi,A)},useInsertionEffect:eu,useLayoutEffect:eu,useCallback:function(A,C){return Ua(function(){return A},C)},useImperativeHandle:eu,useEffect:eu,useDebugValue:eu,useDeferredValue:function(A,C){return Mn(),C!==void 0?C:A},useTransition:function(){return Mn(),[!1,il]},useId:function(){var A=Ta.treeContext,C=A.overflow;A=A.id,A=(A&~(1<<32-qw(A)-1)).toString(32)+C;var D=hy;if(D===null)throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component.\");return C=Ec++,A=\"\\\\xAB\"+D.idPrefix+\"R\"+A,0<C&&(A+=\"H\"+C.toString(32)),A+\"\\\\xBB\"},useSyncExternalStore:function(A,C,D){if(D===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");return D()},useOptimistic:function(A){return Mn(),[A,Xc]},useActionState:$c,useFormState:$c,useHostTransitionStatus:function(){return Mn(),Qg},useMemoCache:function(A){for(var C=Array(A),D=0;D<A;D++)C[D]=Q1;return C},useCacheRefresh:function(){return ed}},hy=null,gl=null,p3={getCacheForType:function(){throw Error(\"Not implemented.\")},getOwner:function(){return gl===null?null:gl.componentStack}},s0=0,tA,wp,my,c4,nA,Ac,hb;td.__reactDisabledLog=!0;var mb,_u,jo=!1,Qw=new(typeof WeakMap==\"function\"?WeakMap:Map),rA={react_stack_bottom_frame:function(A,C,D){return A(C,D)}},Jw=rA.react_stack_bottom_frame.bind(rA),Pr={react_stack_bottom_frame:function(A){return A.render()}},gb=Pr.react_stack_bottom_frame.bind(Pr),gy={react_stack_bottom_frame:function(A){var C=A._init;return C(A._payload)}},xp=gy.react_stack_bottom_frame.bind(gy),mf=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var yb=performance,yy=function(){return yb.now()};else{var by=Date;yy=function(){return by.now()}}var Ha=4,cd=0,Ai=1,bb=2,Wh=5,_s=14,Wo=null,u4={},vy={},Xw={},oA={},$w=!1,e2=!1,vb=!1;Mne.renderToStaticMarkup=function(A,C){return Iw(A,C,!0,\\'The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server\\')},Mne.renderToString=function(A,C){return Iw(A,C,!1,\\'The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server\\')},Mne.version=\"19.1.1\"})()});var Aut=me(Dne=>{\"use strict\";f();(function(){function e(E,_,L,X){return\"\"+_+(L===\"s\"?\"\\\\\\\\73 \":\"\\\\\\\\53 \")+X}function t(E,_,L,X){return\"\"+_+(L===\"s\"?\"\\\\\\\\u0073\":\"\\\\\\\\u0053\")+X}function n(E){return Object.prototype.toString.call(E).replace(/^\\\\[object (.*)\\\\]$/,function(_,L){return L})}function r(E){var _=JSON.stringify(E);return\\'\"\\'+E+\\'\"\\'===_?E:_}function o(E){switch(typeof E){case\"string\":return JSON.stringify(10>=E.length?E:E.slice(0,10)+\"...\");case\"object\":return yc(E)?\"[...]\":E!==null&&E.$$typeof===X1?\"client\":(E=n(E),E===\"Object\"?\"{...}\":E);case\"function\":return E.$$typeof===X1?\"client\":(E=E.displayName||E.name)?\"function \"+E:\"function\";default:return String(E)}}function i(E){if(typeof E==\"string\")return E;switch(E){case Es:return\"Suspense\";case J1:return\"SuspenseList\"}if(typeof E==\"object\")switch(E.$$typeof){case Q1:return i(E.render);case ul:return i(E.type);case ll:var _=E._payload;E=E._init;try{return i(E(_))}catch{}}return\"\"}function a(E,_){var L=n(E);if(L!==\"Object\"&&L!==\"Array\")return L;var X=-1,se=0;if(yc(E))if(IE.has(E)){var le=IE.get(E);L=\"<\"+i(le)+\">\";for(var Ae=0;Ae<E.length;Ae++){var Ce=E[Ae];Ce=typeof Ce==\"string\"?Ce:typeof Ce==\"object\"&&Ce!==null?\"{\"+a(Ce)+\"}\":\"{\"+o(Ce)+\"}\",\"\"+Ae===_?(X=L.length,se=Ce.length,L+=Ce):L=15>Ce.length&&40>L.length+Ce.length?L+Ce:L+\"{...}\"}L+=\"</\"+i(le)+\">\"}else{for(L=\"[\",le=0;le<E.length;le++)0<le&&(L+=\", \"),Ae=E[le],Ae=typeof Ae==\"object\"&&Ae!==null?a(Ae):o(Ae),\"\"+le===_?(X=L.length,se=Ae.length,L+=Ae):L=10>Ae.length&&40>L.length+Ae.length?L+Ae:L+\"...\";L+=\"]\"}else if(E.$$typeof===kh)L=\"<\"+i(E.type)+\"/>\";else{if(E.$$typeof===X1)return\"client\";if(L5.has(E)){for(L=L5.get(E),L=\"<\"+(i(L)||\"...\"),le=Object.keys(E),Ae=0;Ae<le.length;Ae++){L+=\" \",Ce=le[Ae],L+=r(Ce)+\"=\";var He=E[Ce],ke=Ce===_&&typeof He==\"object\"&&He!==null?a(He):o(He);typeof He!=\"string\"&&(ke=\"{\"+ke+\"}\"),Ce===_?(X=L.length,se=ke.length,L+=ke):L=10>ke.length&&40>L.length+ke.length?L+ke:L+\"...\"}L+=\">\"}else{for(L=\"{\",le=Object.keys(E),Ae=0;Ae<le.length;Ae++)0<Ae&&(L+=\", \"),Ce=le[Ae],L+=r(Ce)+\": \",He=E[Ce],He=typeof He==\"object\"&&He!==null?a(He):o(He),Ce===_?(X=L.length,se=He.length,L+=He):L=10>He.length&&40>L.length+He.length?L+He:L+\"...\";L+=\"}\"}}return _===void 0?L:-1<X&&0<se?(E=\" \".repeat(X)+\"^\".repeat(se),`\\n  `+L+`\\n  `+E):`\\n  `+L}function c(E,_){var L=E.length&3,X=E.length-L,se=_;for(_=0;_<X;){var le=E.charCodeAt(_)&255|(E.charCodeAt(++_)&255)<<8|(E.charCodeAt(++_)&255)<<16|(E.charCodeAt(++_)&255)<<24;++_,le=3432918353*(le&65535)+((3432918353*(le>>>16)&65535)<<16)&4294967295,le=le<<15|le>>>17,le=461845907*(le&65535)+((461845907*(le>>>16)&65535)<<16)&4294967295,se^=le,se=se<<13|se>>>19,se=5*(se&65535)+((5*(se>>>16)&65535)<<16)&4294967295,se=(se&65535)+27492+(((se>>>16)+58964&65535)<<16)}switch(le=0,L){case 3:le^=(E.charCodeAt(_+2)&255)<<16;case 2:le^=(E.charCodeAt(_+1)&255)<<8;case 1:le^=E.charCodeAt(_)&255,le=3432918353*(le&65535)+((3432918353*(le>>>16)&65535)<<16)&4294967295,le=le<<15|le>>>17,se^=461845907*(le&65535)+((461845907*(le>>>16)&65535)<<16)&4294967295}return se^=E.length,se^=se>>>16,se=2246822507*(se&65535)+((2246822507*(se>>>16)&65535)<<16)&4294967295,se^=se>>>13,se=3266489909*(se&65535)+((3266489909*(se>>>16)&65535)<<16)&4294967295,(se^se>>>16)>>>0}function u(E){Ph.push(E),Nh.port2.postMessage(null)}function d(E){setTimeout(function(){throw E})}function p(E,_){if(_.byteLength!==0)if(2048<_.byteLength)0<bc&&(E.enqueue(new Uint8Array(nu.buffer,0,bc)),nu=new Uint8Array(2048),bc=0),E.enqueue(_);else{var L=nu.length-bc;L<_.byteLength&&(L===0?E.enqueue(nu):(nu.set(_.subarray(0,L),bc),E.enqueue(nu),_=_.subarray(L)),nu=new Uint8Array(2048),bc=0),nu.set(_,bc),bc+=_.byteLength}}function h(E,_){return p(E,_),!0}function g(E){nu&&0<bc&&(E.enqueue(new Uint8Array(nu.buffer,0,bc)),nu=null,bc=0)}function y(E){return As.encode(E)}function v(E){return E=As.encode(E),2048<E.byteLength&&console.error(\"precomputed chunks must be smaller than the view size configured for this host. This is a bug in React.\"),E}function x(E,_){typeof E.error==\"function\"?E.error(_):E.close()}function R(E){return typeof Symbol==\"function\"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||\"Object\"}function S(E){try{return M(E),!1}catch{return!0}}function M(E){return\"\"+E}function P(E,_){if(S(E))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",_,R(E)),M(E)}function z(E,_){if(S(E))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",_,R(E)),M(E)}function V(E){if(S(E))return console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",R(E)),M(E)}function Q(E){return Zr.call(F5,E)?!0:Zr.call($m,E)?!1:U5.test(E)?F5[E]=!0:($m[E]=!0,console.error(\"Invalid attribute name: `%s`\",E),!1)}function $(E,_){$1[_.type]||_.onChange||_.onInput||_.readOnly||_.disabled||_.value==null||console.error(E===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),_.onChange||_.readOnly||_.disabled||_.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function oe(E,_){if(Zr.call(rd,_)&&rd[_])return!0;if(Pw.test(_)){if(E=\"aria-\"+_.slice(4).toLowerCase(),E=e0.hasOwnProperty(E)?E:null,E==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",_),rd[_]=!0;if(_!==E)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",_,E),rd[_]=!0}if(H5.test(_)){if(E=_.toLowerCase(),E=e0.hasOwnProperty(E)?E:null,E==null)return rd[_]=!0,!1;_!==E&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",_,E),rd[_]=!0)}return!0}function J(E,_){var L=[],X;for(X in _)oe(E,X)||L.push(X);_=L.map(function(se){return\"`\"+se+\"`\"}).join(\", \"),L.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",_,E):1<L.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",_,E)}function re(E,_,L,X){if(Zr.call(Ks,_)&&Ks[_])return!0;var se=_.toLowerCase();if(se===\"onfocusin\"||se===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),Ks[_]=!0;if(typeof L==\"function\"&&(E===\"form\"&&_===\"action\"||E===\"input\"&&_===\"formAction\"||E===\"button\"&&_===\"formAction\"))return!0;if(X!=null){if(E=X.possibleRegistrationNames,X.registrationNameDependencies.hasOwnProperty(_))return!0;if(X=E.hasOwnProperty(se)?E[se]:null,X!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",_,X),Ks[_]=!0;if(OE.test(_))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",_),Ks[_]=!0}else if(OE.test(_))return Ys.test(_)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",_),Ks[_]=!0;if(Mw.test(_)||Qg.test(_))return!0;if(se===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),Ks[_]=!0;if(se===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),Ks[_]=!0;if(se===\"is\"&&L!==null&&L!==void 0&&typeof L!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof L),Ks[_]=!0;if(typeof L==\"number\"&&isNaN(L))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",_),Ks[_]=!0;if(hp.hasOwnProperty(se)){if(se=hp[se],se!==_)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",_,se),Ks[_]=!0}else if(_!==se)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",_,se),Ks[_]=!0;switch(_){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof L){case\"boolean\":switch(_){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return se=_.toLowerCase().slice(0,5),se===\"data-\"||se===\"aria-\"?!0:(L?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',L,_,_,L,_):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',L,_,_,L,_,_,_),Ks[_]=!0)}case\"function\":case\"symbol\":return Ks[_]=!0,!1;case\"string\":if(L===\"false\"||L===\"true\"){switch(_){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",L,_,L===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',_,L),Ks[_]=!0}}return!0}function q(E,_,L){var X=[],se;for(se in _)re(E,se,_[se],L)||X.push(se);_=X.map(function(le){return\"`\"+le+\"`\"}).join(\", \"),X.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",_,E):1<X.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",_,E)}function K(E){return E.replace(z5,function(_,L){return L.toUpperCase()})}function U(E){if(typeof E==\"boolean\"||typeof E==\"number\"||typeof E==\"bigint\")return\"\"+E;V(E),E=\"\"+E;var _=Dw.exec(E);if(_){var L=\"\",X,se=0;for(X=_.index;X<E.length;X++){switch(E.charCodeAt(X)){case 34:_=\"&quot;\";break;case 38:_=\"&amp;\";break;case 39:_=\"&#x27;\";break;case 60:_=\"&lt;\";break;case 62:_=\"&gt;\";break;default:continue}se!==X&&(L+=E.slice(se,X)),se=X+1,L+=_}E=se!==X?L+E.slice(se,X):L}return E}function T(E){return Xg.test(\"\"+E)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":E}function k(E){return V(E),(\"\"+E).replace(Lh,t)}function F(E,_,L,X,se,le){var Ae=_===void 0?Bw:v(\\'<script nonce=\"\\'+U(_)+\\'\">\\'),Ce=E.idPrefix;L=[];var He=E.bootstrapScriptContent,ke=E.bootstrapScripts,yt=E.bootstrapModules;if(He!==void 0&&L.push(Ae,y(k(He)),j5),He=[],X!==void 0&&(He.push(Uw),He.push(y(k(JSON.stringify(X)))),He.push(nb)),se&&typeof le==\"number\"&&0>=le&&console.error(\"React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.\",le===0?\"zero\":le),X=se?{preconnects:\"\",fontPreloads:\"\",highImagePreloads:\"\",remainingCapacity:2+(typeof le==\"number\"?le:2e3)}:null,se={placeholderPrefix:v(Ce+\"P:\"),segmentPrefix:v(Ce+\"S:\"),boundaryPrefix:v(Ce+\"B:\"),startInlineScript:Ae,preamble:B(),externalRuntimeScript:null,bootstrapChunks:L,importMapChunks:He,onHeaders:se,headers:X,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:_,hoistableState:null,stylesToHoist:!1},ke!==void 0)for(X=0;X<ke.length;X++){le=ke[X],He=Ce=void 0;var pt={rel:\"preload\",as:\"script\",fetchPriority:\"low\",nonce:_};typeof le==\"string\"?pt.href=Ae=le:(pt.href=Ae=le.src,pt.integrity=He=typeof le.integrity==\"string\"?le.integrity:void 0,pt.crossOrigin=Ce=typeof le==\"string\"||le.crossOrigin==null?void 0:le.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),rr(E,se,Ae,pt),L.push(vc,y(U(Ae))),_&&L.push(wc,y(U(_))),typeof He==\"string\"&&L.push(tb,y(U(He))),typeof Ce==\"string\"&&L.push(gp,y(U(Ce))),L.push(Mi)}if(yt!==void 0)for(ke=0;ke<yt.length;ke++)X=yt[ke],Ce=Ae=void 0,He={rel:\"modulepreload\",fetchPriority:\"low\",nonce:_},typeof X==\"string\"?He.href=le=X:(He.href=le=X.src,He.integrity=Ce=typeof X.integrity==\"string\"?X.integrity:void 0,He.crossOrigin=Ae=typeof X==\"string\"||X.crossOrigin==null?void 0:X.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),rr(E,se,le,He),L.push(fl,y(U(le))),_&&L.push(wc,y(U(_))),typeof Ce==\"string\"&&L.push(tb,y(U(Ce))),typeof Ae==\"string\"&&L.push(gp,y(U(Ae))),L.push(Mi);return se}function N(E,_,L,X,se){return{idPrefix:E===void 0?\"\":E,nextFormID:0,streamingFormat:0,bootstrapScriptContent:L,bootstrapScripts:X,bootstrapModules:se,instructions:df,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function B(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:PE}}function H(E,_,L){return{insertionMode:E,selectedValue:_,tagScope:L}}function W(E){return H(E===\"http://www.w3.org/2000/svg\"?pl:E===\"http://www.w3.org/1998/Math/MathML\"?Wn:ny,null,0)}function G(E,_,L){switch(_){case\"noscript\":return H(ru,null,E.tagScope|1);case\"select\":return H(ru,L.value!=null?L.value:L.defaultValue,E.tagScope);case\"svg\":return H(pl,null,E.tagScope);case\"picture\":return H(ru,null,E.tagScope|2);case\"math\":return H(Wn,null,E.tagScope);case\"foreignObject\":return H(ru,null,E.tagScope);case\"table\":return H(vt,null,E.tagScope);case\"thead\":case\"tbody\":case\"tfoot\":return H(n0,null,E.tagScope);case\"colgroup\":return H(Ei,null,E.tagScope);case\"tr\":return H(rb,null,E.tagScope);case\"head\":if(E.insertionMode<ru)return H(Bh,null,E.tagScope);break;case\"html\":if(E.insertionMode===ny)return H(ry,null,E.tagScope)}return E.insertionMode>=vt||E.insertionMode<ru?H(ru,null,E.tagScope):E}function O(E,_,L,X){return _===\"\"?X:(X&&E.push(ff),E.push(y(U(_))),!0)}function j(E,_){if(typeof _!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");var L=!0,X;for(X in _)if(Zr.call(_,X)){var se=_[X];if(se!=null&&typeof se!=\"boolean\"&&se!==\"\"){if(X.indexOf(\"--\")===0){var le=y(U(X));z(se,X),se=y(U((\"\"+se).trim()))}else{le=X;var Ae=se;if(-1<le.indexOf(\"-\")){var Ce=le;dl.hasOwnProperty(Ce)&&dl[Ce]||(dl[Ce]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",Ce,K(Ce.replace(mp,\"ms-\"))))}else if(vo.test(le))Ce=le,dl.hasOwnProperty(Ce)&&dl[Ce]||(dl[Ce]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",Ce,Ce.charAt(0).toUpperCase()+Ce.slice(1)));else if(Jg.test(Ae)){Ce=le;var He=Ae;Dh.hasOwnProperty(He)&&Dh[He]||(Dh[He]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,Ce,He.replace(Jg,\"\")))}typeof Ae==\"number\"&&(isNaN(Ae)?ei||(ei=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",le)):isFinite(Ae)||Zs||(Zs=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",le))),le=X,Ae=Fw.get(le),Ae!==void 0||(Ae=v(U(le.replace(kE,\"-$1\").toLowerCase().replace(NE,\"-ms-\"))),Fw.set(le,Ae)),le=Ae,typeof se==\"number\"?se=se===0||qR.has(X)?y(\"\"+se):y(se+\"px\"):(z(se,X),se=y(U((\"\"+se).trim())))}L?(L=!1,E.push(W5,le,ME,se)):E.push(MP,le,ME,se)}}L||E.push(ou)}function te(E,_,L){L&&typeof L!=\"function\"&&typeof L!=\"symbol\"&&E.push(Js,y(_),xc)}function ne(E,_,L){typeof L!=\"function\"&&typeof L!=\"symbol\"&&typeof L!=\"boolean\"&&E.push(Js,y(_),Eu,y(U(L)),ou)}function ae(E,_){this.push(DE),pe(E),ne(this,\"name\",_),ne(this,\"value\",E),this.push(od)}function pe(E){if(typeof E!=\"string\")throw Error(\"File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.\")}function ye(E,_){if(typeof _.$$FORM_ACTION==\"function\"){var L=E.nextFormID++;E=E.idPrefix+L;try{var X=_.$$FORM_ACTION(E);if(X){var se=X.data;se?.forEach(pe)}return X}catch(le){if(typeof le==\"object\"&&le!==null&&typeof le.then==\"function\")throw le;console.error(`Failed to serialize an action for progressive enhancement:\\n%s`,le)}}return null}function ve(E,_,L,X,se,le,Ae,Ce){var He=null;if(typeof X==\"function\"){Ce===null||V5||(V5=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),se===null&&le===null||zw||(zw=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),Ae===null||Hw||(Hw=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"));var ke=ye(_,X);ke!==null?(Ce=ke.name,X=ke.action||\"\",se=ke.encType,le=ke.method,Ae=ke.target,He=ke.data):(E.push(Js,y(\"formAction\"),Eu,so,ou),Ae=le=se=X=Ce=null,Ye(_,L))}return Ce!=null&&xe(E,\"name\",Ce),X!=null&&xe(E,\"formAction\",X),se!=null&&xe(E,\"formEncType\",se),le!=null&&xe(E,\"formMethod\",le),Ae!=null&&xe(E,\"formTarget\",Ae),He}function xe(E,_,L){switch(_){case\"className\":ne(E,\"class\",L);break;case\"tabIndex\":ne(E,\"tabindex\",L);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":ne(E,_,L);break;case\"style\":j(E,L);break;case\"src\":case\"href\":if(L===\"\"){console.error(_===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',_,_);break}case\"action\":case\"formAction\":if(L==null||typeof L==\"function\"||typeof L==\"symbol\"||typeof L==\"boolean\")break;P(L,_),L=T(\"\"+L),E.push(Js,y(_),Eu,y(U(L)),ou);break;case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"autoFocus\":case\"multiple\":case\"muted\":te(E,_.toLowerCase(),L);break;case\"xlinkHref\":if(typeof L==\"function\"||typeof L==\"symbol\"||typeof L==\"boolean\")break;P(L,_),L=T(\"\"+L),E.push(Js,y(\"xlink:href\"),Eu,y(U(L)),ou);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":typeof L!=\"function\"&&typeof L!=\"symbol\"&&E.push(Js,y(_),Eu,y(U(L)),ou);break;case\"inert\":L!==\"\"||ty[_]||(ty[_]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",_));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":L&&typeof L!=\"function\"&&typeof L!=\"symbol\"&&E.push(Js,y(_),xc);break;case\"capture\":case\"download\":L===!0?E.push(Js,y(_),xc):L!==!1&&typeof L!=\"function\"&&typeof L!=\"symbol\"&&E.push(Js,y(_),Eu,y(U(L)),ou);break;case\"cols\":case\"rows\":case\"size\":case\"span\":typeof L!=\"function\"&&typeof L!=\"symbol\"&&!isNaN(L)&&1<=L&&E.push(Js,y(_),Eu,y(U(L)),ou);break;case\"rowSpan\":case\"start\":typeof L==\"function\"||typeof L==\"symbol\"||isNaN(L)||E.push(Js,y(_),Eu,y(U(L)),ou);break;case\"xlinkActuate\":ne(E,\"xlink:actuate\",L);break;case\"xlinkArcrole\":ne(E,\"xlink:arcrole\",L);break;case\"xlinkRole\":ne(E,\"xlink:role\",L);break;case\"xlinkShow\":ne(E,\"xlink:show\",L);break;case\"xlinkTitle\":ne(E,\"xlink:title\",L);break;case\"xlinkType\":ne(E,\"xlink:type\",L);break;case\"xmlBase\":ne(E,\"xml:base\",L);break;case\"xmlLang\":ne(E,\"xml:lang\",L);break;case\"xmlSpace\":ne(E,\"xml:space\",L);break;default:if((!(2<_.length)||_[0]!==\"o\"&&_[0]!==\"O\"||_[1]!==\"n\"&&_[1]!==\"N\")&&(_=Nw.get(_)||_,Q(_))){switch(typeof L){case\"function\":case\"symbol\":return;case\"boolean\":var X=_.toLowerCase().slice(0,5);if(X!==\"data-\"&&X!==\"aria-\")return}E.push(Js,y(_),Eu,y(U(L)),ou)}}}function De(E,_,L){if(_!=null){if(L!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof _!=\"object\"||!(\"__html\"in _))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");_=_.__html,_!=null&&(V(_),E.push(y(\"\"+_)))}}function Ge(E,_){var L=E[_];L!=null&&(L=yc(L),E.multiple&&!L?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.\",_):!E.multiple&&L&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.\",_))}function gt(E){var _=\"\";return Y1.Children.forEach(E,function(L){L!=null&&(_+=L,BE||typeof L==\"string\"||typeof L==\"number\"||typeof L==\"bigint\"||(BE=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\")))}),_}function Ye(E,_){(E.instructions&16)===df&&(E.instructions|=16,_.bootstrapChunks.unshift(_.startInlineScript,KR,j5))}function lt(E,_){E.push(jt(\"link\"));for(var L in _)if(Zr.call(_,L)){var X=_[L];if(X!=null)switch(L){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:xe(E,L,X)}}return E.push(od),null}function At(E){return V(E),(\"\"+E).replace(K5,e)}function ht(E,_,L){E.push(jt(L));for(var X in _)if(Zr.call(_,X)){var se=_[X];if(se!=null)switch(X){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(L+\" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:xe(E,X,se)}}return E.push(od),null}function et(E,_){E.push(jt(\"title\"));var L=null,X=null,se;for(se in _)if(Zr.call(_,se)){var le=_[se];if(le!=null)switch(se){case\"children\":L=le;break;case\"dangerouslySetInnerHTML\":X=le;break;default:xe(E,se,le)}}return E.push(Yi),_=Array.isArray(L)?2>L.length?L[0]:null:L,typeof _!=\"function\"&&typeof _!=\"symbol\"&&_!==null&&_!==void 0&&E.push(y(U(\"\"+_))),De(E,X,L),E.push(Xt(\"title\")),null}function fn(E,_){E.push(jt(\"script\"));var L=null,X=null,se;for(se in _)if(Zr.call(_,se)){var le=_[se];if(le!=null)switch(se){case\"children\":L=le;break;case\"dangerouslySetInnerHTML\":X=le;break;default:xe(E,se,le)}}return E.push(Yi),L!=null&&typeof L!=\"string\"&&(_=typeof L==\"number\"?\"a number for children\":Array.isArray(L)?\"an array for children\":\"something unexpected for children\",console.error(\"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.\",_)),De(E,X,L),typeof L==\"string\"&&E.push(y(k(L))),E.push(Xt(\"script\")),null}function Zt(E,_,L){E.push(jt(L));var X=L=null,se;for(se in _)if(Zr.call(_,se)){var le=_[se];if(le!=null)switch(se){case\"children\":L=le;break;case\"dangerouslySetInnerHTML\":X=le;break;default:xe(E,se,le)}}return E.push(Yi),De(E,X,L),L}function Vt(E,_,L){E.push(jt(L));var X=L=null,se;for(se in _)if(Zr.call(_,se)){var le=_[se];if(le!=null)switch(se){case\"children\":L=le;break;case\"dangerouslySetInnerHTML\":X=le;break;default:xe(E,se,le)}}return E.push(Yi),De(E,X,L),typeof L==\"string\"?(E.push(y(U(L))),null):L}function jt(E){var _=Y5.get(E);if(_===void 0){if(!YR.test(E))throw Error(\"Invalid tag: \"+E);_=v(\"<\"+E),Y5.set(E,_)}return _}function Jt(E,_,L,X,se,le,Ae,Ce,He,ke){J(_,L),_!==\"input\"&&_!==\"textarea\"&&_!==\"select\"||L==null||L.value!==null||Mh||(Mh=!0,_===\"select\"&&L.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",_):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",_));e:if(_.indexOf(\"-\")===-1)var yt=!1;else switch(_){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":yt=!1;break e;default:yt=!0}switch(yt||typeof L.is==\"string\"||q(_,L,null),!L.suppressContentEditableWarning&&L.contentEditable&&L.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\"),Ce.insertionMode!==pl&&Ce.insertionMode!==Wn&&_.indexOf(\"-\")===-1&&_.toLowerCase()!==_&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",_),_){case\"div\":case\"span\":case\"svg\":case\"path\":break;case\"a\":E.push(jt(\"a\"));var pt=null,It=null,xt;for(xt in L)if(Zr.call(L,xt)){var at=L[xt];if(at!=null)switch(xt){case\"children\":pt=at;break;case\"dangerouslySetInnerHTML\":It=at;break;case\"href\":at===\"\"?ne(E,\"href\",\"\"):xe(E,xt,at);break;default:xe(E,xt,at)}}if(E.push(Yi),De(E,It,pt),typeof pt==\"string\"){E.push(y(U(pt)));var Ln=null}else Ln=pt;return Ln;case\"g\":case\"p\":case\"li\":break;case\"select\":$(\"select\",L),Ge(L,\"value\"),Ge(L,\"defaultValue\"),L.value===void 0||L.defaultValue===void 0||LE||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),LE=!0),E.push(jt(\"select\"));var Qr=null,Bn=null,nn;for(nn in L)if(Zr.call(L,nn)){var fi=L[nn];if(fi!=null)switch(nn){case\"children\":Qr=fi;break;case\"dangerouslySetInnerHTML\":Bn=fi;break;case\"defaultValue\":case\"value\":break;default:xe(E,nn,fi)}}return E.push(Yi),De(E,Bn,Qr),Qr;case\"option\":var co=Ce.selectedValue;E.push(jt(\"option\"));var zn=null,za=null,Ss=null,Li=null,Zi;for(Zi in L)if(Zr.call(L,Zi)){var Vo=L[Zi];if(Vo!=null)switch(Zi){case\"children\":zn=Vo;break;case\"selected\":Ss=Vo,UE||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),UE=!0);break;case\"dangerouslySetInnerHTML\":Li=Vo;break;case\"value\":za=Vo;default:xe(E,Zi,Vo)}}if(co!=null){if(za!==null){P(za,\"value\");var _i=\"\"+za}else Li===null||ob||(ob=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\")),_i=gt(zn);if(yc(co)){for(var Qi=0;Qi<co.length;Qi++)if(P(co[Qi],\"value\"),\"\"+co[Qi]===_i){E.push(FE);break}}else P(co,\"select.value\"),\"\"+co===_i&&E.push(FE)}else Ss&&E.push(FE);return E.push(Yi),De(E,Li,zn),zn;case\"textarea\":$(\"textarea\",L),L.value===void 0||L.defaultValue===void 0||oy||(console.error(\"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\"),oy=!0),E.push(jt(\"textarea\"));var $n=null,Go=null,uo=null,ja;for(ja in L)if(Zr.call(L,ja)){var Wa=L[ja];if(Wa!=null)switch(ja){case\"children\":uo=Wa;break;case\"value\":$n=Wa;break;case\"defaultValue\":Go=Wa;break;case\"dangerouslySetInnerHTML\":throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");default:xe(E,ja,Wa)}}if($n===null&&Go!==null&&($n=Go),E.push(Yi),uo!=null){if(console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\"),$n!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(yc(uo)){if(1<uo.length)throw Error(\"<textarea> can only have at most one child.\");V(uo[0]),$n=\"\"+uo[0]}V(uo),$n=\"\"+uo}return typeof $n==\"string\"&&$n[0]===`\\n`&&E.push(HE),$n!==null&&(P($n,\"value\"),E.push(y(U(\"\"+$n)))),null;case\"input\":$(\"input\",L),E.push(jt(\"input\"));var pa=null,iu=null,Ia=null,au=null,gf=null,or=null,yl=null,Sc=null,yf=null,ss;for(ss in L)if(Zr.call(L,ss)){var ha=L[ss];if(ha!=null)switch(ss){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");case\"name\":pa=ha;break;case\"formAction\":iu=ha;break;case\"formEncType\":Ia=ha;break;case\"formMethod\":au=ha;break;case\"formTarget\":gf=ha;break;case\"defaultChecked\":yf=ha;break;case\"defaultValue\":yl=ha;break;case\"checked\":Sc=ha;break;case\"value\":or=ha;break;default:xe(E,ss,ha)}}iu===null||L.type===\"image\"||L.type===\"submit\"||iy||(iy=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\'));var ri=ve(E,X,se,iu,Ia,au,gf,pa);return Sc===null||yf===null||id||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",L.type),id=!0),or===null||yl===null||r0||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",L.type),r0=!0),Sc!==null?te(E,\"checked\",Sc):yf!==null&&te(E,\"checked\",yf),or!==null?xe(E,\"value\",or):yl!==null&&xe(E,\"value\",yl),E.push(od),ri?.forEach(ae,E),null;case\"button\":E.push(jt(\"button\"));var cs=null,$s=null,ud=null,Va=null,Tu=null,Tc=null,ec=null,oi;for(oi in L)if(Zr.call(L,oi)){var Ts=L[oi];if(Ts!=null)switch(oi){case\"children\":cs=Ts;break;case\"dangerouslySetInnerHTML\":$s=Ts;break;case\"name\":ud=Ts;break;case\"formAction\":Va=Ts;break;case\"formEncType\":Tu=Ts;break;case\"formMethod\":Tc=Ts;break;case\"formTarget\":ec=Ts;break;default:xe(E,oi,Ts)}}Va===null||L.type==null||L.type===\"submit\"||iy||(iy=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\'));var su=ve(E,X,se,Va,Tu,Tc,ec,ud);if(E.push(Yi),su?.forEach(ae,E),De(E,$s,cs),typeof cs==\"string\"){E.push(y(U(cs)));var Cu=null}else Cu=cs;return Cu;case\"form\":E.push(jt(\"form\"));var cu=null,ld=null,tc=null,bl=null,Ru=null,vl=null,wl;for(wl in L)if(Zr.call(L,wl)){var Cc=L[wl];if(Cc!=null)switch(wl){case\"children\":cu=Cc;break;case\"dangerouslySetInnerHTML\":ld=Cc;break;case\"action\":tc=Cc;break;case\"encType\":bl=Cc;break;case\"method\":Ru=Cc;break;case\"target\":vl=Cc;break;default:xe(E,wl,Cc)}}var nc=null,Vh=null;if(typeof tc==\"function\"){bl===null&&Ru===null||zw||(zw=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),vl===null||Hw||(Hw=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"));var Tn=ye(X,tc);Tn!==null?(tc=Tn.action||\"\",bl=Tn.encType,Ru=Tn.method,vl=Tn.target,nc=Tn.data,Vh=Tn.name):(E.push(Js,y(\"action\"),Eu,so,ou),vl=Ru=bl=tc=null,Ye(X,se))}if(tc!=null&&xe(E,\"action\",tc),bl!=null&&xe(E,\"encType\",bl),Ru!=null&&xe(E,\"method\",Ru),vl!=null&&xe(E,\"target\",vl),E.push(Yi),Vh!==null&&(E.push(DE),ne(E,\"name\",Vh),E.push(od),nc?.forEach(ae,E)),De(E,ld,cu),typeof cu==\"string\"){E.push(y(U(cu)));var dd=null}else dd=cu;return dd;case\"menuitem\":E.push(jt(\"menuitem\"));for(var fd in L)if(Zr.call(L,fd)){var c0=L[fd];if(c0!=null)switch(fd){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.\");default:xe(E,fd,c0)}}return E.push(Yi),null;case\"object\":E.push(jt(\"object\"));var uu=null,pd=null,Ga;for(Ga in L)if(Zr.call(L,Ga)){var us=L[Ga];if(us!=null)switch(Ga){case\"children\":uu=us;break;case\"dangerouslySetInnerHTML\":pd=us;break;case\"data\":P(us,\"data\");var pi=T(\"\"+us);if(pi===\"\"){console.error(\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',Ga,Ga);break}E.push(Js,y(\"data\"),Eu,y(U(pi)),ou);break;default:xe(E,Ga,us)}}if(E.push(Yi),De(E,pd,uu),typeof uu==\"string\"){E.push(y(U(uu)));var Ji=null}else Ji=uu;return Ji;case\"title\":var Vr=Ce.insertionMode,wy=!!(Ce.tagScope&1);if(Zr.call(L,\"children\")){var Xi=L.children,xl=Array.isArray(Xi)?2>Xi.length?Xi[0]:null:Xi;Array.isArray(Xi)&&1<Xi.length?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.\",Xi.length):typeof xl==\"function\"||typeof xl==\"symbol\"?console.error(\"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.\",typeof xl==\"function\"?\"a Function\":\"a Sybmol\"):xl&&xl.toString==={}.toString&&(xl.$$typeof!=null?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.\"):console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.\"))}if(Vr===pl||wy||L.itemProp!=null)var Cs=et(E,L);else ke?Cs=null:(et(se.hoistableChunks,L),Cs=void 0);return Cs;case\"link\":var xy=L.rel,Si=L.href,Mr=L.precedence;if(Ce.insertionMode===pl||Ce.tagScope&1||L.itemProp!=null||typeof xy!=\"string\"||typeof Si!=\"string\"||Si===\"\"){xy===\"stylesheet\"&&typeof L.precedence==\"string\"&&(typeof Si==\"string\"&&Si||console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.\\',Si===null?\"`null`\":Si===void 0?\"`undefined`\":Si===\"\"?\"an empty string\":\\'something with type \"\\'+typeof Si+\\'\"\\')),lt(E,L);var hd=null}else if(L.rel===\"stylesheet\")if(typeof Mr!=\"string\"||L.disabled!=null||L.onLoad||L.onError){if(typeof Mr==\"string\"){if(L.disabled!=null)console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.\\');else if(L.onLoad||L.onError){var ii=L.onLoad&&L.onError?\"`onLoad` and `onError` props\":L.onLoad?\"`onLoad` prop\":\"`onError` prop\";console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',ii,ii)}}hd=lt(E,L)}else{var Gh=se.styles.get(Mr),bf=X.styleResources.hasOwnProperty(Si)?X.styleResources[Si]:void 0;if(bf!==Fa){X.styleResources[Si]=Fa,Gh||(Gh={precedence:y(U(Mr)),rules:[],hrefs:[],sheets:new Map},se.styles.set(Mr,Gh));var Ep={state:pf,props:zo({},L,{\"data-precedence\":L.precedence,precedence:null})};if(bf){bf.length===2&&un(Ep.props,bf);var Ap=se.preloads.stylesheets.get(Si);Ap&&0<Ap.length?Ap.length=0:Ep.state=Ta}Gh.sheets.set(Si,Ep),Ae&&Ae.stylesheets.add(Ep)}else if(Gh){var Rc=Gh.sheets.get(Si);Rc&&Ae&&Ae.stylesheets.add(Rc)}He&&E.push(ff),hd=null}else L.onLoad||L.onError?hd=lt(E,L):(He&&E.push(ff),hd=ke?null:lt(se.hoistableChunks,L));return hd;case\"script\":var _p=L.async;if(typeof L.src!=\"string\"||!L.src||!_p||typeof _p==\"function\"||typeof _p==\"symbol\"||L.onLoad||L.onError||Ce.insertionMode===pl||Ce.tagScope&1||L.itemProp!=null)var md=fn(E,L);else{var gd=L.src;if(L.type===\"module\")var lu=X.moduleScriptResources,yd=se.preloads.moduleScripts;else lu=X.scriptResources,yd=se.preloads.scripts;var Oa=lu.hasOwnProperty(gd)?lu[gd]:void 0;if(Oa!==Fa){lu[gd]=Fa;var Ti=L;if(Oa){Oa.length===2&&(Ti=zo({},L),un(Ti,Oa));var wb=yd.get(gd);wb&&(wb.length=0)}var Sp=[];se.scripts.add(Sp),fn(Sp,Ti)}He&&E.push(ff),md=null}return md;case\"style\":var Ey=Ce.insertionMode,Tp=!!(Ce.tagScope&1);if(Zr.call(L,\"children\")){var Cp=L.children,xb=Array.isArray(Cp)?2>Cp.length?Cp[0]:null:Cp;(typeof xb==\"function\"||typeof xb==\"symbol\"||Array.isArray(xb))&&console.error(\"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.\",typeof xb==\"function\"?\"a Function\":typeof xb==\"symbol\"?\"a Sybmol\":\"an Array\")}var Rp=L.precedence,El=L.href;if(Ey===pl||Tp||L.itemProp!=null||typeof Rp!=\"string\"||typeof El!=\"string\"||El===\"\"){E.push(jt(\"style\"));var u0=null,Ip=null,Ay;for(Ay in L)if(Zr.call(L,Ay)){var t2=L[Ay];if(t2!=null)switch(Ay){case\"children\":u0=t2;break;case\"dangerouslySetInnerHTML\":Ip=t2;break;default:xe(E,Ay,t2)}}E.push(Yi);var l0=Array.isArray(u0)?2>u0.length?u0[0]:null:u0;typeof l0!=\"function\"&&typeof l0!=\"symbol\"&&l0!==null&&l0!==void 0&&E.push(y(At(l0))),De(E,Ip,u0),E.push(Xt(\"style\"));var h3=null}else{El.includes(\" \")&&console.error(\\'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is \"%s\".\\',El);var qh=se.styles.get(Rp),m3=X.styleResources.hasOwnProperty(El)?X.styleResources[El]:void 0;if(m3!==Fa){X.styleResources[El]=Fa,m3&&console.error(\\'React encountered a hoistable style tag for the same href as a preload: \"%s\". When using a style tag to inline styles you should not also preload it as a stylsheet.\\',El),qh?qh.hrefs.push(y(U(El))):(qh={precedence:y(U(Rp)),rules:[],hrefs:[y(U(El))],sheets:new Map},se.styles.set(Rp,qh));var _y=qh.rules,Rs=null,g3=null,l4;for(l4 in L)if(Zr.call(L,l4)){var y3=L[l4];if(y3!=null)switch(l4){case\"children\":Rs=y3;break;case\"dangerouslySetInnerHTML\":g3=y3}}var b3=Array.isArray(Rs)?2>Rs.length?Rs[0]:null:Rs;typeof b3!=\"function\"&&typeof b3!=\"symbol\"&&b3!==null&&b3!==void 0&&_y.push(y(At(b3))),De(_y,g3,Rs)}qh&&Ae&&Ae.styles.add(qh),He&&E.push(ff),h3=void 0}return h3;case\"meta\":if(Ce.insertionMode===pl||Ce.tagScope&1||L.itemProp!=null)var vf=ht(E,L,\"meta\");else He&&E.push(ff),vf=ke?null:typeof L.charSet==\"string\"?ht(se.charsetChunks,L,\"meta\"):L.name===\"viewport\"?ht(se.viewportChunks,L,\"meta\"):ht(se.hoistableChunks,L,\"meta\");return vf;case\"listing\":case\"pre\":E.push(jt(_));var iA=null,aA=null,sA;for(sA in L)if(Zr.call(L,sA)){var v3=L[sA];if(v3!=null)switch(sA){case\"children\":iA=v3;break;case\"dangerouslySetInnerHTML\":aA=v3;break;default:xe(E,sA,v3)}}if(E.push(Yi),aA!=null){if(iA!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof aA!=\"object\"||!(\"__html\"in aA))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");var Eb=aA.__html;Eb!=null&&(typeof Eb==\"string\"&&0<Eb.length&&Eb[0]===`\\n`?E.push(HE,y(Eb)):(V(Eb),E.push(y(\"\"+Eb))))}return typeof iA==\"string\"&&iA[0]===`\\n`&&E.push(HE),iA;case\"img\":var Iu=L.src,Ic=L.srcSet;if(!(L.loading===\"lazy\"||!Iu&&!Ic||typeof Iu!=\"string\"&&Iu!=null||typeof Ic!=\"string\"&&Ic!=null)&&L.fetchPriority!==\"low\"&&!(Ce.tagScope&3)&&(typeof Iu!=\"string\"||Iu[4]!==\":\"||Iu[0]!==\"d\"&&Iu[0]!==\"D\"||Iu[1]!==\"a\"&&Iu[1]!==\"A\"||Iu[2]!==\"t\"&&Iu[2]!==\"T\"||Iu[3]!==\"a\"&&Iu[3]!==\"A\")&&(typeof Ic!=\"string\"||Ic[4]!==\":\"||Ic[0]!==\"d\"&&Ic[0]!==\"D\"||Ic[1]!==\"a\"&&Ic[1]!==\"A\"||Ic[2]!==\"t\"&&Ic[2]!==\"T\"||Ic[3]!==\"a\"&&Ic[3]!==\"A\")){var wz=typeof L.sizes==\"string\"?L.sizes:void 0,d0=Ic?Ic+`\\n`+(wz||\"\"):Iu,cA=se.preloads.images,Ab=cA.get(d0);if(Ab)(L.fetchPriority===\"high\"||10>se.highImagePreloads.size)&&(cA.delete(d0),se.highImagePreloads.add(Ab));else if(!X.imageResources.hasOwnProperty(d0)){X.imageResources[d0]=xu;var d4=L.crossOrigin,w3=typeof d4==\"string\"?d4===\"use-credentials\"?d4:\"\":void 0,Op=se.headers,n2;Op&&0<Op.remainingCapacity&&typeof L.srcSet!=\"string\"&&(L.fetchPriority===\"high\"||500>Op.highImagePreloads.length)&&(n2=Ni(Iu,\"image\",{imageSrcSet:L.srcSet,imageSizes:L.sizes,crossOrigin:w3,integrity:L.integrity,nonce:L.nonce,type:L.type,fetchPriority:L.fetchPriority,referrerPolicy:L.refererPolicy}),0<=(Op.remainingCapacity-=n2.length+2))?(se.resets.image[d0]=xu,Op.highImagePreloads&&(Op.highImagePreloads+=\", \"),Op.highImagePreloads+=n2):(Ab=[],lt(Ab,{rel:\"preload\",as:\"image\",href:Ic?void 0:Iu,imageSrcSet:Ic,imageSizes:wz,crossOrigin:w3,integrity:L.integrity,type:L.type,fetchPriority:L.fetchPriority,referrerPolicy:L.referrerPolicy}),L.fetchPriority===\"high\"||10>se.highImagePreloads.size?se.highImagePreloads.add(Ab):(se.bulkPreloads.add(Ab),cA.set(d0,Ab)))}}return ht(E,L,\"img\");case\"base\":case\"area\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"param\":case\"source\":case\"track\":case\"wbr\":return ht(E,L,_);case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":break;case\"head\":if(Ce.insertionMode<ru){var f4=le||se.preamble;if(f4.headChunks)throw Error(\"The `<head>` tag may only be rendered once.\");f4.headChunks=[];var xz=Zt(f4.headChunks,L,\"head\")}else xz=Vt(E,L,\"head\");return xz;case\"body\":if(Ce.insertionMode<ru){var _b=le||se.preamble;if(_b.bodyChunks)throw Error(\"The `<body>` tag may only be rendered once.\");_b.bodyChunks=[];var uA=Zt(_b.bodyChunks,L,\"body\")}else uA=Vt(E,L,\"body\");return uA;case\"html\":if(Ce.insertionMode===ny){var p4=le||se.preamble;if(p4.htmlChunks)throw Error(\"The `<html>` tag may only be rendered once.\");p4.htmlChunks=[DP];var x3=Zt(p4.htmlChunks,L,\"html\")}else x3=Vt(E,L,\"html\");return x3;default:if(_.indexOf(\"-\")!==-1){E.push(jt(_));var E3=null,h4=null,r2;for(r2 in L)if(Zr.call(L,r2)){var kp=L[r2];if(kp!=null){var Ez=r2;switch(r2){case\"children\":E3=kp;break;case\"dangerouslySetInnerHTML\":h4=kp;break;case\"style\":j(E,kp);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"className\":Ez=\"class\";default:if(Q(r2)&&typeof kp!=\"function\"&&typeof kp!=\"symbol\"&&kp!==!1){if(kp===!0)kp=\"\";else if(typeof kp==\"object\")continue;E.push(Js,y(Ez),Eu,y(U(kp)),ou)}}}}return E.push(Yi),De(E,h4,E3),E3}}return Vt(E,L,_)}function Xt(E){var _=Z5.get(E);return _===void 0&&(_=v(\"</\"+E+\">\"),Z5.set(E,_)),_}function sr(E,_){E=E.preamble,E.htmlChunks===null&&_.htmlChunks&&(E.htmlChunks=_.htmlChunks,_.contribution|=1),E.headChunks===null&&_.headChunks&&(E.headChunks=_.headChunks,_.contribution|=4),E.bodyChunks===null&&_.bodyChunks&&(E.bodyChunks=_.bodyChunks,_.contribution|=2)}function Yn(E,_){_=_.bootstrapChunks;for(var L=0;L<_.length-1;L++)p(E,_[L]);return L<_.length?(L=_[L],_.length=0,h(E,L)):!0}function Fr(E,_,L){if(p(E,JR),L===null)throw Error(\"An ID must have been assigned before we can complete the boundary.\");return p(E,_.boundaryPrefix),p(E,y(L.toString(16))),h(E,XR)}function Ws(E,_){_=_.contribution,_!==PE&&(p(E,Au),p(E,y(\"\"+_)),p(E,VE))}function io(E,_,L,X){switch(L.insertionMode){case ny:case ry:case Bh:case ru:return p(E,X5),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,e4);case pl:return p(E,GE),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,e3);case Wn:return p(E,sb),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,KE);case vt:return p(E,t4),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,n4);case n0:return p(E,r4),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,o4);case rb:return p(E,YE),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,Uh);case Ei:return p(E,i4),p(E,_.segmentPrefix),p(E,y(X.toString(16))),h(E,o3);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function Hr(E,_){switch(_.insertionMode){case ny:case ry:case Bh:case ru:return h(E,$5);case pl:return h(E,qE);case Wn:return h(E,t3);case vt:return h(E,n3);case n0:return h(E,cb);case rb:return h(E,r3);case Ei:return h(E,cy);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function qi(E){return JSON.stringify(E).replace(Fh,function(_){switch(_){case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function Ar(E){return JSON.stringify(E).replace(u3,function(_){switch(_){case\"&\":return\"\\\\\\\\u0026\";case\">\":return\"\\\\\\\\u003e\";case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function zr(E){var _=E.rules,L=E.hrefs;0<_.length&&L.length===0&&console.error(\"React expected to have at least one href for an a hoistable style but found none. This is a bug in React.\");var X=0;if(L.length){for(p(this,Hh),p(this,E.precedence),p(this,yp);X<L.length-1;X++)p(this,L[X]),p(this,d3);for(p(this,L[X]),p(this,Vw),X=0;X<_.length;X++)p(this,_[X]);Gw=h(this,$E),dy=!0,_.length=0,L.length=0}}function la(E){return E.state!==lb?dy=!0:!1}function ue(E,_,L){return dy=!1,Gw=!0,_.styles.forEach(zr,E),_.stylesheets.forEach(la),dy&&(L.stylesToHoist=!0),Gw}function Ie(E){for(var _=0;_<E.length;_++)p(this,E[_]);E.length=0}function _t(E){lt(bp,E.props);for(var _=0;_<bp.length;_++)p(this,bp[_]);bp.length=0,E.state=lb}function ot(E){var _=0<E.sheets.size;E.sheets.forEach(_t,this),E.sheets.clear();var L=E.rules,X=E.hrefs;if(!_||X.length){if(p(this,o0),p(this,E.precedence),E=0,X.length){for(p(this,l3);E<X.length-1;E++)p(this,X[E]),p(this,d3);p(this,X[E])}for(p(this,qw),E=0;E<L.length;E++)p(this,L[E]);p(this,eA),L.length=0,X.length=0}}function Mt(E){if(E.state===pf){E.state=Ta;var _=E.props;for(lt(bp,{rel:\"preload\",as:\"style\",href:E.props.href,crossOrigin:_.crossOrigin,fetchPriority:_.fetchPriority,integrity:_.integrity,media:_.media,hrefLang:_.hrefLang,referrerPolicy:_.referrerPolicy}),E=0;E<bp.length;E++)p(this,bp[E]);bp.length=0}}function Sn(E){E.sheets.forEach(Mt,this),E.sheets.clear()}function Gt(E,_){p(E,f3);var L=f3;_.stylesheets.forEach(function(X){if(X.state!==lb)if(X.state===Yw)p(E,L),X=X.props.href,P(X,\"href\"),p(E,y(Ar(\"\"+X))),p(E,Kw),L=vp;else{p(E,L);var se=X.props[\"data-precedence\"],le=X.props,Ae=T(\"\"+X.props.href);p(E,y(Ar(Ae))),P(se,\"precedence\"),se=\"\"+se,p(E,i0),p(E,y(Ar(se)));for(var Ce in le)if(Zr.call(le,Ce)&&(se=le[Ce],se!=null))switch(Ce){case\"href\":case\"rel\":case\"precedence\":case\"data-precedence\":break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:mn(E,Ce,se)}p(E,Kw),L=vp,X.state=Yw}}),p(E,Kw)}function mn(E,_,L){var X=_.toLowerCase();switch(typeof L){case\"function\":case\"symbol\":return}switch(_){case\"innerHTML\":case\"dangerouslySetInnerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"style\":case\"ref\":return;case\"className\":X=\"class\",P(L,X),_=\"\"+L;break;case\"hidden\":if(L===!1)return;_=\"\";break;case\"src\":case\"href\":L=T(L),P(L,X),_=\"\"+L;break;default:if(2<_.length&&(_[0]===\"o\"||_[0]===\"O\")&&(_[1]===\"n\"||_[1]===\"N\")||!Q(_))return;P(L,X),_=\"\"+L}p(E,i0),p(E,y(Ar(X))),p(E,i0),p(E,y(Ar(_)))}function On(){return{styles:new Set,stylesheets:new Set}}function rr(E,_,L,X){(E.scriptResources.hasOwnProperty(L)||E.moduleScriptResources.hasOwnProperty(L))&&console.error(\\'Internal React Error: React expected bootstrap script or module with src \"%s\" to not have been preloaded already. please file an issue\\',L),E.scriptResources[L]=Fa,E.moduleScriptResources[L]=Fa,E=[],lt(E,X),_.bootstrapScripts.add(E)}function un(E,_){E.crossOrigin==null&&(E.crossOrigin=_[0]),E.integrity==null&&(E.integrity=_[1])}function Ni(E,_,L){E=yo(E),_=of(_,\"as\"),_=\"<\"+E+\\'>; rel=preload; as=\"\\'+_+\\'\"\\';for(var X in L)Zr.call(L,X)&&(E=L[X],typeof E==\"string\"&&(_+=\"; \"+X.toLowerCase()+\\'=\"\\'+of(E,X)+\\'\"\\'));return _}function yo(E){return P(E,\"href\"),(\"\"+E).replace(Zw,Xo)}function Xo(E){switch(E){case\"<\":return\"%3C\";case\">\":return\"%3E\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function of(E,_){return S(E)&&(console.error(\"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.\",_,R(E)),M(E)),(\"\"+E).replace(ti,_r)}function _r(E){switch(E){case\\'\"\\':return\"%22\";case\"\\'\":return\"%27\";case\";\":return\"%3B\";case\",\":return\"%2C\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function Nr(E){this.styles.add(E)}function $l(E){this.stylesheets.add(E)}function kn(E){if(E==null)return null;if(typeof E==\"function\")return E.$$typeof===fy?null:E.displayName||E.name||null;if(typeof E==\"string\")return E;switch(E){case uf:return\"Fragment\";case qs:return\"Profiler\";case lf:return\"StrictMode\";case Es:return\"Suspense\";case J1:return\"SuspenseList\";case Ow:return\"Activity\"}if(typeof E==\"object\")switch(typeof E.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),E.$$typeof){case Qm:return\"Portal\";case Jm:return(E.displayName||\"Context\")+\".Provider\";case Zg:return(E._context.displayName||\"Context\")+\".Consumer\";case Q1:var _=E.render;return E=E.displayName,E||(E=_.displayName||_.name||\"\",E=E!==\"\"?\"ForwardRef(\"+E+\")\":\"ForwardRef\"),E;case ul:return _=E.displayName||null,_!==null?_:kn(E.type)||\"Memo\";case ll:_=E._payload,E=E._init;try{return kn(E(_))}catch{}}return null}function bo(E,_){if(E!==_){E.context._currentValue=E.parentValue,E=E.parent;var L=_.parent;if(E===null){if(L!==null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\")}else{if(L===null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\");bo(E,L)}_.context._currentValue=_.value}}function cp(E){E.context._currentValue=E.parentValue,E=E.parent,E!==null&&cp(E)}function ao(E){var _=E.parent;_!==null&&ao(_),E.context._currentValue=E.value}function $o(E,_){if(E.context._currentValue=E.parentValue,E=E.parent,E===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");E.depth===_.depth?bo(E,_):$o(E,_)}function Yt(E,_){var L=_.parent;if(L===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");E.depth===L.depth?bo(E,L):Yt(E,L),_.context._currentValue=_.value}function jr(E){var _=ad;_!==E&&(_===null?ao(E):E===null?cp(_):_.depth===E.depth?bo(_,E):_.depth>E.depth?$o(_,E):Yt(_,E),ad=E)}function Mn(E){if(E!==null&&typeof E!=\"function\"){var _=String(E);s0.has(_)||(s0.add(_),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",E))}}function af(E,_){E=(E=E.constructor)&&kn(E)||\"ReactClass\";var L=E+\".\"+_;fb[L]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\\n\\nPlease check the code for the %s component.`,_,E),fb[L]=!0)}function Ro(E,_,L){var X=E.id;E=E.overflow;var se=32-my(X)-1;X&=~(1<<se),L+=1;var le=32-my(_)+se;if(30<le){var Ae=se-se%5;return le=(X&(1<<Ae)-1).toString(32),X>>=Ae,se-=Ae,{id:1<<32-my(_)+se|L<<se|X,overflow:le+E}}return{id:1<<le|L<<se|X,overflow:E}}function Yr(E){return E>>>=0,E===0?32:31-(c4(E)/nA|0)|0}function Vs(){}function ol(E,_,L){switch(L=E[L],L===void 0?E.push(_):L!==_&&(_.then(Vs,Vs),_=L),_.status){case\"fulfilled\":return _.value;case\"rejected\":throw _.reason;default:switch(typeof _.status==\"string\"?_.then(Vs,Vs):(E=_,E.status=\"pending\",E.then(function(X){if(_.status===\"pending\"){var se=_;se.status=\"fulfilled\",se.value=X}},function(X){if(_.status===\"pending\"){var se=_;se.status=\"rejected\",se.reason=X}})),_.status){case\"fulfilled\":return _.value;case\"rejected\":throw _.reason}throw hb=_,Ac}}function xi(){if(hb===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var E=hb;return hb=null,E}function sf(E,_){return E===_&&(E!==0||1/E===1/_)||E!==E&&_!==_}function Ua(){if(_u===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Ai&&console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"),_u}function cf(){if(0<cd)throw Error(\"Rendered more hooks than during the previous render\");return{memoizedState:null,queue:null,next:null}}function il(){return Pr===null?Jw===null?(gb=!1,Jw=Pr=cf()):(gb=!0,Pr=Jw):Pr.next===null?(gb=!1,Pr=Pr.next=cf()):(gb=!0,Pr=Pr.next),Pr}function Xc(){var E=by;return by=null,E}function $c(){Ai=!1,rA=Qw=jo=_u=null,gy=!1,Jw=null,cd=0,Pr=Ha=null}function hc(E){return Ai&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),E._currentValue}function ed(E,_){return typeof _==\"function\"?_(E):_}function eu(E,_,L){if(E!==ed&&(bb=\"useReducer\"),_u=Ua(),Pr=il(),gb){if(L=Pr.queue,_=L.dispatch,Ha!==null){var X=Ha.get(L);if(X!==void 0){Ha.delete(L),L=Pr.memoizedState;do{var se=X.action;Ai=!0,L=E(L,se),Ai=!1,X=X.next}while(X!==null);return Pr.memoizedState=L,[L,_]}}return[Pr.memoizedState,_]}return Ai=!0,E=E===ed?typeof _==\"function\"?_():_:L!==void 0?L(_):_,Ai=!1,Pr.memoizedState=E,E=Pr.queue={last:null,dispatch:null},E=E.dispatch=up.bind(null,_u,E),[Pr.memoizedState,E]}function td(E,_){if(_u=Ua(),Pr=il(),_=_===void 0?null:_,Pr!==null){var L=Pr.memoizedState;if(L!==null&&_!==null){e:{var X=L[1];if(X===null)console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",bb),X=!1;else{_.length!==X.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,bb,\"[\"+_.join(\", \")+\"]\",\"[\"+X.join(\", \")+\"]\");for(var se=0;se<X.length&&se<_.length;se++)if(!mb(_[se],X[se])){X=!1;break e}X=!0}}if(X)return L[0]}}return Ai=!0,E=E(),Ai=!1,Pr.memoizedState=[E,_],E}function up(E,_,L){if(25<=cd)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(E===_u)if(gy=!0,E={action:L,next:null},Ha===null&&(Ha=new Map),L=Ha.get(_),L===void 0)Ha.set(_,E);else{for(_=L;_.next!==null;)_=_.next;_.next=E}}function U1(){throw Error(\"startTransition cannot be called during server rendering.\")}function Pi(){throw Error(\"Cannot update optimistic state while rendering.\")}function bu(E,_,L){Ua();var X=mf++,se=Qw;if(typeof E.$$FORM_ACTION==\"function\"){var le=null,Ae=rA;se=se.formState;var Ce=E.$$IS_SIGNATURE_EQUAL;if(se!==null&&typeof Ce==\"function\"){var He=se[1];Ce.call(E,se[2],se[3])&&(le=L!==void 0?\"p\"+L:\"k\"+c(JSON.stringify([Ae,null,X]),0),He===le&&(yb=X,_=se[0]))}var ke=E.bind(null,_);return E=function(pt){ke(pt)},typeof ke.$$FORM_ACTION==\"function\"&&(E.$$FORM_ACTION=function(pt){pt=ke.$$FORM_ACTION(pt),L!==void 0&&(P(L,\"target\"),L+=\"\",pt.action=L);var It=pt.data;return It&&(le===null&&(le=L!==void 0?\"p\"+L:\"k\"+c(JSON.stringify([Ae,null,X]),0)),It.append(\"$ACTION_KEY\",le)),pt}),[_,E,!1]}var yt=E.bind(null,_);return[_,function(pt){yt(pt)},!1]}function al(E){var _=yy;return yy+=1,by===null&&(by=[]),ol(by,E,_)}function Bm(){throw Error(\"Cache cannot be refreshed during server rendering.\")}function Ch(){}function lp(){}function k5(){if(vy===0){Xw=console.log,oA=console.info,$w=console.warn,e2=console.error,vb=console.group,A=console.groupCollapsed,C=console.groupEnd;var E={configurable:!0,enumerable:!0,value:lp,writable:!0};Object.defineProperties(console,{info:E,log:E,warn:E,error:E,group:E,groupCollapsed:E,groupEnd:E})}vy++}function Sw(){if(vy--,vy===0){var E={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:zo({},E,{value:Xw}),info:zo({},E,{value:oA}),warn:zo({},E,{value:$w}),error:zo({},E,{value:e2}),group:zo({},E,{value:vb}),groupCollapsed:zo({},E,{value:A}),groupEnd:zo({},E,{value:C})})}0>vy&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function vu(E){if(D===void 0)try{throw Error()}catch(L){var _=L.stack.trim().match(/\\\\n( *(at )?)/);D=_&&_[1]||\"\",ee=-1<L.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<L.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+D+E+ee}function dp(E,_){if(!E||ce)return\"\";var L=de.get(E);if(L!==void 0)return L;ce=!0,L=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var X=null;X=di.H,di.H=null,k5();try{var se={DetermineComponentFrameRoot:function(){try{if(_){var It=function(){throw Error()};if(Object.defineProperty(It.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(It,[])}catch(at){var xt=at}Reflect.construct(E,[],It)}else{try{It.call()}catch(at){xt=at}E.call(It.prototype)}}else{try{throw Error()}catch(at){xt=at}(It=E())&&typeof It.catch==\"function\"&&It.catch(function(){})}}catch(at){if(at&&xt&&typeof at.stack==\"string\")return[at.stack,xt.stack]}return[null,null]}};se.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var le=Object.getOwnPropertyDescriptor(se.DetermineComponentFrameRoot,\"name\");le&&le.configurable&&Object.defineProperty(se.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var Ae=se.DetermineComponentFrameRoot(),Ce=Ae[0],He=Ae[1];if(Ce&&He){var ke=Ce.split(`\\n`),yt=He.split(`\\n`);for(Ae=le=0;le<ke.length&&!ke[le].includes(\"DetermineComponentFrameRoot\");)le++;for(;Ae<yt.length&&!yt[Ae].includes(\"DetermineComponentFrameRoot\");)Ae++;if(le===ke.length||Ae===yt.length)for(le=ke.length-1,Ae=yt.length-1;1<=le&&0<=Ae&&ke[le]!==yt[Ae];)Ae--;for(;1<=le&&0<=Ae;le--,Ae--)if(ke[le]!==yt[Ae]){if(le!==1||Ae!==1)do if(le--,Ae--,0>Ae||ke[le]!==yt[Ae]){var pt=`\\n`+ke[le].replace(\" at new \",\" at \");return E.displayName&&pt.includes(\"<anonymous>\")&&(pt=pt.replace(\"<anonymous>\",E.displayName)),typeof E==\"function\"&&de.set(E,pt),pt}while(1<=le&&0<=Ae);break}}}finally{ce=!1,di.H=X,Sw(),Error.prepareStackTrace=L}return ke=(ke=E?E.displayName||E.name:\"\")?vu(ke):\"\",typeof E==\"function\"&&de.set(E,ke),ke}function F1(E){var _=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,E=E.stack,Error.prepareStackTrace=_,E.startsWith(`Error: react-stack-top-frame\\n`)&&(E=E.slice(29)),_=E.indexOf(`\\n`),_!==-1&&(E=E.slice(_+1)),_=E.indexOf(\"react_stack_bottom_frame\"),_!==-1&&(_=E.lastIndexOf(`\\n`,_)),_!==-1)E=E.slice(0,_);else return\"\";return E}function SE(E){if(typeof E==\"string\")return vu(E);if(typeof E==\"function\")return E.prototype&&E.prototype.isReactComponent?dp(E,!0):dp(E,!1);if(typeof E==\"object\"&&E!==null){switch(E.$$typeof){case Q1:return dp(E.render,!1);case ul:return dp(E.type,!1);case ll:var _=E,L=_._payload;_=_._init;try{E=_(L)}catch{return vu(\"Lazy\")}return SE(E)}if(typeof E.name==\"string\")return L=E.env,vu(E.name+(L?\" [\"+L+\"]\":\"\"))}switch(E){case J1:return vu(\"SuspenseList\");case Es:return vu(\"Suspense\")}return\"\"}function zg(E){if(typeof E==\"object\"&&E!==null&&typeof E.environmentName==\"string\"){var _=E.environmentName;E=[E].slice(0),typeof E[0]==\"string\"?E.splice(0,1,\"%c%s%c \"+E[0],\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",\" \"+_+\" \",\"\"):E.splice(0,0,\"%c%s%c \",\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",\" \"+_+\" \",\"\"),E.unshift(console),_=db.apply(console.error,E),_()}else console.error(E);return null}function Um(){}function H1(E,_,L,X,se,le,Ae,Ce,He,ke,yt){var pt=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=E,this.renderState=_,this.rootFormatContext=L,this.progressiveChunkSize=X===void 0?12800:X,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=pt,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=se===void 0?zg:se,this.onPostpone=ke===void 0?Um:ke,this.onAllReady=le===void 0?Um:le,this.onShellReady=Ae===void 0?Um:Ae,this.onShellError=Ce===void 0?Um:Ce,this.onFatalError=He===void 0?Um:He,this.formState=yt===void 0?null:yt,this.didWarnForKey=null}function Fm(E,_,L,X,se,le,Ae,Ce,He,ke,yt,pt){var It=ft();return 1e3<It-Pt&&(di.recentlyCreatedOwnerStacks=0,Pt=It),_=new H1(_,L,X,se,le,Ae,Ce,He,ke,yt,pt),L=pp(_,0,null,X,!1,!1),L.parentFlushed=!0,E=fp(_,null,E,-1,null,L,null,null,_.abortableTasks,null,X,null,wp,null,!1,Ec,null),jm(E),_.pingedTasks.push(E),_}function Hm(E,_,L,X,se,le,Ae,Ce,He,ke,yt){return E=Fm(E,_,L,X,se,le,Ae,Ce,He,ke,yt,void 0),E.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},E}function zm(E,_){E.pingedTasks.push(_),E.pingedTasks.length===1&&(E.flushScheduled=E.destination!==null,E.trackedPostpones!==null||E.status===10?Xm(function(){return q1(E)}):u(function(){return q1(E)}))}function Gs(E,_,L,X){return{status:Rn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:_,errorDigest:null,contentState:On(),fallbackState:On(),contentPreamble:L,fallbackPreamble:X,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function fp(E,_,L,X,se,le,Ae,Ce,He,ke,yt,pt,It,xt,at,Ln,Qr){E.allPendingTasks++,se===null?E.pendingRootTasks++:se.pendingTasks++;var Bn={replay:null,node:L,childIndex:X,ping:function(){return zm(E,Bn)},blockedBoundary:se,blockedSegment:le,blockedPreamble:Ae,hoistableState:Ce,abortSet:He,keyPath:ke,formatContext:yt,context:pt,treeContext:It,componentStack:xt,thenableState:_,isFallback:at};return Bn.debugTask=Qr,He.add(Bn),Bn}function Tw(E,_,L,X,se,le,Ae,Ce,He,ke,yt,pt,It,xt,at,Ln){E.allPendingTasks++,le===null?E.pendingRootTasks++:le.pendingTasks++,L.pendingTasks++;var Qr={replay:L,node:X,childIndex:se,ping:function(){return zm(E,Qr)},blockedBoundary:le,blockedSegment:null,blockedPreamble:null,hoistableState:Ae,abortSet:Ce,keyPath:He,formatContext:ke,context:yt,treeContext:pt,componentStack:It,thenableState:_,isFallback:xt};return Qr.debugTask=Ln,Ce.add(Qr),Qr}function pp(E,_,L,X,se,le){return{status:Rn,parentFlushed:!1,id:-1,index:_,chunks:[],children:[],preambleChildren:[],parentFormatContext:X,boundary:L,lastPushedText:se,textEmbedded:le}}function Rh(){if(Wo===null||Wo.componentStack===null)return\"\";var E=Wo.componentStack;try{var _=\"\";if(typeof E.type==\"string\")_+=vu(E.type);else if(typeof E.type==\"function\"){if(!E.owner){var L=_,X=E.type,se=X?X.displayName||X.name:\"\",le=se?vu(se):\"\";_=L+le}}else E.owner||(_+=SE(E.type));for(;E;)L=null,E.debugStack!=null?L=F1(E.debugStack):(le=E,le.stack!=null&&(L=typeof le.stack!=\"string\"?le.stack=F1(le.stack):le.stack)),(E=E.owner)&&L&&(_+=`\\n`+L);var Ae=_}catch(Ce){Ae=`\\nError generating stack: `+Ce.message+`\\n`+Ce.stack}return Ae}function z1(E,_){if(_!=null)for(var L=0;L<_.length;L++){var X=_[L];typeof X.name==\"string\"&&X.debugStack!==void 0&&(E.componentStack={parent:E.componentStack,type:X,owner:X.owner,stack:X.debugStack},E.debugTask=X.debugTask)}}function jm(E){var _=E.node;if(typeof _==\"object\"&&_!==null)switch(_.$$typeof){case kh:var L=_.type,X=_._owner,se=_._debugStack;z1(E,_._debugInfo),E.debugTask=_._debugTask,E.componentStack={parent:E.componentStack,type:L,owner:X,stack:se};break;case ll:z1(E,_._debugInfo);break;default:typeof _.then==\"function\"&&z1(E,_._debugInfo)}}function as(E){var _={};return E&&Object.defineProperty(_,\"componentStack\",{configurable:!0,enumerable:!0,get:function(){try{var L=\"\",X=E;do L+=SE(X.type),X=X.parent;while(X);var se=L}catch(le){se=`\\nError generating stack: `+le.message+`\\n`+le.stack}return Object.defineProperty(_,\"componentStack\",{value:se}),se}}),_}function nd(E,_,L,X,se){E.errorDigest=_,L instanceof Error?(_=String(L.message),L=String(L.stack)):(_=typeof L==\"object\"&&L!==null?a(L):String(L),L=null),se=se?`Switched to client rendering because the server rendering aborted due to:\\n\\n`:`Switched to client rendering because the server rendering errored:\\n\\n`,E.errorMessage=se+_,E.errorStack=L!==null?se+L:null,E.errorComponentStack=X.componentStack}function mc(E,_,L,X){if(E=E.onError,_=X?X.run(E.bind(null,_,L)):E(_,L),_!=null&&typeof _!=\"string\")console.error(\\'onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"%s\" instead\\',typeof _);else return _}function jg(E,_,L,X){L=E.onShellError;var se=E.onFatalError;X?(X.run(L.bind(null,_)),X.run(se.bind(null,_))):(L(_),se(_)),E.destination!==null?(E.status=Hn,x(E.destination,_)):(E.status=13,E.fatalError=_)}function N5(E,_,L,X,se,le){var Ae=_.thenableState;for(_.thenableState=null,_u={},jo=_,Qw=E,rA=L,Ai=!1,mf=xp=0,yb=-1,yy=0,by=Ae,E=Me(X,se,le);gy;)gy=!1,mf=xp=0,yb=-1,yy=0,cd+=1,Pr=null,E=X(se,le);return $c(),E}function P5(E,_,L,X,se,le,Ae){var Ce=!1;if(le!==0&&E.formState!==null){var He=_.blockedSegment;if(He!==null){Ce=!0,He=He.chunks;for(var ke=0;ke<le;ke++)ke===Ae?He.push(G5):He.push(q5)}}le=_.keyPath,_.keyPath=L,se?(L=_.treeContext,_.treeContext=Ro(L,1,0),sl(E,_,X,-1),_.treeContext=L):Ce?sl(E,_,X,-1):wu(E,_,X,-1),_.keyPath=le}function tu(E,_,L,X,se,le){if(typeof X==\"function\")if(X.prototype&&X.prototype.isReactComponent){var Ae=se;if(\"ref\"in se){Ae={};for(var Ce in se)Ce!==\"ref\"&&(Ae[Ce]=se[Ce])}var He=X.defaultProps;if(He){Ae===se&&(Ae=zo({},Ae,se));for(var ke in He)Ae[ke]===void 0&&(Ae[ke]=He[ke])}var yt=Ae,pt=Ec,It=X.contextType;if(\"contextType\"in X&&It!==null&&(It===void 0||It.$$typeof!==Jm)&&!p3.has(X)){p3.add(X);var xt=It===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof It!=\"object\"?\" However, it is set to a \"+typeof It+\".\":It.$$typeof===Zg?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(It).join(\", \")+\"}.\";console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",kn(X)||\"Component\",xt)}typeof It==\"object\"&&It!==null&&(pt=It._currentValue);var at=new X(yt,pt);if(typeof X.getDerivedStateFromProps==\"function\"&&(at.state===null||at.state===void 0)){var Ln=kn(X)||\"Component\";hf.has(Ln)||(hf.add(Ln),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",Ln,at.state===null?\"null\":\"undefined\",Ln))}if(typeof X.getDerivedStateFromProps==\"function\"||typeof at.getSnapshotBeforeUpdate==\"function\"){var Qr=null,Bn=null,nn=null;if(typeof at.componentWillMount==\"function\"&&at.componentWillMount.__suppressDeprecationWarning!==!0?Qr=\"componentWillMount\":typeof at.UNSAFE_componentWillMount==\"function\"&&(Qr=\"UNSAFE_componentWillMount\"),typeof at.componentWillReceiveProps==\"function\"&&at.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Bn=\"componentWillReceiveProps\":typeof at.UNSAFE_componentWillReceiveProps==\"function\"&&(Bn=\"UNSAFE_componentWillReceiveProps\"),typeof at.componentWillUpdate==\"function\"&&at.componentWillUpdate.__suppressDeprecationWarning!==!0?nn=\"componentWillUpdate\":typeof at.UNSAFE_componentWillUpdate==\"function\"&&(nn=\"UNSAFE_componentWillUpdate\"),Qr!==null||Bn!==null||nn!==null){var fi=kn(X)||\"Component\",co=typeof X.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";sd.has(fi)||(sd.add(fi),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,fi,co,Qr!==null?`\\n  `+Qr:\"\",Bn!==null?`\\n  `+Bn:\"\",nn!==null?`\\n  `+nn:\"\"))}}var zn=kn(X)||\"Component\";at.render||(X.prototype&&typeof X.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",zn):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",zn)),!at.getInitialState||at.getInitialState.isReactClassApproved||at.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",zn),at.getDefaultProps&&!at.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",zn),at.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",zn),X.childContextTypes&&!gl.has(X)&&(gl.add(X),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",zn)),X.contextTypes&&!hy.has(X)&&(hy.add(X),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",zn)),typeof at.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",zn),X.prototype&&X.prototype.isPureReactComponent&&typeof at.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",kn(X)||\"A pure component\"),typeof at.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",zn),typeof at.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",zn),typeof at.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",zn),typeof at.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",zn);var za=at.props!==yt;at.props!==void 0&&za&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",zn),at.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",zn,zn),typeof at.getSnapshotBeforeUpdate!=\"function\"||typeof at.componentDidUpdate==\"function\"||py.has(X)||(py.add(X),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",kn(X))),typeof at.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",zn),typeof at.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",zn),typeof X.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",zn);var Ss=at.state;Ss&&(typeof Ss!=\"object\"||yc(Ss))&&console.error(\"%s.state: must be set to an object or null\",zn),typeof at.getChildContext==\"function\"&&typeof X.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",zn);var Li=at.state!==void 0?at.state:null;at.updater=tA,at.props=yt,at.state=Li;var Zi={queue:[],replace:!1};at._reactInternals=Zi;var Vo=X.contextType;if(at.context=typeof Vo==\"object\"&&Vo!==null?Vo._currentValue:Ec,at.state===yt){var _i=kn(X)||\"Component\";a0.has(_i)||(a0.add(_i),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",_i))}var Qi=X.getDerivedStateFromProps;if(typeof Qi==\"function\"){var $n=Qi(yt,Li);if($n===void 0){var Go=kn(X)||\"Component\";pb.has(Go)||(pb.add(Go),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",Go))}var uo=$n==null?Li:zo({},Li,$n);at.state=uo}if(typeof X.getDerivedStateFromProps!=\"function\"&&typeof at.getSnapshotBeforeUpdate!=\"function\"&&(typeof at.UNSAFE_componentWillMount==\"function\"||typeof at.componentWillMount==\"function\")){var ja=at.state;if(typeof at.componentWillMount==\"function\"){if(at.componentWillMount.__suppressDeprecationWarning!==!0){var Wa=kn(X)||\"Unknown\";jh[Wa]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\\n\\nPlease update the following components: %s`,Wa),jh[Wa]=!0)}at.componentWillMount()}if(typeof at.UNSAFE_componentWillMount==\"function\"&&at.UNSAFE_componentWillMount(),ja!==at.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",kn(X)||\"Component\"),tA.enqueueReplaceState(at,at.state,null)),Zi.queue!==null&&0<Zi.queue.length){var pa=Zi.queue,iu=Zi.replace;if(Zi.queue=null,Zi.replace=!1,iu&&pa.length===1)at.state=pa[0];else{for(var Ia=iu?pa[0]:at.state,au=!0,gf=iu?1:0;gf<pa.length;gf++){var or=pa[gf],yl=typeof or==\"function\"?or.call(at,Ia,yt,void 0):or;yl!=null&&(au?(au=!1,Ia=zo({},Ia,yl)):zo(Ia,yl))}at.state=Ia}}else Zi.queue=null}var Sc=Le(at);if(E.status===12)throw null;at.props!==yt&&(Su||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",kn(X)||\"a component\"),Su=!0);var yf=_.keyPath;_.keyPath=L,wu(E,_,Sc,-1),_.keyPath=yf}else{if(X.prototype&&typeof X.prototype.render==\"function\"){var ss=kn(X)||\"Unknown\";fa[ss]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",ss,ss),fa[ss]=!0)}var ha=N5(E,_,L,X,se,void 0);if(E.status===12)throw null;var ri=xp!==0,cs=mf,$s=yb;if(X.contextTypes){var ud=kn(X)||\"Unknown\";Ra[ud]||(Ra[ud]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",ud))}if(X&&X.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,X.displayName||X.name||\"Component\"),typeof X.getDerivedStateFromProps==\"function\"){var Va=kn(X)||\"Unknown\";ni[Va]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",Va),ni[Va]=!0)}if(typeof X.contextType==\"object\"&&X.contextType!==null){var Tu=kn(X)||\"Unknown\";Di[Tu]||(console.error(\"%s: Function components do not support contextType.\",Tu),Di[Tu]=!0)}P5(E,_,L,ha,ri,cs,$s)}else if(typeof X==\"string\"){var Tc=_.blockedSegment;if(Tc===null){var ec=se.children,oi=_.formatContext,Ts=_.keyPath;_.formatContext=G(oi,X,se),_.keyPath=L,sl(E,_,ec,-1),_.formatContext=oi,_.keyPath=Ts}else{var su=Jt(Tc.chunks,X,se,E.resumableState,E.renderState,_.blockedPreamble,_.hoistableState,_.formatContext,Tc.lastPushedText,_.isFallback);Tc.lastPushedText=!1;var Cu=_.formatContext,cu=_.keyPath;if(_.keyPath=L,(_.formatContext=G(Cu,X,se)).insertionMode===Bh){var ld=pp(E,0,null,_.formatContext,!1,!1);Tc.preambleChildren.push(ld);var tc=fp(E,null,su,-1,_.blockedBoundary,ld,_.blockedPreamble,_.hoistableState,E.abortableTasks,_.keyPath,_.formatContext,_.context,_.treeContext,_.componentStack,_.isFallback,Ec,_.debugTask);jm(tc),E.pingedTasks.push(tc)}else sl(E,_,su,-1);_.formatContext=Cu,_.keyPath=cu;e:{var bl=Tc.chunks,Ru=E.resumableState;switch(X){case\"title\":case\"style\":case\"script\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break e;case\"body\":if(Cu.insertionMode<=ry){Ru.hasBody=!0;break e}break;case\"html\":if(Cu.insertionMode===ny){Ru.hasHtml=!0;break e}break;case\"head\":if(Cu.insertionMode<=ry)break e}bl.push(Xt(X))}Tc.lastPushedText=!1}}else{switch(X){case da:case lf:case qs:case uf:var vl=_.keyPath;_.keyPath=L,wu(E,_,se.children,-1),_.keyPath=vl;return;case Ow:if(se.mode!==\"hidden\"){var wl=_.keyPath;_.keyPath=L,wu(E,_,se.children,-1),_.keyPath=wl}return;case J1:var Cc=_.keyPath;_.keyPath=L,wu(E,_,se.children,-1),_.keyPath=Cc;return;case PP:case RE:throw Error(\"ReactDOMServer does not yet support scope components.\");case Es:e:if(_.replay!==null){var nc=_.keyPath;_.keyPath=L;var Vh=se.children;try{sl(E,_,Vh,-1)}finally{_.keyPath=nc}}else{var Tn=_.keyPath,dd=_.blockedBoundary,fd=_.blockedPreamble,c0=_.hoistableState,uu=_.blockedSegment,pd=se.fallback,Ga=se.children,us=new Set,pi=_.formatContext.insertionMode<ru?Gs(E,us,B(),B()):Gs(E,us,null,null);E.trackedPostpones!==null&&(pi.trackedContentKeyPath=L);var Ji=pp(E,uu.chunks.length,pi,_.formatContext,!1,!1);uu.children.push(Ji),uu.lastPushedText=!1;var Vr=pp(E,0,null,_.formatContext,!1,!1);if(Vr.parentFlushed=!0,E.trackedPostpones!==null){var wy=[L[0],\"Suspense Fallback\",L[2]],Xi=[wy[1],wy[2],[],null];E.trackedPostpones.workingMap.set(wy,Xi),pi.trackedFallbackNode=Xi,_.blockedSegment=Ji,_.blockedPreamble=pi.fallbackPreamble,_.keyPath=wy,Ji.status=6;try{sl(E,_,pd,-1),Ji.lastPushedText&&Ji.textEmbedded&&Ji.chunks.push(ff),Ji.status=wn}catch(Cp){throw Ji.status=E.status===12?3:4,Cp}finally{_.blockedSegment=uu,_.blockedPreamble=fd,_.keyPath=Tn}var xl=fp(E,null,Ga,-1,pi,Vr,pi.contentPreamble,pi.contentState,_.abortSet,L,_.formatContext,_.context,_.treeContext,_.componentStack,_.isFallback,Ec,_.debugTask);jm(xl),E.pingedTasks.push(xl)}else{_.blockedBoundary=pi,_.blockedPreamble=pi.contentPreamble,_.hoistableState=pi.contentState,_.blockedSegment=Vr,_.keyPath=L,Vr.status=6;try{if(sl(E,_,Ga,-1),Vr.lastPushedText&&Vr.textEmbedded&&Vr.chunks.push(ff),Vr.status=wn,G1(pi,Vr),pi.pendingTasks===0&&pi.status===Rn){pi.status=wn,E.pendingRootTasks===0&&_.blockedPreamble&&Km(E);break e}}catch(Cp){if(pi.status=Dn,E.status===12){Vr.status=3;var Cs=E.fatalError}else Vr.status=4,Cs=Cp;var xy=as(_.componentStack),Si=mc(E,Cs,xy,_.debugTask);nd(pi,Si,Cs,xy,!1),Vg(E,pi)}finally{_.blockedBoundary=dd,_.blockedPreamble=fd,_.hoistableState=c0,_.blockedSegment=uu,_.keyPath=Tn}var Mr=fp(E,null,pd,-1,dd,Ji,pi.fallbackPreamble,pi.fallbackState,us,[L[0],\"Suspense Fallback\",L[2]],_.formatContext,_.context,_.treeContext,_.componentStack,!0,Ec,_.debugTask);jm(Mr),E.pingedTasks.push(Mr)}}return}if(typeof X==\"object\"&&X!==null)switch(X.$$typeof){case Q1:if(\"ref\"in se){var hd={};for(var ii in se)ii!==\"ref\"&&(hd[ii]=se[ii])}else hd=se;var Gh=N5(E,_,L,X.render,hd,le);P5(E,_,L,Gh,xp!==0,mf,yb);return;case ul:tu(E,_,L,X.type,se,le);return;case cl:case Jm:var bf=se.value,Ep=se.children,Ap=_.context,Rc=_.keyPath,_p=X._currentValue;X._currentValue=bf,X._currentRenderer!==void 0&&X._currentRenderer!==null&&X._currentRenderer!==zh&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),X._currentRenderer=zh;var md=ad,gd={parent:md,depth:md===null?0:md.depth+1,context:X,parentValue:_p,value:bf};ad=gd,_.context=gd,_.keyPath=L,wu(E,_,Ep,-1);var lu=ad;if(lu===null)throw Error(\"Tried to pop a Context at the root of the app. This is a bug in React.\");lu.context!==X&&console.error(\"The parent context is not the expected context. This is probably a bug in React.\"),lu.context._currentValue=lu.parentValue,X._currentRenderer!==void 0&&X._currentRenderer!==null&&X._currentRenderer!==zh&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),X._currentRenderer=zh;var yd=ad=lu.parent;_.context=yd,_.keyPath=Rc,Ap!==_.context&&console.error(\"Popping the context provider did not return back to the original snapshot. This is a bug in React.\");return;case Zg:var Oa=X._context,Ti=se.children;typeof Ti!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\");var wb=Ti(Oa._currentValue),Sp=_.keyPath;_.keyPath=L,wu(E,_,wb,-1),_.keyPath=Sp;return;case ll:var Ey=Ot(X);if(E.status===12)throw null;tu(E,_,L,Ey,se,le);return}var Tp=\"\";throw(X===void 0||typeof X==\"object\"&&X!==null&&Object.keys(X).length===0)&&(Tp+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+((X==null?X:typeof X)+\".\"+Tp))}}function Wg(E,_,L,X,se){var le=_.replay,Ae=_.blockedBoundary,Ce=pp(E,0,null,_.formatContext,!1,!1);Ce.id=L,Ce.parentFlushed=!0;try{_.replay=null,_.blockedSegment=Ce,sl(E,_,X,se),Ce.status=wn,Ae===null?E.completedRootSegment=Ce:(G1(Ae,Ce),Ae.parentFlushed&&E.partialBoundaries.push(Ae))}finally{_.replay=le,_.blockedSegment=null}}function Wm(E,_,L,X,se,le,Ae,Ce,He,ke){le=ke.nodes;for(var yt=0;yt<le.length;yt++){var pt=le[yt];if(se===pt[1]){if(pt.length===4){if(X!==null&&X!==pt[0])throw Error(\"Expected the resume to render <\"+pt[0]+\"> in this slot but instead it rendered <\"+X+\">. The tree doesn\\'t match so React will fallback to client rendering.\");var It=pt[2];pt=pt[3],X=_.node,_.replay={nodes:It,slots:pt,pendingTasks:1};try{if(tu(E,_,L,Ae,Ce,He),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");_.replay.pendingTasks--}catch(co){if(typeof co==\"object\"&&co!==null&&(co===Ac||typeof co.then==\"function\"))throw _.node===X&&(_.replay=ke),co;_.replay.pendingTasks--,Ae=as(_.componentStack),Ce=E,E=_.blockedBoundary,L=co,He=pt,pt=mc(Ce,L,Ae,_.debugTask),W1(Ce,E,It,He,L,pt,Ae,!1)}_.replay=ke}else{if(Ae!==Es)throw Error(\"Expected the resume to render <Suspense> in this slot but instead it rendered <\"+(kn(Ae)||\"Unknown\")+\">. The tree doesn\\'t match so React will fallback to client rendering.\");e:{ke=void 0,Ae=pt[5],He=pt[2],X=pt[3],se=pt[4]===null?[]:pt[4][2],pt=pt[4]===null?null:pt[4][3];var xt=_.keyPath,at=_.replay,Ln=_.blockedBoundary,Qr=_.hoistableState,Bn=Ce.children,nn=Ce.fallback,fi=new Set;Ce=_.formatContext.insertionMode<ru?Gs(E,fi,B(),B()):Gs(E,fi,null,null),Ce.parentFlushed=!0,Ce.rootSegmentID=Ae,_.blockedBoundary=Ce,_.hoistableState=Ce.contentState,_.keyPath=L,_.replay={nodes:He,slots:X,pendingTasks:1};try{if(sl(E,_,Bn,-1),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");if(_.replay.pendingTasks--,Ce.pendingTasks===0&&Ce.status===Rn){Ce.status=wn,E.completedBoundaries.push(Ce);break e}}catch(co){Ce.status=Dn,It=as(_.componentStack),ke=mc(E,co,It,_.debugTask),nd(Ce,ke,co,It,!1),_.replay.pendingTasks--,E.clientRenderedBoundaries.push(Ce)}finally{_.blockedBoundary=Ln,_.hoistableState=Qr,_.replay=at,_.keyPath=xt}Ce=Tw(E,null,{nodes:se,slots:pt,pendingTasks:0},nn,-1,Ln,Ce.fallbackState,fi,[L[0],\"Suspense Fallback\",L[2]],_.formatContext,_.context,_.treeContext,_.componentStack,!0,Ec,_.debugTask),jm(Ce),E.pingedTasks.push(Ce)}}le.splice(yt,1);break}}}function wu(E,_,L,X){_.replay!==null&&typeof _.replay.slots==\"number\"?Wg(E,_,_.replay.slots,L,X):(_.node=L,_.childIndex=X,L=_.componentStack,X=_.debugTask,jm(_),j1(E,_),_.componentStack=L,_.debugTask=X)}function j1(E,_){var L=_.node,X=_.childIndex;if(L!==null){if(typeof L==\"object\"){switch(L.$$typeof){case kh:var se=L.type,le=L.key;L=L.props;var Ae=L.ref;Ae=Ae!==void 0?Ae:null;var Ce=_.debugTask,He=kn(se);le=le??(X===-1?0:X);var ke=[_.keyPath,He,le];_.replay!==null?Ce?Ce.run(Wm.bind(null,E,_,ke,He,le,X,se,L,Ae,_.replay)):Wm(E,_,ke,He,le,X,se,L,Ae,_.replay):Ce?Ce.run(tu.bind(null,E,_,ke,se,L,Ae)):tu(E,_,ke,se,L,Ae);return;case Qm:throw Error(\"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.\");case ll:if(L=Ot(L),E.status===12)throw null;wu(E,_,L,X);return}if(yc(L)){Ih(E,_,L,X);return}if(L===null||typeof L!=\"object\"?le=null:(se=kw&&L[kw]||L[\"@@iterator\"],le=typeof se==\"function\"?se:null),le&&(se=le.call(L))){if(se===L?(X!==-1||_.componentStack===null||typeof _.componentStack.type!=\"function\"||Object.prototype.toString.call(_.componentStack.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(se)!==\"[object Generator]\")&&(_c||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),_c=!0):L.entries!==le||Wr||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Wr=!0),L=se.next(),!L.done){le=[];do le.push(L.value),L=se.next();while(!L.done);Ih(E,_,le,X)}return}if(typeof L.then==\"function\")return _.thenableState=null,wu(E,_,al(L),X);if(L.$$typeof===Jm)return wu(E,_,L._currentValue,X);throw E=Object.prototype.toString.call(L),Error(\"Objects are not valid as a React child (found: \"+(E===\"[object Object]\"?\"object with keys {\"+Object.keys(L).join(\", \")+\"}\":E)+\"). If you meant to render a collection of children, use an array instead.\")}typeof L==\"string\"?(_=_.blockedSegment,_!==null&&(_.lastPushedText=O(_.chunks,L,E.renderState,_.lastPushedText))):typeof L==\"number\"||typeof L==\"bigint\"?(_=_.blockedSegment,_!==null&&(_.lastPushedText=O(_.chunks,\"\"+L,E.renderState,_.lastPushedText))):(typeof L==\"function\"&&(E=L.displayName||L.name||\"Component\",console.error(\"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\",E,E)),typeof L==\"symbol\"&&console.error(`Symbols are not valid as a React child.\\n  %s`,String(L)))}}function Ih(E,_,L,X){var se=_.keyPath,le=_.componentStack,Ae=_.debugTask;if(z1(_,_.node._debugInfo),X!==-1&&(_.keyPath=[_.keyPath,\"Fragment\",X],_.replay!==null)){for(var Ce=_.replay,He=Ce.nodes,ke=0;ke<He.length;ke++){var yt=He[ke];if(yt[1]===X){X=yt[2],yt=yt[3],_.replay={nodes:X,slots:yt,pendingTasks:1};try{if(Ih(E,_,L,-1),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");_.replay.pendingTasks--}catch(Bn){if(typeof Bn==\"object\"&&Bn!==null&&(Bn===Ac||typeof Bn.then==\"function\"))throw Bn;_.replay.pendingTasks--;var pt=as(_.componentStack);L=_.blockedBoundary;var It=Bn,xt=yt;yt=mc(E,It,pt,_.debugTask),W1(E,L,X,xt,It,yt,pt,!1)}_.replay=Ce,He.splice(ke,1);break}}_.keyPath=se,_.componentStack=le,_.debugTask=Ae;return}if(Ce=_.treeContext,He=L.length,_.replay!==null&&(ke=_.replay.slots,ke!==null&&typeof ke==\"object\")){for(X=0;X<He;X++)yt=L[X],_.treeContext=Ro(Ce,He,X),It=ke[X],typeof It==\"number\"?(Wg(E,_,It,yt,X),delete ke[X]):sl(E,_,yt,X);_.treeContext=Ce,_.keyPath=se,_.componentStack=le,_.debugTask=Ae;return}for(ke=0;ke<He;ke++){if(X=L[ke],xt=E,yt=_,It=X,It!==null&&typeof It==\"object\"&&(It.$$typeof===kh||It.$$typeof===Qm)&&It._store&&(!It._store.validated&&It.key==null||It._store.validated===2)){if(typeof It._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");if(It._store.validated=1,pt=xt.didWarnForKey,pt==null&&(pt=xt.didWarnForKey=new WeakSet),xt=yt.componentStack,xt!==null&&!pt.has(xt)){pt.add(xt);var at=kn(It.type);pt=It._owner;var Ln=xt.owner;if(xt=\"\",Ln&&typeof Ln.type<\"u\"){var Qr=kn(Ln.type);Qr&&(xt=`\\n\\nCheck the render method of \\\\``+Qr+\"`.\")}xt||at&&(xt=`\\n\\nCheck the top-level render call using <`+at+\">.\"),at=\"\",pt!=null&&Ln!==pt&&(Ln=null,typeof pt.type<\"u\"?Ln=kn(pt.type):typeof pt.name==\"string\"&&(Ln=pt.name),Ln&&(at=\" It was passed a child from \"+Ln+\".\")),pt=yt.componentStack,yt.componentStack={parent:yt.componentStack,type:It.type,owner:It._owner,stack:It._debugStack},console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',xt,at),yt.componentStack=pt}}_.treeContext=Ro(Ce,He,ke),sl(E,_,X,ke)}_.treeContext=Ce,_.keyPath=se,_.componentStack=le,_.debugTask=Ae}function Vg(E,_){E=E.trackedPostpones,E!==null&&(_=_.trackedContentKeyPath,_!==null&&(_=E.workingMap.get(_),_!==void 0&&(_.length=4,_[2]=[],_[3]=null)))}function Oh(E,_,L){return Tw(E,L,_.replay,_.node,_.childIndex,_.blockedBoundary,_.hoistableState,_.abortSet,_.keyPath,_.formatContext,_.context,_.treeContext,_.componentStack,_.isFallback,Ec,_.debugTask)}function Gg(E,_,L){var X=_.blockedSegment,se=pp(E,X.chunks.length,null,_.formatContext,X.lastPushedText,!0);return X.children.push(se),X.lastPushedText=!1,fp(E,L,_.node,_.childIndex,_.blockedBoundary,se,_.blockedPreamble,_.hoistableState,_.abortSet,_.keyPath,_.formatContext,_.context,_.treeContext,_.componentStack,_.isFallback,Ec,_.debugTask)}function sl(E,_,L,X){var se=_.formatContext,le=_.context,Ae=_.keyPath,Ce=_.treeContext,He=_.componentStack,ke=_.debugTask,yt=_.blockedSegment;if(yt===null)try{return wu(E,_,L,X)}catch(xt){if($c(),L=xt===Ac?xi():xt,typeof L==\"object\"&&L!==null){if(typeof L.then==\"function\"){X=Xc(),E=Oh(E,_,X).ping,L.then(E,E),_.formatContext=se,_.context=le,_.keyPath=Ae,_.treeContext=Ce,_.componentStack=He,_.debugTask=ke,jr(le);return}if(L.message===\"Maximum call stack size exceeded\"){L=Xc(),L=Oh(E,_,L),E.pingedTasks.push(L),_.formatContext=se,_.context=le,_.keyPath=Ae,_.treeContext=Ce,_.componentStack=He,_.debugTask=ke,jr(le);return}}}else{var pt=yt.children.length,It=yt.chunks.length;try{return wu(E,_,L,X)}catch(xt){if($c(),yt.children.length=pt,yt.chunks.length=It,L=xt===Ac?xi():xt,typeof L==\"object\"&&L!==null){if(typeof L.then==\"function\"){X=Xc(),E=Gg(E,_,X).ping,L.then(E,E),_.formatContext=se,_.context=le,_.keyPath=Ae,_.treeContext=Ce,_.componentStack=He,_.debugTask=ke,jr(le);return}if(L.message===\"Maximum call stack size exceeded\"){L=Xc(),L=Gg(E,_,L),E.pingedTasks.push(L),_.formatContext=se,_.context=le,_.keyPath=Ae,_.treeContext=Ce,_.componentStack=He,_.debugTask=ke,jr(le);return}}}}throw _.formatContext=se,_.context=le,_.keyPath=Ae,_.treeContext=Ce,jr(le),L}function gc(E){var _=E.blockedBoundary;E=E.blockedSegment,E!==null&&(E.status=3,Cw(this,_,E))}function W1(E,_,L,X,se,le,Ae,Ce){for(var He=0;He<L.length;He++){var ke=L[He];if(ke.length===4)W1(E,_,ke[2],ke[3],se,le,Ae,Ce);else{var yt=E;ke=ke[5];var pt=se,It=le,xt=Ae,at=Ce,Ln=Gs(yt,new Set,null,null);Ln.parentFlushed=!0,Ln.rootSegmentID=ke,Ln.status=Dn,nd(Ln,It,pt,xt,at),Ln.parentFlushed&&yt.clientRenderedBoundaries.push(Ln)}}if(L.length=0,X!==null){if(_===null)throw Error(\"We should not have any resumable nodes in the shell. This is a bug in React.\");if(_.status!==Dn&&(_.status=Dn,nd(_,le,se,Ae,Ce),_.parentFlushed&&E.clientRenderedBoundaries.push(_)),typeof X==\"object\")for(var Qr in X)delete X[Qr]}}function Vm(E,_,L){var X=E.blockedBoundary,se=E.blockedSegment;if(se!==null){if(se.status===6)return;se.status=3}if(se=as(E.componentStack),X===null){if(_.status!==13&&_.status!==Hn){if(X=E.replay,X===null){mc(_,L,se,null),jg(_,L,se,null);return}X.pendingTasks--,X.pendingTasks===0&&0<X.nodes.length&&(E=mc(_,L,se,null),W1(_,null,X.nodes,X.slots,L,E,se,!0)),_.pendingRootTasks--,_.pendingRootTasks===0&&Gm(_)}}else X.pendingTasks--,X.status!==Dn&&(X.status=Dn,E=mc(_,L,se,null),X.status=Dn,nd(X,E,L,se,!0),Vg(_,X),X.parentFlushed&&_.clientRenderedBoundaries.push(X)),X.fallbackAbortableTasks.forEach(function(le){return Vm(le,_,L)}),X.fallbackAbortableTasks.clear();_.allPendingTasks--,_.allPendingTasks===0&&V1(_)}function qg(E,_){try{var L=E.renderState,X=L.onHeaders;if(X){var se=L.headers;if(se){L.headers=null;var le=se.preconnects;if(se.fontPreloads&&(le&&(le+=\", \"),le+=se.fontPreloads),se.highImagePreloads&&(le&&(le+=\", \"),le+=se.highImagePreloads),!_){var Ae=L.styles.values(),Ce=Ae.next();e:for(;0<se.remainingCapacity&&!Ce.done;Ce=Ae.next())for(var He=Ce.value.sheets.values(),ke=He.next();0<se.remainingCapacity&&!ke.done;ke=He.next()){var yt=ke.value,pt=yt.props,It=pt.href,xt=yt.props,at=Ni(xt.href,\"style\",{crossOrigin:xt.crossOrigin,integrity:xt.integrity,nonce:xt.nonce,type:xt.type,fetchPriority:xt.fetchPriority,referrerPolicy:xt.referrerPolicy,media:xt.media});if(0<=(se.remainingCapacity-=at.length+2))L.resets.style[It]=xu,le&&(le+=\", \"),le+=at,L.resets.style[It]=typeof pt.crossOrigin==\"string\"||typeof pt.integrity==\"string\"?[pt.crossOrigin,pt.integrity]:xu;else break e}}X(le?{Link:le}:{})}}}catch(Ln){mc(E,Ln,{},null)}}function Gm(E){E.trackedPostpones===null&&qg(E,!0),E.trackedPostpones===null&&Km(E),E.onShellError=Um,E=E.onShellReady,E()}function V1(E){qg(E,E.trackedPostpones===null?!0:E.completedRootSegment===null||E.completedRootSegment.status!==yn),Km(E),E=E.onAllReady,E()}function G1(E,_){if(_.chunks.length===0&&_.children.length===1&&_.children[0].boundary===null&&_.children[0].id===-1){var L=_.children[0];L.id=_.id,L.parentFlushed=!0,L.status===wn&&G1(E,L)}else E.completedSegments.push(_)}function Cw(E,_,L){if(_===null){if(L!==null&&L.parentFlushed){if(E.completedRootSegment!==null)throw Error(\"There can only be one root segment. This is a bug in React.\");E.completedRootSegment=L}E.pendingRootTasks--,E.pendingRootTasks===0&&Gm(E)}else _.pendingTasks--,_.status!==Dn&&(_.pendingTasks===0?(_.status===Rn&&(_.status=wn),L!==null&&L.parentFlushed&&L.status===wn&&G1(_,L),_.parentFlushed&&E.completedBoundaries.push(_),_.status===wn&&(_.fallbackAbortableTasks.forEach(gc,E),_.fallbackAbortableTasks.clear(),E.pendingRootTasks===0&&E.trackedPostpones===null&&_.contentPreamble!==null&&Km(E))):L!==null&&L.parentFlushed&&L.status===wn&&(G1(_,L),_.completedSegments.length===1&&_.parentFlushed&&E.partialBoundaries.push(_)));E.allPendingTasks--,E.allPendingTasks===0&&V1(E)}function q1(E){if(E.status!==Hn&&E.status!==13){var _=ad,L=di.H;di.H=Wh;var X=di.A;di.A=u4;var se=Mo;Mo=E;var le=di.getCurrentStack;di.getCurrentStack=Rh;var Ae=_s;_s=E.resumableState;try{var Ce=E.pingedTasks,He;for(He=0;He<Ce.length;He++){var ke=E,yt=Ce[He],pt=yt.blockedSegment;if(pt===null){var It=void 0,xt=ke;if(ke=yt,ke.replay.pendingTasks!==0){jr(ke.context),It=Wo,Wo=ke;try{if(typeof ke.replay.slots==\"number\"?Wg(xt,ke,ke.replay.slots,ke.node,ke.childIndex):j1(xt,ke),ke.replay.pendingTasks===1&&0<ke.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");ke.replay.pendingTasks--,ke.abortSet.delete(ke),Cw(xt,ke.blockedBoundary,null)}catch(uo){$c();var at=uo===Ac?xi():uo;if(typeof at==\"object\"&&at!==null&&typeof at.then==\"function\"){var Ln=ke.ping;at.then(Ln,Ln),ke.thenableState=Xc()}else{ke.replay.pendingTasks--,ke.abortSet.delete(ke);var Qr=as(ke.componentStack),Bn=void 0,nn=xt,fi=ke.blockedBoundary,co=xt.status===12?xt.fatalError:at,zn=Qr,za=ke.replay.nodes,Ss=ke.replay.slots;Bn=mc(nn,co,zn,ke.debugTask),W1(nn,fi,za,Ss,co,Bn,zn,!1),xt.pendingRootTasks--,xt.pendingRootTasks===0&&Gm(xt),xt.allPendingTasks--,xt.allPendingTasks===0&&V1(xt)}}finally{Wo=It}}}else if(xt=It=void 0,Bn=yt,nn=pt,nn.status===Rn){nn.status=6,jr(Bn.context),xt=Wo,Wo=Bn;var Li=nn.children.length,Zi=nn.chunks.length;try{j1(ke,Bn),nn.lastPushedText&&nn.textEmbedded&&nn.chunks.push(ff),Bn.abortSet.delete(Bn),nn.status=wn,Cw(ke,Bn.blockedBoundary,nn)}catch(uo){$c(),nn.children.length=Li,nn.chunks.length=Zi;var Vo=uo===Ac?xi():ke.status===12?ke.fatalError:uo;if(typeof Vo==\"object\"&&Vo!==null&&typeof Vo.then==\"function\"){nn.status=Rn,Bn.thenableState=Xc();var _i=Bn.ping;Vo.then(_i,_i)}else{var Qi=as(Bn.componentStack);Bn.abortSet.delete(Bn),nn.status=4;var $n=Bn.blockedBoundary,Go=Bn.debugTask;It=mc(ke,Vo,Qi,Go),$n===null?jg(ke,Vo,Qi,Go):($n.pendingTasks--,$n.status!==Dn&&($n.status=Dn,nd($n,It,Vo,Qi,!1),Vg(ke,$n),$n.parentFlushed&&ke.clientRenderedBoundaries.push($n),ke.pendingRootTasks===0&&ke.trackedPostpones===null&&$n.contentPreamble!==null&&Km(ke))),ke.allPendingTasks--,ke.allPendingTasks===0&&V1(ke)}}finally{Wo=xt}}}Ce.splice(0,He),E.destination!==null&&Kg(E,E.destination)}catch(uo){Ce={},mc(E,uo,Ce,null),jg(E,uo,Ce,null)}finally{_s=Ae,di.H=L,di.A=X,di.getCurrentStack=le,L===Wh&&jr(_),Mo=se}}}function TE(E,_,L){_.preambleChildren.length&&L.push(_.preambleChildren);for(var X=!1,se=0;se<_.children.length;se++)X=qm(E,_.children[se],L)||X;return X}function qm(E,_,L){var X=_.boundary;if(X===null)return TE(E,_,L);var se=X.contentPreamble,le=X.fallbackPreamble;if(se===null||le===null)return!1;switch(X.status){case wn:if(sr(E.renderState,se),_=X.completedSegments[0],!_)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return TE(E,_,L);case yn:if(E.trackedPostpones!==null)return!0;case Dn:if(_.status===wn)return sr(E.renderState,le),TE(E,_,L);default:return!0}}function Km(E){if(E.completedRootSegment&&E.completedPreambleSegments===null){var _=[],L=qm(E,E.completedRootSegment,_),X=E.renderState.preamble;(L===!1||X.headChunks&&X.bodyChunks)&&(E.completedPreambleSegments=_)}}function Rw(E,_,L,X){switch(L.parentFlushed=!0,L.status){case Rn:L.id=E.nextSegmentId++;case yn:return X=L.id,L.lastPushedText=!1,L.textEmbedded=!1,E=E.renderState,p(_,ZR),p(_,E.placeholderPrefix),E=y(X.toString(16)),p(_,E),h(_,QR);case wn:L.status=Ca;var se=!0,le=L.chunks,Ae=0;L=L.children;for(var Ce=0;Ce<L.length;Ce++){for(se=L[Ce];Ae<se.index;Ae++)p(_,le[Ae]);se=K1(E,_,se,X)}for(;Ae<le.length-1;Ae++)p(_,le[Ae]);return Ae<le.length&&(se=h(_,le[Ae])),se;default:throw Error(\"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.\")}}function K1(E,_,L,X){var se=L.boundary;if(se===null)return Rw(E,_,L,X);if(se.parentFlushed=!0,se.status===Dn){var le=se.errorDigest,Ae=se.errorMessage,Ce=se.errorStack,He=se.errorComponentStack;return h(_,ib),p(_,$R),le&&(p(_,jE),p(_,y(U(le))),p(_,zE)),Ae&&(p(_,ab),p(_,y(U(Ae))),p(_,zE)),Ce&&(p(_,WE),p(_,y(U(Ce))),p(_,zE)),He&&(p(_,J5),p(_,y(U(He))),p(_,zE)),h(_,sy),Rw(E,_,L,X),(E=se.fallbackPreamble)&&Ws(_,E),h(_,ay)}if(se.status!==wn)return se.status===Rn&&(se.rootSegmentID=E.nextSegmentId++),0<se.completedSegments.length&&E.partialBoundaries.push(se),Fr(_,E.renderState,se.rootSegmentID),X&&(se=se.fallbackState,se.styles.forEach(Nr,X),se.stylesheets.forEach($l,X)),Rw(E,_,L,X),h(_,ay);if(se.byteSize>E.progressiveChunkSize)return se.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(se),Fr(_,E.renderState,se.rootSegmentID),Rw(E,_,L,X),h(_,ay);if(X&&(L=se.contentState,L.styles.forEach(Nr,X),L.stylesheets.forEach($l,X)),h(_,Q5),L=se.completedSegments,L.length!==1)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return K1(E,_,L[0],X),(E=se.contentPreamble)&&Ws(_,E),h(_,ay)}function Iw(E,_,L,X){return io(_,E.renderState,L.parentFormatContext,L.id),K1(E,_,L,X),Hr(_,L.parentFormatContext)}function M5(E,_,L){for(var X=L.completedSegments,se=0;se<X.length;se++)GR(E,_,L,X[se]);X.length=0,ue(_,L.contentState,E.renderState),X=E.resumableState,E=E.renderState,se=L.rootSegmentID,L=L.contentState;var le=E.stylesToHoist;return E.stylesToHoist=!1,p(_,E.startInlineScript),le?(X.instructions&t0)===df?(X.instructions=X.instructions|eb|t0,p(_,jw)):(X.instructions&eb)===df?(X.instructions|=eb,p(_,ub)):p(_,s3):(X.instructions&t0)===df?(X.instructions|=t0,p(_,QE)):p(_,uy),X=y(se.toString(16)),p(_,E.boundaryPrefix),p(_,X),p(_,s4),p(_,E.segmentPrefix),p(_,X),le?(p(_,Xs),Gt(_,L)):p(_,JE),L=h(_,XE),Yn(_,E)&&L}function GR(E,_,L,X){if(X.status===Ca)return!0;var se=L.contentState,le=X.id;if(le===-1){if((X.id=L.rootSegmentID)===-1)throw Error(\"A root segment ID must have been assigned by now. This is a bug in React.\");return Iw(E,_,X,se)}return le===L.rootSegmentID?Iw(E,_,X,se):(Iw(E,_,X,se),L=E.resumableState,E=E.renderState,p(_,E.startInlineScript),(L.instructions&Lw)===df?(L.instructions|=Lw,p(_,i3)):p(_,ZE),p(_,E.segmentPrefix),le=y(le.toString(16)),p(_,le),p(_,a4),p(_,E.placeholderPrefix),p(_,le),_=h(_,a3),_)}function Kg(E,_){nu=new Uint8Array(2048),bc=0;try{if(!(0<E.pendingRootTasks)){var L,X=E.completedRootSegment;if(X!==null){if(X.status===yn)return;var se=E.completedPreambleSegments;if(se===null)return;var le=E.renderState,Ae=le.preamble,Ce=Ae.htmlChunks,He=Ae.headChunks,ke;if(Ce){for(ke=0;ke<Ce.length;ke++)p(_,Ce[ke]);if(He)for(ke=0;ke<He.length;ke++)p(_,He[ke]);else p(_,jt(\"head\")),p(_,Yi)}else if(He)for(ke=0;ke<He.length;ke++)p(_,He[ke]);var yt=le.charsetChunks;for(ke=0;ke<yt.length;ke++)p(_,yt[ke]);yt.length=0,le.preconnects.forEach(Ie,_),le.preconnects.clear();var pt=le.viewportChunks;for(ke=0;ke<pt.length;ke++)p(_,pt[ke]);pt.length=0,le.fontPreloads.forEach(Ie,_),le.fontPreloads.clear(),le.highImagePreloads.forEach(Ie,_),le.highImagePreloads.clear(),le.styles.forEach(ot,_);var It=le.importMapChunks;for(ke=0;ke<It.length;ke++)p(_,It[ke]);It.length=0,le.bootstrapScripts.forEach(Ie,_),le.scripts.forEach(Ie,_),le.scripts.clear(),le.bulkPreloads.forEach(Ie,_),le.bulkPreloads.clear();var xt=le.hoistableChunks;for(ke=0;ke<xt.length;ke++)p(_,xt[ke]);for(le=xt.length=0;le<se.length;le++){var at=se[le];for(Ae=0;Ae<at.length;Ae++)K1(E,_,at[Ae],null)}var Ln=E.renderState.preamble,Qr=Ln.headChunks;(Ln.htmlChunks||Qr)&&p(_,Xt(\"head\"));var Bn=Ln.bodyChunks;if(Bn)for(se=0;se<Bn.length;se++)p(_,Bn[se]);K1(E,_,X,null),E.completedRootSegment=null,Yn(_,E.renderState)}var nn=E.renderState;X=0;var fi=nn.viewportChunks;for(X=0;X<fi.length;X++)p(_,fi[X]);fi.length=0,nn.preconnects.forEach(Ie,_),nn.preconnects.clear(),nn.fontPreloads.forEach(Ie,_),nn.fontPreloads.clear(),nn.highImagePreloads.forEach(Ie,_),nn.highImagePreloads.clear(),nn.styles.forEach(Sn,_),nn.scripts.forEach(Ie,_),nn.scripts.clear(),nn.bulkPreloads.forEach(Ie,_),nn.bulkPreloads.clear();var co=nn.hoistableChunks;for(X=0;X<co.length;X++)p(_,co[X]);co.length=0;var zn=E.clientRenderedBoundaries;for(L=0;L<zn.length;L++){var za=zn[L];nn=_;var Ss=E.resumableState,Li=E.renderState,Zi=za.rootSegmentID,Vo=za.errorDigest,_i=za.errorMessage,Qi=za.errorStack,$n=za.errorComponentStack;p(nn,Li.startInlineScript),(Ss.instructions&ey)===df?(Ss.instructions|=ey,p(nn,Ww)):p(nn,hl),p(nn,Li.boundaryPrefix),p(nn,y(Zi.toString(16))),p(nn,ly),(Vo||_i||Qi||$n)&&(p(nn,ml),p(nn,y(qi(Vo||\"\")))),(_i||Qi||$n)&&(p(nn,ml),p(nn,y(qi(_i||\"\")))),(Qi||$n)&&(p(nn,ml),p(nn,y(qi(Qi||\"\")))),$n&&(p(nn,ml),p(nn,y(qi($n))));var Go=h(nn,c3);if(!Go){E.destination=null,L++,zn.splice(0,L);return}}zn.splice(0,L);var uo=E.completedBoundaries;for(L=0;L<uo.length;L++)if(!M5(E,_,uo[L])){E.destination=null,L++,uo.splice(0,L);return}uo.splice(0,L),g(_),nu=new Uint8Array(2048),bc=0;var ja=E.partialBoundaries;for(L=0;L<ja.length;L++){e:{zn=E,za=_;var Wa=ja[L],pa=Wa.completedSegments;for(Go=0;Go<pa.length;Go++)if(!GR(zn,za,Wa,pa[Go])){Go++,pa.splice(0,Go);var iu=!1;break e}pa.splice(0,Go),iu=ue(za,Wa.contentState,zn.renderState)}if(!iu){E.destination=null,L++,ja.splice(0,L);return}}ja.splice(0,L);var Ia=E.completedBoundaries;for(L=0;L<Ia.length;L++)if(!M5(E,_,Ia[L])){E.destination=null,L++,Ia.splice(0,L);return}Ia.splice(0,L)}}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0?(E.flushScheduled=!1,L=E.resumableState,L.hasBody&&p(_,Xt(\"body\")),L.hasHtml&&p(_,Xt(\"html\")),g(_),E.abortableTasks.size!==0&&console.error(\"There was still abortable task at the root when we closed. This is a bug in React.\"),E.status=Hn,_.close(),E.destination=null):g(_)}}function CE(E){E.flushScheduled=E.destination!==null,Xm(function(){return q1(E)}),u(function(){E.status===10&&(E.status=11),E.trackedPostpones===null&&qg(E,E.pendingRootTasks===0)})}function Ym(E){E.flushScheduled===!1&&E.pingedTasks.length===0&&E.destination!==null&&(E.flushScheduled=!0,u(function(){var _=E.destination;_?Kg(E,_):E.flushScheduled=!1}))}function Yg(E,_){if(E.status===13)E.status=Hn,x(_,E.fatalError);else if(E.status!==Hn&&E.destination===null){E.destination=_;try{Kg(E,_)}catch(L){_={},mc(E,L,_,null),jg(E,L,_,null)}}}function Zm(E,_){(E.status===11||E.status===10)&&(E.status=12);try{var L=E.abortableTasks;if(0<L.size){var X=_===void 0?Error(\"The render was aborted by the server without a reason.\"):typeof _==\"object\"&&_!==null&&typeof _.then==\"function\"?Error(\"The render was aborted by the server with a promise.\"):_;E.fatalError=X,L.forEach(function(se){return Vm(se,E,X)}),L.clear()}E.destination!==null&&Kg(E,E.destination)}catch(se){_={},mc(E,se,_,null),jg(E,se,_,null)}}function D5(){var E=Y1.version;if(E!==\"19.1.1\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(E+`\\n  - react-dom:  19.1.1\\nLearn more: https://react.dev/warnings/version-mismatch`))}var Y1=$e(),Z1=Ny(),kh=Symbol.for(\"react.transitional.element\"),Qm=Symbol.for(\"react.portal\"),uf=Symbol.for(\"react.fragment\"),lf=Symbol.for(\"react.strict_mode\"),qs=Symbol.for(\"react.profiler\"),cl=Symbol.for(\"react.provider\"),Zg=Symbol.for(\"react.consumer\"),Jm=Symbol.for(\"react.context\"),Q1=Symbol.for(\"react.forward_ref\"),Es=Symbol.for(\"react.suspense\"),J1=Symbol.for(\"react.suspense_list\"),ul=Symbol.for(\"react.memo\"),ll=Symbol.for(\"react.lazy\"),RE=Symbol.for(\"react.scope\"),Ow=Symbol.for(\"react.activity\"),da=Symbol.for(\"react.legacy_hidden\"),Io=Symbol.for(\"react.memo_cache_sentinel\"),PP=Symbol.for(\"react.view_transition\"),kw=Symbol.iterator,yc=Array.isArray,L5=new WeakMap,IE=new WeakMap,X1=Symbol.for(\"react.client.reference\"),Nh=new MessageChannel,Ph=[];Nh.port1.onmessage=function(){var E=Ph.shift();E&&E()};var B5=Promise,Xm=typeof queueMicrotask==\"function\"?queueMicrotask:function(E){B5.resolve(null).then(E).catch(d)},nu=null,bc=0,As=new TextEncoder,zo=Object.assign,Zr=Object.prototype.hasOwnProperty,U5=RegExp(\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),$m={},F5={},qR=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),Nw=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),$1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},e0={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0},rd={},H5=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Pw=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Mh=!1,hp={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},Ks={},OE=/^on./,Ys=/^on[^A-Z]/,Mw=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Qg=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),vo=/^(?:webkit|moz|o)[A-Z]/,mp=/^-ms-/,z5=/-(.)/g,Jg=/;\\\\s*$/,dl={},Dh={},ei=!1,Zs=!1,Dw=/[\"\\'&<>]/,kE=/([A-Z])/g,NE=/^ms-/,Xg=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,di=Y1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ki=Z1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$g=Object.freeze({pending:!1,data:null,method:null,action:null}),Qs=Ki.d;Ki.d={f:Qs.f,r:Qs.r,D:function(E){var _=Mo||null;if(_){var L=_.resumableState,X=_.renderState;if(typeof E==\"string\"&&E){if(!L.dnsResources.hasOwnProperty(E)){L.dnsResources[E]=Fa,L=X.headers;var se,le;(le=L&&0<L.remainingCapacity)&&(le=(se=\"<\"+yo(E)+\">; rel=dns-prefetch\",0<=(L.remainingCapacity-=se.length+2))),le?(X.resets.dns[E]=Fa,L.preconnects&&(L.preconnects+=\", \"),L.preconnects+=se):(se=[],lt(se,{href:E,rel:\"dns-prefetch\"}),X.preconnects.add(se))}Ym(_)}}else Qs.D(E)},C:function(E,_){var L=Mo||null;if(L){var X=L.resumableState,se=L.renderState;if(typeof E==\"string\"&&E){var le=_===\"use-credentials\"?\"credentials\":typeof _==\"string\"?\"anonymous\":\"default\";if(!X.connectResources[le].hasOwnProperty(E)){X.connectResources[le][E]=Fa,X=se.headers;var Ae,Ce;if(Ce=X&&0<X.remainingCapacity){if(Ce=\"<\"+yo(E)+\">; rel=preconnect\",typeof _==\"string\"){var He=of(_,\"crossOrigin\");Ce+=\\'; crossorigin=\"\\'+He+\\'\"\\'}Ce=(Ae=Ce,0<=(X.remainingCapacity-=Ae.length+2))}Ce?(se.resets.connect[le][E]=Fa,X.preconnects&&(X.preconnects+=\", \"),X.preconnects+=Ae):(le=[],lt(le,{rel:\"preconnect\",href:E,crossOrigin:_}),se.preconnects.add(le))}Ym(L)}}else Qs.C(E,_)},L:function(E,_,L){var X=Mo||null;if(X){var se=X.resumableState,le=X.renderState;if(_&&E){switch(_){case\"image\":if(L)var Ae=L.imageSrcSet,Ce=L.imageSizes,He=L.fetchPriority;var ke=Ae?Ae+`\\n`+(Ce||\"\"):E;if(se.imageResources.hasOwnProperty(ke))return;se.imageResources[ke]=xu,se=le.headers;var yt;se&&0<se.remainingCapacity&&typeof Ae!=\"string\"&&He===\"high\"&&(yt=Ni(E,_,L),0<=(se.remainingCapacity-=yt.length+2))?(le.resets.image[ke]=xu,se.highImagePreloads&&(se.highImagePreloads+=\", \"),se.highImagePreloads+=yt):(se=[],lt(se,zo({rel:\"preload\",href:Ae?void 0:E,as:_},L)),He===\"high\"?le.highImagePreloads.add(se):(le.bulkPreloads.add(se),le.preloads.images.set(ke,se)));break;case\"style\":if(se.styleResources.hasOwnProperty(E))return;Ae=[],lt(Ae,zo({rel:\"preload\",href:E,as:_},L)),se.styleResources[E]=!L||typeof L.crossOrigin!=\"string\"&&typeof L.integrity!=\"string\"?xu:[L.crossOrigin,L.integrity],le.preloads.stylesheets.set(E,Ae),le.bulkPreloads.add(Ae);break;case\"script\":if(se.scriptResources.hasOwnProperty(E))return;Ae=[],le.preloads.scripts.set(E,Ae),le.bulkPreloads.add(Ae),lt(Ae,zo({rel:\"preload\",href:E,as:_},L)),se.scriptResources[E]=!L||typeof L.crossOrigin!=\"string\"&&typeof L.integrity!=\"string\"?xu:[L.crossOrigin,L.integrity];break;default:if(se.unknownResources.hasOwnProperty(_)){if(Ae=se.unknownResources[_],Ae.hasOwnProperty(E))return}else Ae={},se.unknownResources[_]=Ae;if(Ae[E]=xu,(se=le.headers)&&0<se.remainingCapacity&&_===\"font\"&&(ke=Ni(E,_,L),0<=(se.remainingCapacity-=ke.length+2)))le.resets.font[E]=xu,se.fontPreloads&&(se.fontPreloads+=\", \"),se.fontPreloads+=ke;else switch(se=[],E=zo({rel:\"preload\",href:E,as:_},L),lt(se,E),_){case\"font\":le.fontPreloads.add(se);break;default:le.bulkPreloads.add(se)}}Ym(X)}}else Qs.L(E,_,L)},m:function(E,_){var L=Mo||null;if(L){var X=L.resumableState,se=L.renderState;if(E){var le=_&&typeof _.as==\"string\"?_.as:\"script\";switch(le){case\"script\":if(X.moduleScriptResources.hasOwnProperty(E))return;le=[],X.moduleScriptResources[E]=!_||typeof _.crossOrigin!=\"string\"&&typeof _.integrity!=\"string\"?xu:[_.crossOrigin,_.integrity],se.preloads.moduleScripts.set(E,le);break;default:if(X.moduleUnknownResources.hasOwnProperty(le)){var Ae=X.unknownResources[le];if(Ae.hasOwnProperty(E))return}else Ae={},X.moduleUnknownResources[le]=Ae;le=[],Ae[E]=xu}lt(le,zo({rel:\"modulepreload\",href:E},_)),se.bulkPreloads.add(le),Ym(L)}}else Qs.m(E,_)},X:function(E,_){var L=Mo||null;if(L){var X=L.resumableState,se=L.renderState;if(E){var le=X.scriptResources.hasOwnProperty(E)?X.scriptResources[E]:void 0;le!==Fa&&(X.scriptResources[E]=Fa,_=zo({src:E,async:!0},_),le&&(le.length===2&&un(_,le),E=se.preloads.scripts.get(E))&&(E.length=0),E=[],se.scripts.add(E),fn(E,_),Ym(L))}}else Qs.X(E,_)},S:function(E,_,L){var X=Mo||null;if(X){var se=X.resumableState,le=X.renderState;if(E){_=_||\"default\";var Ae=le.styles.get(_),Ce=se.styleResources.hasOwnProperty(E)?se.styleResources[E]:void 0;Ce!==Fa&&(se.styleResources[E]=Fa,Ae||(Ae={precedence:y(U(_)),rules:[],hrefs:[],sheets:new Map},le.styles.set(_,Ae)),_={state:pf,props:zo({rel:\"stylesheet\",href:E,\"data-precedence\":_},L)},Ce&&(Ce.length===2&&un(_.props,Ce),(le=le.preloads.stylesheets.get(E))&&0<le.length?le.length=0:_.state=Ta),Ae.sheets.set(E,_),Ym(X))}}else Qs.S(E,_,L)},M:function(E,_){var L=Mo||null;if(L){var X=L.resumableState,se=L.renderState;if(E){var le=X.moduleScriptResources.hasOwnProperty(E)?X.moduleScriptResources[E]:void 0;le!==Fa&&(X.moduleScriptResources[E]=Fa,_=zo({src:E,type:\"module\",async:!0},_),le&&(le.length===2&&un(_,le),E=se.preloads.moduleScripts.get(E))&&(E.length=0),E=[],se.scripts.add(E),fn(E,_),Ym(L))}}else Qs.M(E,_)}};var df=0,Lw=1,t0=2,ey=4,eb=8,Fa=null,xu=[];Object.freeze(xu),v(\\'\"></template>\\');var Bw=v(\"<script>\"),j5=v(\"<\\\\/script>\"),vc=v(\\'<script src=\"\\'),fl=v(\\'<script type=\"module\" src=\"\\'),wc=v(\\'\" nonce=\"\\'),tb=v(\\'\" integrity=\"\\'),gp=v(\\'\" crossorigin=\"\\'),Mi=v(\\'\" async=\"\"><\\\\/script>\\'),Lh=/(<\\\\/|<)(s)(cript)/gi,Uw=v(\\'<script type=\"importmap\">\\'),nb=v(\"<\\\\/script>\"),ty={},PE=0,ny=0,ry=1,ru=2,Bh=3,pl=4,Wn=5,vt=6,n0=7,rb=8,Ei=9,ff=v(\"<!-- -->\"),Fw=new Map,W5=v(\\' style=\"\\'),ME=v(\":\"),MP=v(\";\"),Js=v(\" \"),Eu=v(\\'=\"\\'),ou=v(\\'\"\\'),xc=v(\\'=\"\"\\'),so=v(U(\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\")),DE=v(\\'<input type=\"hidden\"\\'),Yi=v(\">\"),od=v(\"/>\"),r0=!1,id=!1,LE=!1,oy=!1,BE=!1,ob=!1,UE=!1,iy=!1,V5=!1,Hw=!1,zw=!1,FE=v(\\' selected=\"\"\\'),KR=v(`addEventListener(\"submit\",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute(\"formAction\");null!=f&&(e=f,b=null)}\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"===e&&(a.preventDefault(),b?(a=document.createElement(\"input\"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),G5=v(\"<!--F!-->\"),q5=v(\"<!--F-->\"),K5=/(<\\\\/|<)(s)(tyle)/gi,HE=v(`\\n`),YR=/^[a-zA-Z][a-zA-Z:_\\\\.\\\\-\\\\d]*$/,Y5=new Map,DP=v(\"<!DOCTYPE html>\"),Z5=new Map,ZR=v(\\'<template id=\"\\'),QR=v(\\'\"></template>\\'),Q5=v(\"<!--$-->\"),JR=v(\\'<!--$?--><template id=\"\\'),XR=v(\\'\"></template>\\'),ib=v(\"<!--$!-->\"),ay=v(\"<!--/$-->\"),$R=v(\"<template\"),zE=v(\\'\"\\'),jE=v(\\' data-dgst=\"\\'),ab=v(\\' data-msg=\"\\'),WE=v(\\' data-stck=\"\\'),J5=v(\\' data-cstck=\"\\'),sy=v(\"></template>\"),Au=v(\"<!--\"),VE=v(\"-->\"),X5=v(\\'<div hidden id=\"\\'),e4=v(\\'\">\\'),$5=v(\"</div>\"),GE=v(\\'<svg aria-hidden=\"true\" style=\"display:none\" id=\"\\'),e3=v(\\'\">\\'),qE=v(\"</svg>\"),sb=v(\\'<math aria-hidden=\"true\" style=\"display:none\" id=\"\\'),KE=v(\\'\">\\'),t3=v(\"</math>\"),t4=v(\\'<table hidden id=\"\\'),n4=v(\\'\">\\'),n3=v(\"</table>\"),r4=v(\\'<table hidden><tbody id=\"\\'),o4=v(\\'\">\\'),cb=v(\"</tbody></table>\"),YE=v(\\'<table hidden><tr id=\"\\'),Uh=v(\\'\">\\'),r3=v(\"</tr></table>\"),i4=v(\\'<table hidden><colgroup id=\"\\'),o3=v(\\'\">\\'),cy=v(\"</colgroup></table>\"),i3=v(\\'$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"\\'),ZE=v(\\'$RS(\"\\'),a4=v(\\'\",\"\\'),a3=v(\\'\")<\\\\/script>\\');v(\\'<template data-rsi=\"\" data-sid=\"\\'),v(\\'\" data-pid=\"\\');var QE=v(\\'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data=\"$!\",a.setAttribute(\"data-dgst\",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if(\"/$\"===d)if(0===f)break;else f--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data=\"$\"}b._reactRetry&&b._reactRetry()}};$RC(\"\\'),uy=v(\\'$RC(\"\\'),jw=v(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data=\"$!\",a.setAttribute(\"data-dgst\",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if(\"/$\"===d)if(0===f)break;else f--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data=\"$\"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),x=[],k=0;b=h[k++];)\"not all\"===b.getAttribute(\"media\")?x.push(b):(\"LINK\"===b.tagName&&p.set(b.getAttribute(\"href\"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement(\"link\");a.href=\\nd;a.rel=\"stylesheet\";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute(\"media\");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\\nt,u,\"\"),w.bind(null,t,u,\"Resource failed to load\"))};$RR(\"`),ub=v(`$RM=new Map;\\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),x=[],k=0;b=h[k++];)\"not all\"===b.getAttribute(\"media\")?x.push(b):(\"LINK\"===b.tagName&&p.set(b.getAttribute(\"href\"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement(\"link\");a.href=\\nd;a.rel=\"stylesheet\";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute(\"media\");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\\nt,u,\"\"),w.bind(null,t,u,\"Resource failed to load\"))};$RR(\"`),s3=v(\\'$RR(\"\\'),s4=v(\\'\",\"\\'),Xs=v(\\'\",\\'),JE=v(\\'\"\\'),XE=v(\")<\\\\/script>\");v(\\'<template data-rci=\"\" data-bid=\"\\'),v(\\'<template data-rri=\"\" data-bid=\"\\'),v(\\'\" data-sid=\"\\'),v(\\'\" data-sty=\"\\');var Ww=v(\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX(\"\\'),hl=v(\\'$RX(\"\\'),ly=v(\\'\"\\'),ml=v(\",\"),c3=v(\")<\\\\/script>\");v(\\'<template data-rxi=\"\" data-bid=\"\\'),v(\\'\" data-dgst=\"\\'),v(\\'\" data-msg=\"\\'),v(\\'\" data-stck=\"\\'),v(\\'\" data-cstck=\"\\');var Fh=/[<\\\\u2028\\\\u2029]/g,u3=/[&><\\\\u2028\\\\u2029]/g,Hh=v(\\'<style media=\"not all\" data-precedence=\"\\'),yp=v(\\'\" data-href=\"\\'),Vw=v(\\'\">\\'),$E=v(\"</style>\"),dy=!1,Gw=!0,bp=[],o0=v(\\'<style data-precedence=\"\\'),l3=v(\\'\" data-href=\"\\'),d3=v(\" \"),qw=v(\\'\">\\'),eA=v(\"</style>\"),f3=v(\"[\"),vp=v(\",[\"),i0=v(\",\"),Kw=v(\"]\"),pf=0,Ta=1,lb=2,Yw=3,Zw=/[<>\\\\r\\\\n]/g,ti=/[\"\\';,\\\\r\\\\n]/g,db=Function.prototype.bind,fy=Symbol.for(\"react.client.reference\"),Ec={};Object.freeze(Ec);var zh={},ad=null,fb={},jh={},hf=new Set,py=new Set,sd=new Set,a0=new Set,pb=new Set,hy=new Set,gl=new Set,p3=new Set,s0=new Set,tA={enqueueSetState:function(E,_,L){var X=E._reactInternals;X.queue===null?af(E,\"setState\"):(X.queue.push(_),L!=null&&Mn(L))},enqueueReplaceState:function(E,_,L){E=E._reactInternals,E.replace=!0,E.queue=[_],L!=null&&Mn(L)},enqueueForceUpdate:function(E,_){E._reactInternals.queue===null?af(E,\"forceUpdate\"):_!=null&&Mn(_)}},wp={id:1,overflow:\"\"},my=Math.clz32?Math.clz32:Yr,c4=Math.log,nA=Math.LN2,Ac=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),hb=null,mb=typeof Object.is==\"function\"?Object.is:sf,_u=null,jo=null,Qw=null,rA=null,Jw=null,Pr=null,gb=!1,gy=!1,xp=0,mf=0,yb=-1,yy=0,by=null,Ha=null,cd=0,Ai=!1,bb,Wh={readContext:hc,use:function(E){if(E!==null&&typeof E==\"object\"){if(typeof E.then==\"function\")return al(E);if(E.$$typeof===Jm)return hc(E)}throw Error(\"An unsupported type was passed to use(): \"+String(E))},useContext:function(E){return bb=\"useContext\",Ua(),E._currentValue},useMemo:td,useReducer:eu,useRef:function(E){_u=Ua(),Pr=il();var _=Pr.memoizedState;return _===null?(E={current:E},Object.seal(E),Pr.memoizedState=E):_},useState:function(E){return bb=\"useState\",eu(ed,E)},useInsertionEffect:Ch,useLayoutEffect:Ch,useCallback:function(E,_){return td(function(){return E},_)},useImperativeHandle:Ch,useEffect:Ch,useDebugValue:Ch,useDeferredValue:function(E,_){return Ua(),_!==void 0?_:E},useTransition:function(){return Ua(),[!1,U1]},useId:function(){var E=jo.treeContext,_=E.overflow;E=E.id,E=(E&~(1<<32-my(E)-1)).toString(32)+_;var L=_s;if(L===null)throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component.\");return _=xp++,E=\"\\\\xAB\"+L.idPrefix+\"R\"+E,0<_&&(E+=\"H\"+_.toString(32)),E+\"\\\\xBB\"},useSyncExternalStore:function(E,_,L){if(L===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");return L()},useOptimistic:function(E){return Ua(),[E,Pi]},useActionState:bu,useFormState:bu,useHostTransitionStatus:function(){return Ua(),$g},useMemoCache:function(E){for(var _=Array(E),L=0;L<E;L++)_[L]=Io;return _},useCacheRefresh:function(){return Bm}},_s=null,Wo=null,u4={getCacheForType:function(){throw Error(\"Not implemented.\")},getOwner:function(){return Wo===null?null:Wo.componentStack}},vy=0,Xw,oA,$w,e2,vb,A,C;lp.__reactDisabledLog=!0;var D,ee,ce=!1,de=new(typeof WeakMap==\"function\"?WeakMap:Map),Oe={react_stack_bottom_frame:function(E,_,L){return E(_,L)}},Me=Oe.react_stack_bottom_frame.bind(Oe),it={react_stack_bottom_frame:function(E){return E.render()}},Le=it.react_stack_bottom_frame.bind(it),St={react_stack_bottom_frame:function(E){var _=E._init;return _(E._payload)}},Ot=St.react_stack_bottom_frame.bind(St),Pt=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var qt=performance,ft=function(){return qt.now()};else{var gr=Date;ft=function(){return gr.now()}}var Dn=4,Rn=0,wn=1,Ca=2,yn=5,Hn=14,Mo=null,fa={},Ra={},Di={},ni={},Su=!1,_c=!1,Wr=!1;D5(),D5(),Dne.prerender=function(E,_){return new Promise(function(L,X){var se=_?_.onHeaders:void 0,le;se&&(le=function(yt){se(new Headers(yt))});var Ae=N(_?_.identifierPrefix:void 0,_?_.unstable_externalRuntimeSrc:void 0,_?_.bootstrapScriptContent:void 0,_?_.bootstrapScripts:void 0,_?_.bootstrapModules:void 0),Ce=Hm(E,Ae,F(Ae,void 0,_?_.unstable_externalRuntimeSrc:void 0,_?_.importMap:void 0,le,_?_.maxHeadersLength:void 0),W(_?_.namespaceURI:void 0),_?_.progressiveChunkSize:void 0,_?_.onError:void 0,function(){var yt={prelude:new ReadableStream({type:\"bytes\",pull:function(pt){Yg(Ce,pt)},cancel:function(pt){Ce.destination=null,Zm(Ce,pt)}},{highWaterMark:0})};L(yt)},void 0,void 0,X,_?_.onPostpone:void 0);if(_&&_.signal){var He=_.signal;if(He.aborted)Zm(Ce,He.reason);else{var ke=function(){Zm(Ce,He.reason),He.removeEventListener(\"abort\",ke)};He.addEventListener(\"abort\",ke)}}CE(Ce)})},Dne.renderToReadableStream=function(E,_){return new Promise(function(L,X){var se,le,Ae=new Promise(function(xt,at){le=xt,se=at}),Ce=_?_.onHeaders:void 0,He;Ce&&(He=function(xt){Ce(new Headers(xt))});var ke=N(_?_.identifierPrefix:void 0,_?_.unstable_externalRuntimeSrc:void 0,_?_.bootstrapScriptContent:void 0,_?_.bootstrapScripts:void 0,_?_.bootstrapModules:void 0),yt=Fm(E,ke,F(ke,_?_.nonce:void 0,_?_.unstable_externalRuntimeSrc:void 0,_?_.importMap:void 0,He,_?_.maxHeadersLength:void 0),W(_?_.namespaceURI:void 0),_?_.progressiveChunkSize:void 0,_?_.onError:void 0,le,function(){var xt=new ReadableStream({type:\"bytes\",pull:function(at){Yg(yt,at)},cancel:function(at){yt.destination=null,Zm(yt,at)}},{highWaterMark:0});xt.allReady=Ae,L(xt)},function(xt){Ae.catch(function(){}),X(xt)},se,_?_.onPostpone:void 0,_?_.formState:void 0);if(_&&_.signal){var pt=_.signal;if(pt.aborted)Zm(yt,pt.reason);else{var It=function(){Zm(yt,pt.reason),pt.removeEventListener(\"abort\",It)};pt.addEventListener(\"abort\",It)}}CE(yt)})},Dne.version=\"19.1.1\"})()});var _ut=me(vP=>{\"use strict\";f();var Bne,Lne;Bne=Eut(),Lne=Aut();vP.version=Bne.version;vP.renderToString=Bne.renderToString;vP.renderToStaticMarkup=Bne.renderToStaticMarkup;vP.renderToReadableStream=Lne.renderToReadableStream;Lne.resume&&(vP.resume=Lne.resume)});var Cut=me((AFr,Tut)=>{f();Tut.exports=function(){return typeof Promise==\"function\"&&Promise.prototype&&Promise.prototype.then}});var v5=me(MR=>{f();var _2e,BXt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];MR.getSymbolSize=function(t){if(!t)throw new Error(\\'\"version\" cannot be null or undefined\\');if(t<1||t>40)throw new Error(\\'\"version\" should be in range from 1 to 40\\');return t*4+17};MR.getSymbolTotalCodewords=function(t){return BXt[t]};MR.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};MR.setToSJISFunction=function(t){if(typeof t!=\"function\")throw new Error(\\'\"toSJISFunc\" is not a valid function.\\');_2e=t};MR.isKanjiModeEnabled=function(){return typeof _2e<\"u\"};MR.toSJIS=function(t){return _2e(t)}});var Fne=me(Bg=>{f();Bg.L={bit:1};Bg.M={bit:0};Bg.Q={bit:3};Bg.H={bit:2};function UXt(e){if(typeof e!=\"string\")throw new Error(\"Param is not a string\");switch(e.toLowerCase()){case\"l\":case\"low\":return Bg.L;case\"m\":case\"medium\":return Bg.M;case\"q\":case\"quartile\":return Bg.Q;case\"h\":case\"high\":return Bg.H;default:throw new Error(\"Unknown EC Level: \"+e)}}Bg.isValid=function(t){return t&&typeof t.bit<\"u\"&&t.bit>=0&&t.bit<4};Bg.from=function(t,n){if(Bg.isValid(t))return t;try{return UXt(t)}catch{return n}}});var Out=me((IFr,Iut)=>{f();function Rut(){this.buffer=[],this.length=0}Rut.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Iut.exports=Rut});var Nut=me((kFr,kut)=>{f();function ZH(e){if(!e||e<1)throw new Error(\"BitMatrix size must be defined and greater than 0\");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ZH.prototype.set=function(e,t,n,r){let o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};ZH.prototype.get=function(e,t){return this.data[e*this.size+t]};ZH.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};ZH.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};kut.exports=ZH});var Put=me(Hne=>{f();var FXt=v5().getSymbolSize;Hne.getRowColCoords=function(t){if(t===1)return[];let n=Math.floor(t/7)+2,r=FXt(t),o=r===145?26:Math.ceil((r-13)/(2*n-2))*2,i=[r-7];for(let a=1;a<n-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()};Hne.getPositions=function(t){let n=[],r=Hne.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let a=0;a<o;a++)i===0&&a===0||i===0&&a===o-1||i===o-1&&a===0||n.push([r[i],r[a]]);return n}});var Lut=me(Dut=>{f();var HXt=v5().getSymbolSize,Mut=7;Dut.getPositions=function(t){let n=HXt(t);return[[0,0],[n-Mut,0],[0,n-Mut]]}});var But=me(Sa=>{f();Sa.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var DR={N1:3,N2:3,N3:40,N4:10};Sa.isValid=function(t){return t!=null&&t!==\"\"&&!isNaN(t)&&t>=0&&t<=7};Sa.from=function(t){return Sa.isValid(t)?parseInt(t,10):void 0};Sa.getPenaltyN1=function(t){let n=t.size,r=0,o=0,i=0,a=null,c=null;for(let u=0;u<n;u++){o=i=0,a=c=null;for(let d=0;d<n;d++){let p=t.get(u,d);p===a?o++:(o>=5&&(r+=DR.N1+(o-5)),a=p,o=1),p=t.get(d,u),p===c?i++:(i>=5&&(r+=DR.N1+(i-5)),c=p,i=1)}o>=5&&(r+=DR.N1+(o-5)),i>=5&&(r+=DR.N1+(i-5))}return r};Sa.getPenaltyN2=function(t){let n=t.size,r=0;for(let o=0;o<n-1;o++)for(let i=0;i<n-1;i++){let a=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(a===4||a===0)&&r++}return r*DR.N2};Sa.getPenaltyN3=function(t){let n=t.size,r=0,o=0,i=0;for(let a=0;a<n;a++){o=i=0;for(let c=0;c<n;c++)o=o<<1&2047|t.get(a,c),c>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(c,a),c>=10&&(i===1488||i===93)&&r++}return r*DR.N3};Sa.getPenaltyN4=function(t){let n=0,r=t.data.length;for(let i=0;i<r;i++)n+=t.data[i];return Math.abs(Math.ceil(n*100/r/5)-10)*DR.N4};function zXt(e,t,n){switch(e){case Sa.Patterns.PATTERN000:return(t+n)%2===0;case Sa.Patterns.PATTERN001:return t%2===0;case Sa.Patterns.PATTERN010:return n%3===0;case Sa.Patterns.PATTERN011:return(t+n)%3===0;case Sa.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case Sa.Patterns.PATTERN101:return t*n%2+t*n%3===0;case Sa.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case Sa.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error(\"bad maskPattern:\"+e)}}Sa.applyMask=function(t,n){let r=n.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)n.isReserved(i,o)||n.xor(i,o,zXt(t,i,o))};Sa.getBestMask=function(t,n){let r=Object.keys(Sa.Patterns).length,o=0,i=1/0;for(let a=0;a<r;a++){n(a),Sa.applyMask(a,t);let c=Sa.getPenaltyN1(t)+Sa.getPenaltyN2(t)+Sa.getPenaltyN3(t)+Sa.getPenaltyN4(t);Sa.applyMask(a,t),c<i&&(i=c,o=a)}return o}});var T2e=me(S2e=>{f();var w5=Fne(),zne=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],jne=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];S2e.getBlocksCount=function(t,n){switch(n){case w5.L:return zne[(t-1)*4+0];case w5.M:return zne[(t-1)*4+1];case w5.Q:return zne[(t-1)*4+2];case w5.H:return zne[(t-1)*4+3];default:return}};S2e.getTotalCodewordsCount=function(t,n){switch(n){case w5.L:return jne[(t-1)*4+0];case w5.M:return jne[(t-1)*4+1];case w5.Q:return jne[(t-1)*4+2];case w5.H:return jne[(t-1)*4+3];default:return}}});var Uut=me(Vne=>{f();var QH=new Uint8Array(512),Wne=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)QH[n]=t,Wne[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)QH[n]=QH[n-255]})();Vne.log=function(t){if(t<1)throw new Error(\"log(\"+t+\")\");return Wne[t]};Vne.exp=function(t){return QH[t]};Vne.mul=function(t,n){return t===0||n===0?0:QH[Wne[t]+Wne[n]]}});var Fut=me(JH=>{f();var C2e=Uut();JH.mul=function(t,n){let r=new Uint8Array(t.length+n.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<n.length;i++)r[o+i]^=C2e.mul(t[o],n[i]);return r};JH.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){let o=r[0];for(let a=0;a<n.length;a++)r[a]^=C2e.mul(n[a],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};JH.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=JH.mul(n,new Uint8Array([1,C2e.exp(r)]));return n}});var jut=me((GFr,zut)=>{f();var Hut=Fut();function R2e(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}R2e.prototype.initialize=function(t){this.degree=t,this.genPoly=Hut.generateECPolynomial(this.degree)};R2e.prototype.encode=function(t){if(!this.genPoly)throw new Error(\"Encoder not initialized\");let n=new Uint8Array(t.length+this.degree);n.set(t);let r=Hut.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};zut.exports=R2e});var I2e=me(Wut=>{f();Wut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var O2e=me(gE=>{f();var Vut=\"[0-9]+\",jXt=\"[A-Z $%*+\\\\\\\\-./:]+\",XH=\"(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+\";XH=XH.replace(/u/g,\"\\\\\\\\u\");var WXt=\"(?:(?![A-Z0-9 $%*+\\\\\\\\-./:]|\"+XH+`)(?:.|[\\\\r\\n]))+`;gE.KANJI=new RegExp(XH,\"g\");gE.BYTE_KANJI=new RegExp(\"[^A-Z0-9 $%*+\\\\\\\\-./:]+\",\"g\");gE.BYTE=new RegExp(WXt,\"g\");gE.NUMERIC=new RegExp(Vut,\"g\");gE.ALPHANUMERIC=new RegExp(jXt,\"g\");var VXt=new RegExp(\"^\"+XH+\"$\"),GXt=new RegExp(\"^\"+Vut+\"$\"),qXt=new RegExp(\"^[A-Z0-9 $%*+\\\\\\\\-./:]+$\");gE.testKanji=function(t){return VXt.test(t)};gE.testNumeric=function(t){return GXt.test(t)};gE.testAlphanumeric=function(t){return qXt.test(t)}});var x5=me(Qc=>{f();var KXt=I2e(),k2e=O2e();Qc.NUMERIC={id:\"Numeric\",bit:1,ccBits:[10,12,14]};Qc.ALPHANUMERIC={id:\"Alphanumeric\",bit:2,ccBits:[9,11,13]};Qc.BYTE={id:\"Byte\",bit:4,ccBits:[8,16,16]};Qc.KANJI={id:\"Kanji\",bit:8,ccBits:[8,10,12]};Qc.MIXED={bit:-1};Qc.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error(\"Invalid mode: \"+t);if(!KXt.isValid(n))throw new Error(\"Invalid version: \"+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]};Qc.getBestModeForData=function(t){return k2e.testNumeric(t)?Qc.NUMERIC:k2e.testAlphanumeric(t)?Qc.ALPHANUMERIC:k2e.testKanji(t)?Qc.KANJI:Qc.BYTE};Qc.toString=function(t){if(t&&t.id)return t.id;throw new Error(\"Invalid mode\")};Qc.isValid=function(t){return t&&t.bit&&t.ccBits};function YXt(e){if(typeof e!=\"string\")throw new Error(\"Param is not a string\");switch(e.toLowerCase()){case\"numeric\":return Qc.NUMERIC;case\"alphanumeric\":return Qc.ALPHANUMERIC;case\"kanji\":return Qc.KANJI;case\"byte\":return Qc.BYTE;default:throw new Error(\"Unknown mode: \"+e)}}Qc.from=function(t,n){if(Qc.isValid(t))return t;try{return YXt(t)}catch{return n}}});var Zut=me(LR=>{f();var Gne=v5(),ZXt=T2e(),Gut=Fne(),E5=x5(),N2e=I2e(),Kut=7973,qut=Gne.getBCHDigit(Kut);function QXt(e,t,n){for(let r=1;r<=40;r++)if(t<=LR.getCapacity(r,n,e))return r}function Yut(e,t){return E5.getCharCountIndicator(e,t)+4}function JXt(e,t){let n=0;return e.forEach(function(r){let o=Yut(r.mode,t);n+=o+r.getBitsLength()}),n}function XXt(e,t){for(let n=1;n<=40;n++)if(JXt(e,n)<=LR.getCapacity(n,t,E5.MIXED))return n}LR.from=function(t,n){return N2e.isValid(t)?parseInt(t,10):n};LR.getCapacity=function(t,n,r){if(!N2e.isValid(t))throw new Error(\"Invalid QR Code version\");typeof r>\"u\"&&(r=E5.BYTE);let o=Gne.getSymbolTotalCodewords(t),i=ZXt.getTotalCodewordsCount(t,n),a=(o-i)*8;if(r===E5.MIXED)return a;let c=a-Yut(r,t);switch(r){case E5.NUMERIC:return Math.floor(c/10*3);case E5.ALPHANUMERIC:return Math.floor(c/11*2);case E5.KANJI:return Math.floor(c/13);case E5.BYTE:default:return Math.floor(c/8)}};LR.getBestVersionForData=function(t,n){let r,o=Gut.from(n,Gut.M);if(Array.isArray(t)){if(t.length>1)return XXt(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return QXt(r.mode,r.getLength(),o)};LR.getEncodedBits=function(t){if(!N2e.isValid(t)||t<7)throw new Error(\"Invalid QR Code version\");let n=t<<12;for(;Gne.getBCHDigit(n)-qut>=0;)n^=Kut<<Gne.getBCHDigit(n)-qut;return t<<12|n}});var $ut=me(Xut=>{f();var P2e=v5(),Jut=1335,$Xt=21522,Qut=P2e.getBCHDigit(Jut);Xut.getEncodedBits=function(t,n){let r=t.bit<<3|n,o=r<<10;for(;P2e.getBCHDigit(o)-Qut>=0;)o^=Jut<<P2e.getBCHDigit(o)-Qut;return(r<<10|o)^$Xt}});var tlt=me((rHr,elt)=>{f();var e$t=x5();function wP(e){this.mode=e$t.NUMERIC,this.data=e.toString()}wP.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};wP.prototype.getLength=function(){return this.data.length};wP.prototype.getBitsLength=function(){return wP.getBitsLength(this.data.length)};wP.prototype.write=function(t){let n,r,o;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-n;i>0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,i*3+1))};elt.exports=wP});var rlt=me((iHr,nlt)=>{f();var t$t=x5(),M2e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\" \",\"$\",\"%\",\"*\",\"+\",\"-\",\".\",\"/\",\":\"];function xP(e){this.mode=t$t.ALPHANUMERIC,this.data=e}xP.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};xP.prototype.getLength=function(){return this.data.length};xP.prototype.getBitsLength=function(){return xP.getBitsLength(this.data.length)};xP.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=M2e.indexOf(this.data[n])*45;r+=M2e.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(M2e.indexOf(this.data[n]),6)};nlt.exports=xP});var ilt=me((sHr,olt)=>{f();var n$t=x5();function EP(e){this.mode=n$t.BYTE,typeof e==\"string\"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}EP.getBitsLength=function(t){return t*8};EP.prototype.getLength=function(){return this.data.length};EP.prototype.getBitsLength=function(){return EP.getBitsLength(this.data.length)};EP.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};olt.exports=EP});var slt=me((uHr,alt)=>{f();var r$t=x5(),o$t=v5();function AP(e){this.mode=r$t.KANJI,this.data=e}AP.getBitsLength=function(t){return t*13};AP.prototype.getLength=function(){return this.data.length};AP.prototype.getBitsLength=function(){return AP.getBitsLength(this.data.length)};AP.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o$t.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error(\"Invalid SJIS character: \"+this.data[t]+`\\nMake sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};alt.exports=AP});var clt=me((dHr,D2e)=>{\"use strict\";f();var $H={single_source_shortest_paths:function(e,t,n){var r={},o={};o[t]=0;var i=$H.PriorityQueue.make();i.push(t,0);for(var a,c,u,d,p,h,g,y,v;!i.empty();){a=i.pop(),c=a.value,d=a.cost,p=e[c]||{};for(u in p)p.hasOwnProperty(u)&&(h=p[u],g=d+h,y=o[u],v=typeof o[u]>\"u\",(v||y>g)&&(o[u]=g,i.push(u,g),r[u]=c))}if(typeof n<\"u\"&&typeof o[n]>\"u\"){var x=[\"Could not find a path from \",t,\" to \",n,\".\"].join(\"\");throw new Error(x)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t,o;r;)n.push(r),o=e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var r=$H.single_source_shortest_paths(e,t,n);return $H.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t=$H.PriorityQueue,n={},r;e=e||{};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n.queue=[],n.sorter=e.sorter||t.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof D2e<\"u\"&&(D2e.exports=$H)});var glt=me(_P=>{f();var wi=x5(),dlt=tlt(),flt=rlt(),plt=ilt(),hlt=slt(),ez=O2e(),qne=v5(),i$t=clt();function ult(e){return unescape(encodeURIComponent(e)).length}function tz(e,t,n){let r=[],o;for(;(o=e.exec(n))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function mlt(e){let t=tz(ez.NUMERIC,wi.NUMERIC,e),n=tz(ez.ALPHANUMERIC,wi.ALPHANUMERIC,e),r,o;return qne.isKanjiModeEnabled()?(r=tz(ez.BYTE,wi.BYTE,e),o=tz(ez.KANJI,wi.KANJI,e)):(r=tz(ez.BYTE_KANJI,wi.BYTE,e),o=[]),t.concat(n,r,o).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function L2e(e,t){switch(t){case wi.NUMERIC:return dlt.getBitsLength(e);case wi.ALPHANUMERIC:return flt.getBitsLength(e);case wi.KANJI:return hlt.getBitsLength(e);case wi.BYTE:return plt.getBitsLength(e)}}function a$t(e){return e.reduce(function(t,n){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function s$t(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];switch(r.mode){case wi.NUMERIC:t.push([r,{data:r.data,mode:wi.ALPHANUMERIC,length:r.length},{data:r.data,mode:wi.BYTE,length:r.length}]);break;case wi.ALPHANUMERIC:t.push([r,{data:r.data,mode:wi.BYTE,length:r.length}]);break;case wi.KANJI:t.push([r,{data:r.data,mode:wi.BYTE,length:ult(r.data)}]);break;case wi.BYTE:t.push([{data:r.data,mode:wi.BYTE,length:ult(r.data)}])}}return t}function c$t(e,t){let n={},r={start:{}},o=[\"start\"];for(let i=0;i<e.length;i++){let a=e[i],c=[];for(let u=0;u<a.length;u++){let d=a[u],p=\"\"+i+u;c.push(p),n[p]={node:d,lastCount:0},r[p]={};for(let h=0;h<o.length;h++){let g=o[h];n[g]&&n[g].node.mode===d.mode?(r[g][p]=L2e(n[g].lastCount+d.length,d.mode)-L2e(n[g].lastCount,d.mode),n[g].lastCount+=d.length):(n[g]&&(n[g].lastCount=d.length),r[g][p]=L2e(d.length,d.mode)+4+wi.getCharCountIndicator(d.mode,t))}}o=c}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function llt(e,t){let n,r=wi.getBestModeForData(e);if(n=wi.from(t,r),n!==wi.BYTE&&n.bit<r.bit)throw new Error(\\'\"\\'+e+\\'\" cannot be encoded with mode \\'+wi.toString(n)+`.\\n Suggested mode is: `+wi.toString(r));switch(n===wi.KANJI&&!qne.isKanjiModeEnabled()&&(n=wi.BYTE),n){case wi.NUMERIC:return new dlt(e);case wi.ALPHANUMERIC:return new flt(e);case wi.KANJI:return new hlt(e);case wi.BYTE:return new plt(e)}}_P.fromArray=function(t){return t.reduce(function(n,r){return typeof r==\"string\"?n.push(llt(r,null)):r.data&&n.push(llt(r.data,r.mode)),n},[])};_P.fromString=function(t,n){let r=mlt(t,qne.isKanjiModeEnabled()),o=s$t(r),i=c$t(o,n),a=i$t.find_path(i.map,\"start\",\"end\"),c=[];for(let u=1;u<a.length-1;u++)c.push(i.table[a[u]].node);return _P.fromArray(a$t(c))};_P.rawSplit=function(t){return _P.fromArray(mlt(t,qne.isKanjiModeEnabled()))}});var blt=me(ylt=>{f();var Yne=v5(),B2e=Fne(),u$t=Out(),l$t=Nut(),d$t=Put(),f$t=Lut(),H2e=But(),z2e=T2e(),p$t=jut(),Kne=Zut(),h$t=$ut(),m$t=x5(),U2e=glt();function g$t(e,t){let n=e.size,r=f$t.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],a=r[o][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||n<=i+c))for(let u=-1;u<=7;u++)a+u<=-1||n<=a+u||(c>=0&&c<=6&&(u===0||u===6)||u>=0&&u<=6&&(c===0||c===6)||c>=2&&c<=4&&u>=2&&u<=4?e.set(i+c,a+u,!0,!0):e.set(i+c,a+u,!1,!0))}}function y$t(e){let t=e.size;for(let n=8;n<t-8;n++){let r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function b$t(e,t){let n=d$t.getPositions(t);for(let r=0;r<n.length;r++){let o=n[r][0],i=n[r][1];for(let a=-2;a<=2;a++)for(let c=-2;c<=2;c++)a===-2||a===2||c===-2||c===2||a===0&&c===0?e.set(o+a,i+c,!0,!0):e.set(o+a,i+c,!1,!0)}}function v$t(e,t){let n=e.size,r=Kne.getEncodedBits(t),o,i,a;for(let c=0;c<18;c++)o=Math.floor(c/3),i=c%3+n-8-3,a=(r>>c&1)===1,e.set(o,i,a,!0),e.set(i,o,a,!0)}function F2e(e,t,n){let r=e.size,o=h$t.getEncodedBits(t,n),i,a;for(i=0;i<15;i++)a=(o>>i&1)===1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(r-15+i,8,a,!0),i<8?e.set(8,r-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(r-8,8,1,!0)}function w$t(e,t){let n=e.size,r=-1,o=n-1,i=7,a=0;for(let c=n-1;c>0;c-=2)for(c===6&&c--;;){for(let u=0;u<2;u++)if(!e.isReserved(o,c-u)){let d=!1;a<t.length&&(d=(t[a]>>>i&1)===1),e.set(o,c-u,d),i--,i===-1&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function x$t(e,t,n){let r=new u$t;n.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),m$t.getCharCountIndicator(u.mode,e)),u.write(r)});let o=Yne.getSymbolTotalCodewords(e),i=z2e.getTotalCodewordsCount(e,t),a=(o-i)*8;for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let c=(a-r.getLengthInBits())/8;for(let u=0;u<c;u++)r.put(u%2?17:236,8);return E$t(r,e,t)}function E$t(e,t,n){let r=Yne.getSymbolTotalCodewords(t),o=z2e.getTotalCodewordsCount(t,n),i=r-o,a=z2e.getBlocksCount(t,n),c=r%a,u=a-c,d=Math.floor(r/a),p=Math.floor(i/a),h=p+1,g=d-p,y=new p$t(g),v=0,x=new Array(a),R=new Array(a),S=0,M=new Uint8Array(e.buffer);for(let $=0;$<a;$++){let oe=$<u?p:h;x[$]=M.slice(v,v+oe),R[$]=y.encode(x[$]),v+=oe,S=Math.max(S,oe)}let P=new Uint8Array(r),z=0,V,Q;for(V=0;V<S;V++)for(Q=0;Q<a;Q++)V<x[Q].length&&(P[z++]=x[Q][V]);for(V=0;V<g;V++)for(Q=0;Q<a;Q++)P[z++]=R[Q][V];return P}function A$t(e,t,n,r){let o;if(Array.isArray(e))o=U2e.fromArray(e);else if(typeof e==\"string\"){let d=t;if(!d){let p=U2e.rawSplit(e);d=Kne.getBestVersionForData(p,n)}o=U2e.fromString(e,d||40)}else throw new Error(\"Invalid data\");let i=Kne.getBestVersionForData(o,n);if(!i)throw new Error(\"The amount of data is too big to be stored in a QR Code\");if(!t)t=i;else if(t<i)throw new Error(`\\nThe chosen QR Code version cannot contain this amount of data.\\nMinimum version required to store current data is: `+i+`.\\n`);let a=x$t(t,n,o),c=Yne.getSymbolSize(t),u=new l$t(c);return g$t(u,t),y$t(u),b$t(u,t),F2e(u,n,0),t>=7&&v$t(u,t),w$t(u,a),isNaN(r)&&(r=H2e.getBestMask(u,F2e.bind(null,u,n))),H2e.applyMask(r,u),F2e(u,n,r),{modules:u,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}ylt.create=function(t,n){if(typeof t>\"u\"||t===\"\")throw new Error(\"No input text\");let r=B2e.M,o,i;return typeof n<\"u\"&&(r=B2e.from(n.errorCorrectionLevel,B2e.M),o=Kne.from(n.version),i=H2e.from(n.maskPattern),n.toSJISFunc&&Yne.setToSJISFunction(n.toSJISFunc)),A$t(t,o,r,i)}});var j2e=me(BR=>{f();function vlt(e){if(typeof e==\"number\"&&(e=e.toString()),typeof e!=\"string\")throw new Error(\"Color should be defined as hex string\");let t=e.slice().replace(\"#\",\"\").split(\"\");if(t.length<3||t.length===5||t.length>8)throw new Error(\"Invalid hex color: \"+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push(\"F\",\"F\");let n=parseInt(t.join(\"\"),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:\"#\"+t.slice(0,6).join(\"\")}}BR.getOptions=function(t){t||(t={}),t.color||(t.color={});let n=typeof t.margin>\"u\"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:vlt(t.color.dark||\"#000000ff\"),light:vlt(t.color.light||\"#ffffffff\")},type:t.type,rendererOpts:t.rendererOpts||{}}};BR.getScale=function(t,n){return n.width&&n.width>=t+n.margin*2?n.width/(t+n.margin*2):n.scale};BR.getImageWidth=function(t,n){let r=BR.getScale(t,n);return Math.floor((t+n.margin*2)*r)};BR.qrToImageData=function(t,n,r){let o=n.modules.size,i=n.modules.data,a=BR.getScale(o,r),c=Math.floor((o+r.margin*2)*a),u=r.margin*a,d=[r.color.light,r.color.dark];for(let p=0;p<c;p++)for(let h=0;h<c;h++){let g=(p*c+h)*4,y=r.color.light;if(p>=u&&h>=u&&p<c-u&&h<c-u){let v=Math.floor((p-u)/a),x=Math.floor((h-u)/a);y=d[i[v*o+x]?1:0]}t[g++]=y.r,t[g++]=y.g,t[g++]=y.b,t[g]=y.a}}});var wlt=me(Zne=>{f();var W2e=j2e();function _$t(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+\"px\",t.style.width=n+\"px\"}function S$t(){try{return document.createElement(\"canvas\")}catch{throw new Error(\"You need to specify a canvas element\")}}Zne.render=function(t,n,r){let o=r,i=n;typeof o>\"u\"&&(!n||!n.getContext)&&(o=n,n=void 0),n||(i=S$t()),o=W2e.getOptions(o);let a=W2e.getImageWidth(t.modules.size,o),c=i.getContext(\"2d\"),u=c.createImageData(a,a);return W2e.qrToImageData(u.data,t,o),_$t(c,i,a),c.putImageData(u,0,0),i};Zne.renderToDataURL=function(t,n,r){let o=r;typeof o>\"u\"&&(!n||!n.getContext)&&(o=n,n=void 0),o||(o={});let i=Zne.render(t,n,o),a=o.type||\"image/png\",c=o.rendererOpts||{};return i.toDataURL(a,c.quality)}});var Alt=me(Elt=>{f();var T$t=j2e();function xlt(e,t){let n=e.a/255,r=t+\\'=\"\\'+e.hex+\\'\"\\';return n<1?r+\" \"+t+\\'-opacity=\"\\'+n.toFixed(2).slice(1)+\\'\"\\':r}function V2e(e,t,n){let r=e+t;return typeof n<\"u\"&&(r+=\" \"+n),r}function C$t(e,t,n){let r=\"\",o=0,i=!1,a=0;for(let c=0;c<e.length;c++){let u=Math.floor(c%t),d=Math.floor(c/t);!u&&!i&&(i=!0),e[c]?(a++,c>0&&u>0&&e[c-1]||(r+=i?V2e(\"M\",u+n,.5+d+n):V2e(\"m\",o,0),o=0,i=!1),u+1<t&&e[c+1]||(r+=V2e(\"h\",a),a=0)):o++}return r}Elt.render=function(t,n,r){let o=T$t.getOptions(n),i=t.modules.size,a=t.modules.data,c=i+o.margin*2,u=o.color.light.a?\"<path \"+xlt(o.color.light,\"fill\")+\\' d=\"M0 0h\\'+c+\"v\"+c+\\'H0z\"/>\\':\"\",d=\"<path \"+xlt(o.color.dark,\"stroke\")+\\' d=\"\\'+C$t(a,i,o.margin)+\\'\"/>\\',p=\\'viewBox=\"0 0 \\'+c+\" \"+c+\\'\"\\',g=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" \\'+(o.width?\\'width=\"\\'+o.width+\\'\" height=\"\\'+o.width+\\'\" \\':\"\")+p+\\' shape-rendering=\"crispEdges\">\\'+u+d+`</svg>\\n`;return typeof r==\"function\"&&r(null,g),g}});var Slt=me(nz=>{f();var R$t=Cut(),G2e=blt(),_lt=wlt(),I$t=Alt();function q2e(e,t,n,r,o){let i=[].slice.call(arguments,1),a=i.length,c=typeof i[a-1]==\"function\";if(!c&&!R$t())throw new Error(\"Callback required as last argument\");if(c){if(a<2)throw new Error(\"Too few arguments provided\");a===2?(o=n,n=t,t=r=void 0):a===3&&(t.getContext&&typeof o>\"u\"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(a<1)throw new Error(\"Too few arguments provided\");return a===1?(n=t,t=r=void 0):a===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(u,d){try{let p=G2e.create(n,r);u(e(p,t,r))}catch(p){d(p)}})}try{let u=G2e.create(n,r);o(null,e(u,t,r))}catch(u){o(u)}}nz.create=G2e.create;nz.toCanvas=q2e.bind(null,_lt.render);nz.toDataURL=q2e.bind(null,_lt.renderToDataURL);nz.toString=q2e.bind(null,function(e,t,n){return I$t.render(e,n)})});f();var spt=he(F_e());f();f();f();ra();function RT({chainId:e,isMainnetOnly:t=!1}){return!!(t&&e===dr.id||!t&&(e===Ya.id||e===dr.id))}f();ra();function IT({chainId:e,isMainnetOnly:t=!1}){return!!(t&&e===zi.id||!t&&(e===CM.id||e===zi.id))}f();ra();var im={address:null,apiKey:null,chain:Ya,config:{analytics:!0,analyticsUrl:null,appearance:{name:null,logo:null,mode:null,theme:null},paymaster:null,wallet:{display:null,termsUrl:null,privacyUrl:null,supportedWallets:{rabby:!1,trust:!1,frame:!1}}},rpcUrl:null,schemaId:null,projectId:null,sessionId:null},YA=e=>im[e],tae=e=>(Object.assign(im,e),YA);f();var Fee=he(ze(),1);var I1=he($e(),1);f();var $U=he(ze(),1);f();f();f();f();f();var U0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};f();var jp=typeof window>\"u\"||\"Deno\"in globalThis;function Ps(){}function t3e(e,t){return typeof e==\"function\"?e(t):e}function RM(e){return typeof e==\"number\"&&e>=0&&e!==1/0}function GW(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yy(e,t){return typeof e==\"function\"?e(t):e}function Wp(e,t){return typeof e==\"function\"?e(t):e}function qW(e,t){let{type:n=\"all\",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:c}=e;if(a){if(r){if(t.queryHash!==IM(a,t.options))return!1}else if(!kT(t.queryKey,a))return!1}if(n!==\"all\"){let u=t.isActive();if(n===\"active\"&&!u||n===\"inactive\"&&u)return!1}return!(typeof c==\"boolean\"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||i&&!i(t))}function KW(e,t){let{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Zb(t.options.mutationKey)!==Zb(i))return!1}else if(!kT(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function IM(e,t){return(t?.queryKeyHashFn||Zb)(e)}function Zb(e){return JSON.stringify(e,(t,n)=>nae(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function kT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e==\"object\"&&typeof t==\"object\"?Object.keys(t).every(n=>kT(e[n],t[n])):!1}var hgt=Object.prototype.hasOwnProperty;function zI(e,t){if(e===t)return e;let n=$5e(e)&&$5e(t);if(!n&&!(nae(e)&&nae(t)))return t;let o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,c=n?new Array(a):{},u=0;for(let d=0;d<a;d++){let p=n?d:i[d],h=e[p],g=t[p];if(h===g){c[p]=h,(n?d<o:hgt.call(e,p))&&u++;continue}if(h===null||g===null||typeof h!=\"object\"||typeof g!=\"object\"){c[p]=g;continue}let y=zI(h,g);c[p]=y,y===h&&u++}return o===a&&u===o?e:c}function jI(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function $5e(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nae(e){if(!e3e(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!e3e(n)||!n.hasOwnProperty(\"isPrototypeOf\")||Object.getPrototypeOf(e)!==Object.prototype)}function e3e(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function n3e(e){return new Promise(t=>{setTimeout(t,e)})}function OM(e,t,n){if(typeof n.structuralSharing==\"function\")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return zI(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return zI(e,t)}return t}function r3e(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function o3e(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var OT=Symbol();function YW(e,t){return e.queryFn===OT&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: \\'${e.queryHash}\\'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===OT?()=>Promise.reject(new Error(`Missing queryFn: \\'${e.queryHash}\\'`)):e.queryFn}function kM(e,t){return typeof e==\"function\"?e(...t):!!e}var NT,ZA,WI,i3e,mgt=(i3e=class extends U0{constructor(){super();gn(this,NT);gn(this,ZA);gn(this,WI);Wt(this,WI,t=>{if(!jp&&window.addEventListener){let n=()=>t();return window.addEventListener(\"visibilitychange\",n,!1),()=>{window.removeEventListener(\"visibilitychange\",n)}}})}onSubscribe(){Te(this,ZA)||this.setEventListener(Te(this,WI))}onUnsubscribe(){var t;this.hasListeners()||((t=Te(this,ZA))==null||t.call(this),Wt(this,ZA,void 0))}setEventListener(t){var n;Wt(this,WI,t),(n=Te(this,ZA))==null||n.call(this),Wt(this,ZA,t(r=>{typeof r==\"boolean\"?this.setFocused(r):this.onFocus()}))}setFocused(t){Te(this,NT)!==t&&(Wt(this,NT,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof Te(this,NT)==\"boolean\"?Te(this,NT):globalThis.document?.visibilityState!==\"hidden\"}},NT=new WeakMap,ZA=new WeakMap,WI=new WeakMap,i3e),VI=new mgt;f();var GI,QA,qI,a3e,ggt=(a3e=class extends U0{constructor(){super();gn(this,GI,!0);gn(this,QA);gn(this,qI);Wt(this,qI,t=>{if(!jp&&window.addEventListener){let n=()=>t(!0),r=()=>t(!1);return window.addEventListener(\"online\",n,!1),window.addEventListener(\"offline\",r,!1),()=>{window.removeEventListener(\"online\",n),window.removeEventListener(\"offline\",r)}}})}onSubscribe(){Te(this,QA)||this.setEventListener(Te(this,qI))}onUnsubscribe(){var t;this.hasListeners()||((t=Te(this,QA))==null||t.call(this),Wt(this,QA,void 0))}setEventListener(t){var n;Wt(this,qI,t),(n=Te(this,QA))==null||n.call(this),Wt(this,QA,t(this.setOnline.bind(this)))}setOnline(t){Te(this,GI)!==t&&(Wt(this,GI,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Te(this,GI)}},GI=new WeakMap,QA=new WeakMap,qI=new WeakMap,a3e),KI=new ggt;f();function NM(){let e,t,n=new Promise((o,i)=>{e=o,t=i});n.status=\"pending\",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:\"fulfilled\",value:o}),e(o)},n.reject=o=>{r({status:\"rejected\",reason:o}),t(o)},n}function ygt(e){return Math.min(1e3*2**e,3e4)}function rae(e){return(e??\"online\")===\"online\"?KI.isOnline():!0}var ZW=class extends Error{constructor(e){super(\"CancelledError\"),this.revert=e?.revert,this.silent=e?.silent}};function QW(e){let t=!1,n=0,r,o=NM(),i=()=>o.status!==\"pending\",a=x=>{if(!i()){let R=new ZW(x);g(R),e.onCancel?.(R)}},c=()=>{t=!0},u=()=>{t=!1},d=()=>VI.isFocused()&&(e.networkMode===\"always\"||KI.isOnline())&&e.canRun(),p=()=>rae(e.networkMode)&&e.canRun(),h=x=>{i()||(r?.(),o.resolve(x))},g=x=>{i()||(r?.(),o.reject(x))},y=()=>new Promise(x=>{r=R=>{(i()||d())&&x(R)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),v=()=>{if(i())return;let x,R=n===0?e.initialPromise:void 0;try{x=R??e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(h).catch(S=>{if(i())return;let M=e.retry??(jp?0:3),P=e.retryDelay??ygt,z=typeof P==\"function\"?P(n,S):P,V=M===!0||typeof M==\"number\"&&n<M||typeof M==\"function\"&&M(n,S);if(t||!V){g(S);return}n++,e.onFail?.(n,S),n3e(z).then(()=>d()?void 0:y()).then(()=>{t?g(S):v()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?v():y().then(v),o)}}f();f();f();var s3e=e=>setTimeout(e,0);function bgt(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=s3e,i=c=>{t?e.push(c):o(()=>{n(c)})},a=()=>{let c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||a()}return u},batchCalls:c=>(...u)=>{i(()=>{c(...u)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Ii=bgt();f();var PT,c3e,JW=(c3e=class{constructor(){gn(this,PT)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),RM(this.gcTime)&&Wt(this,PT,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jp?1/0:300*1e3))}clearGcTimeout(){Te(this,PT)&&(clearTimeout(Te(this,PT)),Wt(this,PT,void 0))}},PT=new WeakMap,c3e);var YI,ZI,F0,MT,Uu,PM,DT,Zy,M2,u3e,l3e=(u3e=class extends JW{constructor(t){super();gn(this,Zy);gn(this,YI);gn(this,ZI);gn(this,F0);gn(this,MT);gn(this,Uu);gn(this,PM);gn(this,DT);Wt(this,DT,!1),Wt(this,PM,t.defaultOptions),this.setOptions(t.options),this.observers=[],Wt(this,MT,t.client),Wt(this,F0,Te(this,MT).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Wt(this,YI,vgt(this.options)),this.state=t.state??Te(this,YI),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return Te(this,Uu)?.promise}setOptions(t){this.options={...Te(this,PM),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus===\"idle\"&&Te(this,F0).remove(this)}setData(t,n){let r=OM(this.state.data,t,this.options);return br(this,Zy,M2).call(this,{data:r,type:\"success\",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){br(this,Zy,M2).call(this,{type:\"setState\",state:t,setStateOptions:n})}cancel(t){let n=Te(this,Uu)?.promise;return Te(this,Uu)?.cancel(t),n?n.then(Ps).catch(Ps):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Te(this,YI))}isActive(){return this.observers.some(t=>Wp(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===OT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yy(t.options.staleTime,this)===\"static\"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t===\"static\"?!1:this.state.isInvalidated?!0:!GW(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),Te(this,Uu)?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),Te(this,Uu)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Te(this,F0).notify({type:\"observerAdded\",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Te(this,Uu)&&(Te(this,DT)?Te(this,Uu).cancel({revert:!0}):Te(this,Uu).cancelRetry()),this.scheduleGc()),Te(this,F0).notify({type:\"observerRemoved\",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||br(this,Zy,M2).call(this,{type:\"invalidate\"})}async fetch(t,n){if(this.state.fetchStatus!==\"idle\"&&Te(this,Uu)?.status()!==\"rejected\"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(Te(this,Uu))return Te(this,Uu).continueRetry(),Te(this,Uu).promise}if(t&&this.setOptions(t),!this.options.queryFn){let u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}Array.isArray(this.options.queryKey)||console.error(\"As of v4, queryKey needs to be an Array. If you are using a string like \\'repoData\\', please change it to an Array, e.g. [\\'repoData\\']\");let r=new AbortController,o=u=>{Object.defineProperty(u,\"signal\",{enumerable:!0,get:()=>(Wt(this,DT,!0),r.signal)})},i=()=>{let u=YW(this.options,n),p=(()=>{let h={client:Te(this,MT),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return Wt(this,DT,!1),this.options.persister?this.options.persister(u,p,this):u(p)},c=(()=>{let u={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Te(this,MT),state:this.state,fetchFn:i};return o(u),u})();this.options.behavior?.onFetch(c,this),Wt(this,ZI,this.state),(this.state.fetchStatus===\"idle\"||this.state.fetchMeta!==c.fetchOptions?.meta)&&br(this,Zy,M2).call(this,{type:\"fetch\",meta:c.fetchOptions?.meta}),Wt(this,Uu,QW({initialPromise:n?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof ZW&&u.revert&&this.setState({...Te(this,ZI),fetchStatus:\"idle\"}),r.abort()},onFail:(u,d)=>{br(this,Zy,M2).call(this,{type:\"failed\",failureCount:u,error:d})},onPause:()=>{br(this,Zy,M2).call(this,{type:\"pause\"})},onContinue:()=>{br(this,Zy,M2).call(this,{type:\"continue\"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{let u=await Te(this,Uu).start();if(u===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(u),Te(this,F0).config.onSuccess?.(u,this),Te(this,F0).config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof ZW){if(u.silent)return Te(this,Uu).promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw br(this,Zy,M2).call(this,{type:\"error\",error:u}),Te(this,F0).config.onError?.(u,this),Te(this,F0).config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}},YI=new WeakMap,ZI=new WeakMap,F0=new WeakMap,MT=new WeakMap,Uu=new WeakMap,PM=new WeakMap,DT=new WeakMap,Zy=new WeakSet,M2=function(t){let n=r=>{switch(t.type){case\"failed\":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case\"pause\":return{...r,fetchStatus:\"paused\"};case\"continue\":return{...r,fetchStatus:\"fetching\"};case\"fetch\":return{...r,...oae(r.data,this.options),fetchMeta:t.meta??null};case\"success\":let o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:\"success\",...!t.manual&&{fetchStatus:\"idle\",fetchFailureCount:0,fetchFailureReason:null}};return Wt(this,ZI,t.manual?o:void 0),o;case\"error\":let i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:\"idle\",status:\"error\"};case\"invalidate\":return{...r,isInvalidated:!0};case\"setState\":return{...r,...t.state}}};this.state=n(this.state),Ii.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Te(this,F0).notify({query:this,type:\"updated\",action:t})})},u3e);function oae(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rae(t.networkMode)?\"fetching\":\"paused\",...e===void 0&&{error:null,status:\"pending\"}}}function vgt(e){let t=typeof e.initialData==\"function\"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==\"function\"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?\"success\":\"pending\",fetchStatus:\"idle\"}}var Qb,d3e,f3e=(d3e=class extends U0{constructor(t={}){super();gn(this,Qb);this.config=t,Wt(this,Qb,new Map)}build(t,n,r){let o=n.queryKey,i=n.queryHash??IM(o,n),a=this.get(i);return a||(a=new l3e({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){Te(this,Qb).has(t.queryHash)||(Te(this,Qb).set(t.queryHash,t),this.notify({type:\"added\",query:t}))}remove(t){let n=Te(this,Qb).get(t.queryHash);n&&(t.destroy(),n===t&&Te(this,Qb).delete(t.queryHash),this.notify({type:\"removed\",query:t}))}clear(){Ii.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Te(this,Qb).get(t)}getAll(){return[...Te(this,Qb).values()]}find(t){let n={exact:!0,...t};return this.getAll().find(r=>qW(n,r))}findAll(t={}){let n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qW(t,r)):n}notify(t){Ii.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ii.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ii.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qb=new WeakMap,d3e);f();f();f();var Jb,Of,LT,Xb,JA,p3e,h3e=(p3e=class extends JW{constructor(t){super();gn(this,Xb);gn(this,Jb);gn(this,Of);gn(this,LT);this.mutationId=t.mutationId,Wt(this,Of,t.mutationCache),Wt(this,Jb,[]),this.state=t.state||iae(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Te(this,Jb).includes(t)||(Te(this,Jb).push(t),this.clearGcTimeout(),Te(this,Of).notify({type:\"observerAdded\",mutation:this,observer:t}))}removeObserver(t){Wt(this,Jb,Te(this,Jb).filter(n=>n!==t)),this.scheduleGc(),Te(this,Of).notify({type:\"observerRemoved\",mutation:this,observer:t})}optionalRemove(){Te(this,Jb).length||(this.state.status===\"pending\"?this.scheduleGc():Te(this,Of).remove(this))}continue(){return Te(this,LT)?.continue()??this.execute(this.state.variables)}async execute(t){let n=()=>{br(this,Xb,JA).call(this,{type:\"continue\"})};Wt(this,LT,QW({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error(\"No mutationFn found\")),onFail:(i,a)=>{br(this,Xb,JA).call(this,{type:\"failed\",failureCount:i,error:a})},onPause:()=>{br(this,Xb,JA).call(this,{type:\"pause\"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Te(this,Of).canRun(this)}));let r=this.state.status===\"pending\",o=!Te(this,LT).canStart();try{if(r)n();else{br(this,Xb,JA).call(this,{type:\"pending\",variables:t,isPaused:o}),await Te(this,Of).config.onMutate?.(t,this);let a=await this.options.onMutate?.(t);a!==this.state.context&&br(this,Xb,JA).call(this,{type:\"pending\",context:a,variables:t,isPaused:o})}let i=await Te(this,LT).start();return await Te(this,Of).config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await Te(this,Of).config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),br(this,Xb,JA).call(this,{type:\"success\",data:i}),i}catch(i){try{throw await Te(this,Of).config.onError?.(i,t,this.state.context,this),await this.options.onError?.(i,t,this.state.context),await Te(this,Of).config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,t,this.state.context),i}finally{br(this,Xb,JA).call(this,{type:\"error\",error:i})}}finally{Te(this,Of).runNext(this)}}},Jb=new WeakMap,Of=new WeakMap,LT=new WeakMap,Xb=new WeakSet,JA=function(t){let n=r=>{switch(t.type){case\"failed\":return{...r,failureCount:t.failureCount,failureReason:t.error};case\"pause\":return{...r,isPaused:!0};case\"continue\":return{...r,isPaused:!1};case\"pending\":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:\"pending\",variables:t.variables,submittedAt:Date.now()};case\"success\":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:\"success\",isPaused:!1};case\"error\":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:\"error\"}}};this.state=n(this.state),Ii.batch(()=>{Te(this,Jb).forEach(r=>{r.onMutationUpdate(t)}),Te(this,Of).notify({mutation:this,type:\"updated\",action:t})})},p3e);function iae(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:\"idle\",variables:void 0,submittedAt:0}}var D2,Qy,MM,m3e,g3e=(m3e=class extends U0{constructor(t={}){super();gn(this,D2);gn(this,Qy);gn(this,MM);this.config=t,Wt(this,D2,new Set),Wt(this,Qy,new Map),Wt(this,MM,0)}build(t,n,r){let o=new h3e({mutationCache:this,mutationId:++C9(this,MM)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){Te(this,D2).add(t);let n=XW(t);if(typeof n==\"string\"){let r=Te(this,Qy).get(n);r?r.push(t):Te(this,Qy).set(n,[t])}this.notify({type:\"added\",mutation:t})}remove(t){if(Te(this,D2).delete(t)){let n=XW(t);if(typeof n==\"string\"){let r=Te(this,Qy).get(n);if(r)if(r.length>1){let o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&Te(this,Qy).delete(n)}}this.notify({type:\"removed\",mutation:t})}canRun(t){let n=XW(t);if(typeof n==\"string\"){let o=Te(this,Qy).get(n)?.find(i=>i.state.status===\"pending\");return!o||o===t}else return!0}runNext(t){let n=XW(t);return typeof n==\"string\"?Te(this,Qy).get(n)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ii.batch(()=>{Te(this,D2).forEach(t=>{this.notify({type:\"removed\",mutation:t})}),Te(this,D2).clear(),Te(this,Qy).clear()})}getAll(){return Array.from(Te(this,D2))}find(t){let n={exact:!0,...t};return this.getAll().find(r=>KW(n,r))}findAll(t={}){return this.getAll().filter(n=>KW(t,n))}notify(t){Ii.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){let t=this.getAll().filter(n=>n.state.isPaused);return Ii.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ps))))}},D2=new WeakMap,Qy=new WeakMap,MM=new WeakMap,m3e);function XW(e){return e.options.scope?.id}f();function aae(e){return{onFetch:(t,n)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},u=0,d=async()=>{let p=!1,h=v=>{Object.defineProperty(v,\"signal\",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener(\"abort\",()=>{p=!0}),t.signal)})},g=YW(t.options,t.fetchOptions),y=async(v,x,R)=>{if(p)return Promise.reject();if(x==null&&v.pages.length)return Promise.resolve(v);let M=(()=>{let Q={client:t.client,queryKey:t.queryKey,pageParam:x,direction:R?\"backward\":\"forward\",meta:t.options.meta};return h(Q),Q})(),P=await g(M),{maxPages:z}=t.options,V=R?o3e:r3e;return{pages:V(v.pages,P,z),pageParams:V(v.pageParams,x,z)}};if(o&&i.length){let v=o===\"backward\",x=v?wgt:y3e,R={pages:i,pageParams:a},S=x(r,R);c=await y(R,S,v)}else{let v=e??i.length;do{let x=u===0?a[0]??r.initialPageParam:y3e(r,c);if(u>0&&x==null)break;c=await y(c,x),u++}while(u<v)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function y3e(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wgt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ms,XA,$A,QI,JI,e_,XI,$I,b3e,sae=(b3e=class{constructor(e={}){gn(this,Ms);gn(this,XA);gn(this,$A);gn(this,QI);gn(this,JI);gn(this,e_);gn(this,XI);gn(this,$I);Wt(this,Ms,e.queryCache||new f3e),Wt(this,XA,e.mutationCache||new g3e),Wt(this,$A,e.defaultOptions||{}),Wt(this,QI,new Map),Wt(this,JI,new Map),Wt(this,e_,0)}mount(){C9(this,e_)._++,Te(this,e_)===1&&(Wt(this,XI,VI.subscribe(async e=>{e&&(await this.resumePausedMutations(),Te(this,Ms).onFocus())})),Wt(this,$I,KI.subscribe(async e=>{e&&(await this.resumePausedMutations(),Te(this,Ms).onOnline())})))}unmount(){var e,t;C9(this,e_)._--,Te(this,e_)===0&&((e=Te(this,XI))==null||e.call(this),Wt(this,XI,void 0),(t=Te(this,$I))==null||t.call(this),Wt(this,$I,void 0))}isFetching(e){return Te(this,Ms).findAll({...e,fetchStatus:\"fetching\"}).length}isMutating(e){return Te(this,XA).findAll({...e,status:\"pending\"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return Te(this,Ms).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=Te(this,Ms).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yy(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Te(this,Ms).findAll(e).map(({queryKey:t,state:n})=>{let r=n.data;return[t,r]})}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=Te(this,Ms).get(r.queryHash)?.state.data,a=t3e(t,i);if(a!==void 0)return Te(this,Ms).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ii.batch(()=>Te(this,Ms).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return Te(this,Ms).get(t.queryHash)?.state}removeQueries(e){let t=Te(this,Ms);Ii.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){let n=Te(this,Ms);return Ii.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:\"active\",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ii.batch(()=>Te(this,Ms).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ps).catch(Ps)}invalidateQueries(e,t={}){return Ii.batch(()=>(Te(this,Ms).findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType===\"none\"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??\"active\"},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ii.batch(()=>Te(this,Ms).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ps)),o.state.fetchStatus===\"paused\"?Promise.resolve():i}));return Promise.all(r).then(Ps)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=Te(this,Ms).build(this,t);return n.isStaleByTime(Yy(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ps).catch(Ps)}fetchInfiniteQuery(e){return e.behavior=aae(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ps).catch(Ps)}ensureInfiniteQueryData(e){return e.behavior=aae(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return KI.isOnline()?Te(this,XA).resumePausedMutations():Promise.resolve()}getQueryCache(){return Te(this,Ms)}getMutationCache(){return Te(this,XA)}getDefaultOptions(){return Te(this,$A)}setDefaultOptions(e){Wt(this,$A,e)}setQueryDefaults(e,t){Te(this,QI).set(Zb(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...Te(this,QI).values()],n={};return t.forEach(r=>{kT(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Te(this,JI).set(Zb(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...Te(this,JI).values()],n={};return t.forEach(r=>{kT(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...Te(this,$A).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=IM(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==\"always\"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=\"offlineFirst\"),t.queryFn===OT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Te(this,$A).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Te(this,Ms).clear(),Te(this,XA).clear()}},Ms=new WeakMap,XA=new WeakMap,$A=new WeakMap,QI=new WeakMap,JI=new WeakMap,e_=new WeakMap,XI=new WeakMap,$I=new WeakMap,b3e);f();var Vp,To,LM,kf,BT,e8,L2,t_,BM,t8,n8,UT,FT,n_,r8,mi,DM,cae,uae,lae,dae,fae,pae,hae,E3e,x3e,gae=(x3e=class extends U0{constructor(t,n){super();gn(this,mi);gn(this,Vp);gn(this,To);gn(this,LM);gn(this,kf);gn(this,BT);gn(this,e8);gn(this,L2);gn(this,t_);gn(this,BM);gn(this,t8);gn(this,n8);gn(this,UT);gn(this,FT);gn(this,n_);gn(this,r8,new Set);this.options=n,Wt(this,Vp,t),Wt(this,t_,null),Wt(this,L2,NM()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Te(this,To).addObserver(this),v3e(Te(this,To),this.options)?br(this,mi,DM).call(this):this.updateResult(),br(this,mi,dae).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mae(Te(this,To),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mae(Te(this,To),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,br(this,mi,fae).call(this),br(this,mi,pae).call(this),Te(this,To).removeObserver(this)}setOptions(t){let n=this.options,r=Te(this,To);if(this.options=Te(this,Vp).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!=\"boolean\"&&typeof this.options.enabled!=\"function\"&&typeof Wp(this.options.enabled,Te(this,To))!=\"boolean\")throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");br(this,mi,hae).call(this),Te(this,To).setOptions(this.options),n._defaulted&&!jI(this.options,n)&&Te(this,Vp).getQueryCache().notify({type:\"observerOptionsUpdated\",query:Te(this,To),observer:this});let o=this.hasListeners();o&&w3e(Te(this,To),r,this.options,n)&&br(this,mi,DM).call(this),this.updateResult(),o&&(Te(this,To)!==r||Wp(this.options.enabled,Te(this,To))!==Wp(n.enabled,Te(this,To))||Yy(this.options.staleTime,Te(this,To))!==Yy(n.staleTime,Te(this,To)))&&br(this,mi,cae).call(this);let i=br(this,mi,uae).call(this);o&&(Te(this,To)!==r||Wp(this.options.enabled,Te(this,To))!==Wp(n.enabled,Te(this,To))||i!==Te(this,n_))&&br(this,mi,lae).call(this,i)}getOptimisticResult(t){let n=Te(this,Vp).getQueryCache().build(Te(this,Vp),t),r=this.createResult(n,t);return Egt(this,r)&&(Wt(this,kf,r),Wt(this,e8,this.options),Wt(this,BT,Te(this,To).state)),r}getCurrentResult(){return Te(this,kf)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n?.(o),o===\"promise\"&&!this.options.experimental_prefetchInRender&&Te(this,L2).status===\"pending\"&&Te(this,L2).reject(new Error(\"experimental_prefetchInRender feature flag is not enabled\")),Reflect.get(r,o))})}trackProp(t){Te(this,r8).add(t)}getCurrentQuery(){return Te(this,To)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let n=Te(this,Vp).defaultQueryOptions(t),r=Te(this,Vp).getQueryCache().build(Te(this,Vp),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return br(this,mi,DM).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Te(this,kf)))}createResult(t,n){let r=Te(this,To),o=this.options,i=Te(this,kf),a=Te(this,BT),c=Te(this,e8),d=t!==r?t.state:Te(this,LM),{state:p}=t,h={...p},g=!1,y;if(n._optimisticResults){let J=this.hasListeners(),re=!J&&v3e(t,n),q=J&&w3e(t,r,n,o);(re||q)&&(h={...h,...oae(p.data,t.options)}),n._optimisticResults===\"isRestoring\"&&(h.fetchStatus=\"idle\")}let{error:v,errorUpdatedAt:x,status:R}=h;y=h.data;let S=!1;if(n.placeholderData!==void 0&&y===void 0&&R===\"pending\"){let J;i?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(J=i.data,S=!0):J=typeof n.placeholderData==\"function\"?n.placeholderData(Te(this,n8)?.state.data,Te(this,n8)):n.placeholderData,J!==void 0&&(R=\"success\",y=OM(i?.data,J,n),g=!0)}if(n.select&&y!==void 0&&!S)if(i&&y===a?.data&&n.select===Te(this,BM))y=Te(this,t8);else try{Wt(this,BM,n.select),y=n.select(y),y=OM(i?.data,y,n),Wt(this,t8,y),Wt(this,t_,null)}catch(J){Wt(this,t_,J)}Te(this,t_)&&(v=Te(this,t_),y=Te(this,t8),x=Date.now(),R=\"error\");let M=h.fetchStatus===\"fetching\",P=R===\"pending\",z=R===\"error\",V=P&&M,Q=y!==void 0,oe={status:R,fetchStatus:h.fetchStatus,isPending:P,isSuccess:R===\"success\",isError:z,isInitialLoading:V,isLoading:V,data:y,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:M,isRefetching:M&&!P,isLoadingError:z&&!Q,isPaused:h.fetchStatus===\"paused\",isPlaceholderData:g,isRefetchError:z&&Q,isStale:yae(t,n),refetch:this.refetch,promise:Te(this,L2),isEnabled:Wp(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let J=K=>{oe.status===\"error\"?K.reject(oe.error):oe.data!==void 0&&K.resolve(oe.data)},re=()=>{let K=Wt(this,L2,oe.promise=NM());J(K)},q=Te(this,L2);switch(q.status){case\"pending\":t.queryHash===r.queryHash&&J(q);break;case\"fulfilled\":(oe.status===\"error\"||oe.data!==q.value)&&re();break;case\"rejected\":(oe.status!==\"error\"||oe.error!==q.reason)&&re();break}}return oe}updateResult(){let t=Te(this,kf),n=this.createResult(Te(this,To),this.options);if(Wt(this,BT,Te(this,To).state),Wt(this,e8,this.options),Te(this,BT).data!==void 0&&Wt(this,n8,Te(this,To)),jI(n,t))return;Wt(this,kf,n);let r=()=>{if(!t)return!0;let{notifyOnChangeProps:o}=this.options,i=typeof o==\"function\"?o():o;if(i===\"all\"||!i&&!Te(this,r8).size)return!0;let a=new Set(i??Te(this,r8));return this.options.throwOnError&&a.add(\"error\"),Object.keys(Te(this,kf)).some(c=>{let u=c;return Te(this,kf)[u]!==t[u]&&a.has(u)})};br(this,mi,E3e).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&br(this,mi,dae).call(this)}},Vp=new WeakMap,To=new WeakMap,LM=new WeakMap,kf=new WeakMap,BT=new WeakMap,e8=new WeakMap,L2=new WeakMap,t_=new WeakMap,BM=new WeakMap,t8=new WeakMap,n8=new WeakMap,UT=new WeakMap,FT=new WeakMap,n_=new WeakMap,r8=new WeakMap,mi=new WeakSet,DM=function(t){br(this,mi,hae).call(this);let n=Te(this,To).fetch(this.options,t);return t?.throwOnError||(n=n.catch(Ps)),n},cae=function(){br(this,mi,fae).call(this);let t=Yy(this.options.staleTime,Te(this,To));if(jp||Te(this,kf).isStale||!RM(t))return;let r=GW(Te(this,kf).dataUpdatedAt,t)+1;Wt(this,UT,setTimeout(()=>{Te(this,kf).isStale||this.updateResult()},r))},uae=function(){return(typeof this.options.refetchInterval==\"function\"?this.options.refetchInterval(Te(this,To)):this.options.refetchInterval)??!1},lae=function(t){br(this,mi,pae).call(this),Wt(this,n_,t),!(jp||Wp(this.options.enabled,Te(this,To))===!1||!RM(Te(this,n_))||Te(this,n_)===0)&&Wt(this,FT,setInterval(()=>{(this.options.refetchIntervalInBackground||VI.isFocused())&&br(this,mi,DM).call(this)},Te(this,n_)))},dae=function(){br(this,mi,cae).call(this),br(this,mi,lae).call(this,br(this,mi,uae).call(this))},fae=function(){Te(this,UT)&&(clearTimeout(Te(this,UT)),Wt(this,UT,void 0))},pae=function(){Te(this,FT)&&(clearInterval(Te(this,FT)),Wt(this,FT,void 0))},hae=function(){let t=Te(this,Vp).getQueryCache().build(Te(this,Vp),this.options);if(t===Te(this,To))return;let n=Te(this,To);Wt(this,To,t),Wt(this,LM,t.state),this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))},E3e=function(t){Ii.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Te(this,kf))}),Te(this,Vp).getQueryCache().notify({query:Te(this,To),type:\"observerResultsUpdated\"})})},x3e);function xgt(e,t){return Wp(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===\"error\"&&t.retryOnMount===!1)}function v3e(e,t){return xgt(e,t)||e.state.data!==void 0&&mae(e,t,t.refetchOnMount)}function mae(e,t,n){if(Wp(t.enabled,e)!==!1&&Yy(t.staleTime,e)!==\"static\"){let r=typeof n==\"function\"?n(e):n;return r===\"always\"||r!==!1&&yae(e,t)}return!1}function w3e(e,t,n,r){return(e!==t||Wp(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==\"error\")&&yae(e,n)}function yae(e,t){return Wp(t.enabled,e)!==!1&&e.isStaleByTime(Yy(t.staleTime,e))}function Egt(e,t){return!jI(e.getCurrentResult(),t)}f();var r_,o_,Gp,B2,U2,$W,bae,A3e,vae=(A3e=class extends U0{constructor(t,n){super();gn(this,U2);gn(this,r_);gn(this,o_);gn(this,Gp);gn(this,B2);Wt(this,r_,t),this.setOptions(n),this.bindMethods(),br(this,U2,$W).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let n=this.options;this.options=Te(this,r_).defaultMutationOptions(t),jI(this.options,n)||Te(this,r_).getMutationCache().notify({type:\"observerOptionsUpdated\",mutation:Te(this,Gp),observer:this}),n?.mutationKey&&this.options.mutationKey&&Zb(n.mutationKey)!==Zb(this.options.mutationKey)?this.reset():Te(this,Gp)?.state.status===\"pending\"&&Te(this,Gp).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||Te(this,Gp)?.removeObserver(this)}onMutationUpdate(t){br(this,U2,$W).call(this),br(this,U2,bae).call(this,t)}getCurrentResult(){return Te(this,o_)}reset(){Te(this,Gp)?.removeObserver(this),Wt(this,Gp,void 0),br(this,U2,$W).call(this),br(this,U2,bae).call(this)}mutate(t,n){return Wt(this,B2,n),Te(this,Gp)?.removeObserver(this),Wt(this,Gp,Te(this,r_).getMutationCache().build(Te(this,r_),this.options)),Te(this,Gp).addObserver(this),Te(this,Gp).execute(t)}},r_=new WeakMap,o_=new WeakMap,Gp=new WeakMap,B2=new WeakMap,U2=new WeakSet,$W=function(){let t=Te(this,Gp)?.state??iae();Wt(this,o_,{...t,isPending:t.status===\"pending\",isSuccess:t.status===\"success\",isError:t.status===\"error\",isIdle:t.status===\"idle\",mutate:this.mutate,reset:this.reset})},bae=function(t){Ii.batch(()=>{if(Te(this,B2)&&this.hasListeners()){let n=Te(this,o_).variables,r=Te(this,o_).context;t?.type===\"success\"?(Te(this,B2).onSuccess?.(t.data,n,r),Te(this,B2).onSettled?.(t.data,null,n,r)):t?.type===\"error\"&&(Te(this,B2).onError?.(t.error,n,r),Te(this,B2).onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(Te(this,o_))})})},A3e);f();var o8=he($e(),1),_3e=he(ze(),1),wae=o8.createContext(void 0),F2=e=>{let t=o8.useContext(wae);if(e)return e;if(!t)throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");return t},xae=({client:e,children:t})=>(o8.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,_3e.jsx)(wae.Provider,{value:e,children:t}));f();var eV=he($e(),1),S3e=eV.createContext(!1),T3e=()=>eV.useContext(S3e),lhn=S3e.Provider;f();var UM=he($e(),1),Agt=he(ze(),1);function _gt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Sgt=UM.createContext(_gt()),C3e=()=>UM.useContext(Sgt);f();var R3e=he($e(),1);var I3e=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},O3e=e=>{R3e.useEffect(()=>{e.clearReset()},[e])},k3e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||kM(n,[e.error,r]));f();var N3e=e=>{if(e.suspense){let n=o=>o===\"static\"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r==\"function\"?(...o)=>n(r(...o)):n(r),typeof e.gcTime==\"number\"&&(e.gcTime=Math.max(e.gcTime,1e3))}},P3e=(e,t)=>e.isLoading&&e.isFetching&&!t,M3e=(e,t)=>e?.suspense&&t.isPending,Eae=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});f();f();var i_=he($e(),1);function D3e(e,t,n){if(typeof e!=\"object\"||Array.isArray(e))throw new Error(\\'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object\\');let r=T3e(),o=C3e(),i=F2(n),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),a._optimisticResults=r?\"isRestoring\":\"optimistic\",N3e(a),I3e(a,o),O3e(o);let c=!i.getQueryCache().get(a.queryHash),[u]=i_.useState(()=>new t(i,a)),d=u.getOptimisticResult(a),p=!r&&e.subscribed!==!1;if(i_.useSyncExternalStore(i_.useCallback(h=>{let g=p?u.subscribe(Ii.batchCalls(h)):Ps;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),i_.useEffect(()=>{u.setOptions(a)},[a,u]),M3e(a,d))throw Eae(a,u,o);if(k3e({result:d,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!jp&&P3e(d,r)&&(c?Eae(a,u,o):i.getQueryCache().get(a.queryHash)?.promise)?.catch(Ps).finally(()=>{u.updateResult()}),a.notifyOnChangeProps?d:u.trackResult(d)}function Nf(e,t){return D3e(e,gae,t)}f();var H2=he($e(),1);function qp(e,t){let n=F2(t),[r]=H2.useState(()=>new vae(n,e));H2.useEffect(()=>{r.setOptions(e)},[r,e]);let o=H2.useSyncExternalStore(H2.useCallback(a=>r.subscribe(Ii.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=H2.useCallback((a,c)=>{r.mutate(a,c).catch(Ps)},[r]);if(o.error&&kM(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var Wv=he($e(),1);f();f();var MD=he($e(),1);f();f();f();function Sd(e,t,n){let r=e[t.name];if(typeof r==\"function\")return r;let o=e[n];return typeof o==\"function\"?o:i=>t(e,i)}f();f();f();f();f();var B8=\"2.20.3\";var _4e=()=>`@wagmi/core@${B8}`;var S4e=function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},WG,T4e,Bf=class e extends Error{get docsBaseUrl(){return\"https://wagmi.sh/core\"}get version(){return _4e()}constructor(t,n={}){super(),WG.add(this),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiCoreError\"});let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath;this.message=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:\"\"}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`\\n`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return S4e(this,WG,\"m\",T4e).call(this,this,t)}};WG=new WeakSet,T4e=function e(t,n){return n?.(t)?t:t.cause?S4e(this,WG,\"m\",e).call(this,t.cause,n):t};var Bc=class extends Bf{constructor(){super(\"Chain not configured.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainNotConfiguredError\"})}},U8=class extends Bf{constructor(){super(\"Connector already connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAlreadyConnectedError\"})}},nx=class extends Bf{constructor(){super(\"Connector not connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorNotConnectedError\"})}};var F8=class extends Bf{constructor({address:t,connector:n}){super(`Account \"${t}\" not found for connector \"${n.name}\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAccountNotFoundError\"})}},H8=class extends Bf{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection\\'s chain (id: ${t}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorChainMismatchError\"})}},z8=class extends Bf{constructor({connector:t}){super(`Connector \"${t.name}\" unavailable while reconnecting.`,{details:[\"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.\",\"All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.\",\"This error commonly occurs for connectors that asynchronously inject after reconnection has already started.\"].join(\" \")}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorUnavailableReconnectingError\"})}};async function C4e(e,t){let n;if(typeof t.connector==\"function\"?n=e._internal.connectors.setup(t.connector):n=t.connector,n.uid===e.state.current)throw new U8;try{e.setState(c=>({...c,status:\"connecting\"})),n.emitter.emit(\"message\",{type:\"connecting\"});let{connector:r,...o}=t,i=await n.connect(o),a=i.accounts;return n.emitter.off(\"connect\",e._internal.events.connect),n.emitter.on(\"change\",e._internal.events.change),n.emitter.on(\"disconnect\",e._internal.events.disconnect),await e.storage?.setItem(\"recentConnectorId\",n.id),e.setState(c=>({...c,connections:new Map(c.connections).set(n.uid,{accounts:a,chainId:i.chainId,connector:n}),current:n.uid,status:\"connected\"})),{accounts:a,chainId:i.chainId}}catch(r){throw e.setState(o=>({...o,status:o.current?\"connected\":\"disconnected\"})),r}}f();pn();e6();async function W0(e,t={}){let n;if(t.connector){let{connector:d}=t;if(e.state.status===\"reconnecting\"&&!d.getAccounts&&!d.getChainId)throw new z8({connector:d});let[p,h]=await Promise.all([d.getAccounts().catch(g=>{if(t.account===null)return[];throw g}),d.getChainId()]);n={accounts:p,chainId:h,connector:d}}else n=e.state.connections.get(e.state.current);if(!n)throw new nx;let r=t.chainId??n.chainId,o=await n.connector.getChainId();if(o!==r)throw new H8({connectionChainId:r,connectorChainId:o});let i=n.connector;if(i.getClient)return i.getClient({chainId:r});let a=jn(t.account??n.accounts[0]);if(a&&(a.address=nr(a.address)),t.account&&!n.accounts.some(d=>d.toLowerCase()===a.address.toLowerCase()))throw new F8({address:a.address,connector:i});let c=e.chains.find(d=>d.id===r),u=await n.connector.getProvider({chainId:r});return rx({account:a,chain:c,name:\"Connector Client\",transport:d=>kD(u)({...d,retryCount:0})})}f();async function H4e(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:o,current:i}=e.state;n=o.get(i)?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off(\"change\",e._internal.events.change),n.emitter.off(\"disconnect\",e._internal.events.disconnect),n.emitter.on(\"connect\",e._internal.events.connect),r.delete(n.uid)),e.setState(o=>{if(r.size===0)return{...o,connections:new Map,current:null,status:\"disconnected\"};let i=r.values().next().value;return{...o,connections:new Map(r),current:i.connector.uid}});{let o=e.state.current;if(!o)return;let i=e.state.connections.get(o)?.connector;if(!i)return;await e.storage?.setItem(\"recentConnectorId\",i.id)}}f();pn();function Uce(e){return typeof e==\"number\"?e:e===\"wei\"?0:Math.abs(wie[e])}f();function ND(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,o=r?.[0],i=e.chains.find(c=>c.id===n?.chainId),a=e.state.status;switch(a){case\"connected\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case\"reconnecting\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case\"connecting\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case\"disconnected\":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}f();pn();Jp();f();pn();f();Jp();async function z4e(e,t){let{allowFailure:n=!0,chainId:r,contracts:o,...i}=t,a=e.getClient({chainId:r});return Sd(a,ED,\"multicall\")({allowFailure:n,contracts:o,...i})}f();Jp();function QG(e,t){let{chainId:n,...r}=t,o=e.getClient({chainId:n});return Sd(o,ui,\"readContract\")(r)}async function j4e(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:o,...i}=t,a=t.contracts;try{let c={};for(let[h,g]of a.entries()){let y=g.chainId??e.state.chainId;c[y]||(c[y]=[]),c[y]?.push({contract:g,index:h})}let u=()=>Object.entries(c).map(([h,g])=>z4e(e,{...i,allowFailure:n,blockNumber:r,blockTag:o,chainId:Number.parseInt(h),contracts:g.map(({contract:y})=>y)})),d=(await Promise.all(u())).flat(),p=Object.values(c).flatMap(h=>h.map(({index:g})=>g));return d.reduce((h,g,y)=>(h&&(h[p[y]]=g),h),[])}catch(c){if(c instanceof Gy)throw c;let u=()=>a.map(d=>QG(e,{...d,blockNumber:r,blockTag:o}));return n?(await Promise.allSettled(u())).map(d=>d.status===\"fulfilled\"?{result:d.value,status:\"success\"}:{error:d.reason,result:void 0,status:\"failure\"}):await Promise.all(u())}}async function V4e(e,t){let{address:n,blockNumber:r,blockTag:o,chainId:i,token:a,unit:c=\"ether\"}=t;if(a)try{return await W4e(e,{balanceAddress:n,chainId:i,symbolType:\"string\",tokenAddress:a})}catch(g){if(g.name===\"ContractFunctionExecutionError\"){let y=await W4e(e,{balanceAddress:n,chainId:i,symbolType:\"bytes32\",tokenAddress:a}),v=tm(Ui(y.symbol,{dir:\"right\"}));return{...y,symbol:v}}throw g}let u=e.getClient({chainId:i}),p=await Sd(u,YT,\"getBalance\")(r?{address:n,blockNumber:r}:{address:n,blockTag:o}),h=e.chains.find(g=>g.id===i)??u.chain;return{decimals:h.nativeCurrency.decimals,formatted:na(p,Uce(c)),symbol:h.nativeCurrency.symbol,value:p}}async function W4e(e,t){let{balanceAddress:n,chainId:r,symbolType:o,tokenAddress:i,unit:a}=t,c={abi:[{type:\"function\",name:\"balanceOf\",stateMutability:\"view\",inputs:[{type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"decimals\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{type:\"function\",name:\"symbol\",stateMutability:\"view\",inputs:[],outputs:[{type:o}]}],address:i},[u,d,p]=await j4e(e,{allowFailure:!1,contracts:[{...c,functionName:\"balanceOf\",args:[n],chainId:r},{...c,functionName:\"decimals\",chainId:r},{...c,functionName:\"symbol\",chainId:r}]}),h=na(u??\"0\",Uce(a??d));return{decimals:d,formatted:h,symbol:p,value:u}}f();Jp();async function G4e(e,t){let{connector:n,id:r}=t,o=await W0(e,{connector:n});return Sd(o,r6,\"getCallsStatus\")({id:r})}f();Jp();async function q4e(e,t={}){let{account:n,chainId:r,connector:o}=t,i=await W0(e,{account:n,connector:o});return ID(i,{account:n,chainId:r})}f();function JG(e){return e.state.chainId}f();f();function Xp(e,t){if(e===t)return!0;if(e&&t&&typeof e==\"object\"&&typeof t==\"object\"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xp(e[r],t[r]))return!1;return!0}if(typeof e.valueOf==\"function\"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString==\"function\"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();let o=Object.keys(e);if(n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.hasOwn(t,o[r]))return!1;for(r=n;r--!==0;){let i=o[r];if(i&&!Xp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}var Fce=[];function XG(e){let t=e.chains;return Xp(Fce,t)?Fce:(Fce=t,t)}f();var $G=[];function W8(e){let t=[...e.state.connections.values()];return e.state.status===\"reconnecting\"||Xp($G,t)?$G:($G=t,t)}f();var Hce=[];function eq(e){let t=e.connectors;return Hce.map(n=>n.uid)===t.map(n=>n.uid)?Hce:(Hce=t,t)}f();pn();async function K4e(e,t={}){return(await W0(e,t)).extend(Lce)}f();var zce=!1;async function Y4e(e,t={}){if(zce)return[];zce=!0,e.setState(d=>({...d,status:d.current?\"reconnecting\":\"connecting\"}));let n=[];if(t.connectors?.length)for(let d of t.connectors){let p;typeof d==\"function\"?p=e._internal.connectors.setup(d):p=d,n.push(p)}else n.push(...e.connectors);let r;try{r=await e.storage?.getItem(\"recentConnectorId\")}catch{}let o={};for(let[,d]of e.state.connections)o[d.connector.id]=1;r&&(o[r]=0);let i=Object.keys(o).length>0?[...n].sort((d,p)=>(o[d.id]??10)-(o[p.id]??10)):n,a=!1,c=[],u=[];for(let d of i){let p=await d.getProvider().catch(()=>{});if(!p||u.some(y=>y===p)||!await d.isAuthorized())continue;let g=await d.connect({isReconnecting:!0}).catch(()=>null);g&&(d.emitter.off(\"connect\",e._internal.events.connect),d.emitter.on(\"change\",e._internal.events.change),d.emitter.on(\"disconnect\",e._internal.events.disconnect),e.setState(y=>{let v=new Map(a?y.connections:new Map).set(d.uid,{accounts:g.accounts,chainId:g.chainId,connector:d});return{...y,current:a?y.current:d.uid,connections:v}}),c.push({accounts:g.accounts,chainId:g.chainId,connector:d}),u.push(p),a=!0)}return(e.state.status===\"reconnecting\"||e.state.status===\"connecting\")&&(a?e.setState(d=>({...d,status:\"connected\"})):e.setState(d=>({...d,connections:new Map,current:null,status:\"disconnected\"}))),zce=!1,c}f();Jp();async function Z4e(e,t){let{account:n,chainId:r,connector:o,calls:i,...a}=t,c=await W0(e,{account:n,chainId:r,connector:o});return Sd(c,RD,\"sendCalls\")({...a,...typeof n<\"u\"?{account:n}:{},calls:i,chain:r?{id:r}:void 0})}f();Jp();async function Q4e(e,t){let{account:n,chainId:r,connector:o,...i}=t,a;return typeof n==\"object\"&&n?.type===\"local\"?a=e.getClient({chainId:r}):a=await W0(e,{account:n??void 0,chainId:r,connector:o}),await Sd(a,t1,\"sendTransaction\")({...i,...n?{account:n}:{},chain:r?{id:r}:null,gas:i.gas??void 0})}f();Jp();async function J4e(e,t){let{connector:n,id:r}=t,o=await W0(e,{connector:n});return OD(o,{id:r})}f();f();var pm=class extends Bf{constructor(){super(\"Provider not found.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderNotFoundError\"})}},V8=class extends Bf{constructor({connector:t}){super(`\"${t.name}\" does not support programmatic chain switching.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SwitchChainNotSupportedError\"})}};async function X4e(e,t){let{addEthereumChainParameter:n,chainId:r}=t,o=e.state.connections.get(t.connector?.uid??e.state.current);if(o){let a=o.connector;if(!a.switchChain)throw new V8({connector:a});return await a.switchChain({addEthereumChainParameter:n,chainId:r})}let i=e.chains.find(a=>a.id===r);if(!i)throw new Bc;return e.setState(a=>({...a,chainId:r})),i}f();pn();Jp();async function V0(e,t){let{chainId:n,timeout:r=0,...o}=t,i=e.getClient({chainId:n}),c=await Sd(i,CD,\"waitForTransactionReceipt\")({...o,timeout:r});if(c.status===\"reverted\"){let d=await Sd(i,$2,\"getTransaction\")({hash:c.transactionHash}),h=await Sd(i,cm,\"call\")({...d,data:d.input,gasPrice:d.type!==\"eip1559\"?d.gasPrice:void 0,maxFeePerGas:d.type===\"eip1559\"?d.maxFeePerGas:void 0,maxPriorityFeePerGas:d.type===\"eip1559\"?d.maxPriorityFeePerGas:void 0}),g=h?.data?tm(`0x${h.data.substring(138)}`):\"unknown reason\";throw new Error(g)}return{...c,chainId:i.chain.id}}f();function jce(e,t){let{onChange:n}=t;return e.subscribe(()=>ND(e),n,{equalityFn(r,o){let{connector:i,...a}=r,{connector:c,...u}=o;return Xp(a,u)&&i?.id===c?.id&&i?.uid===c?.uid}})}f();function Wce(e,t){let{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}f();function Vce(e,t){let{onChange:n}=t;return e.subscribe(()=>W8(e),n,{equalityFn:Xp})}f();function Gce(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((r,o)=>{n(Object.values(r),o)})}f();pn();G0.type=\"injected\";function G0(e={}){let{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){let u=e.target;if(typeof u==\"function\"){let d=u();if(d)return d}return typeof u==\"object\"?u:typeof u==\"string\"?{...H1t[u]??{id:u,name:`${u[0].toUpperCase()}${u.slice(1)}`,provider:`is${u[0].toUpperCase()}${u.slice(1)}`}}:{id:\"injected\",name:\"Injected\",provider(d){return d?.ethereum}}}let o,i,a,c;return u=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:G0.type,async setup(){let d=await this.getProvider();d?.on&&e.target&&(a||(a=this.onConnect.bind(this),d.on(\"connect\",a)),o||(o=this.onAccountsChanged.bind(this),d.on(\"accountsChanged\",o)))},async connect({chainId:d,isReconnecting:p}={}){let h=await this.getProvider();if(!h)throw new pm;let g=[];if(p)g=await this.getAccounts().catch(()=>[]);else if(t)try{g=(await h.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(v=>nr(v)),g.length>0&&(g=await this.getAccounts())}catch(y){let v=y;if(v.code===fo.code)throw new fo(v);if(v.code===Hp.code)throw v}try{!g?.length&&!p&&(g=(await h.request({method:\"eth_requestAccounts\"})).map(x=>nr(x))),a&&(h.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),h.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),h.on(\"chainChanged\",i)),c||(c=this.onDisconnect.bind(this),h.on(\"disconnect\",c));let y=await this.getChainId();return d&&y!==d&&(y=(await this.switchChain({chainId:d}).catch(x=>{if(x.code===fo.code)throw x;return{id:y}}))?.id??y),t&&await u.storage?.removeItem(`${this.id}.disconnected`),e.target||await u.storage?.setItem(\"injected.connected\",!0),{accounts:g,chainId:y}}catch(y){let v=y;throw v.code===fo.code?new fo(v):v.code===Hp.code?new Hp(v):v}},async disconnect(){let d=await this.getProvider();if(!d)throw new pm;i&&(d.removeListener(\"chainChanged\",i),i=void 0),c&&(d.removeListener(\"disconnect\",c),c=void 0),a||(a=this.onConnect.bind(this),d.on(\"connect\",a));try{await QT(()=>d.request({method:\"wallet_revokePermissions\",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await u.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await u.storage?.removeItem(\"injected.connected\")},async getAccounts(){let d=await this.getProvider();if(!d)throw new pm;return(await d.request({method:\"eth_accounts\"})).map(h=>nr(h))},async getChainId(){let d=await this.getProvider();if(!d)throw new pm;let p=await d.request({method:\"eth_chainId\"});return Number(p)},async getProvider(){if(typeof window>\"u\")return;let d,p=r();return typeof p.provider==\"function\"?d=p.provider(window):typeof p.provider==\"string\"?d=tq(window,p.provider):d=p.provider,d&&!d.removeListener&&(\"off\"in d&&typeof d.off==\"function\"?d.removeListener=d.off:d.removeListener=()=>{}),d},async isAuthorized(){try{if(t&&await u.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await u.storage?.getItem(\"injected.connected\"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){let g=async()=>(typeof window<\"u\"&&window.removeEventListener(\"ethereum#initialized\",g),!!await this.getProvider()),y=typeof n==\"number\"?n:1e3;if(await Promise.race([...typeof window<\"u\"?[new Promise(x=>window.addEventListener(\"ethereum#initialized\",()=>x(g()),{once:!0}))]:[],new Promise(x=>setTimeout(()=>x(g()),y))]))return!0}throw new pm}return!!(await dm(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:d,chainId:p}){let h=await this.getProvider();if(!h)throw new pm;let g=u.chains.find(v=>v.id===p);if(!g)throw new Za(new Bc);let y=new Promise(v=>{let x=(R=>{\"chainId\"in R&&R.chainId===p&&(u.emitter.off(\"change\",x),v())});u.emitter.on(\"change\",x)});try{return await Promise.all([h.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(p)}]}).then(async()=>{await this.getChainId()===p&&u.emitter.emit(\"change\",{chainId:p})}),y]),g}catch(v){let x=v;if(x.code===4902||x?.data?.originalError?.code===4902)try{let{default:R,...S}=g.blockExplorers??{},M;d?.blockExplorerUrls?M=d.blockExplorerUrls:R&&(M=[R.url,...Object.values(S).map(V=>V.url)]);let P;d?.rpcUrls?.length?P=d.rpcUrls:P=[g.rpcUrls.default?.http[0]??\"\"];let z={blockExplorerUrls:M,chainId:Ne(p),chainName:d?.chainName??g.name,iconUrls:d?.iconUrls,nativeCurrency:d?.nativeCurrency??g.nativeCurrency,rpcUrls:P};return await Promise.all([h.request({method:\"wallet_addEthereumChain\",params:[z]}).then(async()=>{if(await this.getChainId()===p)u.emitter.emit(\"change\",{chainId:p});else throw new fo(new Error(\"User rejected switch after adding network.\"))}),y]),g}catch(R){throw new fo(R)}throw x.code===fo.code?new fo(x):new Za(x)}},async onAccountsChanged(d){if(d.length===0)this.onDisconnect();else if(u.emitter.listenerCount(\"connect\")){let p=(await this.getChainId()).toString();this.onConnect({chainId:p}),t&&await u.storage?.removeItem(`${this.id}.disconnected`)}else u.emitter.emit(\"change\",{accounts:d.map(p=>nr(p))})},onChainChanged(d){let p=Number(d);u.emitter.emit(\"change\",{chainId:p})},async onConnect(d){let p=await this.getAccounts();if(p.length===0)return;let h=Number(d.chainId);u.emitter.emit(\"connect\",{accounts:p,chainId:h});let g=await this.getProvider();g&&(a&&(g.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),g.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),g.on(\"chainChanged\",i)),c||(c=this.onDisconnect.bind(this),g.on(\"disconnect\",c)))},async onDisconnect(d){let p=await this.getProvider();d&&d.code===1013&&p&&(await this.getAccounts()).length||(u.emitter.emit(\"disconnect\"),p&&(i&&(p.removeListener(\"chainChanged\",i),i=void 0),c&&(p.removeListener(\"disconnect\",c),c=void 0),a||(a=this.onConnect.bind(this),p.on(\"connect\",a))))}})}var H1t={coinbaseWallet:{id:\"coinbaseWallet\",name:\"Coinbase Wallet\",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:tq(e,\"isCoinbaseWallet\")}},metaMask:{id:\"metaMask\",name:\"MetaMask\",provider(e){return tq(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;let n=[\"isApexWallet\",\"isAvalanche\",\"isBitKeep\",\"isBlockWallet\",\"isKuCoinWallet\",\"isMathWallet\",\"isOkxWallet\",\"isOKExWallet\",\"isOneInchIOSWallet\",\"isOneInchAndroidWallet\",\"isOpera\",\"isPhantom\",\"isPortal\",\"isRabby\",\"isTokenPocket\",\"isTokenary\",\"isUniswapWallet\",\"isZerion\"];for(let r of n)if(t[r])return!1;return!0})}},phantom:{id:\"phantom\",name:\"Phantom\",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:tq(e,\"isPhantom\")}}};function tq(e,t){function n(o){return typeof t==\"function\"?t(o):typeof t==\"string\"?o[t]:!0}let r=e.ethereum;if(r?.providers)return r.providers.find(o=>n(o));if(r&&n(r))return r}f();f();f();f();function $4e(e){if(typeof window>\"u\")return;let t=n=>e(n.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)}function qce(){let e=new Set,t=[],n=()=>$4e(o=>{t.some(({info:i})=>i.uuid===o.info.uuid)||(t=[...t,o],e.forEach(i=>i(t,{added:[o]})))}),r=n();return{_listeners(){return e},clear(){e.forEach(o=>o([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider({rdns:o}){return t.find(i=>i.info.rdns===o)},getProviders(){return t},reset(){this.clear(),r?.(),r=n()},subscribe(o,{emitImmediately:i}={}){return e.add(o),i&&o(t,{added:t}),()=>e.delete(o)}}}pn();f();var z1t=e=>(t,n,r)=>{let o=r.subscribe;return r.subscribe=(a,c,u)=>{let d=a;if(c){let p=u?.equalityFn||Object.is,h=a(r.getState());d=g=>{let y=a(g);if(!p(h,y)){let v=h;c(h=y,v)}},u?.fireImmediately&&c(h,h)}return o(d)},e(t,n,r)},eIe=z1t;function j1t(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;let a=u=>u===null?null:JSON.parse(u,t?.reviver),c=(i=n.getItem(o))!=null?i:null;return c instanceof Promise?c.then(a):a(c)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,t?.replacer)),removeItem:o=>n.removeItem(o)}}var Kce=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(r){return Kce(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Kce(r)(n)}}}},W1t=(e,t)=>(n,r,o)=>{let i={storage:j1t(()=>localStorage),partialize:x=>x,version:0,merge:(x,R)=>({...R,...x}),...t},a=!1,c=new Set,u=new Set,d=i.storage;if(!d)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${i.name}\\', the given storage is currently unavailable.`),n(...x)},r,o);let p=()=>{let x=i.partialize({...r()});return d.setItem(i.name,{state:x,version:i.version})},h=o.setState;o.setState=(x,R)=>{h(x,R),p()};let g=e((...x)=>{n(...x),p()},r,o);o.getInitialState=()=>g;let y,v=()=>{var x,R;if(!d)return;a=!1,c.forEach(M=>{var P;return M((P=r())!=null?P:g)});let S=((R=i.onRehydrateStorage)==null?void 0:R.call(i,(x=r())!=null?x:g))||void 0;return Kce(d.getItem.bind(d))(i.name).then(M=>{if(M)if(typeof M.version==\"number\"&&M.version!==i.version){if(i.migrate)return[!0,i.migrate(M.state,M.version)];console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var P;let[z,V]=M;if(y=i.merge(V,(P=r())!=null?P:g),n(y,!0),z)return p()}).then(()=>{S?.(y,void 0),y=r(),a=!0,u.forEach(M=>M(y))}).catch(M=>{S?.(void 0,M)})};return o.persist={setOptions:x=>{i={...i,...x},x.storage&&(d=x.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(u.add(x),()=>{u.delete(x)})},i.skipHydration||v(),y||g},tIe=W1t;f();var nIe=e=>{let t,n=new Set,r=(d,p)=>{let h=typeof d==\"function\"?d(t):d;if(!Object.is(h,t)){let g=t;t=p??(typeof h!=\"object\"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=t=e(r,o,c);return c},nq=e=>e?nIe(e):nIe;f();R_();var Qce=class{constructor(t){Object.defineProperty(this,\"uid\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"_emitter\",{enumerable:!0,configurable:!0,writable:!0,value:new q0.default})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){let r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}};function iIe(e){return new Qce(e)}f();f();function Jce(e,t){return JSON.parse(e,(n,r)=>{let o=r;return o?.__type===\"bigint\"&&(o=BigInt(o.value)),o?.__type===\"Map\"&&(o=new Map(o.value)),t?.(n,o)??o})}f();function aIe(e,t){return e.slice(0,t).join(\".\")||\".\"}function sIe(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function q1t(e,t){let n=typeof e==\"function\",r=typeof t==\"function\",o=[],i=[];return function(c,u){if(typeof u==\"object\")if(o.length){let d=sIe(o,this);d===0?o[o.length]=this:(o.splice(d),i.splice(d)),i[i.length]=c;let p=sIe(o,u);if(p!==0)return r?t.call(this,c,u,aIe(i,p)):`[ref=${aIe(i,p)}]`}else o[0]=u,i[0]=c;return n?e.call(this,c,u):u}}function Xce(e,t,n,r){return JSON.stringify(e,q1t((o,i)=>{let a=i;return typeof a==\"bigint\"&&(a={__type:\"bigint\",value:i.toString()}),a instanceof Map&&(a={__type:\"Map\",value:Array.from(i.entries())}),t?.(o,a)??a},r),n??void 0)}function G8(e){let{deserialize:t=Jce,key:n=\"wagmi\",serialize:r=Xce,storage:o=oq}=e;function i(a){return a instanceof Promise?a.then(c=>c).catch(()=>null):a}return{...o,key:n,async getItem(a,c){let u=o.getItem(`${n}.${a}`),d=await i(u);return d?t(d)??null:c??null},async setItem(a,c){let u=`${n}.${a}`;c===null?await i(o.removeItem(u)):await i(o.setItem(u,r(c)))},async removeItem(a){await i(o.removeItem(`${n}.${a}`))}}}var oq={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function cIe(){let e=typeof window<\"u\"&&window.localStorage?window.localStorage:oq;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}f();var iq=256,aq;function uIe(e=11){if(!aq||iq+e>256*2){aq=\"\",iq=0;for(let t=0;t<256;t++)aq+=(256+Math.random()*256|0).toString(16).substring(1)}return aq.substring(iq,iq+++e)}function sq(e){let{multiInjectedProviderDiscovery:t=!0,storage:n=G8({storage:cIe()}),syncConnectedChain:r=!0,ssr:o=!1,...i}=e,a=typeof window<\"u\"&&t?qce():void 0,c=nq(()=>i.chains),u=nq(()=>{let V=[],Q=new Set;for(let $ of i.connectors??[]){let oe=d($);if(V.push(oe),!o&&oe.rdns){let J=typeof oe.rdns==\"string\"?[oe.rdns]:oe.rdns;for(let re of J)Q.add(re)}}if(!o&&a){let $=a.getProviders();for(let oe of $)Q.has(oe.info.rdns)||V.push(d(p(oe)))}return V});function d(V){let Q=iIe(uIe()),$={...V({emitter:Q,chains:c.getState(),storage:n,transports:i.transports}),emitter:Q,uid:Q.uid};return Q.on(\"connect\",P),$.setup?.(),$}function p(V){let{info:Q}=V,$=V.provider;return G0({target:{...Q,id:Q.rdns,provider:$}})}let h=new Map;function g(V={}){let Q=V.chainId??R.getState().chainId,$=c.getState().find(J=>J.id===Q);if(V.chainId&&!$)throw new Bc;{let J=h.get(R.getState().chainId);if(J&&!$)return J;if(!$)throw new Bc}{let J=h.get(Q);if(J)return J}let oe;if(i.client)oe=i.client({chain:$});else{let J=$.id,re=c.getState().map(U=>U.id),q={},K=Object.entries(i);for(let[U,T]of K)if(!(U===\"chains\"||U===\"client\"||U===\"connectors\"||U===\"transports\"))if(typeof T==\"object\")if(J in T)q[U]=T[J];else{if(re.some(F=>F in T))continue;q[U]=T}else q[U]=T;oe=rx({...q,chain:$,batch:q.batch??{multicall:!0},transport:U=>i.transports[J]({...U,connectors:u})})}return h.set(Q,oe),oe}function y(){return{chainId:c.getState()[0].id,connections:new Map,current:null,status:\"disconnected\"}}let v,x=\"0.0.0-canary-\";B8.startsWith(x)?v=Number.parseInt(B8.replace(x,\"\")):v=Number.parseInt(B8.split(\".\")[0]??\"0\");let R=nq(eIe(n?tIe(y,{migrate(V,Q){if(Q===v)return V;let $=y(),oe=S(V,$.chainId);return{...$,chainId:oe}},name:\"store\",partialize(V){return{connections:{__type:\"Map\",value:Array.from(V.connections.entries()).map(([Q,$])=>{let{id:oe,name:J,type:re,uid:q}=$.connector;return[Q,{...$,connector:{id:oe,name:J,type:re,uid:q}}]})},chainId:V.chainId,current:V.current}},merge(V,Q){typeof V==\"object\"&&V&&\"status\"in V&&delete V.status;let $=S(V,Q.chainId);return{...Q,...V,chainId:$}},skipHydration:o,storage:n,version:v}):y));R.setState(y());function S(V,Q){return V&&typeof V==\"object\"&&\"chainId\"in V&&typeof V.chainId==\"number\"&&c.getState().some($=>$.id===V.chainId)?V.chainId:Q}r&&R.subscribe(({connections:V,current:Q})=>Q?V.get(Q)?.chainId:void 0,V=>{if(c.getState().some($=>$.id===V))return R.setState($=>({...$,chainId:V??$.chainId}))}),a?.subscribe(V=>{let Q=new Set,$=new Set;for(let J of u.getState())if(Q.add(J.id),J.rdns){let re=typeof J.rdns==\"string\"?[J.rdns]:J.rdns;for(let q of re)$.add(q)}let oe=[];for(let J of V){if($.has(J.info.rdns))continue;let re=d(p(J));Q.has(re.id)||oe.push(re)}n&&!R.persist.hasHydrated()||u.setState(J=>[...J,...oe],!0)});function M(V){R.setState(Q=>{let $=Q.connections.get(V.uid);return $?{...Q,connections:new Map(Q.connections).set(V.uid,{accounts:V.accounts??$.accounts,chainId:V.chainId??$.chainId,connector:$.connector})}:Q})}function P(V){R.getState().status===\"connecting\"||R.getState().status===\"reconnecting\"||R.setState(Q=>{let $=u.getState().find(oe=>oe.uid===V.uid);return $?($.emitter.listenerCount(\"connect\")&&$.emitter.off(\"connect\",M),$.emitter.listenerCount(\"change\")||$.emitter.on(\"change\",M),$.emitter.listenerCount(\"disconnect\")||$.emitter.on(\"disconnect\",z),{...Q,connections:new Map(Q.connections).set(V.uid,{accounts:V.accounts,chainId:V.chainId,connector:$}),current:V.uid,status:\"connected\"}):Q})}function z(V){R.setState(Q=>{let $=Q.connections.get(V.uid);if($){let J=$.connector;J.emitter.listenerCount(\"change\")&&$.connector.emitter.off(\"change\",M),J.emitter.listenerCount(\"disconnect\")&&$.connector.emitter.off(\"disconnect\",z),J.emitter.listenerCount(\"connect\")||$.connector.emitter.on(\"connect\",P)}if(Q.connections.delete(V.uid),Q.connections.size===0)return{...Q,connections:new Map,current:null,status:\"disconnected\"};let oe=Q.connections.values().next().value;return{...Q,connections:new Map(Q.connections),current:oe.connector.uid}})}return{get chains(){return c.getState()},get connectors(){return u.getState()},storage:n,getClient:g,get state(){return R.getState()},setState(V){let Q;typeof V==\"function\"?Q=V(R.getState()):Q=V;let $=y();typeof Q!=\"object\"&&(Q=$),Object.keys($).some(J=>!(J in Q))&&(Q=$),R.setState(Q,!0)},subscribe(V,Q,$){return R.subscribe(V,Q,$?{...$,fireImmediately:$.emitImmediately}:void 0)},_internal:{mipd:a,async revalidate(){let V=R.getState(),Q=V.connections,$=V.current;for(let[,oe]of Q){let J=oe.connector;J.isAuthorized&&await J.isAuthorized()||(Q.delete(J.uid),$===J.uid&&($=null))}R.setState(oe=>({...oe,connections:Q,current:$}))},store:R,ssr:!!o,syncConnectedChain:r,transports:i.transports,chains:{setState(V){let Q=typeof V==\"function\"?V(c.getState()):V;if(Q.length!==0)return c.setState(Q,!0)},subscribe(V){return c.subscribe(V)}},connectors:{providerDetailToConnector:p,setup:d,setState(V){return u.setState(typeof V==\"function\"?V(u.getState()):V,!0)},subscribe(V){return u.subscribe(V)}},events:{change:M,connect:P,disconnect:z}}}}f();function $ce(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?\"reconnecting\":\"disconnected\"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{let i=new Set;for(let u of o??[])if(u.rdns){let d=Array.isArray(u.rdns)?u.rdns:[u.rdns];for(let p of d)i.add(p)}let a=[],c=e._internal.mipd?.getProviders()??[];for(let u of c){if(i.has(u.info.rdns))continue;let d=e._internal.connectors.providerDetailToConnector(u),p=e._internal.connectors.setup(d);a.push(p)}return[...o,...a]})),r?Y4e(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}pn();f();var cq={getItem(e){return typeof window>\"u\"?null:eue(document.cookie,e)??null},setItem(e,t){typeof window>\"u\"||(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){typeof window>\"u\"||(document.cookie=`${e}=;max-age=-1;path=/`)}};function eue(e,t){let n=e.split(\"; \").find(r=>r.startsWith(`${t}=`));if(n)return n.substring(t.length+1)}f();function tue(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:i})=>i?.url||n)}var uq=he($e(),1);function lIe(e){let{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:i}=$ce(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||i();let a=(0,uq.useRef)(!0);return(0,uq.useEffect)(()=>{if(a.current&&n._internal.ssr)return i(),()=>{a.current=!1}},[]),t}var DD=(0,MD.createContext)(void 0);function lq(e){let{children:t,config:n}=e,r={value:n};return(0,MD.createElement)(lIe,e,(0,MD.createElement)(DD.Provider,r,t))}f();f();f();var dIe=\"2.16.9\";var fIe=()=>`wagmi@${dIe}`;var dq=class extends Bf{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiError\"})}get docsBaseUrl(){return\"https://wagmi.sh/react\"}get version(){return fIe()}};f();var i6=class extends dq{constructor(){super(\"`useConfig` must be used within `WagmiProvider`.\",{docsPath:\"/api/WagmiProvider\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiProviderNotFoundError\"})}};f();f();var pIe=he($e(),1);function vr(e={}){let t=e.config??(0,pIe.useContext)(DD);if(!t)throw new i6;return t}f();f();f();function nue(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((r,o)=>{n(r,o)})}var fq=he($e(),1),EIe=he(xIe(),1),rue=e=>typeof e==\"object\"&&!Array.isArray(e);function AIe(e,t,n=t,r=Xp){let o=(0,fq.useRef)([]),i=(0,EIe.useSyncExternalStoreWithSelector)(e,t,n,a=>a,(a,c)=>{if(rue(a)&&rue(c)&&o.current.length){for(let u of o.current)if(!r(a[u],c[u]))return!1;return!0}return r(a,c)});return(0,fq.useMemo)(()=>{if(rue(i)){let a={...i},c={};for(let[u,d]of Object.entries(a))c={...c,[u]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(u)||o.current.push(u),d)}};return Object.defineProperties(a,c),a}return i},[i])}function wr(e={}){let t=vr(e);return AIe(n=>jce(t,{onChange:n}),()=>ND(t))}f();f();f();function oue(e,t){return zI(e,t)}function iue(e){return JSON.stringify(e,(t,n)=>Q1t(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n==\"bigint\"?n.toString():n)}function Q1t(e){if(!_Ie(e))return!1;let t=e.constructor;if(typeof t>\"u\")return!0;let n=t.prototype;return!(!_Ie(n)||!n.hasOwnProperty(\"isPrototypeOf\"))}function _Ie(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function K0(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:i,maxPages:a,meta:c,networkMode:u,queryFn:d,queryHash:p,queryKey:h,queryKeyHashFn:g,retry:y,retryDelay:v,structuralSharing:x,getPreviousPageParam:R,getNextPageParam:S,initialPageParam:M,_optimisticResults:P,enabled:z,notifyOnChangeProps:V,placeholderData:Q,refetchInterval:$,refetchIntervalInBackground:oe,refetchOnMount:J,refetchOnReconnect:re,refetchOnWindowFocus:q,retryOnMount:K,select:U,staleTime:T,suspense:k,throwOnError:F,config:N,connector:B,query:H,...W}=e;return W}f();function aue(e){return{mutationFn(t){return C4e(e,t)},mutationKey:[\"connect\"]}}f();function sue(e){return{mutationFn(t){return H4e(e,t)},mutationKey:[\"disconnect\"]}}f();function cue(e,t={}){return{async queryFn({queryKey:n}){let{address:r,scopeKey:o,...i}=n[1];if(!r)throw new Error(\"address is required\");return await V4e(e,{...i,address:r})??null},queryKey:SIe(t)}}function SIe(e={}){return[\"balance\",K0(e)]}f();function uue(e,t){return{async queryFn({queryKey:n}){let{scopeKey:r,...o}=n[1];return await G4e(e,o)},queryKey:TIe(t),retry(n,r){return r instanceof nx?!1:n<3}}}function TIe(e){return[\"callsStatus\",K0(e)]}f();function lue(e,t={}){return{async queryFn({queryKey:n}){let{scopeKey:r,...o}=n[1];return await q4e(e,o)},queryKey:CIe(t),retry(n,r){return r instanceof nx?!1:n<3}}}function CIe(e={}){return[\"capabilities\",K0(e)]}f();function due(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:o,scopeKey:i,...a}=n[1];return K4e(e,{...a,connector:r})},queryKey:RIe(t)}}function RIe(e={}){let{connector:t,...n}=e;return[\"walletClient\",{...K0(n),connectorUid:t?.uid}]}f();function fue(e,t={}){return{async queryFn({queryKey:n}){let r=t.abi;if(!r)throw new Error(\"abi is required\");let{functionName:o,scopeKey:i,...a}=n[1],c=(()=>{let u=n[1];if(u.address)return{address:u.address};if(u.code)return{code:u.code};throw new Error(\"address or code is required\")})();if(!o)throw new Error(\"functionName is required\");return QG(e,{abi:r,functionName:o,args:a.args,...c,...a})},queryKey:IIe(t)}}function IIe(e={}){let{abi:t,...n}=e;return[\"readContract\",K0(n)]}f();function pue(e){return{mutationFn(t){return Z4e(e,t)},mutationKey:[\"sendCalls\"]}}f();function hue(e){return{mutationFn(t){return Q4e(e,t)},mutationKey:[\"sendTransaction\"]}}f();function mue(e){return{mutationFn(t){return J4e(e,t)},mutationKey:[\"showCallsStatus\"]}}f();function gue(e){return{mutationFn(t){return X4e(e,t)},mutationKey:[\"switchChain\"]}}f();function yue(e,t={}){return{async queryFn({queryKey:n}){let{hash:r,...o}=n[1];if(!r)throw new Error(\"hash is required\");return V0(e,{...o,onReplaced:t.onReplaced,hash:r})},queryKey:OIe(t)}}function OIe(e={}){let{onReplaced:t,...n}=e;return[\"waitForTransactionReceipt\",K0(n)]}f();function Y0(e){let t=Nf({...e,queryKeyHashFn:iue});return t.queryKey=e.queryKey,t}f();var kIe=he($e(),1);function Ml(e={}){let t=vr(e);return(0,kIe.useSyncExternalStore)(n=>Wce(t,{onChange:n}),()=>JG(t),()=>JG(t))}function bue(e={}){let{address:t,query:n={}}=e,r=vr(e),o=Ml({config:r}),i=cue(r,{...e,chainId:e.chainId??o}),a=!!(t&&(n.enabled??!0));return Y0({...n,...i,enabled:a})}f();function LD(e){let{query:t={}}=e,n=vr(e),r=uue(n,e);return Y0({...t,...r})}f();function vue(e={}){let{account:t,query:n={}}=e,{address:r}=wr(),o=vr(e),i=lue(o,{...e,account:t??r});return Y0({...n,...i})}f();var NIe=he($e(),1);function PIe(e={}){let t=vr(e);return(0,NIe.useSyncExternalStore)(n=>nue(t,{onChange:n}),()=>XG(t),()=>XG(t))}f();var LIe=he($e(),1);f();var MIe=he($e(),1);function DIe(e={}){let t=vr(e);return(0,MIe.useSyncExternalStore)(n=>Gce(t,{onChange:n}),()=>eq(t),()=>eq(t))}function BD(e={}){let{mutation:t}=e,n=vr(e),r=aue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return(0,LIe.useEffect)(()=>n.subscribe(({status:c})=>c,(c,u)=>{u===\"connected\"&&c===\"disconnected\"&&a.reset()}),[n,a.reset]),{...a,connect:o,connectAsync:i,connectors:DIe({config:n})}}f();var BIe=he($e(),1);function UIe(e={}){let t=vr(e);return(0,BIe.useSyncExternalStore)(n=>Vce(t,{onChange:n}),()=>W8(t),()=>W8(t))}f();function UD(e={}){let{mutation:t}=e,n=vr(e),r=sue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return{...a,connectors:UIe({config:n}).map(c=>c.connector),disconnect:o,disconnectAsync:i}}f();function pq(e={}){let{abi:t,address:n,functionName:r,query:o={}}=e,i=e.code,a=vr(e),c=Ml({config:a}),u=fue(a,{...e,chainId:e.chainId??c}),d=!!((n||i)&&t&&r&&(o.enabled??!0));return Y0({...o,...u,enabled:d,structuralSharing:o.structuralSharing??oue})}f();function FD(e={}){let{mutation:t}=e,n=vr(e),r=pue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return{...a,sendCalls:o,sendCallsAsync:i}}f();function HD(e={}){let{mutation:t}=e,n=vr(e),r=hue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return{...a,sendTransaction:o,sendTransactionAsync:i}}f();function zD(e={}){let{mutation:t}=e,n=vr(e),r=mue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return{...a,showCallsStatus:o,showCallsStatusAsync:i}}f();function a6(e={}){let{mutation:t}=e,n=vr(e),r=gue(n),{mutate:o,mutateAsync:i,...a}=qp({...t,...r});return{...a,chains:PIe({config:n}),switchChain:o,switchChainAsync:i}}f();function wue(e={}){let{hash:t,query:n={}}=e,r=vr(e),o=Ml({config:r}),i=yue(r,{...e,chainId:e.chainId??o}),a=!!(t&&(n.enabled??!0));return Y0({...n,...i,enabled:a})}f();var hq=he($e(),1);function xue(e={}){let{query:t={},...n}=e,r=vr(n),o=F2(),{address:i,connector:a,status:c}=wr({config:r}),u=Ml({config:r}),d=e.connector??a,{queryKey:p,...h}=due(r,{...e,chainId:e.chainId??u,connector:e.connector??a}),g=!!((c===\"connected\"||c===\"reconnecting\"&&d?.getProvider)&&(t.enabled??!0)),y=(0,hq.useRef)(i);return(0,hq.useEffect)(()=>{let v=y.current;!i&&v?(o.removeQueries({queryKey:p}),y.current=void 0):i!==v&&(o.invalidateQueries({queryKey:p}),y.current=i)},[i,o]),Y0({...t,...h,queryKey:p,enabled:g,staleTime:Number.POSITIVE_INFINITY})}f();f();pn();function BL(e={}){let t,n,r,o;return i=>({id:\"baseAccount\",name:\"Base Account\",rdns:\"app.base.account\",type:\"baseAccount\",async connect({chainId:a}={}){try{let c=await this.getProvider(),u=(await c.request({method:\"eth_requestAccounts\",params:[]})).map(p=>nr(p));n||(n=this.onAccountsChanged.bind(this),c.on(\"accountsChanged\",n)),r||(r=this.onChainChanged.bind(this),c.on(\"chainChanged\",r)),o||(o=this.onDisconnect.bind(this),c.on(\"disconnect\",o));let d=await this.getChainId();return a&&d!==a&&(d=(await this.switchChain({chainId:a}).catch(h=>{if(h.code===fo.code)throw h;return{id:d}}))?.id??d),{accounts:u,chainId:d}}catch(c){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(c.message)?new fo(c):c}},async disconnect(){let a=await this.getProvider();n&&(a.removeListener(\"accountsChanged\",n),n=void 0),r&&(a.removeListener(\"chainChanged\",r),r=void 0),o&&(a.removeListener(\"disconnect\",o),o=void 0),a.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(c=>nr(c))},async getChainId(){let c=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(c)},async getProvider(){if(!t){let a=typeof e.preference==\"string\"?{options:e.preference}:{...e.preference,options:e.preference?.options??\"all\"},{createBaseAccountSDK:c}=await Promise.resolve().then(()=>(n9e(),t9e));t=c({...e,appChainIds:i.chains.map(d=>d.id),preference:a}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:c}){let u=i.chains.find(p=>p.id===c);if(!u)throw new Za(new Bc);let d=await this.getProvider();try{return await d.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(u.id)}]}),u}catch(p){if(p.code===4902)try{let h;a?.blockExplorerUrls?h=a.blockExplorerUrls:h=u.blockExplorers?.default.url?[u.blockExplorers?.default.url]:[];let g;a?.rpcUrls?.length?g=a.rpcUrls:g=[u.rpcUrls.default?.http[0]??\"\"];let y={blockExplorerUrls:h,chainId:Ne(c),chainName:a?.chainName??u.name,iconUrls:a?.iconUrls,nativeCurrency:a?.nativeCurrency??u.nativeCurrency,rpcUrls:g};return await d.request({method:\"wallet_addEthereumChain\",params:[y]}),u}catch(h){throw new fo(h)}throw new Za(p)}},onAccountsChanged(a){a.length===0?this.onDisconnect():i.emitter.emit(\"change\",{accounts:a.map(c=>nr(c))})},onChainChanged(a){let c=Number(a);i.emitter.emit(\"change\",{chainId:c})},async onDisconnect(a){i.emitter.emit(\"disconnect\");let c=await this.getProvider();n&&(c.removeListener(\"accountsChanged\",n),n=void 0),r&&(c.removeListener(\"chainChanged\",r),r=void 0),o&&(c.removeListener(\"disconnect\",o),o=void 0)}})}f();pn();sS.type=\"coinbaseWallet\";function sS(e={}){return e.version===\"3\"||e.headlessMode?mNt(e):hNt(e)}function hNt(e){let t,n,r,o;return i=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:sS.type,async connect({chainId:a,...c}={}){try{let u=await this.getProvider(),d=(await u.request({method:\"eth_requestAccounts\",params:\"instantOnboarding\"in c&&c.instantOnboarding?[{onboarding:\"instant\"}]:[]})).map(h=>nr(h));n||(n=this.onAccountsChanged.bind(this),u.on(\"accountsChanged\",n)),r||(r=this.onChainChanged.bind(this),u.on(\"chainChanged\",r)),o||(o=this.onDisconnect.bind(this),u.on(\"disconnect\",o));let p=await this.getChainId();return a&&p!==a&&(p=(await this.switchChain({chainId:a}).catch(g=>{if(g.code===fo.code)throw g;return{id:p}}))?.id??p),{accounts:d,chainId:p}}catch(u){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(u.message)?new fo(u):u}},async disconnect(){let a=await this.getProvider();n&&(a.removeListener(\"accountsChanged\",n),n=void 0),r&&(a.removeListener(\"chainChanged\",r),r=void 0),o&&(a.removeListener(\"disconnect\",o),o=void 0),a.disconnect(),a.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(c=>nr(c))},async getChainId(){let c=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(c)},async getProvider(){if(!t){let a=typeof e.preference==\"string\"?{options:e.preference}:{...e.preference,options:e.preference?.options??\"all\"},{createCoinbaseWalletSDK:c}=await Promise.resolve().then(()=>(QLe(),ZLe));t=c({...e,appChainIds:i.chains.map(d=>d.id),preference:a}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:c}){let u=i.chains.find(p=>p.id===c);if(!u)throw new Za(new Bc);let d=await this.getProvider();try{return await d.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(u.id)}]}),u}catch(p){if(p.code===4902)try{let h;a?.blockExplorerUrls?h=a.blockExplorerUrls:h=u.blockExplorers?.default.url?[u.blockExplorers?.default.url]:[];let g;a?.rpcUrls?.length?g=a.rpcUrls:g=[u.rpcUrls.default?.http[0]??\"\"];let y={blockExplorerUrls:h,chainId:Ne(c),chainName:a?.chainName??u.name,iconUrls:a?.iconUrls,nativeCurrency:a?.nativeCurrency??u.nativeCurrency,rpcUrls:g};return await d.request({method:\"wallet_addEthereumChain\",params:[y]}),u}catch(h){throw new fo(h)}throw new Za(p)}},onAccountsChanged(a){a.length===0?this.onDisconnect():i.emitter.emit(\"change\",{accounts:a.map(c=>nr(c))})},onChainChanged(a){let c=Number(a);i.emitter.emit(\"change\",{chainId:c})},async onDisconnect(a){i.emitter.emit(\"disconnect\");let c=await this.getProvider();n&&(c.removeListener(\"accountsChanged\",n),n=void 0),r&&(c.removeListener(\"chainChanged\",r),r=void 0),o&&(c.removeListener(\"disconnect\",o),o=void 0)}})}function mNt(e){let n,r,o,i,a;return c=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:sS.type,async connect({chainId:u}={}){try{let d=await this.getProvider(),p=(await d.request({method:\"eth_requestAccounts\"})).map(g=>nr(g));o||(o=this.onAccountsChanged.bind(this),d.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),d.on(\"chainChanged\",i)),a||(a=this.onDisconnect.bind(this),d.on(\"disconnect\",a));let h=await this.getChainId();return u&&h!==u&&(h=(await this.switchChain({chainId:u}).catch(y=>{if(y.code===fo.code)throw y;return{id:h}}))?.id??h),{accounts:p,chainId:h}}catch(d){throw/(user closed modal|accounts received is empty|user denied account)/i.test(d.message)?new fo(d):d}},async disconnect(){let u=await this.getProvider();o&&(u.removeListener(\"accountsChanged\",o),o=void 0),i&&(u.removeListener(\"chainChanged\",i),i=void 0),a&&(u.removeListener(\"disconnect\",a),a=void 0),u.disconnect(),u.close()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(d=>nr(d))},async getChainId(){let d=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(d)},async getProvider(){if(!r){let u=await(async()=>{let{default:y}=await Promise.resolve().then(()=>he(nYe(),1));return typeof y!=\"function\"&&typeof y.default==\"function\"?y.default:y})();n=new u({...e,reloadOnDisconnect:!1});let d=n.walletExtension?.getChainId(),p=c.chains.find(y=>e.chainId?y.id===e.chainId:y.id===d)||c.chains[0],h=e.chainId||p?.id,g=e.jsonRpcUrl||p?.rpcUrls.default.http[0];r=n.makeWeb3Provider(g,h)}return r},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:d}){let p=c.chains.find(g=>g.id===d);if(!p)throw new Za(new Bc);let h=await this.getProvider();try{return await h.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(p.id)}]}),p}catch(g){if(g.code===4902)try{let y;u?.blockExplorerUrls?y=u.blockExplorerUrls:y=p.blockExplorers?.default.url?[p.blockExplorers?.default.url]:[];let v;u?.rpcUrls?.length?v=u.rpcUrls:v=[p.rpcUrls.default?.http[0]??\"\"];let x={blockExplorerUrls:y,chainId:Ne(d),chainName:u?.chainName??p.name,iconUrls:u?.iconUrls,nativeCurrency:u?.nativeCurrency??p.nativeCurrency,rpcUrls:v};return await h.request({method:\"wallet_addEthereumChain\",params:[x]}),p}catch(y){throw new fo(y)}throw new Za(g)}},onAccountsChanged(u){u.length===0?this.onDisconnect():c.emitter.emit(\"change\",{accounts:u.map(d=>nr(d))})},onChainChanged(u){let d=Number(u);c.emitter.emit(\"change\",{chainId:d})},async onDisconnect(u){c.emitter.emit(\"disconnect\");let d=await this.getProvider();o&&(d.removeListener(\"accountsChanged\",o),o=void 0),i&&(d.removeListener(\"chainChanged\",i),i=void 0),a&&(d.removeListener(\"disconnect\",a),a=void 0)}})}f();pn();XU.type=\"metaMask\";function XU(e={}){let t,n,r,o,i,a,c,u;return d=>({id:\"metaMaskSDK\",name:\"MetaMask\",rdns:[\"io.metamask\",\"io.metamask.mobile\"],type:XU.type,async setup(){let p=await this.getProvider();p?.on&&(a||(a=this.onConnect.bind(this),p.on(\"connect\",a)),o||(o=this.onAccountsChanged.bind(this),p.on(\"accountsChanged\",o)))},async connect({chainId:p,isReconnecting:h}={}){let g=await this.getProvider();c||(c=this.onDisplayUri,g.on(\"display_uri\",c));let y=[];h&&(y=await this.getAccounts().catch(()=>[]));try{let v,x;y?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?v=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(x=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),y=await this.getAccounts()):y=(await t.connect()).map(M=>nr(M)));let R=await this.getChainId();return p&&R!==p&&(R=(await this.switchChain({chainId:p}).catch(M=>{if(M.code===fo.code)throw M;return{id:R}}))?.id??R),c&&(g.removeListener(\"display_uri\",c),c=void 0),v?g.emit(\"connectAndSign\",{accounts:y,chainId:R,signResponse:v}):x&&g.emit(\"connectWith\",{accounts:y,chainId:R,connectWithResponse:x}),a&&(g.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),g.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),g.on(\"chainChanged\",i)),u||(u=this.onDisconnect.bind(this),g.on(\"disconnect\",u)),{accounts:y,chainId:R}}catch(v){let x=v;throw x.code===fo.code?new fo(x):x.code===Hp.code?new Hp(x):x}},async disconnect(){let p=await this.getProvider();i&&(p.removeListener(\"chainChanged\",i),i=void 0),u&&(p.removeListener(\"disconnect\",u),u=void 0),a||(a=this.onConnect.bind(this),p.on(\"connect\",a)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(g=>nr(g))},async getChainId(){let p=await this.getProvider(),h=p.getChainId()||await p?.request({method:\"eth_chainId\"});return Number(h)},async getProvider(){async function p(){let h=await(async()=>{let{default:x}=await Promise.resolve().then(()=>(bet(),yet));return typeof x!=\"function\"&&typeof x.default==\"function\"?x.default:x})(),g={};for(let x of d.chains)g[Ne(x.id)]=tue({chain:x,transports:d.transports})?.[0];t=new h({_source:\"wagmi\",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:g,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:\"wagmi\",url:e.dappMetadata?.url?e.dappMetadata?.url:typeof window<\"u\"?window.location.origin:\"https://wagmi.sh\"},useDeeplink:e.useDeeplink??!0});let y=await t.init(),v=y?.activeProvider?y.activeProvider:t.getProvider();if(!v)throw new pm;return v}return n||(r||(r=p()),n=await r),n},async isAuthorized(){try{return!!(await dm(()=>QT(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:h}){let g=await this.getProvider(),y=d.chains.find(R=>R.id===h);if(!y)throw new Za(new Bc);try{return await g.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(h)}]}),await v(),await x(h),y}catch(R){let S=R;if(S.code===fo.code)throw new fo(S);if(S.code===4902||S?.data?.originalError?.code===4902)try{return await g.request({method:\"wallet_addEthereumChain\",params:[{blockExplorerUrls:(()=>{let{default:M,...P}=y.blockExplorers??{};if(p?.blockExplorerUrls)return p.blockExplorerUrls;if(M)return[M.url,...Object.values(P).map(z=>z.url)]})(),chainId:Ne(h),chainName:p?.chainName??y.name,iconUrls:p?.iconUrls,nativeCurrency:p?.nativeCurrency??y.nativeCurrency,rpcUrls:p?.rpcUrls?.length?p.rpcUrls:[y.rpcUrls.default?.http[0]??\"\"]}]}),await v(),await x(h),y}catch(M){let P=M;throw P.code===fo.code?new fo(P):new Za(P)}throw new Za(S)}async function v(){await dm(async()=>{let R=So(await g.request({method:\"eth_chainId\"}));if(R!==h)throw new Error(\"User rejected switch after adding network.\");return R},{delay:50,retryCount:20})}async function x(R){await new Promise(S=>{let M=(P=>{\"chainId\"in P&&P.chainId===R&&(d.emitter.off(\"change\",M),S())});d.emitter.on(\"change\",M),d.emitter.emit(\"change\",{chainId:R})})}},async onAccountsChanged(p){if(p.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(d.emitter.listenerCount(\"connect\")){let h=(await this.getChainId()).toString();this.onConnect({chainId:h})}else d.emitter.emit(\"change\",{accounts:p.map(h=>nr(h))})},onChainChanged(p){let h=Number(p);d.emitter.emit(\"change\",{chainId:h})},async onConnect(p){let h=await this.getAccounts();if(h.length===0)return;let g=Number(p.chainId);d.emitter.emit(\"connect\",{accounts:h,chainId:g});let y=await this.getProvider();a&&(y.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),y.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),y.on(\"chainChanged\",i)),u||(u=this.onDisconnect.bind(this),y.on(\"disconnect\",u))},async onDisconnect(p){let h=await this.getProvider();p&&p.code===1013&&h&&(await this.getAccounts()).length||(d.emitter.emit(\"disconnect\"),i&&(h.removeListener(\"chainChanged\",i),i=void 0),u&&(h.removeListener(\"disconnect\",u),u=void 0),a||(a=this.onConnect.bind(this),h.on(\"connect\",a)))},onDisplayUri(p){d.emitter.emit(\"message\",{type:\"display_uri\",data:p})}})}f();var vet=({apiKey:e,appName:t,appLogoUrl:n,connectors:r=[sS({appName:t,appLogoUrl:n,preference:\"all\"})]})=>sq({chains:[dr,Ya],connectors:r,storage:G8({storage:cq}),ssr:!0,transports:{[dr.id]:e?mu(`https://api.developer.coinbase.com/rpc/v1/base/${e}`):mu(),[Ya.id]:e?mu(`https://api.developer.coinbase.com/rpc/v1/base-sepolia/${e}`):mu()}});f();var wet=he($e(),1);function xet(){let e=null,t=null;try{e=vr()}catch(n){n instanceof i6||console.error(\"Error fetching WagmiProvider, using default:\",n)}try{t=F2()}catch(n){n.message!==\"No QueryClient set, use QueryClientProvider to set one\"&&console.error(\"Error fetching QueryClient, using default:\",n)}return(0,wet.useMemo)(()=>({providedWagmiConfig:e,providedQueryClient:t}),[e,t])}f();var R$=he($e(),1);var Fye=(0,R$.createContext)(im);function Co(){return(0,R$.useContext)(Fye)}function Eet({children:e,connectors:t}){let{providedWagmiConfig:n,providedQueryClient:r}=xet();return(0,$U.jsx)(KMt,{providedWagmiConfig:n,connectors:t,children:(0,$U.jsx)(YMt,{providedQueryClient:r,children:e})})}function KMt({children:e,providedWagmiConfig:t,connectors:n}){let r=Co(),o=(0,Wv.useRef)(n),i=(0,Wv.useCallback)(()=>{var u,d,p,h;if(t)return t;let g=((d=(u=r.config)==null?void 0:u.appearance)==null?void 0:d.name)??void 0,y=((h=(p=r.config)==null?void 0:p.appearance)==null?void 0:h.logo)??void 0;return vet({apiKey:r.apiKey??void 0,appName:g,appLogoUrl:y,connectors:n??[BL({appName:g,appLogoUrl:y})]})},[r.apiKey,r.config,n,t]),[a,c]=(0,Wv.useState)(()=>i());return(0,Wv.useEffect)(()=>{o.current!==n&&(c(i()),o.current=n)},[n,i]),t?e:(0,$U.jsx)(lq,{config:a,children:e})}function YMt({children:e,providedQueryClient:t}){let n=(0,Wv.useMemo)(()=>t||new sae,[t]);return t?e:(0,$U.jsx)(xae,{client:n,children:e})}f();var pbe=he(ze(),1),Lnt=he($e(),1);f();f();var Aet=\"https://api.developer.coinbase.com/analytics\";f();f();f();f();f();f();var eF={};qa(eF,{InvalidDomainManifest:()=>zye,RejectedByUser:()=>jye});f();f();var HC=class extends Error{constructor(n,r={}){super(n,r.cause?{cause:r.cause}:void 0);Cf(this,\"name\",\"BaseError\");Cf(this,\"cause\");this.cause=r.cause}};var zye=class extends HC{constructor(){super(\"Invalid domain manifest\");Cf(this,\"name\",\"AddMiniApp.InvalidDomainManifest\")}},jye=class extends HC{constructor(){super(\"Add miniapp rejected by user\");Cf(this,\"name\",\"AddMiniApp.RejectedByUser\")}};f();f();f();f();f();f();var YN={};qa(YN,{RejectedByUser:()=>Wye});f();var Wye=class extends HC{constructor(){super(\"Sign in rejected by user\");Cf(this,\"name\",\"SignIn.RejectedByUser\")}};f();f();f();f();f();f();f();f();f();f();var Be={};qa(Be,{BRAND:()=>ADt,DIRTY:()=>zC,EMPTY_PATH:()=>tDt,INVALID:()=>Fn,NEVER:()=>sLt,OK:()=>Wd,ParseStatus:()=>Vl,Schema:()=>Ur,ZodAny:()=>HS,ZodArray:()=>qx,ZodBigInt:()=>WC,ZodBoolean:()=>VC,ZodBranded:()=>nF,ZodCatch:()=>tR,ZodDate:()=>GC,ZodDefault:()=>eR,ZodDiscriminatedUnion:()=>k$,ZodEffects:()=>Cg,ZodEnum:()=>XC,ZodError:()=>dh,ZodFirstPartyTypeKind:()=>Gn,ZodFunction:()=>P$,ZodIntersection:()=>ZC,ZodIssueCode:()=>Nt,ZodLazy:()=>QC,ZodLiteral:()=>JC,ZodMap:()=>e7,ZodNaN:()=>n7,ZodNativeEnum:()=>$C,ZodNever:()=>_1,ZodNull:()=>KC,ZodNullable:()=>qv,ZodNumber:()=>jC,ZodObject:()=>fh,ZodOptional:()=>Sg,ZodParsedType:()=>en,ZodPipeline:()=>rF,ZodPromise:()=>zS,ZodReadonly:()=>nR,ZodRecord:()=>N$,ZodSchema:()=>Ur,ZodSet:()=>t7,ZodString:()=>FS,ZodSymbol:()=>XN,ZodTransformer:()=>Cg,ZodTuple:()=>Gv,ZodType:()=>Ur,ZodUndefined:()=>qC,ZodUnion:()=>YC,ZodUnknown:()=>Gx,ZodVoid:()=>$N,addIssueToContext:()=>Kt,any:()=>NDt,array:()=>LDt,bigint:()=>CDt,boolean:()=>Det,coerce:()=>aLt,custom:()=>Net,date:()=>RDt,datetimeRegex:()=>Oet,defaultErrorMap:()=>Wx,discriminatedUnion:()=>HDt,effect:()=>XDt,enum:()=>ZDt,function:()=>qDt,getErrorMap:()=>ZN,getParsedType:()=>Vv,instanceof:()=>SDt,intersection:()=>zDt,isAborted:()=>I$,isAsync:()=>QN,isDirty:()=>O$,isValid:()=>US,late:()=>_Dt,lazy:()=>KDt,literal:()=>YDt,makeIssue:()=>tF,map:()=>VDt,nan:()=>TDt,nativeEnum:()=>QDt,never:()=>MDt,null:()=>kDt,nullable:()=>eLt,number:()=>Met,object:()=>BDt,objectUtil:()=>Vye,oboolean:()=>iLt,onumber:()=>oLt,optional:()=>$Dt,ostring:()=>rLt,pipeline:()=>nLt,preprocess:()=>tLt,promise:()=>JDt,quotelessJson:()=>XMt,record:()=>WDt,set:()=>GDt,setErrorMap:()=>eDt,strictObject:()=>UDt,string:()=>Pet,symbol:()=>IDt,transformer:()=>XDt,tuple:()=>jDt,undefined:()=>ODt,union:()=>FDt,unknown:()=>PDt,util:()=>ho,void:()=>DDt});f();f();f();f();f();var ho;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let a of o)i[a]=a;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(c=>typeof o[o[c]]!=\"number\"),a={};for(let c of i)a[c]=o[c];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==\"function\"?o=>Object.keys(o):o=>{let i=[];for(let a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(let a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger==\"function\"?o=>Number.isInteger(o):o=>typeof o==\"number\"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=\" | \"){return o.map(a=>typeof a==\"string\"?`\\'${a}\\'`:a).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i==\"bigint\"?i.toString():i})(ho||(ho={}));var Vye;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Vye||(Vye={}));var en=ho.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),Vv=e=>{switch(typeof e){case\"undefined\":return en.undefined;case\"string\":return en.string;case\"number\":return Number.isNaN(e)?en.nan:en.number;case\"boolean\":return en.boolean;case\"function\":return en.function;case\"bigint\":return en.bigint;case\"symbol\":return en.symbol;case\"object\":return Array.isArray(e)?en.array:e===null?en.null:e.then&&typeof e.then==\"function\"&&e.catch&&typeof e.catch==\"function\"?en.promise:typeof Map<\"u\"&&e instanceof Map?en.map:typeof Set<\"u\"&&e instanceof Set?en.set:typeof Date<\"u\"&&e instanceof Date?en.date:en.object;default:return en.unknown}};var Nt=ho.arrayToEnum([\"invalid_type\",\"invalid_literal\",\"custom\",\"invalid_union\",\"invalid_union_discriminator\",\"invalid_enum_value\",\"unrecognized_keys\",\"invalid_arguments\",\"invalid_return_type\",\"invalid_date\",\"invalid_string\",\"too_small\",\"too_big\",\"invalid_intersection_types\",\"not_multiple_of\",\"not_finite\"]),XMt=e=>JSON.stringify(e,null,2).replace(/\"([^\"]+)\":/g,\"$1:\"),dh=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\"ZodError\",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let a of i.issues)if(a.code===\"invalid_union\")a.unionErrors.map(o);else if(a.code===\"invalid_return_type\")o(a.returnTypeError);else if(a.code===\"invalid_arguments\")o(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let c=r,u=0;for(;u<a.path.length;){let d=a.path[u];u===a.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(n(a))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ho.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};dh.create=e=>new dh(e);var $Mt=(e,t)=>{let n;switch(e.code){case Nt.invalid_type:e.received===en.undefined?n=\"Required\":n=`Expected ${e.expected}, received ${e.received}`;break;case Nt.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ho.jsonStringifyReplacer)}`;break;case Nt.unrecognized_keys:n=`Unrecognized key(s) in object: ${ho.joinValues(e.keys,\", \")}`;break;case Nt.invalid_union:n=\"Invalid input\";break;case Nt.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ho.joinValues(e.options)}`;break;case Nt.invalid_enum_value:n=`Invalid enum value. Expected ${ho.joinValues(e.options)}, received \\'${e.received}\\'`;break;case Nt.invalid_arguments:n=\"Invalid function arguments\";break;case Nt.invalid_return_type:n=\"Invalid function return type\";break;case Nt.invalid_date:n=\"Invalid date\";break;case Nt.invalid_string:typeof e.validation==\"object\"?\"includes\"in e.validation?(n=`Invalid input: must include \"${e.validation.includes}\"`,typeof e.validation.position==\"number\"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):\"startsWith\"in e.validation?n=`Invalid input: must start with \"${e.validation.startsWith}\"`:\"endsWith\"in e.validation?n=`Invalid input: must end with \"${e.validation.endsWith}\"`:ho.assertNever(e.validation):e.validation!==\"regex\"?n=`Invalid ${e.validation}`:n=\"Invalid\";break;case Nt.too_small:e.type===\"array\"?n=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"more than\"} ${e.minimum} element(s)`:e.type===\"string\"?n=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"over\"} ${e.minimum} character(s)`:e.type===\"number\"?n=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"bigint\"?n=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"date\"?n=`Date must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${new Date(Number(e.minimum))}`:n=\"Invalid input\";break;case Nt.too_big:e.type===\"array\"?n=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"less than\"} ${e.maximum} element(s)`:e.type===\"string\"?n=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"under\"} ${e.maximum} character(s)`:e.type===\"number\"?n=`Number must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"bigint\"?n=`BigInt must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"date\"?n=`Date must be ${e.exact?\"exactly\":e.inclusive?\"smaller than or equal to\":\"smaller than\"} ${new Date(Number(e.maximum))}`:n=\"Invalid input\";break;case Nt.custom:n=\"Invalid input\";break;case Nt.invalid_intersection_types:n=\"Intersection results could not be merged\";break;case Nt.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Nt.not_finite:n=\"Number must be finite\";break;default:n=t.defaultError,ho.assertNever(e)}return{message:n}},Wx=$Mt;var _et=Wx;function eDt(e){_et=e}function ZN(){return _et}f();var tF=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let c=\"\",u=r.filter(d=>!!d).slice().reverse();for(let d of u)c=d(a,{data:t,defaultError:c}).message;return{...o,path:i,message:c}},tDt=[];function Kt(e,t){let n=ZN(),r=tF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Wx?void 0:Wx].filter(o=>!!o)});e.common.issues.push(r)}var Vl=class e{constructor(){this.value=\"valid\"}dirty(){this.value===\"valid\"&&(this.value=\"dirty\")}abort(){this.value!==\"aborted\"&&(this.value=\"aborted\")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status===\"aborted\")return Fn;o.status===\"dirty\"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,a=await o.value;r.push({key:i,value:a})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:a}=o;if(i.status===\"aborted\"||a.status===\"aborted\")return Fn;i.status===\"dirty\"&&t.dirty(),a.status===\"dirty\"&&t.dirty(),i.value!==\"__proto__\"&&(typeof a.value<\"u\"||o.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}},Fn=Object.freeze({status:\"aborted\"}),zC=e=>({status:\"dirty\",value:e}),Wd=e=>({status:\"valid\",value:e}),I$=e=>e.status===\"aborted\",O$=e=>e.status===\"dirty\",US=e=>e.status===\"valid\",QN=e=>typeof Promise<\"u\"&&e instanceof Promise;f();f();var bn;(function(e){e.errToObj=t=>typeof t==\"string\"?{message:t}:t||{},e.toString=t=>typeof t==\"string\"?t:t?.message})(bn||(bn={}));var Tg=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Tet=(e,t)=>{if(US(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(\"Validation failed but no issues detected.\");return{success:!1,get error(){if(this._error)return this._error;let n=new dh(e.common.issues);return this._error=n,this._error}}};function Cr(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can\\'t use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,c)=>{let{message:u}=e;return a.code===\"invalid_enum_value\"?{message:u??c.defaultError}:typeof c.data>\"u\"?{message:u??r??c.defaultError}:a.code!==\"invalid_type\"?{message:c.defaultError}:{message:u??n??c.defaultError}},description:o}}var Ur=class{get description(){return this._def.description}_getType(t){return Vv(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Vv(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vl,ctx:{common:t.parent.common,data:t.data,parsedType:Vv(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(QN(n))throw new Error(\"Synchronous parse encountered promise.\");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vv(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Tet(r,o)}\"~validate\"(t){let n={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vv(t)};if(!this[\"~standard\"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return US(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\"encountered\")&&(this[\"~standard\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>US(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vv(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(QN(o)?o:Promise.resolve(o));return Tet(r,i)}refine(t,n){let r=o=>typeof n==\"string\"||typeof n>\"u\"?{message:n}:typeof n==\"function\"?n(o):n;return this._refinement((o,i)=>{let a=t(o),c=()=>i.addIssue({code:Nt.custom,...r(o)});return typeof Promise<\"u\"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n==\"function\"?n(r,o):n),!1))}_refinement(t){return new Cg({schema:this,typeName:Gn.ZodEffects,effect:{type:\"refinement\",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\"~standard\"]={version:1,vendor:\"zod\",validate:n=>this[\"~validate\"](n)}}optional(){return Sg.create(this,this._def)}nullable(){return qv.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qx.create(this)}promise(){return zS.create(this,this._def)}or(t){return YC.create([this,t],this._def)}and(t){return ZC.create(this,t,this._def)}transform(t){return new Cg({...Cr(this._def),schema:this,typeName:Gn.ZodEffects,effect:{type:\"transform\",transform:t}})}default(t){let n=typeof t==\"function\"?t:()=>t;return new eR({...Cr(this._def),innerType:this,defaultValue:n,typeName:Gn.ZodDefault})}brand(){return new nF({typeName:Gn.ZodBranded,type:this,...Cr(this._def)})}catch(t){let n=typeof t==\"function\"?t:()=>t;return new tR({...Cr(this._def),innerType:this,catchValue:n,typeName:Gn.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return rF.create(this,t)}readonly(){return nR.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},nDt=/^c[^\\\\s-]{8,}$/i,rDt=/^[0-9a-z]+$/,oDt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,iDt=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,aDt=/^[a-z0-9_-]{21}$/i,sDt=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,cDt=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,uDt=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_\\'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,lDt=\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\",Gye,dDt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fDt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,pDt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,hDt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mDt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gDt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ret=\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\",yDt=new RegExp(`^${Ret}$`);function Iet(e){let t=\"[0-5]\\\\\\\\d\";e.precision?t=`${t}\\\\\\\\.\\\\\\\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\\\\\\\.\\\\\\\\d+)?`);let n=e.precision?\"+\":\"?\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${t})${n}`}function bDt(e){return new RegExp(`^${Iet(e)}$`)}function Oet(e){let t=`${Ret}T${Iet(e)}`,n=[];return n.push(e.local?\"Z?\":\"Z\"),e.offset&&n.push(\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\"),t=`${t}(${n.join(\"|\")})`,new RegExp(`^${t}$`)}function vDt(e,t){return!!((t===\"v4\"||!t)&&dDt.test(e)||(t===\"v6\"||!t)&&pDt.test(e))}function wDt(e,t){if(!sDt.test(e))return!1;try{let[n]=e.split(\".\");if(!n)return!1;let r=n.replace(/-/g,\"+\").replace(/_/g,\"/\").padEnd(n.length+(4-n.length%4)%4,\"=\"),o=JSON.parse(atob(r));return!(typeof o!=\"object\"||o===null||\"typ\"in o&&o?.typ!==\"JWT\"||!o.alg||t&&o.alg!==t)}catch{return!1}}function xDt(e,t){return!!((t===\"v4\"||!t)&&fDt.test(e)||(t===\"v6\"||!t)&&hDt.test(e))}var FS=class e extends Ur{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==en.string){let i=this._getOrReturnCtx(t);return Kt(i,{code:Nt.invalid_type,expected:en.string,received:i.parsedType}),Fn}let r=new Vl,o;for(let i of this._def.checks)if(i.kind===\"min\")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.too_small,minimum:i.value,type:\"string\",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind===\"max\")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.too_big,maximum:i.value,type:\"string\",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind===\"length\"){let a=t.data.length>i.value,c=t.data.length<i.value;(a||c)&&(o=this._getOrReturnCtx(t,o),a?Kt(o,{code:Nt.too_big,maximum:i.value,type:\"string\",inclusive:!0,exact:!0,message:i.message}):c&&Kt(o,{code:Nt.too_small,minimum:i.value,type:\"string\",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind===\"email\")uDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"email\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"emoji\")Gye||(Gye=new RegExp(lDt,\"u\")),Gye.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"emoji\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"uuid\")iDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"uuid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"nanoid\")aDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"nanoid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"cuid\")nDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"cuid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"cuid2\")rDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"cuid2\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"ulid\")oDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"ulid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"url\")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"url\",code:Nt.invalid_string,message:i.message}),r.dirty()}else i.kind===\"regex\"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"regex\",code:Nt.invalid_string,message:i.message}),r.dirty())):i.kind===\"trim\"?t.data=t.data.trim():i.kind===\"includes\"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind===\"toLowerCase\"?t.data=t.data.toLowerCase():i.kind===\"toUpperCase\"?t.data=t.data.toUpperCase():i.kind===\"startsWith\"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind===\"endsWith\"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind===\"datetime\"?Oet(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:\"datetime\",message:i.message}),r.dirty()):i.kind===\"date\"?yDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:\"date\",message:i.message}),r.dirty()):i.kind===\"time\"?bDt(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.invalid_string,validation:\"time\",message:i.message}),r.dirty()):i.kind===\"duration\"?cDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"duration\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"ip\"?vDt(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"ip\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"jwt\"?wDt(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"jwt\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"cidr\"?xDt(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"cidr\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"base64\"?mDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"base64\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"base64url\"?gDt.test(t.data)||(o=this._getOrReturnCtx(t,o),Kt(o,{validation:\"base64url\",code:Nt.invalid_string,message:i.message}),r.dirty()):ho.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:Nt.invalid_string,...bn.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:\"email\",...bn.errToObj(t)})}url(t){return this._addCheck({kind:\"url\",...bn.errToObj(t)})}emoji(t){return this._addCheck({kind:\"emoji\",...bn.errToObj(t)})}uuid(t){return this._addCheck({kind:\"uuid\",...bn.errToObj(t)})}nanoid(t){return this._addCheck({kind:\"nanoid\",...bn.errToObj(t)})}cuid(t){return this._addCheck({kind:\"cuid\",...bn.errToObj(t)})}cuid2(t){return this._addCheck({kind:\"cuid2\",...bn.errToObj(t)})}ulid(t){return this._addCheck({kind:\"ulid\",...bn.errToObj(t)})}base64(t){return this._addCheck({kind:\"base64\",...bn.errToObj(t)})}base64url(t){return this._addCheck({kind:\"base64url\",...bn.errToObj(t)})}jwt(t){return this._addCheck({kind:\"jwt\",...bn.errToObj(t)})}ip(t){return this._addCheck({kind:\"ip\",...bn.errToObj(t)})}cidr(t){return this._addCheck({kind:\"cidr\",...bn.errToObj(t)})}datetime(t){return typeof t==\"string\"?this._addCheck({kind:\"datetime\",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:\"datetime\",precision:typeof t?.precision>\"u\"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...bn.errToObj(t?.message)})}date(t){return this._addCheck({kind:\"date\",message:t})}time(t){return typeof t==\"string\"?this._addCheck({kind:\"time\",precision:null,message:t}):this._addCheck({kind:\"time\",precision:typeof t?.precision>\"u\"?null:t?.precision,...bn.errToObj(t?.message)})}duration(t){return this._addCheck({kind:\"duration\",...bn.errToObj(t)})}regex(t,n){return this._addCheck({kind:\"regex\",regex:t,...bn.errToObj(n)})}includes(t,n){return this._addCheck({kind:\"includes\",value:t,position:n?.position,...bn.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:\"startsWith\",value:t,...bn.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:\"endsWith\",value:t,...bn.errToObj(n)})}min(t,n){return this._addCheck({kind:\"min\",value:t,...bn.errToObj(n)})}max(t,n){return this._addCheck({kind:\"max\",value:t,...bn.errToObj(n)})}length(t,n){return this._addCheck({kind:\"length\",value:t,...bn.errToObj(n)})}nonempty(t){return this.min(1,bn.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:\"trim\"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toLowerCase\"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toUpperCase\"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind===\"datetime\")}get isDate(){return!!this._def.checks.find(t=>t.kind===\"date\")}get isTime(){return!!this._def.checks.find(t=>t.kind===\"time\")}get isDuration(){return!!this._def.checks.find(t=>t.kind===\"duration\")}get isEmail(){return!!this._def.checks.find(t=>t.kind===\"email\")}get isURL(){return!!this._def.checks.find(t=>t.kind===\"url\")}get isEmoji(){return!!this._def.checks.find(t=>t.kind===\"emoji\")}get isUUID(){return!!this._def.checks.find(t=>t.kind===\"uuid\")}get isNANOID(){return!!this._def.checks.find(t=>t.kind===\"nanoid\")}get isCUID(){return!!this._def.checks.find(t=>t.kind===\"cuid\")}get isCUID2(){return!!this._def.checks.find(t=>t.kind===\"cuid2\")}get isULID(){return!!this._def.checks.find(t=>t.kind===\"ulid\")}get isIP(){return!!this._def.checks.find(t=>t.kind===\"ip\")}get isCIDR(){return!!this._def.checks.find(t=>t.kind===\"cidr\")}get isBase64(){return!!this._def.checks.find(t=>t.kind===\"base64\")}get isBase64url(){return!!this._def.checks.find(t=>t.kind===\"base64url\")}get minLength(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}};FS.create=e=>new FS({checks:[],typeName:Gn.ZodString,coerce:e?.coerce??!1,...Cr(e)});function EDt(e,t){let n=(e.toString().split(\".\")[1]||\"\").length,r=(t.toString().split(\".\")[1]||\"\").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(\".\",\"\")),a=Number.parseInt(t.toFixed(o).replace(\".\",\"\"));return i%a/10**o}var jC=class e extends Ur{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==en.number){let i=this._getOrReturnCtx(t);return Kt(i,{code:Nt.invalid_type,expected:en.number,received:i.parsedType}),Fn}let r,o=new Vl;for(let i of this._def.checks)i.kind===\"int\"?ho.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.invalid_type,expected:\"integer\",received:\"float\",message:i.message}),o.dirty()):i.kind===\"min\"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.too_small,minimum:i.value,type:\"number\",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind===\"max\"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.too_big,maximum:i.value,type:\"number\",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind===\"multipleOf\"?EDt(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind===\"finite\"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.not_finite,message:i.message}),o.dirty()):ho.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit(\"min\",t,!0,bn.toString(n))}gt(t,n){return this.setLimit(\"min\",t,!1,bn.toString(n))}lte(t,n){return this.setLimit(\"max\",t,!0,bn.toString(n))}lt(t,n){return this.setLimit(\"max\",t,!1,bn.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:bn.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:\"int\",message:bn.toString(t)})}positive(t){return this._addCheck({kind:\"min\",value:0,inclusive:!1,message:bn.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:0,inclusive:!1,message:bn.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:0,inclusive:!0,message:bn.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:0,inclusive:!0,message:bn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\"multipleOf\",value:t,message:bn.toString(n)})}finite(t){return this._addCheck({kind:\"finite\",message:bn.toString(t)})}safe(t){return this._addCheck({kind:\"min\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:bn.toString(t)})._addCheck({kind:\"max\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:bn.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind===\"int\"||t.kind===\"multipleOf\"&&ho.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind===\"finite\"||r.kind===\"int\"||r.kind===\"multipleOf\")return!0;r.kind===\"min\"?(n===null||r.value>n)&&(n=r.value):r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};jC.create=e=>new jC({checks:[],typeName:Gn.ZodNumber,coerce:e?.coerce||!1,...Cr(e)});var WC=class e extends Ur{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==en.bigint)return this._getInvalidInput(t);let r,o=new Vl;for(let i of this._def.checks)i.kind===\"min\"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.too_small,type:\"bigint\",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind===\"max\"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.too_big,type:\"bigint\",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind===\"multipleOf\"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Kt(r,{code:Nt.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):ho.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return Kt(n,{code:Nt.invalid_type,expected:en.bigint,received:n.parsedType}),Fn}gte(t,n){return this.setLimit(\"min\",t,!0,bn.toString(n))}gt(t,n){return this.setLimit(\"min\",t,!1,bn.toString(n))}lte(t,n){return this.setLimit(\"max\",t,!0,bn.toString(n))}lt(t,n){return this.setLimit(\"max\",t,!1,bn.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:bn.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!1,message:bn.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!1,message:bn.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!0,message:bn.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!0,message:bn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\"multipleOf\",value:t,message:bn.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}};WC.create=e=>new WC({checks:[],typeName:Gn.ZodBigInt,coerce:e?.coerce??!1,...Cr(e)});var VC=class extends Ur{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==en.boolean){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.boolean,received:r.parsedType}),Fn}return Wd(t.data)}};VC.create=e=>new VC({typeName:Gn.ZodBoolean,coerce:e?.coerce||!1,...Cr(e)});var GC=class e extends Ur{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==en.date){let i=this._getOrReturnCtx(t);return Kt(i,{code:Nt.invalid_type,expected:en.date,received:i.parsedType}),Fn}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return Kt(i,{code:Nt.invalid_date}),Fn}let r=new Vl,o;for(let i of this._def.checks)i.kind===\"min\"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:\"date\"}),r.dirty()):i.kind===\"max\"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),Kt(o,{code:Nt.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:\"date\"}),r.dirty()):ho.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:\"min\",value:t.getTime(),message:bn.toString(n)})}max(t,n){return this._addCheck({kind:\"max\",value:t.getTime(),message:bn.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};GC.create=e=>new GC({checks:[],coerce:e?.coerce||!1,typeName:Gn.ZodDate,...Cr(e)});var XN=class extends Ur{_parse(t){if(this._getType(t)!==en.symbol){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.symbol,received:r.parsedType}),Fn}return Wd(t.data)}};XN.create=e=>new XN({typeName:Gn.ZodSymbol,...Cr(e)});var qC=class extends Ur{_parse(t){if(this._getType(t)!==en.undefined){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.undefined,received:r.parsedType}),Fn}return Wd(t.data)}};qC.create=e=>new qC({typeName:Gn.ZodUndefined,...Cr(e)});var KC=class extends Ur{_parse(t){if(this._getType(t)!==en.null){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.null,received:r.parsedType}),Fn}return Wd(t.data)}};KC.create=e=>new KC({typeName:Gn.ZodNull,...Cr(e)});var HS=class extends Ur{constructor(){super(...arguments),this._any=!0}_parse(t){return Wd(t.data)}};HS.create=e=>new HS({typeName:Gn.ZodAny,...Cr(e)});var Gx=class extends Ur{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Wd(t.data)}};Gx.create=e=>new Gx({typeName:Gn.ZodUnknown,...Cr(e)});var _1=class extends Ur{_parse(t){let n=this._getOrReturnCtx(t);return Kt(n,{code:Nt.invalid_type,expected:en.never,received:n.parsedType}),Fn}};_1.create=e=>new _1({typeName:Gn.ZodNever,...Cr(e)});var $N=class extends Ur{_parse(t){if(this._getType(t)!==en.undefined){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.void,received:r.parsedType}),Fn}return Wd(t.data)}};$N.create=e=>new $N({typeName:Gn.ZodVoid,...Cr(e)});var qx=class e extends Ur{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==en.array)return Kt(n,{code:Nt.invalid_type,expected:en.array,received:n.parsedType}),Fn;if(o.exactLength!==null){let a=n.data.length>o.exactLength.value,c=n.data.length<o.exactLength.value;(a||c)&&(Kt(n,{code:a?Nt.too_big:Nt.too_small,minimum:c?o.exactLength.value:void 0,maximum:a?o.exactLength.value:void 0,type:\"array\",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(Kt(n,{code:Nt.too_small,minimum:o.minLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(Kt(n,{code:Nt.too_big,maximum:o.maxLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>o.type._parseAsync(new Tg(n,a,n.path,c)))).then(a=>Vl.mergeArray(r,a));let i=[...n.data].map((a,c)=>o.type._parseSync(new Tg(n,a,n.path,c)));return Vl.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:bn.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:bn.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:bn.toString(n)}})}nonempty(t){return this.min(1,t)}};qx.create=(e,t)=>new qx({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Gn.ZodArray,...Cr(t)});function JN(e){if(e instanceof fh){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Sg.create(JN(r))}return new fh({...e._def,shape:()=>t})}else return e instanceof qx?new qx({...e._def,type:JN(e.element)}):e instanceof Sg?Sg.create(JN(e.unwrap())):e instanceof qv?qv.create(JN(e.unwrap())):e instanceof Gv?Gv.create(e.items.map(t=>JN(t))):e}var fh=class e extends Ur{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=ho.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==en.object){let d=this._getOrReturnCtx(t);return Kt(d,{code:Nt.invalid_type,expected:en.object,received:d.parsedType}),Fn}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof _1&&this._def.unknownKeys===\"strip\"))for(let d in o.data)a.includes(d)||c.push(d);let u=[];for(let d of a){let p=i[d],h=o.data[d];u.push({key:{status:\"valid\",value:d},value:p._parse(new Tg(o,h,o.path,d)),alwaysSet:d in o.data})}if(this._def.catchall instanceof _1){let d=this._def.unknownKeys;if(d===\"passthrough\")for(let p of c)u.push({key:{status:\"valid\",value:p},value:{status:\"valid\",value:o.data[p]}});else if(d===\"strict\")c.length>0&&(Kt(o,{code:Nt.unrecognized_keys,keys:c}),r.dirty());else if(d!==\"strip\")throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{let d=this._def.catchall;for(let p of c){let h=o.data[p];u.push({key:{status:\"valid\",value:p},value:d._parse(new Tg(o,h,o.path,p)),alwaysSet:p in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let d=[];for(let p of u){let h=await p.key,g=await p.value;d.push({key:h,value:g,alwaysSet:p.alwaysSet})}return d}).then(d=>Vl.mergeObjectSync(r,d)):Vl.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return bn.errToObj,new e({...this._def,unknownKeys:\"strict\",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\"unrecognized_keys\"?{message:bn.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:\"strip\"})}passthrough(){return new e({...this._def,unknownKeys:\"passthrough\"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Gn.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of ho.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of ho.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return JN(this)}partial(t){let n={};for(let r of ho.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of ho.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Sg;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return ket(ho.objectKeys(this.shape))}};fh.create=(e,t)=>new fh({shape:()=>e,unknownKeys:\"strip\",catchall:_1.create(),typeName:Gn.ZodObject,...Cr(t)});fh.strictCreate=(e,t)=>new fh({shape:()=>e,unknownKeys:\"strict\",catchall:_1.create(),typeName:Gn.ZodObject,...Cr(t)});fh.lazycreate=(e,t)=>new fh({shape:e,unknownKeys:\"strip\",catchall:_1.create(),typeName:Gn.ZodObject,...Cr(t)});var YC=class extends Ur{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let c of i)if(c.result.status===\"valid\")return c.result;for(let c of i)if(c.result.status===\"dirty\")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=i.map(c=>new dh(c.ctx.common.issues));return Kt(n,{code:Nt.invalid_union,unionErrors:a}),Fn}if(n.common.async)return Promise.all(r.map(async i=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(o);{let i,a=[];for(let u of r){let d={...n,common:{...n.common,issues:[]},parent:null},p=u._parseSync({data:n.data,path:n.path,parent:d});if(p.status===\"valid\")return p;p.status===\"dirty\"&&!i&&(i={result:p,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let c=a.map(u=>new dh(u));return Kt(n,{code:Nt.invalid_union,unionErrors:c}),Fn}}get options(){return this._def.options}};YC.create=(e,t)=>new YC({options:e,typeName:Gn.ZodUnion,...Cr(t)});var Vx=e=>e instanceof QC?Vx(e.schema):e instanceof Cg?Vx(e.innerType()):e instanceof JC?[e.value]:e instanceof XC?e.options:e instanceof $C?ho.objectValues(e.enum):e instanceof eR?Vx(e._def.innerType):e instanceof qC?[void 0]:e instanceof KC?[null]:e instanceof Sg?[void 0,...Vx(e.unwrap())]:e instanceof qv?[null,...Vx(e.unwrap())]:e instanceof nF||e instanceof nR?Vx(e.unwrap()):e instanceof tR?Vx(e._def.innerType):[],k$=class e extends Ur{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==en.object)return Kt(n,{code:Nt.invalid_type,expected:en.object,received:n.parsedType}),Fn;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(Kt(n,{code:Nt.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Fn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let a=Vx(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \\\\`${t}\\\\` could not be extracted from all schema options`);for(let c of a){if(o.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);o.set(c,i)}}return new e({typeName:Gn.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Cr(r)})}};function qye(e,t){let n=Vv(e),r=Vv(t);if(e===t)return{valid:!0,data:e};if(n===en.object&&r===en.object){let o=ho.objectKeys(t),i=ho.objectKeys(e).filter(c=>o.indexOf(c)!==-1),a={...e,...t};for(let c of i){let u=qye(e[c],t[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(n===en.array&&r===en.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let a=e[i],c=t[i],u=qye(a,c);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===en.date&&r===en.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ZC=class extends Ur{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,a)=>{if(I$(i)||I$(a))return Fn;let c=qye(i.value,a.value);return c.valid?((O$(i)||O$(a))&&n.dirty(),{status:n.value,value:c.data}):(Kt(r,{code:Nt.invalid_intersection_types}),Fn)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};ZC.create=(e,t,n)=>new ZC({left:e,right:t,typeName:Gn.ZodIntersection,...Cr(n)});var Gv=class e extends Ur{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==en.array)return Kt(r,{code:Nt.invalid_type,expected:en.array,received:r.parsedType}),Fn;if(r.data.length<this._def.items.length)return Kt(r,{code:Nt.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),Fn;!this._def.rest&&r.data.length>this._def.items.length&&(Kt(r,{code:Nt.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),n.dirty());let i=[...r.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new Tg(r,a,r.path,c)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>Vl.mergeArray(n,a)):Vl.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Gv.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new Gv({items:e,typeName:Gn.ZodTuple,rest:null,...Cr(t)})};var N$=class e extends Ur{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==en.object)return Kt(r,{code:Nt.invalid_type,expected:en.object,received:r.parsedType}),Fn;let o=[],i=this._def.keyType,a=this._def.valueType;for(let c in r.data)o.push({key:i._parse(new Tg(r,c,r.path,c)),value:a._parse(new Tg(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?Vl.mergeObjectAsync(n,o):Vl.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ur?new e({keyType:t,valueType:n,typeName:Gn.ZodRecord,...Cr(r)}):new e({keyType:FS.create(),valueType:t,typeName:Gn.ZodRecord,...Cr(n)})}},e7=class extends Ur{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==en.map)return Kt(r,{code:Nt.invalid_type,expected:en.map,received:r.parsedType}),Fn;let o=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([c,u],d)=>({key:o._parse(new Tg(r,c,r.path,[d,\"key\"])),value:i._parse(new Tg(r,u,r.path,[d,\"value\"]))}));if(r.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let d=await u.key,p=await u.value;if(d.status===\"aborted\"||p.status===\"aborted\")return Fn;(d.status===\"dirty\"||p.status===\"dirty\")&&n.dirty(),c.set(d.value,p.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let u of a){let d=u.key,p=u.value;if(d.status===\"aborted\"||p.status===\"aborted\")return Fn;(d.status===\"dirty\"||p.status===\"dirty\")&&n.dirty(),c.set(d.value,p.value)}return{status:n.value,value:c}}}};e7.create=(e,t,n)=>new e7({valueType:t,keyType:e,typeName:Gn.ZodMap,...Cr(n)});var t7=class e extends Ur{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==en.set)return Kt(r,{code:Nt.invalid_type,expected:en.set,received:r.parsedType}),Fn;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(Kt(r,{code:Nt.too_small,minimum:o.minSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(Kt(r,{code:Nt.too_big,maximum:o.maxSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function a(u){let d=new Set;for(let p of u){if(p.status===\"aborted\")return Fn;p.status===\"dirty\"&&n.dirty(),d.add(p.value)}return{status:n.value,value:d}}let c=[...r.data.values()].map((u,d)=>i._parse(new Tg(r,u,r.path,d)));return r.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:bn.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:bn.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};t7.create=(e,t)=>new t7({valueType:e,minSize:null,maxSize:null,typeName:Gn.ZodSet,...Cr(t)});var P$=class e extends Ur{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==en.function)return Kt(n,{code:Nt.invalid_type,expected:en.function,received:n.parsedType}),Fn;function r(c,u){return tF({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ZN(),Wx].filter(d=>!!d),issueData:{code:Nt.invalid_arguments,argumentsError:u}})}function o(c,u){return tF({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ZN(),Wx].filter(d=>!!d),issueData:{code:Nt.invalid_return_type,returnTypeError:u}})}let i={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof zS){let c=this;return Wd(async function(...u){let d=new dh([]),p=await c._def.args.parseAsync(u,i).catch(y=>{throw d.addIssue(r(u,y)),d}),h=await Reflect.apply(a,this,p);return await c._def.returns._def.type.parseAsync(h,i).catch(y=>{throw d.addIssue(o(h,y)),d})})}else{let c=this;return Wd(function(...u){let d=c._def.args.safeParse(u,i);if(!d.success)throw new dh([r(u,d.error)]);let p=Reflect.apply(a,this,d.data),h=c._def.returns.safeParse(p,i);if(!h.success)throw new dh([o(p,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Gv.create(t).rest(Gx.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||Gv.create([]).rest(Gx.create()),returns:n||Gx.create(),typeName:Gn.ZodFunction,...Cr(r)})}},QC=class extends Ur{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};QC.create=(e,t)=>new QC({getter:e,typeName:Gn.ZodLazy,...Cr(t)});var JC=class extends Ur{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return Kt(n,{received:n.data,code:Nt.invalid_literal,expected:this._def.value}),Fn}return{status:\"valid\",value:t.data}}get value(){return this._def.value}};JC.create=(e,t)=>new JC({value:e,typeName:Gn.ZodLiteral,...Cr(t)});function ket(e,t){return new XC({values:e,typeName:Gn.ZodEnum,...Cr(t)})}var XC=class e extends Ur{_parse(t){if(typeof t.data!=\"string\"){let n=this._getOrReturnCtx(t),r=this._def.values;return Kt(n,{expected:ho.joinValues(r),received:n.parsedType,code:Nt.invalid_type}),Fn}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return Kt(n,{received:n.data,code:Nt.invalid_enum_value,options:r}),Fn}return Wd(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};XC.create=ket;var $C=class extends Ur{_parse(t){let n=ho.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==en.string&&r.parsedType!==en.number){let o=ho.objectValues(n);return Kt(r,{expected:ho.joinValues(o),received:r.parsedType,code:Nt.invalid_type}),Fn}if(this._cache||(this._cache=new Set(ho.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=ho.objectValues(n);return Kt(r,{received:r.data,code:Nt.invalid_enum_value,options:o}),Fn}return Wd(t.data)}get enum(){return this._def.values}};$C.create=(e,t)=>new $C({values:e,typeName:Gn.ZodNativeEnum,...Cr(t)});var zS=class extends Ur{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==en.promise&&n.common.async===!1)return Kt(n,{code:Nt.invalid_type,expected:en.promise,received:n.parsedType}),Fn;let r=n.parsedType===en.promise?n.data:Promise.resolve(n.data);return Wd(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};zS.create=(e,t)=>new zS({type:e,typeName:Gn.ZodPromise,...Cr(t)});var Cg=class extends Ur{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Gn.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{Kt(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type===\"preprocess\"){let a=o.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async c=>{if(n.value===\"aborted\")return Fn;let u=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return u.status===\"aborted\"?Fn:u.status===\"dirty\"?zC(u.value):n.value===\"dirty\"?zC(u.value):u});{if(n.value===\"aborted\")return Fn;let c=this._def.schema._parseSync({data:a,path:r.path,parent:r});return c.status===\"aborted\"?Fn:c.status===\"dirty\"?zC(c.value):n.value===\"dirty\"?zC(c.value):c}}if(o.type===\"refinement\"){let a=c=>{let u=o.refinement(c,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");return c};if(r.common.async===!1){let c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status===\"aborted\"?Fn:(c.status===\"dirty\"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status===\"aborted\"?Fn:(c.status===\"dirty\"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(o.type===\"transform\")if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!US(a))return Fn;let c=o.transform(a.value,i);if(c instanceof Promise)throw new Error(\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>US(a)?Promise.resolve(o.transform(a.value,i)).then(c=>({status:n.value,value:c})):Fn);ho.assertNever(o)}};Cg.create=(e,t,n)=>new Cg({schema:e,typeName:Gn.ZodEffects,effect:t,...Cr(n)});Cg.createWithPreprocess=(e,t,n)=>new Cg({schema:t,effect:{type:\"preprocess\",transform:e},typeName:Gn.ZodEffects,...Cr(n)});var Sg=class extends Ur{_parse(t){return this._getType(t)===en.undefined?Wd(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Sg.create=(e,t)=>new Sg({innerType:e,typeName:Gn.ZodOptional,...Cr(t)});var qv=class extends Ur{_parse(t){return this._getType(t)===en.null?Wd(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};qv.create=(e,t)=>new qv({innerType:e,typeName:Gn.ZodNullable,...Cr(t)});var eR=class extends Ur{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===en.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};eR.create=(e,t)=>new eR({innerType:e,typeName:Gn.ZodDefault,defaultValue:typeof t.default==\"function\"?t.default:()=>t.default,...Cr(t)});var tR=class extends Ur{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return QN(o)?o.then(i=>({status:\"valid\",value:i.status===\"valid\"?i.value:this._def.catchValue({get error(){return new dh(r.common.issues)},input:r.data})})):{status:\"valid\",value:o.status===\"valid\"?o.value:this._def.catchValue({get error(){return new dh(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};tR.create=(e,t)=>new tR({innerType:e,typeName:Gn.ZodCatch,catchValue:typeof t.catch==\"function\"?t.catch:()=>t.catch,...Cr(t)});var n7=class extends Ur{_parse(t){if(this._getType(t)!==en.nan){let r=this._getOrReturnCtx(t);return Kt(r,{code:Nt.invalid_type,expected:en.nan,received:r.parsedType}),Fn}return{status:\"valid\",value:t.data}}};n7.create=e=>new n7({typeName:Gn.ZodNaN,...Cr(e)});var ADt=Symbol(\"zod_brand\"),nF=class extends Ur{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},rF=class e extends Ur{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status===\"aborted\"?Fn:i.status===\"dirty\"?(n.dirty(),zC(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status===\"aborted\"?Fn:o.status===\"dirty\"?(n.dirty(),{status:\"dirty\",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:Gn.ZodPipeline})}},nR=class extends Ur{_parse(t){let n=this._def.innerType._parse(t),r=o=>(US(o)&&(o.value=Object.freeze(o.value)),o);return QN(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};nR.create=(e,t)=>new nR({innerType:e,typeName:Gn.ZodReadonly,...Cr(t)});function Cet(e,t){let n=typeof e==\"function\"?e(t):typeof e==\"string\"?{message:e}:e;return typeof n==\"string\"?{message:n}:n}function Net(e,t={},n){return e?HS.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(a=>{if(!a){let c=Cet(t,r),u=c.fatal??n??!0;o.addIssue({code:\"custom\",...c,fatal:u})}});if(!i){let a=Cet(t,r),c=a.fatal??n??!0;o.addIssue({code:\"custom\",...a,fatal:c})}}):HS.create()}var _Dt={object:fh.lazycreate},Gn;(function(e){e.ZodString=\"ZodString\",e.ZodNumber=\"ZodNumber\",e.ZodNaN=\"ZodNaN\",e.ZodBigInt=\"ZodBigInt\",e.ZodBoolean=\"ZodBoolean\",e.ZodDate=\"ZodDate\",e.ZodSymbol=\"ZodSymbol\",e.ZodUndefined=\"ZodUndefined\",e.ZodNull=\"ZodNull\",e.ZodAny=\"ZodAny\",e.ZodUnknown=\"ZodUnknown\",e.ZodNever=\"ZodNever\",e.ZodVoid=\"ZodVoid\",e.ZodArray=\"ZodArray\",e.ZodObject=\"ZodObject\",e.ZodUnion=\"ZodUnion\",e.ZodDiscriminatedUnion=\"ZodDiscriminatedUnion\",e.ZodIntersection=\"ZodIntersection\",e.ZodTuple=\"ZodTuple\",e.ZodRecord=\"ZodRecord\",e.ZodMap=\"ZodMap\",e.ZodSet=\"ZodSet\",e.ZodFunction=\"ZodFunction\",e.ZodLazy=\"ZodLazy\",e.ZodLiteral=\"ZodLiteral\",e.ZodEnum=\"ZodEnum\",e.ZodEffects=\"ZodEffects\",e.ZodNativeEnum=\"ZodNativeEnum\",e.ZodOptional=\"ZodOptional\",e.ZodNullable=\"ZodNullable\",e.ZodDefault=\"ZodDefault\",e.ZodCatch=\"ZodCatch\",e.ZodPromise=\"ZodPromise\",e.ZodBranded=\"ZodBranded\",e.ZodPipeline=\"ZodPipeline\",e.ZodReadonly=\"ZodReadonly\"})(Gn||(Gn={}));var SDt=(e,t={message:`Input not instance of ${e.name}`})=>Net(n=>n instanceof e,t),Pet=FS.create,Met=jC.create,TDt=n7.create,CDt=WC.create,Det=VC.create,RDt=GC.create,IDt=XN.create,ODt=qC.create,kDt=KC.create,NDt=HS.create,PDt=Gx.create,MDt=_1.create,DDt=$N.create,LDt=qx.create,BDt=fh.create,UDt=fh.strictCreate,FDt=YC.create,HDt=k$.create,zDt=ZC.create,jDt=Gv.create,WDt=N$.create,VDt=e7.create,GDt=t7.create,qDt=P$.create,KDt=QC.create,YDt=JC.create,ZDt=XC.create,QDt=$C.create,JDt=zS.create,XDt=Cg.create,$Dt=Sg.create,eLt=qv.create,tLt=Cg.createWithPreprocess,nLt=rF.create,rLt=()=>Pet().optional(),oLt=()=>Met().optional(),iLt=()=>Det().optional(),aLt={string:(e=>FS.create({...e,coerce:!0})),number:(e=>jC.create({...e,coerce:!0})),boolean:(e=>VC.create({...e,coerce:!0})),bigint:(e=>WC.create({...e,coerce:!0})),date:(e=>GC.create({...e,coerce:!0}))};var sLt=Fn;f();var cLt=/[@#$%^&*+=/\\\\\\\\|~«»]/,uLt=/(!{2,}|\\\\?{2,}|-{2,})/,lLt=/[\\\\u{1F300}-\\\\u{1F9FF}]|[\\\\u{2702}-\\\\u{27B0}]|[\\\\u{2600}-\\\\u{26FF}]|[\\\\u{2B00}-\\\\u{2BFF}]/u,rR=({max:e,noSpaces:t}={})=>(t?Be.string().max(e??Number.POSITIVE_INFINITY).regex(/^\\\\S*$/,\"Spaces are not allowed\"):Be.string().max(e??Number.POSITIVE_INFINITY)).refine(r=>!lLt.test(r),{message:\"Emojis and symbols are not allowed\"}).refine(r=>!cLt.test(r),{message:\"Special characters (@, #, $, %, ^, &, *, +, =, /, \\\\\\\\, |, ~, \\\\xAB, \\\\xBB) are not allowed\"}).refine(r=>!uLt.test(r),{message:\"Repeated punctuations (!!, ??, --) are not allowed\"}),Xu=Be.string().url().startsWith(\"https://\",{message:\"Must be an https url\"}).max(1024).refine(e=>!e.includes(\" \"),{message:\"URL must not contain spaces\"}).refine(e=>{try{let t=new URL(e).hostname;return!(t===\"localhost\"||t.endsWith(\".localhost\")||/^(\\\\d{1,3}\\\\.){3}\\\\d{1,3}$/.test(t)||t.startsWith(\"[\")&&t.endsWith(\"]\"))}catch{return!1}},{message:\"URL must not use IP addresses or localhost\"}),oF=Be.string().max(32),M$=Be.string().max(32),dLt=/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\\\\/(?:[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}(?:\\\\/[-.%a-zA-Z0-9]{1,78})?|native)$/,Let=Be.string().regex(dLt,{message:\"Invalid CAIP-19 asset ID\"}),iF=Be.string().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,{message:\"Invalid hex color code. It should be in the format #RRGGBB or #RGB.\"}),fLt=/^(?!.*\\\\.\\\\.)([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,}$/,Bet=Be.string().max(1024).regex(fLt,{message:\"Must be a valid domain name (e.g., example.com, sub.example.com)\"}).refine(e=>!e.includes(\"://\"),{message:\"Domain must not include protocol (http://, https://, etc.)\"}).refine(e=>!e.includes(\"/\"),{message:\"Domain must not include path separators\"}).refine(e=>!e.includes(\"@\"),{message:\"Domain must not include @ symbol\"}).refine(e=>!e.includes(\":\"),{message:\"Domain must not include port numbers\"}),Uet=Be.union([Be.literal(\"1:1\"),Be.literal(\"3:2\")]),Fet=Be.object({header:Be.string(),payload:Be.string(),signature:Be.string()}),Kmr=Be.object({fid:Be.number(),type:Be.literal(\"app_key\"),key:Be.string().startsWith(\"0x\")});var pLt=Be.object({type:Be.literal(\"launch_frame\"),name:oF,url:Xu.optional(),splashImageUrl:Xu.optional(),splashBackgroundColor:iF.optional()}),hLt=Be.object({type:Be.literal(\"launch_miniapp\"),name:oF,url:Xu.optional(),splashImageUrl:Xu.optional(),splashBackgroundColor:iF.optional()}),mLt=Be.object({type:Be.literal(\"view_token\"),token:Let}),gLt=Be.discriminatedUnion(\"type\",[hLt,mLt,pLt]),yLt=Be.object({title:M$,action:gLt}),Xmr=Be.object({version:Be.union([Be.string(),Be.number()]).transform(e=>String(e)).pipe(Be.union([Be.literal(\"next\"),Be.literal(\"1\")])),imageUrl:Xu,aspectRatio:Uet.optional(),button:yLt});f();f();var Kye=Be.object({url:Be.string(),token:Be.string()}),r0r=Be.object({notificationId:Be.string().max(128),title:Be.string().max(32),body:Be.string().max(128),targetUrl:Xu,tokens:Be.string().array().max(100)}),o0r=Be.object({result:Be.object({successfulTokens:Be.array(Be.string()),invalidTokens:Be.array(Be.string()),rateLimitedTokens:Be.array(Be.string())})});var bLt=Be.object({event:Be.literal(\"miniapp_added\"),notificationDetails:Kye.optional()}),vLt=Be.object({event:Be.literal(\"miniapp_removed\")}),wLt=Be.object({event:Be.literal(\"notifications_enabled\"),notificationDetails:Kye.required()}),xLt=Be.object({event:Be.literal(\"notifications_disabled\")}),u0r=Be.discriminatedUnion(\"event\",[bLt,vLt,wLt,xLt]);f();f();f();var Het=[\"wallet.getEthereumProvider\",\"wallet.getSolanaProvider\",\"actions.ready\",\"actions.openUrl\",\"actions.close\",\"actions.setPrimaryButton\",\"actions.addMiniApp\",\"actions.signIn\",\"actions.viewCast\",\"actions.viewProfile\",\"actions.composeCast\",\"actions.viewToken\",\"actions.sendToken\",\"actions.swapToken\",\"actions.openMiniApp\",\"actions.requestCameraAndMicrophoneAccess\",\"haptics.impactOccurred\",\"haptics.notificationOccurred\",\"haptics.selectionChanged\",\"back\"];var ELt=[\"games\",\"social\",\"finance\",\"utility\",\"productivity\",\"health-fitness\",\"news-media\",\"music\",\"shopping\",\"education\",\"developer-tools\",\"entertainment\",\"art-creativity\"],ALt=Be.enum(ELt),_Lt=Be.union([Be.literal(\"0.0.0\"),Be.literal(\"0.0.1\"),Be.literal(\"1\"),Be.literal(\"next\")]),SLt=rR({max:30}),TLt=rR({max:170}),CLt=Be.array(Xu).max(3),RLt=Be.array(rR({max:20,noSpaces:!0})).max(5),ILt=rR({max:30}),OLt=rR({max:30}),kLt=rR({max:100}),NLt=Be.boolean(),PLt=[\"eip155:1\",\"eip155:8453\",\"eip155:42161\",\"eip155:421614\",\"eip155:84532\",\"eip155:666666666\",\"eip155:100\",\"eip155:10\",\"eip155:11155420\",\"eip155:137\",\"eip155:11155111\",\"eip155:7777777\",\"eip155:130\",\"eip155:10143\",\"eip155:42220\",\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"];function jet(e){let t=new Set(e);return Array.from(t)}var MLt=Be.array(Be.enum(PLt)).transform(jet),DLt=Be.array(Be.enum(Het)).transform(jet),zet=Be.object({version:_Lt,name:oF,iconUrl:Xu,homeUrl:Xu,imageUrl:Xu.optional(),buttonTitle:M$.optional(),splashImageUrl:Xu.optional(),splashBackgroundColor:iF.optional(),webhookUrl:Xu.optional(),subtitle:SLt.optional(),description:TLt.optional(),screenshotUrls:CLt.optional(),primaryCategory:ALt.optional(),tags:RLt.optional(),heroImageUrl:Xu.optional(),tagline:ILt.optional(),ogTitle:OLt.optional(),ogDescription:kLt.optional(),ogImageUrl:Xu.optional(),noindex:NLt.optional(),requiredChains:MLt.optional(),requiredCapabilities:DLt.optional(),castShareUrl:Xu.optional(),canonicalDomain:Bet.optional()}).refine(e=>{if(e.castShareUrl===void 0)return!0;try{let t=new URL(e.homeUrl).hostname,n=new URL(e.castShareUrl).hostname;return t===n}catch{return!1}},{message:\"castShareUrl must have the same domain as homeUrl\",path:[\"castShareUrl\"]}),x0r=Be.object({accountAssociation:Fet,miniapp:zet.optional(),frame:zet.optional()}).refine(e=>e.frame&&e.miniapp?JSON.stringify(e.frame)===JSON.stringify(e.miniapp):!0,{message:\\'If both \"frame\" and \"miniapp\" are provided, they must be identical\\',path:[\"frame\",\"miniapp\"]}).transform(e=>({...e,frame:e.frame??e.miniapp}));f();f();var Xn=he(v2());f();mI();I0();SK();f();E6();SK();C6();var jS=BigInt(0),$u=BigInt(1),Yye=BigInt(2),LLt=BigInt(8);function BLt(e,t,n,r){let o=e.sqr(n),i=e.sqr(r),a=e.add(e.mul(t.a,o),i),c=e.add(e.ONE,e.mul(t.d,e.mul(o,i)));return e.eql(a,c)}function ULt(e,t={}){let n=_K(\"edwards\",e,t,t.FpFnLE),{Fp:r,Fn:o}=n,i=n.CURVE,{h:a}=i;M_(t,{},{uvRatio:\"function\"});let c=Yye<<BigInt(o.BYTES*8)-$u,u=R=>r.create(R),d=t.uvRatio||((R,S)=>{try{return{isValid:!0,value:r.sqrt(r.div(R,S))}}catch{return{isValid:!1,value:jS}}});if(!BLt(r,i,i.Gx,i.Gy))throw new Error(\"bad curve params: generator point\");function p(R,S,M=!1){let P=M?$u:jS;return RO(\"coordinate \"+R,S,P,c),S}function h(R){if(!(R instanceof v))throw new Error(\"ExtendedPoint expected\")}let g=x6((R,S)=>{let{X:M,Y:P,Z:z}=R,V=R.is0();S==null&&(S=V?LLt:r.inv(z));let Q=u(M*S),$=u(P*S),oe=r.mul(z,S);if(V)return{x:jS,y:$u};if(oe!==$u)throw new Error(\"invZ was invalid\");return{x:Q,y:$}}),y=x6(R=>{let{a:S,d:M}=i;if(R.is0())throw new Error(\"bad point: ZERO\");let{X:P,Y:z,Z:V,T:Q}=R,$=u(P*P),oe=u(z*z),J=u(V*V),re=u(J*J),q=u($*S),K=u(J*u(q+oe)),U=u(re+u(M*u($*oe)));if(K!==U)throw new Error(\"bad point: equation left != right (1)\");let T=u(P*z),k=u(V*Q);if(T!==k)throw new Error(\"bad point: equation left != right (2)\");return!0});class v{constructor(S,M,P,z){this.X=p(\"x\",S),this.Y=p(\"y\",M),this.Z=p(\"z\",P,!0),this.T=p(\"t\",z),Object.freeze(this)}static CURVE(){return i}static fromAffine(S){if(S instanceof v)throw new Error(\"extended point not allowed\");let{x:M,y:P}=S||{};return p(\"x\",M),p(\"y\",P),new v(M,P,$u,u(M*P))}static fromBytes(S,M=!1){let P=r.BYTES,{a:z,d:V}=i;S=tK(mm(S,P,\"point\")),cx(M,\"zip215\");let Q=tK(S),$=S[P-1];Q[P-1]=$&-129;let oe=uv(Q),J=M?c:r.ORDER;RO(\"point.y\",oe,jS,J);let re=u(oe*oe),q=u(re-$u),K=u(V*re-z),{isValid:U,value:T}=d(q,K);if(!U)throw new Error(\"bad point: invalid y coordinate\");let k=(T&$u)===$u,F=($&128)!==0;if(!M&&T===jS&&F)throw new Error(\"bad point: x=0 and x_0=1\");return F!==k&&(T=u(-T)),v.fromAffine({x:T,y:oe})}static fromHex(S,M=!1){return v.fromBytes(ki(\"point\",S),M)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(S=8,M=!0){return x.createCache(this,S),M||this.multiply(Yye),this}assertValidity(){y(this)}equals(S){h(S);let{X:M,Y:P,Z:z}=this,{X:V,Y:Q,Z:$}=S,oe=u(M*$),J=u(V*z),re=u(P*$),q=u(Q*z);return oe===J&&re===q}is0(){return this.equals(v.ZERO)}negate(){return new v(u(-this.X),this.Y,this.Z,u(-this.T))}double(){let{a:S}=i,{X:M,Y:P,Z:z}=this,V=u(M*M),Q=u(P*P),$=u(Yye*u(z*z)),oe=u(S*V),J=M+P,re=u(u(J*J)-V-Q),q=oe+Q,K=q-$,U=oe-Q,T=u(re*K),k=u(q*U),F=u(re*U),N=u(K*q);return new v(T,k,N,F)}add(S){h(S);let{a:M,d:P}=i,{X:z,Y:V,Z:Q,T:$}=this,{X:oe,Y:J,Z:re,T:q}=S,K=u(z*oe),U=u(V*J),T=u($*P*q),k=u(Q*re),F=u((z+V)*(oe+J)-K-U),N=k-T,B=k+T,H=u(U-M*K),W=u(F*N),G=u(B*H),O=u(F*H),j=u(N*B);return new v(W,G,j,O)}subtract(S){return this.add(S.negate())}multiply(S){if(!o.isValidNot0(S))throw new Error(\"invalid scalar: expected 1 <= sc < curve.n\");let{p:M,f:P}=x.cached(this,S,z=>fx(v,z));return fx(v,[M,P])[0]}multiplyUnsafe(S,M=v.ZERO){if(!o.isValid(S))throw new Error(\"invalid scalar: expected 0 <= sc < curve.n\");return S===jS?v.ZERO:this.is0()||S===$u?this:x.unsafe(this,S,P=>fx(v,P),M)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}isTorsionFree(){return x.unsafe(this,i.n).is0()}toAffine(S){return g(this,S)}clearCofactor(){return a===$u?this:this.multiplyUnsafe(a)}toBytes(){let{x:S,y:M}=this.toAffine(),P=r.toBytes(M);return P[P.length-1]|=S&$u?128:0,P}toHex(){return nm(this.toBytes())}toString(){return`<Point ${this.is0()?\"ZERO\":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(S){return fx(v,S)}static msm(S,M){return HO(v,o,S,M)}_setWindowSize(S){this.precompute(S)}toRawBytes(){return this.toBytes()}}v.BASE=new v(i.Gx,i.Gy,$u,u(i.Gx*i.Gy)),v.ZERO=new v(jS,$u,$u,jS),v.Fp=r,v.Fn=o;let x=new FO(v,o.BITS);return v.BASE.precompute(8),v}var D$=class{constructor(t){this.ep=t}static fromBytes(t){nK()}static fromHex(t){nK()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(t){return this.ep.toAffine(t)}toHex(){return nm(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(t){return this.assertSame(t),this.init(this.ep.add(t.ep))}subtract(t){return this.assertSame(t),this.init(this.ep.subtract(t.ep))}multiply(t){return this.init(this.ep.multiply(t))}multiplyUnsafe(t){return this.init(this.ep.multiplyUnsafe(t))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(t,n){return this.init(this.ep.precompute(t,n))}toRawBytes(){return this.toBytes()}};function FLt(e,t,n={}){if(typeof t!=\"function\")throw new Error(\\'\"hash\" function param is required\\');M_(n,{},{adjustScalarBytes:\"function\",randomBytes:\"function\",domain:\"function\",prehash:\"function\",mapToCurve:\"function\"});let{prehash:r}=n,{BASE:o,Fp:i,Fn:a}=e,c=n.randomBytes||By,u=n.adjustScalarBytes||(J=>J),d=n.domain||((J,re,q)=>{if(cx(q,\"phflag\"),re.length||q)throw new Error(\"Contexts/pre-hash are not supported\");return J});function p(J){return a.create(uv(J))}function h(J){let re=P.secretKey;J=ki(\"private key\",J,re);let q=ki(\"hashed private key\",t(J),2*re),K=u(q.slice(0,re)),U=q.slice(re,2*re),T=p(K);return{head:K,prefix:U,scalar:T}}function g(J){let{head:re,prefix:q,scalar:K}=h(J),U=o.multiply(K),T=U.toBytes();return{head:re,prefix:q,scalar:K,point:U,pointBytes:T}}function y(J){return g(J).pointBytes}function v(J=Uint8Array.of(),...re){let q=Bu(...re);return p(t(d(q,ki(\"context\",J),!!r)))}function x(J,re,q={}){J=ki(\"message\",J),r&&(J=r(J));let{prefix:K,scalar:U,pointBytes:T}=g(re),k=v(q.context,K,J),F=o.multiply(k).toBytes(),N=v(q.context,F,T,J),B=a.create(k+N*U);if(!a.isValid(B))throw new Error(\"sign failed: invalid s\");let H=Bu(F,a.toBytes(B));return mm(H,P.signature,\"result\")}let R={zip215:!0};function S(J,re,q,K=R){let{context:U,zip215:T}=K,k=P.signature;J=ki(\"signature\",J,k),re=ki(\"message\",re),q=ki(\"publicKey\",q,P.publicKey),T!==void 0&&cx(T,\"zip215\"),r&&(re=r(re));let F=k/2,N=J.subarray(0,F),B=uv(J.subarray(F,k)),H,W,G;try{H=e.fromBytes(q,T),W=e.fromBytes(N,T),G=o.multiplyUnsafe(B)}catch{return!1}if(!T&&H.isSmallOrder())return!1;let O=v(U,W.toBytes(),H.toBytes(),re);return W.add(H.multiplyUnsafe(O)).subtract(G).clearCofactor().is0()}let M=i.BYTES,P={secretKey:M,publicKey:M,signature:2*M,seed:M};function z(J=c(P.seed)){return mm(J,P.seed,\"seed\")}function V(J){let re=oe.randomSecretKey(J);return{secretKey:re,publicKey:y(re)}}function Q(J){return Bb(J)&&J.length===a.BYTES}function $(J,re){try{return!!e.fromBytes(J,re)}catch{return!1}}let oe={getExtendedPublicKey:g,randomSecretKey:z,isValidSecretKey:Q,isValidPublicKey:$,toMontgomery(J){let{y:re}=e.fromBytes(J),q=P.publicKey,K=q===32;if(!K&&q!==57)throw new Error(\"only defined for 25519 and 448\");let U=K?i.div($u+re,$u-re):i.div(re-$u,re+$u);return i.toBytes(U)},toMontgomerySecret(J){let re=P.secretKey;mm(J,re);let q=t(J.subarray(0,re));return u(q).subarray(0,re)},randomPrivateKey:z,precompute(J=8,re=e.BASE){return re.precompute(J,!1)}};return Object.freeze({keygen:V,getPublicKey:y,sign:x,verify:S,utils:oe,Point:e,lengths:P})}function HLt(e){let t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=Ll(t.n,e.nBitLength,!0),o={Fp:n,Fn:r,uvRatio:e.uvRatio},i={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:o,hash:e.hash,eddsaOpts:i}}function zLt(e,t){let n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function Wet(e){let{CURVE:t,curveOpts:n,hash:r,eddsaOpts:o}=HLt(e),i=ULt(t,n),a=FLt(i,r,o);return zLt(e,a)}C6();E6();var jLt=BigInt(0),Kx=BigInt(1),Vet=BigInt(2),W0r=BigInt(3),WLt=BigInt(5),VLt=BigInt(8),r7=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed\"),aF={p:r7,n:BigInt(\"0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed\"),h:VLt,a:BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec\"),d:BigInt(\"0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3\"),Gx:BigInt(\"0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\"),Gy:BigInt(\"0x6666666666666666666666666666666666666666666666666666666666666658\")};function GLt(e){let t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),i=r7,c=e*e%i*e%i,u=Xa(c,Vet,i)*c%i,d=Xa(u,Kx,i)*e%i,p=Xa(d,WLt,i)*d%i,h=Xa(p,t,i)*p%i,g=Xa(h,n,i)*h%i,y=Xa(g,r,i)*g%i,v=Xa(y,o,i)*y%i,x=Xa(v,o,i)*y%i,R=Xa(x,t,i)*p%i;return{pow_p_5_8:Xa(R,Vet,i)*e%i,b2:c}}function qLt(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}var Zye=BigInt(\"19681161376707505956807079304988542015446066515923890162744021073123829784752\");function Xye(e,t){let n=r7,r=Ls(t*t*t,n),o=Ls(r*r*t,n),i=GLt(e*o).pow_p_5_8,a=Ls(e*r*i,n),c=Ls(t*a*a,n),u=a,d=Ls(a*Zye,n),p=c===e,h=c===Ls(-e,n),g=c===Ls(-e*Zye,n);return p&&(a=u),(h||g)&&(a=d),dx(a,n)&&(a=Ls(-a,n)),{isValid:p||h,value:a}}var WS=Ll(aF.p,{isLE:!0}),KLt=Ll(aF.n,{isLE:!0}),YLt={...aF,Fp:WS,hash:tW,adjustScalarBytes:qLt,uvRatio:Xye},ph=Wet(YLt);var Qye=Zye,ZLt=BigInt(\"25063068953384623474111414158702152701244531502492656460079210482610430750235\"),QLt=BigInt(\"54469307008909316920995813868745141605393597292927456921205312896311721017578\"),JLt=BigInt(\"1159843021668779879193775521855586647937357759715417654439879720876111806838\"),XLt=BigInt(\"40440834346308536858101042469323190826248399146238708352240133220865137265952\"),Get=e=>Xye(Kx,e),$Lt=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),Jye=e=>ph.Point.Fp.create(uv(e)&$Lt);function qet(e){let{d:t}=aF,n=r7,r=S=>WS.create(S),o=r(Qye*e*e),i=r((o+Kx)*JLt),a=BigInt(-1),c=r((a-t*o)*r(o+t)),{isValid:u,value:d}=Xye(i,c),p=r(d*e);dx(p,n)||(p=r(-p)),u||(d=p),u||(a=o);let h=r(a*(o-Kx)*XLt-c),g=d*d,y=r((d+d)*c),v=r(h*ZLt),x=r(Kx-g),R=r(Kx+g);return new ph.Point(r(y*R),r(x*v),r(v*R),r(y*x))}function eBt(e){Lu(e,64);let t=Jye(e.subarray(0,32)),n=qet(t),r=Jye(e.subarray(32,64)),o=qet(r);return new Yx(n.add(o))}var Yx=class e extends D${constructor(t){super(t)}static fromAffine(t){return new e(ph.Point.fromAffine(t))}assertSame(t){if(!(t instanceof e))throw new Error(\"RistrettoPoint expected\")}init(t){return new e(t)}static hashToCurve(t){return eBt(ki(\"ristrettoHash\",t,64))}static fromBytes(t){Lu(t,32);let{a:n,d:r}=aF,o=r7,i=z=>WS.create(z),a=Jye(t);if(!eK(WS.toBytes(a),t)||dx(a,o))throw new Error(\"invalid ristretto255 encoding 1\");let c=i(a*a),u=i(Kx+n*c),d=i(Kx-n*c),p=i(u*u),h=i(d*d),g=i(n*r*p-h),{isValid:y,value:v}=Get(i(g*h)),x=i(v*d),R=i(v*x*g),S=i((a+a)*x);dx(S,o)&&(S=i(-S));let M=i(u*R),P=i(S*M);if(!y||dx(P,o)||M===jLt)throw new Error(\"invalid ristretto255 encoding 2\");return new e(new ph.Point(S,M,Kx,P))}static fromHex(t){return e.fromBytes(ki(\"ristrettoHex\",t,32))}static msm(t,n){return HO(e,ph.Point.Fn,t,n)}toBytes(){let{X:t,Y:n,Z:r,T:o}=this.ep,i=r7,a=R=>WS.create(R),c=a(a(r+n)*a(r-n)),u=a(t*n),d=a(u*u),{value:p}=Get(a(c*d)),h=a(p*c),g=a(p*u),y=a(h*g*o),v;if(dx(o*y,i)){let R=a(n*Qye),S=a(t*Qye);t=R,n=S,v=a(h*QLt)}else v=g;dx(t*y,i)&&(n=a(-n));let x=a((r-n)*v);return dx(x,i)&&(x=a(-x)),WS.toBytes(x)}equals(t){this.assertSame(t);let{X:n,Y:r}=this.ep,{X:o,Y:i}=t.ep,a=d=>WS.create(d),c=a(n*i)===a(r*o),u=a(r*i)===a(n*o);return c||u}is0(){return this.equals(e.ZERO)}};Yx.BASE=new Yx(ph.Point.BASE);Yx.ZERO=new Yx(ph.Point.ZERO);Yx.Fp=WS;Yx.Fn=KLt;var A1e=he(G6()),qd=he($ye());nW();var h7=he(ttt()),Ee=he(c1e()),Dtt=he(c1e());f();f();var wBt=1,xBt=2,EBt=3,ABt=4,_Bt=5,SBt=6,TBt=7,CBt=8,RBt=9,IBt=10,OBt=-32700,kBt=-32603,NBt=-32602,PBt=-32601,MBt=-32600,DBt=-32016,LBt=-32015,BBt=-32014,UBt=-32013,FBt=-32012,HBt=-32011,zBt=-32010,jBt=-32009,WBt=-32008,VBt=-32007,GBt=-32006,qBt=-32005,KBt=-32004,YBt=-32003,ZBt=-32002,QBt=-32001,JBt=28e5,XBt=2800001,$Bt=2800002,eUt=2800003,tUt=2800004,nUt=2800005,rUt=2800006,oUt=2800007,iUt=2800008,aUt=2800009,sUt=2800010,cUt=2800011,uUt=323e4,lUt=32300001,dUt=3230002,fUt=3230003,pUt=3230004,hUt=361e4,mUt=3610001,gUt=3610002,yUt=3610003,bUt=3610004,vUt=3610005,wUt=3610006,xUt=3610007,EUt=3611e3,AUt=3704e3,_Ut=3704001,SUt=3704002,TUt=3704003,CUt=3704004,RUt=4128e3,IUt=4128001,OUt=4128002,kUt=4615e3,NUt=4615001,PUt=4615002,MUt=4615003,DUt=4615004,LUt=4615005,BUt=4615006,UUt=4615007,FUt=4615008,HUt=4615009,zUt=4615010,jUt=4615011,WUt=4615012,VUt=4615013,GUt=4615014,qUt=4615015,KUt=4615016,YUt=4615017,ZUt=4615018,QUt=4615019,JUt=4615020,XUt=4615021,$Ut=4615022,eFt=4615023,tFt=4615024,nFt=4615025,rFt=4615026,oFt=4615027,iFt=4615028,aFt=4615029,sFt=4615030,cFt=4615031,uFt=4615032,lFt=4615033,dFt=4615034,fFt=4615035,pFt=4615036,hFt=4615037,mFt=4615038,gFt=4615039,yFt=4615040,bFt=4615041,vFt=4615042,wFt=4615043,xFt=4615044,EFt=4615045,AFt=4615046,_Ft=4615047,SFt=4615048,TFt=4615049,CFt=4615050,RFt=4615051,IFt=4615052,OFt=4615053,kFt=4615054,NFt=5508e3,PFt=5508001,MFt=5508002,DFt=5508003,LFt=5508004,BFt=5508005,UFt=5508006,FFt=5508007,HFt=5508008,zFt=5508009,jFt=5508010,WFt=5508011,VFt=5663e3,GFt=5663001,qFt=5663002,KFt=5663003,YFt=5663004,ZFt=5663005,QFt=5663006,JFt=5663007,XFt=5663008,$Ft=5663009,eHt=5663010,tHt=5663011,nHt=5663012,rHt=5663013,oHt=5663014,iHt=5663015,aHt=5663016,sHt=5663017,cHt=5663018,uHt=5663019,lHt=5663020,dHt=705e4,fHt=7050001,pHt=7050002,hHt=7050003,mHt=7050004,gHt=7050005,yHt=7050006,bHt=7050007,vHt=7050008,wHt=7050009,xHt=7050010,EHt=7050011,AHt=7050012,_Ht=7050013,SHt=7050014,THt=7050015,CHt=7050016,RHt=7050017,IHt=7050018,OHt=7050019,kHt=7050020,NHt=7050021,PHt=7050022,MHt=7050023,DHt=7050024,LHt=7050025,BHt=7050026,UHt=7050027,FHt=7050028,HHt=7050029,zHt=7050030,jHt=7050031,WHt=7050032,VHt=7050033,GHt=7050034,qHt=7050035,KHt=7050036,u1e=8078e3,l1e=8078001,ntt=8078002,rtt=8078003,d1e=8078004,f1e=8078005,p1e=8078006,YHt=8078007,ZHt=8078008,QHt=8078009,JHt=8078010,h1e=8078011,XHt=8078012,ott=8078013,itt=8078014,$Ht=8078015,ezt=8078016,tzt=8078017,nzt=8078018,rzt=8078019,att=8078020,stt=8078021,ozt=8078022,izt=81e5,azt=8100001,szt=8100002,czt=8100003,uzt=819e4,lzt=8190001,dzt=8190002,fzt=8190003,pzt=8190004,hzt=99e5,mzt=9900001,gzt=9900002,yzt=9900003,bzt=9900004;var vzt={[uUt]:\"Account not found at address: $address\",[pUt]:\"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.\",[fUt]:\"Expected decoded account at address: $address\",[dUt]:\"Failed to decode account data at address: $address\",[lUt]:\"Accounts not found at addresses: $addresses\",[aUt]:\"Unable to find a viable program address bump seed.\",[$Bt]:\"$putativeAddress is not a base58-encoded address.\",[JBt]:\"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.\",[eUt]:\"The `CryptoKey` must be an `Ed25519` public key.\",[cUt]:\"$putativeOffCurveAddress is not a base58-encoded off-curve address.\",[iUt]:\"Invalid seeds; point must fall off the Ed25519 curve.\",[tUt]:\"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].\",[rUt]:\"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.\",[oUt]:\"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.\",[nUt]:\"Expected program derived address bump to be in the range [0, 255], got: $bump.\",[sUt]:\"Program address cannot end with PDA marker.\",[XBt]:\"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.\",[ABt]:\"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.\",[wBt]:\"The network has progressed past the last block for which this transaction could have been committed.\",[u1e]:\"Codec [$codecDescription] cannot decode empty byte arrays.\",[ozt]:\"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.\",[att]:\"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].\",[f1e]:\"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].\",[p1e]:\"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].\",[d1e]:\"Encoder and decoder must either both be fixed-size or variable-size.\",[ZHt]:\"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.\",[ntt]:\"Expected a fixed-size codec, got a variable-size one.\",[ott]:\"Codec [$codecDescription] expected a positive byte length, got $bytesLength.\",[rtt]:\"Expected a variable-size codec, got a fixed-size one.\",[rzt]:\"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].\",[l1e]:\"Codec [$codecDescription] expected $expected bytes, got $bytesLength.\",[nzt]:\"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].\",[QHt]:\"Invalid discriminated union variant. Expected one of [$variants], got $value.\",[JHt]:\"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.\",[$Ht]:\"Invalid literal union variant. Expected one of [$variants], got $value.\",[YHt]:\"Expected [$codecDescription] to have $expected items, got $actual.\",[XHt]:\"Invalid value $value for base $base with alphabet $alphabet.\",[ezt]:\"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.\",[h1e]:\"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.\",[itt]:\"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.\",[stt]:\"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].\",[tzt]:\"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.\",[EUt]:\"No random values implementation could be found.\",[HUt]:\"instruction requires an uninitialized account\",[eFt]:\"instruction tries to borrow reference for an account which is already borrowed\",[tFt]:\"instruction left account with an outstanding borrowed reference\",[XUt]:\"program other than the account\\'s owner changed the size of the account data\",[LUt]:\"account data too small for instruction\",[$Ut]:\"instruction expected an executable account\",[AFt]:\"An account does not have enough lamports to be rent-exempt\",[SFt]:\"Program arithmetic overflowed\",[EFt]:\"Failed to serialize or deserialize account data: $encodedData\",[kFt]:\"Builtin programs must consume compute units\",[uFt]:\"Cross-program invocation call depth too deep\",[mFt]:\"Computational budget exceeded\",[rFt]:\"custom program error: #$code\",[YUt]:\"instruction contains duplicate accounts\",[nFt]:\"instruction modifications of multiply-passed account differ\",[sFt]:\"executable accounts must be rent exempt\",[iFt]:\"instruction changed executable accounts data\",[aFt]:\"instruction changed the balance of an executable account\",[ZUt]:\"instruction changed executable bit of an account\",[GUt]:\"instruction modified data of an account it does not own\",[VUt]:\"instruction spent from the balance of an account it does not own\",[NUt]:\"generic instruction error\",[CFt]:\"Provided owner is not allowed\",[wFt]:\"Account is immutable\",[xFt]:\"Incorrect authority provided\",[UUt]:\"incorrect program id for instruction\",[BUt]:\"insufficient funds for instruction\",[DUt]:\"invalid account data for instruction\",[_Ft]:\"Invalid account owner\",[PUt]:\"invalid program argument\",[oFt]:\"program returned invalid error code\",[MUt]:\"invalid instruction data\",[hFt]:\"Failed to reallocate account data\",[pFt]:\"Provided seeds do not result in a valid address\",[RFt]:\"Accounts data allocations exceeded the maximum allowed per transaction\",[IFt]:\"Max accounts exceeded\",[OFt]:\"Max instruction trace length exceeded\",[fFt]:\"Length of the seed is too long for address generation\",[lFt]:\"An account required by the instruction is missing\",[FUt]:\"missing required signature for instruction\",[WUt]:\"instruction illegally modified the program id of an account\",[JUt]:\"insufficient account keys for instruction\",[gFt]:\"Cross-program invocation with unauthorized signer or writable account\",[yFt]:\"Failed to create program execution environment\",[vFt]:\"Program failed to compile\",[bFt]:\"Program failed to complete\",[KUt]:\"instruction modified data of a read-only account\",[qUt]:\"instruction changed the balance of a read-only account\",[dFt]:\"Cross-program invocation reentrancy not allowed for this instruction\",[QUt]:\"instruction modified rent epoch of an account\",[jUt]:\"sum of account balances before and after instruction do not match\",[zUt]:\"instruction requires an initialized account\",[kUt]:\"\",[cFt]:\"Unsupported program id\",[TFt]:\"Unsupported sysvar\",[RUt]:\"The instruction does not have any accounts.\",[IUt]:\"The instruction does not have any data.\",[OUt]:\"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.\",[_Bt]:\"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.\",[xBt]:\"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`\",[gzt]:\"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[bzt]:\"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.\",[mzt]:\"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[hzt]:\"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[yzt]:\"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[kBt]:\"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)\",[NBt]:\"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)\",[MBt]:\"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)\",[PBt]:\"JSON-RPC error: The method does not exist / is not available ($__serverMessage)\",[OBt]:\"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)\",[FBt]:\"$__serverMessage\",[QBt]:\"$__serverMessage\",[KBt]:\"$__serverMessage\",[BBt]:\"$__serverMessage\",[zBt]:\"$__serverMessage\",[jBt]:\"$__serverMessage\",[DBt]:\"Minimum context slot has not been reached\",[qBt]:\"Node is unhealthy; behind by $numSlotsBehind slots\",[WBt]:\"No snapshot\",[ZBt]:\"Transaction simulation failed\",[VBt]:\"$__serverMessage\",[HBt]:\"Transaction history is not available from this node\",[GBt]:\"$__serverMessage\",[UBt]:\"Transaction signature length mismatch\",[YBt]:\"Transaction signature verification failure\",[LBt]:\"$__serverMessage\",[AUt]:\"Key pair bytes must be of length 64, got $byteLength.\",[_Ut]:\"Expected private key bytes with length 32. Actual length: $actualLength.\",[SUt]:\"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.\",[CUt]:\"The provided private key does not match the provided public key.\",[TUt]:\"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.\",[SBt]:\"Lamports value must be in the range [0, 2e64-1]\",[TBt]:\"`$value` cannot be parsed as a `BigInt`\",[IBt]:\"$message\",[CBt]:\"`$value` cannot be parsed as a `Number`\",[EBt]:\"No nonce account could be found at address `$nonceAccountAddress`\",[uzt]:\"The notification name must end in \\'Notifications\\' and the API must supply a subscription plan creator function for the notification \\'$notificationName\\'.\",[dzt]:\"WebSocket was closed before payload could be added to the send buffer\",[fzt]:\"WebSocket connection closed\",[pzt]:\"WebSocket failed to connect\",[lzt]:\"Failed to obtain a subscription id from the server\",[czt]:\"Could not find an API plan for RPC method: `$method`\",[izt]:\"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.\",[szt]:\"HTTP error ($statusCode): $message\",[azt]:\"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.\",[NFt]:\"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.\",[PFt]:\"The provided value does not implement the `KeyPairSigner` interface\",[DFt]:\"The provided value does not implement the `MessageModifyingSigner` interface\",[LFt]:\"The provided value does not implement the `MessagePartialSigner` interface\",[MFt]:\"The provided value does not implement any of the `MessageSigner` interfaces\",[UFt]:\"The provided value does not implement the `TransactionModifyingSigner` interface\",[FFt]:\"The provided value does not implement the `TransactionPartialSigner` interface\",[HFt]:\"The provided value does not implement the `TransactionSendingSigner` interface\",[BFt]:\"The provided value does not implement any of the `TransactionSigner` interfaces\",[zFt]:\"More than one `TransactionSendingSigner` was identified.\",[jFt]:\"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.\",[WFt]:\"Wallet account signers do not support signing multiple messages/transactions in a single operation\",[xUt]:\"Cannot export a non-extractable key.\",[mUt]:\"No digest implementation could be found.\",[hUt]:\"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.\",[gUt]:`This runtime does not support the generation of Ed25519 key pairs.\\n\\nInstall @solana/webcrypto-ed25519-polyfill and call its \\\\`install\\\\` function before generating keys in environments that do not support Ed25519.\\n\\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[yUt]:\"No signature verification implementation could be found.\",[bUt]:\"No key generation implementation could be found.\",[vUt]:\"No signing implementation could be found.\",[wUt]:\"No key export implementation could be found.\",[RBt]:\"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given\",[CHt]:\"Transaction processing left an account with an outstanding borrowed reference\",[fHt]:\"Account in use\",[pHt]:\"Account loaded twice\",[hHt]:\"Attempt to debit an account but found no record of a prior credit.\",[MHt]:\"Transaction loads an address table account that doesn\\'t exist\",[bHt]:\"This transaction has already been processed\",[vHt]:\"Blockhash not found\",[wHt]:\"Loader call chain is too deep\",[THt]:\"Transactions are currently disabled due to cluster maintenance\",[zHt]:\"Transaction contains a duplicate instruction ($index) that is not allowed\",[gHt]:\"Insufficient funds for fee\",[jHt]:\"Transaction results in an account ($accountIndex) with insufficient funds for rent\",[yHt]:\"This account may not be used to pay transaction fees\",[EHt]:\"Transaction contains an invalid account reference\",[LHt]:\"Transaction loads an address table account with invalid data\",[BHt]:\"Transaction address table lookup uses an invalid index\",[DHt]:\"Transaction loads an address table account with an invalid owner\",[VHt]:\"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.\",[_Ht]:\"This program may not be used for executing instructions\",[UHt]:\"Transaction leaves an account with a lower balance than rent-exempt minimum\",[OHt]:\"Transaction loads a writable account that cannot be written\",[WHt]:\"Transaction exceeded max loaded accounts data size cap\",[xHt]:\"Transaction requires a fee but has no signature present\",[mHt]:\"Attempt to load a program that does not exist\",[qHt]:\"Execution of the program referenced by account at index $accountIndex is temporarily restricted.\",[GHt]:\"ResanitizationNeeded\",[SHt]:\"Transaction failed to sanitize accounts offsets correctly\",[AHt]:\"Transaction did not pass signature verification\",[PHt]:\"Transaction locked too many accounts\",[KHt]:\"Sum of account balances before and after transaction do not match\",[dHt]:\"The transaction failed with the error `$errorName`\",[IHt]:\"Transaction version is unsupported\",[NHt]:\"Transaction would exceed account data limit within the block\",[HHt]:\"Transaction would exceed total account data limit\",[kHt]:\"Transaction would exceed max account limit within the block\",[RHt]:\"Transaction would exceed max Block Cost Limit\",[FHt]:\"Transaction would exceed max Vote Cost Limit\",[iHt]:\"Attempted to sign a transaction with an address that is not a signer for it\",[eHt]:\"Transaction is missing an address at index: $index.\",[aHt]:\"Transaction has no expected signers therefore it cannot be encoded\",[lHt]:\"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes\",[qFt]:\"Transaction does not have a blockhash lifetime\",[KFt]:\"Transaction is not a durable nonce transaction\",[ZFt]:\"Contents of these address lookup tables unknown: $lookupTableAddresses\",[QFt]:\"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved\",[XFt]:\"No fee payer set in CompiledTransaction\",[JFt]:\"Could not find program address at index $index\",[cHt]:\"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more\",[uHt]:\"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more\",[tHt]:\"Transaction is missing a fee payer.\",[nHt]:\"Could not determine this transaction\\'s signature. Make sure that the transaction has been signed by its fee payer.\",[oHt]:\"Transaction first instruction is not advance nonce account instruction.\",[rHt]:\"Transaction with no instructions cannot be durable nonce transaction.\",[VFt]:\"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees\",[GFt]:\"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable\",[sHt]:\"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.\",[$Ft]:\"Transaction is missing signatures for addresses: $addresses.\",[YFt]:\"Transaction version must be in the range [0, 127]. `$actualVersion` given\"},Jx=\"i\",Zv=\"t\";function wzt(e,t={}){let n=vzt[e];if(n.length===0)return\"\";let r;function o(a){if(r[Zv]===2){let c=n.slice(r[Jx]+1,a);i.push(c in t?`${t[c]}`:`$${c}`)}else r[Zv]===1&&i.push(n.slice(r[Jx],a))}let i=[];return n.split(\"\").forEach((a,c)=>{if(c===0){r={[Jx]:0,[Zv]:n[0]===\"\\\\\\\\\"?0:n[0]===\"$\"?2:1};return}let u;switch(r[Zv]){case 0:u={[Jx]:c,[Zv]:1};break;case 1:a===\"\\\\\\\\\"?u={[Jx]:c,[Zv]:0}:a===\"$\"&&(u={[Jx]:c,[Zv]:2});break;case 2:a===\"\\\\\\\\\"?u={[Jx]:c,[Zv]:0}:a===\"$\"?u={[Jx]:c,[Zv]:2}:a.match(/\\\\w/)||(u={[Jx]:c,[Zv]:1});break}u&&(r!==u&&o(c),r=u)}),o(),i.join(\"\")}function xzt(e,t={}){return wzt(e,t)}var qS=class extends Error{constructor(...[t,n]){let r,o;if(n){let{cause:a,...c}=n;a&&(o={cause:a}),Object.keys(c).length>0&&(r=c)}let i=xzt(t,r);super(i,o);Cf(this,\"cause\",this.cause);Cf(this,\"context\");this.context={__code:t,...r},this.name=\"SolanaError\"}};f();function Ezt(e,t){return\"fixedSize\"in t?t.fixedSize:t.getSizeFromValue(e)}function ctt(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(Ezt(t,e));return e.write(t,n,0),n}})}function utt(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function c7(e){return\"fixedSize\"in e&&typeof e.fixedSize==\"number\"}function ltt(e,t){if(c7(e)!==c7(t))throw new qS(d1e);if(c7(e)&&c7(t)&&e.fixedSize!==t.fixedSize)throw new qS(f1e,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!c7(e)&&!c7(t)&&e.maxSize!==t.maxSize)throw new qS(p1e,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function dtt(e,t,n=0){if(t.length-n<=0)throw new qS(u1e,{codecDescription:e})}function ftt(e,t,n,r=0){let o=n.length-r;if(o<t)throw new qS(l1e,{bytesLength:o,codecDescription:e,expected:t})}function Azt(e,t,n,r){if(r<t||r>n)throw new qS(h1e,{codecDescription:e,max:n,min:t,value:r})}function ptt(e){return e?.endian!==1}function _zt(e){return ctt({fixedSize:e.size,write(t,n,r){e.range&&Azt(e.name,e.range[0],e.range[1],t);let o=new ArrayBuffer(e.size);return e.set(new DataView(o),t,ptt(e.config)),n.set(new Uint8Array(o),r),r+e.size}})}function Szt(e){return utt({fixedSize:e.size,read(t,n=0){dtt(e.name,t,n),ftt(e.name,e.size,t,n);let r=new DataView(Tzt(t,n,e.size));return[e.get(r,ptt(e.config)),n+e.size]}})}function Tzt(e,t,n){let r=e.byteOffset+(t??0),o=n??e.byteLength;return e.buffer.slice(r,r+o)}var m1e=(e={})=>_zt({config:e,name:\"u64\",range:[0n,BigInt(\"0xffffffffffffffff\")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),Czt=(e={})=>Szt({config:e,get:(t,n)=>t.getBigUint64(0,n),name:\"u64\",size:8}),htt=(e={})=>ltt(m1e(e),Czt(e));f();var g1e=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,u=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??u),i!=null&&(this.cause=u),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};function Rzt(e){return fF(e)&&typeof e[Symbol.iterator]==\"function\"}function fF(e){return typeof e==\"object\"&&e!=null}function cee(e){return fF(e)&&!Array.isArray(e)}function S1(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function Izt(e){let{done:t,value:n}=e.next();return t?void 0:n}function Ozt(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:u=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${S1(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*mtt(e,t,n,r){Rzt(e)||(e=[e]);for(let o of e){let i=Ozt(o,t,n,r);i&&(yield i)}}function*y1e(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o,mask:a};i&&(e=t.coercer(e,c));let u=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,u=\"not_valid\",yield[d,void 0];for(let[d,p,h]of t.entries(e,c)){let g=y1e(p,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,p],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(u=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(p=y[1],d===void 0?e=p:e instanceof Map?e.set(d,p):e instanceof Set?e.add(p):fF(e)&&(p!==void 0||d in e)&&(e[d]=p))}if(u!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,u=\"not_refined\",yield[d,void 0];u===\"valid\"&&(yield[void 0,e])}var Rg=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=u=>u,entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,o?this.validator=(u,d)=>{let p=o(u,d);return mtt(p,d,this,u)}:this.validator=()=>[],i?this.refiner=(u,d)=>{let p=i(u,d);return mtt(p,d,this,u)}:this.refiner=()=>[]}assert(t,n){return gtt(t,this,n)}create(t,n){return u7(t,this,n)}is(t){return ytt(t,this)}mask(t,n){return kzt(t,this,n)}validate(t,n={}){return pF(t,this,n)}};function gtt(e,t,n){let r=pF(e,t,{message:n});if(r[0])throw r[0]}function u7(e,t,n){let r=pF(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function kzt(e,t,n){let r=pF(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function ytt(e,t){return!pF(e,t)[0]}function pF(e,t,n={}){let r=y1e(e,t,n),o=Izt(r);return o[0]?[new g1e(o[0],function*(){for(let a of r)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function aR(e,t){return new Rg({type:e,schema:null,validator:t})}function btt(){return aR(\"any\",()=>!0)}function rn(e){return new Rg({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${S1(t)}`}})}function T1(){return aR(\"boolean\",e=>typeof e==\"boolean\")}function uee(e){return aR(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${S1(t)}`)}function ns(e){let t=S1(e),n=typeof e;return new Rg({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator(r){return r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${S1(r)}`}})}function Nzt(){return aR(\"never\",()=>!1)}function on(e){return new Rg({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function Ve(){return aR(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${S1(e)}`)}function Cn(e){return new Rg({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function b1e(e,t){return new Rg({type:\"record\",schema:null,*entries(n){if(fF(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return cee(n)||`Expected an object, but received: ${S1(n)}`},coercer(n){return cee(n)?{...n}:n}})}function Ht(){return aR(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${S1(e)}`)}function lee(e){let t=Nzt();return new Rg({type:\"tuple\",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let o=0;o<r;o++)yield[o,n[o],e[o]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${S1(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function Ct(e){let t=Object.keys(e);return new Rg({type:\"type\",schema:e,*entries(n){if(fF(n))for(let r of t)yield[r,n[r],e[r]]},validator(n){return cee(n)||`Expected an object, but received: ${S1(n)}`},coercer(n){return cee(n)?{...n}:n}})}function Gd(e){let t=e.map(n=>n.type).join(\" | \");return new Rg({type:\"union\",schema:null,coercer(n,r){for(let o of e){let[i,a]=o.validate(n,{coerce:!0,mask:r.mask});if(!i)return a}return n},validator(n,r){let o=[];for(let i of e){let[...a]=y1e(n,i,r),[c]=a;if(c[0])for(let[u]of a)u&&o.push(u);else return[]}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${S1(n)}`,...o]}})}function sR(){return aR(\"unknown\",()=>!0)}function l7(e,t,n){return new Rg({...e,coercer:(r,o)=>ytt(r,t)?e.coercer(n(r,o),o):e.coercer(r,o)})}var Uzt=he(Ett());f();var Bzt=he(v2(),1);R_();q9();Yle();var Ngr=ph.utils.randomPrivateKey,Att=()=>{let e=ph.utils.randomPrivateKey(),t=_1e(e),n=new Uint8Array(64);return n.set(e),n.set(t,32),{publicKey:t,secretKey:n}},_1e=ph.getPublicKey;function _tt(e){try{return ph.ExtendedPoint.fromHex(e),!0}catch{return!1}}var U1e=(e,t)=>ph.sign(e,t.slice(0,32)),Fzt=ph.verify,Jo=e=>Xn.Buffer.isBuffer(e)?e:e instanceof Uint8Array?Xn.Buffer.from(e.buffer,e.byteOffset,e.byteLength):Xn.Buffer.from(e),S1e=class{constructor(t){Object.assign(this,t)}encode(){return Xn.Buffer.from((0,h7.serialize)(fee,this))}static decode(t){return(0,h7.deserialize)(fee,this,t)}static decodeUnchecked(t){return(0,h7.deserializeUnchecked)(fee,this,t)}};var fee=new Map,Ltt,Hzt=32,YS=32;function zzt(e){return e._bn!==void 0}var Stt=1,Or=class e extends S1e{constructor(t){if(super({}),this._bn=void 0,zzt(t))this._bn=t._bn;else{if(typeof t==\"string\"){let n=qd.default.decode(t);if(n.length!=YS)throw new Error(\"Invalid public key input\");this._bn=new A1e.default(n)}else this._bn=new A1e.default(t);if(this._bn.byteLength()>YS)throw new Error(\"Invalid public key input\")}}static unique(){let t=new e(Stt);return Stt+=1,new e(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return qd.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){let t=this._bn.toArrayLike(Xn.Buffer);if(t.length===YS)return t;let n=Xn.Buffer.alloc(32);return t.copy(n,32-t.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,n,r){let o=Xn.Buffer.concat([t.toBuffer(),Xn.Buffer.from(n),r.toBuffer()]),i=$3(o);return new e(i)}static createProgramAddressSync(t,n){let r=Xn.Buffer.alloc(0);t.forEach(function(i){if(i.length>Hzt)throw new TypeError(\"Max seed length exceeded\");r=Xn.Buffer.concat([r,Jo(i)])}),r=Xn.Buffer.concat([r,n.toBuffer(),Xn.Buffer.from(\"ProgramDerivedAddress\")]);let o=$3(r);if(_tt(o))throw new Error(\"Invalid seeds, address must fall off the curve\");return new e(o)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let r=255,o;for(;r!=0;){try{let i=t.concat(Xn.Buffer.from([r]));o=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[o,r]}throw new Error(\"Unable to find a viable program address nonce\")}static async findProgramAddress(t,n){return this.findProgramAddressSync(t,n)}static isOnCurve(t){let n=new e(t);return _tt(n.toBytes())}};Ltt=Or;Or.default=new Ltt(\"11111111111111111111111111111111\");fee.set(Or,{kind:\"struct\",fields:[[\"_bn\",\"u256\"]]});var Pgr=new Or(\"BPFLoader1111111111111111111111111111111111\"),cR=1232,F1e=127,pee=64,T1e=class extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}};Object.defineProperty(T1e.prototype,\"name\",{value:\"TransactionExpiredBlockheightExceededError\"});var C1e=class extends Error{constructor(t,n){super(`Transaction was not confirmed in ${n.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}};Object.defineProperty(C1e.prototype,\"name\",{value:\"TransactionExpiredTimeoutError\"});var R1e=class extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}};Object.defineProperty(R1e.prototype,\"name\",{value:\"TransactionExpiredNonceInvalidError\"});var f7=class{constructor(t,n){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}keySegments(){let t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(let n of this.keySegments()){if(t<n.length)return n[t];t-=n.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error(\"Account index overflow encountered during compilation\");let r=new Map;this.keySegments().flat().forEach((i,a)=>{r.set(i.toBase58(),a)});let o=i=>{let a=r.get(i.toBase58());if(a===void 0)throw new Error(\"Encountered an unknown instruction account key during compilation\");return a};return t.map(i=>({programIdIndex:o(i.programId),accountKeyIndexes:i.keys.map(a=>o(a.pubkey)),data:i.data}))}},Eo=(e=\"publicKey\")=>Ee.blob(32,e),jzt=(e=\"signature\")=>Ee.blob(64,e),d7=(e=\"string\")=>{let t=Ee.struct([Ee.u32(\"length\"),Ee.u32(\"lengthPadding\"),Ee.blob(Ee.offset(Ee.u32(),-8),\"chars\")],e),n=t.decode.bind(t),r=t.encode.bind(t),o=t;return o.decode=(i,a)=>n(i,a).chars.toString(),o.encode=(i,a,c)=>{let u={chars:Xn.Buffer.from(i,\"utf8\")};return r(u,a,c)},o.alloc=i=>Ee.u32().span+Ee.u32().span+Xn.Buffer.from(i,\"utf8\").length,o},Wzt=(e=\"authorized\")=>Ee.struct([Eo(\"staker\"),Eo(\"withdrawer\")],e),Vzt=(e=\"lockup\")=>Ee.struct([Ee.ns64(\"unixTimestamp\"),Ee.ns64(\"epoch\"),Eo(\"custodian\")],e),Gzt=(e=\"voteInit\")=>Ee.struct([Eo(\"nodePubkey\"),Eo(\"authorizedVoter\"),Eo(\"authorizedWithdrawer\"),Ee.u8(\"commission\")],e),qzt=(e=\"voteAuthorizeWithSeedArgs\")=>Ee.struct([Ee.u32(\"voteAuthorizationType\"),Eo(\"currentAuthorityDerivedKeyOwnerPubkey\"),d7(\"currentAuthorityDerivedKeySeed\"),Eo(\"newAuthorized\")],e);function Btt(e,t){let n=o=>{if(o.span>=0)return o.span;if(typeof o.alloc==\"function\")return o.alloc(t[o.property]);if(\"count\"in o&&\"elementLayout\"in o){let i=t[o.property];if(Array.isArray(i))return i.length*n(o.elementLayout)}else if(\"fields\"in o)return Btt({layout:o},t[o.property]);return 0},r=0;return e.layout.fields.forEach(o=>{r+=n(o)}),r}function Im(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(r&127)<<n*7,n+=1,(r&128)===0)break}return t}function Om(e,t){let n=t;for(;;){let r=n&127;if(n>>=7,n==0){e.push(r);break}else r|=128,e.push(r)}}function La(e,t){if(!e)throw new Error(t||\"Assertion failed\")}var hee=class e{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){let r=new Map,o=a=>{let c=a.toBase58(),u=r.get(c);return u===void 0&&(u={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(c,u)),u},i=o(n);i.isSigner=!0,i.isWritable=!0;for(let a of t){o(a.programId).isInvoked=!0;for(let c of a.keys){let u=o(c.pubkey);u.isSigner||(u.isSigner=c.isSigner),u.isWritable||(u.isWritable=c.isWritable)}}return new e(n,r)}getMessageComponents(){let t=[...this.keyMetaMap.entries()];La(t.length<=256,\"Max static account keys length exceeded\");let n=t.filter(([,u])=>u.isSigner&&u.isWritable),r=t.filter(([,u])=>u.isSigner&&!u.isWritable),o=t.filter(([,u])=>!u.isSigner&&u.isWritable),i=t.filter(([,u])=>!u.isSigner&&!u.isWritable),a={numRequiredSignatures:n.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{La(n.length>0,\"Expected at least one writable signer key\");let[u]=n[0];La(u===this.payer.toBase58(),\"Expected first writable signer key to be the fee payer\")}let c=[...n.map(([u])=>new Or(u)),...r.map(([u])=>new Or(u)),...o.map(([u])=>new Or(u)),...i.map(([u])=>new Or(u))];return[a,c]}extractTableLookup(t){let[n,r]=this.drainKeysFoundInLookupTable(t.state.addresses,a=>!a.isSigner&&!a.isInvoked&&a.isWritable),[o,i]=this.drainKeysFoundInLookupTable(t.state.addresses,a=>!a.isSigner&&!a.isInvoked&&!a.isWritable);if(!(n.length===0&&o.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(t,n){let r=new Array,o=new Array;for(let[i,a]of this.keyMetaMap.entries())if(n(a)){let c=new Or(i),u=t.findIndex(d=>d.equals(c));u>=0&&(La(u<256,\"Max lookup table index exceeded\"),r.push(u),o.push(c),this.keyMetaMap.delete(i))}return[r,o]}},Utt=\"Reached end of buffer unexpectedly\";function $x(e){if(e.length===0)throw new Error(Utt);return e.shift()}function km(e,...t){let[n]=t;if(t.length===2?n+(t[1]??0)>e.length:n>=e.length)throw new Error(Utt);return e.splice(...t)}var yF=class e{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(n=>new Or(n)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(n=>this.indexToProgramIds.set(n.programIdIndex,this.accountKeys[n.programIdIndex]))}get version(){return\"legacy\"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:qd.default.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new f7(this.staticAccountKeys)}static compile(t){let n=hee.compile(t.instructions,t.payerKey),[r,o]=n.getMessageComponents(),a=new f7(o).compileInstructions(t.instructions).map(c=>({programIdIndex:c.programIdIndex,accounts:c.accountKeyIndexes,data:qd.default.encode(c.data)}));return new e({header:r,accountKeys:o,recentBlockhash:t.recentBlockhash,instructions:a})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){let r=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return r<i}else{let r=n-this.header.numReadonlySignedAccounts;return t<r}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,n)=>!this.isProgramId(n))}serialize(){let t=this.accountKeys.length,n=[];Om(n,t);let r=this.instructions.map(h=>{let{accounts:g,programIdIndex:y}=h,v=Array.from(qd.default.decode(h.data)),x=[];Om(x,g.length);let R=[];return Om(R,v.length),{programIdIndex:y,keyIndicesCount:Xn.Buffer.from(x),keyIndices:g,dataLength:Xn.Buffer.from(R),data:v}}),o=[];Om(o,r.length);let i=Xn.Buffer.alloc(cR);Xn.Buffer.from(o).copy(i);let a=o.length;r.forEach(h=>{let y=Ee.struct([Ee.u8(\"programIdIndex\"),Ee.blob(h.keyIndicesCount.length,\"keyIndicesCount\"),Ee.seq(Ee.u8(\"keyIndex\"),h.keyIndices.length,\"keyIndices\"),Ee.blob(h.dataLength.length,\"dataLength\"),Ee.seq(Ee.u8(\"userdatum\"),h.data.length,\"data\")]).encode(h,i,a);a+=y}),i=i.slice(0,a);let c=Ee.struct([Ee.blob(1,\"numRequiredSignatures\"),Ee.blob(1,\"numReadonlySignedAccounts\"),Ee.blob(1,\"numReadonlyUnsignedAccounts\"),Ee.blob(n.length,\"keyCount\"),Ee.seq(Eo(\"key\"),t,\"keys\"),Eo(\"recentBlockhash\")]),u={numRequiredSignatures:Xn.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Xn.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Xn.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Xn.Buffer.from(n),keys:this.accountKeys.map(h=>Jo(h.toBytes())),recentBlockhash:qd.default.decode(this.recentBlockhash)},d=Xn.Buffer.alloc(2048),p=c.encode(u,d);return i.copy(d,p),d.slice(0,p+i.length)}static from(t){let n=[...t],r=$x(n);if(r!==(r&F1e))throw new Error(\"Versioned messages must be deserialized with VersionedMessage.deserialize()\");let o=$x(n),i=$x(n),a=Im(n),c=[];for(let g=0;g<a;g++){let y=km(n,0,YS);c.push(new Or(Xn.Buffer.from(y)))}let u=km(n,0,YS),d=Im(n),p=[];for(let g=0;g<d;g++){let y=$x(n),v=Im(n),x=km(n,0,v),R=Im(n),S=km(n,0,R),M=qd.default.encode(Xn.Buffer.from(S));p.push({programIdIndex:y,accounts:x,data:M})}let h={header:{numRequiredSignatures:r,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:i},recentBlockhash:qd.default.encode(Xn.Buffer.from(u)),accountKeys:c,instructions:p};return new e(h)}},I1e=class e{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(let n of this.addressTableLookups)t+=n.readonlyIndexes.length+n.writableIndexes.length;return t}getAccountKeys(t){let n;if(t&&\"accountKeysFromLookups\"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error(\"Failed to get account keys because of a mismatch in the number of account keys from lookups\");n=t.accountKeysFromLookups}else if(t&&\"addressLookupTableAccounts\"in t&&t.addressLookupTableAccounts)n=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error(\"Failed to get account keys because address table lookups were not resolved\");return new f7(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r){let o=t-r,i=this.addressTableLookups.reduce((a,c)=>a+c.writableIndexes.length,0);return o<i}else if(t>=this.header.numRequiredSignatures){let o=t-n,a=r-n-this.header.numReadonlyUnsignedAccounts;return o<a}else{let o=n-this.header.numReadonlySignedAccounts;return t<o}}resolveAddressTableLookups(t){let n={writable:[],readonly:[]};for(let r of this.addressTableLookups){let o=t.find(i=>i.key.equals(r.accountKey));if(!o)throw new Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(let i of r.writableIndexes)if(i<o.state.addresses.length)n.writable.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`);for(let i of r.readonlyIndexes)if(i<o.state.addresses.length)n.readonly.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`)}return n}static compile(t){let n=hee.compile(t.instructions,t.payerKey),r=new Array,o={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(let p of i){let h=n.extractTableLookup(p);if(h!==void 0){let[g,{writable:y,readonly:v}]=h;r.push(g),o.writable.push(...y),o.readonly.push(...v)}}let[a,c]=n.getMessageComponents(),d=new f7(c,o).compileInstructions(t.instructions);return new e({header:a,staticAccountKeys:c,recentBlockhash:t.recentBlockhash,compiledInstructions:d,addressTableLookups:r})}serialize(){let t=Array();Om(t,this.staticAccountKeys.length);let n=this.serializeInstructions(),r=Array();Om(r,this.compiledInstructions.length);let o=this.serializeAddressTableLookups(),i=Array();Om(i,this.addressTableLookups.length);let a=Ee.struct([Ee.u8(\"prefix\"),Ee.struct([Ee.u8(\"numRequiredSignatures\"),Ee.u8(\"numReadonlySignedAccounts\"),Ee.u8(\"numReadonlyUnsignedAccounts\")],\"header\"),Ee.blob(t.length,\"staticAccountKeysLength\"),Ee.seq(Eo(),this.staticAccountKeys.length,\"staticAccountKeys\"),Eo(\"recentBlockhash\"),Ee.blob(r.length,\"instructionsLength\"),Ee.blob(n.length,\"serializedInstructions\"),Ee.blob(i.length,\"addressTableLookupsLength\"),Ee.blob(o.length,\"serializedAddressTableLookups\")]),c=new Uint8Array(cR),d=a.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(p=>p.toBytes()),recentBlockhash:qd.default.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:o},c);return c.slice(0,d)}serializeInstructions(){let t=0,n=new Uint8Array(cR);for(let r of this.compiledInstructions){let o=Array();Om(o,r.accountKeyIndexes.length);let i=Array();Om(i,r.data.length);let a=Ee.struct([Ee.u8(\"programIdIndex\"),Ee.blob(o.length,\"encodedAccountKeyIndexesLength\"),Ee.seq(Ee.u8(),r.accountKeyIndexes.length,\"accountKeyIndexes\"),Ee.blob(i.length,\"encodedDataLength\"),Ee.blob(r.data.length,\"data\")]);t+=a.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0,n=new Uint8Array(cR);for(let r of this.addressTableLookups){let o=Array();Om(o,r.writableIndexes.length);let i=Array();Om(i,r.readonlyIndexes.length);let a=Ee.struct([Eo(\"accountKey\"),Ee.blob(o.length,\"encodedWritableIndexesLength\"),Ee.seq(Ee.u8(),r.writableIndexes.length,\"writableIndexes\"),Ee.blob(i.length,\"encodedReadonlyIndexesLength\"),Ee.seq(Ee.u8(),r.readonlyIndexes.length,\"readonlyIndexes\")]);t+=a.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t],r=$x(n),o=r&F1e;La(r!==o,\"Expected versioned message but received legacy message\");let i=o;La(i===0,`Expected versioned message with version 0 but found version ${i}`);let a={numRequiredSignatures:$x(n),numReadonlySignedAccounts:$x(n),numReadonlyUnsignedAccounts:$x(n)},c=[],u=Im(n);for(let v=0;v<u;v++)c.push(new Or(km(n,0,YS)));let d=qd.default.encode(km(n,0,YS)),p=Im(n),h=[];for(let v=0;v<p;v++){let x=$x(n),R=Im(n),S=km(n,0,R),M=Im(n),P=new Uint8Array(km(n,0,M));h.push({programIdIndex:x,accountKeyIndexes:S,data:P})}let g=Im(n),y=[];for(let v=0;v<g;v++){let x=new Or(km(n,0,YS)),R=Im(n),S=km(n,0,R),M=Im(n),P=km(n,0,M);y.push({accountKey:x,writableIndexes:S,readonlyIndexes:P})}return new e({header:a,staticAccountKeys:c,recentBlockhash:d,compiledInstructions:h,addressTableLookups:y})}},vee={deserializeMessageVersion(e){let t=e[0],n=t&F1e;return n===t?\"legacy\":n},deserialize:e=>{let t=vee.deserializeMessageVersion(e);if(t===\"legacy\")return yF.from(e);if(t===0)return I1e.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};var Kzt=Xn.Buffer.alloc(pee).fill(0),aa=class{constructor(t){this.keys=void 0,this.programId=void 0,this.data=Xn.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:n,isWritable:r})=>({pubkey:t.toJSON(),isSigner:n,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}},wa=class e{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,\"nonceInfo\")){let{minContextSlot:n,nonceInfo:r}=t;this.minNonceContextSlot=n,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(t,\"lastValidBlockHeight\")){let{blockhash:n,lastValidBlockHeight:r}=t;this.recentBlockhash=n,this.lastValidBlockHeight=r}else{let{recentBlockhash:n,nonceInfo:r}=t;r&&(this.nonceInfo=r),this.recentBlockhash=n}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error(\"No instructions\");return t.forEach(n=>{\"instructions\"in n?this.instructions=this.instructions.concat(n.instructions):\"data\"in n&&\"programId\"in n&&\"keys\"in n?this.instructions.push(n):this.instructions.push(new aa(n))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?n=[this.nonceInfo.nonceInstruction,...this.instructions]:n=this.instructions):(t=this.recentBlockhash,n=this.instructions),!t)throw new Error(\"Transaction recentBlockhash required\");n.length<1&&console.warn(\"No instructions provided\");let r;if(this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw new Error(\"Transaction fee payer required\");for(let x=0;x<n.length;x++)if(n[x].programId===void 0)throw new Error(`Transaction instruction index ${x} has undefined program id`);let o=[],i=[];n.forEach(x=>{x.keys.forEach(S=>{i.push({...S})});let R=x.programId.toString();o.includes(R)||o.push(R)}),o.forEach(x=>{i.push({pubkey:new Or(x),isSigner:!1,isWritable:!1})});let a=[];i.forEach(x=>{let R=x.pubkey.toString(),S=a.findIndex(M=>M.pubkey.toString()===R);S>-1?(a[S].isWritable=a[S].isWritable||x.isWritable,a[S].isSigner=a[S].isSigner||x.isSigner):a.push(x)}),a.sort(function(x,R){if(x.isSigner!==R.isSigner)return x.isSigner?-1:1;if(x.isWritable!==R.isWritable)return x.isWritable?-1:1;let S={localeMatcher:\"best fit\",usage:\"sort\",sensitivity:\"variant\",ignorePunctuation:!1,numeric:!1,caseFirst:\"lower\"};return x.pubkey.toBase58().localeCompare(R.pubkey.toBase58(),\"en\",S)});let c=a.findIndex(x=>x.pubkey.equals(r));if(c>-1){let[x]=a.splice(c,1);x.isSigner=!0,x.isWritable=!0,a.unshift(x)}else a.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(let x of this.signatures){let R=a.findIndex(S=>S.pubkey.equals(x.publicKey));if(R>-1)a[R].isSigner||(a[R].isSigner=!0,console.warn(\"Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release.\"));else throw new Error(`unknown signer: ${x.publicKey.toString()}`)}let u=0,d=0,p=0,h=[],g=[];a.forEach(({pubkey:x,isSigner:R,isWritable:S})=>{R?(h.push(x.toString()),u+=1,S||(d+=1)):(g.push(x.toString()),S||(p+=1))});let y=h.concat(g),v=n.map(x=>{let{data:R,programId:S}=x;return{programIdIndex:y.indexOf(S.toString()),accounts:x.keys.map(M=>y.indexOf(M.pubkey.toString())),data:qd.default.encode(R)}});return v.forEach(x=>{La(x.programIdIndex>=0),x.accounts.forEach(R=>La(R>=0))}),new yF({header:{numRequiredSignatures:u,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:p},accountKeys:y,recentBlockhash:t,instructions:v})}_compile(){let t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((o,i)=>n[i].equals(o.publicKey))||(this.signatures=n.map(r=>({signature:null,publicKey:r}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set;this.signatures=t.filter(r=>{let o=r.toString();return n.has(o)?!1:(n.add(o),!0)}).map(r=>({signature:null,publicKey:r}))}sign(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set,r=[];for(let i of t){let a=i.publicKey.toString();n.has(a)||(n.add(a),r.push(i))}this.signatures=r.map(i=>({signature:null,publicKey:i.publicKey}));let o=this._compile();this._partialSign(o,...r)}partialSign(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set,r=[];for(let i of t){let a=i.publicKey.toString();n.has(a)||(n.add(a),r.push(i))}let o=this._compile();this._partialSign(o,...r)}_partialSign(t,...n){let r=t.serialize();n.forEach(o=>{let i=U1e(r,o.secretKey);this._addSignature(o.publicKey,Jo(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){La(n.length===64);let r=this.signatures.findIndex(o=>t.equals(o.publicKey));if(r<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[r].signature=Xn.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){let r={};for(let{signature:o,publicKey:i}of this.signatures)o===null?n&&(r.missing||(r.missing=[])).push(i):Fzt(o,t,i.toBytes())||(r.invalid||(r.invalid=[])).push(i);return r.invalid||r.missing?r:void 0}serialize(t){let{requireAllSignatures:n,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),o=this.serializeMessage();if(r){let i=this._getMessageSignednessErrors(o,n);if(i){let a=\"Signature verification failed.\";throw i.invalid&&(a+=`\\nInvalid signature for public key${i.invalid.length===1?\"\":\"(s)\"} [\\\\`${i.invalid.map(c=>c.toBase58()).join(\"`, `\")}\\\\`].`),i.missing&&(a+=`\\nMissing signature for public key${i.missing.length===1?\"\":\"(s)\"} [\\\\`${i.missing.map(c=>c.toBase58()).join(\"`, `\")}\\\\`].`),new Error(a)}}return this._serialize(o)}_serialize(t){let{signatures:n}=this,r=[];Om(r,n.length);let o=r.length+n.length*64+t.length,i=Xn.Buffer.alloc(o);return La(n.length<256),Xn.Buffer.from(r).copy(i,0),n.forEach(({signature:a},c)=>{a!==null&&(La(a.length===64,\"signature has invalid length\"),Xn.Buffer.from(a).copy(i,r.length+c*64))}),t.copy(i,r.length+n.length*64),La(i.length<=cR,`Transaction too large: ${i.length} > ${cR}`),i}get keys(){return La(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return La(this.instructions.length===1),this.instructions[0].programId}get data(){return La(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t],r=Im(n),o=[];for(let i=0;i<r;i++){let a=km(n,0,pee);o.push(qd.default.encode(Xn.Buffer.from(a)))}return e.populate(yF.from(n),o)}static populate(t,n=[]){let r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((o,i)=>{let a={signature:o==qd.default.encode(Kzt)?null:qd.default.decode(o),publicKey:t.accountKeys[i]};r.signatures.push(a)}),t.instructions.forEach(o=>{let i=o.accounts.map(a=>{let c=t.accountKeys[a];return{pubkey:c,isSigner:r.signatures.some(u=>u.publicKey.toString()===c.toString())||t.isAccountSigner(a),isWritable:t.isAccountWritable(a)}});r.instructions.push(new aa({keys:i,programId:t.accountKeys[o.programIdIndex],data:qd.default.decode(o.data)}))}),r._message=t,r._json=r.toJSON(),r}};var mee=class e{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)La(n.length===t.header.numRequiredSignatures,\"Expected signatures length to be equal to the number of required signatures\"),this.signatures=n;else{let r=[];for(let o=0;o<t.header.numRequiredSignatures;o++)r.push(new Uint8Array(pee));this.signatures=r}this.message=t}serialize(){let t=this.message.serialize(),n=Array();Om(n,this.signatures.length);let r=Ee.struct([Ee.blob(n.length,\"encodedSignaturesLength\"),Ee.seq(jzt(),this.signatures.length,\"signatures\"),Ee.blob(t.length,\"serializedMessage\")]),o=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},o);return o.slice(0,i)}static deserialize(t){let n=[...t],r=[],o=Im(n);for(let a=0;a<o;a++)r.push(new Uint8Array(km(n,0,pee)));let i=vee.deserialize(new Uint8Array(n));return new e(i,r)}sign(t){let n=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(let o of t){let i=r.findIndex(a=>a.equals(o.publicKey));La(i>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[i]=U1e(n,o.secretKey)}}addSignature(t,n){La(n.byteLength===64,\"Signature must be 64 bytes long\");let o=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));La(o>=0,`Can not add signature; \\\\`${t.toBase58()}\\\\` is not required to sign this transaction`),this.signatures[o]=n}},Yzt=160,Zzt=64,Qzt=Yzt/Zzt,Jzt=1e3/Qzt,Xx=new Or(\"SysvarC1ock11111111111111111111111111111111\"),Mgr=new Or(\"SysvarEpochSchedu1e111111111111111111111111\"),Dgr=new Or(\"Sysvar1nstructions1111111111111111111111111\"),v1e=new Or(\"SysvarRecentB1ockHashes11111111111111111111\"),bF=new Or(\"SysvarRent111111111111111111111111111111111\"),Lgr=new Or(\"SysvarRewards111111111111111111111111111111\"),Bgr=new Or(\"SysvarS1otHashes111111111111111111111111111\"),Ugr=new Or(\"SysvarS1otHistory11111111111111111111111111\"),w1e=new Or(\"SysvarStakeHistory1111111111111111111111111\"),O1e=class extends Error{constructor({action:t,signature:n,transactionMessage:r,logs:o}){let i=o?`Logs: \\n${JSON.stringify(o.slice(-10),null,2)}. `:\"\",a=\"\\\\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.\",c;switch(t){case\"send\":c=`Transaction ${n} resulted in an error. \\n${r}. `+i+a;break;case\"simulate\":c=`Simulation failed. \\nMessage: ${r}. \\n`+i+a;break;default:c=`Unknown action \\'${(u=>u)(t)}\\'`}super(c),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=n,this.transactionMessage=r,this.transactionLogs=o||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let t=this.transactionLogs;if(!(t!=null&&typeof t==\"object\"&&\"then\"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((n,r)=>{t.getTransaction(this.signature).then(o=>{if(o&&o.meta&&o.meta.logMessages){let i=o.meta.logMessages;this.transactionLogs=i,n(i)}else r(new Error(\"Log messages not found\"))}).catch(r)})),await this.transactionLogs}};async function Ttt(e,t,n,r){let o=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},i=await e.sendTransaction(t,n,o),a;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)a=(await e.confirmTransaction({abortSignal:r?.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},r&&r.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){let{nonceInstruction:c}=t.nonceInfo,u=c.keys[0].pubkey;a=(await e.confirmTransaction({abortSignal:r?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:u,nonceValue:t.nonceInfo.nonce,signature:i},r&&r.commitment)).value}else r?.abortSignal!=null&&console.warn(\"sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable.\"),a=(await e.confirmTransaction(i,r&&r.commitment)).value;if(a.err)throw i!=null?new O1e({action:\"send\",signature:i,transactionMessage:`Status: (${JSON.stringify(a)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(a)})`);return i}function Xzt(e){return new Promise(t=>setTimeout(t,e))}function No(e,t){let n=e.layout.span>=0?e.layout.span:Btt(e,t),r=Xn.Buffer.alloc(n),o=Object.assign({instruction:e.index},t);return e.layout.encode(o,r),r}var $zt=Ee.nu64(\"lamportsPerSignature\"),ejt=Ee.struct([Ee.u32(\"version\"),Ee.u32(\"state\"),Eo(\"authorizedPubkey\"),Eo(\"nonce\"),Ee.struct([$zt],\"feeCalculator\")]),Ctt=ejt.span;function p7(e){let t=(0,Dtt.blob)(8,e),n=t.decode.bind(t),r=t.encode.bind(t),o=t,i=htt();return o.decode=(a,c)=>{let u=n(a,c);return i.decode(u)},o.encode=(a,c,u)=>{let d=i.encode(a);return r(d,c,u)},o}var Ig=Object.freeze({Create:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\"),Ee.ns64(\"space\"),Eo(\"programId\")])},Assign:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"programId\")])},Transfer:{index:2,layout:Ee.struct([Ee.u32(\"instruction\"),p7(\"lamports\")])},CreateWithSeed:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"base\"),d7(\"seed\"),Ee.ns64(\"lamports\"),Ee.ns64(\"space\"),Eo(\"programId\")])},AdvanceNonceAccount:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])},WithdrawNonceAccount:{index:5,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},InitializeNonceAccount:{index:6,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"authorized\")])},AuthorizeNonceAccount:{index:7,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"authorized\")])},Allocate:{index:8,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"space\")])},AllocateWithSeed:{index:9,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"base\"),d7(\"seed\"),Ee.ns64(\"space\"),Eo(\"programId\")])},AssignWithSeed:{index:10,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"base\"),d7(\"seed\"),Eo(\"programId\")])},TransferWithSeed:{index:11,layout:Ee.struct([Ee.u32(\"instruction\"),p7(\"lamports\"),d7(\"seed\"),Eo(\"programId\")])},UpgradeNonceAccount:{index:12,layout:Ee.struct([Ee.u32(\"instruction\")])}}),tp=class e{constructor(){}static createAccount(t){let n=Ig.Create,r=No(n,{lamports:t.lamports,space:t.space,programId:Jo(t.programId.toBuffer())});return new aa({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:r})}static transfer(t){let n,r;if(\"basePubkey\"in t){let o=Ig.TransferWithSeed;n=No(o,{lamports:BigInt(t.lamports),seed:t.seed,programId:Jo(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{let o=Ig.Transfer;n=No(o,{lamports:BigInt(t.lamports)}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new aa({keys:r,programId:this.programId,data:n})}static assign(t){let n,r;if(\"basePubkey\"in t){let o=Ig.AssignWithSeed;n=No(o,{base:Jo(t.basePubkey.toBuffer()),seed:t.seed,programId:Jo(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let o=Ig.Assign;n=No(o,{programId:Jo(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new aa({keys:r,programId:this.programId,data:n})}static createAccountWithSeed(t){let n=Ig.CreateWithSeed,r=No(n,{base:Jo(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:Jo(t.programId.toBuffer())}),o=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||o.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new aa({keys:o,programId:this.programId,data:r})}static createNonceAccount(t){let n=new wa;\"basePubkey\"in t&&\"seed\"in t?n.add(e.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Ctt,programId:this.programId})):n.add(e.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Ctt,programId:this.programId}));let r={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return n.add(this.nonceInitialize(r)),n}static nonceInitialize(t){let n=Ig.InitializeNonceAccount,r=No(n,{authorized:Jo(t.authorizedPubkey.toBuffer())}),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:v1e,isSigner:!1,isWritable:!1},{pubkey:bF,isSigner:!1,isWritable:!1}],programId:this.programId,data:r};return new aa(o)}static nonceAdvance(t){let n=Ig.AdvanceNonceAccount,r=No(n),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:v1e,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r};return new aa(o)}static nonceWithdraw(t){let n=Ig.WithdrawNonceAccount,r=No(n,{lamports:t.lamports});return new aa({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:v1e,isSigner:!1,isWritable:!1},{pubkey:bF,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static nonceAuthorize(t){let n=Ig.AuthorizeNonceAccount,r=No(n,{authorized:Jo(t.newAuthorizedPubkey.toBuffer())});return new aa({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static allocate(t){let n,r;if(\"basePubkey\"in t){let o=Ig.AllocateWithSeed;n=No(o,{base:Jo(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:Jo(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let o=Ig.Allocate;n=No(o,{space:t.space}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new aa({keys:r,programId:this.programId,data:n})}};tp.programId=new Or(\"11111111111111111111111111111111\");var tjt=cR-300,k1e=class e{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/e.chunkSize)+1+1)}static async load(t,n,r,o,i){{let h=await t.getMinimumBalanceForRentExemption(i.length),g=await t.getAccountInfo(r.publicKey,\"confirmed\"),y=null;if(g!==null){if(g.executable)return console.error(\"Program load failed, account is already executable\"),!1;g.data.length!==i.length&&(y=y||new wa,y.add(tp.allocate({accountPubkey:r.publicKey,space:i.length}))),g.owner.equals(o)||(y=y||new wa,y.add(tp.assign({accountPubkey:r.publicKey,programId:o}))),g.lamports<h&&(y=y||new wa,y.add(tp.transfer({fromPubkey:n.publicKey,toPubkey:r.publicKey,lamports:h-g.lamports})))}else y=new wa().add(tp.createAccount({fromPubkey:n.publicKey,newAccountPubkey:r.publicKey,lamports:h>0?h:1,space:i.length,programId:o}));y!==null&&await Ttt(t,y,[n,r],{commitment:\"confirmed\"})}let a=Ee.struct([Ee.u32(\"instruction\"),Ee.u32(\"offset\"),Ee.u32(\"bytesLength\"),Ee.u32(\"bytesLengthPadding\"),Ee.seq(Ee.u8(\"byte\"),Ee.offset(Ee.u32(),-8),\"bytes\")]),c=e.chunkSize,u=0,d=i,p=[];for(;d.length>0;){let h=d.slice(0,c),g=Xn.Buffer.alloc(c+16);a.encode({instruction:0,offset:u,bytes:h,bytesLength:0,bytesLengthPadding:0},g);let y=new wa().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:g});p.push(Ttt(t,y,[n,r],{commitment:\"confirmed\"})),t._rpcEndpoint.includes(\"solana.com\")&&await Xzt(1e3/4),u+=c,d=d.slice(c)}await Promise.all(p);{let h=Ee.struct([Ee.u32(\"instruction\")]),g=Xn.Buffer.alloc(h.span);h.encode({instruction:1},g);let y=new wa().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0},{pubkey:bF,isSigner:!1,isWritable:!1}],programId:o,data:g}),v=\"processed\",x=await t.sendTransaction(y,[n,r],{preflightCommitment:v}),{context:R,value:S}=await t.confirmTransaction({signature:x,lastValidBlockHeight:y.lastValidBlockHeight,blockhash:y.recentBlockhash},v);if(S.err)throw new Error(`Transaction ${x} failed (${JSON.stringify(S)})`);for(;;){try{if(await t.getSlot({commitment:v})>R.slot)break}catch{}await new Promise(M=>setTimeout(M,Math.round(Jzt/2)))}}return!0}};k1e.chunkSize=tjt;var Fgr=new Or(\"BPFLoader2111111111111111111111111111111111\");var Hgr=globalThis.fetch;var zgr={index:1,layout:Ee.struct([Ee.u32(\"typeIndex\"),p7(\"deactivationSlot\"),Ee.nu64(\"lastExtendedSlot\"),Ee.u8(\"lastExtendedStartIndex\"),Ee.u8(),Ee.seq(Eo(),Ee.offset(Ee.u8(),-1),\"authority\")])};var Hs=l7(uee(Or),Ht(),e=>new Or(e)),Ftt=lee([Ht(),ns(\"base64\")]),H1e=l7(uee(Xn.Buffer),Ftt,e=>Xn.Buffer.from(e[0],\"base64\")),jgr=30*1e3;function Htt(e){return Gd([Ct({jsonrpc:ns(\"2.0\"),id:Ht(),result:e}),Ct({jsonrpc:ns(\"2.0\"),id:Ht(),error:Ct({code:sR(),message:Ht(),data:Cn(btt())})})])}var njt=Htt(sR());function xa(e){return l7(Htt(e),njt,t=>\"error\"in t?t:{...t,result:u7(t.result,e)})}function C1(e){return xa(Ct({context:Ct({slot:Ve()}),value:e}))}function wee(e){return Ct({context:Ct({slot:Ve()}),value:e})}var rjt=Ct({foundation:Ve(),foundationTerm:Ve(),initial:Ve(),taper:Ve(),terminal:Ve()}),Wgr=xa(rn(on(Ct({epoch:Ve(),effectiveSlot:Ve(),amount:Ve(),postBalance:Ve(),commission:Cn(on(Ve()))})))),ojt=rn(Ct({slot:Ve(),prioritizationFee:Ve()})),ijt=Ct({total:Ve(),validator:Ve(),foundation:Ve(),epoch:Ve()}),ajt=Ct({epoch:Ve(),slotIndex:Ve(),slotsInEpoch:Ve(),absoluteSlot:Ve(),blockHeight:Cn(Ve()),transactionCount:Cn(Ve())}),sjt=Ct({slotsPerEpoch:Ve(),leaderScheduleSlotOffset:Ve(),warmup:T1(),firstNormalEpoch:Ve(),firstNormalSlot:Ve()}),cjt=b1e(Ht(),rn(Ve())),uR=on(Gd([Ct({}),Ht()])),ujt=Ct({err:uR}),ljt=ns(\"receivedSignature\"),Vgr=Ct({\"solana-core\":Ht(),\"feature-set\":Cn(Ve())}),djt=Ct({program:Ht(),programId:Hs,parsed:sR()}),fjt=Ct({programId:Hs,accounts:rn(Hs),data:Ht()}),Ggr=C1(Ct({err:on(Gd([Ct({}),Ht()])),logs:on(rn(Ht())),accounts:Cn(on(rn(on(Ct({executable:T1(),owner:Ht(),lamports:Ve(),data:rn(Ht()),rentEpoch:Cn(Ve())}))))),unitsConsumed:Cn(Ve()),returnData:Cn(on(Ct({programId:Ht(),data:lee([Ht(),ns(\"base64\")])}))),innerInstructions:Cn(on(rn(Ct({index:Ve(),instructions:rn(Gd([djt,fjt]))}))))})),qgr=C1(Ct({byIdentity:b1e(Ht(),rn(Ve())),range:Ct({firstSlot:Ve(),lastSlot:Ve()})}));var Kgr=xa(rjt),Ygr=xa(ijt),Zgr=xa(ojt),Qgr=xa(ajt),Jgr=xa(sjt),Xgr=xa(cjt),$gr=xa(Ve()),eyr=C1(Ct({total:Ve(),circulating:Ve(),nonCirculating:Ve(),nonCirculatingAccounts:rn(Hs)})),pjt=Ct({amount:Ht(),uiAmount:on(Ve()),decimals:Ve(),uiAmountString:Cn(Ht())}),tyr=C1(rn(Ct({address:Hs,amount:Ht(),uiAmount:on(Ve()),decimals:Ve(),uiAmountString:Cn(Ht())}))),nyr=C1(rn(Ct({pubkey:Hs,account:Ct({executable:T1(),owner:Hs,lamports:Ve(),data:H1e,rentEpoch:Ve()})}))),N1e=Ct({program:Ht(),parsed:sR(),space:Ve()}),ryr=C1(rn(Ct({pubkey:Hs,account:Ct({executable:T1(),owner:Hs,lamports:Ve(),data:N1e,rentEpoch:Ve()})}))),oyr=C1(rn(Ct({lamports:Ve(),address:Hs}))),z1e=Ct({executable:T1(),owner:Hs,lamports:Ve(),data:H1e,rentEpoch:Ve()}),iyr=Ct({pubkey:Hs,account:z1e}),hjt=l7(Gd([uee(Xn.Buffer),N1e]),Gd([Ftt,N1e]),e=>Array.isArray(e)?u7(e,H1e):e),mjt=Ct({executable:T1(),owner:Hs,lamports:Ve(),data:hjt,rentEpoch:Ve()}),ayr=Ct({pubkey:Hs,account:mjt}),syr=Ct({state:Gd([ns(\"active\"),ns(\"inactive\"),ns(\"activating\"),ns(\"deactivating\")]),active:Ve(),inactive:Ve()}),cyr=xa(rn(Ct({signature:Ht(),slot:Ve(),err:uR,memo:on(Ht()),blockTime:Cn(on(Ve()))}))),uyr=xa(rn(Ct({signature:Ht(),slot:Ve(),err:uR,memo:on(Ht()),blockTime:Cn(on(Ve()))}))),lyr=Ct({subscription:Ve(),result:wee(z1e)}),gjt=Ct({pubkey:Hs,account:z1e}),dyr=Ct({subscription:Ve(),result:wee(gjt)}),yjt=Ct({parent:Ve(),slot:Ve(),root:Ve()}),fyr=Ct({subscription:Ve(),result:yjt}),bjt=Gd([Ct({type:Gd([ns(\"firstShredReceived\"),ns(\"completed\"),ns(\"optimisticConfirmation\"),ns(\"root\")]),slot:Ve(),timestamp:Ve()}),Ct({type:ns(\"createdBank\"),parent:Ve(),slot:Ve(),timestamp:Ve()}),Ct({type:ns(\"frozen\"),slot:Ve(),timestamp:Ve(),stats:Ct({numTransactionEntries:Ve(),numSuccessfulTransactions:Ve(),numFailedTransactions:Ve(),maxTransactionsPerEntry:Ve()})}),Ct({type:ns(\"dead\"),slot:Ve(),timestamp:Ve(),err:Ht()})]),pyr=Ct({subscription:Ve(),result:bjt}),hyr=Ct({subscription:Ve(),result:wee(Gd([ujt,ljt]))}),myr=Ct({subscription:Ve(),result:Ve()}),gyr=Ct({pubkey:Ht(),gossip:on(Ht()),tpu:on(Ht()),rpc:on(Ht()),version:on(Ht())}),Rtt=Ct({votePubkey:Ht(),nodePubkey:Ht(),activatedStake:Ve(),epochVoteAccount:T1(),epochCredits:rn(lee([Ve(),Ve(),Ve()])),commission:Ve(),lastVote:Ve(),rootSlot:on(Ve())}),yyr=xa(Ct({current:rn(Rtt),delinquent:rn(Rtt)})),vjt=Gd([ns(\"processed\"),ns(\"confirmed\"),ns(\"finalized\")]),wjt=Ct({slot:Ve(),confirmations:on(Ve()),err:uR,confirmationStatus:Cn(vjt)}),byr=C1(rn(on(wjt))),vyr=xa(Ve()),ztt=Ct({accountKey:Hs,writableIndexes:rn(Ve()),readonlyIndexes:rn(Ve())}),j1e=Ct({signatures:rn(Ht()),message:Ct({accountKeys:rn(Ht()),header:Ct({numRequiredSignatures:Ve(),numReadonlySignedAccounts:Ve(),numReadonlyUnsignedAccounts:Ve()}),instructions:rn(Ct({accounts:rn(Ve()),data:Ht(),programIdIndex:Ve()})),recentBlockhash:Ht(),addressTableLookups:Cn(rn(ztt))})}),jtt=Ct({pubkey:Hs,signer:T1(),writable:T1(),source:Cn(Gd([ns(\"transaction\"),ns(\"lookupTable\")]))}),Wtt=Ct({accountKeys:rn(jtt),signatures:rn(Ht())}),Vtt=Ct({parsed:sR(),program:Ht(),programId:Hs}),Gtt=Ct({accounts:rn(Hs),data:Ht(),programId:Hs}),xjt=Gd([Gtt,Vtt]),Ejt=Gd([Ct({parsed:sR(),program:Ht(),programId:Ht()}),Ct({accounts:rn(Ht()),data:Ht(),programId:Ht()})]),qtt=l7(xjt,Ejt,e=>\"accounts\"in e?u7(e,Gtt):u7(e,Vtt)),Ktt=Ct({signatures:rn(Ht()),message:Ct({accountKeys:rn(jtt),instructions:rn(qtt),recentBlockhash:Ht(),addressTableLookups:Cn(on(rn(ztt)))})}),gee=Ct({accountIndex:Ve(),mint:Ht(),owner:Cn(Ht()),programId:Cn(Ht()),uiTokenAmount:pjt}),Ytt=Ct({writable:rn(Hs),readonly:rn(Hs)}),xee=Ct({err:uR,fee:Ve(),innerInstructions:Cn(on(rn(Ct({index:Ve(),instructions:rn(Ct({accounts:rn(Ve()),data:Ht(),programIdIndex:Ve()}))})))),preBalances:rn(Ve()),postBalances:rn(Ve()),logMessages:Cn(on(rn(Ht()))),preTokenBalances:Cn(on(rn(gee))),postTokenBalances:Cn(on(rn(gee))),loadedAddresses:Cn(Ytt),computeUnitsConsumed:Cn(Ve()),costUnits:Cn(Ve())}),W1e=Ct({err:uR,fee:Ve(),innerInstructions:Cn(on(rn(Ct({index:Ve(),instructions:rn(qtt)})))),preBalances:rn(Ve()),postBalances:rn(Ve()),logMessages:Cn(on(rn(Ht()))),preTokenBalances:Cn(on(rn(gee))),postTokenBalances:Cn(on(rn(gee))),loadedAddresses:Cn(Ytt),computeUnitsConsumed:Cn(Ve()),costUnits:Cn(Ve())}),m7=Gd([ns(0),ns(\"legacy\")]),lR=Ct({pubkey:Ht(),lamports:Ve(),postBalance:on(Ve()),rewardType:on(Ht()),commission:Cn(on(Ve()))}),wyr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),transactions:rn(Ct({transaction:j1e,meta:on(xee),version:Cn(m7)})),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),xyr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),Eyr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),transactions:rn(Ct({transaction:Wtt,meta:on(xee),version:Cn(m7)})),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),Ayr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),transactions:rn(Ct({transaction:Ktt,meta:on(W1e),version:Cn(m7)})),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),_yr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),transactions:rn(Ct({transaction:Wtt,meta:on(W1e),version:Cn(m7)})),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),Syr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),rewards:Cn(rn(lR)),blockTime:on(Ve()),blockHeight:on(Ve())}))),Tyr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),transactions:rn(Ct({transaction:j1e,meta:on(xee)})),rewards:Cn(rn(lR)),blockTime:on(Ve())}))),Cyr=xa(on(Ct({blockhash:Ht(),previousBlockhash:Ht(),parentSlot:Ve(),signatures:rn(Ht()),blockTime:on(Ve())}))),Ryr=xa(on(Ct({slot:Ve(),meta:on(xee),blockTime:Cn(on(Ve())),transaction:j1e,version:Cn(m7)}))),Iyr=xa(on(Ct({slot:Ve(),transaction:Ktt,meta:on(W1e),blockTime:Cn(on(Ve())),version:Cn(m7)}))),Oyr=C1(Ct({blockhash:Ht(),lastValidBlockHeight:Ve()})),kyr=C1(T1()),Ajt=Ct({slot:Ve(),numTransactions:Ve(),numSlots:Ve(),samplePeriodSecs:Ve()}),Nyr=xa(rn(Ajt)),Pyr=C1(on(Ct({feeCalculator:Ct({lamportsPerSignature:Ve()})}))),Myr=xa(Ht()),Dyr=xa(Ht()),_jt=Ct({err:uR,logs:rn(Ht()),signature:Ht()}),Lyr=Ct({result:wee(_jt),subscription:Ve()});var P1e=class e{constructor(t){this._keypair=void 0,this._keypair=t??Att()}static generate(){return new e(Att())}static fromSecretKey(t,n){if(t.byteLength!==64)throw new Error(\"bad secret key size\");let r=t.slice(32,64);if(!n||!n.skipValidation){let o=t.slice(0,32),i=_1e(o);for(let a=0;a<32;a++)if(r[a]!==i[a])throw new Error(\"provided secretKey is invalid\")}return new e({publicKey:r,secretKey:t})}static fromSeed(t){let n=_1e(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}get publicKey(){return new Or(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}},mF=Object.freeze({CreateLookupTable:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),p7(\"recentSlot\"),Ee.u8(\"bumpSeed\")])},FreezeLookupTable:{index:1,layout:Ee.struct([Ee.u32(\"instruction\")])},ExtendLookupTable:{index:2,layout:Ee.struct([Ee.u32(\"instruction\"),p7(),Ee.seq(Eo(),Ee.offset(Ee.u32(),-8),\"addresses\")])},DeactivateLookupTable:{index:3,layout:Ee.struct([Ee.u32(\"instruction\")])},CloseLookupTable:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])}});var M1e=class{constructor(){}static createLookupTable(t){let[n,r]=Or.findProgramAddressSync([t.authority.toBuffer(),m1e().encode(t.recentSlot)],this.programId),o=mF.CreateLookupTable,i=No(o,{recentSlot:BigInt(t.recentSlot),bumpSeed:r}),a=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:tp.programId,isSigner:!1,isWritable:!1}];return[new aa({programId:this.programId,keys:a,data:i}),n]}static freezeLookupTable(t){let n=mF.FreezeLookupTable,r=No(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new aa({programId:this.programId,keys:o,data:r})}static extendLookupTable(t){let n=mF.ExtendLookupTable,r=No(n,{addresses:t.addresses.map(i=>i.toBytes())}),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&o.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:tp.programId,isSigner:!1,isWritable:!1}),new aa({programId:this.programId,keys:o,data:r})}static deactivateLookupTable(t){let n=mF.DeactivateLookupTable,r=No(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new aa({programId:this.programId,keys:o,data:r})}static closeLookupTable(t){let n=mF.CloseLookupTable,r=No(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new aa({programId:this.programId,keys:o,data:r})}};M1e.programId=new Or(\"AddressLookupTab1e1111111111111111111111111\");var dee=Object.freeze({RequestUnits:{index:0,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"units\"),Ee.u32(\"additionalFee\")])},RequestHeapFrame:{index:1,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"bytes\")])},SetComputeUnitLimit:{index:2,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"units\")])},SetComputeUnitPrice:{index:3,layout:Ee.struct([Ee.u8(\"instruction\"),p7(\"microLamports\")])}}),D1e=class{constructor(){}static requestUnits(t){let n=dee.RequestUnits,r=No(n,t);return new aa({keys:[],programId:this.programId,data:r})}static requestHeapFrame(t){let n=dee.RequestHeapFrame,r=No(n,t);return new aa({keys:[],programId:this.programId,data:r})}static setComputeUnitLimit(t){let n=dee.SetComputeUnitLimit,r=No(n,t);return new aa({keys:[],programId:this.programId,data:r})}static setComputeUnitPrice(t){let n=dee.SetComputeUnitPrice,r=No(n,{microLamports:BigInt(t.microLamports)});return new aa({keys:[],programId:this.programId,data:r})}};D1e.programId=new Or(\"ComputeBudget111111111111111111111111111111\");var Itt=64,Ott=32,ktt=64,Ntt=Ee.struct([Ee.u8(\"numSignatures\"),Ee.u8(\"padding\"),Ee.u16(\"signatureOffset\"),Ee.u16(\"signatureInstructionIndex\"),Ee.u16(\"publicKeyOffset\"),Ee.u16(\"publicKeyInstructionIndex\"),Ee.u16(\"messageDataOffset\"),Ee.u16(\"messageDataSize\"),Ee.u16(\"messageInstructionIndex\")]),L1e=class e{constructor(){}static createInstructionWithPublicKey(t){let{publicKey:n,message:r,signature:o,instructionIndex:i}=t;La(n.length===Ott,`Public Key must be ${Ott} bytes but received ${n.length} bytes`),La(o.length===ktt,`Signature must be ${ktt} bytes but received ${o.length} bytes`);let a=Ntt.span,c=a+n.length,u=c+o.length,d=1,p=Xn.Buffer.alloc(u+r.length),h=i??65535;return Ntt.encode({numSignatures:d,padding:0,signatureOffset:c,signatureInstructionIndex:h,publicKeyOffset:a,publicKeyInstructionIndex:h,messageDataOffset:u,messageDataSize:r.length,messageInstructionIndex:h},p),p.fill(n,a),p.fill(o,c),p.fill(r,u),new aa({keys:[],programId:e.programId,data:p})}static createInstructionWithPrivateKey(t){let{privateKey:n,message:r,instructionIndex:o}=t;La(n.length===Itt,`Private key must be ${Itt} bytes but received ${n.length} bytes`);try{let i=P1e.fromSecretKey(n),a=i.publicKey.toBytes(),c=U1e(r,i.secretKey);return this.createInstructionWithPublicKey({publicKey:a,message:r,signature:c,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}};L1e.programId=new Or(\"Ed25519SigVerify111111111111111111111111111\");var Sjt=(e,t)=>{let n=L_.sign(e,t);return[n.toCompactRawBytes(),n.recovery]};L_.utils.isValidPrivateKey;var Tjt=L_.getPublicKey,Ptt=32,x1e=20,Mtt=64,Cjt=11,E1e=Ee.struct([Ee.u8(\"numSignatures\"),Ee.u16(\"signatureOffset\"),Ee.u8(\"signatureInstructionIndex\"),Ee.u16(\"ethAddressOffset\"),Ee.u8(\"ethAddressInstructionIndex\"),Ee.u16(\"messageDataOffset\"),Ee.u16(\"messageDataSize\"),Ee.u8(\"messageInstructionIndex\"),Ee.blob(20,\"ethAddress\"),Ee.blob(64,\"signature\"),Ee.u8(\"recoveryId\")]),B1e=class e{constructor(){}static publicKeyToEthAddress(t){La(t.length===Mtt,`Public key must be ${Mtt} bytes but received ${t.length} bytes`);try{return Xn.Buffer.from(C2(Jo(t))).slice(-x1e)}catch(n){throw new Error(`Error constructing Ethereum address: ${n}`)}}static createInstructionWithPublicKey(t){let{publicKey:n,message:r,signature:o,recoveryId:i,instructionIndex:a}=t;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:o,recoveryId:i,instructionIndex:a})}static createInstructionWithEthAddress(t){let{ethAddress:n,message:r,signature:o,recoveryId:i,instructionIndex:a=0}=t,c;typeof n==\"string\"?n.startsWith(\"0x\")?c=Xn.Buffer.from(n.substr(2),\"hex\"):c=Xn.Buffer.from(n,\"hex\"):c=n,La(c.length===x1e,`Address must be ${x1e} bytes but received ${c.length} bytes`);let u=1+Cjt,d=u,p=u+c.length,h=p+o.length+1,g=1,y=Xn.Buffer.alloc(E1e.span+r.length);return E1e.encode({numSignatures:g,signatureOffset:p,signatureInstructionIndex:a,ethAddressOffset:d,ethAddressInstructionIndex:a,messageDataOffset:h,messageDataSize:r.length,messageInstructionIndex:a,signature:Jo(o),ethAddress:Jo(c),recoveryId:i},y),y.fill(Jo(r),E1e.span),new aa({keys:[],programId:e.programId,data:y})}static createInstructionWithPrivateKey(t){let{privateKey:n,message:r,instructionIndex:o}=t;La(n.length===Ptt,`Private key must be ${Ptt} bytes but received ${n.length} bytes`);try{let i=Jo(n),a=Tjt(i,!1).slice(1),c=Xn.Buffer.from(C2(Jo(r))),[u,d]=Sjt(c,i);return this.createInstructionWithPublicKey({publicKey:a,message:r,signature:u,recoveryId:d,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}};B1e.programId=new Or(\"KeccakSecp256k11111111111111111111111111111\");var Ztt,Rjt=new Or(\"StakeConfig11111111111111111111111111111111\");var vF=class{constructor(t,n,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}};Ztt=vF;vF.default=new Ztt(0,0,Or.default);var KS=Object.freeze({Initialize:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),Wzt(),Vzt()])},Authorize:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"newAuthorized\"),Ee.u32(\"stakeAuthorizationType\")])},Delegate:{index:2,layout:Ee.struct([Ee.u32(\"instruction\")])},Split:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},Withdraw:{index:4,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},Deactivate:{index:5,layout:Ee.struct([Ee.u32(\"instruction\")])},Merge:{index:7,layout:Ee.struct([Ee.u32(\"instruction\")])},AuthorizeWithSeed:{index:8,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"newAuthorized\"),Ee.u32(\"stakeAuthorizationType\"),d7(\"authoritySeed\"),Eo(\"authorityOwner\")])}}),Byr=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),yee=class{constructor(){}static initialize(t){let{stakePubkey:n,authorized:r,lockup:o}=t,i=o||vF.default,a=KS.Initialize,c=No(a,{authorized:{staker:Jo(r.staker.toBuffer()),withdrawer:Jo(r.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:Jo(i.custodian.toBuffer())}}),u={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:bF,isSigner:!1,isWritable:!1}],programId:this.programId,data:c};return new aa(u)}static createAccountWithSeed(t){let n=new wa;n.add(tp.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:r,authorized:o,lockup:i}))}static createAccount(t){let n=new wa;n.add(tp.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:r,authorized:o,lockup:i}))}static delegate(t){let{stakePubkey:n,authorizedPubkey:r,votePubkey:o}=t,i=KS.Delegate,a=No(i);return new wa().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:w1e,isSigner:!1,isWritable:!1},{pubkey:Rjt,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}static authorize(t){let{stakePubkey:n,authorizedPubkey:r,newAuthorizedPubkey:o,stakeAuthorizationType:i,custodianPubkey:a}=t,c=KS.Authorize,u=No(c,{newAuthorized:Jo(o.toBuffer()),stakeAuthorizationType:i.index}),d=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return a&&d.push({pubkey:a,isSigner:!0,isWritable:!1}),new wa().add({keys:d,programId:this.programId,data:u})}static authorizeWithSeed(t){let{stakePubkey:n,authorityBase:r,authoritySeed:o,authorityOwner:i,newAuthorizedPubkey:a,stakeAuthorizationType:c,custodianPubkey:u}=t,d=KS.AuthorizeWithSeed,p=No(d,{newAuthorized:Jo(a.toBuffer()),stakeAuthorizationType:c.index,authoritySeed:o,authorityOwner:Jo(i.toBuffer())}),h=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:Xx,isSigner:!1,isWritable:!1}];return u&&h.push({pubkey:u,isSigner:!0,isWritable:!1}),new wa().add({keys:h,programId:this.programId,data:p})}static splitInstruction(t){let{stakePubkey:n,authorizedPubkey:r,splitStakePubkey:o,lamports:i}=t,a=KS.Split,c=No(a,{lamports:i});return new aa({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:c})}static split(t,n){let r=new wa;return r.add(tp.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:n,space:this.space,programId:this.programId})),r.add(this.splitInstruction(t))}static splitWithSeed(t,n){let{stakePubkey:r,authorizedPubkey:o,splitStakePubkey:i,basePubkey:a,seed:c,lamports:u}=t,d=new wa;return d.add(tp.allocate({accountPubkey:i,basePubkey:a,seed:c,space:this.space,programId:this.programId})),n&&n>0&&d.add(tp.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:n})),d.add(this.splitInstruction({stakePubkey:r,authorizedPubkey:o,splitStakePubkey:i,lamports:u}))}static merge(t){let{stakePubkey:n,sourceStakePubKey:r,authorizedPubkey:o}=t,i=KS.Merge,a=No(i);return new wa().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:w1e,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}static withdraw(t){let{stakePubkey:n,authorizedPubkey:r,toPubkey:o,lamports:i,custodianPubkey:a}=t,c=KS.Withdraw,u=No(c,{lamports:i}),d=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:w1e,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return a&&d.push({pubkey:a,isSigner:!0,isWritable:!1}),new wa().add({keys:d,programId:this.programId,data:u})}static deactivate(t){let{stakePubkey:n,authorizedPubkey:r}=t,o=KS.Deactivate,i=No(o);return new wa().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}};yee.programId=new Or(\"Stake11111111111111111111111111111111111111\");yee.space=200;var gF=Object.freeze({InitializeAccount:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),Gzt()])},Authorize:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),Eo(\"newAuthorized\"),Ee.u32(\"voteAuthorizationType\")])},Withdraw:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},UpdateValidatorIdentity:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])},AuthorizeWithSeed:{index:10,layout:Ee.struct([Ee.u32(\"instruction\"),qzt()])}}),Uyr=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),bee=class e{constructor(){}static initializeAccount(t){let{votePubkey:n,nodePubkey:r,voteInit:o}=t,i=gF.InitializeAccount,a=No(i,{voteInit:{nodePubkey:Jo(o.nodePubkey.toBuffer()),authorizedVoter:Jo(o.authorizedVoter.toBuffer()),authorizedWithdrawer:Jo(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),c={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:bF,isSigner:!1,isWritable:!1},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a};return new aa(c)}static createAccount(t){let n=new wa;return n.add(tp.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),n.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){let{votePubkey:n,authorizedPubkey:r,newAuthorizedPubkey:o,voteAuthorizationType:i}=t,a=gF.Authorize,c=No(a,{newAuthorized:Jo(o.toBuffer()),voteAuthorizationType:i.index}),u=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new wa().add({keys:u,programId:this.programId,data:c})}static authorizeWithSeed(t){let{currentAuthorityDerivedKeyBasePubkey:n,currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:i,voteAuthorizationType:a,votePubkey:c}=t,u=gF.AuthorizeWithSeed,d=No(u,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Jo(r.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:Jo(i.toBuffer()),voteAuthorizationType:a.index}}),p=[{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:Xx,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new wa().add({keys:p,programId:this.programId,data:d})}static withdraw(t){let{votePubkey:n,authorizedWithdrawerPubkey:r,lamports:o,toPubkey:i}=t,a=gF.Withdraw,c=No(a,{lamports:o}),u=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return new wa().add({keys:u,programId:this.programId,data:c})}static safeWithdraw(t,n,r){if(t.lamports>n-r)throw new Error(\"Withdraw will leave vote account with insufficient funds.\");return e.withdraw(t)}static updateValidatorIdentity(t){let{votePubkey:n,authorizedWithdrawerPubkey:r,nodePubkey:o}=t,i=gF.UpdateValidatorIdentity,a=No(i),c=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new wa().add({keys:c,programId:this.programId,data:a})}};bee.programId=new Or(\"Vote111111111111111111111111111111111111111\");bee.space=3762;var Fyr=new Or(\"Va1idator1nfo111111111111111111111111111111\"),Hyr=Ct({name:Ht(),website:Cn(Ht()),details:Cn(Ht()),iconUrl:Cn(Ht()),keybaseUsername:Cn(Ht())});var zyr=new Or(\"Vote111111111111111111111111111111111111111\"),jyr=Ee.struct([Eo(\"nodePubkey\"),Eo(\"authorizedWithdrawer\"),Ee.u8(\"commission\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"slot\"),Ee.u32(\"confirmationCount\")]),Ee.offset(Ee.u32(),-8),\"votes\"),Ee.u8(\"rootSlotValid\"),Ee.nu64(\"rootSlot\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"epoch\"),Eo(\"authorizedVoter\")]),Ee.offset(Ee.u32(),-8),\"authorizedVoters\"),Ee.struct([Ee.seq(Ee.struct([Eo(\"authorizedPubkey\"),Ee.nu64(\"epochOfLastAuthorizedSwitch\"),Ee.nu64(\"targetEpoch\")]),32,\"buf\"),Ee.nu64(\"idx\"),Ee.u8(\"isEmpty\")],\"priorVoters\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"epoch\"),Ee.nu64(\"credits\"),Ee.nu64(\"prevCredits\")]),Ee.offset(Ee.u32(),-8),\"epochCredits\"),Ee.struct([Ee.nu64(\"slot\"),Ee.nu64(\"timestamp\")],\"lastTimestamp\")]);var Qtt=e=>({request:e,signMessage:t=>e({method:\"signMessage\",params:{message:t}}),signTransaction:t=>e({method:\"signTransaction\",params:{transaction:t}}),signAndSendTransaction:t=>e({method:\"signAndSendTransaction\",params:t})});f();function Jtt(e){return globalThis.Buffer.from(e.serialize({verifySignatures:!1})).toString(\"base64\")}function Ijt(e){let t=globalThis.Buffer.from(e,\"base64\");return vee.deserializeMessageVersion(t)===\"legacy\"?mee.deserialize(t):wa.from(t)}function Xtt(e){return async n=>{if(n.method===\"connect\")return await e(n);if(n.method===\"signMessage\")return await e(n);if(n.method===\"signAndSendTransaction\"){let{transaction:r}=n.params,o={transaction:Jtt(r)};return await e({method:\"signAndSendTransaction\",params:o})}if(n.method===\"signTransaction\"){let{transaction:r}=n.params,o={transaction:Jtt(r)},{signedTransaction:i}=await e({method:\"signTransaction\",params:o});return{signedTransaction:Ijt(i)}}}}f();f();var $tt=({miniAppHost:e,emitter:t})=>{let n,r=null;return{visible:!1,get onback(){return r},set onback(o){r&&t.removeListener(\"backNavigationTriggered\",r),r=o,o&&t.addListener(\"backNavigationTriggered\",o)},async show(){await e.updateBackState({visible:!0}),this.visible=!0},async hide(){await e.updateBackState({visible:!1}),this.visible=!1},async enableWebNavigation(){n=Ojt({back:this,emitter:t})},async disableWebNavigation(){n?.(),n=void 0}}};function Ojt({emitter:e,back:t}){let n=kjt();if(n)return Njt({emitter:e,back:t,navigation:n});if(typeof window<\"u\")return Pjt({emitter:e,back:t,window})}function kjt(){if(typeof window<\"u\"&&window.navigation!==void 0)return window.navigation}function Njt({emitter:e,back:t,navigation:n}){function r(){n.canGoBack?t.show():t.hide()}function o(){t.visible&&n.canGoBack&&n.back()}return n.addEventListener(\"navigatesuccess\",r),e.addListener(\"backNavigationTriggered\",o),()=>{n.removeEventListener(\"navigatesuccess\",r),e.removeListener(\"backNavigationTriggered\",o)}}function Pjt({emitter:e,back:t,window:n}){t.show();function r(){t.visible&&n.history.back()}return e.addListener(\"backNavigationTriggered\",r),()=>{e.removeListener(\"backNavigationTriggered\",r)}}f();f();R_();f();f();f();var ent=\"0.1.1\";function tnt(){return ent}var Eee=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(u=>typeof u==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${tnt()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return nnt(this,t)}};function nnt(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?nnt(e.cause,t):t?null:e}f();function Aee(e,t={}){let{raw:n=!1}=t,r=e;if(n)return e;if(r.error){let{code:o}=r.error,i=o===dR.code?dR:o===wF.code?wF:o===IF.code?IF:o===CF.code?CF:o===SF.code?SF:o===RF.code?RF:o===_F.code?_F:o===OF.code?OF:o===xF.code?xF:o===EF.code?EF:o===AF.code?AF:o===TF.code?TF:ql;throw new i(r.error)}return r.result}var ql=class extends Error{constructor(t){let{code:n,message:r,data:o}=t;super(r),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.BaseError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.data=o}},wF=class e extends ql{constructor(t={}){super({message:\"Missing or invalid parameters.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidInputError\"})}};Object.defineProperty(wF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});var xF=class e extends ql{constructor(t={}){super({message:\"Requested resource not found.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceNotFoundError\"})}};Object.defineProperty(xF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});var EF=class e extends ql{constructor(t={}){super({message:\"Requested resource not available.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceUnavailableError\"})}};Object.defineProperty(EF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});var AF=class e extends ql{constructor(t={}){super({message:\"Transaction creation failed.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.TransactionRejectedError\"})}};Object.defineProperty(AF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});var _F=class e extends ql{constructor(t={}){super({message:\"Method is not implemented.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotSupportedError\"})}};Object.defineProperty(_F,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});var SF=class e extends ql{constructor(t={}){super({message:\"Rate limit exceeded.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.LimitExceededError\"})}};Object.defineProperty(SF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});var TF=class e extends ql{constructor(t={}){super({message:\"JSON-RPC version not supported.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.VersionNotSupportedError\"})}};Object.defineProperty(TF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});var CF=class e extends ql{constructor(t={}){super({message:\"Input is not a valid JSON-RPC request.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidRequestError\"})}};Object.defineProperty(CF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});var RF=class e extends ql{constructor(t={}){super({message:\"Method does not exist.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotFoundError\"})}};Object.defineProperty(RF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});var IF=class e extends ql{constructor(t={}){super({message:\"Invalid method parameters.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidParamsError\"})}};Object.defineProperty(IF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});var dR=class e extends ql{constructor(t={}){super({message:\"Internal JSON-RPC error.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InternalErrorError\"})}};Object.defineProperty(dR,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});var OF=class e extends ql{constructor(t={}){super({message:\"Failed to parse JSON-RPC response.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ParseError\"})}};Object.defineProperty(OF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});var Qv=class extends Error{constructor(t,n){super(n),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=n}},kF=class extends Qv{constructor({message:t=\"The user rejected the request.\"}={}){super(4001,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UserRejectedRequestError\"})}};Object.defineProperty(kF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});var NF=class extends Qv{constructor({message:t=\"The requested method and/or account has not been authorized by the user.\"}={}){super(4100,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnauthorizedError\"})}};Object.defineProperty(NF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});var PF=class extends Qv{constructor({message:t=\"The provider does not support the requested method.\"}={}){super(4200,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnsupportedMethodError\"})}};Object.defineProperty(PF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});var MF=class extends Qv{constructor({message:t=\"The provider is disconnected from all chains.\"}={}){super(4900,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.DisconnectedError\"})}};Object.defineProperty(MF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});var DF=class extends Qv{constructor({message:t=\"The provider is not connected to the requested chain.\"}={}){super(4901,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.ChainDisconnectedError\"})}};Object.defineProperty(DF,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});function ont(){let e=new q0.default;return{get eventNames(){return e.eventNames.bind(e)},get listenerCount(){return e.listenerCount.bind(e)},get listeners(){return e.listeners.bind(e)},addListener:e.addListener.bind(e),emit:e.emit.bind(e),off:e.off.bind(e),on:e.on.bind(e),once:e.once.bind(e),removeAllListeners:e.removeAllListeners.bind(e),removeListener:e.removeListener.bind(e)}}function int(e,t={}){let{includeEvents:n=!0}=t;if(!e)throw new V1e;return{...n?{on:e.on?.bind(e),removeListener:e.removeListener?.bind(e)}:{},async request(r){let o=await e.request(r);return o&&typeof o==\"object\"&&\"jsonrpc\"in o?Aee(o):o}}}var V1e=class extends Eee{constructor(){super(\"`provider` is undefined.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.IsUndefinedError\"})}};f();function ant(e={}){let t=e.id??0;return{prepare(n){return Ljt({id:t++,...n})},get id(){return t}}}function Ljt(e){return{...e,jsonrpc:\"2.0\"}}f();f();var cnt=Symbol(\"Comlink.proxy\"),Ujt=Symbol(\"Comlink.endpoint\"),Fjt=Symbol(\"Comlink.releaseProxy\"),G1e=Symbol(\"Comlink.finalizer\"),See=Symbol(\"Comlink.thrown\"),unt=e=>typeof e==\"object\"&&e!==null||typeof e==\"function\",Hjt={canHandle:e=>unt(e)&&e[cnt],serialize(e){let{port1:t,port2:n}=new MessageChannel;return dnt(e,t),[n,[n]]},deserialize(e){return e.start(),K1e(e)}},zjt={canHandle:e=>unt(e)&&See in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},lnt=new Map([[\"proxy\",Hjt],[\"throw\",zjt]]);function jjt(e,t){for(let n of e)if(t===n||n===\"*\"||n instanceof RegExp&&n.test(t))return!0;return!1}function dnt(e,t=globalThis,n=[\"*\"]){t.addEventListener(\"message\",function r(o){if(!o||!o.data)return;if(!jjt(n,o.origin)){console.warn(`Invalid origin \\'${o.origin}\\' for comlink proxy`);return}let{id:i,type:a,path:c}=Object.assign({path:[]},o.data),u=(o.data.argumentList||[]).map(fR),d;try{let p=c.slice(0,-1).reduce((g,y)=>g[y],e),h=c.reduce((g,y)=>g[y],e);switch(a){case\"GET\":d=h;break;case\"SET\":p[c.slice(-1)[0]]=fR(o.data.value),d=!0;break;case\"APPLY\":d=h.apply(p,u);break;case\"CONSTRUCT\":{let g=new h(...u);d=Yjt(g)}break;case\"ENDPOINT\":{let{port1:g,port2:y}=new MessageChannel;dnt(e,y),d=Kjt(g,[g])}break;case\"RELEASE\":d=void 0;break;default:return}}catch(p){d={value:p,[See]:0}}Promise.resolve(d).catch(p=>({value:p,[See]:0})).then(p=>{let[h,g]=Ree(p);t.postMessage(Object.assign(Object.assign({},h),{id:i}),g),a===\"RELEASE\"&&(t.removeEventListener(\"message\",r),fnt(t),G1e in e&&typeof e[G1e]==\"function\"&&e[G1e]())}).catch(p=>{let[h,g]=Ree({value:new TypeError(\"Unserializable return value\"),[See]:0});t.postMessage(Object.assign(Object.assign({},h),{id:i}),g)})}),t.start&&t.start()}function Wjt(e){return e.constructor.name===\"MessagePort\"}function fnt(e){Wjt(e)&&e.close()}function K1e(e,t){let n=new Map;return e.addEventListener(\"message\",function(o){let{data:i}=o;if(!i||!i.id)return;let a=n.get(i.id);if(a)try{a(i)}finally{n.delete(i.id)}}),q1e(e,n,[],t)}function _ee(e){if(e)throw new Error(\"Proxy has been released and is not useable\")}function pnt(e){return g7(e,new Map,{type:\"RELEASE\"}).then(()=>{fnt(e)})}var Tee=new WeakMap,Cee=\"FinalizationRegistry\"in globalThis&&new FinalizationRegistry(e=>{let t=(Tee.get(e)||0)-1;Tee.set(e,t),t===0&&pnt(e)});function Vjt(e,t){let n=(Tee.get(t)||0)+1;Tee.set(t,n),Cee&&Cee.register(e,t,e)}function Gjt(e){Cee&&Cee.unregister(e)}function q1e(e,t,n=[],r=function(){}){let o=!1,i=new Proxy(r,{get(a,c){if(_ee(o),c===Fjt)return()=>{Gjt(i),pnt(e),t.clear(),o=!0};if(c===\"then\"){if(n.length===0)return{then:()=>i};let u=g7(e,t,{type:\"GET\",path:n.map(d=>d.toString())}).then(fR);return u.then.bind(u)}return q1e(e,t,[...n,c])},set(a,c,u){_ee(o);let[d,p]=Ree(u);return g7(e,t,{type:\"SET\",path:[...n,c].map(h=>h.toString()),value:d},p).then(fR)},apply(a,c,u){_ee(o);let d=n[n.length-1];if(d===Ujt)return g7(e,t,{type:\"ENDPOINT\"}).then(fR);if(d===\"bind\")return q1e(e,t,n.slice(0,-1));let[p,h]=snt(u);return g7(e,t,{type:\"APPLY\",path:n.map(g=>g.toString()),argumentList:p},h).then(fR)},construct(a,c){_ee(o);let[u,d]=snt(c);return g7(e,t,{type:\"CONSTRUCT\",path:n.map(p=>p.toString()),argumentList:u},d).then(fR)}});return Vjt(i,e),i}function qjt(e){return Array.prototype.concat.apply([],e)}function snt(e){let t=e.map(Ree);return[t.map(n=>n[0]),qjt(t.map(n=>n[1]))]}var hnt=new WeakMap;function Kjt(e,t){return hnt.set(e,t),e}function Yjt(e){return Object.assign(e,{[cnt]:!0})}function mnt(e,t=globalThis,n=\"*\"){return{postMessage:(r,o)=>e.postMessage(r,n,o),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Ree(e){for(let[t,n]of lnt)if(n.canHandle(e)){let[r,o]=n.serialize(e);return[{type:\"HANDLER\",name:t,value:r},o]}return[{type:\"RAW\",value:e},hnt.get(e)||[]]}function fR(e){switch(e.type){case\"HANDLER\":return lnt.get(e.name).deserialize(e.value);case\"RAW\":return e.value}}function g7(e,t,n,r){return new Promise(o=>{let i=Zjt();t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),r)})}function Zjt(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join(\"-\")}f();var Qjt={postMessage(){},addEventListener:()=>{},removeEventListener:()=>{}},Jjt={postMessage:e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))},addEventListener:(e,t,...n)=>{document.addEventListener(\"FarcasterFrameCallback\",t,...n)},removeEventListener:(e,t)=>{document.removeEventListener(\"FarcasterFrameCallback\",t)}},gnt=typeof window>\"u\"?Qjt:window?.ReactNativeWebView?Jjt:mnt(window?.parent??window);var Kn=K1e(gnt);var Y1e=ont(),Xjt=ant();function $jt({code:e,details:t}){switch(e){case 4001:return new kF;case 4100:return new NF;case 4200:return new PF;case 4900:return new MF;case 4901:return new DF;default:return new Qv(e,t??\"Unknown provider RPC error\")}}var y7=int({...Y1e,async request(e){let t=Xjt.prepare(e);try{let n=await Kn.ethProviderRequestV2(t).then(r=>Aee(r,{request:t,raw:!0}));if(n.error)throw $jt(n.error);return n.result}catch(n){if(n instanceof Error&&n.message.match(/cannot read property \\'apply\\'/i))return await Kn.ethProviderRequest(t);throw n instanceof Qv||n instanceof ql?n:new dR({message:n instanceof Error?n.message:void 0})}}});async function ynt(){try{let e=await Kn.getCapabilities();return!e.includes(\"wallet.getEthereumProvider\")&&!e.includes(\"wallet.getEvmProvider\")?void 0:y7}catch{return y7}}function bnt(e){let t=new CustomEvent(\"eip6963:announceProvider\",{detail:Object.freeze(e)});window.dispatchEvent(t);let n=()=>window.dispatchEvent(t);return window.addEventListener(\"eip6963:requestProvider\",n),()=>window.removeEventListener(\"eip6963:requestProvider\",n)}typeof document<\"u\"&&(document.addEventListener(\"eip6963:requestProvider\",()=>{Kn.eip6963RequestProvider()}),document.addEventListener(\"FarcasterFrameEthProviderEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;Y1e.emit(t.event,...t.params)}}),document.addEventListener(\"FarcasterFrameEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;t.event===\"eip6963:announceProvider\"&&bnt({info:t.info,provider:y7})}}));typeof window<\"u\"&&(window.addEventListener(\"eip6963:requestProvider\",()=>{Kn.eip6963RequestProvider()}),window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEthProviderEvent\"){let t=e.data;Y1e.emit(t.event,...t.params)}}),window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEvent\"){let t=e.data.event;t.event===\"eip6963:announceProvider\"&&bnt({info:t.info,provider:y7})}}));f();f();f();f();f();f();var eWt=new TextEncoder,Iee=new TextDecoder,D1r=2**32;var tWt=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},vnt=e=>{let t=e;t instanceof Uint8Array&&(t=Iee.decode(t)),t=t.replace(/-/g,\"+\").replace(/_/g,\"/\").replace(/\\\\s/g,\"\");try{return tWt(t)}catch{throw new TypeError(\"The input to be decoded is not correctly encoded.\")}};var wnt=vnt;f();function rWt(e){return typeof e==\"object\"&&e!==null}function Z1e(e){if(!rWt(e)||Object.prototype.toString.call(e)!==\"[object Object]\")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}f();var Kl=class extends Error{constructor(t,n){super(t,n),this.code=\"ERR_JOSE_GENERIC\",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};Kl.code=\"ERR_JOSE_GENERIC\";var Q1e=class extends Kl{constructor(t,n,r=\"unspecified\",o=\"unspecified\"){super(t,{cause:{claim:r,reason:o,payload:n}}),this.code=\"ERR_JWT_CLAIM_VALIDATION_FAILED\",this.claim=r,this.reason=o,this.payload=n}};Q1e.code=\"ERR_JWT_CLAIM_VALIDATION_FAILED\";var J1e=class extends Kl{constructor(t,n,r=\"unspecified\",o=\"unspecified\"){super(t,{cause:{claim:r,reason:o,payload:n}}),this.code=\"ERR_JWT_EXPIRED\",this.claim=r,this.reason=o,this.payload=n}};J1e.code=\"ERR_JWT_EXPIRED\";var X1e=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JOSE_ALG_NOT_ALLOWED\"}};X1e.code=\"ERR_JOSE_ALG_NOT_ALLOWED\";var $1e=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JOSE_NOT_SUPPORTED\"}};$1e.code=\"ERR_JOSE_NOT_SUPPORTED\";var ebe=class extends Kl{constructor(t=\"decryption operation failed\",n){super(t,n),this.code=\"ERR_JWE_DECRYPTION_FAILED\"}};ebe.code=\"ERR_JWE_DECRYPTION_FAILED\";var tbe=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JWE_INVALID\"}};tbe.code=\"ERR_JWE_INVALID\";var nbe=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JWS_INVALID\"}};nbe.code=\"ERR_JWS_INVALID\";var R1=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JWT_INVALID\"}};R1.code=\"ERR_JWT_INVALID\";var rbe=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JWK_INVALID\"}};rbe.code=\"ERR_JWK_INVALID\";var obe=class extends Kl{constructor(){super(...arguments),this.code=\"ERR_JWKS_INVALID\"}};obe.code=\"ERR_JWKS_INVALID\";var ibe=class extends Kl{constructor(t=\"no applicable key found in the JSON Web Key Set\",n){super(t,n),this.code=\"ERR_JWKS_NO_MATCHING_KEY\"}};ibe.code=\"ERR_JWKS_NO_MATCHING_KEY\";var abe=class extends Kl{constructor(t=\"multiple matching keys found in the JSON Web Key Set\",n){super(t,n),this.code=\"ERR_JWKS_MULTIPLE_MATCHING_KEYS\"}};abe.code=\"ERR_JWKS_MULTIPLE_MATCHING_KEYS\";var sbe=class extends Kl{constructor(t=\"request timed out\",n){super(t,n),this.code=\"ERR_JWKS_TIMEOUT\"}};sbe.code=\"ERR_JWKS_TIMEOUT\";var cbe=class extends Kl{constructor(t=\"signature verification failed\",n){super(t,n),this.code=\"ERR_JWS_SIGNATURE_VERIFICATION_FAILED\"}};cbe.code=\"ERR_JWS_SIGNATURE_VERIFICATION_FAILED\";function xnt(e){if(typeof e!=\"string\")throw new R1(\"JWTs must use Compact JWS serialization, JWT must be a string\");let{1:t,length:n}=e.split(\".\");if(n===5)throw new R1(\"Only JWTs using Compact JWS serialization can be decoded\");if(n!==3)throw new R1(\"Invalid JWT\");if(!t)throw new R1(\"JWTs must contain a payload\");let r;try{r=wnt(t)}catch{throw new R1(\"Failed to base64url decode the payload\")}let o;try{o=JSON.parse(Iee.decode(r))}catch{throw new R1(\"Failed to parse the decoded payload as JSON\")}if(!Z1e(o))throw new R1(\"Invalid JWT Claims Set\");return o}function Ent(e){return xnt(e)}f();f();f();var Oee=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&\"details\"in n.cause&&typeof n.cause.details==\"string\"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),o=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r?[\"\",r?`Details: ${r}`:void 0]:[]].filter(i=>typeof i==\"string\").join(`\\n`);super(o,n.cause?{cause:n.cause}:void 0),this.name=\"BaseError\",this.cause=n.cause,this.details=r,this.shortMessage=t}},b7=class extends Oee{constructor({status:t}){super(`Request failed with status ${t}`),this.name=\"RequestFailedError\"}},kee=class extends Oee{constructor(t){super(t),this.name=\"InvalidToken\"}};async function Ant({origin:e}){let t=await fetch(`${e}/nonce`,{method:\"POST\"});if(!t.ok)throw new b7({status:t.status});return await t.json()}f();async function _nt({origin:e},t){let n=await fetch(`${e}/verify-siwf`,{method:\"POST\",headers:new Headers({\"Content-Type\":\"application/json\"}),body:JSON.stringify(t)});if(!n.ok)throw new b7({status:n.status});let r=await n.json();if(r.valid===!1)throw new kee(r.message??\"unknown\");return{token:r.token}}f();function Snt(e={}){return{origin:e.origin??\"https://auth.farcaster.xyz\"}}function Tnt(e={}){let t=Snt(e);return{generateNonce:()=>Ant(t),verifySiwf:n=>_nt(t,n)}}f();var oWt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,iWt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/;function Cnt(e){let{scheme:t,statement:n,...r}=e.match(oWt)?.groups??{},{chainId:o,expirationTime:i,issuedAt:a,notBefore:c,requestId:u,...d}=e.match(iWt)?.groups??{},p=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...r,...d,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...a?{issuedAt:new Date(a)}:{},...c?{notBefore:new Date(c)}:{},...u?{requestId:u}:{},...p?{resources:p}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}var Nee=(()=>{let e,t;async function n(r){let o=Tnt({origin:r.quickAuthServerOrigin}),{nonce:i}=await o.generateNonce(),a=await Kn.signIn({nonce:i,acceptAuthAddress:!0});if(a.result){let c=Cnt(a.result.message);if(!c.domain)throw new Error(\"Missing domain on SIWE message\");let u=await o.verifySiwf({domain:c.domain,message:a.result.message,signature:a.result.signature});return e={token:u.token,payload:Ent(u.token)},u}throw a.error.type===\"rejected_by_user\"?new YN.RejectedByUser:new Error(\"Unreachable\")}return{get token(){if(e&&new Date(e.payload.exp*1e3)>new Date(Date.now()+15e3))return e.token},async getToken(r={}){let o=r.force??!1;return e&&!o&&new Date(e.payload.exp*1e3)>new Date(Date.now()+15e3)?{token:e.token}:(t||(t=n(r)),t.finally(()=>{t=void 0}),t)},async fetch(r,o){let{token:i}=await this.getToken(),a=new Headers(o?.headers);return a.set(\"Authorization\",`Bearer ${i}`),fetch(r,{...o,headers:a})}}})();f();R_();function cWt(){let e=new oIe;return{get eventNames(){return e.eventNames.bind(e)},get listenerCount(){return e.listenerCount.bind(e)},get listeners(){return e.listeners.bind(e)},addListener:e.addListener.bind(e),emit:e.emit.bind(e),off:e.off.bind(e),on:e.on.bind(e),once:e.once.bind(e),removeAllListeners:e.removeAllListeners.bind(e),removeListener:e.removeListener.bind(e)}}var Yl=cWt();f();var{solanaProviderRequest:Rnt}=Kn,Int;Rnt&&(Int=Qtt(Xtt(Rnt)));async function ube(){let e;try{e=await Kn.getCapabilities()}catch{}if(e?.includes(\"wallet.getSolanaProvider\"))return Int}var Ont=null;async function uWt(e=1e3){if(Ont===!0)return!0;if(typeof window>\"u\"||!window.ReactNativeWebView&&window===window.parent)return!1;let t=await Promise.race([Kn.context.then(n=>!!n),new Promise(n=>{setTimeout(()=>n(!1),e)})]).catch(()=>!1);return t&&(Ont=!0),t}var knt=async()=>{let e=await Kn.addFrame();if(e.result)return e.result;throw e.error.type===\"invalid_domain_manifest\"?new eF.InvalidDomainManifest:e.error.type===\"rejected_by_user\"?new eF.RejectedByUser:new Error(\"Unreachable\")},Pee={...Yl,getCapabilities:Kn.getCapabilities,getChains:Kn.getChains,isInMiniApp:uWt,context:Kn.context,back:$tt({miniAppHost:Kn,emitter:Yl}),quickAuth:Nee,actions:{setPrimaryButton:Kn.setPrimaryButton.bind(Kn),ready:async(e={})=>await Kn.ready(e),close:Kn.close.bind(Kn),viewCast:Kn.viewCast.bind(Kn),viewProfile:Kn.viewProfile.bind(Kn),openMiniApp:Kn.openMiniApp.bind(Kn),signIn:async e=>{let t=await Kn.signIn(e);if(t.result)return t.result;throw t.error.type===\"rejected_by_user\"?new YN.RejectedByUser:new Error(\"Unreachable\")},openUrl:e=>{let t=typeof e==\"string\"?e:e.url;return Kn.openUrl(t.trim())},addFrame:knt,addMiniApp:knt,composeCast(e={}){return Kn.composeCast(e)},viewToken:Kn.viewToken.bind(Kn),sendToken:Kn.sendToken.bind(Kn),swapToken:Kn.swapToken.bind(Kn),requestCameraAndMicrophoneAccess:Kn.requestCameraAndMicrophoneAccess.bind(Kn)},experimental:{getSolanaProvider:ube,quickAuth(e){return Nee.getToken(e)}},wallet:{ethProvider:y7,getEthereumProvider:ynt,getSolanaProvider:ube},haptics:{impactOccurred:Kn.impactOccurred.bind(Kn),notificationOccurred:Kn.notificationOccurred.bind(Kn),selectionChanged:Kn.selectionChanged.bind(Kn)}};typeof document<\"u\"&&document.addEventListener(\"FarcasterFrameEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;t.event===\"primary_button_clicked\"?Yl.emit(\"primaryButtonClicked\"):t.event===\"miniapp_added\"?Yl.emit(\"miniAppAdded\",{notificationDetails:t.notificationDetails}):t.event===\"miniapp_add_rejected\"?Yl.emit(\"miniAppAddRejected\",{reason:t.reason}):t.event===\"miniapp_removed\"?Yl.emit(\"miniAppRemoved\"):t.event===\"notifications_enabled\"?Yl.emit(\"notificationsEnabled\",{notificationDetails:t.notificationDetails}):t.event===\"notifications_disabled\"?Yl.emit(\"notificationsDisabled\"):t.event===\"back_navigation_triggered\"&&Yl.emit(\"backNavigationTriggered\")}});typeof window<\"u\"&&window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEvent\"){let t=e.data.event;t.event===\"primary_button_clicked\"?Yl.emit(\"primaryButtonClicked\"):t.event===\"miniapp_added\"?Yl.emit(\"miniAppAdded\",{notificationDetails:t.notificationDetails}):t.event===\"miniapp_add_rejected\"?Yl.emit(\"miniAppAddRejected\",{reason:t.reason}):t.event===\"miniapp_removed\"?Yl.emit(\"miniAppRemoved\"):t.event===\"notifications_enabled\"?Yl.emit(\"notificationsEnabled\",{notificationDetails:t.notificationDetails}):t.event===\"notifications_disabled\"?Yl.emit(\"notificationsDisabled\"):t.event===\"back_navigation_triggered\"&&Yl.emit(\"backNavigationTriggered\")}});var Nnt=Pee;typeof console<\"u\"&&console.warn&&console.warn(\"@farcaster/frame-sdk is deprecated. Please use @farcaster/miniapp-sdk instead.\");var lWt=Pee,Pnt=!1,qbr=new Proxy(Kn,{get(e,t,n){return!Pnt&&typeof console<\"u\"&&console.warn&&(Pnt=!0,console.warn(\"frameHost is deprecated. Please use miniAppHost instead.\")),Reflect.get(e,t,n)}}),Mee=lWt;var lbe=class{constructor(){this.clientMeta=null,this.initPromise=null}async init({isMiniKit:t}){if(this.isInitialized()){console.warn(\"ClientMetaManager already initialized\");return}this.initPromise=this.handleInit({isMiniKit:t})}isInitialized(){return!!this.initPromise}async getClientMeta(){if(!this.initPromise)throw new Error(\"ClientMetaManager not initialized\");return this.clientMeta?this.clientMeta:await this.initPromise}async handleInit({isMiniKit:t}){var n;let r=null;try{let o=await Mee.context;r=((n=o?.client)==null?void 0:n.clientFid)||null}catch(o){console.error(\"Error getting client FID\",o)}return this.clientMeta={mode:t?\"minikit\":\"onchainkit\",clientFid:r},this.clientMeta}},pR=new lbe;f();f();function dWt(){return\"0.38.19\"}var ZS=dWt();var Mnt=\"POST\",Dee={\"Content-Type\":\"application/json\",\"OnchainKit-Version\":ZS},dbe=\"OnchainKit-Context\",Dnt=\"2.0\",Po=(e=>(e.API=\"api\",e.Buy=\"buy\",e.Checkout=\"checkout\",e.Hook=\"hook\",e.NFT=\"nft\",e.Swap=\"swap\",e.Wallet=\"wallet\",e))(Po||{});function fWt(e,t){return{apiKey:YA(\"apiKey\")??\"undefined\",sessionId:YA(\"sessionId\")??\"undefined\",timestamp:Date.now(),eventType:e,data:t,origin:window.location.origin}}async function pWt(e,t){var n;let r=YA(\"config\");if(r?.analytics)try{let o=await pR.getClientMeta();await fetch(r?.analyticsUrl??Aet,{method:\"POST\",headers:{...Dee,\"OnchainKit-App-Name\":document.title,\"OnchainKit-Client-Fid\":((n=o.clientFid)==null?void 0:n.toString())??\"\",\"OnchainKit-Mode\":o.mode},body:JSON.stringify(fWt(e,t))})}catch(o){console.error(\"Error sending analytics:\",o)}}var Lee=(e,t)=>pWt(e,t);f();var Jv=(e=>(e.ConnectError=\"walletConnectError\",e.ConnectInitiated=\"walletConnectInitiated\",e.ConnectSuccess=\"walletConnectSuccess\",e.Disconnect=\"walletDisconnect\",e.OptionSelected=\"walletOptionSelected\",e.ConnectCanceled=\"walletConnectCanceled\",e))(Jv||{}),eE=(e=>(e.Buy=\"buy\",e.Explorer=\"explorer\",e.QR=\"qr\",e.Refresh=\"refresh\",e.Send=\"send\",e.Swap=\"swap\",e))(eE||{}),tE=(e=>(e.SlippageChanged=\"swapSlippageChanged\",e.TokenSelected=\"swapTokenSelected\",e.SwapSuccess=\"swapSuccess\",e.SwapInitiated=\"swapInitiated\",e.SwapFailure=\"swapFailure\",e.SwapCanceled=\"swapCanceled\",e))(tE||{});var v7=(e=>(e.TransactionFailure=\"transactionFailure\",e.TransactionInitiated=\"transactionInitiated\",e.TransactionSuccess=\"transactionSuccess\",e.TransactionCanceled=\"transactionCanceled\",e))(v7||{}),Kd=(e=>(e.FundAmountChanged=\"fundAmountChanged\",e.FundFailure=\"fundFailure\",e.FundInitiated=\"fundInitiated\",e.FundOptionSelected=\"fundOptionSelected\",e.FundSuccess=\"fundSuccess\",e.FundCanceled=\"fundCanceled\",e))(Kd||{});var fbe=(e=>(e.ComponentError=\"componentError\",e))(fbe||{});var Bee=class extends Lnt.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error(\"Uncaught error:\",t,n),Lee(fbe.ComponentError,{component:\"OnchainKitProviderBoundary\",error:t.message,metadata:{message:t.message,stack:n.componentStack}})}render(){if(this.state.error){if(this.props.fallback){let t=this.props.fallback;return(0,pbe.jsx)(t,{error:this.state.error})}return(0,pbe.jsx)(\"h1\",{children:\"Sorry, we had an unhandled error\"})}return this.props.children}};f();var hR=(e=>(e.AtomicBatch=\"atomicBatch\",e.AuxiliaryFunds=\"auxiliaryFunds\",e.PaymasterService=\"paymasterService\",e))(hR||{}),Bnt=\"https://base.org/privacy-policy\",Unt=\"https://base.org/terms-of-service\";f();ra();var w7={[Ya.id]:\"0x6533C94869D28fAA8dF77cc63f9e2b2D6Cf77eBA\",[dr.id]:\"0xC6d566A56A1aFf6508b41f6c90ff131615583BCD\"},hWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72801)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2596.93 1721.27C2605.58 1648.75 2610.21 1574.9 2610.21 1500C2610.21 1425.1 2605.58 1351.4 2596.93 1278.73C2770.3 1177.28 2815.96 914.534 2631.1 772.941C2553.96 713.858 2472.05 660.593 2385.96 614.042C2339.26 528.102 2286.14 446.041 2227.06 368.904C2085.47 184.192 1822.72 229.699 1721.27 403.071C1648.75 394.417 1574.9 389.792 1500 389.792C1425.1 389.792 1351.4 394.417 1278.73 403.071C1177.28 229.699 914.534 184.043 772.941 368.904C713.858 446.041 660.593 527.953 614.042 614.042C528.102 660.742 446.041 713.858 368.904 772.941C184.192 914.534 229.699 1177.28 403.071 1278.73C394.417 1351.25 389.792 1425.1 389.792 1500C389.792 1574.9 394.417 1648.6 403.071 1721.27C229.699 1822.72 184.043 2085.47 368.904 2227.06C446.041 2286.14 527.953 2339.41 614.042 2385.96C660.742 2471.9 713.858 2553.96 772.941 2631.1C914.534 2815.81 1177.28 2770.3 1278.73 2596.93C1351.25 2605.58 1425.1 2610.21 1500 2610.21C1574.9 2610.21 1648.6 2605.58 1721.27 2596.93C1822.72 2770.3 2085.47 2815.96 2227.06 2631.1C2286.14 2553.96 2339.41 2472.05 2385.96 2385.96C2471.9 2339.26 2553.96 2286.14 2631.1 2227.06C2815.81 2085.47 2770.3 1822.72 2596.93 1721.27Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1647.89 1358.4 1781.62 1305.74 1878.28C1253.03 1975.05 1180.69 2034 1101.53 2034C1022.36 2034 950.031 1975.05 897.314 1878.28C844.66 1781.62 812 1647.89 812 1500C812 1352.11 844.66 1218.38 897.314 1121.72C950.031 1024.95 1022.36 966 1101.53 966C1180.69 966 1253.03 1024.95 1305.74 1121.72C1358.4 1218.38 1391.06 1352.11 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1102.57\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1647.89 2154.5 1781.62 2101.84 1878.28C2049.13 1975.05 1976.79 2034 1897.63 2034C1818.46 2034 1746.13 1975.05 1693.41 1878.28C1640.76 1781.62 1608.1 1647.89 1608.1 1500C1608.1 1352.11 1640.76 1218.38 1693.41 1121.72C1746.13 1024.95 1818.46 966 1897.63 966C1976.79 966 2049.13 1024.95 2101.84 1121.72C2154.5 1218.38 2187.16 1352.11 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1896.58\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72801\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',mWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72809)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2188.12 1131.95C2691.11 591.187 2356.8 256.94 1815.91 759.826C1767.57 804.826 1737.56 866.494 1733.32 932.403C1733.32 933.767 1733.17 934.979 1733.02 936.343C1722.56 1094.68 1853.35 1225.44 2011.72 1214.98C2013.08 1214.98 2014.29 1214.83 2015.66 1214.68C2081.58 1210.44 2143.26 1180.44 2188.27 1132.1L2188.12 1131.95Z\" fill=\"white\"/><path d=\"M759.879 1816.05C256.885 2356.81 591.204 2691.06 1132.08 2188.17C1180.43 2143.17 1210.44 2081.51 1214.68 2015.6C1214.68 2014.23 1214.83 2013.02 1214.98 2011.66C1225.44 1853.32 1094.65 1722.56 936.283 1733.02C934.919 1733.02 933.706 1733.17 932.342 1733.32C866.418 1737.56 804.738 1767.56 759.727 1815.9L759.879 1816.05Z\" fill=\"white\"/><path d=\"M1131.96 759.922C591.247 256.826 256.881 591.264 759.869 1132.09C804.865 1180.43 866.527 1210.44 932.431 1214.68C933.794 1214.68 935.006 1214.83 936.37 1214.98C1094.69 1225.44 1225.44 1094.66 1214.98 936.309C1214.98 934.946 1214.83 933.733 1214.68 932.369C1210.44 866.452 1180.44 804.777 1132.11 759.771L1131.96 759.922Z\" fill=\"white\"/><path d=\"M1816.05 2188.12C2356.81 2691.11 2691.06 2356.8 2188.17 1815.91C2143.17 1767.57 2081.51 1737.56 2015.6 1733.32C2014.23 1733.32 2013.02 1733.17 2011.66 1733.02C1853.32 1722.56 1722.56 1853.35 1733.02 2011.72C1733.02 2013.08 1733.17 2014.29 1733.32 2015.66C1737.56 2081.58 1767.56 2143.26 1815.9 2188.27L1816.05 2188.12Z\" fill=\"white\"/><path d=\"M1737.18 727.02C1710.36 -10.3398 1237.66 -10.3398 1210.84 727.02C1208.42 792.869 1230.84 857.658 1274.48 907.31C1275.39 908.37 1276.14 909.278 1277.05 910.338C1381.59 1029.62 1566.43 1029.62 1670.97 910.338C1671.88 909.278 1672.63 908.37 1673.54 907.31C1717.18 857.81 1739.45 793.02 1737.18 727.02Z\" fill=\"white\"/><path d=\"M727.02 1210.82C-10.3398 1237.64 -10.3398 1710.34 727.02 1737.16C792.869 1739.58 857.658 1717.16 907.31 1673.52C908.218 1672.62 909.278 1671.86 910.338 1670.95C1029.62 1566.41 1029.62 1381.57 910.338 1277.03C909.278 1276.12 908.37 1275.37 907.31 1274.46C857.81 1230.82 793.02 1208.55 727.02 1210.82Z\" fill=\"white\"/><path d=\"M2040.69 1274.48C2039.63 1275.39 2038.72 1276.14 2037.66 1277.05C1918.38 1381.59 1918.38 1566.43 2037.66 1670.97C2038.72 1671.88 2039.63 1672.63 2040.69 1673.54C2090.19 1717.18 2154.98 1739.45 2220.98 1737.18C2958.34 1710.36 2958.34 1237.66 2220.98 1210.84C2155.13 1208.42 2090.34 1230.84 2040.69 1274.48Z\" fill=\"white\"/><path d=\"M1210.82 2220.98C1237.64 2958.34 1710.34 2958.34 1737.16 2220.98C1739.58 2155.13 1717.16 2090.34 1673.52 2040.69C1672.62 2039.63 1671.86 2038.72 1670.95 2037.66C1566.41 1918.38 1381.57 1918.38 1277.03 2037.66C1276.12 2038.72 1275.37 2039.63 1274.46 2040.69C1230.82 2090.19 1208.55 2154.98 1210.82 2220.98Z\" fill=\"white\"/><circle cx=\"1474.5\" cy=\"1474.5\" r=\"886.5\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1352.11 1358.4 1218.38 1305.74 1121.72C1253.03 1024.95 1180.69 966 1101.53 966C1022.36 966 950.031 1024.95 897.314 1121.72C844.66 1218.38 812 1352.11 812 1500C812 1647.89 844.66 1781.62 897.314 1878.28C950.031 1975.05 1022.36 2034 1101.53 2034C1180.69 2034 1253.03 1975.05 1305.74 1878.28C1358.4 1781.62 1391.06 1647.89 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 976.16 2037)\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1352.11 2154.5 1218.38 2101.84 1121.72C2049.12 1024.95 1976.79 966 1897.63 966C1818.46 966 1746.13 1024.95 1693.41 1121.72C1640.76 1218.38 1608.1 1352.11 1608.1 1500C1608.1 1647.89 1640.76 1781.62 1693.41 1878.28C1746.13 1975.05 1818.46 2034 1897.63 2034C1976.79 2034 2049.12 1975.05 2101.84 1878.28C2154.5 1781.62 2187.16 1647.89 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 1770.17 2037)\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72809\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',gWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72826)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M587.596 2230.75C839.799 2148.27 1126.41 2048.74 1282.85 1934.35C1406.13 1849.79 1458.98 1757.13 1483.16 1651.34C1488.13 1629.73 1511.93 1629.73 1516.8 1651.34C1540.98 1757.01 1593.83 1849.67 1717.11 1934.35C1873.55 2048.74 2160.26 2148.28 2412.36 2230.75C2681.77 2308.44 2735.86 2334.34 2656.73 2207.31C2588.97 2088.63 2388.28 1817.51 2407.39 1489.82C2407.39 1489.21 2407.39 1488.59 2407.39 1487.86C2397.17 1162.25 2598.34 899.36 2662.18 786.079C2737.77 664.821 2675.65 693.54 2406.72 771.597C2154.43 854.195 1870.3 953.362 1715.2 1067.5C1593.25 1151.7 1540.79 1203.99 1516.8 1309.05C1511.83 1330.65 1488.03 1330.65 1483.16 1309.05C1459.17 1203.87 1406.71 1151.7 1284.76 1067.5C1129.66 953.362 845.533 854.195 593.234 771.597C324.307 693.54 262.284 664.821 337.782 786.079C401.621 899.36 602.791 1162.37 592.47 1488.1C592.47 1488.72 592.47 1489.33 592.47 1490.07C611.583 1817.76 410.891 2088.87 343.134 2207.55C264.004 2334.46 318.095 2308.68 587.5 2231L587.596 2230.75Z\" fill=\"white\"/><path d=\"M769.249 587.596C851.725 839.799 951.26 1126.41 1065.65 1282.85C1150.21 1406.13 1242.87 1458.98 1348.66 1483.16C1370.26 1488.13 1370.26 1511.93 1348.66 1516.8C1242.99 1540.98 1150.33 1593.83 1065.65 1717.11C951.26 1873.55 851.725 2160.26 769.249 2412.36C691.56 2681.77 665.664 2735.86 792.691 2656.73C911.372 2588.97 1182.49 2388.28 1510.18 2407.39C1510.79 2407.39 1511.41 2407.39 1512.14 2407.39C1837.75 2397.17 2100.64 2598.34 2213.92 2662.18C2335.18 2737.77 2306.46 2675.65 2228.4 2406.72C2145.8 2154.43 2046.64 1870.3 1932.5 1715.2C1848.3 1593.25 1796.01 1540.79 1690.95 1516.8C1669.35 1511.83 1669.35 1488.03 1690.95 1483.16C1796.13 1459.17 1848.3 1406.71 1932.5 1284.76C2046.64 1129.66 2145.8 845.533 2228.4 593.234C2306.46 324.307 2335.18 262.284 2213.92 337.782C2100.64 401.621 1837.63 602.791 1511.9 592.47C1511.28 592.47 1510.67 592.47 1509.93 592.47C1182.24 611.583 911.127 410.891 792.446 343.134C665.541 264.004 691.315 318.095 769.004 587.5L769.249 587.596Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1352.11 1358.4 1218.38 1305.74 1121.72C1253.03 1024.95 1180.69 966 1101.53 966C1022.36 966 950.031 1024.95 897.314 1121.72C844.66 1218.38 812 1352.11 812 1500C812 1647.89 844.66 1781.62 897.314 1878.28C950.031 1975.05 1022.36 2034 1101.53 2034C1180.69 2034 1253.03 1975.05 1305.74 1878.28C1358.4 1781.62 1391.06 1647.89 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 976.159 2037)\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1352.11 2154.5 1218.38 2101.84 1121.72C2049.12 1024.95 1976.79 966 1897.63 966C1818.46 966 1746.13 1024.95 1693.41 1121.72C1640.76 1218.38 1608.1 1352.11 1608.1 1500C1608.1 1647.89 1640.76 1781.62 1693.41 1878.28C1746.13 1975.05 1818.46 2034 1897.63 2034C1976.79 2034 2049.12 1975.05 2101.84 1878.28C2154.5 1781.62 2187.16 1647.89 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 1770.17 2037)\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72826\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',yWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72835)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2713.13 1500C2731.2 1680.92 2615.13 1818.15 2507.78 1924.42C2394.7 2032.13 2290.44 2108.88 2200.88 2200.61C2109.15 2290.16 2032.22 2394.61 1924.51 2507.68C1818.15 2615.04 1680.92 2731.11 1500 2713.13C1319.08 2731.2 1181.85 2615.13 1075.58 2507.78C967.866 2394.7 891.12 2290.44 799.389 2200.88C709.837 2109.15 605.39 2032.22 492.315 1924.51C384.962 1818.15 268.89 1680.92 286.873 1500C268.799 1319.08 384.871 1181.85 492.224 1075.58C605.299 967.866 709.564 891.12 799.116 799.389C890.848 709.837 967.775 605.39 1075.49 492.315C1181.85 384.871 1319.08 268.799 1500 286.873C1680.92 268.799 1818.15 384.871 1924.42 492.224C2032.13 605.299 2108.88 709.564 2200.61 799.116C2290.16 890.848 2394.61 967.775 2507.68 1075.49C2615.04 1181.85 2731.11 1319.08 2713.13 1500Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1647.89 1358.4 1781.62 1305.74 1878.28C1253.03 1975.05 1180.69 2034 1101.53 2034C1022.36 2034 950.031 1975.05 897.314 1878.28C844.66 1781.62 812 1647.89 812 1500C812 1352.11 844.66 1218.38 897.314 1121.72C950.031 1024.95 1022.36 966 1101.53 966C1180.69 966 1253.03 1024.95 1305.74 1121.72C1358.4 1218.38 1391.06 1352.11 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1102.57\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1647.89 2154.5 1781.62 2101.84 1878.28C2049.12 1975.05 1976.79 2034 1897.63 2034C1818.46 2034 1746.13 1975.05 1693.41 1878.28C1640.76 1781.62 1608.1 1647.89 1608.1 1500C1608.1 1352.11 1640.76 1218.38 1693.41 1121.72C1746.13 1024.95 1818.46 966 1897.63 966C1976.79 966 2049.12 1024.95 2101.84 1121.72C2154.5 1218.38 2187.16 1352.11 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1896.58\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72835\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',bWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72843)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2321.64 1500C3048.65 1727.51 2902.59 1900.1 2182.54 1787.44C2625.43 2169.27 2494.23 2265.93 1974.71 1974.53C2266.19 2493.97 2169.44 2625.34 1787.53 2182.54C1900.19 2902.68 1727.6 3048.65 1500 2321.64C1272.49 3048.65 1099.9 2902.59 1212.56 2182.54C830.733 2625.43 734.069 2494.23 1025.47 1974.71C506.03 2266.19 374.655 2169.44 817.464 1787.53C97.3173 1900.19 -48.6455 1727.6 678.356 1500C-48.6455 1272.49 97.4051 1099.9 817.464 1212.56C374.567 830.733 505.767 734.069 1025.29 1025.47C733.806 506.03 830.558 374.655 1212.47 817.464C1099.81 97.3173 1272.4 -48.6455 1500 678.356C1727.51 -48.6455 1900.1 97.4051 1787.44 817.464C2169.27 374.567 2265.93 505.767 1974.53 1025.29C2493.97 733.806 2625.34 830.558 2182.54 1212.47C2902.68 1099.81 3048.65 1272.4 2321.64 1500Z\" fill=\"white\"/><path d=\"M1402.29 1500.15C1402.29 1632.88 1372.98 1752.91 1325.73 1839.64C1278.42 1926.48 1213.56 1979.29 1142.65 1979.29C1071.73 1979.29 1006.87 1926.48 959.562 1839.64C912.315 1752.91 883 1632.88 883 1500.15C883 1367.41 912.315 1247.38 959.562 1160.65C1006.87 1073.81 1071.73 1021 1142.65 1021C1213.56 1021 1278.42 1073.81 1325.73 1160.65C1372.98 1247.38 1402.29 1367.41 1402.29 1500.15Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"998.466\" cy=\"1500.14\" rx=\"113.501\" ry=\"208.242\" fill=\"white\"/><path d=\"M2117.07 1500.15C2117.07 1632.88 2087.76 1752.91 2040.51 1839.64C1993.2 1926.48 1928.34 1979.29 1857.42 1979.29C1786.51 1979.29 1721.65 1926.48 1674.34 1839.64C1627.09 1752.91 1597.78 1632.88 1597.78 1500.15C1597.78 1367.41 1627.09 1247.38 1674.34 1160.65C1721.65 1073.81 1786.51 1021 1857.42 1021C1928.34 1021 1993.2 1073.81 2040.51 1160.65C2087.76 1247.38 2117.07 1367.41 2117.07 1500.15Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1712.74\" cy=\"1498.06\" rx=\"113.501\" ry=\"208.242\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72843\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',vWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72851)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2538.7 1207.34C2483.17 1184.33 2431.23 1159.94 2382.18 1133.9C2398.44 1080.86 2417.87 1026.85 2440.88 971.324C2548.89 711.06 2287.94 450.106 2027.68 558.125C1972.15 581.134 1918.14 600.699 1865.1 616.819C1839.06 567.907 1814.67 515.827 1791.66 460.302C1684.05 199.899 1314.94 199.899 1207.34 460.302C1184.33 515.827 1159.94 567.769 1133.9 616.819C1080.86 600.561 1026.85 581.134 971.324 558.125C711.06 450.106 450.106 711.06 558.125 971.324C581.134 1026.85 600.699 1080.86 616.819 1133.9C567.907 1159.94 515.827 1184.33 460.302 1207.34C199.899 1314.94 199.899 1684.05 460.302 1791.66C515.827 1814.67 567.769 1839.06 616.819 1865.1C600.561 1918.14 581.134 1972.15 558.125 2027.68C450.106 2287.94 711.06 2548.89 971.324 2440.88C1026.85 2417.87 1080.86 2398.3 1133.9 2382.18C1159.94 2431.09 1184.33 2483.17 1207.34 2538.7C1314.94 2799.1 1684.05 2799.1 1791.66 2538.7C1814.67 2483.17 1839.06 2431.23 1865.1 2382.18C1918.14 2398.44 1972.15 2417.87 2027.68 2440.88C2287.94 2548.89 2548.89 2287.94 2440.88 2027.68C2417.87 1972.15 2398.3 1918.14 2382.18 1865.1C2431.09 1839.06 2483.17 1814.67 2538.7 1791.66C2799.1 1684.05 2799.1 1314.94 2538.7 1207.34ZM1735.31 1727.87C1732.83 1730.35 1730.35 1732.83 1727.87 1735.31C1697.42 1766.58 1662.15 1790.01 1624.53 1806.13C1587.47 1820.46 1547.24 1828.17 1504.94 1827.62C1501.36 1827.62 1497.92 1827.62 1494.33 1827.62C1452.04 1828.17 1411.67 1820.32 1374.74 1806.13C1337.13 1790.01 1301.86 1766.58 1271.41 1735.31C1268.93 1732.83 1266.45 1730.35 1263.97 1727.87C1232.69 1697.42 1209.27 1662.15 1193.15 1624.53C1178.82 1587.61 1171.1 1547.24 1171.65 1504.94C1171.65 1501.36 1171.65 1497.92 1171.65 1494.33C1171.1 1452.04 1178.96 1411.67 1193.15 1374.74C1209.27 1337.13 1232.69 1301.86 1263.97 1271.41C1266.45 1268.93 1268.93 1266.45 1271.41 1263.97C1301.86 1232.69 1337.13 1209.27 1374.74 1193.15C1411.67 1178.82 1452.04 1171.1 1494.33 1171.65C1497.92 1171.65 1501.36 1171.65 1504.94 1171.65C1547.24 1171.1 1587.61 1178.96 1624.53 1193.15C1662.15 1209.27 1697.42 1232.69 1727.87 1263.97C1730.35 1266.45 1732.83 1268.93 1735.31 1271.41C1766.58 1301.86 1790.01 1337.13 1806.13 1374.74C1820.46 1411.8 1828.17 1452.04 1827.62 1494.33C1827.62 1497.92 1827.62 1501.36 1827.62 1504.94C1828.17 1547.24 1820.32 1587.61 1806.13 1624.53C1790.01 1662.15 1766.58 1697.42 1735.31 1727.87Z\" fill=\"white\"/><circle cx=\"1476\" cy=\"1442\" r=\"443\" fill=\"white\"/><path d=\"M1400.59 1202.5C1400.59 1334.79 1371.37 1454.31 1324.38 1540.58C1277.28 1627.04 1213.04 1679 1143.3 1679C1073.56 1679 1009.31 1627.04 962.215 1540.58C915.221 1454.31 886 1334.79 886 1202.5C886 1070.21 915.221 950.688 962.215 864.42C1009.31 777.961 1073.56 726 1143.3 726C1213.04 726 1277.28 777.961 1324.38 864.42C1371.37 950.688 1400.59 1070.21 1400.59 1202.5Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"10\"/><ellipse cx=\"1141.26\" cy=\"931.03\" rx=\"113.349\" ry=\"207.963\" fill=\"white\"/><path d=\"M2114.41 1202.5C2114.41 1334.79 2085.19 1454.31 2038.19 1540.58C1991.1 1627.04 1926.85 1679 1857.11 1679C1787.37 1679 1723.13 1627.04 1676.03 1540.58C1629.04 1454.31 1599.82 1334.79 1599.82 1202.5C1599.82 1070.21 1629.04 950.688 1676.03 864.42C1723.13 777.961 1787.37 726 1857.11 726C1926.85 726 1991.1 777.961 2038.19 864.42C2085.19 950.688 2114.41 1070.21 2114.41 1202.5Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"10\"/><ellipse cx=\"1861.96\" cy=\"928.963\" rx=\"113.349\" ry=\"207.963\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72851\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',wWt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72860)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M1500.19 1499.87C1365.57 1351.79 1298.1 1205.48 1296.93 988.1C1296.16 779.052 1361.71 498.983 1502.29 274.909C1565.01 170.441 1645.1 119.866 1696.41 125.097C1750.22 129.37 1775.2 189.413 1785.5 284.511C1806.04 473.278 1775.29 803.798 1990.99 1009.07C2196.26 1224.77 2526.78 1194.09 2715.59 1214.68C2810.65 1224.78 2870.69 1249.84 2874.93 1303.61C2880.12 1354.96 2829.55 1435.05 2725.08 1497.77C2501.01 1638.35 2220.94 1703.91 2011.89 1703.13C1794.55 1702 1648.19 1634.49 1500.12 1499.87L1500.19 1499.87Z\" fill=\"white\"/><path d=\"M1499.98 1500.01C1634.61 1648.08 1702.07 1794.4 1703.24 2011.77C1704.02 2220.82 1638.47 2500.89 1497.89 2724.97C1435.16 2829.43 1355.07 2880.01 1303.77 2874.78C1249.96 2870.5 1224.97 2810.46 1214.68 2715.36C1194.13 2526.6 1224.89 2196.08 1009.18 1990.81C803.914 1775.1 473.394 1805.78 284.59 1785.2C189.528 1775.09 129.486 1750.03 125.249 1696.26C120.055 1644.91 170.63 1564.82 275.098 1502.1C499.172 1361.52 779.24 1295.97 988.289 1296.75C1205.63 1297.88 1351.98 1365.38 1500.06 1500.01L1499.98 1500.01Z\" fill=\"white\"/><path d=\"M1481.64 1518.29C1630.16 1383.18 1776.72 1315.24 1994.12 1313.37C2203.19 1311.92 2483.08 1376.57 2706.72 1516.45C2811 1578.84 2861.32 1658.78 2855.93 1710.11C2851.48 1763.93 2791.35 1789.12 2696.21 1799.72C2507.36 1820.87 2176.9 1791.18 1970.91 2007.57C1754.52 2213.55 1784.15 2544.01 1762.95 2732.9C1752.54 2828.01 1727.28 2888.14 1673.49 2892.55C1622.12 2897.91 1542.19 2847.58 1479.79 2743.31C1339.92 2519.66 1275.26 2239.77 1276.71 2030.7C1278.54 1813.33 1346.52 1666.75 1481.64 1518.22L1481.64 1518.29Z\" fill=\"white\"/><path d=\"M1481.81 1518.43C1333.29 1653.54 1186.74 1721.48 969.339 1723.34C760.267 1724.79 480.38 1660.13 256.734 1520.25C152.457 1457.85 102.133 1377.92 107.529 1326.59C111.975 1272.76 172.103 1247.58 267.243 1236.98C456.094 1215.83 786.549 1245.53 992.528 1029.15C1208.91 823.167 1179.28 492.713 1200.47 303.825C1210.92 208.685 1236.11 148.557 1289.93 144.111C1341.3 138.752 1421.23 189.076 1483.63 293.353C1623.51 516.999 1688.17 796.885 1686.72 1005.96C1684.9 1223.32 1616.92 1369.91 1481.81 1518.43Z\" fill=\"white\"/><path d=\"M1403.24 1500C1403.24 1630.77 1374.36 1749 1327.82 1834.44C1281.21 1919.99 1217.33 1972 1147.49 1972C1077.65 1972 1013.76 1919.99 967.153 1834.44C920.611 1749 891.731 1630.77 891.731 1500C891.731 1369.23 920.611 1251 967.153 1165.56C1013.76 1080.01 1077.65 1028 1147.49 1028C1217.33 1028 1281.21 1080.01 1327.82 1165.56C1374.36 1251 1403.24 1369.23 1403.24 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1148.41\" cy=\"1230.16\" rx=\"111.819\" ry=\"205.156\" fill=\"white\"/><path d=\"M2107.42 1500C2107.42 1630.77 2078.55 1749 2032 1834.44C1985.4 1919.99 1921.51 1972 1851.67 1972C1781.83 1972 1717.94 1919.99 1671.34 1834.44C1624.79 1749 1595.92 1630.77 1595.92 1500C1595.92 1369.23 1624.79 1251 1671.34 1165.56C1717.94 1080.01 1781.83 1028 1851.67 1028C1921.51 1028 1985.4 1080.01 2032 1165.56C2078.55 1251 2107.42 1369.23 2107.42 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1850.75\" cy=\"1230.16\" rx=\"111.819\" ry=\"205.156\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72860\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',hbe=[hWt,mWt,gWt,yWt,bWt,vWt,wWt],Fnt=\"0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9\";f();function Hnt(e,t){return new RegExp(`^0x[a-fA-F0-9]{${t}}$`).test(e)}f();var xWt=e=>{let t=new Uint8Array(e);return crypto.getRandomValues(t),t},znt=()=>{if(typeof crypto<\"u\"&&typeof crypto.randomUUID==\"function\")return crypto.randomUUID();let e=xWt(16);return e[0].toString(16).padStart(2,\"0\")+e[1].toString(16).padStart(2,\"0\")+e[2].toString(16).padStart(2,\"0\")+e[3].toString(16).padStart(2,\"0\")+\"-\"+e[4].toString(16).padStart(2,\"0\")+e[5].toString(16).padStart(2,\"0\")+\"-\"+(e[6]&15|64).toString(16).padStart(2,\"0\")+e[7].toString(16).padStart(2,\"0\")+\"-\"+(e[8]&63|128).toString(16).padStart(2,\"0\")+e[9].toString(16).padStart(2,\"0\")+\"-\"+e[10].toString(16).padStart(2,\"0\")+e[11].toString(16).padStart(2,\"0\")+e[12].toString(16).padStart(2,\"0\")+e[13].toString(16).padStart(2,\"0\")+e[14].toString(16).padStart(2,\"0\")+e[15].toString(16).padStart(2,\"0\")};f();f();pn();Uee.type=\"farcasterMiniApp\";var x7,E7,A7;function Uee(){return e=>({id:\"farcaster\",name:\"Farcaster\",rdns:\"xyz.farcaster.MiniAppWallet\",icon:\"https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/055c25d6-7fe7-4a49-abf9-49772021cf00/original\",type:Uee.type,async connect({chainId:t}={}){let n=await this.getProvider(),r=await n.request({method:\"eth_requestAccounts\"}),o=t;if(!o){let a=await e.storage?.getItem(\"state\")??{};e.chains.some(u=>u.id===a.chainId)?o=a.chainId:o=e.chains[0]?.id}if(!o)throw new Error(\"No chains found on connector.\");x7||(x7=this.onAccountsChanged.bind(this),n.on(\"accountsChanged\",x7)),E7||(E7=this.onChainChanged.bind(this),n.on(\"chainChanged\",E7)),A7||(A7=this.onDisconnect.bind(this),n.on(\"disconnect\",A7));let i=await this.getChainId();return o&&i!==o&&(i=(await this.switchChain({chainId:o})).id),{accounts:r.map(a=>nr(a)),chainId:i}},async disconnect(){let t=await this.getProvider();x7&&(t.removeListener(\"accountsChanged\",x7),x7=void 0),E7&&(t.removeListener(\"chainChanged\",E7),E7=void 0),A7&&(t.removeListener(\"disconnect\",A7),A7=void 0)},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(r=>nr(r))},async getChainId(){let n=await(await this.getProvider()).request({method:\"eth_chainId\"});return Oj(n,\"number\")},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({chainId:t}){let n=await this.getProvider(),r=e.chains.find(o=>o.id===t);if(!r)throw new Za(new Bc);return await n.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Ne(t)}]}),e.emitter.emit(\"change\",{chainId:t}),r},onAccountsChanged(t){t.length===0?this.onDisconnect():e.emitter.emit(\"change\",{accounts:t.map(n=>nr(n))})},onChainChanged(t){let n=Number(t);e.emitter.emit(\"change\",{chainId:n})},async onDisconnect(){e.emitter.emit(\"disconnect\")},async getProvider(){return Nnt.wallet.ethProvider}})}var mbe=Uee;mbe.type=\"farcasterFrame\";f();var jnt=he(ze(),1),Wnt=he($e(),1);f();var EWt={},AWt=(0,I1.createContext)(EWt);function gbe({address:e,analytics:t,apiKey:n,chain:r,children:o,config:i,projectId:a,rpcUrl:c,schemaId:u}){var d;if(u&&!Hnt(u,64))throw Error(\\'EAS schemaId must be 64 characters prefixed with \"0x\"\\');let p=(0,I1.useMemo)(()=>znt(),[]),h=!!((d=(0,I1.useContext)(AWt))!=null&&d.__isMiniKit);(0,I1.useEffect)(()=>{pR.isInitialized()||pR.init({isMiniKit:h})},[h]);let g=(0,I1.useMemo)(()=>{var y,v,x,R,S,M,P,z,V,Q,$,oe,J,re,q;let K=n?`https://api.developer.coinbase.com/rpc/v1/${r.name.replace(\" \",\"-\").toLowerCase()}/${n}`:null,U={address:e??null,apiKey:n??null,chain:r,config:{analytics:t??!0,analyticsUrl:i?.analyticsUrl??null,appearance:{name:((y=i?.appearance)==null?void 0:y.name)??\"Dapp\",logo:((v=i?.appearance)==null?void 0:v.logo)??\"\",mode:((x=i?.appearance)==null?void 0:x.mode)??\"auto\",theme:((R=i?.appearance)==null?void 0:R.theme)??\"default\"},paymaster:i?.paymaster||K,wallet:{display:((S=i?.wallet)==null?void 0:S.display)??\"classic\",preference:((M=i?.wallet)==null?void 0:M.preference)??\"all\",signUpEnabled:((P=i?.wallet)==null?void 0:P.signUpEnabled)??!0,termsUrl:((z=i?.wallet)==null?void 0:z.termsUrl)||Unt,privacyUrl:((V=i?.wallet)==null?void 0:V.privacyUrl)||Bnt,supportedWallets:{rabby:(($=(Q=i?.wallet)==null?void 0:Q.supportedWallets)==null?void 0:$.rabby)??!1,trust:((J=(oe=i?.wallet)==null?void 0:oe.supportedWallets)==null?void 0:J.trust)??!1,frame:((q=(re=i?.wallet)==null?void 0:re.supportedWallets)==null?void 0:q.frame)??!1}}},projectId:a??null,rpcUrl:c??null,schemaId:u??Fnt,sessionId:p};return tae(U),U},[e,t,n,r,i,a,c,u,p]);return(0,Fee.jsx)(Fye.Provider,{value:g,children:(0,Fee.jsx)(Eet,{children:(0,Fee.jsx)(Bee,{children:o})})})}ra();f();f();f();f();f();f();var LF={84532:{usdcAddress:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",usdcName:\"USDC\"},8453:{usdcAddress:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",usdcName:\"USD Coin\"},43113:{usdcAddress:\"0x5425890298aed601595a70AB815c96711a31Bc65\",usdcName:\"USD Coin\"},43114:{usdcAddress:\"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E\",usdcName:\"USD Coin\"},4689:{usdcAddress:\"0xcdf79194c6c285077a58da47641d4dbe51f63542\",usdcName:\"Bridged USDC\"},103:{usdcAddress:\"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU\",usdcName:\"USDC\"},101:{usdcAddress:\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",usdcName:\"USDC\"},1328:{usdcAddress:\"0x4fcf1784b31630811181f670aea7a7bef803eaed\",usdcName:\"USDC\"},1329:{usdcAddress:\"0xe15fc38f6d8c56af07bbcbe3baf5708a2bf42392\",usdcName:\"USDC\"},137:{usdcAddress:\"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359\",usdcName:\"USD Coin\"},80002:{usdcAddress:\"0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582\",usdcName:\"USDC\"},3338:{usdcAddress:\"0xbbA60da06c2c5424f03f7434542280FCAd453d10\",usdcName:\"USDC\"},2741:{usdcAddress:\"0x84a71ccd554cc1b02749b35d22f684cc8ec987e1\",usdcName:\"Bridged USDC\"},11124:{usdcAddress:\"0xe4C7fBB0a626ed208021ccabA6Be1566905E2dFc\",usdcName:\"Bridged USDC\"},1514:{usdcAddress:\"0xF1815bd50389c46847f0Bda824eC8da914045D14\",usdcName:\"Bridged USDC\"},41923:{usdcAddress:\"0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8\",usdcName:\"Bridged USDC (Stargate)\"},324705682:{usdcAddress:\"0x2e08028E3C4c2356572E096d8EF835cD5C6030bD\",usdcName:\"Bridged USDC (SKALE Bridge)\"}};f();var Hee={TransferWithAuthorization:[{name:\"from\",type:\"address\"},{name:\"to\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"validAfter\",type:\"uint256\"},{name:\"validBefore\",type:\"uint256\"},{name:\"nonce\",type:\"bytes32\"}]};f();var mR=[{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"authorizer\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"AuthorizationCanceled\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"authorizer\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"AuthorizationUsed\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"Blacklisted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newBlacklister\",type:\"address\"}],name:\"BlacklisterChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"burner\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"Burn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newMasterMinter\",type:\"address\"}],name:\"MasterMinterChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"minter\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"Mint\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"minter\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"minterAllowedAmount\",type:\"uint256\"}],name:\"MinterConfigured\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"oldMinter\",type:\"address\"}],name:\"MinterRemoved\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!1,internalType:\"address\",name:\"previousOwner\",type:\"address\"},{indexed:!1,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[],name:\"Pause\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newAddress\",type:\"address\"}],name:\"PauserChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newRescuer\",type:\"address\"}],name:\"RescuerChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"UnBlacklisted\",type:\"event\"},{anonymous:!1,inputs:[],name:\"Unpause\",type:\"event\"},{inputs:[],name:\"CANCEL_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"DOMAIN_SEPARATOR\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"PERMIT_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"RECEIVE_WITH_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"TRANSFER_WITH_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"allowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"authorizationState\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"blacklist\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"blacklister\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"_amount\",type:\"uint256\"}],name:\"burn\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"cancelAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"cancelAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"},{internalType:\"uint256\",name:\"minterAllowedAmount\",type:\"uint256\"}],name:\"configureMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"currency\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"decrement\",type:\"uint256\"}],name:\"decreaseAllowance\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"increment\",type:\"uint256\"}],name:\"increaseAllowance\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"string\",name:\"tokenName\",type:\"string\"},{internalType:\"string\",name:\"tokenSymbol\",type:\"string\"},{internalType:\"string\",name:\"tokenCurrency\",type:\"string\"},{internalType:\"uint8\",name:\"tokenDecimals\",type:\"uint8\"},{internalType:\"address\",name:\"newMasterMinter\",type:\"address\"},{internalType:\"address\",name:\"newPauser\",type:\"address\"},{internalType:\"address\",name:\"newBlacklister\",type:\"address\"},{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"initialize\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"string\",name:\"newName\",type:\"string\"}],name:\"initializeV2\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"lostAndFound\",type:\"address\"}],name:\"initializeV2_1\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address[]\",name:\"accountsToBlacklist\",type:\"address[]\"},{internalType:\"string\",name:\"newSymbol\",type:\"string\"}],name:\"initializeV2_2\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"isBlacklisted\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"isMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"masterMinter\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_to\",type:\"address\"},{internalType:\"uint256\",name:\"_amount\",type:\"uint256\"}],name:\"mint\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"}],name:\"minterAllowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"nonces\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"pause\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"paused\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"pauser\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"receiveWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"receiveWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"}],name:\"removeMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"contract IERC20\",name:\"tokenContract\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"rescueERC20\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"rescuer\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"totalSupply\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transferFrom\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"transferWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"transferWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"unBlacklist\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"unpause\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newBlacklister\",type:\"address\"}],name:\"updateBlacklister\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newMasterMinter\",type:\"address\"}],name:\"updateMasterMinter\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newPauser\",type:\"address\"}],name:\"updatePauser\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newRescuer\",type:\"address\"}],name:\"updateRescuer\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"version\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"pure\",type:\"function\"}];f();f();f();function BF(e){return typeof e==\"object\"&&e!==null&&\"chain\"in e&&\"transport\"in e}function ybe(e){let t=e;return typeof e==\"object\"&&e!==null&&typeof t.address==\"string\"&&typeof t.type==\"string\"&&typeof t.sign==\"function\"&&typeof t.signMessage==\"function\"&&typeof t.signTypedData==\"function\"&&typeof t.signTransaction==\"function\"}f();pn();f();f();f();var Vnt=/^[A-Za-z0-9+/]*={0,2}$/;function zee(e){return typeof globalThis<\"u\"&&typeof globalThis.btoa==\"function\"?globalThis.btoa(e):globalThis.Buffer.from(e).toString(\"base64\")}function jee(e){return typeof globalThis<\"u\"&&typeof globalThis.atob==\"function\"?globalThis.atob(e):globalThis.Buffer.from(e,\"base64\").toString(\"utf-8\")}f();f();f();var CWt=Be.union([Be.string().transform(e=>e.replace(/[^0-9.-]+/g,\"\")),Be.number()]).pipe(Be.coerce.number().min(1e-4).max(999999999));f();var UF=Be.enum([\"abstract\",\"abstract-testnet\",\"base-sepolia\",\"base\",\"avalanche-fuji\",\"avalanche\",\"iotex\",\"solana-devnet\",\"solana\",\"sei\",\"sei-testnet\",\"polygon\",\"polygon-amoy\",\"peaq\",\"story\",\"educhain\",\"skale-base-sepolia\"]),Xv=[\"abstract\",\"abstract-testnet\",\"base-sepolia\",\"base\",\"avalanche-fuji\",\"avalanche\",\"iotex\",\"sei\",\"sei-testnet\",\"polygon\",\"polygon-amoy\",\"peaq\",\"story\",\"educhain\",\"skale-base-sepolia\"],Wee=new Map([[\"abstract\",2741],[\"abstract-testnet\",11124],[\"base-sepolia\",84532],[\"base\",8453],[\"avalanche-fuji\",43113],[\"avalanche\",43114],[\"iotex\",4689],[\"sei\",1329],[\"sei-testnet\",1328],[\"polygon\",137],[\"polygon-amoy\",80002],[\"peaq\",3338],[\"story\",1514],[\"educhain\",41923],[\"skale-base-sepolia\",324705682]]),O1=[\"solana-devnet\",\"solana\"],bbe=new Map([[\"solana-devnet\",103],[\"solana\",101]]),Lwr=Object.fromEntries([...Xv,...O1].map(e=>[Wee.get(e),e]));f();f();f();f();f();f();f();var FF=1,Gnt=2,qnt=3,Knt=4,Ynt=5,Znt=6,Qnt=7,Jnt=8,Xnt=9,$nt=10,ert=-32700,trt=-32603,nrt=-32602,rrt=-32601,ort=-32600,RWt=-32019,IWt=-32018,OWt=-32017,kWt=-32016,irt=-32015,art=-32014,NWt=-32013,srt=-32012,PWt=-32011,crt=-32010,urt=-32009,MWt=-32008,lrt=-32007,drt=-32006,DWt=-32005,frt=-32004,LWt=-32003,vbe=-32002,prt=-32001,Vee=28e5,Gee=2800001,BWt=2800002,hrt=2800003,mrt=2800004,grt=2800005,wbe=2800006,xbe=2800007,qee=2800008,Ebe=2800009,yrt=2800010,brt=2800011,Abe=323e4,_be=32300001,Sbe=3230002,vrt=3230003,Tbe=3230004,Cbe=361e4,Rbe=3610001,wrt=3610002,xrt=3610003,Ert=3610004,Art=3610005,_rt=3610006,UWt=3610007,Srt=3611e3,FWt=3704e3,HWt=3704001,zWt=3704002,jWt=3704003,WWt=3704004,Ibe=4128e3,Obe=4128001,Trt=4128002,Crt=4615e3,VWt=4615001,GWt=4615002,qWt=4615003,KWt=4615004,YWt=4615005,ZWt=4615006,QWt=4615007,JWt=4615008,XWt=4615009,$Wt=4615010,eVt=4615011,tVt=4615012,nVt=4615013,rVt=4615014,oVt=4615015,iVt=4615016,aVt=4615017,sVt=4615018,cVt=4615019,uVt=4615020,lVt=4615021,dVt=4615022,fVt=4615023,pVt=4615024,hVt=4615025,Rrt=4615026,mVt=4615027,gVt=4615028,yVt=4615029,bVt=4615030,vVt=4615031,wVt=4615032,xVt=4615033,EVt=4615034,AVt=4615035,_Vt=4615036,SVt=4615037,TVt=4615038,CVt=4615039,RVt=4615040,IVt=4615041,OVt=4615042,kVt=4615043,NVt=4615044,PVt=4615045,MVt=4615046,DVt=4615047,LVt=4615048,BVt=4615049,UVt=4615050,FVt=4615051,HVt=4615052,zVt=4615053,jVt=4615054,kbe=5508e3,Irt=5508001,Ort=5508002,krt=5508003,Nrt=5508004,Prt=5508005,Mrt=5508006,Drt=5508007,Lrt=5508008,Brt=5508009,Urt=5508010,WVt=5508011,Nbe=5663e3,Kee=5663001,Yee=5663002,Pbe=5663003,Mbe=5663004,Dbe=5663005,Lbe=5663006,Bbe=5663007,Ube=5663008,Frt=5663009,VVt=5663010,GVt=5663011,Fbe=5663012,qVt=5663013,KVt=5663014,Hrt=5663015,Hbe=5663016,zbe=5663017,Zee=5663018,Qee=5663019,zrt=5663020,Jee=5663021,jrt=5663022,Wrt=705e4,YVt=7050001,ZVt=7050002,QVt=7050003,JVt=7050004,XVt=7050005,$Vt=7050006,eGt=7050007,tGt=7050008,nGt=7050009,rGt=7050010,oGt=7050011,iGt=7050012,aGt=7050013,sGt=7050014,cGt=7050015,uGt=7050016,lGt=7050017,dGt=7050018,fGt=7050019,pGt=7050020,hGt=7050021,mGt=7050022,gGt=7050023,yGt=7050024,bGt=7050025,vGt=7050026,wGt=7050027,xGt=7050028,EGt=7050029,Vrt=7050030,Grt=7050031,AGt=7050032,_Gt=7050033,SGt=7050034,qrt=7050035,TGt=7050036,CGt=7618e3,RGt=7618001,IGt=7618002,OGt=7618003,jbe=8078e3,Wbe=8078001,Vbe=8078002,Krt=8078003,Gbe=8078004,qbe=8078005,Kbe=8078006,Ybe=8078007,Zbe=8078008,Yrt=8078009,Zrt=8078010,Qbe=8078011,gR=8078012,HF=8078013,Jbe=8078014,Qrt=8078015,Jrt=8078016,Xbe=8078017,$be=8078018,kGt=8078019,Xrt=8078020,$rt=8078021,eve=8078022,eot=8078023,zF=81e5,tve=8100001,nve=8100002,rve=8100003,ove=819e4,ive=8190001,ave=8190002,_7=8190003,sve=8190004,cve=99e5,uve=9900001,NGt=9900002,lve=9900003,dve=9900004,PGt=9900005,MGt=9900006;var DGt={[Abe]:\"Account not found at address: $address\",[Tbe]:\"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.\",[vrt]:\"Expected decoded account at address: $address\",[Sbe]:\"Failed to decode account data at address: $address\",[_be]:\"Accounts not found at addresses: $addresses\",[Ebe]:\"Unable to find a viable program address bump seed.\",[BWt]:\"$putativeAddress is not a base58-encoded address.\",[Vee]:\"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.\",[hrt]:\"The `CryptoKey` must be an `Ed25519` public key.\",[brt]:\"$putativeOffCurveAddress is not a base58-encoded off-curve address.\",[qee]:\"Invalid seeds; point must fall off the Ed25519 curve.\",[mrt]:\"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].\",[wbe]:\"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.\",[xbe]:\"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.\",[grt]:\"Expected program derived address bump to be in the range [0, 255], got: $bump.\",[yrt]:\"Program address cannot end with PDA marker.\",[Gee]:\"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.\",[Knt]:\"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.\",[FF]:\"The network has progressed past the last block for which this transaction could have been committed.\",[jbe]:\"Codec [$codecDescription] cannot decode empty byte arrays.\",[eve]:\"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.\",[Xrt]:\"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].\",[qbe]:\"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].\",[Kbe]:\"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].\",[Gbe]:\"Encoder and decoder must either both be fixed-size or variable-size.\",[Zbe]:\"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.\",[Vbe]:\"Expected a fixed-size codec, got a variable-size one.\",[HF]:\"Codec [$codecDescription] expected a positive byte length, got $bytesLength.\",[Krt]:\"Expected a variable-size codec, got a fixed-size one.\",[kGt]:\"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].\",[Wbe]:\"Codec [$codecDescription] expected $expected bytes, got $bytesLength.\",[$be]:\"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].\",[Yrt]:\"Invalid discriminated union variant. Expected one of [$variants], got $value.\",[Zrt]:\"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.\",[Qrt]:\"Invalid literal union variant. Expected one of [$variants], got $value.\",[Ybe]:\"Expected [$codecDescription] to have $expected items, got $actual.\",[gR]:\"Invalid value $value for base $base with alphabet $alphabet.\",[Jrt]:\"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.\",[Qbe]:\"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.\",[Jbe]:\"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.\",[$rt]:\"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].\",[Xbe]:\"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.\",[eot]:\"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?\",[Srt]:\"No random values implementation could be found.\",[XWt]:\"instruction requires an uninitialized account\",[fVt]:\"instruction tries to borrow reference for an account which is already borrowed\",[pVt]:\"instruction left account with an outstanding borrowed reference\",[lVt]:\"program other than the account\\'s owner changed the size of the account data\",[YWt]:\"account data too small for instruction\",[dVt]:\"instruction expected an executable account\",[MVt]:\"An account does not have enough lamports to be rent-exempt\",[LVt]:\"Program arithmetic overflowed\",[PVt]:\"Failed to serialize or deserialize account data: $encodedData\",[jVt]:\"Builtin programs must consume compute units\",[wVt]:\"Cross-program invocation call depth too deep\",[TVt]:\"Computational budget exceeded\",[Rrt]:\"custom program error: #$code\",[aVt]:\"instruction contains duplicate accounts\",[hVt]:\"instruction modifications of multiply-passed account differ\",[bVt]:\"executable accounts must be rent exempt\",[gVt]:\"instruction changed executable accounts data\",[yVt]:\"instruction changed the balance of an executable account\",[sVt]:\"instruction changed executable bit of an account\",[rVt]:\"instruction modified data of an account it does not own\",[nVt]:\"instruction spent from the balance of an account it does not own\",[VWt]:\"generic instruction error\",[UVt]:\"Provided owner is not allowed\",[kVt]:\"Account is immutable\",[NVt]:\"Incorrect authority provided\",[QWt]:\"incorrect program id for instruction\",[ZWt]:\"insufficient funds for instruction\",[KWt]:\"invalid account data for instruction\",[DVt]:\"Invalid account owner\",[GWt]:\"invalid program argument\",[mVt]:\"program returned invalid error code\",[qWt]:\"invalid instruction data\",[SVt]:\"Failed to reallocate account data\",[_Vt]:\"Provided seeds do not result in a valid address\",[FVt]:\"Accounts data allocations exceeded the maximum allowed per transaction\",[HVt]:\"Max accounts exceeded\",[zVt]:\"Max instruction trace length exceeded\",[AVt]:\"Length of the seed is too long for address generation\",[xVt]:\"An account required by the instruction is missing\",[JWt]:\"missing required signature for instruction\",[tVt]:\"instruction illegally modified the program id of an account\",[uVt]:\"insufficient account keys for instruction\",[CVt]:\"Cross-program invocation with unauthorized signer or writable account\",[RVt]:\"Failed to create program execution environment\",[OVt]:\"Program failed to compile\",[IVt]:\"Program failed to complete\",[iVt]:\"instruction modified data of a read-only account\",[oVt]:\"instruction changed the balance of a read-only account\",[EVt]:\"Cross-program invocation reentrancy not allowed for this instruction\",[cVt]:\"instruction modified rent epoch of an account\",[eVt]:\"sum of account balances before and after instruction do not match\",[$Wt]:\"instruction requires an initialized account\",[Crt]:\"\",[vVt]:\"Unsupported program id\",[BVt]:\"Unsupported sysvar\",[PGt]:\"Invalid instruction plan kind: $kind.\",[IGt]:\"The provided instruction plan is empty.\",[OGt]:\"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.\",[CGt]:\"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).\",[MGt]:\"Invalid transaction plan kind: $kind.\",[RGt]:\"No more instructions to pack; the message packer has completed the instruction plan.\",[Ibe]:\"The instruction does not have any accounts.\",[Obe]:\"The instruction does not have any data.\",[Trt]:\"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.\",[Ynt]:\"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.\",[Gnt]:\"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`\",[NGt]:\"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[dve]:\"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.\",[uve]:\"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[cve]:\"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[lve]:\"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[trt]:\"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)\",[nrt]:\"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)\",[ort]:\"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)\",[rrt]:\"JSON-RPC error: The method does not exist / is not available ($__serverMessage)\",[ert]:\"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)\",[srt]:\"$__serverMessage\",[prt]:\"$__serverMessage\",[frt]:\"$__serverMessage\",[art]:\"$__serverMessage\",[OWt]:\"Epoch rewards period still active at slot $slot\",[crt]:\"$__serverMessage\",[urt]:\"$__serverMessage\",[RWt]:\"Failed to query long-term storage; please try again\",[kWt]:\"Minimum context slot has not been reached\",[DWt]:\"Node is unhealthy; behind by $numSlotsBehind slots\",[MWt]:\"No snapshot\",[vbe]:\"Transaction simulation failed\",[IWt]:\"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node\\'s local ledger or long-term storage\",[lrt]:\"$__serverMessage\",[PWt]:\"Transaction history is not available from this node\",[drt]:\"$__serverMessage\",[NWt]:\"Transaction signature length mismatch\",[LWt]:\"Transaction signature verification failure\",[irt]:\"$__serverMessage\",[FWt]:\"Key pair bytes must be of length 64, got $byteLength.\",[HWt]:\"Expected private key bytes with length 32. Actual length: $actualLength.\",[zWt]:\"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.\",[WWt]:\"The provided private key does not match the provided public key.\",[jWt]:\"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.\",[Znt]:\"Lamports value must be in the range [0, 2e64-1]\",[Qnt]:\"`$value` cannot be parsed as a `BigInt`\",[$nt]:\"$message\",[Jnt]:\"`$value` cannot be parsed as a `Number`\",[qnt]:\"No nonce account could be found at address `$nonceAccountAddress`\",[ove]:\"The notification name must end in \\'Notifications\\' and the API must supply a subscription plan creator function for the notification \\'$notificationName\\'.\",[ave]:\"WebSocket was closed before payload could be added to the send buffer\",[_7]:\"WebSocket connection closed\",[sve]:\"WebSocket failed to connect\",[ive]:\"Failed to obtain a subscription id from the server\",[rve]:\"Could not find an API plan for RPC method: `$method`\",[zF]:\"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.\",[nve]:\"HTTP error ($statusCode): $message\",[tve]:\"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.\",[kbe]:\"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.\",[Irt]:\"The provided value does not implement the `KeyPairSigner` interface\",[krt]:\"The provided value does not implement the `MessageModifyingSigner` interface\",[Nrt]:\"The provided value does not implement the `MessagePartialSigner` interface\",[Ort]:\"The provided value does not implement any of the `MessageSigner` interfaces\",[Mrt]:\"The provided value does not implement the `TransactionModifyingSigner` interface\",[Drt]:\"The provided value does not implement the `TransactionPartialSigner` interface\",[Lrt]:\"The provided value does not implement the `TransactionSendingSigner` interface\",[Prt]:\"The provided value does not implement any of the `TransactionSigner` interfaces\",[Brt]:\"More than one `TransactionSendingSigner` was identified.\",[Urt]:\"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.\",[WVt]:\"Wallet account signers do not support signing multiple messages/transactions in a single operation\",[UWt]:\"Cannot export a non-extractable key.\",[Rbe]:\"No digest implementation could be found.\",[Cbe]:\"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.\",[wrt]:`This runtime does not support the generation of Ed25519 key pairs.\\n\\nInstall @solana/webcrypto-ed25519-polyfill and call its \\\\`install\\\\` function before generating keys in environments that do not support Ed25519.\\n\\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[xrt]:\"No signature verification implementation could be found.\",[Ert]:\"No key generation implementation could be found.\",[Art]:\"No signing implementation could be found.\",[_rt]:\"No key export implementation could be found.\",[Xnt]:\"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given\",[uGt]:\"Transaction processing left an account with an outstanding borrowed reference\",[YVt]:\"Account in use\",[ZVt]:\"Account loaded twice\",[QVt]:\"Attempt to debit an account but found no record of a prior credit.\",[gGt]:\"Transaction loads an address table account that doesn\\'t exist\",[eGt]:\"This transaction has already been processed\",[tGt]:\"Blockhash not found\",[nGt]:\"Loader call chain is too deep\",[cGt]:\"Transactions are currently disabled due to cluster maintenance\",[Vrt]:\"Transaction contains a duplicate instruction ($index) that is not allowed\",[XVt]:\"Insufficient funds for fee\",[Grt]:\"Transaction results in an account ($accountIndex) with insufficient funds for rent\",[$Vt]:\"This account may not be used to pay transaction fees\",[oGt]:\"Transaction contains an invalid account reference\",[bGt]:\"Transaction loads an address table account with invalid data\",[vGt]:\"Transaction address table lookup uses an invalid index\",[yGt]:\"Transaction loads an address table account with an invalid owner\",[_Gt]:\"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.\",[aGt]:\"This program may not be used for executing instructions\",[wGt]:\"Transaction leaves an account with a lower balance than rent-exempt minimum\",[fGt]:\"Transaction loads a writable account that cannot be written\",[AGt]:\"Transaction exceeded max loaded accounts data size cap\",[rGt]:\"Transaction requires a fee but has no signature present\",[JVt]:\"Attempt to load a program that does not exist\",[qrt]:\"Execution of the program referenced by account at index $accountIndex is temporarily restricted.\",[SGt]:\"ResanitizationNeeded\",[sGt]:\"Transaction failed to sanitize accounts offsets correctly\",[iGt]:\"Transaction did not pass signature verification\",[mGt]:\"Transaction locked too many accounts\",[TGt]:\"Sum of account balances before and after transaction do not match\",[Wrt]:\"The transaction failed with the error `$errorName`\",[dGt]:\"Transaction version is unsupported\",[hGt]:\"Transaction would exceed account data limit within the block\",[EGt]:\"Transaction would exceed total account data limit\",[pGt]:\"Transaction would exceed max account limit within the block\",[lGt]:\"Transaction would exceed max Block Cost Limit\",[xGt]:\"Transaction would exceed max Vote Cost Limit\",[Hrt]:\"Attempted to sign a transaction with an address that is not a signer for it\",[VVt]:\"Transaction is missing an address at index: $index.\",[Hbe]:\"Transaction has no expected signers therefore it cannot be encoded\",[zrt]:\"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes\",[Yee]:\"Transaction does not have a blockhash lifetime\",[Pbe]:\"Transaction is not a durable nonce transaction\",[Dbe]:\"Contents of these address lookup tables unknown: $lookupTableAddresses\",[Lbe]:\"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved\",[Ube]:\"No fee payer set in CompiledTransaction\",[Bbe]:\"Could not find program address at index $index\",[Zee]:\"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more\",[Qee]:\"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more\",[GVt]:\"Transaction is missing a fee payer.\",[Fbe]:\"Could not determine this transaction\\'s signature. Make sure that the transaction has been signed by its fee payer.\",[KVt]:\"Transaction first instruction is not advance nonce account instruction.\",[qVt]:\"Transaction with no instructions cannot be durable nonce transaction.\",[Nbe]:\"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees\",[Kee]:\"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable\",[zbe]:\"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.\",[Frt]:\"Transaction is missing signatures for addresses: $addresses.\",[Mbe]:\"Transaction version must be in the range [0, 127]. `$actualVersion` given\",[Jee]:\"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.\",[jrt]:\"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction.\"},nE=\"i\",$v=\"t\";function LGt(e,t={}){let n=DGt[e];if(n.length===0)return\"\";let r;function o(a){if(r[$v]===2){let c=n.slice(r[nE]+1,a);i.push(c in t?`${t[c]}`:`$${c}`)}else r[$v]===1&&i.push(n.slice(r[nE],a))}let i=[];return n.split(\"\").forEach((a,c)=>{if(c===0){r={[nE]:0,[$v]:n[0]===\"\\\\\\\\\"?0:n[0]===\"$\"?2:1};return}let u;switch(r[$v]){case 0:u={[nE]:c,[$v]:1};break;case 1:a===\"\\\\\\\\\"?u={[nE]:c,[$v]:0}:a===\"$\"&&(u={[nE]:c,[$v]:2});break;case 2:a===\"\\\\\\\\\"?u={[nE]:c,[$v]:0}:a===\"$\"?u={[nE]:c,[$v]:2}:a.match(/\\\\w/)||(u={[nE]:c,[$v]:1});break}u&&(r!==u&&o(c),r=u)}),o(),i.join(\"\")}function BGt(e,t={}){return LGt(e,t)}function rE(e,t){return e instanceof Error&&e.name===\"SolanaError\"?t!==void 0?e.context.__code===t:!0:!1}var Dt=class extends Error{constructor(...[t,n]){let r,o;n&&Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([a,c])=>{a===\"cause\"?o={cause:c.value}:(r===void 0&&(r={}),Object.defineProperty(r,a,c))});let i=BGt(t,r);super(i,o);Cf(this,\"cause\",this.cause);Cf(this,\"context\");this.context=r===void 0?{}:r,this.context.__code=t,this.name=\"SolanaError\"}};function S7(...e){\"captureStackTrace\"in Error&&typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(...e)}function tot({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},o){let i,a;typeof r==\"string\"?i=r:(i=Object.keys(r)[0],a=r[i]);let c=n.indexOf(i),u=e+c,d=t(u,i,a),p=new Dt(u,d);return S7(p,o),p}var UGt=[\"GenericError\",\"InvalidArgument\",\"InvalidInstructionData\",\"InvalidAccountData\",\"AccountDataTooSmall\",\"InsufficientFunds\",\"IncorrectProgramId\",\"MissingRequiredSignature\",\"AccountAlreadyInitialized\",\"UninitializedAccount\",\"UnbalancedInstruction\",\"ModifiedProgramId\",\"ExternalAccountLamportSpend\",\"ExternalAccountDataModified\",\"ReadonlyLamportChange\",\"ReadonlyDataModified\",\"DuplicateAccountIndex\",\"ExecutableModified\",\"RentEpochModified\",\"NotEnoughAccountKeys\",\"AccountDataSizeChanged\",\"AccountNotExecutable\",\"AccountBorrowFailed\",\"AccountBorrowOutstanding\",\"DuplicateAccountOutOfSync\",\"Custom\",\"InvalidError\",\"ExecutableDataModified\",\"ExecutableLamportChange\",\"ExecutableAccountNotRentExempt\",\"UnsupportedProgramId\",\"CallDepth\",\"MissingAccount\",\"ReentrancyNotAllowed\",\"MaxSeedLengthExceeded\",\"InvalidSeeds\",\"InvalidRealloc\",\"ComputationalBudgetExceeded\",\"PrivilegeEscalation\",\"ProgramEnvironmentSetupFailure\",\"ProgramFailedToComplete\",\"ProgramFailedToCompile\",\"Immutable\",\"IncorrectAuthority\",\"BorshIoError\",\"AccountNotRentExempt\",\"InvalidAccountOwner\",\"ArithmeticOverflow\",\"UnsupportedSysvar\",\"IllegalOwner\",\"MaxAccountsDataAllocationsExceeded\",\"MaxAccountsExceeded\",\"MaxInstructionTraceLengthExceeded\",\"BuiltinProgramsMustConsumeComputeUnits\"];function not(e,t){let n=Number(e);return tot({errorCodeBaseOffset:4615001,getErrorContext(r,o,i){return r===Crt?{errorName:o,index:n,...i!==void 0?{instructionErrorContext:i}:null}:r===Rrt?{code:Number(i),index:n}:{index:n}},orderedErrorNames:UGt,rpcEnumError:t},not)}var FGt=[\"AccountInUse\",\"AccountLoadedTwice\",\"AccountNotFound\",\"ProgramAccountNotFound\",\"InsufficientFundsForFee\",\"InvalidAccountForFee\",\"AlreadyProcessed\",\"BlockhashNotFound\",\"CallChainTooDeep\",\"MissingSignatureForFee\",\"InvalidAccountIndex\",\"SignatureFailure\",\"InvalidProgramForExecution\",\"SanitizeFailure\",\"ClusterMaintenance\",\"AccountBorrowOutstanding\",\"WouldExceedMaxBlockCostLimit\",\"UnsupportedVersion\",\"InvalidWritableAccount\",\"WouldExceedMaxAccountCostLimit\",\"WouldExceedAccountDataBlockLimit\",\"TooManyAccountLocks\",\"AddressLookupTableNotFound\",\"InvalidAddressLookupTableOwner\",\"InvalidAddressLookupTableData\",\"InvalidAddressLookupTableIndex\",\"InvalidRentPayingAccount\",\"WouldExceedMaxVoteCostLimit\",\"WouldExceedAccountDataTotalLimit\",\"DuplicateInstruction\",\"InsufficientFundsForRent\",\"MaxLoadedAccountsDataSizeExceeded\",\"InvalidLoadedAccountsDataSizeLimit\",\"ResanitizationNeeded\",\"ProgramExecutionTemporarilyRestricted\",\"UnbalancedTransaction\"];function jF(e){return typeof e==\"object\"&&\"InstructionError\"in e?not(...e.InstructionError):tot({errorCodeBaseOffset:7050001,getErrorContext(t,n,r){if(t===Wrt)return{errorName:n,...r!==void 0?{transactionErrorContext:r}:null};if(t===Vrt)return{index:Number(r)};if(t===Grt||t===qrt)return{accountIndex:Number(r.account_index)}},orderedErrorNames:FGt,rpcEnumError:e},jF)}function WF(e){let t;if(HGt(e)){let{code:n,data:r,message:o}=e,i=Number(n);if(i===vbe){let{err:a,...c}=r,u=a?{cause:jF(a)}:null;t=new Dt(vbe,{...c,...u})}else{let a;switch(i){case trt:case nrt:case ort:case rrt:case ert:case srt:case prt:case frt:case art:case crt:case urt:case lrt:case drt:case irt:a={__serverMessage:o};break;default:typeof r==\"object\"&&!Array.isArray(r)&&(a=r)}t=new Dt(i,a)}}else{let n=typeof e==\"object\"&&e!==null&&\"message\"in e&&typeof e.message==\"string\"?e.message:\"Malformed JSON-RPC error with no message attribute\";t=new Dt($nt,{error:e,message:n})}return S7(t,WF),t}function HGt(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"message\"in e&&(typeof e.code==\"number\"||typeof e.code==\"bigint\")&&typeof e.message==\"string\"}f();f();function zGt(e,t){if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n}var jGt=(e,t)=>zGt(e.length<=t?e:e.slice(0,t),t);function Ue(e,t,n){let r=n===0&&e.length===t.length?e:e.slice(n,n+t.length);return r.length!==t.length?!1:t.every((o,i)=>o===r[i])}function QS(e,t){return\"fixedSize\"in t?t.fixedSize:t.getSizeFromValue(e)}function os(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(QS(t,e));return e.write(t,n,0),n}})}function Ea(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function rs(e){return\"fixedSize\"in e&&typeof e.fixedSize==\"number\"}function fve(e){if(!rs(e))throw new Dt(Vbe)}function WGt(e){return!rs(e)}function k1(e,t){if(rs(e)!==rs(t))throw new Dt(Gbe);if(rs(e)&&rs(t)&&e.fixedSize!==t.fixedSize)throw new Dt(qbe,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!rs(e)&&!rs(t)&&e.maxSize!==t.maxSize)throw new Dt(Kbe,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function rot(e,t,n=0){if(t.length-n<=0)throw new Dt(jbe,{codecDescription:e})}function VF(e,t,n,r=0){let o=n.length-r;if(o<t)throw new Dt(Wbe,{bytesLength:o,codecDescription:e,expected:t})}function Xee(e,t,n){if(t<0||t>n)throw new Dt(Jbe,{bytesLength:n,codecDescription:e,offset:t})}function pve(e,t){let n=(a,c,u)=>{let d=e.encode(a);return u=t.write(d.length,c,u),c.set(d,u),u+d.length};if(rs(t)&&rs(e))return os({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let r=rs(t)?t.fixedSize:t.maxSize??null,o=rs(e)?e.fixedSize:e.maxSize??null,i=r!==null&&o!==null?r+o:null;return os({...e,...i!==null?{maxSize:i}:{},getSizeFromValue:a=>{let c=QS(a,e);return QS(c,t)+c},write:n})}function Ho(e,t){let n=(a,c)=>{let[u,d]=t.read(a,c),p=Number(u);return c=d,(c>0||a.length>p)&&(a=a.slice(c,c+p)),VF(\"addDecoderSizePrefix\",p,a),[e.decode(a),c+p]};if(rs(t)&&rs(e))return Ea({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let r=rs(t)?t.fixedSize:t.maxSize??null,o=rs(e)?e.fixedSize:e.maxSize??null,i=r!==null&&o!==null?r+o:null;return Ea({...e,...i!==null?{maxSize:i}:{},read:n})}function oE(e,t){return os({fixedSize:t,write:(n,r,o)=>{let i=e.encode(n),a=i.length>t?i.slice(0,t):i;return r.set(a,o),o+t}})}function Og(e,t){return Ea({fixedSize:t,read:(n,r)=>{VF(\"fixCodecSize\",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),rs(e)&&(n=jGt(n,e.fixedSize));let[o]=e.read(n,0);return[o,r+t]}})}function VGt(e,t){return os({...e,write:(n,r,o)=>{let i=d=>oot(d,r.length),a=t.preOffset?t.preOffset({bytes:r,preOffset:o,wrapBytes:i}):o;Xee(\"offsetEncoder\",a,r.length);let c=e.write(n,r,a),u=t.postOffset?t.postOffset({bytes:r,newPreOffset:a,postOffset:c,preOffset:o,wrapBytes:i}):c;return Xee(\"offsetEncoder\",u,r.length),u}})}function GGt(e,t){return Ea({...e,read:(n,r)=>{let o=d=>oot(d,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:o}):r;Xee(\"offsetDecoder\",i,n.length);let[a,c]=e.read(n,i),u=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:c,preOffset:r,wrapBytes:o}):c;return Xee(\"offsetDecoder\",u,n.length),[a,u]}})}function oot(e,t){return t===0?0:(e%t+t)%t}function qGt(e,t){if(rs(e)){let n=t(e.fixedSize);if(n<0)throw new Dt(HF,{bytesLength:n,codecDescription:\"resizeEncoder\"});return os({...e,fixedSize:n})}return os({...e,getSizeFromValue:n=>{let r=t(e.getSizeFromValue(n));if(r<0)throw new Dt(HF,{bytesLength:r,codecDescription:\"resizeEncoder\"});return r}})}function KGt(e,t){if(rs(e)){let n=t(e.fixedSize);if(n<0)throw new Dt(HF,{bytesLength:n,codecDescription:\"resizeDecoder\"});return Ea({...e,fixedSize:n})}return e}function iot(e,t){return VGt(qGt(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function aot(e,t){return GGt(KGt(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function np(e,t){return os({...WGt(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,o)=>e.write(t(n),r,o)})}function rp(e,t){return Ea({...e,read:(n,r)=>{let[o,i]=e.read(n,r);return[t(o,n,r),i]}})}function YGt(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new Dt(gR,{alphabet:e,base:e.length,value:n})}var ZGt=e=>os({getSizeFromValue:t=>{let[n,r]=sot(t,e[0]);if(!r)return t.length;let o=cot(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(YGt(e,t),t===\"\")return r;let[o,i]=sot(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=cot(i,e),c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;let u=[...Array(o.length).fill(0),...c];return n.set(u,r),r+u.length}}),QGt=e=>Ea({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return[\"\",0];let o=r.findIndex(u=>u!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return[i,t.length];let a=r.slice(o).reduce((u,d)=>u*256n+BigInt(d),0n),c=JGt(a,e);return[i+c,t.length]}});function sot(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function cot(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function JGt(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join(\"\")}var lot=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\",hve=()=>ZGt(lot),$ee=()=>QGt(lot);var uot=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",ete=()=>os({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new Dt(gR,{alphabet:uot,base:64,value:e})}},write(e,t,n){try{let r=atob(e).split(\"\").map(o=>o.charCodeAt(0));return t.set(r,n),r.length+n}catch{throw new Dt(gR,{alphabet:uot,base:64,value:e})}}}),dot=()=>Ea({read(e,t=0){let n=e.slice(t);return[btoa(String.fromCharCode(...n)),e.length]}});var XGt=e=>e.replace(/\\\\u0000/g,\"\");var $Gt=globalThis.TextDecoder,Qwr=globalThis.TextEncoder;var yR=()=>{let e;return Ea({read(t,n){let r=(e||(e=new $Gt)).decode(t.slice(n));return[XGt(r),t.length]}})};function GF(e,t){try{return\"exists\"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new Dt(Sbe,{address:e.address})}}function eqt(e){return!(\"exists\"in e)||\"exists\"in e&&e.exists}function fot(e){let t=e.filter(n=>eqt(n)&&n.data instanceof Uint8Array);if(t.length>0){let n=t.map(r=>r.address);throw new Dt(Tbe,{addresses:n})}}function mve(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=ete().encode(t.data[0]);return Object.freeze({...pot(t),address:e,data:n,exists:!0})}function tqt(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=t.data.parsed.info;return Object.freeze({...pot(t),address:e,data:n,exists:!0})}function pot(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function qF(e,t,n={}){let{abortSignal:r,...o}=n,i=await e.getAccountInfo(t,{...o,encoding:\"base64\"}).send({abortSignal:r});return mve(t,i.value)}async function tte(e,t,n={}){let{abortSignal:r,...o}=n;return(await e.getMultipleAccounts(t,{...o,encoding:\"base64\"}).send({abortSignal:r})).value.map((a,c)=>mve(t[c],a))}async function hot(e,t,n={}){let{abortSignal:r,...o}=n;return(await e.getMultipleAccounts(t,{...o,encoding:\"jsonParsed\"}).send({abortSignal:r})).value.map((a,c)=>a&&typeof a==\"object\"&&\"parsed\"in a.data?tqt(t[c],a):mve(t[c],a))}function gve(e){if(!e.exists)throw new Dt(Abe,{address:e.address})}function nte(e){let t=e.filter(n=>!n.exists);if(t.length>0){let n=t.map(r=>r.address);throw new Dt(_be,{addresses:n})}}f();f();function nqt(){if(!globalThis.isSecureContext)throw new Dt(Cbe)}function mot(){if(nqt(),typeof globalThis.crypto>\"u\"||typeof globalThis.crypto.subtle?.digest!=\"function\")throw new Dt(Rbe)}var yve,bve;function vve(){return yve||(yve=hve()),yve}function rqt(){return bve||(bve=$ee()),bve}function wve(e){if(e.length<32||e.length>44)return!1;let t=vve();try{return t.encode(e).byteLength===32}catch{return!1}}function KF(e){if(e.length<32||e.length>44)throw new Dt(Gee,{actualLength:e.length});let r=vve().encode(e).byteLength;if(r!==32)throw new Dt(Vee,{actualLength:r})}function YF(e){return KF(e),e}function tw(){return np(oE(vve(),32),e=>YF(e))}function ar(){return Og(rqt(),32)}function oqt(){return k1(tw(),ar())}function rte(){return new Intl.Collator(\"en\",{caseFirst:\"lower\",ignorePunctuation:!1,localeMatcher:\"best fit\",numeric:!1,sensitivity:\"variant\",usage:\"sort\"}).compare}var iqt=37095705934669439343138083508754565189542113879843219016388785533085940283555n,op=57896044618658097711785492504343953926634992332820282019728792003956564819949n,got=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function kg(e){let t=e%op;return t>=0n?t:op+t}function ew(e,t){let n=e;for(;t-- >0n;)n*=n,n%=op;return n}function aqt(e){let n=e*e%op*e%op,r=ew(n,2n)*n%op,o=ew(r,1n)*e%op,i=ew(o,5n)*o%op,a=ew(i,10n)*i%op,c=ew(a,20n)*a%op,u=ew(c,40n)*c%op,d=ew(u,80n)*u%op,p=ew(d,80n)*u%op,h=ew(p,10n)*i%op;return ew(h,2n)*e%op}function sqt(e,t){let n=kg(t*t*t),r=kg(n*n*t),o=aqt(e*r),i=kg(e*n*o),a=kg(t*i*i),c=i,u=kg(i*got),d=a===e,p=a===kg(-e),h=a===kg(-e*got);return d&&(i=c),(p||h)&&(i=u),(kg(i)&1n)===1n&&(i=kg(-i)),!d&&!p?null:i}function cqt(e,t){let n=kg(e*e),r=kg(n-1n),o=kg(iqt*n+1n),i=sqt(r,o);if(i===null)return!1;let a=(t&128)!==0;return!(i===0n&&a)}function uqt(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function lqt(e){let n=`0x${e.reduce((r,o,i)=>`${uqt(i===31?o&-129:o)}${r}`,\"\")}`;return BigInt(n)}function dqt(e){if(e.byteLength!==32)return!1;let t=lqt(e);return cqt(t,e[31])}var yot=32,bot=16,fqt=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function pqt({programAddress:e,seeds:t}){if(mot(),t.length>bot)throw new Dt(wbe,{actual:t.length,maxSeeds:bot});let n,r=t.reduce((u,d,p)=>{let h=typeof d==\"string\"?(n||(n=new TextEncoder)).encode(d):d;if(h.byteLength>yot)throw new Dt(xbe,{actual:h.byteLength,index:p,maxSeedLength:yot});return u.push(...h),u},[]),o=oqt(),i=o.encode(e),a=await crypto.subtle.digest(\"SHA-256\",new Uint8Array([...r,...i,...fqt])),c=new Uint8Array(a);if(dqt(c))throw new Dt(qee);return o.decode(c)}async function xve({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return[await pqt({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(r){if(rE(r,qee))n--;else throw r}throw new Dt(Ebe)}f();f();function vot(e,t,n,r){if(r<t||r>n)throw new Dt(Qbe,{codecDescription:e,max:n,min:t,value:r})}function wot(e){return e?.endian!==1}function Eve(e){return os({fixedSize:e.size,write(t,n,r){e.range&&vot(e.name,e.range[0],e.range[1],t);let o=new ArrayBuffer(e.size);return e.set(new DataView(o),t,wot(e.config)),n.set(new Uint8Array(o),r),r+e.size}})}function T7(e){return Ea({fixedSize:e.size,read(t,n=0){rot(e.name,t,n),VF(e.name,e.size,t,n);let r=new DataView(hqt(t,n,e.size));return[e.get(r,wot(e.config)),n+e.size]}})}function hqt(e,t,n){let r=e.byteOffset+(t??0),o=n??e.byteLength;return e.buffer.slice(r,r+o)}var Ave=(e={})=>T7({config:e,get:(t,n)=>t.getFloat64(0,n),name:\"f64\",size:8});var _ve=(e={})=>T7({config:e,get:(t,n)=>t.getInt16(0,n),name:\"i16\",size:2});var iE=()=>os({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{vot(\"shortU16\",0,65535,e);let r=[0];for(let o=0;;o+=1){let i=Number(e)>>o*7;if(i===0)break;let a=127&i;r[o]=a,o>0&&(r[o-1]|=128)}return t.set(r,n),n+r.length}}),nw=()=>Ea({maxSize:3,read:(e,t)=>{let n=0,r=0;for(;++r;){let o=r-1,i=e[t+o],a=127&i;if(n|=a<<o*7,(i&128)===0)break}return[n,t+r]}});var Gi=(e={})=>T7({config:e,get:(t,n)=>t.getUint16(0,n),name:\"u16\",size:2});var C7=(e={})=>Eve({config:e,name:\"u32\",range:[0,+\"0xffffffff\"],set:(t,n,r)=>t.setUint32(0,Number(n),r),size:4}),qc=(e={})=>T7({config:e,get:(t,n)=>t.getUint32(0,n),name:\"u32\",size:4});var ZF=(e={})=>Eve({config:e,name:\"u64\",range:[0n,BigInt(\"0xffffffffffffffff\")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),sa=(e={})=>T7({config:e,get:(t,n)=>t.getBigUint64(0,n),name:\"u64\",size:8});var Fe=()=>Eve({name:\"u8\",range:[0,+\"0xff\"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),ws=()=>T7({get:e=>e.getUint8(0),name:\"u8\",size:1});function mqt(e,t,n){if(t!==n)throw new Dt(Ybe,{actual:n,codecDescription:e,expected:t})}function gqt(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function R7(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function QF(e){return rs(e)?e.fixedSize:null}function I7(e){return rs(e)?e.fixedSize:e.maxSize??null}function rw(e,t={}){let n=t.size??C7(),r=ote(n,QF(e)),o=ote(n,I7(e))??void 0;return os({...r!==null?{fixedSize:r}:{getSizeFromValue:i=>(typeof n==\"object\"?QS(i.length,n):0)+[...i].reduce((c,u)=>c+QS(u,e),0),maxSize:o},write:(i,a,c)=>(typeof n==\"number\"&&mqt(\"array\",n,i.length),typeof n==\"object\"&&(c=n.write(i.length,a,c)),i.forEach(u=>{c=e.write(u,a,c)}),c)})}function mh(e,t={}){let n=t.size??qc(),r=QF(e),o=ote(n,r),i=ote(n,I7(e))??void 0;return Ea({...o!==null?{fixedSize:o}:{maxSize:i},read:(a,c)=>{let u=[];if(typeof n==\"object\"&&a.slice(c).length===0)return[u,c];if(n===\"remainder\"){for(;c<a.length;){let[h,g]=e.read(a,c);c=g,u.push(h)}return[u,c]}let[d,p]=typeof n==\"number\"?[n,c]:n.read(a,c);c=p;for(let h=0;h<d;h+=1){let[g,y]=e.read(a,c);c=y,u.push(g)}return[u,c]}})}function ote(e,t){return typeof e!=\"number\"?null:e===0?0:t===null?null:t*e}function gh(e={}){return rp(e.size??ws(),t=>Number(t)===1)}function O7(){return os({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function JS(){return Ea({read:(e,t)=>{let n=e.slice(t);return[n,t+n.length]}})}var yqt=()=>Ea({read(e,t){return[e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,\"0\"),\"\"),e.length]}});function ite(e){return os({fixedSize:e.length,write:(t,n,r)=>(n.set(e,r),r+e.length)})}function JF(e){return Ea({fixedSize:e.length,read:(t,n)=>{let r=yqt();if(!Ue(t,e,n))throw new Dt($be,{constant:e,data:t,hexConstant:r.decode(e),hexData:r.decode(t),offset:n});return[void 0,n+e.length]}})}function aE(e){let t=R7(e.map(QF)),n=R7(e.map(I7))??void 0;return Ea({...t===null?{maxSize:n}:{fixedSize:t},read:(r,o)=>{let i=[];return e.forEach(a=>{let[c,u]=a.read(r,o);i.push(c),o=u}),[i,o]}})}function Tve(e,t){let n=xot(e),r=(i,a,c)=>{let u=t(i);return Sve(e,u),e[u].write(i,a,c)};if(n!==null)return os({fixedSize:n,write:r});let o=Eot(e);return os({...o!==null?{maxSize:o}:{},getSizeFromValue:i=>{let a=t(i);return Sve(e,a),QS(i,e[a])},write:r})}function Cve(e,t){let n=xot(e),r=(i,a)=>{let c=t(i,a);return Sve(e,c),e[c].read(i,a)};if(n!==null)return Ea({fixedSize:n,read:r});let o=Eot(e);return Ea({...o!==null?{maxSize:o}:{},read:r})}function Sve(e,t){if(typeof e[t]>\"u\")throw new Dt(Xbe,{maxRange:e.length-1,minRange:0,variant:t})}function xot(e){if(e.length===0)return 0;if(!rs(e[0]))return null;let t=e[0].fixedSize;return e.every(r=>rs(r)&&r.fixedSize===t)?t:null}function Eot(e){return gqt(e.map(t=>I7(t)))}function Aot(e,t={}){let n=t.discriminator??\"__kind\",r=t.size??ws();return Cve(e.map(([o,i])=>rp(aE([r,i]),([,a])=>({[n]:o,...a}))),(o,i)=>Number(r.read(o,i)[0]))}function bqt(e){let t=[...new Set(Object.values(e).filter(a=>typeof a==\"number\"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),r=Object.keys(n),o=Object.values(n),i=[...new Set([...r,...o.filter(a=>typeof a==\"string\")])];return{enumKeys:r,enumRecord:n,enumValues:o,numericalValues:t,stringValues:i}}function vqt({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:r}){return r?wqt(n,o=>o===e):e>=0&&e<t.length?e:-1}function wqt(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function xqt(e){if(e.length===0)return\"\";let t=[e[0],e[0]],n=[];for(let r=1;r<e.length;r++){let o=e[r];t[1]+1===o?t[1]=o:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[o,o])}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(\", \")}function ate(e,t={}){let n=t.size??ws(),r=t.useValuesAsDiscriminators??!1,{enumKeys:o,enumValues:i,numericalValues:a}=bqt(e);if(r&&i.some(c=>typeof c==\"string\"))throw new Dt(eve,{stringValues:i.filter(c=>typeof c==\"string\")});return rp(n,c=>{let u=Number(c),d=vqt({discriminator:u,enumKeys:o,enumValues:i,useValuesAsDiscriminators:r});if(d<0){let p=r?a:[...Array(o.length).keys()];throw new Dt(Zbe,{discriminator:u,formattedValidDiscriminators:xqt(p),validDiscriminators:p})}return i[d]})}function Rve(e,t){return rp(aE([...t,e]),n=>n[n.length-1])}function _ot(e,t,n={}){return rp(mh(aE([e,t]),n),r=>new Map(r))}function XS(){return Ea({fixedSize:0,read:(e,t)=>[void 0,t]})}function yh(e){let t=e.map(([,o])=>o),n=R7(t.map(QF)),r=R7(t.map(I7))??void 0;return os({...n===null?{getSizeFromValue:o=>e.map(([i,a])=>QS(o[i],a)).reduce((i,a)=>i+a,0),maxSize:r}:{fixedSize:n},write:(o,i,a)=>(e.forEach(([c,u])=>{a=u.write(o[c],i,a)}),a)})}function Er(e){let t=e.map(([,o])=>o),n=R7(t.map(QF)),r=R7(t.map(I7))??void 0;return Ea({...n===null?{maxSize:r}:{fixedSize:n},read:(o,i)=>{let a={};return e.forEach(([c,u])=>{let[d,p]=u.read(o,i);i=p,a[c]=d}),[a,i]}})}f();var _qt=e=>({__option:\"Some\",value:e}),Ive=()=>({__option:\"None\"});function is(e,t={}){let n=t.prefix===null?rp(XS(),()=>!1):gh({size:t.prefix??ws()}),r=t.noneValue===\"zeroes\"?(fve(e),Og(XS(),e.fixedSize)):t.noneValue?JF(t.noneValue):XS();return Cve([rp(aE([n,r]),()=>Ive()),rp(aE([n,e]),([,o])=>_qt(o))],(o,i)=>{if(t.prefix===null&&!t.noneValue)return+(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue===\"zeroes\"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return Ue(o,a,i)?0:1}return Number(n.read(o,i)[0])})}f();function Yd(e,...t){return t.reduce((n,r)=>r(n),e)}f();function Tot(e){if(e.accounts===void 0)throw new Dt(Ibe,{data:e.data,programAddress:e.programAddress})}function Cot(e){if(e.data===void 0)throw new Dt(Obe,{accountAddresses:e.accounts?.map(t=>t.address),programAddress:e.programAddress})}var xs=(e=>(e[e.WRITABLE_SIGNER=3]=\"WRITABLE_SIGNER\",e[e.READONLY_SIGNER=2]=\"READONLY_SIGNER\",e[e.WRITABLE=1]=\"WRITABLE\",e[e.READONLY=0]=\"READONLY\",e))(xs||{}),Sqt=2,Tqt=1;function bR(e){return e>=2}function k7(e){return(e&Tqt)!==0}function Ove(e,t){return e|t}function kve(e){return e|Sqt}f();f();function Iot(e){return wve(e)}function Rot(e){switch(e){case\"finalized\":return 2;case\"confirmed\":return 1;case\"processed\":return 0;default:throw new Dt(lve,{unexpectedValue:e})}}function Oot(e,t){return e===t?0:Rot(e)<Rot(t)?-1:1}function zve(e){return\"lifetimeConstraint\"in e&&typeof e.lifetimeConstraint.blockhash==\"string\"&&typeof e.lifetimeConstraint.lastValidBlockHeight==\"bigint\"&&Iot(e.lifetimeConstraint.blockhash)}function Bot(e){if(!zve(e))throw new Dt(Yee)}function jve(e,t){return\"lifetimeConstraint\"in t&&t.lifetimeConstraint&&\"blockhash\"in t.lifetimeConstraint&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?t:Object.freeze({...t,lifetimeConstraint:Object.freeze(e)})}function Cqt(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new Dt(gR,{alphabet:e,base:e.length,value:n})}var Rqt=e=>os({getSizeFromValue:t=>{let[n,r]=kot(t,e[0]);if(!r)return t.length;let o=Not(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(Cqt(e,t),t===\"\")return r;let[o,i]=kot(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=Not(i,e),c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;let u=[...Array(o.length).fill(0),...c];return n.set(u,r),r+u.length}}),Iqt=e=>Ea({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return[\"\",0];let o=r.findIndex(u=>u!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return[i,t.length];let a=r.slice(o).reduce((u,d)=>u*256n+BigInt(d),0n),c=Oqt(a,e);return[i+c,t.length]}});function kot(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function Not(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function Oqt(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join(\"\")}var Uot=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\",kqt=()=>Rqt(Uot),Nqt=()=>Iqt(Uot),Nve;function Pqt(){if(!Nve){let e=rw(Fe(),{size:iE()});Nve=yh([[\"lookupTableAddress\",tw()],[\"writableIndexes\",e],[\"readonlyIndexes\",e]])}return Nve}var Pve;function Mqt(){if(!Pve){let e=mh(ws(),{size:nw()});Pve=Er([[\"lookupTableAddress\",ar()],[\"writableIndexes\",e],[\"readonlyIndexes\",e]])}return Pve}var Mve;function Dve(){return Mve||(Mve=Fe()),Mve}var Lve;function Bve(){return Lve||(Lve=ws()),Lve}function Dqt(){return yh([[\"numSignerAccounts\",Dve()],[\"numReadonlySignerAccounts\",Dve()],[\"numReadonlyNonSignerAccounts\",Dve()]])}function Lqt(){return Er([[\"numSignerAccounts\",Bve()],[\"numReadonlySignerAccounts\",Bve()],[\"numReadonlyNonSignerAccounts\",Bve()]])}var Uve;function Bqt(){return Uve||(Uve=np(yh([[\"programAddressIndex\",Fe()],[\"accountIndices\",rw(Fe(),{size:iE()})],[\"data\",pve(O7(),iE())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),Uve}var Fve;function Uqt(){return Fve||(Fve=rp(Er([[\"programAddressIndex\",ws()],[\"accountIndices\",mh(ws(),{size:nw()})],[\"data\",Ho(JS(),nw())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:n,...r}=e;return{...r,...t.length?{accountIndices:t}:null,...n.byteLength?{data:n}:null}})),Fve}var Fot=0,Hve=128;function Fqt(){return os({getSizeFromValue:e=>e===\"legacy\"?0:1,maxSize:1,write:(e,t,n)=>{if(e===\"legacy\")return n;if(e<0||e>127)throw new Dt(Mbe,{actualVersion:e});if(e>Fot)throw new Dt(Jee,{unsupportedVersion:e});return t.set([e|Hve],n),n+1}})}function Wve(){return Ea({maxSize:1,read:(e,t)=>{let n=e[t];if((n&Hve)===0)return[\"legacy\",t];{let r=n^Hve;if(r>Fot)throw new Dt(Jee,{unsupportedVersion:r});return[r,t+1]}}})}function Pot(){return yh(Hot())}function Mot(){return np(yh([...Hot(),[\"addressTableLookups\",zqt()]]),e=>e.version===\"legacy\"?e:{...e,addressTableLookups:e.addressTableLookups??[]})}function Hot(){let e=Tve([ite(new Uint8Array(32)),oE(kqt(),32)],t=>t===void 0?0:1);return[[\"version\",Fqt()],[\"header\",Dqt()],[\"staticAccounts\",rw(tw(),{size:iE()})],[\"lifetimeToken\",e],[\"instructions\",rw(Bqt(),{size:iE()})]]}function Hqt(){return[[\"version\",Wve()],[\"header\",Lqt()],[\"staticAccounts\",mh(ar(),{size:nw()})],[\"lifetimeToken\",Og(Nqt(),32)],[\"instructions\",mh(Uqt(),{size:nw()})],[\"addressTableLookups\",jqt()]]}function zqt(){return rw(Pqt(),{size:iE()})}function jqt(){return mh(Mqt(),{size:nw()})}function zot(){return os({getSizeFromValue:e=>e.version===\"legacy\"?Pot().getSizeFromValue(e):Mot().getSizeFromValue(e),write:(e,t,n)=>e.version===\"legacy\"?Pot().write(e,t,n):Mot().write(e,t,n)})}function N7(){return rp(Er(Hqt()),({addressTableLookups:e,...t})=>t.version===\"legacy\"||!e?.length?t:{...t,addressTableLookups:e})}function Dot(e,t,n){e[t]=n(e[t]??{role:xs.READONLY})}var Kc=Symbol(\"AddressMapTypeProperty\");function Wqt(e,t){let n={[e]:{[Kc]:0,role:xs.WRITABLE_SIGNER}},r=new Set;for(let o of t){Dot(n,o.programAddress,a=>{if(r.add(o.programAddress),Kc in a){if(k7(a.role))switch(a[Kc]){case 0:throw new Dt(Nbe,{programAddress:o.programAddress});default:throw new Dt(Kee,{programAddress:o.programAddress})}if(a[Kc]===2)return a}return{[Kc]:2,role:xs.READONLY}});let i;if(o.accounts)for(let a of o.accounts)Dot(n,a.address,c=>{let{address:u,...d}=a;if(Kc in c)switch(c[Kc]){case 0:return c;case 1:{let p=Ove(c.role,d.role);if(\"lookupTableAddress\"in d){if(c.lookupTableAddress!==d.lookupTableAddress&&(i||(i=rte()))(d.lookupTableAddress,c.lookupTableAddress)<0)return{[Kc]:1,...d,role:p}}else if(bR(d.role))return{[Kc]:2,role:p};return c.role!==p?{...c,role:p}:c}case 2:{let p=Ove(c.role,d.role);if(r.has(a.address)){if(k7(d.role))throw new Dt(Kee,{programAddress:a.address});return c.role!==p?{...c,role:p}:c}else return\"lookupTableAddress\"in d&&!bR(c.role)?{...d,[Kc]:1,role:p}:c.role!==p?{...c,role:p}:c}}return\"lookupTableAddress\"in d?{...d,[Kc]:1}:{...d,[Kc]:2}})}return n}function Vqt(e){let t;return Object.entries(e).sort(([r,o],[i,a])=>{if(o[Kc]!==a[Kc]){if(o[Kc]===0)return-1;if(a[Kc]===0)return 1;if(o[Kc]===2)return-1;if(a[Kc]===2)return 1}let c=bR(o.role);if(c!==bR(a.role))return c?-1:1;let u=k7(o.role);return u!==k7(a.role)?u?-1:1:(t||(t=rte()),o[Kc]===1&&a[Kc]===1&&o.lookupTableAddress!==a.lookupTableAddress?t(o.lookupTableAddress,a.lookupTableAddress):t(r,i))}).map(([r,o])=>({address:r,...o}))}function Gqt(e){var n;let t={};for(let r of e){if(!(\"lookupTableAddress\"in r))continue;let o=t[n=r.lookupTableAddress]||(t[n]={readonlyIndexes:[],writableIndexes:[]});r.role===xs.WRITABLE?o.writableIndexes.push(r.addressIndex):o.readonlyIndexes.push(r.addressIndex)}return Object.keys(t).sort(rte()).map(r=>({lookupTableAddress:r,...t[r]}))}function qqt(e){let t=0,n=0,r=0;for(let o of e){if(\"lookupTableAddress\"in o)break;let i=k7(o.role);bR(o.role)?(r++,i||n++):i||t++}return{numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:r}}function Kqt(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function Yqt(e,t){let n=Kqt(t);return e.map(({accounts:r,data:o,programAddress:i})=>({programAddressIndex:n[i],...r?{accountIndices:r.map(({address:a})=>n[a])}:null,...o?{data:o}:null}))}function Zqt(e){return\"nonce\"in e?e.nonce:e.blockhash}function Qqt(e){let t=e.findIndex(r=>\"lookupTableAddress\"in r);return(t===-1?e:e.slice(0,t)).map(({address:r})=>r)}function jot(e){let t=Wqt(e.feePayer.address,e.instructions),n=Vqt(t),r=e.lifetimeConstraint;return{...e.version!==\"legacy\"?{addressTableLookups:Gqt(n)}:null,...r?{lifetimeToken:Zqt(r)}:null,header:qqt(n),instructions:Yqt(e.instructions,n),staticAccounts:Qqt(n),version:e.version}}function Vve(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}var Wot=\"SysvarRecentB1ockHashes11111111111111111111\",Vot=\"11111111111111111111111111111111\";function Lot(e,t){return{accounts:[{address:e,role:xs.WRITABLE},{address:Wot,role:xs.READONLY},{address:t,role:xs.READONLY_SIGNER}],data:new Uint8Array([4,0,0,0]),programAddress:Vot}}function Gve(e){return e.programAddress===Vot&&e.data!=null&&Jqt(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===xs.WRITABLE&&e.accounts[1].address===Wot&&e.accounts[1].role===xs.READONLY&&e.accounts[2].address!=null&&bR(e.accounts[2].role)}function Jqt(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function XF(e){return\"lifetimeConstraint\"in e&&typeof e.lifetimeConstraint.nonce==\"string\"&&e.instructions[0]!=null&&Gve(e.instructions[0])}function Xqt(e,t,n){return e.accounts[0].address===t&&e.accounts[2].address===n}function $qt({nonce:e,nonceAccountAddress:t,nonceAuthorityAddress:n},r){let o,i=r.instructions[0];if(i&&Gve(i))if(Xqt(i,t,n)){if(XF(r)&&r.lifetimeConstraint.nonce===e)return r;o=[i,...r.instructions.slice(1)]}else o=[Object.freeze(Lot(t,n)),...r.instructions.slice(1)];else o=[Object.freeze(Lot(t,n)),...r.instructions];return Object.freeze({...r,instructions:Object.freeze(o),lifetimeConstraint:Object.freeze({nonce:e})})}function qve(e,t){if(\"feePayer\"in t&&e===t.feePayer?.address&&eKt(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function eKt(e){return!!e&&\"address\"in e&&typeof e.address==\"string\"&&Object.keys(e).length===1}function ste(e,t){return Kve([e],t)}function Kve(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function Got(e,t){return tKt([e],t)}function tKt(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function nKt(e){let{header:t}=e,n=t.numSignerAccounts-t.numReadonlySignerAccounts,r=e.staticAccounts.length-t.numSignerAccounts-t.numReadonlyNonSignerAccounts,o=[],i=0;for(let a=0;a<n;a++)o.push({address:e.staticAccounts[i],role:xs.WRITABLE_SIGNER}),i++;for(let a=0;a<t.numReadonlySignerAccounts;a++)o.push({address:e.staticAccounts[i],role:xs.READONLY_SIGNER}),i++;for(let a=0;a<r;a++)o.push({address:e.staticAccounts[i],role:xs.WRITABLE}),i++;for(let a=0;a<t.numReadonlyNonSignerAccounts;a++)o.push({address:e.staticAccounts[i],role:xs.READONLY}),i++;return o}function rKt(e,t){let r=e.map(a=>a.lookupTableAddress).filter(a=>t[a]===void 0);if(r.length>0)throw new Dt(Dbe,{lookupTableAddresses:r});let o=[],i=[];for(let a of e){let c=t[a.lookupTableAddress],u=a.readonlyIndexes,d=a.writableIndexes,p=Math.max(...u,...d);if(p>=c.length)throw new Dt(Lbe,{highestKnownIndex:c.length-1,highestRequestedIndex:p,lookupTableAddress:a.lookupTableAddress});let h=u.map(y=>({address:c[y],addressIndex:y,lookupTableAddress:a.lookupTableAddress,role:xs.READONLY}));o.push(...h);let g=d.map(y=>({address:c[y],addressIndex:y,lookupTableAddress:a.lookupTableAddress,role:xs.WRITABLE}));i.push(...g)}return[...i,...o]}function oKt(e,t){let n=t[e.programAddressIndex]?.address;if(!n)throw new Dt(Bbe,{index:e.programAddressIndex});let r=e.accountIndices?.map(i=>t[i]),{data:o}=e;return Object.freeze({programAddress:n,...r&&r.length?{accounts:Object.freeze(r)}:{},...o&&o.length?{data:o}:{}})}function iKt(e,t,n){if(!t||!Gve(t))return{blockhash:e,lastValidBlockHeight:n??2n**64n-1n};{let r=t.accounts[0].address;KF(r);let o=t.accounts[2].address;return KF(o),{nonce:e,nonceAccountAddress:r,nonceAuthorityAddress:o}}}function cte(e,t){let n=e.staticAccounts[0];if(!n)throw new Dt(Ube);let r=nKt(e),o=\"addressTableLookups\"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?rKt(e.addressTableLookups,t?.addressesByLookupTableAddress??{}):[],i=[...r,...o],a=e.instructions.map(d=>oKt(d,i)),c=a[0],u=iKt(e.lifetimeToken,c,t?.lastValidBlockHeight);return Yd(Vve({version:e.version}),d=>qve(n,d),d=>a.reduce((p,h)=>ste(h,p),d),d=>\"blockhash\"in u?jve(u,d):$qt(u,d))}f();function aKt(e){let t=Object.values(e);if(t.length===0)throw new Dt(Hbe);return t.map(n=>n||new Uint8Array(64).fill(0))}function sKt(){return np(rw(oE(O7(),64),{size:iE()}),aKt)}function Zve(){return yh([[\"signatures\",sKt()],[\"messageBytes\",O7()]])}function ute(){return rp(Er([[\"signatures\",mh(Og(JS(),64),{size:nw()})],[\"messageBytes\",JS()]]),cKt)}function cKt(e){let{messageBytes:t,signatures:n}=e,r=aE([Wve(),aot(ws(),2),mh(ar(),{size:nw()})]),[o,i,a]=r.decode(t),c=a.slice(0,i);if(c.length!==n.length)throw new Dt(zbe,{numRequiredSignatures:i,signaturesLength:n.length,signerAddresses:c});let u={};return c.forEach((d,p)=>{let h=n[p];h.every(g=>g===0)?u[d]=null:u[d]=h}),{messageBytes:t,signatures:Object.freeze(u)}}function lte(e){let t=jot(e),n=zot().encode(t),r=t.staticAccounts.slice(0,t.header.numSignerAccounts),o={};for(let a of r)o[a]=null;let i;return zve(e)?i={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:XF(e)&&(i={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address}),Object.freeze({...i?{lifetimeConstraint:i}:void 0,messageBytes:n,signatures:Object.freeze(o)})}var Yve;function $F(e){Yve||(Yve=$ee());let t=Object.values(e.signatures)[0];if(!t)throw new Dt(Fbe);return Yve.decode(t)}function $S(e){let t=Zve().encode(e);return dot().decode(t)}var uKt=1280,lKt=48,exr=uKt-lKt;f();function qot(e){return e!==null&&(typeof e==\"object\"||typeof e==\"function\")}function dKt(e){let t=new Set,n={deferreds:t,settled:!1};return Promise.resolve(e).then(r=>{for(let{resolve:o}of t)o(r);t.clear(),n.settled=!0},r=>{for(let{reject:o}of t)o(r);t.clear(),n.settled=!0}),n}var Qve=new WeakMap;async function eH(e){let t;return await new Promise((r,o)=>{t={reject:o,resolve:r};for(let i of e){if(!qot(i)){Promise.resolve(i).then(r,o);continue}let a=Qve.get(i);a===void 0?(a=dKt(i),a.deferreds.add(t),Qve.set(i,a)):a.settled?Promise.resolve(i).then(r,o):a.deferreds.add(t)}}).finally(()=>{for(let r of e)qot(r)&&Qve.get(r).deferreds.delete(t)})}f();f();f();f();function dte(e){return JSON.parse(fKt(e),(t,n)=>gKt(n)?mKt(n):n)}function fKt(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let o=!1;if(e[r]===\"\\\\\\\\\"&&(t.push(e[r++]),o=!o),e[r]===\\'\"\\'){t.push(e[r]),o||(n=!n);continue}if(!n){let i=pKt(e,r);if(i?.length){r+=i.length-1,i.match(/\\\\.|[eE]-/)?t.push(i):t.push(hKt(i));continue}}t.push(e[r])}return t.join(\"\")}function pKt(e,t){let n=/^-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?/;if(!e[t]?.match(/[-\\\\d]/))return null;let r=e.slice(t).match(n);return r?r[0]:null}function hKt(e){return`{\"$n\":\"${e}\"}`}function mKt({$n:e}){if(e.match(/[eE]/)){let[t,n]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(n)}return BigInt(e)}function gKt(e){return!!e&&typeof e==\"object\"&&\"$n\"in e&&typeof e.$n==\"string\"}var Kot=0n;function yKt(){let e=Kot;return Kot++,e.toString()}function tH(e){return{id:yKt(),jsonrpc:\"2.0\",method:e.methodName,params:e.params}}function fte(e,t){return vKt(JSON.stringify(e,(n,r)=>typeof r==\"bigint\"?bKt(r):r,t))}function bKt(e){return{$n:`${e}`}}function vKt(e){return e.replace(/\\\\{\\\\s*\"\\\\$n\"\\\\s*:\\\\s*\"(-?\\\\d+)\"\\\\s*\\\\}/g,\"$1\")}function Yot(e){return wKt(e)}function wKt(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,n,r){if(n!==\"then\")return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new Dt(rve,{method:i,params:o});let c=a(...o);return xKt(e,c)}}})}function xKt({transport:e},t){return{async send(n){return await t.execute({signal:n?.abortSignal,transport:e})}}}function Zot(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a=Object.freeze({methodName:o,params:i}),c=e?.requestTransformer?e?.requestTransformer(a):a;return Object.freeze({execute:async({signal:u,transport:d})=>{let p=tH(c),h=await d({payload:p,signal:u});return e?.responseTransformer?e.responseTransformer(h,c):h}})}}})}function pte(e){return e==null||typeof e!=\"object\"||Array.isArray(e)?!1:\"jsonrpc\"in e&&e.jsonrpc===\"2.0\"&&\"method\"in e&&typeof e.method==\"string\"&&\"params\"in e}f();function EKt(e){return typeof e==\"bigint\"?Number(e):e}var Lt={};function Qot(e){return function t(n,r){if(Array.isArray(n))return n.map((o,i)=>{let a={...r,keyPath:[...r.keyPath,i]};return t(o,a)});if(typeof n==\"object\"&&n!==null){let o={};for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let a={...r,keyPath:[...r.keyPath,i]};o[i]=t(n[i],a)}return o}else return e.reduce((o,i)=>i(o,r),n)}}function Jot(e,t){return n=>{let r=Qot(e);return Object.freeze({...n,params:r(n.params,t)})}}function AKt(e,t){return n=>Qot(e)(n,t)}function _Kt(){return Jot([EKt],{keyPath:[]})}function SKt({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:n,overrideCommitment:r}){let o=t[n];if(o===void 0||o&&typeof o==\"object\"&&!Array.isArray(o)){if(o&&e in o){if(!o[e]||o[e]===\"finalized\"){let i=[...t],{[e]:a,...c}=o;return Object.keys(c).length>0?i[n]=c:n===i.length-1?i.length--:i[n]=void 0,i}}else if(r!==\"finalized\"){let i=[...t];return i[n]={...o,[e]:r},i}}return t}function TKt({defaultCommitment:e,optionsObjectPositionByMethod:t}){return n=>{let{params:r,methodName:o}=n;if(!Array.isArray(r))return n;let i=t[o];return i==null?n:Object.freeze({methodName:o,params:SKt({commitmentPropertyName:o===\"sendTransaction\"?\"preflightCommitment\":\"commitment\",optionsObjectPositionInParams:i,overrideCommitment:e,params:r})})}}function CKt(e){return(t,{keyPath:n})=>(typeof t==\"bigint\"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(n,t),t)}function RKt(e){return t=>Jot([CKt((...r)=>e(t,...r))],{keyPath:[]})(t)}var IKt={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function hte(e){let t=e?.onIntegerOverflow;return n=>Yd(n,t?RKt(t):r=>r,_Kt(),TKt({defaultCommitment:e?.defaultCommitment,optionsObjectPositionByMethod:IKt}))}function OKt(e){return function(n,{keyPath:r}){return typeof n==\"number\"&&Number.isInteger(n)||typeof n==\"bigint\"?kKt(r,e)?Number(n):BigInt(n):n}}function kKt(e,t){return t.some(n=>{if(n.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--){let o=e[r],i=n[r];if(i!==o&&(i!==Lt||typeof o!=\"number\"))return!1}return!0})}function Xot(e){return AKt([OKt(e)],{keyPath:[]})}function NKt(){return e=>e.result}function PKt(){return e=>{let t=e;if(\"error\"in t)throw WF(t.error);return t}}function $ot(e){return(t,n)=>{let r=n.methodName,o=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Yd(t,i=>PKt()(i,n),i=>NKt()(i,n),i=>Xot(o??[])(i,n))}}function eit(e){return(t,n)=>{let r=n.methodName,o=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Yd(t,i=>Xot(o??[])(i,n))}}var mte=[[\"data\",\"parsed\",\"info\",\"tokenAmount\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"tokenAmount\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"rentExemptReserve\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"rentExemptReserve\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"delegatedAmount\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"delegatedAmount\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"extensions\",Lt,\"state\",\"olderTransferFee\",\"transferFeeBasisPoints\"],[\"data\",\"parsed\",\"info\",\"extensions\",Lt,\"state\",\"newerTransferFee\",\"transferFeeBasisPoints\"],[\"data\",\"parsed\",\"info\",\"extensions\",Lt,\"state\",\"preUpdateAverageRate\"],[\"data\",\"parsed\",\"info\",\"extensions\",Lt,\"state\",\"currentRate\"]],e5=[...mte,[\"data\",\"parsed\",\"info\",\"lastExtendedSlotStartIndex\"],[\"data\",\"parsed\",\"info\",\"slashPenalty\"],[\"data\",\"parsed\",\"info\",\"warmupCooldownRate\"],[\"data\",\"parsed\",\"info\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"numRequiredSigners\"],[\"data\",\"parsed\",\"info\",\"numValidSigners\"],[\"data\",\"parsed\",\"info\",\"stake\",\"delegation\",\"warmupCooldownRate\"],[\"data\",\"parsed\",\"info\",\"exemptionThreshold\"],[\"data\",\"parsed\",\"info\",\"burnPercent\"],[\"data\",\"parsed\",\"info\",\"commission\"],[\"data\",\"parsed\",\"info\",\"votes\",Lt,\"confirmationCount\"]],gte=[[\"index\"],[\"instructions\",Lt,\"accounts\",Lt],[\"instructions\",Lt,\"programIdIndex\"],[\"instructions\",Lt,\"stackHeight\"]],Jve=[[\"addressTableLookups\",Lt,\"writableIndexes\",Lt],[\"addressTableLookups\",Lt,\"readonlyIndexes\",Lt],[\"header\",\"numReadonlySignedAccounts\"],[\"header\",\"numReadonlyUnsignedAccounts\"],[\"header\",\"numRequiredSignatures\"],[\"instructions\",Lt,\"accounts\",Lt],[\"instructions\",Lt,\"programIdIndex\"],[\"instructions\",Lt,\"stackHeight\"]];function tit(e){return Zot({requestTransformer:hte(e),responseTransformer:$ot({allowedNumericKeyPaths:MKt()})})}var Xve;function MKt(){return Xve||(Xve={getAccountInfo:e5.map(e=>[\"value\",...e]),getBlock:[[\"transactions\",Lt,\"meta\",\"preTokenBalances\",Lt,\"accountIndex\"],[\"transactions\",Lt,\"meta\",\"preTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"transactions\",Lt,\"meta\",\"postTokenBalances\",Lt,\"accountIndex\"],[\"transactions\",Lt,\"meta\",\"postTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"transactions\",Lt,\"meta\",\"rewards\",Lt,\"commission\"],...gte.map(e=>[\"transactions\",Lt,\"meta\",\"innerInstructions\",Lt,...e]),...Jve.map(e=>[\"transactions\",Lt,\"transaction\",\"message\",...e]),[\"rewards\",Lt,\"commission\"]],getClusterNodes:[[Lt,\"featureSet\"],[Lt,\"shredVersion\"]],getInflationGovernor:[[\"initial\"],[\"foundation\"],[\"foundationTerm\"],[\"taper\"],[\"terminal\"]],getInflationRate:[[\"foundation\"],[\"total\"],[\"validator\"]],getInflationReward:[[Lt,\"commission\"]],getMultipleAccounts:e5.map(e=>[\"value\",Lt,...e]),getProgramAccounts:e5.flatMap(e=>[[\"value\",Lt,\"account\",...e],[Lt,\"account\",...e]]),getRecentPerformanceSamples:[[Lt,\"samplePeriodSecs\"]],getTokenAccountBalance:[[\"value\",\"decimals\"],[\"value\",\"uiAmount\"]],getTokenAccountsByDelegate:mte.map(e=>[\"value\",Lt,\"account\",...e]),getTokenAccountsByOwner:mte.map(e=>[\"value\",Lt,\"account\",...e]),getTokenLargestAccounts:[[\"value\",Lt,\"decimals\"],[\"value\",Lt,\"uiAmount\"]],getTokenSupply:[[\"value\",\"decimals\"],[\"value\",\"uiAmount\"]],getTransaction:[[\"meta\",\"preTokenBalances\",Lt,\"accountIndex\"],[\"meta\",\"preTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"meta\",\"postTokenBalances\",Lt,\"accountIndex\"],[\"meta\",\"postTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"meta\",\"rewards\",Lt,\"commission\"],...gte.map(e=>[\"meta\",\"innerInstructions\",Lt,...e]),...Jve.map(e=>[\"transaction\",\"message\",...e])],getVersion:[[\"feature-set\"]],getVoteAccounts:[[\"current\",Lt,\"commission\"],[\"delinquent\",Lt,\"commission\"]],simulateTransaction:[[\"value\",\"loadedAccountsDataSize\"],...e5.map(e=>[\"value\",\"accounts\",Lt,...e]),...gte.map(e=>[\"value\",\"innerInstructions\",Lt,...e])]}),Xve}f();var DKt={accept:!0,\"content-length\":!0,\"content-type\":!0},LKt=Object.assign({\"accept-charset\":!0,\"access-control-request-headers\":!0,\"access-control-request-method\":!0,connection:!0,\"content-length\":!0,cookie:!0,date:!0,dnt:!0,expect:!0,host:!0,\"keep-alive\":!0,\"permissions-policy\":!0,referer:!0,te:!0,trailer:!0,\"transfer-encoding\":!0,upgrade:!0,via:!0},{\"accept-encoding\":!0},{origin:!0});function BKt(e){let t=Object.keys(e).filter(n=>{let r=n.toLowerCase();return DKt[n.toLowerCase()]===!0||LKt[n.toLowerCase()]===!0||r.startsWith(\"proxy-\")||r.startsWith(\"sec-\")});if(t.length>0)throw new Dt(tve,{headers:t})}function UKt(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}var nit=!1;function FKt(){nit||(nit=!0,console.warn(\"You have supplied a `Dispatcher` to `createHttpTransport()`. It has been ignored because Undici dispatchers only work in Node environments. To eliminate this warning, omit the `dispatcher_NODE_ONLY` property from your config when running in a non-Node environment.\"))}function HKt(e){\"dispatcher_NODE_ONLY\"in e&&FKt();let{fromJson:t,headers:n,toJson:r,url:o}=e;n&&BKt(n);let i,a=n&&UKt(n);return async function({payload:u,signal:d}){let p=r?r(u):JSON.stringify(u),h={...i,body:p,headers:{...a,accept:\"application/json\",\"content-length\":p.length.toString(),\"content-type\":\"application/json; charset=utf-8\"},method:\"POST\",signal:d},g=await fetch(o,h);if(!g.ok)throw new Dt(nve,{headers:g.headers,message:g.statusText,statusCode:g.status});return t?t(await g.text(),u):await g.json()}}var zKt=[\"getAccountInfo\",\"getBalance\",\"getBlock\",\"getBlockCommitment\",\"getBlockHeight\",\"getBlockProduction\",\"getBlocks\",\"getBlocksWithLimit\",\"getBlockTime\",\"getClusterNodes\",\"getEpochInfo\",\"getEpochSchedule\",\"getFeeForMessage\",\"getFirstAvailableBlock\",\"getGenesisHash\",\"getHealth\",\"getHighestSnapshotSlot\",\"getIdentity\",\"getInflationGovernor\",\"getInflationRate\",\"getInflationReward\",\"getLargestAccounts\",\"getLatestBlockhash\",\"getLeaderSchedule\",\"getMaxRetransmitSlot\",\"getMaxShredInsertSlot\",\"getMinimumBalanceForRentExemption\",\"getMultipleAccounts\",\"getProgramAccounts\",\"getRecentPerformanceSamples\",\"getRecentPrioritizationFees\",\"getSignaturesForAddress\",\"getSignatureStatuses\",\"getSlot\",\"getSlotLeader\",\"getSlotLeaders\",\"getStakeMinimumDelegation\",\"getSupply\",\"getTokenAccountBalance\",\"getTokenAccountsByDelegate\",\"getTokenAccountsByOwner\",\"getTokenLargestAccounts\",\"getTokenSupply\",\"getTransaction\",\"getTransactionCount\",\"getVersion\",\"getVoteAccounts\",\"index\",\"isBlockhashValid\",\"minimumLedgerSlot\",\"requestAirdrop\",\"sendTransaction\",\"simulateTransaction\"];function rit(e){return pte(e)&&zKt.includes(e.method)}function oit(e){return HKt({...e,fromJson:(t,n)=>rit(n)?dte(t):JSON.parse(t),toJson:t=>rit(t)?fte(t):JSON.stringify(t)})}f();var jKt=Object.prototype.toString,WKt=Object.keys||function(e){let t=[];for(let n in e)t.push(n);return t};function nH(e,t){let n,r,o,i,a,c,u;if(e===!0)return\"true\";if(e===!1)return\"false\";switch(typeof e){case\"object\":if(e===null)return null;if(\"toJSON\"in e&&typeof e.toJSON==\"function\")return nH(e.toJSON(),t);if(u=jKt.call(e),u===\"[object Array]\"){for(o=\"[\",r=e.length-1,n=0;n<r;n++)o+=nH(e[n],!0)+\",\";return r>-1&&(o+=nH(e[n],!0)),o+\"]\"}else if(u===\"[object Object]\"){for(i=WKt(e).sort(),r=i.length,o=\"\",n=0;n<r;)a=i[n],c=nH(e[a],!1),c!==void 0&&(o&&(o+=\",\"),o+=JSON.stringify(a)+\":\"+c),n++;return\"{\"+o+\"}\"}else return JSON.stringify(e);case\"function\":case\"undefined\":return t?null:void 0;case\"bigint\":return`${e.toString()}n`;case\"string\":return JSON.stringify(e);default:return isFinite(e)?e:null}}function yte(e){let t=nH(e,!1);if(t!==void 0)return\"\"+t}function sit(e,t,n){let r=\"\";if(typeof t[0]==\"number\"){let a=t[0]+1,c=a%10,u=a%100;c==1&&u!=11?r=a+\"st\":c==2&&u!=12?r=a+\"nd\":c==3&&u!=13?r=a+\"rd\":r=a+\"th\"}else r=`\\\\`${t[0].toString()}\\\\``;let o=t.length>1?t.slice(1).map(a=>typeof a==\"number\"?`[${a}]`:a).join(\".\"):void 0,i=new Dt(zF,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \\\\`${o}\\\\``:\"\",value:n,...o!==void 0?{path:o}:void 0});return S7(i,sit),i}var VKt={defaultCommitment:\"confirmed\",onIntegerOverflow(e,t,n){throw sit(e.methodName,t,n)}},GKt=globalThis.AbortController,iit;function ait(){return{EXPLICIT_ABORT_TOKEN:\"This object is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts\"}}function qKt(e,t){let n;return async function(o){let{payload:i,signal:a}=o,c=t(i);if(c===void 0)return await e(o);if(n||(queueMicrotask(()=>{n=void 0}),n={}),n[c]==null){let d=new GKt,p=(async()=>{try{return await e({...o,signal:d.signal})}catch(h){if(h===(iit||(iit=ait())))return;throw h}})();n[c]={abortController:d,numConsumers:0,responsePromise:p}}let u=n[c];if(u.numConsumers++,a){let d=u.responsePromise;return await new Promise((p,h)=>{let g=y=>{a.removeEventListener(\"abort\",g),u.numConsumers-=1,queueMicrotask(()=>{u.numConsumers===0&&u.abortController.abort(iit||(iit=ait()))}),h(y.target.reason)};a.addEventListener(\"abort\",g),d.then(p).catch(h).finally(()=>{a.removeEventListener(\"abort\",g)})})}else return await u.responsePromise}}function KKt(e){return pte(e)?yte([e.method,e.params]):void 0}function YKt(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function ZKt(e){return Yd(oit({...e,headers:{...e.headers?YKt(e.headers):void 0,\"solana-client\":\"js/5.0.0\"}}),t=>qKt(t,KKt))}function $ve(e,t){return QKt(ZKt({url:e,...t}))}function QKt(e){return Yot({api:tit(VKt),transport:e})}f();f();f();f();var JKt=globalThis.AbortController,XKt=globalThis.EventTarget,cit;function uit(){return Symbol(\"This symbol is thrown from a socket\\'s iterator when the connection is explicitly aborted by the user\")}var ewe=Symbol();function lit({abortSignal:e,dataChannelName:t,dataPublisher:n,errorChannelName:r}){let o=new Map;function i(d){for(let[p,h]of o.entries())h.__hasPolled?(o.delete(p),h.onError(d)):h.publishQueue.push({__type:1,err:d})}let a=new JKt;e.addEventListener(\"abort\",()=>{a.abort(),i(cit||(cit=uit()))});let c={signal:a.signal},u=ewe;return n.on(r,d=>{u===ewe&&(u=d,a.abort(),i(d))},c),n.on(t,d=>{o.forEach((p,h)=>{if(p.__hasPolled){let{onData:g}=p;o.set(h,{__hasPolled:!1,publishQueue:[]}),g(d)}else p.publishQueue.push({__type:0,data:d})})},c),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(u!==ewe)throw u;let d=Symbol();o.set(d,{__hasPolled:!1,publishQueue:[]});try{for(;;){let p=o.get(d);if(!p)throw new Dt(cve);if(p.__hasPolled)throw new Dt(uve);let h=p.publishQueue;try{if(h.length){p.publishQueue=[];for(let g of h)if(g.__type===0)yield g.data;else throw g.err}else yield await new Promise((g,y)=>{o.set(d,{__hasPolled:!0,onData:g,onError:y})})}catch(g){if(g===(cit||(cit=uit())))return;throw g}}}finally{o.delete(d)}}}}function twe(e){return{on(t,n,r){function o(i){if(i instanceof CustomEvent){let a=i.detail;n(a)}else n()}return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o)}}}}function dit(e,t,n){let r,o=new XKt,i=twe(o);return{...i,on(a,c,u){r||(r={dispose:e.on(t,y=>{let v=n(y);if(!v)return;let[x,R]=v;o.dispatchEvent(new CustomEvent(x,{detail:R}))}),numSubscribers:0}),r.numSubscribers++;let d=i.on(a,c,u),p=!0;function h(){p&&(p=!1,u?.signal.removeEventListener(\"abort\",h),r.numSubscribers--,r.numSubscribers===0&&(r.dispose(),r=void 0),d())}return u?.signal.addEventListener(\"abort\",h),h}}}function pit(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,n,r){if(n!==\"then\")return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new Dt(ove,{notificationName:i});let c=a(...o);return $Kt(e.transport,c)}}})}function $Kt(e,t){return{async subscribe({abortSignal:n}){let r=await e({signal:n,...t});return lit({abortSignal:n,dataChannelName:\"notification\",dataPublisher:r,errorChannelName:\"error\"})}}}function hit(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a={methodName:o,params:i},c=e.requestTransformer?e.requestTransformer(a):a;return{execute(u){return e.planExecutor({...u,request:c})},request:c}}}})}function mit(e,t){return Object.freeze({...e,on(n,r,o){return n!==\"message\"?e.on(n,r,o):e.on(\"message\",i=>r(t(i)),o)}})}function git(e,t){return Object.freeze({...e,send:n=>e.send(t(n))})}var eYt=globalThis.AbortController,nwe=new WeakMap;function tYt(e,t){return yit(-1,e,t)}function nYt(e,t){yit(1,e,t)}function rYt(e){let t=nwe.get(e);return t||nwe.set(e,t={}),t}function yit(e,t,n){if(n===void 0)return;let r=rYt(t);!r[n]&&e>0&&(r[n]=0);let o=e+r[n];return o<=0?delete r[n]:r[n]=o,o}var fit=new WeakMap;function oYt(e,t,n){let r=fit.get(e);r||fit.set(e,r=new WeakMap);let o=n??e,i=r.get(o);return i||r.set(o,i=dit(e,\"message\",a=>{let c=a;if(!(\"method\"in c))return;let u=n?n(c.params.result,t):c.params.result;return[`notification:${c.params.subscription}`,u]})),i}async function bit({channel:e,responseTransformer:t,signal:n,subscribeRequest:r,unsubscribeMethodName:o}){let i;e.on(\"error\",()=>{i=void 0,nwe.delete(e)},{signal:n});let a=new Promise((h,g)=>{function y(){if(tYt(e,i)===0){let v=tH({methodName:o,params:[i]});i=void 0,e.send(v).catch(()=>{})}g(this.reason)}n.aborted?y.call(n):n.addEventListener(\"abort\",y)}),c=tH(r);await e.send(c);let u=new Promise((h,g)=>{let y=new eYt;n.addEventListener(\"abort\",y.abort.bind(y));let v={signal:y.signal};e.on(\"error\",x=>{y.abort(),g(x)},v),e.on(\"message\",x=>{x&&typeof x==\"object\"&&\"id\"in x&&x.id===c.id&&(y.abort(),\"error\"in x?g(WF(x.error)):h(x.result))},v)});if(i=await eH([a,u]),i==null)throw new Dt(ive);nYt(e,i);let d=oYt(e,r,t),p=`notification:${i}`;return{on(h,g,y){switch(h){case\"notification\":return d.on(p,g,y);case\"error\":return e.on(\"error\",g,y);default:throw new Dt(dve,{channelName:h,supportedChannelNames:[\"notification\",\"error\"]})}}}}function iYt(e){let t=hte(e),n=eit({allowedNumericKeyPaths:aYt()});return hit({planExecutor({request:r,...o}){return bit({...o,responseTransformer:n,subscribeRequest:{...r,methodName:r.methodName.replace(/Notifications$/,\"Subscribe\")},unsubscribeMethodName:r.methodName.replace(/Notifications$/,\"Unsubscribe\")})},requestTransformer:t})}function vit(e){return iYt(e)}var rwe;function aYt(){return rwe||(rwe={accountNotifications:e5.map(e=>[\"value\",...e]),blockNotifications:[[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"preTokenBalances\",Lt,\"accountIndex\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"preTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"postTokenBalances\",Lt,\"accountIndex\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"postTokenBalances\",Lt,\"uiTokenAmount\",\"decimals\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"rewards\",Lt,\"commission\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"innerInstructions\",Lt,\"index\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"innerInstructions\",Lt,\"instructions\",Lt,\"programIdIndex\"],[\"value\",\"block\",\"transactions\",Lt,\"meta\",\"innerInstructions\",Lt,\"instructions\",Lt,\"accounts\",Lt],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"addressTableLookups\",Lt,\"writableIndexes\",Lt],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"addressTableLookups\",Lt,\"readonlyIndexes\",Lt],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"instructions\",Lt,\"programIdIndex\"],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"instructions\",Lt,\"accounts\",Lt],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"header\",\"numReadonlySignedAccounts\"],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"header\",\"numReadonlyUnsignedAccounts\"],[\"value\",\"block\",\"transactions\",Lt,\"transaction\",\"message\",\"header\",\"numRequiredSignatures\"],[\"value\",\"block\",\"rewards\",Lt,\"commission\"]],programNotifications:e5.flatMap(e=>[[\"value\",Lt,\"account\",...e],[Lt,\"account\",...e]])}),rwe}f();var sYt=globalThis.EventTarget,rH=globalThis.WebSocket,wit=1e3;function xit({sendBufferHighWatermark:e,signal:t,url:n}){if(t.aborted)return Promise.reject(t.reason);let r,o=!1,i=new Set;function a(){i.forEach(S=>{S()}),i.clear()}function c(){a(),o||x(t.reason),v.readyState!==rH.CLOSED&&v.readyState!==rH.CLOSING&&v.close(wit)}function u(S){a(),r?.onCancel(),t.removeEventListener(\"abort\",c),v.removeEventListener(\"close\",u),v.removeEventListener(\"error\",d),v.removeEventListener(\"message\",p),v.removeEventListener(\"open\",y),!t.aborted&&!(S.wasClean&&S.code===wit)&&h.dispatchEvent(new CustomEvent(\"error\",{detail:new Dt(_7,{cause:S})}))}function d(S){if(!t.aborted&&!o){let M=new Dt(sve,{errorEvent:S});x(M),h.dispatchEvent(new CustomEvent(\"error\",{detail:M}))}}function p(S){t.aborted||h.dispatchEvent(new CustomEvent(\"message\",{detail:S.data}))}let h=new sYt,g=twe(h);function y(){o=!0,R({...g,async send(S){if(v.readyState!==rH.OPEN)throw new Dt(_7);if(!r&&v.bufferedAmount>e){let M,P=new Promise((z,V)=>{let Q=setInterval(()=>{(v.readyState!==rH.OPEN||!(v.bufferedAmount>e))&&(clearInterval(Q),r=void 0,z())},16);M=()=>{r=void 0,clearInterval(Q),V(new Dt(ave))}});r={onCancel:M,promise:P}}if(r){if(ArrayBuffer.isView(S)&&!(S instanceof DataView)){let M=S.constructor;S=new M(S)}await r.promise}v.send(S)}})}let v=new rH(n);t.addEventListener(\"abort\",c),v.addEventListener(\"close\",u),v.addEventListener(\"error\",d),v.addEventListener(\"message\",p),v.addEventListener(\"open\",y);let x,R;return new Promise((S,M)=>{x=M,R=S})}function Eit(e,t,n){let r=\"\";if(typeof t[0]==\"number\"){let a=t[0]+1,c=a%10,u=a%100;c==1&&u!=11?r=a+\"st\":c==2&&u!=12?r=a+\"nd\":c==3&&u!=13?r=a+\"rd\":r=a+\"th\"}else r=`\\\\`${t[0].toString()}\\\\``;let o=t.length>1?t.slice(1).map(a=>typeof a==\"number\"?`[${a}]`:a).join(\".\"):void 0,i=new Dt(zF,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \\\\`${o}\\\\``:\"\",value:n,...o!==void 0?{path:o}:void 0});return S7(i,Eit),i}var cYt={defaultCommitment:\"confirmed\",onIntegerOverflow(e,t,n){throw Eit(e.methodName,t,n)}},owe=globalThis.AbortController,uYt={jsonrpc:\"2.0\",method:\"ping\"};function lYt({abortSignal:e,channel:t,intervalMs:n}){let r;function o(){t.send(uYt).catch(c=>{rE(c,_7)&&a.abort()})}function i(){clearInterval(r),r=setInterval(o,n)}let a=new owe;return a.signal.addEventListener(\"abort\",()=>{clearInterval(r)}),e.addEventListener(\"abort\",()=>{a.abort()}),t.on(\"error\",()=>{a.abort()},{signal:a.signal}),t.on(\"message\",i,{signal:a.signal}),globalThis.navigator.onLine&&i(),globalThis.addEventListener(\"offline\",function(){clearInterval(r)},{signal:a.signal}),globalThis.addEventListener(\"online\",function(){o(),i()},{signal:a.signal}),{...t,send(...c){return a.signal.aborted||i(),t.send(...c)}}}function dYt(){return{entries:[],freeChannelIndex:-1}}function fYt(e,{maxSubscriptionsPerChannel:t,minChannels:n}){let r=dYt();function o(){if(r.entries.length<n){r.freeChannelIndex=-1;return}let i;for(let a=0;a<r.entries.length;a++){let c=(r.freeChannelIndex+a+2)%r.entries.length,u=r.entries[c];u.subscriptionCount<t&&(!i||i.subscriptionCount>=u.subscriptionCount)&&(i={poolIndex:c,subscriptionCount:u.subscriptionCount})}r.freeChannelIndex=i?.poolIndex??-1}return function({abortSignal:a}){let c;function u(){let d=r.entries.findIndex(p=>p===c);r.entries.splice(d,1),c.dispose(),o()}if(r.freeChannelIndex===-1){let d=new owe,p=e({abortSignal:d.signal});p.then(h=>{h.on(\"error\",u,{signal:d.signal})}).catch(u),c={channel:p,dispose(){d.abort()},subscriptionCount:0},r.entries.push(c)}else c=r.entries[r.freeChannelIndex];return c.subscriptionCount++,a.addEventListener(\"abort\",function(){c.subscriptionCount--,c.subscriptionCount===0?u():r.freeChannelIndex!==-1&&(r.freeChannelIndex--,o())}),o(),c.channel}}function pYt(e){return Yd(e,t=>mit(t,dte),t=>git(t,fte))}function hYt(e){return mYt({...e,jsonSerializer:pYt})}function mYt(e){if(/^wss?:/i.test(e.url)===!1){let o=e.url.match(/^([^:]+):/);throw new DOMException(o?`Failed to construct \\'WebSocket\\': The URL\\'s scheme must be either \\'ws\\' or \\'wss\\'. \\'${o[1]}:\\' is not allowed.`:`Failed to construct \\'WebSocket\\': The URL \\'${e.url}\\' is invalid.`)}let{intervalMs:t,...n}=e;return fYt(({abortSignal:o})=>xit({...n,sendBufferHighWatermark:e.sendBufferHighWatermark??131072,signal:o}).then(e.jsonSerializer).then(i=>lYt({abortSignal:o,channel:i,intervalMs:t??5e3})),{maxSubscriptionsPerChannel:e.maxSubscriptionsPerChannel??100,minChannels:e.minChannels??1})}function gYt(e){let t=new Map;return function(r){let{request:o,signal:i}=r,a=yte([o.methodName,o.params]),c=t.get(a);if(!c){let u=new owe,d=e({...r,signal:u.signal});d.then(p=>{p.on(\"error\",()=>{t.delete(a),u.abort()},{signal:u.signal})}).catch(()=>{}),t.set(a,c={abortController:u,dataPublisherPromise:d,numSubscribers:0})}return c.numSubscribers++,i.addEventListener(\"abort\",()=>{c.numSubscribers--,c.numSubscribers===0&&queueMicrotask(()=>{c.numSubscribers===0&&(t.delete(a),c.abortController.abort())})},{signal:c.abortController.signal}),c.dataPublisherPromise}}function yYt({createChannel:e}){return Yd(bYt(e),t=>gYt(t))}function bYt(e){return async({execute:t,signal:n})=>{let r=await e({abortSignal:n});return await t({channel:r,signal:n})}}function vYt(e,t){let n=yYt({createChannel:hYt({...t,url:e})});return wYt(n)}function iwe(e,t){return vYt(e,t)}function wYt(e){return pit({api:vit(cYt),transport:e})}f();function awe(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(t[n.address]!==n)throw new Dt(kbe,{address:n.address})}),Object.values(t)}function P7(e){return\"modifyAndSignTransactions\"in e&&typeof e.modifyAndSignTransactions==\"function\"}function vR(e){return\"signTransactions\"in e&&typeof e.signTransactions==\"function\"}function Ait(e){return\"signAndSendTransactions\"in e&&typeof e.signAndSendTransactions==\"function\"}function oH(e){return vR(e)||P7(e)||Ait(e)}function xYt(e){return awe((e.accounts??[]).flatMap(t=>\"signer\"in t?t.signer:[]))}function EYt(e){return awe([...e.feePayer&&oH(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(xYt)])}async function _it(e,t){let{partialSigners:n,modifyingSigners:r}=AYt(awe(EYt(e).filter(oH)),{identifySendingSigner:!1});return await TYt(e,r,n,t)}function AYt(e,t={}){let r=t.identifySendingSigner??!0?_Yt(e):null,o=e.filter(c=>c!==r&&(P7(c)||vR(c))),i=SYt(o),a=o.filter(vR).filter(c=>!i.includes(c));return Object.freeze({modifyingSigners:i,partialSigners:a,sendingSigner:r})}function _Yt(e){let t=e.filter(Ait);if(t.length===0)return null;let n=t.filter(r=>!P7(r)&&!vR(r));return n.length>0?n[0]:t[0]}function SYt(e){let t=e.filter(P7);if(t.length===0)return[];let n=t.filter(r=>!vR(r));return n.length>0?n:[t[0]]}async function TYt(e,t=[],n=[],r){let o=lte(e),i=await t.reduce(async(c,u)=>{r?.abortSignal?.throwIfAborted();let[d]=await u.modifyAndSignTransactions([await c],r);return Object.freeze(d)},Promise.resolve(o));r?.abortSignal?.throwIfAborted();let a=await Promise.all(n.map(async c=>{let[u]=await c.signTransactions([i],r);return u}));return Object.freeze({...i,signatures:Object.freeze(a.reduce((c,u)=>({...c,...u}),i.signatures??{}))})}var hEr=globalThis.TextEncoder;f();var swe=globalThis.AbortController;function Sit({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,lastValidBlockHeight:i}){r.throwIfAborted();let a=new swe,c=()=>{a.abort()};r.addEventListener(\"abort\",c,{signal:a.signal});async function u(){let{absoluteSlot:d,blockHeight:p}=await e.getEpochInfo({commitment:o}).send({abortSignal:a.signal});return{blockHeight:p,differenceBetweenSlotHeightAndBlockHeight:d-p}}try{let[d,{blockHeight:p,differenceBetweenSlotHeightAndBlockHeight:h}]=await Promise.all([t.slotNotifications().subscribe({abortSignal:a.signal}),u()]);r.throwIfAborted();let g=p;if(g<=i){let y=h;for await(let v of d){let{slot:x}=v;if(x-y>i){let{blockHeight:R,differenceBetweenSlotHeightAndBlockHeight:S}=await u();if(g=R,g>i)break;y=S}}}throw r.throwIfAborted(),new Dt(FF,{currentBlockHeight:g,lastValidBlockHeight:i})}finally{a.abort()}}}function Tit({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,signature:i}){let a=new swe;function c(){a.abort()}r.addEventListener(\"abort\",c,{signal:a.signal});let u=await t.signatureNotifications(i,{commitment:o}).subscribe({abortSignal:a.signal}),d=(async()=>{for await(let h of u){if(h.value.err)throw jF(h.value.err);return}})(),p=(async()=>{let{value:h}=await e.getSignatureStatuses([i]).send({abortSignal:a.signal}),g=h[0];if(!(g?.confirmationStatus&&Oot(g.confirmationStatus,o)>=0)){if(g?.err)throw jF(g.err);await new Promise(()=>{})}})();try{return await eH([d,p])}finally{a.abort()}}}async function CYt(e,t,n){let{abortSignal:r,commitment:o,getRecentSignatureConfirmationPromise:i}=t;r?.throwIfAborted();let a=new swe;if(r){let c=()=>{a.abort()};r.addEventListener(\"abort\",c,{signal:a.signal})}try{let c=n({...t,abortSignal:a.signal});return await eH([i({abortSignal:a.signal,commitment:o,signature:e}),...c])}finally{a.abort()}}async function Cit(e){await CYt($F(e.transaction),e,function({abortSignal:n,commitment:r,getBlockHeightExceedencePromise:o,transaction:i}){return[o({abortSignal:n,commitment:r,lastValidBlockHeight:i.lifetimeConstraint.lastValidBlockHeight})]})}async function RYt(e,t,n){if(e.length===0)return{};let r=await hot(t,e,n);return fot(r),nte(r),r.reduce((o,i)=>({...o,[i.address]:i.data.addresses}),{})}async function Rit(e,t,n){let o=(\"addressTableLookups\"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?e.addressTableLookups:[]).map(u=>u.lookupTableAddress),{lastValidBlockHeight:i,...a}=n??{},c=o.length>0?await RYt(o,t,a):{};return cte(e,{addressesByLookupTableAddress:c,lastValidBlockHeight:i})}f();var IYt=\"https://api.devnet.solana.com\",OYt=\"https://api.mainnet-beta.solana.com\",kYt=\"wss://api.devnet.solana.com\",NYt=\"wss://api.mainnet-beta.solana.com\";function PYt(e){return $ve(e?e:IYt)}function MYt(e){return $ve(e?e:OYt)}function N1(e,t){if(e===\"solana-devnet\")return PYt(t);if(e===\"solana\")return MYt(t);throw new Error(\"Invalid network\")}function Oit(e,t){if(e===\"solana-devnet\")return iwe(t?Iit(t):kYt);if(e===\"solana\")return iwe(t?Iit(t):NYt);throw new Error(\"Invalid network\")}function Iit(e){return e.startsWith(\"http\")?e.replace(\"http\",\"ws\"):e}f();f();var cwe=/^[1-9A-HJ-NP-Za-km-z]{32,44}$/;function wR(e){if(Wee.has(e))return Wee.get(e);if(bbe.has(e))return bbe.get(e);throw new Error(`Unsupported network: ${e}`)}f();f();f();f();f();var BYt=18,uwe=/^0x[0-9a-fA-F]{40}$/,lwe=/^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$/,UYt=/^0x[0-9a-fA-F]{64}$/,FYt=/^0x[0-9a-fA-F]+$/,dwe=[\"exact\"],iH=[1],aH=[\"insufficient_funds\",\"invalid_exact_evm_payload_authorization_valid_after\",\"invalid_exact_evm_payload_authorization_valid_before\",\"invalid_exact_evm_payload_authorization_value\",\"invalid_exact_evm_payload_signature\",\"invalid_exact_evm_payload_undeployed_smart_wallet\",\"invalid_exact_evm_payload_recipient_mismatch\",\"invalid_exact_svm_payload_transaction\",\"invalid_exact_svm_payload_transaction_amount_mismatch\",\"invalid_exact_svm_payload_transaction_create_ata_instruction\",\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee\",\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset\",\"invalid_exact_svm_payload_transaction_instructions\",\"invalid_exact_svm_payload_transaction_instructions_length\",\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\",\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction\",\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high\",\"invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked\",\"invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked\",\"invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts\",\"invalid_exact_svm_payload_transaction_fee_payer_transferring_funds\",\"invalid_exact_svm_payload_transaction_not_a_transfer_instruction\",\"invalid_exact_svm_payload_transaction_receiver_ata_not_found\",\"invalid_exact_svm_payload_transaction_sender_ata_not_found\",\"invalid_exact_svm_payload_transaction_simulation_failed\",\"invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata\",\"invalid_network\",\"invalid_payload\",\"invalid_payment_requirements\",\"invalid_scheme\",\"invalid_payment\",\"payment_expired\",\"unsupported_scheme\",\"invalid_x402_version\",\"invalid_transaction_state\",\"invalid_x402_version\",\"settle_exact_svm_block_height_exceeded\",\"settle_exact_svm_transaction_confirmation_timed_out\",\"unsupported_scheme\",\"unexpected_settle_error\",\"unexpected_verify_error\"],bte=e=>Number.isInteger(Number(e))&&Number(e)>=0,HYt=e=>t=>t.length<=e,fwe=Be.string().regex(uwe).or(Be.string().regex(cwe)),zYt=Be.string().regex(lwe).or(Be.string().regex(cwe)),M7=Be.object({scheme:Be.enum(dwe),network:UF,maxAmountRequired:Be.string().refine(bte),resource:Be.string().url(),description:Be.string(),mimeType:Be.string(),outputSchema:Be.record(Be.any()).optional(),payTo:fwe,maxTimeoutSeconds:Be.number().int(),asset:zYt,extra:Be.record(Be.any()).optional()}),jYt=Be.object({from:Be.string().regex(uwe),to:Be.string().regex(uwe),value:Be.string().refine(bte).refine(HYt(BYt)),validAfter:Be.string().refine(bte),validBefore:Be.string().refine(bte),nonce:Be.string().regex(UYt)}),WYt=Be.object({signature:Be.string().regex(FYt),authorization:jYt}),VYt=Be.object({transaction:Be.string().regex(Vnt)}),vte=Be.object({x402Version:Be.number().refine(e=>iH.includes(e)),scheme:Be.enum(dwe),network:UF,payload:Be.union([WYt,VYt])}),MAr=Be.object({x402Version:Be.number().refine(e=>iH.includes(e)),error:Be.enum(aH).optional(),accepts:Be.array(M7).optional(),payer:Be.string().regex(lwe).optional()}),GYt=Be.enum([\"GET\",\"POST\",\"PUT\",\"DELETE\",\"PATCH\",\"OPTIONS\",\"HEAD\"]),qYt=Be.object({type:Be.literal(\"http\"),method:GYt,queryParams:Be.record(Be.string(),Be.string()).optional(),bodyType:Be.enum([\"json\",\"form-data\",\"multipart-form-data\",\"text\",\"binary\"]).optional(),bodyFields:Be.record(Be.string(),Be.any()).optional(),headerFields:Be.record(Be.string(),Be.any()).optional()}),DAr=Be.discriminatedUnion(\"type\",[qYt]),KYt=Be.object({resource:Be.string(),type:Be.enum([\"http\"]),x402Version:Be.number().refine(e=>iH.includes(e)),accepts:Be.array(M7),lastUpdated:Be.date(),metadata:Be.record(Be.any()).optional()}),LAr=Be.object({paymentPayload:vte,paymentRequirements:M7}),BAr=Be.object({paymentPayload:vte,paymentRequirements:M7}),UAr=Be.object({isValid:Be.boolean(),invalidReason:Be.enum(aH).optional(),payer:fwe.optional()}),FAr=Be.object({success:Be.boolean(),errorReason:Be.enum(aH).optional(),payer:fwe.optional(),transaction:Be.string().regex(lwe),network:UF}),HAr=Be.object({type:Be.string().optional(),limit:Be.number().optional(),offset:Be.number().optional()}),zAr=Be.object({x402Version:Be.number().refine(e=>iH.includes(e)),items:Be.array(KYt),pagination:Be.object({limit:Be.number(),offset:Be.number(),total:Be.number()})}),YYt=Be.object({x402Version:Be.number().refine(e=>iH.includes(e)),scheme:Be.enum(dwe),network:UF,extra:Be.record(Be.any()).optional()}),jAr=Be.object({kinds:Be.array(YYt)});f();var ZAr=Be.object({paymentHeader:Be.string(),paymentRequirements:M7});f();f();function ZYt(e){return LF[e.chain.id.toString()].usdcAddress}function xte(e){return LF[e.toString()]}var wte=null;async function kit(e){return wte!==null||(wte=await e.readContract({address:ZYt(e),abi:mR,functionName:\"version\"})),wte}async function pwe(e,t){let n=e.chain.id,r=xte(n);return r?await e.readContract({address:r.usdcAddress,abi:mR,functionName:\"balanceOf\",args:[t]}):0n}f();async function Nit(e,t,n){return await e.readContract({address:t,abi:mR,functionName:\"balanceOf\",args:[n]})}f();f();f();var Pit=(e=>(e[e.Uninitialized=0]=\"Uninitialized\",e[e.Initialized=1]=\"Initialized\",e[e.Frozen=2]=\"Frozen\",e))(Pit||{});function eZt(){return ate(Pit)}function tZt(){return Er([[\"mint\",ar()],[\"owner\",ar()],[\"amount\",sa()],[\"delegate\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})],[\"state\",eZt()],[\"isNative\",is(sa(),{prefix:qc(),noneValue:\"zeroes\"})],[\"delegatedAmount\",sa()],[\"closeAuthority\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})]])}function nZt(e){return GF(e,tZt())}async function Mit(e,t,n){let r=await qF(e,t,n);return nZt(r)}var ow=\"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\";var hwe=(e=>(e[e.InitializeMint=0]=\"InitializeMint\",e[e.InitializeAccount=1]=\"InitializeAccount\",e[e.InitializeMultisig=2]=\"InitializeMultisig\",e[e.Transfer=3]=\"Transfer\",e[e.Approve=4]=\"Approve\",e[e.Revoke=5]=\"Revoke\",e[e.SetAuthority=6]=\"SetAuthority\",e[e.MintTo=7]=\"MintTo\",e[e.Burn=8]=\"Burn\",e[e.CloseAccount=9]=\"CloseAccount\",e[e.FreezeAccount=10]=\"FreezeAccount\",e[e.ThawAccount=11]=\"ThawAccount\",e[e.TransferChecked=12]=\"TransferChecked\",e[e.ApproveChecked=13]=\"ApproveChecked\",e[e.MintToChecked=14]=\"MintToChecked\",e[e.BurnChecked=15]=\"BurnChecked\",e[e.InitializeAccount2=16]=\"InitializeAccount2\",e[e.SyncNative=17]=\"SyncNative\",e[e.InitializeAccount3=18]=\"InitializeAccount3\",e[e.InitializeMultisig2=19]=\"InitializeMultisig2\",e[e.InitializeMint2=20]=\"InitializeMint2\",e[e.GetAccountDataSize=21]=\"GetAccountDataSize\",e[e.InitializeImmutableOwner=22]=\"InitializeImmutableOwner\",e[e.AmountToUiAmount=23]=\"AmountToUiAmount\",e[e.UiAmountToAmount=24]=\"UiAmountToAmount\",e))(hwe||{});function Dit(e){let t=\"data\"in e?e.data:e;if(Ue(t,Fe().encode(0),0))return 0;if(Ue(t,Fe().encode(1),0))return 1;if(Ue(t,Fe().encode(2),0))return 2;if(Ue(t,Fe().encode(3),0))return 3;if(Ue(t,Fe().encode(4),0))return 4;if(Ue(t,Fe().encode(5),0))return 5;if(Ue(t,Fe().encode(6),0))return 6;if(Ue(t,Fe().encode(7),0))return 7;if(Ue(t,Fe().encode(8),0))return 8;if(Ue(t,Fe().encode(9),0))return 9;if(Ue(t,Fe().encode(10),0))return 10;if(Ue(t,Fe().encode(11),0))return 11;if(Ue(t,Fe().encode(12),0))return 12;if(Ue(t,Fe().encode(13),0))return 13;if(Ue(t,Fe().encode(14),0))return 14;if(Ue(t,Fe().encode(15),0))return 15;if(Ue(t,Fe().encode(16),0))return 16;if(Ue(t,Fe().encode(17),0))return 17;if(Ue(t,Fe().encode(18),0))return 18;if(Ue(t,Fe().encode(19),0))return 19;if(Ue(t,Fe().encode(20),0))return 20;if(Ue(t,Fe().encode(21),0))return 21;if(Ue(t,Fe().encode(22),0))return 22;if(Ue(t,Fe().encode(23),0))return 23;if(Ue(t,Fe().encode(24),0))return 24;throw new Error(\"The provided instruction could not be identified as a token instruction.\")}var rZt=0,oZt;oZt={[rZt]:\"Associated token account owner does not match address derivation\"};var iZt=0,aZt=1,sZt=2,cZt=3,uZt=4,lZt=5,dZt=6,fZt=7,pZt=8,hZt=9,mZt=10,gZt=11,yZt=12,bZt=13,vZt=14,wZt=15,xZt=16,EZt=17,AZt=18,_Zt=19,SZt;SZt={[EZt]:\"Account is frozen\",[dZt]:\"Already in use\",[wZt]:\"Account does not support specified authority type\",[lZt]:\"Fixed supply\",[aZt]:\"Insufficient funds\",[yZt]:\"Invalid instruction\",[sZt]:\"Invalid Mint\",[fZt]:\"Invalid number of provided signers\",[pZt]:\"Invalid number of required signers\",[bZt]:\"State is invalid for requested operation\",[xZt]:\"This token mint cannot freeze accounts\",[AZt]:\"The provided decimals value different from the Mint decimals\",[cZt]:\"Account not associated with this Mint\",[mZt]:\"Instruction does not support native tokens\",[gZt]:\"Non-native account can only be closed if its balance is zero\",[_Zt]:\"Instruction does not support non-native tokens\",[iZt]:\"Lamport balance below rent-exempt threshold\",[vZt]:\"Operation overflowed\",[uZt]:\"Owner does not match\",[hZt]:\"State is unititialized\"};function TZt(){return Er([[\"discriminator\",ws()],[\"amount\",sa()],[\"decimals\",ws()]])}function Lit(e){if(e.accounts.length<4)throw new Error(\"Not enough accounts\");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:TZt().decode(e.data)}}f();var Fit=(e=>(e[e.Uninitialized=0]=\"Uninitialized\",e[e.Initialized=1]=\"Initialized\",e[e.Frozen=2]=\"Frozen\",e))(Fit||{});function Hit(){return ate(Fit)}function CZt(){return Og(JS(),36)}function sH(){return Og(JS(),64)}function zit(){return Aot([[\"Uninitialized\",XS()],[\"TransferFeeConfig\",Ho(Er([[\"transferFeeConfigAuthority\",ar()],[\"withdrawWithheldAuthority\",ar()],[\"withheldAmount\",sa()],[\"olderTransferFee\",Bit()],[\"newerTransferFee\",Bit()]]),Gi())],[\"TransferFeeAmount\",Ho(Er([[\"withheldAmount\",sa()]]),Gi())],[\"MintCloseAuthority\",Ho(Er([[\"closeAuthority\",ar()]]),Gi())],[\"ConfidentialTransferMint\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"autoApproveNewAccounts\",gh()],[\"auditorElgamalPubkey\",is(ar(),{prefix:null,noneValue:\"zeroes\"})]]),Gi())],[\"ConfidentialTransferAccount\",Ho(Er([[\"approved\",gh()],[\"elgamalPubkey\",ar()],[\"pendingBalanceLow\",sH()],[\"pendingBalanceHigh\",sH()],[\"availableBalance\",sH()],[\"decryptableAvailableBalance\",CZt()],[\"allowConfidentialCredits\",gh()],[\"allowNonConfidentialCredits\",gh()],[\"pendingBalanceCreditCounter\",sa()],[\"maximumPendingBalanceCreditCounter\",sa()],[\"expectedPendingBalanceCreditCounter\",sa()],[\"actualPendingBalanceCreditCounter\",sa()]]),Gi())],[\"DefaultAccountState\",Ho(Er([[\"state\",Hit()]]),Gi())],[\"ImmutableOwner\",Ho(Er([]),Gi())],[\"MemoTransfer\",Ho(Er([[\"requireIncomingTransferMemos\",gh()]]),Gi())],[\"NonTransferable\",Ho(Er([]),Gi())],[\"InterestBearingConfig\",Ho(Er([[\"rateAuthority\",ar()],[\"initializationTimestamp\",sa()],[\"preUpdateAverageRate\",_ve()],[\"lastUpdateTimestamp\",sa()],[\"currentRate\",_ve()]]),Gi())],[\"CpiGuard\",Ho(Er([[\"lockCpi\",gh()]]),Gi())],[\"PermanentDelegate\",Ho(Er([[\"delegate\",ar()]]),Gi())],[\"NonTransferableAccount\",Ho(Er([]),Gi())],[\"TransferHook\",Ho(Er([[\"authority\",ar()],[\"programId\",ar()]]),Gi())],[\"TransferHookAccount\",Ho(Er([[\"transferring\",gh()]]),Gi())],[\"ConfidentialTransferFee\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"elgamalPubkey\",ar()],[\"harvestToMintEnabled\",gh()],[\"withheldAmount\",sH()]]),Gi())],[\"ConfidentialTransferFeeAmount\",Ho(Er([[\"withheldAmount\",sH()]]),Gi())],[\"MetadataPointer\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"metadataAddress\",is(ar(),{prefix:null,noneValue:\"zeroes\"})]]),Gi())],[\"TokenMetadata\",Ho(Er([[\"updateAuthority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"mint\",ar()],[\"name\",Ho(yR(),qc())],[\"symbol\",Ho(yR(),qc())],[\"uri\",Ho(yR(),qc())],[\"additionalMetadata\",_ot(Ho(yR(),qc()),Ho(yR(),qc()))]]),Gi())],[\"GroupPointer\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"groupAddress\",is(ar(),{prefix:null,noneValue:\"zeroes\"})]]),Gi())],[\"TokenGroup\",Ho(Er([[\"updateAuthority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"mint\",ar()],[\"size\",sa()],[\"maxSize\",sa()]]),Gi())],[\"GroupMemberPointer\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"memberAddress\",is(ar(),{prefix:null,noneValue:\"zeroes\"})]]),Gi())],[\"TokenGroupMember\",Ho(Er([[\"mint\",ar()],[\"group\",ar()],[\"memberNumber\",sa()]]),Gi())],[\"ConfidentialMintBurn\",XS()],[\"ScaledUiAmountConfig\",Ho(Er([[\"authority\",ar()],[\"multiplier\",Ave()],[\"newMultiplierEffectiveTimestamp\",sa()],[\"newMultiplier\",Ave()]]),Gi())],[\"PausableConfig\",Ho(Er([[\"authority\",is(ar(),{prefix:null,noneValue:\"zeroes\"})],[\"paused\",gh()]]),Gi())],[\"PausableAccount\",XS()]],{size:Gi()})}function Bit(){return Er([[\"epoch\",sa()],[\"maximumFee\",sa()],[\"transferFeeBasisPoints\",Gi()]])}function RZt(){return Er([[\"mintAuthority\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})],[\"supply\",sa()],[\"decimals\",ws()],[\"isInitialized\",gh()],[\"freezeAuthority\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})],[\"extensions\",is(Rve(mh(zit(),{size:\"remainder\"}),[JF(iot(Fe(),83).encode(1))]),{prefix:null})]])}function IZt(e){return GF(e,RZt())}async function Ete(e,t,n){let r=await OZt(e,t,n);return gve(r),r}async function OZt(e,t,n){let r=await qF(e,t,n);return IZt(r)}function kZt(){return Er([[\"mint\",ar()],[\"owner\",ar()],[\"amount\",sa()],[\"delegate\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})],[\"state\",Hit()],[\"isNative\",is(sa(),{prefix:qc(),noneValue:\"zeroes\"})],[\"delegatedAmount\",sa()],[\"closeAuthority\",is(ar(),{prefix:qc(),noneValue:\"zeroes\"})],[\"extensions\",is(Rve(mh(zit(),{size:\"remainder\"}),[JF(Fe().encode(2))]),{prefix:null})]])}function NZt(e){return GF(e,kZt())}async function jit(e,t,n){let r=await qF(e,t,n);return NZt(r)}var iw=\"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\";var mwe=(e=>(e[e.InitializeMint=0]=\"InitializeMint\",e[e.InitializeAccount=1]=\"InitializeAccount\",e[e.InitializeMultisig=2]=\"InitializeMultisig\",e[e.Transfer=3]=\"Transfer\",e[e.Approve=4]=\"Approve\",e[e.Revoke=5]=\"Revoke\",e[e.SetAuthority=6]=\"SetAuthority\",e[e.MintTo=7]=\"MintTo\",e[e.Burn=8]=\"Burn\",e[e.CloseAccount=9]=\"CloseAccount\",e[e.FreezeAccount=10]=\"FreezeAccount\",e[e.ThawAccount=11]=\"ThawAccount\",e[e.TransferChecked=12]=\"TransferChecked\",e[e.ApproveChecked=13]=\"ApproveChecked\",e[e.MintToChecked=14]=\"MintToChecked\",e[e.BurnChecked=15]=\"BurnChecked\",e[e.InitializeAccount2=16]=\"InitializeAccount2\",e[e.SyncNative=17]=\"SyncNative\",e[e.InitializeAccount3=18]=\"InitializeAccount3\",e[e.InitializeMultisig2=19]=\"InitializeMultisig2\",e[e.InitializeMint2=20]=\"InitializeMint2\",e[e.GetAccountDataSize=21]=\"GetAccountDataSize\",e[e.InitializeImmutableOwner=22]=\"InitializeImmutableOwner\",e[e.AmountToUiAmount=23]=\"AmountToUiAmount\",e[e.UiAmountToAmount=24]=\"UiAmountToAmount\",e[e.InitializeMintCloseAuthority=25]=\"InitializeMintCloseAuthority\",e[e.InitializeTransferFeeConfig=26]=\"InitializeTransferFeeConfig\",e[e.TransferCheckedWithFee=27]=\"TransferCheckedWithFee\",e[e.WithdrawWithheldTokensFromMint=28]=\"WithdrawWithheldTokensFromMint\",e[e.WithdrawWithheldTokensFromAccounts=29]=\"WithdrawWithheldTokensFromAccounts\",e[e.HarvestWithheldTokensToMint=30]=\"HarvestWithheldTokensToMint\",e[e.SetTransferFee=31]=\"SetTransferFee\",e[e.InitializeConfidentialTransferMint=32]=\"InitializeConfidentialTransferMint\",e[e.UpdateConfidentialTransferMint=33]=\"UpdateConfidentialTransferMint\",e[e.ConfigureConfidentialTransferAccount=34]=\"ConfigureConfidentialTransferAccount\",e[e.ApproveConfidentialTransferAccount=35]=\"ApproveConfidentialTransferAccount\",e[e.EmptyConfidentialTransferAccount=36]=\"EmptyConfidentialTransferAccount\",e[e.ConfidentialDeposit=37]=\"ConfidentialDeposit\",e[e.ConfidentialWithdraw=38]=\"ConfidentialWithdraw\",e[e.ConfidentialTransfer=39]=\"ConfidentialTransfer\",e[e.ApplyConfidentialPendingBalance=40]=\"ApplyConfidentialPendingBalance\",e[e.EnableConfidentialCredits=41]=\"EnableConfidentialCredits\",e[e.DisableConfidentialCredits=42]=\"DisableConfidentialCredits\",e[e.EnableNonConfidentialCredits=43]=\"EnableNonConfidentialCredits\",e[e.DisableNonConfidentialCredits=44]=\"DisableNonConfidentialCredits\",e[e.ConfidentialTransferWithFee=45]=\"ConfidentialTransferWithFee\",e[e.InitializeDefaultAccountState=46]=\"InitializeDefaultAccountState\",e[e.UpdateDefaultAccountState=47]=\"UpdateDefaultAccountState\",e[e.Reallocate=48]=\"Reallocate\",e[e.EnableMemoTransfers=49]=\"EnableMemoTransfers\",e[e.DisableMemoTransfers=50]=\"DisableMemoTransfers\",e[e.CreateNativeMint=51]=\"CreateNativeMint\",e[e.InitializeNonTransferableMint=52]=\"InitializeNonTransferableMint\",e[e.InitializeInterestBearingMint=53]=\"InitializeInterestBearingMint\",e[e.UpdateRateInterestBearingMint=54]=\"UpdateRateInterestBearingMint\",e[e.EnableCpiGuard=55]=\"EnableCpiGuard\",e[e.DisableCpiGuard=56]=\"DisableCpiGuard\",e[e.InitializePermanentDelegate=57]=\"InitializePermanentDelegate\",e[e.InitializeTransferHook=58]=\"InitializeTransferHook\",e[e.UpdateTransferHook=59]=\"UpdateTransferHook\",e[e.InitializeConfidentialTransferFee=60]=\"InitializeConfidentialTransferFee\",e[e.WithdrawWithheldTokensFromMintForConfidentialTransferFee=61]=\"WithdrawWithheldTokensFromMintForConfidentialTransferFee\",e[e.WithdrawWithheldTokensFromAccountsForConfidentialTransferFee=62]=\"WithdrawWithheldTokensFromAccountsForConfidentialTransferFee\",e[e.HarvestWithheldTokensToMintForConfidentialTransferFee=63]=\"HarvestWithheldTokensToMintForConfidentialTransferFee\",e[e.EnableHarvestToMint=64]=\"EnableHarvestToMint\",e[e.DisableHarvestToMint=65]=\"DisableHarvestToMint\",e[e.WithdrawExcessLamports=66]=\"WithdrawExcessLamports\",e[e.InitializeMetadataPointer=67]=\"InitializeMetadataPointer\",e[e.UpdateMetadataPointer=68]=\"UpdateMetadataPointer\",e[e.InitializeGroupPointer=69]=\"InitializeGroupPointer\",e[e.UpdateGroupPointer=70]=\"UpdateGroupPointer\",e[e.InitializeGroupMemberPointer=71]=\"InitializeGroupMemberPointer\",e[e.UpdateGroupMemberPointer=72]=\"UpdateGroupMemberPointer\",e[e.InitializeScaledUiAmountMint=73]=\"InitializeScaledUiAmountMint\",e[e.UpdateMultiplierScaledUiMint=74]=\"UpdateMultiplierScaledUiMint\",e[e.InitializePausableConfig=75]=\"InitializePausableConfig\",e[e.Pause=76]=\"Pause\",e[e.Resume=77]=\"Resume\",e[e.InitializeTokenMetadata=78]=\"InitializeTokenMetadata\",e[e.UpdateTokenMetadataField=79]=\"UpdateTokenMetadataField\",e[e.RemoveTokenMetadataKey=80]=\"RemoveTokenMetadataKey\",e[e.UpdateTokenMetadataUpdateAuthority=81]=\"UpdateTokenMetadataUpdateAuthority\",e[e.EmitTokenMetadata=82]=\"EmitTokenMetadata\",e[e.InitializeTokenGroup=83]=\"InitializeTokenGroup\",e[e.UpdateTokenGroupMaxSize=84]=\"UpdateTokenGroupMaxSize\",e[e.UpdateTokenGroupUpdateAuthority=85]=\"UpdateTokenGroupUpdateAuthority\",e[e.InitializeTokenGroupMember=86]=\"InitializeTokenGroupMember\",e))(mwe||{});function Wit(e){let t=\"data\"in e?e.data:e;if(Ue(t,Fe().encode(0),0))return 0;if(Ue(t,Fe().encode(1),0))return 1;if(Ue(t,Fe().encode(2),0))return 2;if(Ue(t,Fe().encode(3),0))return 3;if(Ue(t,Fe().encode(4),0))return 4;if(Ue(t,Fe().encode(5),0))return 5;if(Ue(t,Fe().encode(6),0))return 6;if(Ue(t,Fe().encode(7),0))return 7;if(Ue(t,Fe().encode(8),0))return 8;if(Ue(t,Fe().encode(9),0))return 9;if(Ue(t,Fe().encode(10),0))return 10;if(Ue(t,Fe().encode(11),0))return 11;if(Ue(t,Fe().encode(12),0))return 12;if(Ue(t,Fe().encode(13),0))return 13;if(Ue(t,Fe().encode(14),0))return 14;if(Ue(t,Fe().encode(15),0))return 15;if(Ue(t,Fe().encode(16),0))return 16;if(Ue(t,Fe().encode(17),0))return 17;if(Ue(t,Fe().encode(18),0))return 18;if(Ue(t,Fe().encode(19),0))return 19;if(Ue(t,Fe().encode(20),0))return 20;if(Ue(t,Fe().encode(21),0))return 21;if(Ue(t,Fe().encode(22),0))return 22;if(Ue(t,Fe().encode(23),0))return 23;if(Ue(t,Fe().encode(24),0))return 24;if(Ue(t,Fe().encode(25),0))return 25;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(0),1))return 26;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(1),1))return 27;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(2),1))return 28;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(3),1))return 29;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(4),1))return 30;if(Ue(t,Fe().encode(26),0)&&Ue(t,Fe().encode(5),1))return 31;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(0),1))return 32;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(1),1))return 33;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(2),1))return 34;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(3),1))return 35;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(4),1))return 36;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(5),1))return 37;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(6),1))return 38;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(7),1))return 39;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(8),1))return 40;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(9),1))return 41;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(10),1))return 42;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(11),1))return 43;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(12),1))return 44;if(Ue(t,Fe().encode(27),0)&&Ue(t,Fe().encode(13),1))return 45;if(Ue(t,Fe().encode(28),0)&&Ue(t,Fe().encode(0),1))return 46;if(Ue(t,Fe().encode(28),0)&&Ue(t,Fe().encode(1),1))return 47;if(Ue(t,Fe().encode(29),0))return 48;if(Ue(t,Fe().encode(30),0)&&Ue(t,Fe().encode(0),1))return 49;if(Ue(t,Fe().encode(30),0)&&Ue(t,Fe().encode(1),1))return 50;if(Ue(t,Fe().encode(31),0))return 51;if(Ue(t,Fe().encode(32),0))return 52;if(Ue(t,Fe().encode(33),0)&&Ue(t,Fe().encode(0),1))return 53;if(Ue(t,Fe().encode(33),0)&&Ue(t,Fe().encode(1),1))return 54;if(Ue(t,Fe().encode(34),0)&&Ue(t,Fe().encode(0),1))return 55;if(Ue(t,Fe().encode(34),0)&&Ue(t,Fe().encode(1),1))return 56;if(Ue(t,Fe().encode(35),0))return 57;if(Ue(t,Fe().encode(36),0)&&Ue(t,Fe().encode(0),1))return 58;if(Ue(t,Fe().encode(36),0)&&Ue(t,Fe().encode(1),1))return 59;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(0),1))return 60;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(1),1))return 61;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(2),1))return 62;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(3),1))return 63;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(4),1))return 64;if(Ue(t,Fe().encode(37),0)&&Ue(t,Fe().encode(5),1))return 65;if(Ue(t,Fe().encode(38),0))return 66;if(Ue(t,Fe().encode(39),0)&&Ue(t,Fe().encode(0),1))return 67;if(Ue(t,Fe().encode(39),0)&&Ue(t,Fe().encode(1),1))return 68;if(Ue(t,Fe().encode(40),0)&&Ue(t,Fe().encode(0),1))return 69;if(Ue(t,Fe().encode(40),0)&&Ue(t,Fe().encode(1),1))return 70;if(Ue(t,Fe().encode(41),0)&&Ue(t,Fe().encode(0),1))return 71;if(Ue(t,Fe().encode(41),0)&&Ue(t,Fe().encode(1),1))return 72;if(Ue(t,Fe().encode(43),0)&&Ue(t,Fe().encode(0),1))return 73;if(Ue(t,Fe().encode(43),0)&&Ue(t,Fe().encode(1),1))return 74;if(Ue(t,Fe().encode(44),0)&&Ue(t,Fe().encode(0),1))return 75;if(Ue(t,Fe().encode(44),0)&&Ue(t,Fe().encode(1),1))return 76;if(Ue(t,Fe().encode(44),0)&&Ue(t,Fe().encode(2),1))return 77;if(Ue(t,new Uint8Array([210,225,30,162,88,184,77,141]),0))return 78;if(Ue(t,new Uint8Array([221,233,49,45,181,202,220,200]),0))return 79;if(Ue(t,new Uint8Array([234,18,32,56,89,141,37,181]),0))return 80;if(Ue(t,new Uint8Array([215,228,166,228,84,100,86,123]),0))return 81;if(Ue(t,new Uint8Array([250,166,180,250,13,12,184,70]),0))return 82;if(Ue(t,new Uint8Array([121,113,108,39,54,51,0,4]),0))return 83;if(Ue(t,new Uint8Array([108,37,171,143,248,30,18,110]),0))return 84;if(Ue(t,new Uint8Array([161,105,88,1,237,221,216,203]),0))return 85;if(Ue(t,new Uint8Array([152,32,222,176,223,237,116,134]),0))return 86;throw new Error(\"The provided instruction could not be identified as a token-2022 instruction.\")}var PZt=0,MZt;MZt={[PZt]:\"Associated token account owner does not match address derivation\"};var DZt=0,LZt=1,BZt=2,UZt=3,FZt=4,HZt=5,zZt=6,jZt=7,WZt=8,VZt=9,GZt=10,qZt=11,KZt=12,YZt=13,ZZt=14,QZt=15,JZt=16,XZt=17,$Zt=18,eQt=19,tQt;tQt={[XZt]:\"Account is frozen\",[zZt]:\"Already in use\",[QZt]:\"Account does not support specified authority type\",[HZt]:\"Fixed supply\",[LZt]:\"Insufficient funds\",[KZt]:\"Invalid instruction\",[BZt]:\"Invalid Mint\",[jZt]:\"Invalid number of provided signers\",[WZt]:\"Invalid number of required signers\",[YZt]:\"State is invalid for requested operation\",[JZt]:\"This token mint cannot freeze accounts\",[$Zt]:\"The provided decimals value different from the Mint decimals\",[UZt]:\"Account not associated with this Mint\",[GZt]:\"Instruction does not support native tokens\",[qZt]:\"Non-native account can only be closed if its balance is zero\",[eQt]:\"Instruction does not support non-native tokens\",[DZt]:\"Lamport balance below rent-exempt threshold\",[ZZt]:\"Operation overflowed\",[FZt]:\"Owner does not match\",[VZt]:\"State is unititialized\"};function nQt(e){if(!e)throw new Error(\"Expected a Address.\");return typeof e==\"object\"&&\"address\"in e?e.address:Array.isArray(e)?e[0]:e}function rQt(e,t){return n=>{if(!n.value)return Object.freeze({address:e,role:xs.READONLY});let r=n.isWritable?xs.WRITABLE:xs.READONLY;return Object.freeze({address:nQt(n.value),role:Uit(n.value)?kve(r):r,...Uit(n.value)?{signer:n.value}:{}})}}function Uit(e){return!!e&&typeof e==\"object\"&&\"address\"in e&&oH(e)}async function xR(e,t={}){let{programAddress:n=\"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL\"}=t;return await xve({programAddress:n,seeds:[tw().encode(e.owner),tw().encode(e.tokenProgram),tw().encode(e.mint)]})}var $_r=new Uint8Array([250,166,180,250,13,12,184,70]);var eSr=new Uint8Array([121,113,108,39,54,51,0,4]);var tSr=new Uint8Array([152,32,222,176,223,237,116,134]);var nSr=new Uint8Array([210,225,30,162,88,184,77,141]);var rSr=new Uint8Array([234,18,32,56,89,141,37,181]);var oQt=12;function iQt(){return np(yh([[\"discriminator\",Fe()],[\"amount\",ZF()],[\"decimals\",Fe()]]),e=>({...e,discriminator:oQt}))}function aQt(){return Er([[\"discriminator\",ws()],[\"amount\",sa()],[\"decimals\",ws()]])}function Vit(e,t){let n=t?.programAddress??iw,o={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},i={...e},a=(i.multiSigners??[]).map(u=>({address:u.address,role:xs.READONLY_SIGNER,signer:u})),c=rQt(n);return Object.freeze({accounts:[c(o.source),c(o.mint),c(o.destination),c(o.authority),...a],data:iQt().encode(i),programAddress:n})}function Git(e){if(e.accounts.length<4)throw new Error(\"Not enough accounts\");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:aQt().decode(e.data)}}var oSr=new Uint8Array([108,37,171,143,248,30,18,110]);var iSr=new Uint8Array([161,105,88,1,237,221,216,203]);var aSr=new Uint8Array([221,233,49,45,181,202,220,200]);var sSr=new Uint8Array([215,228,166,228,84,100,86,123]);var cSr=3600*24*365.24;function ER(e){try{let n=ete().encode(e.transaction);return ute().decode(n)}catch(t){throw console.error(\"error\",t),new Error(\"invalid_exact_svm_payload_transaction\")}}function D7(e){let t=N7().decode(e.messageBytes),n=t.staticAccounts??[],r=t.instructions??[];for(let o of r){let i=o.programAddressIndex,a=n[i].toString();if(a===ow.toString()||a===iw.toString()){let c=o.accountIndices??[];if(c.length>=4){let u=c[3],d=n[u].toString();if(d)return d}}}return\"\"}async function qit(e,t,n){let r=await gwe(e,t),o=$S(r),i={sigVerify:!0,replaceRecentBlockhash:!1,commitment:\"confirmed\",encoding:\"base64\",accounts:void 0,innerInstructions:void 0,minContextSlot:void 0};return await n.simulateTransaction(o,i).send()}async function gwe(e,t){if(P7(e)){let[n]=await e.modifyAndSignTransactions([t]);if(!n)throw new Error(\"transaction_signer_failed_to_return_transaction\");return n}if(vR(e)){let[n]=await e.signTransactions([t]);if(!n)throw new Error(\"transaction_signer_failed_to_return_signatures\");return sQt(t,n)}throw new Error(\"transaction_signer_must_support_offline_signing\")}function sQt(e,t){return Object.freeze({...e,signatures:Object.freeze({...e.signatures,...t})})}async function Kit(e,{from:t,to:n,value:r,validAfter:o,validBefore:i,nonce:a},{asset:c,network:u,extra:d}){let p=wR(u),h=d?.name,g=d?.version,y={types:Hee,domain:{name:h,version:g,chainId:p,verifyingContract:nr(c)},primaryType:\"TransferWithAuthorization\",message:{from:nr(t),to:nr(n),value:r,validAfter:o,validBefore:i,nonce:a}};if(BF(e))return{signature:await e.signTypedData(y)};if(ybe(e)&&e.signTypedData)return{signature:await e.signTypedData(y)};throw new Error(\"Invalid wallet client provided does not support signTypedData\")}function Yit(){let e=typeof globalThis.crypto<\"u\"&&typeof globalThis.crypto.getRandomValues==\"function\"?globalThis.crypto:mmt(\"crypto\").webcrypto;return Zn(e.getRandomValues(new Uint8Array(32)))}f();function L7(e){let t;if(Xv.includes(e.network)){let n=e.payload;return t={...e,payload:{...n,authorization:Object.fromEntries(Object.entries(n.authorization).map(([r,o])=>[r,typeof o==\"bigint\"?o.toString():o]))}},zee(JSON.stringify(t))}if(O1.includes(e.network))return t={...e,payload:e.payload},zee(JSON.stringify(t));throw new Error(\"Invalid network\")}function uQt(e){let t=jee(e),n=JSON.parse(t),r;if(Xv.includes(n.network))r={...n,payload:n.payload};else if(O1.includes(n.network))r={...n,payload:n.payload};else throw new Error(\"Invalid network\");return vte.parse(r)}function ywe(e,t,n){let r=Yit(),o=BigInt(Math.floor(Date.now()/1e3)-600).toString(),i=BigInt(Math.floor(Date.now()/1e3+n.maxTimeoutSeconds)).toString();return{x402Version:t,scheme:n.scheme,network:n.network,payload:{signature:void 0,authorization:{from:e,to:n.payTo,value:n.maxAmountRequired,validAfter:o.toString(),validBefore:i.toString(),nonce:r}}}}async function bwe(e,t,n){let{signature:r}=await Kit(e,n.payload.authorization,t);return{...n,payload:{...n.payload,signature:r}}}async function Zit(e,t,n){let r=BF(e)?e.account.address:e.address,o=ywe(r,t,n);return bwe(e,n,o)}async function Qit(e,t,n){let r=await Zit(e,t,n);return L7(r)}f();f();f();var B7=\"ComputeBudget111111111111111111111111111111\";function lQt(e){let t=\"data\"in e?e.data:e;if(Ue(t,Fe().encode(0),0))return 0;if(Ue(t,Fe().encode(1),0))return 1;if(Ue(t,Fe().encode(2),0))return 2;if(Ue(t,Fe().encode(3),0))return 3;if(Ue(t,Fe().encode(4),0))return 4;throw new Error(\"The provided instruction could not be identified as a computeBudget instruction.\")}var dQt=2;function fQt(){return np(yh([[\"discriminator\",Fe()],[\"units\",C7()]]),e=>({...e,discriminator:dQt}))}function pQt(){return Er([[\"discriminator\",ws()],[\"units\",qc()]])}function Ate(e,t){let n=t?.programAddress??B7,r={...e};return Object.freeze({data:fQt().encode(r),programAddress:n})}function Jit(e){return{programAddress:e.programAddress,data:pQt().decode(e.data)}}var hQt=3;function mQt(){return np(yh([[\"discriminator\",Fe()],[\"microLamports\",ZF()]]),e=>({...e,discriminator:hQt}))}function gQt(){return Er([[\"discriminator\",ws()],[\"microLamports\",sa()]])}function yQt(e,t){let n=t?.programAddress??B7,r={...e};return Object.freeze({data:mQt().encode(r),programAddress:n})}function Xit(e){return{programAddress:e.programAddress,data:gQt().decode(e.data)}}var bQt=14e5;function vQt(e){let t=wQt(e);if(t<0)return null;let n=qc().decode(e.instructions[t].data,1);return{index:t,units:n}}function wQt(e){return e.instructions.findIndex(xQt)}function xQt(e){return e.programAddress===B7&&lQt(e.data)===2}function EQt(e,t){let n=d=>typeof e==\"function\"?e(d):e,r=vQt(t);if(!r)return ste(Ate({units:n(null)}),t);let{index:o,units:i}=r,a=n(i);if(a===i)return t;let c=Ate({units:a}),u=[...t.instructions];return u.splice(o,1,c),Object.freeze({...t,instructions:u})}async function AQt({transactionMessage:e,...t}){let n=!XF(e),r=Yd(e,o=>EQt(bQt,o),lte);return await _Qt({transaction:r,replaceRecentBlockhash:n,...t})}async function _Qt({abortSignal:e,rpc:t,transaction:n,...r}){let o=$S(n);try{let{value:{err:i,unitsConsumed:a}}=await t.simulateTransaction(o,{...r,encoding:\"base64\",sigVerify:!1}).send({abortSignal:e});if(a==null)throw new Dt(Zee);let c=a>4294967295n?4294967295:Number(a);if(i)throw new Dt(Qee,{cause:i,unitsConsumed:c});return c}catch(i){throw rE(i,Qee)?i:new Dt(Zee,{cause:i})}}function $it({rpc:e}){return async function(n,r){return await AQt({...r,rpc:e,transactionMessage:n})}}function eat(e,t){return ste(yQt({microLamports:e}),t)}async function tat(e,t,n,r){let o=await nat(e,t,n,r);return L7(o)}async function nat(e,t,n,r){let o=await SQt(e,n,r),i=await _it(o),a=$S(i);return{scheme:n.scheme,network:n.network,x402Version:t,payload:{transaction:a}}}async function SQt(e,t,n){let r=N1(t.network,n?.svmConfig?.rpcUrl),o=await TQt(e,t,n),i=t.extra?.feePayer,a=Yd(Vve({version:0}),h=>eat(1,h),h=>qve(i,h),h=>Kve(o,h)),u=await $it({rpc:r})(a),{value:d}=await r.getLatestBlockhash().send();return Yd(a,h=>Got(Ate({units:u}),h),h=>jve(d,h))}async function TQt(e,t,n){let{asset:r,maxAmountRequired:o,payTo:i}=t,a=N1(t.network,n?.svmConfig?.rpcUrl),c=await Ete(a,r),u=c.programAddress;if(u.toString()!==ow.toString()&&u.toString()!==iw.toString())throw new Error(\"Asset was not created by a known token program\");let[d]=await xR({mint:r,owner:e.address,tokenProgram:u}),[p]=await xR({mint:r,owner:i,tokenProgram:u});return[Vit({source:d,mint:r,destination:p,authority:e,amount:BigInt(o),decimals:c.data.decimals},{programAddress:u})]}f();f();function rat(e,t,n){let r=e.filter(i=>{let a=!n||i.scheme===n,c=!t||(Array.isArray(t)?t.includes(i.network):t==i.network);return a&&c}),o=r.filter(i=>i.asset===xte(wR(i.network))?.usdcAddress);return o.length>0?o[0]:r.length>0?r[0]:e[0]}f();var IQt=new Set([\"base-sepolia\"]),OQt=new Set([\"solana-devnet\"]);function kQt(e){return Array.isArray(e)?e:[e]}function NQt(e){return e?[\"base-sepolia\",\"solana-devnet\"]:[\"base\",\"solana\"]}function _te(e,t){let n=kQt(e),r=NQt(t);return rat([...n],r,\"exact\")}function Ste(e){return Xv.includes(e)}function oat(e){return O1.includes(e)}function Tte(e){switch(e){case\"base\":return\"Base\";case\"base-sepolia\":return\"Base Sepolia\";case\"solana\":return\"Solana\";case\"solana-devnet\":return\"Solana Devnet\";default:return e}}function iat(e){return IQt.has(e)||OQt.has(e)}f();var cH=he(ze());function aat({children:e}){let{testnet:t=!0,cdpClientKey:n,appName:r,appLogo:o,paymentRequirements:i}=window.x402,a=_te(i,t);if(!Ste(a.network))return(0,cH.jsx)(cH.Fragment,{children:e});let c=a.network===\"base-sepolia\"?Ya:dr;return(0,cH.jsx)(gbe,{apiKey:n||void 0,chain:c,config:{appearance:{mode:\"light\",theme:\"base\",name:r||void 0,logo:o||void 0},wallet:{display:\"modal\",supportedWallets:{rabby:!0,trust:!0,frame:!0}}},children:e})}f();var _re=he($e());f();f();f();var xh=he(ze(),1),cE=he($e(),1);f();f();var Cte=he($e(),1);function Rte(){let[e,t]=(0,Cte.useState)(\"light\");return(0,Cte.useEffect)(()=>{let n=window.matchMedia(\"(prefers-color-scheme: dark)\");t(n.matches?\"dark\":\"light\");function r(o){t(o.matches?\"dark\":\"light\")}return n.addEventListener(\"change\",r),()=>n.removeEventListener(\"change\",r)},[]),e}function Aa(){let e=Rte(),{config:{appearance:t}={}}=Co(),{theme:n=\"default\",mode:r=\"auto\"}=t||{};if(n===\"cyberpunk\"||n===\"hacker\")return n;switch(r){case\"auto\":return`${n}-${e}`;case\"dark\":return`${n}-dark`;case\"light\":return`${n}-light`;default:return`${n}-${e}`}}f();f();function sat(e){var t,n,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=sat(e[t]))&&(r&&(r+=\" \"),r+=n)}else for(n in e)e[n]&&(r&&(r+=\" \"),r+=n);return r}function cat(){for(var e,t,n=0,r=\"\",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=sat(e))&&(r&&(r+=\" \"),r+=t);return r}f();var PQt=e=>{let t=DQt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let c=a.split(\"-\");return c[0]===\"\"&&c.length!==1&&c.shift(),dat(c,t)||MQt(a)},getConflictingClassGroupIds:(a,c)=>{let u=n[a]||[];return c&&r[a]?[...u,...r[a]]:u}}},dat=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),o=r?dat(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(\"-\");return t.validators.find(({validator:a})=>a(i))?.classGroupId},uat=/^\\\\[(.+)\\\\]$/,MQt=e=>{if(uat.test(e)){let t=uat.exec(e)[1],n=t?.substring(0,t.indexOf(\":\"));if(n)return\"arbitrary..\"+n}},DQt=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return BQt(Object.entries(e.classGroups),n).forEach(([i,a])=>{wwe(a,r,i,t)}),r},wwe=(e,t,n,r)=>{e.forEach(o=>{if(typeof o==\"string\"){let i=o===\"\"?t:lat(t,o);i.classGroupId=n;return}if(typeof o==\"function\"){if(LQt(o)){wwe(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{wwe(a,lat(t,i),n,r)})})},lat=(e,t)=>{let n=e;return t.split(\"-\").forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},LQt=e=>e.isThemeGetter,BQt=(e,t)=>t?e.map(([n,r])=>{let o=r.map(i=>typeof i==\"string\"?t+i:typeof i==\"object\"?Object.fromEntries(Object.entries(i).map(([a,c])=>[t+a,c])):i);return[n,o]}):e,UQt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}};var FQt=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,a=c=>{let u=[],d=0,p=0,h;for(let R=0;R<c.length;R++){let S=c[R];if(d===0){if(S===o&&(r||c.slice(R,R+i)===t)){u.push(c.slice(p,R)),p=R+i;continue}if(S===\"/\"){h=R;continue}}S===\"[\"?d++:S===\"]\"&&d--}let g=u.length===0?c:c.substring(p),y=g.startsWith(\"!\"),v=y?g.substring(1):g,x=h&&h>p?h-p:void 0;return{modifiers:u,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:x}};return n?c=>n({className:c,parseClassName:a}):a},HQt=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]===\"[\"?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},zQt=e=>({cache:UQt(e.cacheSize),parseClassName:FQt(e),...PQt(e)}),jQt=/\\\\s+/,WQt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(jQt),c=\"\";for(let u=a.length-1;u>=0;u-=1){let d=a[u],{modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=n(d),v=!!y,x=r(v?g.substring(0,y):g);if(!x){if(!v){c=d+(c.length>0?\" \"+c:c);continue}if(x=r(g),!x){c=d+(c.length>0?\" \"+c:c);continue}v=!1}let R=HQt(p).join(\":\"),S=h?R+\"!\":R,M=S+x;if(i.includes(M))continue;i.push(M);let P=o(x,v);for(let z=0;z<P.length;++z){let V=P[z];i.push(S+V)}c=d+(c.length>0?\" \"+c:c)}return c};function VQt(){let e=0,t,n,r=\"\";for(;e<arguments.length;)(t=arguments[e++])&&(n=fat(t))&&(r&&(r+=\" \"),r+=n);return r}var fat=e=>{if(typeof e==\"string\")return e;let t,n=\"\";for(let r=0;r<e.length;r++)e[r]&&(t=fat(e[r]))&&(n&&(n+=\" \"),n+=t);return n};function GQt(e,...t){let n,r,o,i=a;function a(u){let d=t.reduce((p,h)=>h(p),e());return n=zQt(d),r=n.cache.get,o=n.cache.set,i=c,c(u)}function c(u){let d=r(u);if(d)return d;let p=WQt(u,n);return o(u,p),p}return function(){return i(VQt.apply(null,arguments))}}var Ba=e=>{let t=n=>n[e]||[];return t.isThemeGetter=!0,t},pat=/^\\\\[(?:([a-z-]+):)?(.+)\\\\]$/i,qQt=/^\\\\d+\\\\/\\\\d+$/,KQt=new Set([\"px\",\"full\",\"screen\"]),YQt=/^(\\\\d+(\\\\.\\\\d+)?)?(xs|sm|md|lg|xl)$/,ZQt=/\\\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\\\b(calc|min|max|clamp)\\\\(.+\\\\)|^0$/,QQt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\\\(.+\\\\)$/,JQt=/^(inset_)?-?((\\\\d+)?\\\\.?(\\\\d+)[a-z]+|0)_-?((\\\\d+)?\\\\.?(\\\\d+)[a-z]+|0)/,XQt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\\\(.+\\\\)$/,sE=e=>U7(e)||KQt.has(e)||qQt.test(e),t5=e=>F7(e,\"length\",aJt),U7=e=>!!e&&!Number.isNaN(Number(e)),vwe=e=>F7(e,\"number\",U7),uH=e=>!!e&&Number.isInteger(Number(e)),$Qt=e=>e.endsWith(\"%\")&&U7(e.slice(0,-1)),kr=e=>pat.test(e),n5=e=>YQt.test(e),eJt=new Set([\"length\",\"size\",\"percentage\"]),tJt=e=>F7(e,eJt,hat),nJt=e=>F7(e,\"position\",hat),rJt=new Set([\"image\",\"url\"]),oJt=e=>F7(e,rJt,cJt),iJt=e=>F7(e,\"\",sJt),lH=()=>!0,F7=(e,t,n)=>{let r=pat.exec(e);return r?r[1]?typeof t==\"string\"?r[1]===t:t.has(r[1]):n(r[2]):!1},aJt=e=>ZQt.test(e)&&!QQt.test(e),hat=()=>!1,sJt=e=>JQt.test(e),cJt=e=>XQt.test(e);var uJt=()=>{let e=Ba(\"colors\"),t=Ba(\"spacing\"),n=Ba(\"blur\"),r=Ba(\"brightness\"),o=Ba(\"borderColor\"),i=Ba(\"borderRadius\"),a=Ba(\"borderSpacing\"),c=Ba(\"borderWidth\"),u=Ba(\"contrast\"),d=Ba(\"grayscale\"),p=Ba(\"hueRotate\"),h=Ba(\"invert\"),g=Ba(\"gap\"),y=Ba(\"gradientColorStops\"),v=Ba(\"gradientColorStopPositions\"),x=Ba(\"inset\"),R=Ba(\"margin\"),S=Ba(\"opacity\"),M=Ba(\"padding\"),P=Ba(\"saturate\"),z=Ba(\"scale\"),V=Ba(\"sepia\"),Q=Ba(\"skew\"),$=Ba(\"space\"),oe=Ba(\"translate\"),J=()=>[\"auto\",\"contain\",\"none\"],re=()=>[\"auto\",\"hidden\",\"clip\",\"visible\",\"scroll\"],q=()=>[\"auto\",kr,t],K=()=>[kr,t],U=()=>[\"\",sE,t5],T=()=>[\"auto\",U7,kr],k=()=>[\"bottom\",\"center\",\"left\",\"left-bottom\",\"left-top\",\"right\",\"right-bottom\",\"right-top\",\"top\"],F=()=>[\"solid\",\"dashed\",\"dotted\",\"double\",\"none\"],N=()=>[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],B=()=>[\"start\",\"end\",\"center\",\"between\",\"around\",\"evenly\",\"stretch\"],H=()=>[\"\",\"0\",kr],W=()=>[\"auto\",\"avoid\",\"all\",\"avoid-page\",\"page\",\"left\",\"right\",\"column\"],G=()=>[U7,kr];return{cacheSize:500,separator:\":\",theme:{colors:[lH],spacing:[sE,t5],blur:[\"none\",\"\",n5,kr],brightness:G(),borderColor:[e],borderRadius:[\"none\",\"\",\"full\",n5,kr],borderSpacing:K(),borderWidth:U(),contrast:G(),grayscale:H(),hueRotate:G(),invert:H(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[$Qt,t5],inset:q(),margin:q(),opacity:G(),padding:K(),saturate:G(),scale:G(),sepia:H(),skew:G(),space:K(),translate:K()},classGroups:{aspect:[{aspect:[\"auto\",\"square\",\"video\",kr]}],container:[\"container\"],columns:[{columns:[n5]}],\"break-after\":[{\"break-after\":W()}],\"break-before\":[{\"break-before\":W()}],\"break-inside\":[{\"break-inside\":[\"auto\",\"avoid\",\"avoid-page\",\"avoid-column\"]}],\"box-decoration\":[{\"box-decoration\":[\"slice\",\"clone\"]}],box:[{box:[\"border\",\"content\"]}],display:[\"block\",\"inline-block\",\"inline\",\"flex\",\"inline-flex\",\"table\",\"inline-table\",\"table-caption\",\"table-cell\",\"table-column\",\"table-column-group\",\"table-footer-group\",\"table-header-group\",\"table-row-group\",\"table-row\",\"flow-root\",\"grid\",\"inline-grid\",\"contents\",\"list-item\",\"hidden\"],float:[{float:[\"right\",\"left\",\"none\",\"start\",\"end\"]}],clear:[{clear:[\"left\",\"right\",\"both\",\"none\",\"start\",\"end\"]}],isolation:[\"isolate\",\"isolation-auto\"],\"object-fit\":[{object:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"]}],\"object-position\":[{object:[...k(),kr]}],overflow:[{overflow:re()}],\"overflow-x\":[{\"overflow-x\":re()}],\"overflow-y\":[{\"overflow-y\":re()}],overscroll:[{overscroll:J()}],\"overscroll-x\":[{\"overscroll-x\":J()}],\"overscroll-y\":[{\"overscroll-y\":J()}],position:[\"static\",\"fixed\",\"absolute\",\"relative\",\"sticky\"],inset:[{inset:[x]}],\"inset-x\":[{\"inset-x\":[x]}],\"inset-y\":[{\"inset-y\":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:[\"visible\",\"invisible\",\"collapse\"],z:[{z:[\"auto\",uH,kr]}],basis:[{basis:q()}],\"flex-direction\":[{flex:[\"row\",\"row-reverse\",\"col\",\"col-reverse\"]}],\"flex-wrap\":[{flex:[\"wrap\",\"wrap-reverse\",\"nowrap\"]}],flex:[{flex:[\"1\",\"auto\",\"initial\",\"none\",kr]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:[\"first\",\"last\",\"none\",uH,kr]}],\"grid-cols\":[{\"grid-cols\":[lH]}],\"col-start-end\":[{col:[\"auto\",{span:[\"full\",uH,kr]},kr]}],\"col-start\":[{\"col-start\":T()}],\"col-end\":[{\"col-end\":T()}],\"grid-rows\":[{\"grid-rows\":[lH]}],\"row-start-end\":[{row:[\"auto\",{span:[uH,kr]},kr]}],\"row-start\":[{\"row-start\":T()}],\"row-end\":[{\"row-end\":T()}],\"grid-flow\":[{\"grid-flow\":[\"row\",\"col\",\"dense\",\"row-dense\",\"col-dense\"]}],\"auto-cols\":[{\"auto-cols\":[\"auto\",\"min\",\"max\",\"fr\",kr]}],\"auto-rows\":[{\"auto-rows\":[\"auto\",\"min\",\"max\",\"fr\",kr]}],gap:[{gap:[g]}],\"gap-x\":[{\"gap-x\":[g]}],\"gap-y\":[{\"gap-y\":[g]}],\"justify-content\":[{justify:[\"normal\",...B()]}],\"justify-items\":[{\"justify-items\":[\"start\",\"end\",\"center\",\"stretch\"]}],\"justify-self\":[{\"justify-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],\"align-content\":[{content:[\"normal\",...B(),\"baseline\"]}],\"align-items\":[{items:[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"align-self\":[{self:[\"auto\",\"start\",\"end\",\"center\",\"stretch\",\"baseline\"]}],\"place-content\":[{\"place-content\":[...B(),\"baseline\"]}],\"place-items\":[{\"place-items\":[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"place-self\":[{\"place-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],\"space-x\":[{\"space-x\":[$]}],\"space-x-reverse\":[\"space-x-reverse\"],\"space-y\":[{\"space-y\":[$]}],\"space-y-reverse\":[\"space-y-reverse\"],w:[{w:[\"auto\",\"min\",\"max\",\"fit\",\"svw\",\"lvw\",\"dvw\",kr,t]}],\"min-w\":[{\"min-w\":[kr,t,\"min\",\"max\",\"fit\"]}],\"max-w\":[{\"max-w\":[kr,t,\"none\",\"full\",\"min\",\"max\",\"fit\",\"prose\",{screen:[n5]},n5]}],h:[{h:[kr,t,\"auto\",\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"min-h\":[{\"min-h\":[kr,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"max-h\":[{\"max-h\":[kr,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],size:[{size:[kr,t,\"auto\",\"min\",\"max\",\"fit\"]}],\"font-size\":[{text:[\"base\",n5,t5]}],\"font-smoothing\":[\"antialiased\",\"subpixel-antialiased\"],\"font-style\":[\"italic\",\"not-italic\"],\"font-weight\":[{font:[\"thin\",\"extralight\",\"light\",\"normal\",\"medium\",\"semibold\",\"bold\",\"extrabold\",\"black\",vwe]}],\"font-family\":[{font:[lH]}],\"fvn-normal\":[\"normal-nums\"],\"fvn-ordinal\":[\"ordinal\"],\"fvn-slashed-zero\":[\"slashed-zero\"],\"fvn-figure\":[\"lining-nums\",\"oldstyle-nums\"],\"fvn-spacing\":[\"proportional-nums\",\"tabular-nums\"],\"fvn-fraction\":[\"diagonal-fractions\",\"stacked-fractions\"],tracking:[{tracking:[\"tighter\",\"tight\",\"normal\",\"wide\",\"wider\",\"widest\",kr]}],\"line-clamp\":[{\"line-clamp\":[\"none\",U7,vwe]}],leading:[{leading:[\"none\",\"tight\",\"snug\",\"normal\",\"relaxed\",\"loose\",sE,kr]}],\"list-image\":[{\"list-image\":[\"none\",kr]}],\"list-style-type\":[{list:[\"none\",\"disc\",\"decimal\",kr]}],\"list-style-position\":[{list:[\"inside\",\"outside\"]}],\"placeholder-color\":[{placeholder:[e]}],\"placeholder-opacity\":[{\"placeholder-opacity\":[S]}],\"text-alignment\":[{text:[\"left\",\"center\",\"right\",\"justify\",\"start\",\"end\"]}],\"text-color\":[{text:[e]}],\"text-opacity\":[{\"text-opacity\":[S]}],\"text-decoration\":[\"underline\",\"overline\",\"line-through\",\"no-underline\"],\"text-decoration-style\":[{decoration:[...F(),\"wavy\"]}],\"text-decoration-thickness\":[{decoration:[\"auto\",\"from-font\",sE,t5]}],\"underline-offset\":[{\"underline-offset\":[\"auto\",sE,kr]}],\"text-decoration-color\":[{decoration:[e]}],\"text-transform\":[\"uppercase\",\"lowercase\",\"capitalize\",\"normal-case\"],\"text-overflow\":[\"truncate\",\"text-ellipsis\",\"text-clip\"],\"text-wrap\":[{text:[\"wrap\",\"nowrap\",\"balance\",\"pretty\"]}],indent:[{indent:K()}],\"vertical-align\":[{align:[\"baseline\",\"top\",\"middle\",\"bottom\",\"text-top\",\"text-bottom\",\"sub\",\"super\",kr]}],whitespace:[{whitespace:[\"normal\",\"nowrap\",\"pre\",\"pre-line\",\"pre-wrap\",\"break-spaces\"]}],break:[{break:[\"normal\",\"words\",\"all\",\"keep\"]}],hyphens:[{hyphens:[\"none\",\"manual\",\"auto\"]}],content:[{content:[\"none\",kr]}],\"bg-attachment\":[{bg:[\"fixed\",\"local\",\"scroll\"]}],\"bg-clip\":[{\"bg-clip\":[\"border\",\"padding\",\"content\",\"text\"]}],\"bg-opacity\":[{\"bg-opacity\":[S]}],\"bg-origin\":[{\"bg-origin\":[\"border\",\"padding\",\"content\"]}],\"bg-position\":[{bg:[...k(),nJt]}],\"bg-repeat\":[{bg:[\"no-repeat\",{repeat:[\"\",\"x\",\"y\",\"round\",\"space\"]}]}],\"bg-size\":[{bg:[\"auto\",\"cover\",\"contain\",tJt]}],\"bg-image\":[{bg:[\"none\",{\"gradient-to\":[\"t\",\"tr\",\"r\",\"br\",\"b\",\"bl\",\"l\",\"tl\"]},oJt]}],\"bg-color\":[{bg:[e]}],\"gradient-from-pos\":[{from:[v]}],\"gradient-via-pos\":[{via:[v]}],\"gradient-to-pos\":[{to:[v]}],\"gradient-from\":[{from:[y]}],\"gradient-via\":[{via:[y]}],\"gradient-to\":[{to:[y]}],rounded:[{rounded:[i]}],\"rounded-s\":[{\"rounded-s\":[i]}],\"rounded-e\":[{\"rounded-e\":[i]}],\"rounded-t\":[{\"rounded-t\":[i]}],\"rounded-r\":[{\"rounded-r\":[i]}],\"rounded-b\":[{\"rounded-b\":[i]}],\"rounded-l\":[{\"rounded-l\":[i]}],\"rounded-ss\":[{\"rounded-ss\":[i]}],\"rounded-se\":[{\"rounded-se\":[i]}],\"rounded-ee\":[{\"rounded-ee\":[i]}],\"rounded-es\":[{\"rounded-es\":[i]}],\"rounded-tl\":[{\"rounded-tl\":[i]}],\"rounded-tr\":[{\"rounded-tr\":[i]}],\"rounded-br\":[{\"rounded-br\":[i]}],\"rounded-bl\":[{\"rounded-bl\":[i]}],\"border-w\":[{border:[c]}],\"border-w-x\":[{\"border-x\":[c]}],\"border-w-y\":[{\"border-y\":[c]}],\"border-w-s\":[{\"border-s\":[c]}],\"border-w-e\":[{\"border-e\":[c]}],\"border-w-t\":[{\"border-t\":[c]}],\"border-w-r\":[{\"border-r\":[c]}],\"border-w-b\":[{\"border-b\":[c]}],\"border-w-l\":[{\"border-l\":[c]}],\"border-opacity\":[{\"border-opacity\":[S]}],\"border-style\":[{border:[...F(),\"hidden\"]}],\"divide-x\":[{\"divide-x\":[c]}],\"divide-x-reverse\":[\"divide-x-reverse\"],\"divide-y\":[{\"divide-y\":[c]}],\"divide-y-reverse\":[\"divide-y-reverse\"],\"divide-opacity\":[{\"divide-opacity\":[S]}],\"divide-style\":[{divide:F()}],\"border-color\":[{border:[o]}],\"border-color-x\":[{\"border-x\":[o]}],\"border-color-y\":[{\"border-y\":[o]}],\"border-color-s\":[{\"border-s\":[o]}],\"border-color-e\":[{\"border-e\":[o]}],\"border-color-t\":[{\"border-t\":[o]}],\"border-color-r\":[{\"border-r\":[o]}],\"border-color-b\":[{\"border-b\":[o]}],\"border-color-l\":[{\"border-l\":[o]}],\"divide-color\":[{divide:[o]}],\"outline-style\":[{outline:[\"\",...F()]}],\"outline-offset\":[{\"outline-offset\":[sE,kr]}],\"outline-w\":[{outline:[sE,t5]}],\"outline-color\":[{outline:[e]}],\"ring-w\":[{ring:U()}],\"ring-w-inset\":[\"ring-inset\"],\"ring-color\":[{ring:[e]}],\"ring-opacity\":[{\"ring-opacity\":[S]}],\"ring-offset-w\":[{\"ring-offset\":[sE,t5]}],\"ring-offset-color\":[{\"ring-offset\":[e]}],shadow:[{shadow:[\"\",\"inner\",\"none\",n5,iJt]}],\"shadow-color\":[{shadow:[lH]}],opacity:[{opacity:[S]}],\"mix-blend\":[{\"mix-blend\":[...N(),\"plus-lighter\",\"plus-darker\"]}],\"bg-blend\":[{\"bg-blend\":N()}],filter:[{filter:[\"\",\"none\"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],\"drop-shadow\":[{\"drop-shadow\":[\"\",\"none\",n5,kr]}],grayscale:[{grayscale:[d]}],\"hue-rotate\":[{\"hue-rotate\":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[P]}],sepia:[{sepia:[V]}],\"backdrop-filter\":[{\"backdrop-filter\":[\"\",\"none\"]}],\"backdrop-blur\":[{\"backdrop-blur\":[n]}],\"backdrop-brightness\":[{\"backdrop-brightness\":[r]}],\"backdrop-contrast\":[{\"backdrop-contrast\":[u]}],\"backdrop-grayscale\":[{\"backdrop-grayscale\":[d]}],\"backdrop-hue-rotate\":[{\"backdrop-hue-rotate\":[p]}],\"backdrop-invert\":[{\"backdrop-invert\":[h]}],\"backdrop-opacity\":[{\"backdrop-opacity\":[S]}],\"backdrop-saturate\":[{\"backdrop-saturate\":[P]}],\"backdrop-sepia\":[{\"backdrop-sepia\":[V]}],\"border-collapse\":[{border:[\"collapse\",\"separate\"]}],\"border-spacing\":[{\"border-spacing\":[a]}],\"border-spacing-x\":[{\"border-spacing-x\":[a]}],\"border-spacing-y\":[{\"border-spacing-y\":[a]}],\"table-layout\":[{table:[\"auto\",\"fixed\"]}],caption:[{caption:[\"top\",\"bottom\"]}],transition:[{transition:[\"none\",\"all\",\"\",\"colors\",\"opacity\",\"shadow\",\"transform\",kr]}],duration:[{duration:G()}],ease:[{ease:[\"linear\",\"in\",\"out\",\"in-out\",kr]}],delay:[{delay:G()}],animate:[{animate:[\"none\",\"spin\",\"ping\",\"pulse\",\"bounce\",kr]}],transform:[{transform:[\"\",\"gpu\",\"none\"]}],scale:[{scale:[z]}],\"scale-x\":[{\"scale-x\":[z]}],\"scale-y\":[{\"scale-y\":[z]}],rotate:[{rotate:[uH,kr]}],\"translate-x\":[{\"translate-x\":[oe]}],\"translate-y\":[{\"translate-y\":[oe]}],\"skew-x\":[{\"skew-x\":[Q]}],\"skew-y\":[{\"skew-y\":[Q]}],\"transform-origin\":[{origin:[\"center\",\"top\",\"top-right\",\"right\",\"bottom-right\",\"bottom\",\"bottom-left\",\"left\",\"top-left\",kr]}],accent:[{accent:[\"auto\",e]}],appearance:[{appearance:[\"none\",\"auto\"]}],cursor:[{cursor:[\"auto\",\"default\",\"pointer\",\"wait\",\"text\",\"move\",\"help\",\"not-allowed\",\"none\",\"context-menu\",\"progress\",\"cell\",\"crosshair\",\"vertical-text\",\"alias\",\"copy\",\"no-drop\",\"grab\",\"grabbing\",\"all-scroll\",\"col-resize\",\"row-resize\",\"n-resize\",\"e-resize\",\"s-resize\",\"w-resize\",\"ne-resize\",\"nw-resize\",\"se-resize\",\"sw-resize\",\"ew-resize\",\"ns-resize\",\"nesw-resize\",\"nwse-resize\",\"zoom-in\",\"zoom-out\",kr]}],\"caret-color\":[{caret:[e]}],\"pointer-events\":[{\"pointer-events\":[\"none\",\"auto\"]}],resize:[{resize:[\"none\",\"y\",\"x\",\"\"]}],\"scroll-behavior\":[{scroll:[\"auto\",\"smooth\"]}],\"scroll-m\":[{\"scroll-m\":K()}],\"scroll-mx\":[{\"scroll-mx\":K()}],\"scroll-my\":[{\"scroll-my\":K()}],\"scroll-ms\":[{\"scroll-ms\":K()}],\"scroll-me\":[{\"scroll-me\":K()}],\"scroll-mt\":[{\"scroll-mt\":K()}],\"scroll-mr\":[{\"scroll-mr\":K()}],\"scroll-mb\":[{\"scroll-mb\":K()}],\"scroll-ml\":[{\"scroll-ml\":K()}],\"scroll-p\":[{\"scroll-p\":K()}],\"scroll-px\":[{\"scroll-px\":K()}],\"scroll-py\":[{\"scroll-py\":K()}],\"scroll-ps\":[{\"scroll-ps\":K()}],\"scroll-pe\":[{\"scroll-pe\":K()}],\"scroll-pt\":[{\"scroll-pt\":K()}],\"scroll-pr\":[{\"scroll-pr\":K()}],\"scroll-pb\":[{\"scroll-pb\":K()}],\"scroll-pl\":[{\"scroll-pl\":K()}],\"snap-align\":[{snap:[\"start\",\"end\",\"center\",\"align-none\"]}],\"snap-stop\":[{snap:[\"normal\",\"always\"]}],\"snap-type\":[{snap:[\"none\",\"x\",\"y\",\"both\"]}],\"snap-strictness\":[{snap:[\"mandatory\",\"proximity\"]}],touch:[{touch:[\"auto\",\"none\",\"manipulation\"]}],\"touch-x\":[{\"touch-pan\":[\"x\",\"left\",\"right\"]}],\"touch-y\":[{\"touch-pan\":[\"y\",\"up\",\"down\"]}],\"touch-pz\":[\"touch-pinch-zoom\"],select:[{select:[\"none\",\"text\",\"all\",\"auto\"]}],\"will-change\":[{\"will-change\":[\"auto\",\"scroll\",\"contents\",\"transform\",kr]}],fill:[{fill:[e,\"none\"]}],\"stroke-w\":[{stroke:[sE,t5,vwe]}],stroke:[{stroke:[e,\"none\"]}],sr:[\"sr-only\",\"not-sr-only\"],\"forced-color-adjust\":[{\"forced-color-adjust\":[\"auto\",\"none\"]}]},conflictingClassGroups:{overflow:[\"overflow-x\",\"overflow-y\"],overscroll:[\"overscroll-x\",\"overscroll-y\"],inset:[\"inset-x\",\"inset-y\",\"start\",\"end\",\"top\",\"right\",\"bottom\",\"left\"],\"inset-x\":[\"right\",\"left\"],\"inset-y\":[\"top\",\"bottom\"],flex:[\"basis\",\"grow\",\"shrink\"],gap:[\"gap-x\",\"gap-y\"],p:[\"px\",\"py\",\"ps\",\"pe\",\"pt\",\"pr\",\"pb\",\"pl\"],px:[\"pr\",\"pl\"],py:[\"pt\",\"pb\"],m:[\"mx\",\"my\",\"ms\",\"me\",\"mt\",\"mr\",\"mb\",\"ml\"],mx:[\"mr\",\"ml\"],my:[\"mt\",\"mb\"],size:[\"w\",\"h\"],\"font-size\":[\"leading\"],\"fvn-normal\":[\"fvn-ordinal\",\"fvn-slashed-zero\",\"fvn-figure\",\"fvn-spacing\",\"fvn-fraction\"],\"fvn-ordinal\":[\"fvn-normal\"],\"fvn-slashed-zero\":[\"fvn-normal\"],\"fvn-figure\":[\"fvn-normal\"],\"fvn-spacing\":[\"fvn-normal\"],\"fvn-fraction\":[\"fvn-normal\"],\"line-clamp\":[\"display\",\"overflow\"],rounded:[\"rounded-s\",\"rounded-e\",\"rounded-t\",\"rounded-r\",\"rounded-b\",\"rounded-l\",\"rounded-ss\",\"rounded-se\",\"rounded-ee\",\"rounded-es\",\"rounded-tl\",\"rounded-tr\",\"rounded-br\",\"rounded-bl\"],\"rounded-s\":[\"rounded-ss\",\"rounded-es\"],\"rounded-e\":[\"rounded-se\",\"rounded-ee\"],\"rounded-t\":[\"rounded-tl\",\"rounded-tr\"],\"rounded-r\":[\"rounded-tr\",\"rounded-br\"],\"rounded-b\":[\"rounded-br\",\"rounded-bl\"],\"rounded-l\":[\"rounded-tl\",\"rounded-bl\"],\"border-spacing\":[\"border-spacing-x\",\"border-spacing-y\"],\"border-w\":[\"border-w-s\",\"border-w-e\",\"border-w-t\",\"border-w-r\",\"border-w-b\",\"border-w-l\"],\"border-w-x\":[\"border-w-r\",\"border-w-l\"],\"border-w-y\":[\"border-w-t\",\"border-w-b\"],\"border-color\":[\"border-color-s\",\"border-color-e\",\"border-color-t\",\"border-color-r\",\"border-color-b\",\"border-color-l\"],\"border-color-x\":[\"border-color-r\",\"border-color-l\"],\"border-color-y\":[\"border-color-t\",\"border-color-b\"],\"scroll-m\":[\"scroll-mx\",\"scroll-my\",\"scroll-ms\",\"scroll-me\",\"scroll-mt\",\"scroll-mr\",\"scroll-mb\",\"scroll-ml\"],\"scroll-mx\":[\"scroll-mr\",\"scroll-ml\"],\"scroll-my\":[\"scroll-mt\",\"scroll-mb\"],\"scroll-p\":[\"scroll-px\",\"scroll-py\",\"scroll-ps\",\"scroll-pe\",\"scroll-pt\",\"scroll-pr\",\"scroll-pb\",\"scroll-pl\"],\"scroll-px\":[\"scroll-pr\",\"scroll-pl\"],\"scroll-py\":[\"scroll-pt\",\"scroll-pb\"],touch:[\"touch-x\",\"touch-y\",\"touch-pz\"],\"touch-x\":[\"touch\"],\"touch-y\":[\"touch\"],\"touch-pz\":[\"touch\"]},conflictingClassGroupModifiers:{\"font-size\":[\"leading\"]}}};var mat=GQt(uJt);function be(...e){return mat(cat(e))}var rt={base:\"ock-font-family\",body:\"ock-font-family font-normal text-base\",caption:\"ock-font-family font-semibold text-xs\",headline:\"ock-font-family font-semibold\",label1:\"ock-font-family font-semibold text-sm\",label2:\"ock-font-family text-sm\",legal:\"ock-font-family text-xs\",title1:\"ock-font-family font-semibold text-2xl\",title3:\"ock-font-family font-semibold text-xl\"},Qt={default:\"cursor-pointer ock-bg-default active:bg-[var(--ock-bg-default-active)] hover:bg-[var(--ock-bg-default-hover)]\",alternate:\"cursor-pointer ock-bg-alternate active:bg-[var(--ock-bg-alternate-active)] hover:bg-[var(--ock-bg-alternate-hover)]\",inverse:\"cursor-pointer ock-bg-inverse active:bg-[var(--ock-bg-inverse-active)] hover:bg-[var(--ock-bg-inverse-hover)]\",primary:\"cursor-pointer ock-bg-primary active:bg-[var(--ock-bg-primary-active)] hover:bg-[var(--ock-bg-primary-hover)]\",secondary:\"cursor-pointer ock-bg-secondary active:bg-[var(--ock-bg-secondary-active)] hover:bg-[var(--ock-bg-secondary-hover)]\",coinbaseBranding:\"cursor-pointer bg-[#0052FF] hover:bg-[#0045D8]\",shadow:\"ock-shadow-default\",disabled:\"opacity-[0.38] pointer-events-none\"},An={default:\"ock-bg-default\",alternate:\"ock-bg-alternate\",inverse:\"ock-bg-inverse\",primary:\"ock-bg-primary\",secondary:\"ock-bg-secondary\",error:\"ock-bg-error\",warning:\"ock-bg-warning\",success:\"ock-bg-success\",washed:\"ock-bg-primary-washed\",disabled:\"ock-bg-primary-disabled\",reverse:\"ock-bg-default-reverse\"},ct={inverse:\"ock-text-inverse\",foreground:\"ock-text-foreground\",foregroundMuted:\"ock-text-foreground-muted\",error:\"ock-text-error\",primary:\"ock-text-primary\",success:\"ock-text-success\",warning:\"ock-text-warning\",disabled:\"ock-text-disabled\"};var bt={default:\"ock-border-default\",defaultActive:\"ock-border-default-active\",linePrimary:\"ock-border-line-primary border\",lineDefault:\"ock-border-line-default border\",lineHeavy:\"ock-border-line-heavy border\",lineInverse:\"ock-border-line-inverse border\",radius:\"ock-border-radius\",radiusInner:\"ock-border-radius-inner\"};var tn={primary:\"ock-icon-color-primary\",foreground:\"ock-icon-color-foreground\",foregroundMuted:\"ock-icon-color-foreground-muted\",inverse:\"ock-icon-color-inverse\",error:\"ock-icon-color-error\",success:\"ock-icon-color-success\",warning:\"ock-icon-color-warning\"};f();var AR=he($e(),1),gat=e=>{let t=(0,AR.useRef)(null),n=(0,AR.useCallback)(o=>{t.current&&clearInterval(t.current),t.current=window.setInterval(()=>{o.closed&&(t.current&&(clearInterval(t.current),t.current=null),e?.())},500)},[e]),r=(0,AR.useCallback)(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return(0,AR.useEffect)(()=>()=>r(),[r]),{startPopupMonitor:n,stopPopupMonitor:r}};f();var dH=he(ze(),1),Ite=({fill:e=\"#E11D48\"})=>(0,dH.jsxs)(\"svg\",{\"aria-label\":\"ock-errorSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-errorSvg\",children:[(0,dH.jsx)(\"title\",{children:\"Error\"}),(0,dH.jsx)(\"path\",{d:\"M8 16C12.4183 16 16 12.4183 16 8C16 3.58171 12.4183 0 8 0C3.58172 0 0 3.58171 0 8C0 12.4183 3.58172 16 8 16ZM11.7576 5.0909L8.84853 8L11.7576 10.9091L10.9091 11.7576L8 8.84851L5.09093 11.7576L4.2424 10.9091L7.15147 8L4.2424 5.0909L5.09093 4.24239L8 7.15145L10.9091 4.24239L11.7576 5.0909Z\",fill:e})]});f();function xwe({url:e,target:t,height:n,width:r}){let o=Math.round((window.screen.width-r)/2),i=Math.round((window.screen.height-n)/2),a=`width=${r},height=${n},resizable,scrollbars=yes,status=1,left=${o},top=${i}`;return window.open(e,t,a)}f();var _a=()=>({sendAnalytics:Lee});f();var Ewe=he(ze(),1);function Nm({className:e}){return(0,Ewe.jsx)(\"div\",{className:\"flex h-full items-center justify-center\",\"data-testid\":\"ockSpinner\",children:(0,Ewe.jsx)(\"div\",{className:be(\"animate-spin border-2 border-gray-200 border-t-3\",\"rounded-full border-t-gray-400 px-2.5 py-2.5\",e)})})}f();var fH=he(ze(),1);var yat=({className:e=be(tn.inverse)})=>(0,fH.jsxs)(\"svg\",{\"data-testid\":\"ock-addSvg\",role:\"img\",\"aria-label\":\"ock-addSvg\",width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,fH.jsx)(\"title\",{children:\"Add\"}),(0,fH.jsx)(\"path\",{d:\"M7.125 0H5.875V5.37501L0.5 5.37501L0.5 6.62501H5.875V12H7.125V6.62501H12.5V5.37501H7.125V0Z\",className:e})]});f();var pH=he(ze(),1),H7=({fill:e=\"#65A30D\"})=>(0,pH.jsxs)(\"svg\",{\"aria-label\":\"ock-successSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-successSvg\",children:[(0,pH.jsx)(\"title\",{children:\"Success SVG\"}),(0,pH.jsx)(\"path\",{d:\"M8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0ZM6.72667 11.5333L3.73333 8.54L4.67333 7.6L6.72667 9.65333L11.44 4.94L12.38 5.88L6.72667 11.5333Z\",fill:e})]});f();var Zl=he(ze(),1),zs=he($e(),1);f();var vat=he(ze(),1);f();var bat=he($e(),1);function el(e){return(0,bat.useMemo)(()=>e,[e])}var Ote=he($e(),1),lJt={},wat=(0,Ote.createContext)(lJt);function bh(){return(0,Ote.useContext)(wat)}function kte(e){let{chain:t}=Co(),n=e.chain??t,r=el({address:e.address||\"\",chain:n,schemaId:e.schemaId});return(0,vat.jsx)(wat.Provider,{value:r,children:e.children})}f();var aw=he(ze(),1);f();f();f();pn();ra();function vh(e){let t=YA(\"apiKey\");return ox({chain:e,transport:(e===dr||e===Ya)&&!!t?mu(`${e===dr?\"https://api.developer.coinbase.com/rpc/v1/base\":\"https://api.developer.coinbase.com/rpc/v1/base-sepolia\"}/${t}`):mu()})}ra();f();f();f();cde();function xat(e){return sde(e)}function z7(e){return xat(e)}f();f();pn();var Eat=(e,t)=>{let n=Uint8Array.from(e.split(\"\").map(c=>c.charCodeAt(0))),r=j9(n);return Number.parseInt(r,16)%t};var Awe=e=>{let t=Eat(e,hbe.length),n=hbe[t];return`data:image/svg+xml;base64,${btoa(n)}`};f();var _R=e=>!!(e.endsWith(\".base.eth\")||e.endsWith(\".basetest.eth\"));var _we=async({ensName:e,chain:t=zi})=>{let n=RT({chainId:t.id}),o=IT({chainId:t.id})||n,i=_R(e);if(!o)return Promise.reject(\"ChainId not supported, avatar resolution is only supported on Ethereum and Base.\");let a=vh(t),c=null;if(n)try{if(c=await a.getEnsAvatar({name:z7(e),universalResolverAddress:w7[t.id]}),c)return c}catch{}a=vh(zi);let u=await a.getEnsAvatar({name:z7(e)});return u||(i?Awe(e):null)};f();var Zd={gcTime:18e5,staleTime:3e5,refetchOnWindowFocus:!1};ra();var Swe=({ensName:e,chain:t=zi},n)=>{let r=[\"useAvatar\",e,t.id];return Nf({queryKey:r,queryFn:()=>_we({ensName:e,chain:t}),enabled:!!e,...Zd,gcTime:n?.cacheTime,...n})};f();f();ra();f();var Twe=[{inputs:[{internalType:\"contract ENS\",name:\"ens_\",type:\"address\"},{internalType:\"address\",name:\"registrarController_\",type:\"address\"},{internalType:\"address\",name:\"reverseRegistrar_\",type:\"address\"},{internalType:\"address\",name:\"owner_\",type:\"address\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[],name:\"AlreadyInitialized\",type:\"error\"},{inputs:[],name:\"CantSetSelfAsDelegate\",type:\"error\"},{inputs:[],name:\"CantSetSelfAsOperator\",type:\"error\"},{inputs:[],name:\"NewOwnerIsZeroAddress\",type:\"error\"},{inputs:[],name:\"NoHandoverRequest\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"uint256\",name:\"contentType\",type:\"uint256\"}],name:\"ABIChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"address\",name:\"a\",type:\"address\"}],name:\"AddrChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"uint256\",name:\"coinType\",type:\"uint256\"},{indexed:!1,internalType:\"bytes\",name:\"newAddress\",type:\"bytes\"}],name:\"AddressChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"operator\",type:\"address\"},{indexed:!1,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"ApprovalForAll\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!1,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"address\",name:\"delegate\",type:\"address\"},{indexed:!0,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"Approved\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"ContenthashChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"name\",type:\"bytes\"},{indexed:!1,internalType:\"uint16\",name:\"resource\",type:\"uint16\"},{indexed:!1,internalType:\"bytes\",name:\"record\",type:\"bytes\"}],name:\"DNSRecordChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"name\",type:\"bytes\"},{indexed:!1,internalType:\"uint16\",name:\"resource\",type:\"uint16\"}],name:\"DNSRecordDeleted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"lastzonehash\",type:\"bytes\"},{indexed:!1,internalType:\"bytes\",name:\"zonehash\",type:\"bytes\"}],name:\"DNSZonehashChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"},{indexed:!1,internalType:\"address\",name:\"implementer\",type:\"address\"}],name:\"InterfaceChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"string\",name:\"name\",type:\"string\"}],name:\"NameChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"OwnershipHandoverCanceled\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"OwnershipHandoverRequested\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"oldOwner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],name:\"PubkeyChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newRegistrarController\",type:\"address\"}],name:\"RegistrarControllerUpdated\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newReverseRegistrar\",type:\"address\"}],name:\"ReverseRegistrarUpdated\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"string\",name:\"indexedKey\",type:\"string\"},{indexed:!1,internalType:\"string\",name:\"key\",type:\"string\"},{indexed:!1,internalType:\"string\",name:\"value\",type:\"string\"}],name:\"TextChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"uint64\",name:\"newVersion\",type:\"uint64\"}],name:\"VersionChanged\",type:\"event\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"contentTypes\",type:\"uint256\"}],name:\"ABI\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"},{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"addr\",outputs:[{internalType:\"address payable\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"coinType\",type:\"uint256\"}],name:\"addr\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"delegate\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"approve\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"cancelOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"clearRecords\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"completeOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"contenthash\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"name\",type:\"bytes32\"},{internalType:\"uint16\",name:\"resource\",type:\"uint16\"}],name:\"dnsRecord\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ens\",outputs:[{internalType:\"contract ENS\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"name\",type:\"bytes32\"}],name:\"hasDNSRecords\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"}],name:\"interfaceImplementer\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"delegate\",type:\"address\"}],name:\"isApprovedFor\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"address\",name:\"operator\",type:\"address\"}],name:\"isApprovedForAll\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes[]\",name:\"data\",type:\"bytes[]\"}],name:\"multicall\",outputs:[{internalType:\"bytes[]\",name:\"results\",type:\"bytes[]\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"nodehash\",type:\"bytes32\"},{internalType:\"bytes[]\",name:\"data\",type:\"bytes[]\"}],name:\"multicallWithNodeCheck\",outputs:[{internalType:\"bytes[]\",name:\"results\",type:\"bytes[]\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"result\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"ownershipHandoverExpiresAt\",outputs:[{internalType:\"uint256\",name:\"result\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"pubkey\",outputs:[{internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],name:\"recordVersions\",outputs:[{internalType:\"uint64\",name:\"\",type:\"uint64\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"registrarController\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"renounceOwnership\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[],name:\"requestOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"resolve\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"reverseRegistrar\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"contentType\",type:\"uint256\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"setABI\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"coinType\",type:\"uint256\"},{internalType:\"bytes\",name:\"a\",type:\"bytes\"}],name:\"setAddr\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"a\",type:\"address\"}],name:\"setAddr\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"operator\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"setApprovalForAll\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"setContenthash\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"setDNSRecords\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"},{internalType:\"address\",name:\"implementer\",type:\"address\"}],name:\"setInterface\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"newName\",type:\"string\"}],name:\"setName\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],name:\"setPubkey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"registrarController_\",type:\"address\"}],name:\"setRegistrarController\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"reverseRegistrar_\",type:\"address\"}],name:\"setReverseRegistrar\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"key\",type:\"string\"},{internalType:\"string\",name:\"value\",type:\"string\"}],name:\"setText\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"setZonehash\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"}],name:\"supportsInterface\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"key\",type:\"string\"}],name:\"text\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"zonehash\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"}];f();pn();f();ra();var Aat=e=>e===zi.id?\"addr\":((2147483648|e)>>>0).toString(16).toLocaleUpperCase();var Cwe=(e,t)=>{let n=e.toLocaleLowerCase(),r=lr(n.substring(2)),o=Aat(t),i=c_(`${o.toLocaleUpperCase()}.reverse`);return lr(ZT([\"bytes32\",\"bytes32\"],[i,r]))};f();ra();var fJt=vh(zi),SR=async({name:e})=>await fJt.getEnsAddress({name:e})??null;var hH=async({address:e,chain:t=zi})=>{let n=RT({chainId:t.id});if(!(IT({chainId:t.id})||n))return Promise.reject(\"ChainId not supported, name resolution is only supported on Ethereum and Base.\");let i=vh(t);if(n){let c=Cwe(e,dr.id);try{let u=await i.readContract({abi:Twe,address:w7[t.id],functionName:\"name\",args:[c]});if(u)try{let d=await SR({name:u});if(d&&d.toLowerCase()===e.toLowerCase())return u}catch(d){console.error(\"Error during basename forward resolution verification:\",d)}}catch{}}let a=vh(zi);try{let c=await a.getEnsName({address:e});if(c)try{let u=await SR({name:c});if(u&&u.toLowerCase()===e.toLowerCase())return c}catch(u){console.error(\"Error during ENS forward resolution verification:\",u)}}catch{}return null};ra();var r5=({address:e,chain:t=zi},n)=>{let r=[\"useName\",e,t.id];return Nf({queryKey:r,queryFn:()=>hH({address:e,chain:t}),enabled:!!e,...Zd,gcTime:n?.cacheTime,...n})};f();var _at=he($e(),1);function ip(e){return t=>{let n=t?.type;return n&&typeof n==\"object\"&&\"_payload\"in n?n._payload.value[2]===e.name:(0,_at.isValidElement)(t)&&t.type===e}}var Qte=he($e(),1);f();var Rwe=he(ze(),1);var Nte=(0,Rwe.jsx)(\"svg\",{\"data-testid\":\"ock-defaultAvatarSVG\",role:\"img\",\"aria-label\":\"ock-defaultAvatarSVG\",width:\"100%\",height:\"100%\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:\"h-full w-full\",children:(0,Rwe.jsx)(\"path\",{d:\"M20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20C40 31.0457 31.0457 40 20 40ZM25.6641 13.9974C25.6641 10.8692 23.1282 8.33333 20.0001 8.33333C16.8719 8.33333 14.336 10.8692 14.336 13.9974C14.336 17.1256 16.8719 19.6615 20.0001 19.6615C23.1282 19.6615 25.6641 17.1256 25.6641 13.9974ZM11.3453 23.362L9.53476 28.1875C12.2141 30.8475 15.9019 32.493 19.974 32.5H20.026C24.0981 32.493 27.7859 30.8475 30.4653 28.1874L28.6547 23.362C28.0052 21.625 26.3589 20.4771 24.5162 20.4318C24.4557 20.4771 22.462 21.9271 20 21.9271C17.538 21.9271 15.5443 20.4771 15.4839 20.4318C13.6412 20.462 11.9948 21.625 11.3453 23.362Z\",className:tn.foreground})});f();var Pte=he(ze(),1),Sat=(0,Pte.jsx)(\"svg\",{\"data-testid\":\"ock-defaultLoadingSVG\",role:\"img\",\"aria-label\":\"ock-defaultLoadingSVG\",width:\"100%\",height:\"100%\",viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,Pte.jsx)(\"circle\",{cx:\"50\",cy:\"50\",r:\"45\",stroke:\"#333\",fill:\"none\",strokeWidth:\"10\",strokeLinecap:\"round\",children:(0,Pte.jsx)(\"animateTransform\",{attributeName:\"transform\",type:\"rotate\",from:\"0 50 50\",to:\"360 50 50\",dur:\"1s\",repeatCount:\"indefinite\"})})});f();var J7=he(ze(),1);f();f();f();f();f();var Mte=JSON;f();var Tat=e=>e.toUpperCase(),Cat=e=>{let t={};return e.forEach((n,r)=>{t[r]=n}),t};f();var Rat=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},Iat=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},Oat=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0};f();f();f();function j7(e,t){if(!!!e)throw new Error(t)}f();f();f();f();function kat(e){return typeof e==\"object\"&&e!==null}f();f();function Nat(e,t){if(!!!e)throw new Error(t??\"Unexpected invariant triggered.\")}var pJt=/\\\\r\\\\n|[\\\\n\\\\r]/g;function W7(e,t){let n=0,r=1;for(let o of e.body.matchAll(pJt)){if(typeof o.index==\"number\"||Nat(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}f();function Iwe(e){return Dte(e.source,W7(e.source,e.start))}function Dte(e,t){let n=e.locationOffset.column-1,r=\"\".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,c=t.line===1?n:0,u=t.column+c,d=`${e.name}:${a}:${u}\\n`,p=r.split(/\\\\r\\\\n|[\\\\n\\\\r]/g),h=p[o];if(h.length>120){let g=Math.floor(u/80),y=u%80,v=[];for(let x=0;x<h.length;x+=80)v.push(h.slice(x,x+80));return d+Pat([[`${a} |`,v[0]],...v.slice(1,g+1).map(x=>[\"|\",x]),[\"|\",\"^\".padStart(y)],[\"|\",v[g+1]]])}return d+Pat([[`${a-1} |`,p[o-1]],[`${a} |`,h],[\"|\",\"^\".padStart(u)],[`${a+1} |`,p[o+1]]])}function Pat(e){let t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?\" \"+o:\"\")).join(`\\n`)}function hJt(e){let t=e[0];return t==null||\"kind\"in t||\"length\"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Lte=class e extends Error{constructor(t,...n){var r,o,i;let{nodes:a,source:c,positions:u,path:d,originalError:p,extensions:h}=hJt(n);super(t),this.name=\"GraphQLError\",this.path=d??void 0,this.originalError=p??void 0,this.nodes=Mat(Array.isArray(a)?a:a?[a]:void 0);let g=Mat((r=this.nodes)===null||r===void 0?void 0:r.map(v=>v.loc).filter(v=>v!=null));this.source=c??(g==null||(o=g[0])===null||o===void 0?void 0:o.source),this.positions=u??g?.map(v=>v.start),this.locations=u&&c?u.map(v=>W7(c,v)):g?.map(v=>W7(v.source,v.start));let y=kat(p?.extensions)?p?.extensions:void 0;this.extensions=(i=h??y)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,\"stack\",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,\"stack\",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return\"GraphQLError\"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`\\n\\n`+Iwe(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`\\n\\n`+Dte(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Mat(e){return e===void 0||e.length===0?void 0:e}function Yc(e,t,n){return new Lte(`Syntax Error: ${n}`,{source:e,positions:[t]})}f();var mH=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return\"Location\"}toJSON(){return{start:this.start,end:this.end}}},V7=class{constructor(t,n,r,o,i,a){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return\"Token\"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Owe={Name:[],Document:[\"definitions\"],OperationDefinition:[\"name\",\"variableDefinitions\",\"directives\",\"selectionSet\"],VariableDefinition:[\"variable\",\"type\",\"defaultValue\",\"directives\"],Variable:[\"name\"],SelectionSet:[\"selections\"],Field:[\"alias\",\"name\",\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"name\",\"value\"],FragmentSpread:[\"name\",\"directives\"],InlineFragment:[\"typeCondition\",\"directives\",\"selectionSet\"],FragmentDefinition:[\"name\",\"variableDefinitions\",\"typeCondition\",\"directives\",\"selectionSet\"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[\"values\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"name\",\"arguments\"],NamedType:[\"name\"],ListType:[\"type\"],NonNullType:[\"type\"],SchemaDefinition:[\"description\",\"directives\",\"operationTypes\"],OperationTypeDefinition:[\"type\"],ScalarTypeDefinition:[\"description\",\"name\",\"directives\"],ObjectTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],FieldDefinition:[\"description\",\"name\",\"arguments\",\"type\",\"directives\"],InputValueDefinition:[\"description\",\"name\",\"type\",\"defaultValue\",\"directives\"],InterfaceTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeDefinition:[\"description\",\"name\",\"directives\",\"types\"],EnumTypeDefinition:[\"description\",\"name\",\"directives\",\"values\"],EnumValueDefinition:[\"description\",\"name\",\"directives\"],InputObjectTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],DirectiveDefinition:[\"description\",\"name\",\"arguments\",\"locations\"],SchemaExtension:[\"directives\",\"operationTypes\"],ScalarTypeExtension:[\"name\",\"directives\"],ObjectTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],InterfaceTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeExtension:[\"name\",\"directives\",\"types\"],EnumTypeExtension:[\"name\",\"directives\",\"values\"],InputObjectTypeExtension:[\"name\",\"directives\",\"fields\"]},mJt=new Set(Object.keys(Owe));function kwe(e){let t=e?.kind;return typeof t==\"string\"&&mJt.has(t)}var o5;(function(e){e.QUERY=\"query\",e.MUTATION=\"mutation\",e.SUBSCRIPTION=\"subscription\"})(o5||(o5={}));f();var gH;(function(e){e.QUERY=\"QUERY\",e.MUTATION=\"MUTATION\",e.SUBSCRIPTION=\"SUBSCRIPTION\",e.FIELD=\"FIELD\",e.FRAGMENT_DEFINITION=\"FRAGMENT_DEFINITION\",e.FRAGMENT_SPREAD=\"FRAGMENT_SPREAD\",e.INLINE_FRAGMENT=\"INLINE_FRAGMENT\",e.VARIABLE_DEFINITION=\"VARIABLE_DEFINITION\",e.SCHEMA=\"SCHEMA\",e.SCALAR=\"SCALAR\",e.OBJECT=\"OBJECT\",e.FIELD_DEFINITION=\"FIELD_DEFINITION\",e.ARGUMENT_DEFINITION=\"ARGUMENT_DEFINITION\",e.INTERFACE=\"INTERFACE\",e.UNION=\"UNION\",e.ENUM=\"ENUM\",e.ENUM_VALUE=\"ENUM_VALUE\",e.INPUT_OBJECT=\"INPUT_OBJECT\",e.INPUT_FIELD_DEFINITION=\"INPUT_FIELD_DEFINITION\"})(gH||(gH={}));f();var Pn;(function(e){e.NAME=\"Name\",e.DOCUMENT=\"Document\",e.OPERATION_DEFINITION=\"OperationDefinition\",e.VARIABLE_DEFINITION=\"VariableDefinition\",e.SELECTION_SET=\"SelectionSet\",e.FIELD=\"Field\",e.ARGUMENT=\"Argument\",e.FRAGMENT_SPREAD=\"FragmentSpread\",e.INLINE_FRAGMENT=\"InlineFragment\",e.FRAGMENT_DEFINITION=\"FragmentDefinition\",e.VARIABLE=\"Variable\",e.INT=\"IntValue\",e.FLOAT=\"FloatValue\",e.STRING=\"StringValue\",e.BOOLEAN=\"BooleanValue\",e.NULL=\"NullValue\",e.ENUM=\"EnumValue\",e.LIST=\"ListValue\",e.OBJECT=\"ObjectValue\",e.OBJECT_FIELD=\"ObjectField\",e.DIRECTIVE=\"Directive\",e.NAMED_TYPE=\"NamedType\",e.LIST_TYPE=\"ListType\",e.NON_NULL_TYPE=\"NonNullType\",e.SCHEMA_DEFINITION=\"SchemaDefinition\",e.OPERATION_TYPE_DEFINITION=\"OperationTypeDefinition\",e.SCALAR_TYPE_DEFINITION=\"ScalarTypeDefinition\",e.OBJECT_TYPE_DEFINITION=\"ObjectTypeDefinition\",e.FIELD_DEFINITION=\"FieldDefinition\",e.INPUT_VALUE_DEFINITION=\"InputValueDefinition\",e.INTERFACE_TYPE_DEFINITION=\"InterfaceTypeDefinition\",e.UNION_TYPE_DEFINITION=\"UnionTypeDefinition\",e.ENUM_TYPE_DEFINITION=\"EnumTypeDefinition\",e.ENUM_VALUE_DEFINITION=\"EnumValueDefinition\",e.INPUT_OBJECT_TYPE_DEFINITION=\"InputObjectTypeDefinition\",e.DIRECTIVE_DEFINITION=\"DirectiveDefinition\",e.SCHEMA_EXTENSION=\"SchemaExtension\",e.SCALAR_TYPE_EXTENSION=\"ScalarTypeExtension\",e.OBJECT_TYPE_EXTENSION=\"ObjectTypeExtension\",e.INTERFACE_TYPE_EXTENSION=\"InterfaceTypeExtension\",e.UNION_TYPE_EXTENSION=\"UnionTypeExtension\",e.ENUM_TYPE_EXTENSION=\"EnumTypeExtension\",e.INPUT_OBJECT_TYPE_EXTENSION=\"InputObjectTypeExtension\"})(Pn||(Pn={}));f();f();f();function Bte(e){return e===9||e===32}function G7(e){return e>=48&&e<=57}function Dat(e){return e>=97&&e<=122||e>=65&&e<=90}function Nwe(e){return Dat(e)||e===95}function Lat(e){return Dat(e)||G7(e)||e===95}function Bat(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let a=0;a<e.length;++a){var i;let c=e[a],u=gJt(c);u!==c.length&&(r=(i=r)!==null&&i!==void 0?i:a,o=a,a!==0&&u<n&&(n=u))}return e.map((a,c)=>c===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function gJt(e){let t=0;for(;t<e.length&&Bte(e.charCodeAt(t));)++t;return t}function Uat(e,t){let n=e.replace(/\"\"\"/g,\\'\\\\\\\\\"\"\"\\'),r=n.split(/\\\\r\\\\n|[\\\\n\\\\r]/g),o=r.length===1,i=r.length>1&&r.slice(1).every(y=>y.length===0||Bte(y.charCodeAt(0))),a=n.endsWith(\\'\\\\\\\\\"\"\"\\'),c=e.endsWith(\\'\"\\')&&!a,u=e.endsWith(\"\\\\\\\\\"),d=c||u,p=!(t!=null&&t.minimize)&&(!o||e.length>70||d||i||a),h=\"\",g=o&&Bte(e.charCodeAt(0));return(p&&!g||i)&&(h+=`\\n`),h+=n,(p||d)&&(h+=`\\n`),\\'\"\"\"\\'+h+\\'\"\"\"\\'}f();var mt;(function(e){e.SOF=\"<SOF>\",e.EOF=\"<EOF>\",e.BANG=\"!\",e.DOLLAR=\"$\",e.AMP=\"&\",e.PAREN_L=\"(\",e.PAREN_R=\")\",e.SPREAD=\"...\",e.COLON=\":\",e.EQUALS=\"=\",e.AT=\"@\",e.BRACKET_L=\"[\",e.BRACKET_R=\"]\",e.BRACE_L=\"{\",e.PIPE=\"|\",e.BRACE_R=\"}\",e.NAME=\"Name\",e.INT=\"Int\",e.FLOAT=\"Float\",e.STRING=\"String\",e.BLOCK_STRING=\"BlockString\",e.COMMENT=\"Comment\"})(mt||(mt={}));var bH=class{constructor(t){let n=new V7(mt.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return\"Lexer\"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==mt.EOF)do if(t.next)t=t.next;else{let n=yJt(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===mt.COMMENT);return t}};function Hat(e){return e===mt.BANG||e===mt.DOLLAR||e===mt.AMP||e===mt.PAREN_L||e===mt.PAREN_R||e===mt.SPREAD||e===mt.COLON||e===mt.EQUALS||e===mt.AT||e===mt.BRACKET_L||e===mt.BRACKET_R||e===mt.BRACE_L||e===mt.PIPE||e===mt.BRACE_R}function q7(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ute(e,t){return zat(e.charCodeAt(t))&&jat(e.charCodeAt(t+1))}function zat(e){return e>=55296&&e<=56319}function jat(e){return e>=56320&&e<=57343}function TR(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return mt.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r===\\'\"\\'?`\\'\"\\'`:`\"${r}\"`}return\"U+\"+n.toString(16).toUpperCase().padStart(4,\"0\")}function Zc(e,t,n,r,o){let i=e.line,a=1+n-e.lineStart;return new V7(t,n,r,i,a,o)}function yJt(e,t){let n=e.source.body,r=n.length,o=t;for(;o<r;){let i=n.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return bJt(e,o);case 33:return Zc(e,mt.BANG,o,o+1);case 36:return Zc(e,mt.DOLLAR,o,o+1);case 38:return Zc(e,mt.AMP,o,o+1);case 40:return Zc(e,mt.PAREN_L,o,o+1);case 41:return Zc(e,mt.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return Zc(e,mt.SPREAD,o,o+3);break;case 58:return Zc(e,mt.COLON,o,o+1);case 61:return Zc(e,mt.EQUALS,o,o+1);case 64:return Zc(e,mt.AT,o,o+1);case 91:return Zc(e,mt.BRACKET_L,o,o+1);case 93:return Zc(e,mt.BRACKET_R,o,o+1);case 123:return Zc(e,mt.BRACE_L,o,o+1);case 124:return Zc(e,mt.PIPE,o,o+1);case 125:return Zc(e,mt.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?_Jt(e,o):wJt(e,o)}if(G7(i)||i===45)return vJt(e,o,i);if(Nwe(i))return SJt(e,o);throw Yc(e.source,o,i===39?`Unexpected single quote character (\\'), did you mean to use a double quote (\")?`:q7(i)||Ute(n,o)?`Unexpected character: ${TR(e,o)}.`:`Invalid character: ${TR(e,o)}.`)}return Zc(e,mt.EOF,r,r)}function bJt(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(i===10||i===13)break;if(q7(i))++o;else if(Ute(n,o))o+=2;else break}return Zc(e,mt.COMMENT,t,o,n.slice(t+1,o))}function vJt(e,t,n){let r=e.source.body,o=t,i=n,a=!1;if(i===45&&(i=r.charCodeAt(++o)),i===48){if(i=r.charCodeAt(++o),G7(i))throw Yc(e.source,o,`Invalid number, unexpected digit after 0: ${TR(e,o)}.`)}else o=Pwe(e,o,i),i=r.charCodeAt(o);if(i===46&&(a=!0,i=r.charCodeAt(++o),o=Pwe(e,o,i),i=r.charCodeAt(o)),(i===69||i===101)&&(a=!0,i=r.charCodeAt(++o),(i===43||i===45)&&(i=r.charCodeAt(++o)),o=Pwe(e,o,i),i=r.charCodeAt(o)),i===46||Nwe(i))throw Yc(e.source,o,`Invalid number, expected digit but got: ${TR(e,o)}.`);return Zc(e,a?mt.FLOAT:mt.INT,t,o,r.slice(t,o))}function Pwe(e,t,n){if(!G7(n))throw Yc(e.source,t,`Invalid number, expected digit but got: ${TR(e,t)}.`);let r=e.source.body,o=t+1;for(;G7(r.charCodeAt(o));)++o;return o}function wJt(e,t){let n=e.source.body,r=n.length,o=t+1,i=o,a=\"\";for(;o<r;){let c=n.charCodeAt(o);if(c===34)return a+=n.slice(i,o),Zc(e,mt.STRING,t,o+1,a);if(c===92){a+=n.slice(i,o);let u=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?xJt(e,o):EJt(e,o):AJt(e,o);a+=u.value,o+=u.size,i=o;continue}if(c===10||c===13)break;if(q7(c))++o;else if(Ute(n,o))o+=2;else throw Yc(e.source,o,`Invalid character within String: ${TR(e,o)}.`)}throw Yc(e.source,o,\"Unterminated string.\")}function xJt(e,t){let n=e.source.body,r=0,o=3;for(;o<12;){let i=n.charCodeAt(t+o++);if(i===125){if(o<5||!q7(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|yH(i),r<0)break}throw Yc(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+o)}\".`)}function EJt(e,t){let n=e.source.body,r=Fat(n,t+2);if(q7(r))return{value:String.fromCodePoint(r),size:6};if(zat(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let o=Fat(n,t+8);if(jat(o))return{value:String.fromCodePoint(r,o),size:12}}throw Yc(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+6)}\".`)}function Fat(e,t){return yH(e.charCodeAt(t))<<12|yH(e.charCodeAt(t+1))<<8|yH(e.charCodeAt(t+2))<<4|yH(e.charCodeAt(t+3))}function yH(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function AJt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:\\'\"\\',size:2};case 92:return{value:\"\\\\\\\\\",size:2};case 47:return{value:\"/\",size:2};case 98:return{value:\"\\\\b\",size:2};case 102:return{value:\"\\\\f\",size:2};case 110:return{value:`\\n`,size:2};case 114:return{value:\"\\\\r\",size:2};case 116:return{value:\"\\t\",size:2}}throw Yc(e.source,t,`Invalid character escape sequence: \"${n.slice(t,t+2)}\".`)}function _Jt(e,t){let n=e.source.body,r=n.length,o=e.lineStart,i=t+3,a=i,c=\"\",u=[];for(;i<r;){let d=n.charCodeAt(i);if(d===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){c+=n.slice(a,i),u.push(c);let p=Zc(e,mt.BLOCK_STRING,t,i+3,Bat(u).join(`\\n`));return e.line+=u.length-1,e.lineStart=o,p}if(d===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){c+=n.slice(a,i),a=i+1,i+=4;continue}if(d===10||d===13){c+=n.slice(a,i),u.push(c),d===13&&n.charCodeAt(i+1)===10?i+=2:++i,c=\"\",a=i,o=i;continue}if(q7(d))++i;else if(Ute(n,i))i+=2;else throw Yc(e.source,i,`Invalid character within String: ${TR(e,i)}.`)}throw Yc(e.source,i,\"Unterminated string.\")}function SJt(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(Lat(i))++o;else break}return Zc(e,mt.NAME,t,o,n.slice(t,o))}f();f();function K7(e){return Fte(e,[])}function Fte(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return TJt(e,t);default:return String(e)}}function TJt(e,t){if(e===null)return\"null\";if(t.includes(e))return\"[Circular]\";let n=[...t,e];if(CJt(e)){let r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:Fte(r,n)}else if(Array.isArray(e))return IJt(e,n);return RJt(e,n)}function CJt(e){return typeof e.toJSON==\"function\"}function RJt(e,t){let n=Object.entries(e);return n.length===0?\"{}\":t.length>2?\"[\"+OJt(e)+\"]\":\"{ \"+n.map(([o,i])=>o+\": \"+Fte(i,t)).join(\", \")+\" }\"}function IJt(e,t){if(e.length===0)return\"[]\";if(t.length>2)return\"[Array]\";let n=Math.min(10,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(Fte(e[i],t));return r===1?o.push(\"... 1 more item\"):r>1&&o.push(`... ${r} more items`),\"[\"+o.join(\", \")+\"]\"}function OJt(e){let t=Object.prototype.toString.call(e).replace(/^\\\\[object /,\"\").replace(/]$/,\"\");if(t===\"Object\"&&typeof e.constructor==\"function\"){let n=e.constructor.name;if(typeof n==\"string\"&&n!==\"\")return n}return t}f();var kJt=globalThis.process&&!1,Wat=kJt?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t==\"object\"&&t!==null){var r;let o=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===i){let a=K7(t);throw new Error(`Cannot use ${o} \"${a}\" from another module or realm.\\n\\nEnsure that there is only one instance of \"graphql\" in the node_modules\\ndirectory. If different versions of \"graphql\" are the dependencies of other\\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \"graphql\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.`)}}return!1};var Y7=class{constructor(t,n=\"GraphQL request\",r={line:1,column:1}){typeof t==\"string\"||j7(!1,`Body must be a string. Received: ${K7(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||j7(!1,\"line in locationOffset is 1-indexed and must be positive.\"),this.locationOffset.column>0||j7(!1,\"column in locationOffset is 1-indexed and must be positive.\")}get[Symbol.toStringTag](){return\"Source\"}};function Vat(e){return Wat(e,Y7)}function zte(e,t){let n=new Mwe(e,t),r=n.parseDocument();return Object.defineProperty(r,\"tokenCount\",{enumerable:!1,value:n.tokenCount}),r}var Mwe=class{constructor(t,n={}){let r=Vat(t)?t:new Y7(t);this._lexer=new bH(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(mt.NAME);return this.node(t,{kind:Pn.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Pn.DOCUMENT,definitions:this.many(mt.SOF,this.parseDefinition,mt.EOF)})}parseDefinition(){if(this.peek(mt.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===mt.NAME){switch(n.value){case\"schema\":return this.parseSchemaDefinition();case\"scalar\":return this.parseScalarTypeDefinition();case\"type\":return this.parseObjectTypeDefinition();case\"interface\":return this.parseInterfaceTypeDefinition();case\"union\":return this.parseUnionTypeDefinition();case\"enum\":return this.parseEnumTypeDefinition();case\"input\":return this.parseInputObjectTypeDefinition();case\"directive\":return this.parseDirectiveDefinition()}if(t)throw Yc(this._lexer.source,this._lexer.token.start,\"Unexpected description, descriptions are supported only on type definitions.\");switch(n.value){case\"query\":case\"mutation\":case\"subscription\":return this.parseOperationDefinition();case\"fragment\":return this.parseFragmentDefinition();case\"extend\":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(mt.BRACE_L))return this.node(t,{kind:Pn.OPERATION_DEFINITION,operation:o5.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(mt.NAME)&&(r=this.parseName()),this.node(t,{kind:Pn.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(mt.NAME);switch(t.value){case\"query\":return o5.QUERY;case\"mutation\":return o5.MUTATION;case\"subscription\":return o5.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(mt.PAREN_L,this.parseVariableDefinition,mt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Pn.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(mt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(mt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(mt.DOLLAR),this.node(t,{kind:Pn.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Pn.SELECTION_SET,selections:this.many(mt.BRACE_L,this.parseSelection,mt.BRACE_R)})}parseSelection(){return this.peek(mt.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,o;return this.expectOptionalToken(mt.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Pn.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(mt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(mt.PAREN_L,n,mt.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(mt.COLON),this.node(n,{kind:Pn.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(mt.SPREAD);let n=this.expectOptionalKeyword(\"on\");return!n&&this.peek(mt.NAME)?this.node(t,{kind:Pn.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Pn.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword(\"fragment\"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Pn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Pn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===\"on\")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case mt.BRACKET_L:return this.parseList(t);case mt.BRACE_L:return this.parseObject(t);case mt.INT:return this.advanceLexer(),this.node(n,{kind:Pn.INT,value:n.value});case mt.FLOAT:return this.advanceLexer(),this.node(n,{kind:Pn.FLOAT,value:n.value});case mt.STRING:case mt.BLOCK_STRING:return this.parseStringLiteral();case mt.NAME:switch(this.advanceLexer(),n.value){case\"true\":return this.node(n,{kind:Pn.BOOLEAN,value:!0});case\"false\":return this.node(n,{kind:Pn.BOOLEAN,value:!1});case\"null\":return this.node(n,{kind:Pn.NULL});default:return this.node(n,{kind:Pn.ENUM,value:n.value})}case mt.DOLLAR:if(t)if(this.expectToken(mt.DOLLAR),this._lexer.token.kind===mt.NAME){let r=this._lexer.token.value;throw Yc(this._lexer.source,n.start,`Unexpected variable \"$${r}\" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Pn.STRING,value:t.value,block:t.kind===mt.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Pn.LIST,values:this.any(mt.BRACKET_L,n,mt.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Pn.OBJECT,fields:this.any(mt.BRACE_L,n,mt.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(mt.COLON),this.node(n,{kind:Pn.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(mt.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(mt.AT),this.node(n,{kind:Pn.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(mt.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(mt.BRACKET_R),n=this.node(t,{kind:Pn.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(mt.BANG)?this.node(t,{kind:Pn.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Pn.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(mt.STRING)||this.peek(mt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"schema\");let r=this.parseConstDirectives(),o=this.many(mt.BRACE_L,this.parseOperationTypeDefinition,mt.BRACE_R);return this.node(t,{kind:Pn.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(mt.COLON);let r=this.parseNamedType();return this.node(t,{kind:Pn.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"scalar\");let r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Pn.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"type\");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Pn.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(\"implements\")?this.delimitedMany(mt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(mt.BRACE_L,this.parseFieldDefinition,mt.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(mt.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:Pn.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(mt.PAREN_L,this.parseInputValueDef,mt.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(mt.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(mt.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:Pn.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"interface\");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Pn.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"union\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:Pn.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(mt.EQUALS)?this.delimitedMany(mt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"enum\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:Pn.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(mt.BRACE_L,this.parseEnumValueDefinition,mt.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Pn.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value===\"true\"||this._lexer.token.value===\"false\"||this._lexer.token.value===\"null\")throw Yc(this._lexer.source,this._lexer.token.start,`${Hte(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"input\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:Pn.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(mt.BRACE_L,this.parseInputValueDef,mt.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===mt.NAME)switch(t.value){case\"schema\":return this.parseSchemaExtension();case\"scalar\":return this.parseScalarTypeExtension();case\"type\":return this.parseObjectTypeExtension();case\"interface\":return this.parseInterfaceTypeExtension();case\"union\":return this.parseUnionTypeExtension();case\"enum\":return this.parseEnumTypeExtension();case\"input\":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"schema\");let n=this.parseConstDirectives(),r=this.optionalMany(mt.BRACE_L,this.parseOperationTypeDefinition,mt.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Pn.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"scalar\");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Pn.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"type\");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Pn.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"interface\");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Pn.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"union\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Pn.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"enum\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Pn.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"input\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Pn.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"directive\"),this.expectToken(mt.AT);let r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword(\"repeatable\");this.expectKeyword(\"on\");let a=this.parseDirectiveLocations();return this.node(t,{kind:Pn.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(mt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(gH,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new mH(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Yc(this._lexer.source,n.start,`Expected ${Gat(t)}, found ${Hte(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===mt.NAME&&n.value===t)this.advanceLexer();else throw Yc(this._lexer.source,n.start,`Expected \"${t}\", found ${Hte(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===mt.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return Yc(this._lexer.source,n.start,`Unexpected ${Hte(n)}.`)}any(t,n,r){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==mt.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Yc(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function Hte(e){let t=e.value;return Gat(e.kind)+(t!=null?` \"${t}\"`:\"\")}function Gat(e){return Hat(e)?`\"${e}\"`:e}f();f();function qat(e){return`\"${e.replace(NJt,PJt)}\"`}var NJt=/[\\\\x00-\\\\x1f\\\\x22\\\\x5c\\\\x7f-\\\\x9f]/g;function PJt(e){return MJt[e.charCodeAt(0)]}var MJt=[\"\\\\\\\\u0000\",\"\\\\\\\\u0001\",\"\\\\\\\\u0002\",\"\\\\\\\\u0003\",\"\\\\\\\\u0004\",\"\\\\\\\\u0005\",\"\\\\\\\\u0006\",\"\\\\\\\\u0007\",\"\\\\\\\\b\",\"\\\\\\\\t\",\"\\\\\\\\n\",\"\\\\\\\\u000B\",\"\\\\\\\\f\",\"\\\\\\\\r\",\"\\\\\\\\u000E\",\"\\\\\\\\u000F\",\"\\\\\\\\u0010\",\"\\\\\\\\u0011\",\"\\\\\\\\u0012\",\"\\\\\\\\u0013\",\"\\\\\\\\u0014\",\"\\\\\\\\u0015\",\"\\\\\\\\u0016\",\"\\\\\\\\u0017\",\"\\\\\\\\u0018\",\"\\\\\\\\u0019\",\"\\\\\\\\u001A\",\"\\\\\\\\u001B\",\"\\\\\\\\u001C\",\"\\\\\\\\u001D\",\"\\\\\\\\u001E\",\"\\\\\\\\u001F\",\"\",\"\",\\'\\\\\\\\\"\\',\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\\\\\\\\\\\\\\\\\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\\\\\\\\u007F\",\"\\\\\\\\u0080\",\"\\\\\\\\u0081\",\"\\\\\\\\u0082\",\"\\\\\\\\u0083\",\"\\\\\\\\u0084\",\"\\\\\\\\u0085\",\"\\\\\\\\u0086\",\"\\\\\\\\u0087\",\"\\\\\\\\u0088\",\"\\\\\\\\u0089\",\"\\\\\\\\u008A\",\"\\\\\\\\u008B\",\"\\\\\\\\u008C\",\"\\\\\\\\u008D\",\"\\\\\\\\u008E\",\"\\\\\\\\u008F\",\"\\\\\\\\u0090\",\"\\\\\\\\u0091\",\"\\\\\\\\u0092\",\"\\\\\\\\u0093\",\"\\\\\\\\u0094\",\"\\\\\\\\u0095\",\"\\\\\\\\u0096\",\"\\\\\\\\u0097\",\"\\\\\\\\u0098\",\"\\\\\\\\u0099\",\"\\\\\\\\u009A\",\"\\\\\\\\u009B\",\"\\\\\\\\u009C\",\"\\\\\\\\u009D\",\"\\\\\\\\u009E\",\"\\\\\\\\u009F\"];f();var Kat=Object.freeze({});function Dwe(e,t,n=Owe){let r=new Map;for(let S of Object.values(Pn))r.set(S,Yat(t,S));let o,i=Array.isArray(e),a=[e],c=-1,u=[],d=e,p,h,g=[],y=[];do{c++;let S=c===a.length,M=S&&u.length!==0;if(S){if(p=y.length===0?void 0:g[g.length-1],d=h,h=y.pop(),M)if(i){d=d.slice();let z=0;for(let[V,Q]of u){let $=V-z;Q===null?(d.splice($,1),z++):d[$]=Q}}else{d={...d};for(let[z,V]of u)d[z]=V}c=o.index,a=o.keys,u=o.edits,i=o.inArray,o=o.prev}else if(h){if(p=i?c:a[c],d=h[p],d==null)continue;g.push(p)}let P;if(!Array.isArray(d)){var v,x;kwe(d)||j7(!1,`Invalid AST Node: ${K7(d)}.`);let z=S?(v=r.get(d.kind))===null||v===void 0?void 0:v.leave:(x=r.get(d.kind))===null||x===void 0?void 0:x.enter;if(P=z?.call(t,d,p,h,g,y),P===Kat)break;if(P===!1){if(!S){g.pop();continue}}else if(P!==void 0&&(u.push([p,P]),!S))if(kwe(P))d=P;else{g.pop();continue}}if(P===void 0&&M&&u.push([p,d]),S)g.pop();else{var R;o={inArray:i,index:c,keys:a,edits:u,prev:o},i=Array.isArray(d),a=i?d:(R=n[d.kind])!==null&&R!==void 0?R:[],c=-1,u=[],h&&y.push(h),h=d}}while(o!==void 0);return u.length!==0?u[u.length-1][1]:e}function Yat(e,t){let n=e[t];return typeof n==\"object\"?n:typeof n==\"function\"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Wte(e){return Dwe(e,LJt)}var DJt=80,LJt={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>hn(e.definitions,`\\n\\n`)},OperationDefinition:{leave(e){let t=Ao(\"(\",hn(e.variableDefinitions,\", \"),\")\"),n=hn([e.operation,hn([e.name,t]),hn(e.directives,\" \")],\" \");return(n===\"query\"?\"\":n+\" \")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+Ao(\" = \",n)+Ao(\" \",hn(r,\" \"))},SelectionSet:{leave:({selections:e})=>P1(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){let i=Ao(\"\",e,\": \")+t,a=i+Ao(\"(\",hn(n,\", \"),\")\");return a.length>DJt&&(a=i+Ao(`(\\n`,jte(hn(n,`\\n`)),`\\n)`)),hn([a,hn(r,\" \"),o],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+Ao(\" \",hn(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>hn([\"...\",Ao(\"on \",e),hn(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${Ao(\"(\",hn(n,\", \"),\")\")} on ${t} ${Ao(\"\",hn(r,\" \"),\" \")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Uat(e):qat(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+hn(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+hn(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+Ao(\"(\",hn(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ao(\"\",e,`\\n`)+hn([\"schema\",hn(t,\" \"),P1(n)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ao(\"\",e,`\\n`)+hn([\"scalar\",t,hn(n,\" \")],\" \")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Ao(\"\",e,`\\n`)+hn([\"type\",t,Ao(\"implements \",hn(n,\" & \")),hn(r,\" \"),P1(o)],\" \")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>Ao(\"\",e,`\\n`)+t+(Zat(n)?Ao(`(\\n`,jte(hn(n,`\\n`)),`\\n)`):Ao(\"(\",hn(n,\", \"),\")\"))+\": \"+r+Ao(\" \",hn(o,\" \"))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>Ao(\"\",e,`\\n`)+hn([t+\": \"+n,Ao(\"= \",r),hn(o,\" \")],\" \")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Ao(\"\",e,`\\n`)+hn([\"interface\",t,Ao(\"implements \",hn(n,\" & \")),hn(r,\" \"),P1(o)],\" \")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ao(\"\",e,`\\n`)+hn([\"union\",t,hn(n,\" \"),Ao(\"= \",hn(r,\" | \"))],\" \")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ao(\"\",e,`\\n`)+hn([\"enum\",t,hn(n,\" \"),P1(r)],\" \")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ao(\"\",e,`\\n`)+hn([t,hn(n,\" \")],\" \")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ao(\"\",e,`\\n`)+hn([\"input\",t,hn(n,\" \"),P1(r)],\" \")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>Ao(\"\",e,`\\n`)+\"directive @\"+t+(Zat(n)?Ao(`(\\n`,jte(hn(n,`\\n`)),`\\n)`):Ao(\"(\",hn(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+hn(o,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>hn([\"extend schema\",hn(e,\" \"),P1(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>hn([\"extend scalar\",e,hn(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>hn([\"extend type\",e,Ao(\"implements \",hn(t,\" & \")),hn(n,\" \"),P1(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>hn([\"extend interface\",e,Ao(\"implements \",hn(t,\" & \")),hn(n,\" \"),P1(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>hn([\"extend union\",e,hn(t,\" \"),Ao(\"= \",hn(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>hn([\"extend enum\",e,hn(t,\" \"),P1(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>hn([\"extend input\",e,hn(t,\" \"),P1(n)],\" \")}};function hn(e,t=\"\"){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:\"\"}function P1(e){return Ao(`{\\n`,jte(hn(e,`\\n`)),`\\n}`)}function Ao(e,t,n=\"\"){return t!=null&&t!==\"\"?e+t+n:\"\"}function jte(e){return Ao(\"  \",e.replace(/\\\\n/g,`\\n  `))}function Zat(e){var t;return(t=e?.some(n=>n.includes(`\\n`)))!==null&&t!==void 0?t:!1}f();var Qat=e=>{let t,n=e.definitions.filter(r=>r.kind===\"OperationDefinition\");return n.length===1&&(t=n[0]?.name?.value),t},CR=e=>{if(typeof e==\"string\"){let n;try{let r=zte(e);n=Qat(r)}catch{}return{query:e,operationName:n}}let t=Qat(e);return{query:Wte(e),operationName:t}};f();var RR=class e extends Error{constructor(t,n){let r=`${e.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,e.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(this,e)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}};var s5=he(Xat(),1);f();var HJt=\"connection_init\",zJt=\"connection_ack\",est=\"ping\",tst=\"pong\",jJt=\"subscribe\",WJt=\"next\",VJt=\"error\",nst=\"complete\",a5=class e{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,n,r){this._type=t,this._payload=n,this._id=r}get text(){let t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,n){let{type:r,payload:o,id:i}=JSON.parse(t);return new e(r,n(o),i)}},qte=class{constructor(t,{onInit:n,onAcknowledged:r,onPing:o,onPong:i}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener(\"open\",async a=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(qJt(n?await n():null).text)}),t.addEventListener(\"close\",a=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener(\"error\",a=>{console.error(a)}),t.addEventListener(\"message\",a=>{try{let c=GJt(a.data);switch(c.type){case zJt:{this.socketState.acknowledged?console.warn(\"Duplicate CONNECTION_ACK message ignored\"):(this.socketState.acknowledged=!0,r&&r(c.payload));return}case est:{o?o(c.payload).then(h=>t.send($at(h).text)):t.send($at(null).text);return}case tst:{i&&i(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;let{query:u,variables:d,subscriber:p}=this.socketState.subscriptions[c.id];switch(c.type){case WJt:{!c.payload.errors&&c.payload.data&&p.next&&p.next(c.payload.data),c.payload.errors&&p.error&&p.error(new RR({...c.payload,status:200},{query:u,variables:d}));return}case VJt:{p.error&&p.error(new RR({errors:c.payload,status:200},{query:u,variables:d}));return}case nst:{p.complete&&p.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,\"Unknown graphql-ws message.\")})}makeSubscribe(t,n,r,o){let i=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[i]={query:t,variables:o,subscriber:r},this.socket.send(YJt(i,{query:t,operationName:n,variables:o}).text),()=>{this.socket.send(ZJt(i).text),delete this.socketState.subscriptions[i]}}rawRequest(t,n){return new Promise((r,o)=>{let i;this.rawSubscribe(t,{next:(a,c)=>i={data:a,extensions:c},error:o,complete:()=>r(i)},n)})}request(t,n){return new Promise((r,o)=>{let i;this.subscribe(t,{next:a=>i=a,error:o,complete:()=>r(i)},n)})}subscribe(t,n,r){let{query:o,operationName:i}=CR(t);return this.makeSubscribe(o,i,n,r)}rawSubscribe(t,n,r){return this.makeSubscribe(t,void 0,n,r)}ping(t){this.socket.send(KJt(t).text)}close(){this.socket.close(1e3)}};qte.PROTOCOL=\"graphql-transport-ws\";function GJt(e,t=n=>n){return a5.parse(e,t)}function qJt(e){return new a5(HJt,e)}function KJt(e){return new a5(est,e,void 0)}function $at(e){return new a5(tst,e,void 0)}function YJt(e,t){return new a5(jJt,t,e)}function ZJt(e){return new a5(nst,void 0,e)}var Q7=e=>{let t={};return e&&(typeof Headers<\"u\"&&e instanceof Headers||s5&&s5.Headers&&e instanceof s5.Headers?t=Cat(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):t=e),t},rst=e=>e.replace(/([\\\\s,]|#[^\\\\n\\\\r]+)+/g,\" \").trim(),QJt=e=>{if(!Array.isArray(e.query)){let r=e,o=[`query=${encodeURIComponent(rst(r.query))}`];return e.variables&&o.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`),r.operationName&&o.push(`operationName=${encodeURIComponent(r.operationName)}`),o.join(\"&\")}if(typeof e.variables<\"u\"&&!Array.isArray(e.variables))throw new Error(\"Cannot create query with given variable type, array expected\");let t=e,n=e.query.reduce((r,o,i)=>(r.push({query:rst(o),variables:t.variables?t.jsonSerializer.stringify(t.variables[i]):void 0}),r),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`},JJt=e=>async t=>{let{url:n,query:r,variables:o,operationName:i,fetch:a,fetchOptions:c,middleware:u}=t,d={...t.headers},p=\"\",h;e===\"POST\"?(h=XJt(r,o,i,c.jsonSerializer),typeof h==\"string\"&&(d[\"Content-Type\"]=\"application/json\")):p=QJt({query:r,variables:o,operationName:i,jsonSerializer:c.jsonSerializer??Mte});let g={method:e,headers:d,body:h,...c},y=n,v=g;if(u){let x=await Promise.resolve(u({...g,url:n,operationName:i,variables:o})),{url:R,...S}=x;y=R,v=S}return p&&(y=`${y}?${p}`),await a(y,v)},Kte=class{constructor(t,n={}){this.url=t,this.requestConfig=n,this.rawRequest=async(...r)=>{let[o,i,a]=r,c=Iat(o,i,a),{headers:u,fetch:d=s5.default,method:p=\"POST\",requestMiddleware:h,responseMiddleware:g,...y}=this.requestConfig,{url:v}=this;c.signal!==void 0&&(y.signal=c.signal);let{operationName:x}=CR(c.query);return Lwe({url:v,query:c.query,variables:c.variables,headers:{...Q7(Bwe(u)),...Q7(c.requestHeaders)},operationName:x,fetch:d,method:p,fetchOptions:y,middleware:h}).then(R=>(g&&g(R),R)).catch(R=>{throw g&&g(R),R})}}async request(t,...n){let[r,o]=n,i=Rat(t,r,o),{headers:a,fetch:c=s5.default,method:u=\"POST\",requestMiddleware:d,responseMiddleware:p,...h}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(h.signal=i.signal);let{query:y,operationName:v}=CR(i.document);return Lwe({url:g,query:y,variables:i.variables,headers:{...Q7(Bwe(a)),...Q7(i.requestHeaders)},operationName:v,fetch:c,method:u,fetchOptions:h,middleware:d}).then(x=>(p&&p(x),x.data)).catch(x=>{throw p&&p(x),x})}batchRequests(t,n){let r=Oat(t,n),{headers:o,...i}=this.requestConfig;r.signal!==void 0&&(i.signal=r.signal);let a=r.documents.map(({document:u})=>CR(u).query),c=r.documents.map(({variables:u})=>u);return Lwe({url:this.url,query:a,variables:c,headers:{...Q7(Bwe(o)),...Q7(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??s5.default,method:this.requestConfig.method||\"POST\",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(u=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u.data)).catch(u=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){let{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}},Lwe=async e=>{let{query:t,variables:n,fetchOptions:r}=e,o=JJt(Tat(e.method??\"post\")),i=Array.isArray(e.query),a=await o(e),c=await $Jt(a,r.jsonSerializer??Mte),u=Array.isArray(c)?!c.some(({data:p})=>!p):!!c.data,d=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||r.errorPolicy===\"all\"||r.errorPolicy===\"ignore\";if(a.ok&&d&&u){let{errors:p,...h}=(Array.isArray(c),c),g=r.errorPolicy===\"ignore\"?h:c;return{...i?{data:g}:g,headers:a.headers,status:a.status}}else{let p=typeof c==\"string\"?{error:c}:c;throw new RR({...p,status:a.status,headers:a.headers},{query:t,variables:n})}};var XJt=(e,t,n,r)=>{let o=r??Mte;if(!Array.isArray(e))return o.stringify({query:e,variables:t,operationName:n});if(typeof t<\"u\"&&!Array.isArray(t))throw new Error(\"Cannot create request body with given variable type, array expected\");let i=e.reduce((a,c,u)=>(a.push({query:c,variables:t?t[u]:void 0}),a),[]);return o.stringify(i)},$Jt=async(e,t)=>{let n;return e.headers.forEach((r,o)=>{o.toLowerCase()===\"content-type\"&&(n=r)}),n&&(n.toLowerCase().startsWith(\"application/json\")||n.toLowerCase().startsWith(\"application/graphql+json\")||n.toLowerCase().startsWith(\"application/graphql-response+json\"))?t.parse(await e.text()):e.text()},Bwe=e=>typeof e==\"function\"?e():e,ost=(e,...t)=>e.reduce((n,r,o)=>`${n}${r}${o in t?String(t[o]):\"\"}`,\"\");pn();f();f();f();ra();var Uwe={id:dr.id,easGraphqlAPI:\"https://base.easscan.org/graphql\",schemaUids:[\"0x1801901fabd0e6189356b4fb52bb0ab855276d84f7ec140839fbd1f6801ca065\",\"0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9\"]};f();ra();var Fwe={id:Ya.id,easGraphqlAPI:\"https://base-sepolia.easscan.org/graphql\",schemaUids:[\"0xef54ae90f47a187acc050ce631c55584fd4273c0ca9456ab21750921c3a84028\",\"0x2f34a2ffe5f87b2f45fbc7c784896b768d77261e2f24f77341ae43751c765a69\"]};f();ra();var Hwe={id:SM.id,easGraphqlAPI:\"https://optimism.easscan.org/graphql\",schemaUids:[\"0xac4c92fc5c7babed88f78a917cdbcdc1c496a8f4ab2d5b2ec29402736b2cf929\",\"0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89\",\"0x401a80196f3805c57b00482ae2b575a9f270562b6b6de7711af9837f08fa0faf\"]};var ist={[Uwe.id]:Uwe,[Fwe.id]:Fwe,[Hwe.id]:Hwe};function ast(e){return e.id in ist}function sst(e){var t;return((t=ist[e.id])==null?void 0:t.easGraphqlAPI)??\"\"}function cst(e){let t=sst(e);return new Kte(t)}var eXt=ost`\\n  query AttestationsForUsers(\\n    $where: AttestationWhereInput\\n    $distinct: [AttestationScalarFieldEnum!]\\n    $take: Int\\n  ) {\\n    attestations(where: $where, distinct: $distinct, take: $take) {\\n      id\\n      txid\\n      schemaId\\n      attester\\n      recipient\\n      revoked\\n      revocationTime\\n      expirationTime\\n      time\\n      timeCreated\\n      decodedDataJson\\n    }\\n  }\\n`;function tXt(e,t){let r={recipient:{equals:nr(e)},revoked:{equals:t.revoked}};return typeof t.expirationTime==\"number\"&&(r.OR=[{expirationTime:{equals:0}},{expirationTime:{gt:t.expirationTime}}]),t?.schemas&&t.schemas.length>0&&(r.schemaId={in:t.schemas}),{where:{AND:[r]},distinct:[\"schemaId\"],take:t.limit}}async function ust(e,t,n){let r=cst(t),o=tXt(e,n),{attestations:i}=await r.request(eXt,o);return i}async function zwe(e,t,n){if(!e)return console.log(\"Error in getAttestation: Address is not provided\"),[];if(!ast(t))return console.log(\"Error in getAttestation: Chain is not supported\"),[];try{let o={...{revoked:!1,expirationTime:Math.round(Date.now()/1e3),limit:10},...n};return await ust(e,t,o)}catch(r){return console.log(`Error in getAttestation: ${r.message}`),[]}}function vH({address:e,chain:t,schemaId:n},r){return Nf({queryKey:[\"useAttestations\",e,t?.id,n],queryFn:async()=>zwe(e,t,{schemas:[n]}),enabled:!!e&&!!n,...Zd,gcTime:r?.cacheTime,...r}).data||[]}f();var jwe=he(ze(),1);var lst=(0,jwe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-badgeSvg\",width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:\"h-full w-full\",children:(0,jwe.jsx)(\"path\",{d:\"M8.12957 3.73002L5.11957 6.74002L3.77957 5.40002C3.49957 5.12002 3.04957 5.12002 2.76957 5.40002C2.48957 5.68002 2.48957 6.13002 2.76957 6.41002L4.10957 7.75002L4.59957 8.24002C4.90957 8.55002 5.41957 8.55002 5.72957 8.24002L9.17957 4.79002C9.45957 4.51002 9.45957 4.06002 9.17957 3.78002L9.12957 3.73002C8.84957 3.45002 8.39957 3.45002 8.11957 3.73002H8.12957Z\",\"data-testid\":\"ock-badgeSvg\",className:tn.inverse})});f();var Qd={base:\"z-0\",navigation:\"z-1\",dropdown:\"z-10\",tooltip:\"z-20\",modal:\"z-40\",notification:\"z-50\"};var Yte=he($e(),1);function X7({className:e,tooltip:t=!1}){let[n,r]=(0,Yte.useState)(!1),{address:o,schemaId:i}=bh(),{chain:a,schemaId:c}=Co(),u=vH({address:o,chain:a,schemaId:t?i??c:null}),d=(0,Yte.useMemo)(()=>t?typeof t==\"string\"?t:nXt(u[0]):null,[t,u]),p=\"12px\";return(0,J7.jsxs)(\"div\",{className:\"relative inline-flex\",\"data-testid\":\"ockBadgeContainer\",children:[(0,J7.jsx)(\"span\",{className:be(An.primary,bt.default,bt.radius,t&&\"cursor-pointer\",e),style:{height:p,width:p,maxHeight:p,maxWidth:p},\"data-testid\":\"ockBadge\",...t&&{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},children:lst}),n&&t&&(0,J7.jsxs)(\"div\",{className:be(bt.radius,bt.default,Qt.alternate,rt.legal,ct.foreground,Qd.tooltip,\"-translate-x-1/2 absolute bottom-full left-1/2 mb-1 transform\",\"whitespace-nowrap px-1.5 py-0.5\"),\"data-testid\":\"ockBadgeTooltip\",children:[d,(0,J7.jsx)(\"div\",{className:be(\"-translate-x-1/2 absolute top-full left-1/2 transform\")})]})]})}function nXt(e){var t;if(!e?.decodedDataJson)return\"Verified\";try{let n=JSON.parse(e.decodedDataJson);if(Array.isArray(n)&&((t=n[0])!=null&&t.name))return n[0].name;let r=Object.values(n)[0];if(typeof r==\"string\")return r;if(r&&typeof r==\"object\"&&\"value\"in r&&typeof r.value==\"string\")return r.value}catch{}return\"Verified\"}f();function Zte({children:e,address:t}){let{chain:n,schemaId:r}=Co(),{schemaId:o,address:i}=bh();if(!o&&!r)throw new Error(\"Name: a SchemaId must be provided to the OnchainKitProvider or Identity component.\");return vH({address:t??i,chain:n,schemaId:o??r}).length===0?null:e}function ap({address:e=null,chain:t,className:n,defaultComponent:r,loadingComponent:o,children:i,...a}){let{address:c,chain:u}=bh(),d=e??c,p=t??u;if(!d)return console.error(\"Avatar: an Ethereum address must be provided to the Identity or Avatar component.\"),null;let{data:h,isLoading:g}=r5({address:d,chain:p}),{data:y,isLoading:v}=Swe({ensName:h??\"\",chain:p},{enabled:!!h}),x=(0,Qte.useMemo)(()=>Qte.Children.toArray(i).find(ip(X7)),[i]),R=r||Nte,S=o||Sat;if(g||v)return(0,aw.jsx)(\"div\",{className:be(\"h-8 w-8 overflow-hidden rounded-full\",n),children:S});let M=h&&y;return(0,aw.jsxs)(\"div\",{className:\"relative\",children:[(0,aw.jsx)(\"div\",{\"data-testid\":\"ockAvatar_ImageContainer\",className:be(\"h-10 w-10 overflow-hidden rounded-full\",n),children:M?(0,aw.jsx)(\"img\",{className:\"min-h-full min-w-full object-cover\",\"data-testid\":\"ockAvatar_Image\",loading:\"lazy\",width:\"100%\",height:\"100%\",decoding:\"async\",src:y,alt:h,...a}):(0,aw.jsx)(\"div\",{className:be(bt.default,\"h-full w-full border\"),children:R})}),x&&(0,aw.jsx)(Zte,{address:d,children:(0,aw.jsx)(\"div\",{\"data-testid\":\"ockAvatar_BadgeContainer\",className:\"-bottom-0.5 -right-0.5 absolute flex h-[15px] w-[15px] items-center justify-center rounded-full bg-transparent\",children:(0,aw.jsx)(\"div\",{className:\"flex h-3 w-3 items-center justify-center\",children:x})})})]})}f();var $7=he(ze(),1);f();var IR=e=>`${e.slice(0,6)}...${e.slice(-4)}`;var Jte=he($e(),1);function wh({address:e=null,className:t,children:n,chain:r,...o}){let{address:i,chain:a}=bh();if(!i&&!e)return console.error(\"Name: an Ethereum address must be provided to the Identity or Name component.\"),null;let c=e??i,u=r??a,{data:d,isLoading:p}=r5({address:c,chain:u}),h=(0,Jte.useMemo)(()=>Jte.Children.toArray(n).find(ip(X7)),[n]);return p?(0,$7.jsx)(\"span\",{className:t}):(0,$7.jsxs)(\"div\",{className:\"flex items-center gap-1\",children:[(0,$7.jsx)(\"span\",{\"data-testid\":\"ockIdentity_Text\",className:be(rt.headline,ct.foreground,t),...o,children:d||IR(c)}),h&&(0,$7.jsx)(Zte,{address:c,children:h})]})}f();var Wwe=he(ze(),1);var dst=(0,Wwe.jsx)(\"svg\",{\"data-testid\":\"ock-githubSvg\",role:\"img\",\"aria-label\":\"ock-githubSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:(0,Wwe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z\",className:tn.foreground})});f();var c5=he(ze(),1);var fst=(0,c5.jsxs)(\"svg\",{\"data-testid\":\"ock-twitterSvg\",role:\"img\",\"aria-label\":\"ock-twitterSvg\",width:\"100%\",height:\"100%\",viewBox:\"-1 -1 14 14\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:[(0,c5.jsx)(\"g\",{clipPath:\"url(#clip0_6998_47)\",children:(0,c5.jsx)(\"path\",{d:\"M7.14163 5.07857L11.6089 0H10.5503L6.67137 4.40965L3.57328 0H0L4.68492 6.66817L0 11.9938H1.05866L5.15491 7.33709L8.42672 11.9938H12L7.14137 5.07857H7.14163ZM5.69165 6.72692L5.21697 6.06292L1.44011 0.779407H3.06615L6.11412 5.04337L6.5888 5.70737L10.5508 11.2499H8.92476L5.69165 6.72718V6.72692Z\",className:tn.foreground})}),(0,c5.jsx)(\"defs\",{children:(0,c5.jsx)(\"clipPath\",{id:\"clip0_6998_47\",children:(0,c5.jsx)(\"rect\",{width:\"12\",height:\"12\",fill:\"white\"})})})]});f();var eP=he(ze(),1);var pst=(0,eP.jsxs)(\"svg\",{\"data-testid\":\"ock-warpcastSvg\",role:\"img\",\"aria-label\":\"ock-warpcastSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 13 12\",xmlns:\"http://www.w3.org/2000/svg\",className:`h-full w-full ${tn.foreground}`,children:[(0,eP.jsx)(\"path\",{d:\"M2.23071 0H10.6153V12H9.38451V6.50322H9.37245C9.23641 4.98404 7.96783 3.79353 6.42299 3.79353C4.87815 3.79353 3.60957 4.98404 3.47354 6.50322H3.46147V12H2.23071V0Z\",className:tn.foreground}),(0,eP.jsx)(\"path\",{d:\"M0 1.70312L0.499999 3.40635H0.923066V10.2967C0.71065 10.2967 0.538456 10.47 0.538456 10.6838V11.1483H0.461541C0.249125 11.1483 0.0769147 11.3216 0.0769147 11.5354V11.9999H4.38458V11.5354C4.38458 11.3216 4.21239 11.1483 3.99998 11.1483H3.92306V10.6838C3.92306 10.47 3.75085 10.2967 3.53843 10.2967H3.07691V1.70312H0Z\",className:tn.foreground}),(0,eP.jsx)(\"path\",{d:\"M9.46163 10.2967C9.24921 10.2967 9.077 10.47 9.077 10.6838V11.1483H9.00009C8.78767 11.1483 8.61548 11.3216 8.61548 11.5354V11.9999H12.9231V11.5354C12.9231 11.3216 12.7509 11.1483 12.5385 11.1483H12.4616V10.6838C12.4616 10.47 12.2894 10.2967 12.077 10.2967V3.40635H12.5001L13.0001 1.70312H9.92315V10.2967H9.46163Z\",className:tn.foreground})]});f();var Vwe=he(ze(),1);var hst=(0,Vwe.jsx)(\"svg\",{\"data-testid\":\"ock-websiteSvg\",role:\"img\",\"aria-label\":\"ock-websiteSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 12 12\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:`h-full w-full ${tn.foreground}`,children:(0,Vwe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M6 0C9.31356 0 12 2.68644 12 6C12 9.31356 9.31356 12 6 12C2.69689 12 0.0245556 9.35356 0 6C0.0244789 2.64689 2.69689 0 6 0ZM9.34844 9.97867C9.15053 9.88544 8.9422 9.80002 8.72553 9.72346C8.56251 10.0854 8.36772 10.4313 8.13856 10.7412C8.57762 10.5427 8.98439 10.2854 9.34844 9.97867ZM7.95156 9.49742C7.46353 9.38284 6.9427 9.30992 6.4 9.28597V11.1381C7.04791 10.9365 7.58233 10.2766 7.95156 9.49742ZM5.6 9.28597C5.05729 9.30993 4.53646 9.38284 4.04844 9.49742C4.41771 10.2766 4.95209 10.936 5.6 11.1375V9.28597ZM3.27456 9.72347C3.05737 9.80003 2.84956 9.88544 2.65164 9.97868C3.01571 10.2854 3.42248 10.5427 3.86153 10.7412C3.63237 10.4313 3.43758 10.0854 3.27456 9.72347ZM2.05267 9.38492C2.34486 9.2318 2.65736 9.09534 2.98809 8.97763C2.73913 8.21044 2.58288 7.33386 2.54799 6.40008H0.815211C0.901669 7.53597 1.35323 8.5703 2.05277 9.38497L2.05267 9.38492ZM3.75156 8.74742C4.33229 8.60263 4.95367 8.512 5.6 8.48545V6.4H3.34844C3.3823 7.25677 3.52553 8.05522 3.75157 8.74733L3.75156 8.74742ZM6.4 8.48545C7.04636 8.51201 7.66767 8.60263 8.24844 8.74794C8.47449 8.05523 8.61771 7.25728 8.65157 6.40061L6.40001 6.40009L6.4 8.48545ZM9.012 8.97763C9.34273 9.09534 9.65576 9.2318 9.94742 9.38492C10.6469 8.56982 11.0984 7.53603 11.185 6.40003H9.4522C9.4173 7.33389 9.26106 8.21048 9.0121 8.97759L9.012 8.97763ZM9.94742 2.61508C9.65523 2.7682 9.34273 2.90466 9.012 3.02237C9.26096 3.78956 9.41721 4.66614 9.4521 5.59992H11.1849C11.0984 4.46403 10.6469 3.4297 9.94732 2.61503L9.94742 2.61508ZM8.24853 3.25258C7.6678 3.39737 7.04642 3.488 6.40009 3.51456V5.6H8.65164C8.61779 4.74323 8.47456 3.94478 8.24852 3.25267L8.24853 3.25258ZM5.60009 3.51456C4.95373 3.48799 4.33242 3.39737 3.75164 3.25206C3.5256 3.94477 3.38238 4.74328 3.34852 5.59994H5.60008L5.60009 3.51456ZM2.98809 3.02237C2.65736 2.90466 2.34433 2.7682 2.05267 2.61508C1.35319 3.43018 0.901667 4.46397 0.815111 5.59997H2.54789C2.58278 4.66611 2.73903 3.78952 2.98799 3.02241L2.98809 3.02237ZM2.65163 2.02132C2.84954 2.11455 3.05788 2.19997 3.27454 2.27653C3.43757 1.91456 3.63236 1.56872 3.86152 1.25882C3.42246 1.45726 3.01569 1.71456 2.65163 2.02132ZM4.04852 2.50257C4.53654 2.61714 5.05738 2.69007 5.60008 2.71402V0.861911C4.95217 1.06348 4.41774 1.72337 4.04852 2.50258V2.50257ZM6.40008 2.71402C6.94279 2.69006 7.46362 2.61715 7.95163 2.50257C7.58237 1.7234 7.04747 1.06346 6.40008 0.8619V2.71402ZM8.72552 2.27652C8.94271 2.19996 9.15052 2.11454 9.34843 2.02131C8.98437 1.71454 8.5776 1.45724 8.13855 1.25881C8.36771 1.56923 8.5625 1.91454 8.72552 2.27652Z\"})});f();ra();var eIr=vh(zi);f();var Gwe=he(ze(),1);function mst({className:e,connectWalletText:t,onClick:n,text:r}){return(0,Gwe.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectButton\",className:be(Qt.primary,bt.radius,rt.headline,ct.inverse,\"inline-flex min-w-[153px] items-center justify-center px-4 py-3\",e),onClick:n,children:t||(0,Gwe.jsx)(\"span\",{className:be(ct.inverse),children:r})})}f();var gst=he(ze(),1);function Xte({children:e,className:t}){return(0,gst.jsx)(\"span\",{className:be(rt.headline,ct.inverse,t),children:e})}f();var ca=he(ze(),1);f();var xH=he(ze(),1);var wst=he($e(),1),xst=he(Ny(),1);f();var yst=he(ze(),1),$te=he($e(),1);function sw({children:e,disableEscapeKey:t=!1,disableOutsideClick:n=!1,onDismiss:r,triggerRef:o,preventTriggerEvents:i=!1}){let a=(0,$te.useRef)(null);return(0,$te.useEffect)(()=>{if(n&&t)return;let c=h=>{i&&(h.preventDefault(),h.stopPropagation())},u=h=>{var g;return(g=a.current)==null?void 0:g.contains(h)},d=h=>{var g;if(n||!(h.target instanceof Node))return;let y=h.target;if((g=o?.current)!=null&&g.contains(y)){c(h);return}u(y)||r?.()},p=h=>{!t&&h.key===\"Escape\"&&r?.()};return document.addEventListener(\"pointerdown\",d,!0),document.addEventListener(\"keydown\",p),()=>{document.removeEventListener(\"pointerdown\",d,!0),document.removeEventListener(\"keydown\",p)}},[n,t,r,o,i]),(0,yst.jsx)(\"div\",{\"data-testid\":\"ockDismissableLayer\",ref:a,children:e})}f();var vst=he(ze(),1),wH=he($e(),1),bst=\\'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])\\';function cw({active:e=!0,children:t}){let n=(0,wH.useRef)(null),r=(0,wH.useRef)(null);(0,wH.useEffect)(()=>{if(e){if(r.current=document.activeElement,n.current){let c=n.current.querySelector(bst);c?.focus()}return()=>{var c;(c=r.current)==null||c.focus()}}},[e]);let o=()=>{var c;return(c=n.current)==null?void 0:c.querySelectorAll(bst)},i=(c,u)=>{let d=u[0],p=u[u.length-1],h=document.activeElement===d,g=document.activeElement===p;c.shiftKey&&h?(c.preventDefault(),p.focus()):!c.shiftKey&&g&&(c.preventDefault(),d.focus())};return(0,vst.jsx)(\"div\",{\"data-testid\":\"ockFocusTrap\",onKeyDown:c=>{if(!e||c.key!==\"Tab\")return;let u=o();u?.length&&i(c,u)},ref:n,children:t})}function Est({children:e,isOpen:t,modal:n=!0,onClose:r,\"aria-label\":o,\"aria-labelledby\":i,\"aria-describedby\":a}){let c=Aa(),u=(0,wst.useRef)(null);if(!t)return null;let d=(0,xH.jsx)(\"div\",{className:be(c,Qd.modal,\"fixed inset-0 flex items-center justify-center\",\"bg-black/50 transition-opacity duration-200\",\"fade-in animate-in duration-200\"),\"data-portal-origin\":\"true\",children:(0,xH.jsx)(cw,{active:t,children:(0,xH.jsx)(sw,{onDismiss:r,children:(0,xH.jsx)(\"div\",{\"aria-describedby\":a,\"aria-label\":o,\"aria-labelledby\":i,\"aria-modal\":n,className:\"zoom-in-95 animate-in duration-200\",\"data-testid\":\"ockDialog\",onClick:p=>p.stopPropagation(),onKeyDown:p=>{(p.key===\"Enter\"||p.key===\" \")&&p.stopPropagation()},ref:u,role:\"dialog\",children:e})})})});return(0,xst.createPortal)(d,document.body)}f();var EH=he(ze(),1);function tP({className:e=tn.foreground}){return(0,EH.jsxs)(\"svg\",{\"aria-label\":\"ock-closeSvg\",width:\"12\",height:\"12\",viewBox:\"0 0 16 16\",fill:\"currentColor\",xmlns:\"http://www.w3.org/2000/svg\",className:e,children:[(0,EH.jsx)(\"title\",{children:\"Close\"}),(0,EH.jsx)(\"path\",{d:\"M2.14921 1L1 2.1492L6.8508 8L1 13.8508L2.1492 15L8 9.1492L13.8508 15L15 13.8508L9.14921 8L15 2.1492L13.8508 1L8 6.8508L2.14921 1Z\"})]})}f();var nP=he(ze(),1),ene=(0,nP.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 146 146\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-label\":\"Coinbase Wallet Logo\",children:[(0,nP.jsx)(\"title\",{children:\"Coinbase Wallet Logo\"}),(0,nP.jsx)(\"rect\",{width:\"146\",height:\"146\",fill:\"#0052FF\"}),(0,nP.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M21.9 73C21.9 102.053 45.1466 125.3 74.2 125.3C103.253 125.3 126.5 102.053 126.5 73C126.5 43.9466 103.253 20.7 74.2 20.7C45.1466 20.7 21.9 43.9466 21.9 73ZM60.5 54.75C58.5673 54.75 57 56.3173 57 58.25V87.75C57 89.6827 58.5673 91.25 60.5 91.25H87.9C89.8327 91.25 91.4 89.6827 91.4 87.75V58.25C91.4 56.3173 89.8327 54.75 87.9 54.75H60.5Z\",fill:\"white\"})]});f();var rP=he(ze(),1),Ast=(0,rP.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 307.5 306\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-labelledby\":\"frameWallet\",children:[(0,rP.jsx)(\"title\",{id:\"frameWalletTitle\",children:\"Frame Wallet Logo\"}),(0,rP.jsx)(\"rect\",{width:\"100%\",height:\"100%\",fill:\"#28272a\"}),(0,rP.jsx)(\"path\",{fill:\"#00d2be\",transform:\"translate(77, 76.5)\",d:\"M145.1,75.6V17.6c0-5.1-4.2-9.3-9.3-9.3h-58.1c-.6,0-1.1-.2-1.6-.6l-7-7c-.4-.4-1-.7-1.6-.7H9.3C4.2,0,0,4.1,0,9.3h0v58c0,.6.2,1.1.6,1.6l7,7c.4.4.7,1,.7,1.6v58c0,5.1,4.2,9.3,9.3,9.3h58.2c.6,0,1.1.2,1.6.6l7,7c.4.4,1,.6,1.6.6h58.2c5.1,0,9.3-4.1,9.3-9.3h0v-58c0-.6-.2-1.1-.6-1.6l-7-7c-.5-.4-.8-.9-.8-1.5ZM105.6,106.6h-57.7c-.7,0-1.3-.6-1.3-1.3v-57.6c0-.7.6-1.3,1.3-1.3h57.7c.7,0,1.3.6,1.3,1.3v57.6c.1.7-.5,1.3-1.3,1.3Z\"})]});f();var tl=he(ze(),1),_st=(0,tl.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlSpace:\"preserve\",viewBox:\"0 0 204.8 192.4\",width:\"100%\",height:\"100%\",role:\"img\",\"aria-hidden\":\"true\",children:[(0,tl.jsx)(\"title\",{children:\"MetaMask Logo\"}),(0,tl.jsx)(\"style\",{children:\".st1{fill:#f5841f}.st2{fill:#e27625}.st3{fill:#d7c1b3}.st4{fill:#2f343b}.st5{fill:#cc6228}.st7{fill:#763e1a}\"}),(0,tl.jsx)(\"path\",{id:\"MM_Head_background__x28_Do_not_edit_x29_\",d:\"m167.4 96.1 6.9-8.1-3-2.2 4.8-4.4-3.7-2.8 4.8-3.6-3.1-2.4 5-24.4-7.6-22.6m0 0-48.8 18.1H82L33.2 25.6l.3.2-.3-.2-7.6 22.6 5.1 24.4-3.2 2.4 4.9 3.6-3.7 2.8 4.8 4.4-3 2.2 6.9 8.1-10.5 32.4 9.7 33.1 34.1-9.4v-.1.1l6.6 5.4 13.5 9.2h23.1l13.5-9.2 6.6-5.4 34.2 9.4 9.8-33.1-10.6-32.4m-96.7 56\",className:\"st1\"}),(0,tl.jsxs)(\"g\",{id:\"Logos\",children:[(0,tl.jsx)(\"path\",{d:\"m171.5 25.6-59.9 44.1 11.1-26zM33.2 25.6l59.4 44.5L82 43.7zM150 127.9l-16 24.2 34.2 9.4 9.8-33.1zM26.9 128.4l9.7 33.1 34.1-9.4-15.9-24.2z\",className:\"st2\"}),(0,tl.jsx)(\"path\",{d:\"m68.9 86.9-9.5 14.3 33.8 1.5-1.1-36.2zM135.9 86.9l-23.6-20.8-.7 36.6 33.8-1.5zM70.7 152.1l20.5-9.8-17.7-13.6zM113.6 142.3l20.4 9.8-2.8-23.4z\",className:\"st2\"}),(0,tl.jsx)(\"path\",{d:\"m134 152.1-20.4-9.8 1.7 13.2-.2 5.6zM70.7 152.1l19 9-.1-5.6 1.6-13.2z\",className:\"st3\"}),(0,tl.jsx)(\"path\",{d:\"M90 119.9 73.1 115l12-5.5zM114.7 119.9l5-10.4 12 5.5z\",className:\"st4\"}),(0,tl.jsx)(\"path\",{d:\"m70.7 152.1 3-24.2-18.9.5zM131.1 127.9l2.9 24.2 16-23.7zM145.4 101.2l-33.8 1.5 3.1 17.2 5-10.4 12 5.5zM73.1 115l12-5.5 4.9 10.4 3.2-17.2-33.8-1.5z\",className:\"st5\"}),(0,tl.jsx)(\"path\",{d:\"m59.4 101.2 14.1 27.5-.4-13.7zM131.7 115l-.5 13.7 14.2-27.5zM93.2 102.7 90 119.9l4 20.4.9-26.8zM111.6 102.7l-1.7 10.7.8 26.9 4-20.4z\",className:\"st2\"}),(0,tl.jsx)(\"path\",{d:\"m114.7 119.9-4 20.4 2.9 2 17.6-13.6.5-13.7zM73.1 115l.4 13.7 17.7 13.6 2.8-2-4-20.4z\",className:\"st1\"}),(0,tl.jsx)(\"path\",{d:\"m115.1 161.1.2-5.6-1.6-1.3H91l-1.4 1.3.1 5.6-19-9 6.6 5.4 13.5 9.3h23.1l13.5-9.3 6.6-5.4z\",style:{fill:\"#c0ad9e\"}}),(0,tl.jsx)(\"path\",{d:\"m113.6 142.3-2.9-2H94l-2.8 2-1.6 13.2 1.4-1.3h22.7l1.6 1.3z\",className:\"st4\"}),(0,tl.jsx)(\"path\",{d:\"m174.1 72.6 5-24.4-7.6-22.6-57.9 42.6 22.3 18.7 31.5 9.2 6.9-8.1-3-2.2 4.8-4.3-3.7-2.9 4.8-3.6zM25.6 48.2l5.1 24.4-3.2 2.4 4.8 3.7-3.7 2.8 4.8 4.3-3 2.2 7 8.1 31.5-9.2 22.3-18.7-58-42.6z\",className:\"st7\"}),(0,tl.jsx)(\"path\",{d:\"m167.4 96.1-31.5-9.2 9.5 14.3-14.2 27.5 18.8-.3h28zM68.9 86.9l-31.5 9.2-10.5 32.3h27.9l18.7.3-14.1-27.5zM111.6 102.7l2-34.5 9.1-24.5H82l9.2 24.5 2 34.5.8 10.8v26.8h16.7l.1-26.8z\",className:\"st1\"})]})]});f();var uw=he(ze(),1),Sst=(0,uw.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 146 146\",width:\"100%\",height:\"100%\",role:\"img\",\"aria-label\":\"Phantom Logo\",children:[(0,uw.jsx)(\"title\",{children:\"Phantom Logo\"}),(0,uw.jsxs)(\"g\",{clipPath:\"url(#clip0_phantom)\",children:[(0,uw.jsx)(\"rect\",{width:\"146\",height:\"146\",rx:\"31.3\",fill:\"#AB9FF2\"}),(0,uw.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M62.92 94.85C57.19 103.66 47.58 114.75 34.79 114.75C28.76 114.75 22.95 112.28 22.95 101.45C22.95 73.97 60.51 31.37 95.38 31.37C115.19 31.37 123.11 45.13 123.11 60.77C123.11 80.81 110.11 103.74 97.15 103.74C93.05 103.74 91.06 101.45 91.06 97.91C91.06 96.98 91.21 95.98 91.52 94.85C87.11 102.41 78.57 109.41 70.6 109.41C64.75 109.41 61.83 105.85 61.83 100.63C61.83 98.77 62.22 96.82 62.92 94.85ZM110.03 60.23C110.03 64.75 107.36 67.03 104.37 67.03C101.31 67.03 98.65 64.75 98.65 60.23C98.65 55.66 101.31 53.38 104.37 53.38C107.36 53.38 110.03 55.66 110.03 60.23ZM92.96 60.23C92.96 64.75 90.29 67.03 87.3 67.03C84.24 67.03 81.58 64.75 81.58 60.23C81.58 55.66 84.24 53.38 87.3 53.38C90.29 53.38 92.96 55.66 92.96 60.23Z\",fill:\"#FFFDF8\"})]}),(0,uw.jsx)(\"defs\",{children:(0,uw.jsx)(\"clipPath\",{id:\"clip0_phantom\",children:(0,uw.jsx)(\"rect\",{width:\"146\",height:\"146\",fill:\"white\"})})})]});f();var lw=he(ze(),1),Tst=(0,lw.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-label\":\"Rabby Wallet Logo\",children:[(0,lw.jsx)(\"title\",{children:\"Rabby Wallet Logo\"}),(0,lw.jsx)(\"rect\",{width:\"12\",height:\"12\",rx:\"3\",fill:\"#EBEDFB\"}),(0,lw.jsxs)(\"g\",{transform:\"translate(0, 0.5) scale(1.1)\",children:[(0,lw.jsx)(\"path\",{d:\"M9.5721 5.7499C9.8866 5.0840 8.1892 3.2154 6.6954 2.3823C5.7598 1.7563 4.7717 1.8401 4.5853 2.1245C4.1549 2.7226 6.0967 3.2520 7.3950 3.8558C7.1472 3.9764 6.8946 4.1838 6.7517 4.4371C6.2874 3.9280 5.2613 3.5014 4.1590 3.8558C3.4854 4.1008 2.7626 4.6852 2.5094 5.5135C2.4467 5.4869 2.3767 5.4710 2.2998 5.4710C2.0064 5.4710 1.7717 5.7096 1.7717 6.0073C1.7717 6.3050 2.0064 6.5436 2.2998 6.5436C2.3507 6.5436 2.5170 6.5076 2.5170 6.5076L4.7717 6.5245C3.9726 8.2040 3.2103 8.4080 3.2103 8.6630C3.2103 8.9180 3.9180 8.8361 4.2186 8.7263C5.7352 8.2146 7.0660 6.6879 7.2942 6.2246C8.3475 6.3688 9.2166 6.3847 9.5721 5.7499Z\",fill:\"#8697FF\"}),(0,lw.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M7.3944 3.8557C7.3945 3.8557 7.3946 3.8558 7.3947 3.8558C7.4548 3.8352 7.4461 3.7506 7.4322 3.6805C7.3994 3.5201 6.7746 2.9261 6.2170 2.6612C5.5215 2.2965 4.9374 2.3152 4.8514 2.4833C4.9937 2.8066 5.7640 3.1063 6.5395 3.4180C6.8882 3.5549 7.2351 3.6939 7.3944 3.8557C7.3944 3.8558 7.3944 3.8558 7.3944 3.8557Z\",fill:\"#8697FF\"}),(0,lw.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M6.2552 7.0712C6.0818 7.0112 5.8933 6.9557 5.6818 6.9061C5.9029 6.5393 5.9510 5.9690 5.7525 5.6028C5.4532 5.1042 5.0556 4.8282 4.2115 4.8282C3.7200 4.8282 2.4599 4.9821 2.4356 6.0102C2.4331 6.1179 2.4356 6.2153 2.4439 6.3080L4.7714 6.5241C4.4672 6.7734 4.1652 7.1284 3.9000 7.4078C4.2305 7.4836 4.4899 7.5487 4.6998 7.6068C4.8768 7.6612 5.0481 7.7126 5.2313 7.7649C5.5162 7.5397 5.8350 7.3024 6.2552 7.0712Z\",fill:\"#465EED\"}),(0,lw.jsx)(\"path\",{d:\"M2.3571 6.1987C2.4479 6.9744 2.9092 7.2696 3.8618 7.3599C4.8144 7.4503 5.3088 7.3884 5.9936 7.4515C6.5898 7.5047 7.0868 7.7870 7.2760 7.6875C7.4406 7.5982 7.3425 7.2733 7.1116 7.0716C6.8062 6.7917 6.4008 6.6022 5.6997 6.5353C5.8437 6.1454 5.8044 5.5937 5.6040 5.2915C5.3096 4.8564 4.7516 4.6586 3.9000 4.7439C3.2649 4.8316 2.6828 5.2346 2.3571 6.1987Z\",fill:\"#6277F1\"})]})]});f();var AH=he(ze(),1);var Cst=(0,AH.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 2500 2500\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:be(\"text-foreground\"),\"aria-labelledby\":\"trustWallet\",children:[(0,AH.jsx)(\"title\",{id:\"trustWalletTitle\",children:\"Trust Wallet Logo\"}),(0,AH.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M84.1,426.3C-1,593.5-1,812.7-1,1250c0,438.4,0,656.5,85.1,823.7c75.1,147.1,195.2,266.2,341.3,341.3   C592.5,2500,811.7,2500,1249,2500c438.4,0,656.5,0,823.7-85.1c147.1-75.1,266.2-195.2,341.3-341.3   c85.1-167.1,85.1-386.3,85.1-823.7c0-438.4,0-656.5-85.1-823.7c-75.1-147.1-195.2-266.2-341.3-341.3C1905.5,0,1686.3,0,1249,0   C810.6,0,592.5,0,425.3,85.1C278.2,160.1,159.1,280.2,84.1,426.3z M1874.5,674.5c22,0,43,9,58,24c15,16,24,37,23,58   c-4,233.2-13,411.3-30,552.4c-16,141.1-41,246.2-78.1,330.3c-25,57-56,104.1-92.1,143.1c-49,53-105.1,91.1-166.1,127.1   c-26,16-53,31-82.1,47c-61,34-127.1,72.1-203.2,123.1c-27,18-63.1,18-90.1,0c-77.1-51-144.1-89.1-205.2-124.1c-14-8-27-15-40-23   c-71.1-41-136.1-81.1-192.2-138.1c-38-38-70.1-83.1-96.1-138.1c-35-73.1-59-161.1-77.1-274.2c-23-152.1-35-351.3-39-627.5   c0-21,8-43,23-58s36-24,58-24h34c104.1,0,332.3-10,530.4-164.1c29-23,70.1-23,100.1,0c198.2,154.1,426.3,164.1,530.4,164.1h34   V674.5z M1692.4,1588.3c25-52,47-125.1,63.1-229.2c19-124.1,31-293.2,36-523.4c-122.1-4-331.3-27-531.4-161.1   c-200.2,134.1-409.3,157.1-530.4,161.1c4,190.2,13,338.3,27,454.4c16,132.1,38,221.2,66.1,284.2c18,42,39,72.1,63.1,98.1   c32,36,73.1,65.1,129.1,98.1c23,14,49,28,77.1,44c50,28,106.1,60,170.1,100.1c62-40,118.1-71.1,167.1-99.1c15-8,29-16,42-24   c69.1-39,120.1-72.1,157.1-111.1c25-26,46-55,65.1-94.1L1692.4,1588.3z\",fill:\"#3375BB\"})]});var u5=he($e(),1);f();function rXt(e){var t,n,r,o;if(typeof window>\"u\")return!1;if(!window.ethereum)return e===\"phantom\"?!!((n=(t=window.phantom)==null?void 0:t.ethereum)!=null&&n.isPhantom):!1;switch(e){case\"phantom\":return!!((o=(r=window.phantom)==null?void 0:r.ethereum)!=null&&o.isPhantom)||!!window.ethereum.isPhantom;case\"rabby\":return!!window.ethereum.isRabby;case\"trust\":return!!window.ethereum.isTrust||!!window.ethereum.isTrustWallet;case\"frame\":return!!window.ethereum.isFrame;default:return!1}}var oXt={phantom:\"https://phantom.app/download\",rabby:\"https://rabby.io\",trust:\"https://trustwallet.com/download\",frame:\"https://frame.sh\"};function iXt(e){let t=oXt[e];return t?(window.open(t,\"_blank\",\"noopener,noreferrer\"),!0):!1}function tne(e){let t=rXt(e);return t||iXt(e),t}f();var _H=he(ze(),1);function Rst(){var e,t;let n=Rte(),o=(t=(e=Co().config)==null?void 0:e.appearance)==null?void 0:t.mode;return(0,_H.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",fill:\"none\",\"aria-label\":\"Base Account logo\",children:[(0,_H.jsx)(\"title\",{children:\"Base Account logo\"}),(0,_H.jsx)(\"path\",{fill:o===\"dark\"||o===\"auto\"&&n===\"dark\"?\"#FFF\":\"#00F\",d:\"M0 2.014c0-.433 0-.65.082-.816A.8.8 0 0 1 .448.832C.615.75.831.75 1.264.75h13.472c.433 0 .65 0 .816.082a.8.8 0 0 1 .366.366c.082.167.082.383.082.816v13.472c0 .433 0 .65-.082.816a.8.8 0 0 1-.366.366c-.167.082-.383.082-.816.082H1.264c-.433 0-.65 0-.816-.082a.8.8 0 0 1-.366-.366C0 16.135 0 15.919 0 15.486V2.014Z\"})]})}function qwe({className:e,isOpen:t,onClose:n,onError:r}){var o,i,a,c,u,d;let{connect:p}=BD(),{config:h}=Co(),g=((o=h?.appearance)==null?void 0:o.logo)??void 0,y=((i=h?.appearance)==null?void 0:i.name)??void 0,v=((a=h?.wallet)==null?void 0:a.privacyUrl)??void 0,x=((c=h?.wallet)==null?void 0:c.termsUrl)??void 0,R=((u=h?.wallet)==null?void 0:u.supportedWallets)??{rabby:!1,trust:!1,frame:!1},S=((d=h?.wallet)==null?void 0:d.signUpEnabled)??!0,M=(0,u5.useCallback)(()=>{try{p({connector:BL({appName:y,appLogoUrl:g})}),n()}catch(re){console.error(\"Base Account connection error:\",re),r&&r(re instanceof Error?re:new Error(\"Failed to connect wallet\"))}},[y,g,p,n,r]),P=(0,u5.useCallback)(()=>{try{let re=sS({preference:\"all\",appName:y,appLogoUrl:g});p({connector:re}),n()}catch(re){console.error(\"Coinbase Wallet connection error:\",re),r&&r(re instanceof Error?re:new Error(\"Failed to connect wallet\"))}},[y,g,p,n,r]),z=(0,u5.useCallback)(()=>{try{let re=XU({dappMetadata:{name:y||\"OnchainKit App\",url:window.location.origin,iconUrl:g}});p({connector:re}),n()}catch(re){console.error(\"MetaMask connection error:\",re),r?.(re instanceof Error?re:new Error(\"Failed to connect wallet\"))}},[p,n,r,y,g]),V=(0,u5.useCallback)(()=>{try{if(!tne(\"phantom\")){n();return}let re=G0({target:\"phantom\"});p({connector:re}),n()}catch(re){console.error(\"Phantom connection error:\",re),r?.(re instanceof Error?re:new Error(\"Failed to connect wallet\"))}},[p,n,r]),Q=(0,u5.useCallback)(()=>{try{if(!tne(\"rabby\")){n();return}let re=G0({target:\"rabby\"});p({connector:re}),n()}catch(re){console.error(\"Rabby connection error:\",re),r?.(re instanceof Error?re:new Error(\"Failed to connect wallet\"))}},[p,n,r]),$=(0,u5.useCallback)(()=>{try{if(!tne(\"trust\")){n();return}let re=G0({target:\"trust\"});p({connector:re}),n()}catch(re){console.error(\"Trust Wallet connection error:\",re),r?.(re instanceof Error?re:new Error(\"Failed to connect wallet\")),n()}},[p,n,r]),oe=(0,u5.useCallback)(()=>{var re;try{if(!((re=window.ethereum)!=null&&re.isFrame)){window.open(\"https://frame.sh/download\",\"_blank\"),n();return}let q=G0();p({connector:q}),n()}catch(q){console.error(\"Frame Wallet connection error:\",q),r?.(q instanceof Error?q:new Error(\"Failed to connect wallet\")),n()}},[p,n,r]),J=[{id:\"base-account\",name:\"Base\",icon:(0,ca.jsx)(Rst,{}),connector:M,enabled:!0},{id:\"coinbase\",name:\"Coinbase Wallet\",icon:ene,connector:P,enabled:!0},{id:\"metamask\",name:\"MetaMask\",icon:_st,connector:z,enabled:!0},{id:\"phantom\",name:\"Phantom\",icon:Sst,connector:V,enabled:!0},{id:\"rabby\",name:\"Rabby\",icon:Tst,connector:Q,enabled:R.rabby===!0},{id:\"trust\",name:\"Trust Wallet\",icon:Cst,connector:$,enabled:R.trust===!0},{id:\"frame\",name:\"Frame\",icon:Ast,connector:oe,enabled:R.frame===!0}].filter(re=>re.enabled);return(0,ca.jsx)(Est,{isOpen:t,onClose:n,\"aria-label\":\"Connect Wallet\",children:(0,ca.jsxs)(\"div\",{\"data-testid\":\"ockModalOverlay\",className:be(bt.lineDefault,bt.radius,An.default,\"w-[22rem] p-6 pb-4\",\"relative flex flex-col items-center gap-4\",e),children:[(0,ca.jsx)(\"button\",{type:\"button\",onClick:n,className:be(Qt.default,bt.radius,bt.default,\"absolute top-4 right-4\",\"flex items-center justify-center p-1\",\"transition-colors duration-200\"),\"aria-label\":\"Close modal\",children:(0,ca.jsx)(\"div\",{className:be(\"flex h-4 w-4 items-center justify-center\"),children:(0,ca.jsx)(tP,{})})}),(g||y)&&(0,ca.jsxs)(\"div\",{className:\"flex w-full flex-col items-center gap-2 py-3\",children:[g&&(0,ca.jsx)(\"div\",{className:be(bt.radius,\"h-14 w-14 overflow-hidden\"),children:(0,ca.jsx)(\"img\",{src:g,alt:`${y||\"App\"} icon`,className:\"h-full w-full object-cover\"})}),y&&(0,ca.jsx)(\"h2\",{className:be(rt.headline,ct.foreground,\"text-center\"),children:y})]}),(0,ca.jsxs)(\"div\",{className:\"flex w-full flex-col gap-3\",children:[S&&(0,ca.jsxs)(\"button\",{type:\"button\",onClick:P,className:be(bt.radius,rt.body,Qt.alternate,ct.foreground,\"flex items-center justify-between px-4 py-3 text-left\"),children:[\"Sign up\",(0,ca.jsx)(\"div\",{className:\"h-4 w-4\",children:Nte})]}),(0,ca.jsxs)(\"div\",{className:\"relative\",children:[S&&(0,ca.jsx)(\"div\",{className:\"absolute inset-0 flex items-center\",children:(0,ca.jsx)(\"div\",{className:be(bt.lineDefault,\"w-full border-[0.5px]\")})}),(0,ca.jsx)(\"div\",{className:\"relative flex justify-center\",children:(0,ca.jsx)(\"span\",{className:be(An.default,ct.foregroundMuted,rt.legal,\"px-2\"),children:S?\"or continue with an existing wallet\":\"Connect your wallet\"})})]}),J.map(re=>(0,ca.jsxs)(\"button\",{type:\"button\",onClick:re.connector,className:be(bt.radius,An.default,rt.body,Qt.alternate,ct.foreground,\"flex items-center justify-between px-4 py-3 text-left\"),children:[re.name,(0,ca.jsx)(\"div\",{className:\"-mr-0.5 flex h-4 w-4 items-center justify-center\",children:re.icon})]},re.id))]}),(0,ca.jsxs)(\"div\",{className:be(ct.foregroundMuted,rt.legal,\"flex flex-col items-center justify-center gap-1 px-4\",\"mt-4 text-center\"),children:[(0,ca.jsx)(\"span\",{className:\"font-normal text-[10px] leading-[13px]\",children:\"By connecting a wallet, you agree to our\"}),(0,ca.jsxs)(\"span\",{className:\"font-normal text-[10px] leading-[13px]\",children:[x&&(0,ca.jsx)(\"a\",{href:x,className:be(ct.primary,\"hover:underline\"),target:\"_blank\",rel:\"noopener noreferrer\",tabIndex:0,children:\"Terms of Service\"}),\" \",x&&v&&\"and\",\" \",v&&(0,ca.jsx)(\"a\",{href:v,className:be(ct.primary,\"hover:underline\"),target:\"_blank\",rel:\"noopener noreferrer\",tabIndex:0,children:\"Privacy Policy\"}),\".\"]})]})]})})}f();var Lst=he(ze(),1);f();var nne=he($e(),1),aXt={sm:\"(max-width: 640px)\",md:\"(min-width: 641px) and (max-width: 768px)\",lg:\"(min-width: 769px) and (max-width: 1023px)\",xl:\"(min-width: 1024px) and (max-width: 1279px)\",\"2xl\":\"(min-width: 1280px)\"};function rne(){let[e,t]=(0,nne.useState)(void 0);return(0,nne.useEffect)(()=>{let n=()=>{let o=Object.entries(aXt);for(let[i,a]of o)if(window.matchMedia(a).matches)return i;return\"md\"};t(n());let r=()=>{t(n())};return window.addEventListener(\"resize\",r),()=>window.removeEventListener(\"resize\",r)},[]),e}var fc=he($e(),1);f();function Ist(e,t){return e?{container:t?\"fade-out slide-out-to-bottom-1.5 animate-out fill-mode-forwards ease-in-out\":\"fade-out slide-out-to-top-1.5 animate-out fill-mode-forwards ease-in-out\",content:\"\"}:{container:t?\"fade-in slide-in-from-bottom-1.5 animate-in duration-300 ease-out\":\"fade-in slide-in-from-top-1.5 animate-in duration-300 ease-out\",content:t?\"fade-in slide-in-from-bottom-2.5 animate-in fill-mode-forwards duration-300 ease-out\":\"fade-in slide-in-from-top-2.5 animate-in fill-mode-forwards duration-300 ease-out\"}}f();f();f();ra();var Ost={name:\"ETH\",address:\"\",symbol:\"ETH\",decimals:18,image:\"https://wallet-api-production.s3.amazonaws.com/uploads/tokens/eth_288.png\",chainId:dr.id},l8r={name:\"ETH\",address:\"\",symbol:\"ETH\",decimals:18,image:\"https://wallet-api-production.s3.amazonaws.com/uploads/tokens/eth_288.png\",chainId:Ya.id},kst={name:\"USDC\",address:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",symbol:\"USDC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/44/2b/442b80bd16af0c0d9b22e03a16753823fe826e5bfd457292b55fa0ba8c1ba213-ZWUzYjJmZGUtMDYxNy00NDcyLTg0NjQtMWI4OGEwYjBiODE2\",chainId:dr.id},d8r={name:\"USDC\",address:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",symbol:\"USDC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/44/2b/442b80bd16af0c0d9b22e03a16753823fe826e5bfd457292b55fa0ba8c1ba213-ZWUzYjJmZGUtMDYxNy00NDcyLTg0NjQtMWI4OGEwYjBiODE2\",chainId:Ya.id},f8r={name:\"DEGEN\",address:\"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed\",symbol:\"DEGEN\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/3b/bf/3bbf118b5e6dc2f9e7fc607a6e7526647b4ba8f0bea87125f971446d57b296d2-MDNmNjY0MmEtNGFiZi00N2I0LWIwMTItMDUyMzg2ZDZhMWNm\",chainId:dr.id},p8r={name:\"DAI\",address:\"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",symbol:\"DAI\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/92/13/9213e31b84c98a693f4c624580fdbe6e4c1cb550efbba15aa9ea68fd25ffb90c-ZTE1NmNjMGUtZGVkYi00ZDliLWI2N2QtNTY2ZWRjMmYwZmMw\",chainId:dr.id},h8r={name:\"WETH\",address:\"0x4200000000000000000000000000000000000006\",symbol:\"WETH\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/47/bc/47bc3593c2dec7c846b66b7ba5f6fa6bd69ec34f8ebb931f2a43072e5aaac7a8-YmUwNmRjZDUtMjczYy00NDFiLWJhZDUtMzgwNjFmYWM0Njkx\",chainId:dr.id},m8r={name:\"LBTC\",address:\"0xecAc9C5F704e954931349Da37F60E39f515c11c1\",symbol:\"LBTC\",decimals:8,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/a3/40/a340085995bc54eddbcb66bab87833a7089edd1513847c39fc1799cab9207db4-Zjk2YzQ2MmQtMTY2OS00YWQyLWFkMGQtMjQ3OGYzNzljMWY2\",chainId:dr.id},g8r={name:\"cbBTC\",address:\"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf\",symbol:\"cbBTC\",decimals:8,image:\"https://go.wallet.coinbase.com/static/CBBTCMedium.png\",chainId:dr.id},y8r={name:\"eUSD\",address:\"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",symbol:\"eUSD\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/bf/a4/bfa445583916854508ae5d88f9cca19cd5a0910d8c4d7cd9385eb40a597017d7-MDFhM2E0YmQtZGU3NS00Yzk3LWFlMzAtMzA1Y2UyYzU2ZGEy\",chainId:dr.id},b8r={name:\"EURC\",address:\"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",symbol:\"EURC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/54/f4/54f4216472dd25b1ffb5caf32cc0d81f645c84be166cd713f759a80f05a1418f-M2YxNTczYTItNjk3YS00N2FiLThkZjktYzBiYzExZTk1ZTFj\",chainId:dr.id};var Nst=400,Pst=352,Mst=[Ost,kst];function Dst(e){if(typeof window>\"u\")return{showAbove:!1,alignRight:!1};let t=window.innerHeight-e.bottom,n=window.innerWidth-e.left;return{showAbove:t<Nst,alignRight:n<Pst}}var sXt={},Bst=(0,fc.createContext)(sXt);function Kwe({children:e,isSponsored:t}){let{chain:n}=Co(),[r,o]=(0,fc.useState)(!1),[i,a]=(0,fc.useState)(!1),[c,u]=(0,fc.useState)(!1),[d,p]=(0,fc.useState)(!1),[h,g]=(0,fc.useState)(!1),y=(0,fc.useRef)(null),{address:v}=wr(),x=rne(),[R,S]=(0,fc.useState)(null),[M,P]=(0,fc.useState)(!1),z=(0,fc.useMemo)(()=>Ist(c,d),[c,d]),V=(0,fc.useCallback)(()=>{i&&u(!0)},[i]);(0,fc.useEffect)(()=>{if(i&&y?.current){let $=y.current.getBoundingClientRect(),oe=Dst($);p(oe.showAbove),g(oe.alignRight)}},[i]);let Q=(0,fc.useMemo)(()=>({address:v,chain:n,breakpoint:x,isConnectModalOpen:r,setIsConnectModalOpen:o,isSubComponentOpen:i,setIsSubComponentOpen:a,isSubComponentClosing:c,setIsSubComponentClosing:u,handleClose:V,connectRef:y,showSubComponentAbove:d,alignSubComponentRight:h,activeFeature:R,setActiveFeature:S,isActiveFeatureClosing:M,setIsActiveFeatureClosing:P,animations:z,isSponsored:t}),[v,n,x,r,i,c,V,d,h,R,M,z,t]);return(0,Lst.jsx)(Bst.Provider,{value:Q,children:e})}function vi(){return(0,fc.useContext)(Bst)}var cXt=(0,Zl.jsxs)(Zl.Fragment,{children:[(0,Zl.jsx)(ap,{className:\"h-6 w-6\"}),(0,Zl.jsx)(wh,{})]});function M1({children:e,className:t,text:n=\"Connect Wallet\",onConnect:r,disconnectedLabel:o}){var i,a;let{config:c={wallet:{display:void 0}}}=Co(),{setIsConnectModalOpen:u,isSubComponentOpen:d,setIsSubComponentOpen:p,handleClose:h}=vi(),{address:g,status:y,connector:v}=wr(),{connectors:x,connect:R,status:S}=BD(),{sendAnalytics:M}=_a(),[P,z]=(0,zs.useState)(!1),[V,Q]=(0,zs.useState)(!1),{connectWalletText:$}=(0,zs.useMemo)(()=>({connectWalletText:zs.Children.toArray(e).find(ip(Xte))}),[e]),oe=(0,zs.useMemo)(()=>zs.Children.map(e,B=>(0,zs.isValidElement)(B)&&B.type===Xte?null:B),[e]),J=v||x[0],re=S===\"pending\"||y===\"connecting\",q=(0,zs.useCallback)(()=>{d?h?.():p(!0)},[d,h,p]),K=(0,zs.useCallback)(()=>{Q(!1),u?.(!1)},[u]),U=(0,zs.useCallback)(()=>{Q(!0),u?.(!0),z(!0)},[u]),T=(0,zs.useCallback)(B=>{M(Jv.ConnectInitiated,{component:B})},[M]),k=(0,zs.useCallback)(B=>{let H=J?.name;M(Jv.ConnectSuccess,{address:B??\"\",walletProvider:H})},[M,J]),F=(0,zs.useCallback)((B,H)=>{let W=J?.name;M(Jv.ConnectError,{error:B,metadata:{connector:W,component:H}})},[M,J]);(0,zs.useEffect)(()=>{P&&y===\"connected\"&&r&&(r(),z(!1))},[y,P,r]),(0,zs.useEffect)(()=>{y===\"connected\"&&g&&J&&k(g)},[y,g,J,k]);let N=(0,zs.useCallback)(()=>{var B;if(((B=c?.wallet)==null?void 0:B.display)===\"modal\"){U(),z(!0),T(\"WalletModal\");return}T(\"ConnectWallet\"),R({connector:J},{onSuccess:()=>{r?.(),k(g)},onError:H=>{F(H.message,\"ConnectWallet\")}})},[(i=c?.wallet)==null?void 0:i.display,g,R,J,F,T,k,U,r]);return y===\"disconnected\"?(0,Zl.jsxs)(\"div\",{className:\"flex\",\"data-testid\":\"ockConnectWallet_Container\",children:[(0,Zl.jsx)(mst,{className:t,connectWalletText:$||o,onClick:N,text:n}),((a=c?.wallet)==null?void 0:a.display)===\"modal\"&&(0,Zl.jsx)(qwe,{isOpen:V,onClose:K})]}):re?(0,Zl.jsx)(\"div\",{className:\"flex\",\"data-testid\":\"ockConnectWallet_Container\",children:(0,Zl.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectAccountButtonInner\",className:be(Qt.primary,rt.headline,ct.inverse,\"inline-flex min-w-[153px] items-center justify-center rounded-xl px-4 py-3\",Qt.disabled,t),disabled:!0,children:(0,Zl.jsx)(Nm,{})})}):(0,Zl.jsx)(kte,{address:g,children:(0,Zl.jsx)(\"div\",{className:\"flex gap-4\",\"data-testid\":\"ockConnectWallet_Container\",children:(0,Zl.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectWallet_Connected\",className:be(Qt.secondary,bt.radius,ct.foreground,\"px-4 py-3\",d&&\"ock-bg-secondary-active hover:ock-bg-secondary-active\",t),onClick:q,children:(0,Zl.jsx)(\"div\",{className:\"flex items-center justify-center gap-2\",children:oe||cXt})})})})}f();var jst=he($e(),1);f();f();var Ust=he($e(),1);f();function oP({chainId:e}){let{isConnected:t}=wr(),{data:n,error:r}=vue({query:{enabled:t}});return(0,Ust.useMemo)(()=>r||!n||!n[e]?{}:n[e],[n,e,r])}var uXt=\"coinbaseWalletSDK\";function Fst(){var e;let{chain:t}=Co(),{connector:n}=wr(),r=oP({chainId:t.id});return n?.id===uXt&&((e=r.atomicBatch)==null?void 0:e.supported)===!0}f();var lXt=\"https://keys.coinbase.com/fund\";function Ywe(){let e=window.location.href,t=document.title;return`${lXt}?dappName=${encodeURIComponent(t)}&dappUrl=${encodeURIComponent(e)}&version=${encodeURIComponent(ZS)}&source=onchainkit`}f();f();var SH=\"https://pay.coinbase.com\",one=`${SH}/buy`,Hst=720,zst=460,iP=\"https://api.developer.coinbase.com/onramp/v1\",Zwe=3e3;function OR({projectId:e,originComponentName:t,...n}){let r=new URL(one);e!==void 0&&r.searchParams.append(\"appId\",e);for(let o of Object.keys(n)){let i=n[o];i!==void 0&&([\"string\",\"number\",\"boolean\"].includes(typeof i)?r.searchParams.append(o,i.toString()):r.searchParams.append(o,JSON.stringify(i)))}return t?r.searchParams.append(\"sdkVersion\",`onchainkit@${ZS}:${t}`):r.searchParams.append(\"sdkVersion\",`onchainkit@${ZS}`),r.searchParams.sort(),r.toString()}function Qwe({fiatCurrency:e,originComponentName:t}){let{projectId:n,chain:r}=Co(),{address:o,chain:i}=wr(),a=Fst(),c=i||r;return(0,jst.useMemo)(()=>{if(a)return Ywe();if(!(n===null||o===void 0))return OR({projectId:n,addresses:{[o]:[c.name.toLowerCase()]},fiatCurrency:e,originComponentName:t})},[a,n,o,c,e,t])}f();f();var dXt={sm:{width:\"24.67vw\",height:\"30.83vw\"},md:{width:\"29vw\",height:\"36.25vw\"},lg:{width:\"35vw\",height:\"43.75vw\"}},Wst=e=>{let{width:t,height:n}=dXt[e],r=280,o=350,i=g=>g/100*window.innerWidth,a=Math.max(r,Math.round(i(Number.parseFloat(t)))),c=Math.max(o,Math.round(i(Number.parseFloat(n)))),u=Math.round(window.innerWidth*.9),d=Math.round(window.innerHeight*.9),p=Math.min(a,u),h=Math.min(c,d);return{width:p,height:h}};function Jwe(e,t){return t?.includes(one)?{height:Hst,width:zst}:Wst(e)}function TH({className:e,disabled:t=!1,fundingUrl:n,hideIcon:r=!1,hideText:o=!1,openIn:i=\"popup\",popupSize:a=\"md\",rel:c,target:u,text:d=\"Fund\",successText:p=\"Success\",errorText:h=\"Something went wrong\",state:g=\"default\",fiatCurrency:y=\"USD\",onPopupClose:v,onClick:x}){let R=Aa(),S=Qwe({fiatCurrency:y,originComponentName:\"FundButton\"}),{address:M}=wr(),P=n??S,z=t||!P,V=!M,{startPopupMonitor:Q}=gat(v),{sendAnalytics:$}=_a(),oe=(0,cE.useCallback)(()=>{$(Kd.FundInitiated,{currency:y})},[$,y]),J=(0,cE.useCallback)(F=>{$(Kd.FundFailure,{error:F,metadata:{currency:y}})},[$,y]),re=(0,cE.useCallback)(F=>{if(F.preventDefault(),P){oe(),x?.();let{height:N,width:B}=Jwe(a,P),H=xwe({url:P,height:N,width:B,target:u});H?Q(H):J(\"Failed to open funding popup\")}},[P,a,u,x,Q,oe,J]),q=(0,cE.useMemo)(()=>g===\"error\"?An.error:Qt.primary,[g]),K=be(R,q,\"px-4 py-3 inline-flex items-center justify-center space-x-2\",{[Qt.disabled]:z},rt.headline,bt.radius,ct.inverse,e),U=(0,cE.useMemo)(()=>{if(r)return null;switch(g){case\"loading\":return\"\";case\"success\":return(0,xh.jsx)(H7,{fill:\"#F9FAFB\"});case\"error\":return(0,xh.jsx)(Ite,{fill:\"#F9FAFB\"});default:return(0,xh.jsx)(yat,{})}},[g,r]),T=(0,cE.useMemo)(()=>{switch(g){case\"loading\":return\"\";case\"success\":return p;case\"error\":return h;default:return d}},[g,p,h,d]),k=(0,cE.useMemo)(()=>g===\"loading\"?(0,xh.jsx)(Nm,{}):(0,xh.jsxs)(xh.Fragment,{children:[U&&(0,xh.jsx)(\"span\",{\"data-testid\":\"ockFundButtonIcon\",className:\"flex h-6 items-center\",children:U}),o||(0,xh.jsx)(\"span\",{\"data-testid\":\"ockFundButtonTextContent\",children:T})]}),[g,U,T,o]);return i===\"tab\"?(0,xh.jsx)(\"a\",{className:K,href:P,target:u??\"_blank\",rel:c,children:k}):V?(0,xh.jsx)(M1,{className:be(\"w-full\",e)}):(0,xh.jsx)(\"button\",{className:K,onClick:re,type:\"button\",disabled:z,\"data-testid\":\"ockFundButton\",children:k})}f();var Xd=he(ze(),1);f();var cP=he($e(),1);f();var Kst=he(ze(),1),js=he($e(),1);f();f();var ine=he($e(),1);function aP(e){let[t,n]=(0,ine.useState)(e),r=(0,ine.useCallback)(o=>{n(i=>{let a=i.statusName===\"error\"?(({error:c,code:u,message:d,...p})=>p)(i.statusData):i.statusData;return{statusName:o.statusName,statusData:{...a,...o.statusData}}})},[]);return[t,r]}var ane=he($e(),1),Vst=({onError:e,onSuccess:t,onStatus:n})=>{let[r,o]=aP({statusName:\"init\",statusData:null});return(0,ane.useEffect)(()=>{r.statusName===\"error\"&&e?.(r.statusData),r.statusName===\"transactionSuccess\"&&t?.(r.statusData),n?.(r)},[e,n,t,r,r.statusData,r.statusName]),(0,ane.useMemo)(()=>({lifecycleStatus:r,updateLifecycleStatus:o}),[r,o])};f();var sne=he($e(),1);f();f();function l5(e){return typeof e==\"string\"?e:Array.isArray(e)?e.map(t=>l5(t)):e&&e.constructor===Object?Object.keys(e).reduce((t,n)=>{let r=fXt(n);return t[r]=l5(e[n]),t},{}):e}function fXt(e){return e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}f();var sP=()=>{if(!im.apiKey)throw new Error(\"API Key Unset: Please set the API Key by providing it in the `OnchainKitProvider` or by manually calling `setOnchainKitConfig`. For more information, visit: https://portal.cdp.coinbase.com/products/onchainkit\");return im.apiKey};async function Xwe({purchaseCurrency:e,purchaseNetwork:t,paymentCurrency:n,paymentMethod:r,paymentAmount:o,country:i,subdivision:a,apiKey:c}){let u=c||sP(),p=await(await fetch(`${iP}/buy/quote`,{method:\"POST\",body:JSON.stringify({purchase_currency:e,purchase_network:t,payment_currency:n,payment_method:r,payment_amount:o,country:i,subdivision:a}),headers:{Authorization:`Bearer ${u}`}})).json();return l5(p)}var cne=({asset:e,currency:t,country:n,subdivision:r,setExchangeRate:o,onError:i})=>{let a=(0,sne.useCallback)(async()=>{try{let c=await Xwe({purchaseCurrency:e,paymentCurrency:t,paymentAmount:\"100\",paymentMethod:\"CARD\",country:n,subdivision:r});o(Number(c.purchaseAmount.value)/Number(c.paymentSubtotal.value))}catch(c){c instanceof Error?(console.error(\"Error fetching exchange rate:\",c),i?.({errorType:\"handled_error\",code:\"EXCHANGE_RATE_ERROR\",debugMessage:c.message})):(console.error(\"Unknown error fetching exchange rate:\",c),i?.({errorType:\"unknown_error\",code:\"EXCHANGE_RATE_ERROR\",debugMessage:JSON.stringify(c)}))}},[e,n,r,t,i,o]);return(0,sne.useMemo)(()=>({fetchExchangeRate:a}),[a])};f();var une=he($e(),1);f();var pXt=e=>[e.some(n=>n.id===\"ACH_BANK_ACCOUNT\")&&\"ACH\",e.some(n=>n.id===\"CARD\")&&\"debit\",\"cash\",\"crypto balance\"].filter(Boolean).join(\", \"),hXt=({limits:e})=>({id:\"\",name:\"Coinbase\",description:pXt(e),icon:\"coinbaseLogo\",minAmount:Math.min(...e.map(t=>Number(t.min))),maxAmount:Math.max(...e.map(t=>Number(t.max)))}),mXt=e=>[{id:\"APPLE_PAY\",name:\"Apple Pay\",icon:\"apple\"},{id:\"CARD\",name:\"Debit card\",icon:\"creditCard\"}].map(n=>{let r=e.limits.find(o=>o.id===n.id);return{...n,description:\"Up to $500/week. No sign up required.\",minAmount:Number(r?.min)||2,maxAmount:Number(r?.max)||500}}),Gst=(e,t,n)=>{let r=e.paymentCurrencies.find(a=>a.id===t);if(!r)return[];let o=hXt(r),i=[];return n===\"US\"&&t===\"USD\"&&(i=mXt(r)),[o,...i]};f();async function $we({country:e,subdivision:t,apiKey:n}){let r=n||sP(),o=`?country=${e}`;t&&(o=`${o}&subdivision=${t}`);let a=await(await fetch(`${iP}/buy/options${o}`,{method:\"GET\",headers:{Authorization:`Bearer ${r}`}})).json();return l5(a)}var qst=({country:e,subdivision:t,currency:n,setPaymentMethods:r,setIsPaymentMethodsLoading:o,onError:i})=>{let a=(0,une.useCallback)(async()=>{o(!0);try{let c=await $we({country:e,subdivision:t}),u=Gst(c,n,e);u.length===0&&(console.error(\"No payment methods found for the selected country and currency. See docs for more information: https://docs.cdp.coinbase.com/onramp/docs/api-configurations\"),i?.({errorType:\"handled_error\",code:\"NO_PAYMENT_METHODS\",debugMessage:\"No payment methods found for the selected country and currency. See docs for more information: https://docs.cdp.coinbase.com/onramp/docs/api-configurations\"})),r(u)}catch(c){c instanceof Error&&(console.error(\"Error fetching payment options:\",c),i?.({errorType:\"handled_error\",code:\"PAYMENT_METHODS_ERROR\",debugMessage:c.message}))}finally{o(!1)}},[e,t,n,r,o,i]);(0,une.useEffect)(()=>{a()},[])};var Yst=(0,js.createContext)(void 0);function e2e({children:e,asset:t,currency:n=\"USD\",headerText:r=`Buy ${t.toUpperCase()}`,buttonText:o,country:i,subdivision:a,inputType:c,onError:u,onStatus:d,onSuccess:p,presetAmountInputs:h}){let[g,y]=(0,js.useState)(),[v,x]=(0,js.useState)(c||\"fiat\"),[R,S]=(0,js.useState)(\"\"),[M,P]=(0,js.useState)(\"\"),[z,V]=(0,js.useState)(0),[Q,$]=(0,js.useState)(!0),[oe,J]=(0,js.useState)(\"default\"),[re,q]=(0,js.useState)([]),[K,U]=(0,js.useState)(!0),{lifecycleStatus:T,updateLifecycleStatus:k}=Vst({onError:u,onSuccess:p,onStatus:d}),{fetchExchangeRate:F}=cne({asset:t,currency:n,country:i,subdivision:a,setExchangeRate:V,onError:u}),{sendAnalytics:N}=_a(),B=(0,js.useCallback)((te,ne)=>{N(Kd.FundAmountChanged,{amount:te,currency:ne})},[N]),H=(0,js.useCallback)(te=>{N(Kd.FundOptionSelected,{option:te})},[N]),W=(0,js.useCallback)(te=>{let ne=Number.parseFloat(te);Number.isNaN(ne)||B(ne,n),S(te)},[n,B]),G=(0,js.useCallback)(te=>{H(te.id),y(te)},[H]),O=(0,js.useCallback)(async()=>{$(!0),await F(),$(!1)},[F]);(0,js.useEffect)(()=>{O()},[]),qst({country:i,subdivision:a,currency:n,setPaymentMethods:q,setIsPaymentMethodsLoading:U,onError:u});let j=el({asset:t,currency:n,selectedPaymentMethod:g,setSelectedPaymentMethod:G,fundAmountFiat:R,setFundAmountFiat:W,fundAmountCrypto:M,setFundAmountCrypto:P,selectedInputType:v,setSelectedInputType:x,exchangeRate:z,setExchangeRate:V,exchangeRateLoading:Q,setExchangeRateLoading:$,submitButtonState:oe,setSubmitButtonState:J,paymentMethods:re,setPaymentMethods:q,isPaymentMethodsLoading:K,setIsPaymentMethodsLoading:U,headerText:r,buttonText:o,country:i,subdivision:a,lifecycleStatus:T,updateLifecycleStatus:k,presetAmountInputs:h,onError:u});return(0,Kst.jsx)(Yst.Provider,{value:j,children:e})}function Ql(){let e=(0,js.useContext)(Yst);if(!e)throw new Error(\"useFundContext must be used within a FundCardProvider\");return e}f();f();function Zst({onMessage:e,allowedOrigin:t=SH,onValidateOrigin:n=()=>Promise.resolve(!0)}){let r=o=>{if(!gXt({event:o,allowedOrigin:t}))return;let{eventName:i,data:a}=JSON.parse(o.data);i===\"event\"&&(async()=>await n(o.origin)&&e(a))()};return window.addEventListener(\"message\",r),()=>{window.removeEventListener(\"message\",r)}}function gXt({event:e,allowedOrigin:t}){return!t||e.origin===t}function t2e({onEvent:e,onExit:t,onSuccess:n,host:r=SH}){return Zst({allowedOrigin:r,onMessage:i=>{let a=i;a.eventName===\"success\"&&n?.(a.data),a.eventName===\"exit\"&&t?.(a.error),e?.(a)}})}var Qst=()=>{let{setSubmitButtonState:e,updateLifecycleStatus:t}=Ql(),n=(0,cP.useCallback)(i=>{i.eventName===\"transition_view\"?t({statusName:\"transactionPending\",statusData:void 0}):i.eventName===\"error\"&&(t({statusName:\"error\",statusData:i.error}),e(\"error\"),setTimeout(()=>{e(\"default\")},Zwe))},[t,e]),r=(0,cP.useCallback)(i=>{t({statusName:\"transactionSuccess\",statusData:i}),e(\"success\"),setTimeout(()=>{e(\"default\")},Zwe)},[t,e]),o=(0,cP.useCallback)(()=>{e(\"default\"),t({statusName:\"exit\",statusData:void 0})},[t,e]);(0,cP.useEffect)(()=>{let i=t2e({onEvent:n,onExit:o,onSuccess:r});return()=>{i()}},[])};f();var rct=he(ze(),1);f();var dw=he(ze(),1);f();var lne=he($e(),1),yXt={baseFontSize:3.75,minScale:.01};function Jst(e,t,n,r,o,i={}){let{baseFontSize:a,minScale:c}={...yXt,...i},u=(0,lne.useCallback)(()=>{let d=e.current,p=t.current,h=n.current,g=r.current,y=o.current;if(!d||!p||!h||!g||!y)return;g.style.fontSize=`${a}rem`,h.style.fontSize=`${a}rem`;let v=g.clientWidth,x=d.clientWidth-y.clientWidth;if(h.style.width=`${v}px`,v>x){let R=x/v,S=Math.max(R,c);p.style.transform=`scale(${S})`,p.style.transformOrigin=\"left center\"}else p.style.transform=\"scale(1)\"},[a,c,e,t,n,r,o]);return(0,lne.useEffect)(()=>{let d=e.current;if(!d)return;let p=new ResizeObserver(u);return p.observe(d),()=>{p.disconnect()}},[e,u]),u}var Ng=he($e(),1);f();f();var D1=(e,t)=>{let n=String(e),r=n.indexOf(\".\"),o=n;return r!==-1&&n.length-r-1>t&&(o=n.substring(0,r+t+1)),o};var uP=he($e(),1),dne=({setFiatAmount:e,setCryptoAmount:t,selectedInputType:n,exchangeRate:r})=>{let o=(0,uP.useCallback)(c=>{let u=D1(c,2);e(u);let d=String(Number(u)*Number(r)),p=D1(d,8);t(d===\"0\"?\"\":p)},[r,e,t]),i=(0,uP.useCallback)(c=>{let u=D1(c,8);t(u);let d=String(Number(u)/Number(r)),p=D1(d,2);e(p===\"0\"?\"\":p)},[r,e,t]),a=(0,uP.useCallback)((c,u)=>{n===\"fiat\"?o(c):i(c),u?.(c)},[o,i,n]);return(0,uP.useMemo)(()=>({handleChange:a,handleFiatChange:o,handleCryptoChange:i}),[a,o,i])};f();function fne(e){return e===\"\"?!0:/^[0-9]*\\\\.?[0-9]*$/.test(e)}f();var $st=he(ze(),1),pne=he($e(),1);f();var lP=he($e(),1),Xst=(e,t)=>{let n=(0,lP.useRef)(e);return(0,lP.useLayoutEffect)(()=>{n.current=e}),(0,lP.useMemo)(()=>{let r,o=(i,a,...c)=>{clearTimeout(r),r=setTimeout(()=>{i(...c)},a)};return(...i)=>o(n.current,t,...i)},[t])};var kR=(0,pne.forwardRef)(({\"aria-label\":e,className:t,delayMs:n=0,disabled:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:c,setValue:u,inputMode:d,value:p,inputValidator:h=()=>!0},g)=>{let y=Xst(x=>{i(x)},n),v=(0,pne.useCallback)(x=>{let R=x.target.value;h(R)&&(u?.(R),n>0?y(R):i(R))},[i,y,n,u,h]);return(0,$st.jsx)(\"input\",{\"aria-label\":e,\"data-testid\":\"ockTextInput_Input\",ref:g,type:\"text\",className:t,inputMode:d,placeholder:c,value:p,onBlur:o,onChange:v,onFocus:a,disabled:r,autoComplete:\"off\",\"data-1p-ignore\":!0})});kR.displayName=\"TextInput\";f();var ect=he(ze(),1);var tct=he($e(),1),n2e=(0,tct.forwardRef)(({label:e,className:t},n)=>(0,ect.jsx)(\"span\",{ref:n,className:be(rt.body,ct.disabled,\"flex items-center justify-center bg-transparent\",\"text-6xl leading-none outline-none\",t),\"data-testid\":\"ockCurrencySpan\",children:e}));n2e.displayName=\"CurrencyLabel\";function hne({fiatAmount:e,cryptoAmount:t,asset:n,selectedInputType:r,currency:o,setFiatAmount:i,setCryptoAmount:a,exchangeRate:c,delayMs:u,className:d,textClassName:p}){let h=(0,Ng.useRef)(null),g=(0,Ng.useRef)(null),y=(0,Ng.useRef)(null),v=(0,Ng.useRef)(null),x=(0,Ng.useRef)(null),R=r===\"fiat\"?o:n,S=r===\"fiat\"?e:t,M=Jst(h,g,y,v,x),{handleChange:P}=dne({setFiatAmount:i,setCryptoAmount:a,selectedInputType:r,exchangeRate:c}),z=(0,Ng.useCallback)($=>{P($,()=>{y.current&&y.current.focus()})},[P]);(0,Ng.useEffect)(()=>{M()},[S,M]);let V=(0,Ng.useRef)(r);(0,Ng.useEffect)(()=>{V.current!==r&&(V.current=r,Q())},[r]);let Q=()=>{y.current&&y.current.focus()};return(0,dw.jsxs)(\"div\",{ref:h,\"data-testid\":\"ockAmountInputContainer\",className:be(\"relative h-24 cursor-text\",d),children:[(0,dw.jsx)(\"div\",{className:\"absolute inset-x-0 top-6 bottom-4\",children:(0,dw.jsx)(\"div\",{className:\"relative flex h-14\",children:(0,dw.jsxs)(\"div\",{ref:g,className:\"flex flex-shrink-0 items-center\",children:[(0,dw.jsx)(kR,{className:be(rt.body,\"border-none bg-transparent\",\"text-6xl leading-none outline-none\",\"[appearance:textfield]\",\"[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none\",\"[&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none\",p),value:S,onChange:z,delayMs:u,inputValidator:fne,ref:y,inputMode:\"decimal\",placeholder:\"0\"}),(0,dw.jsx)(\"div\",{className:\"ml-1\",children:(0,dw.jsx)(n2e,{ref:x,label:R,className:p})})]})})}),(0,dw.jsx)(\"span\",{\"data-testid\":\"ockHiddenSpan\",ref:v,className:be(rt.body,\"border-none bg-transparent\",\"text-6xl leading-none outline-none\",\"pointer-events-none absolute whitespace-nowrap opacity-0\",\"left-[-99999px]\"),children:S?`${S}.`:\"0.\"})]})}f();var uE=he($e(),1),nct=(e,t)=>{let n=(0,uE.useRef)(0),r=(0,uE.useRef)(),o=(0,uE.useRef)(),i=(0,uE.useRef)(e);return i.current=e,(0,uE.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),(0,uE.useCallback)((...a)=>{let c=Date.now(),u=c-n.current;u>=t?(i.current(...a),n.current=c):r.current?o.current=a:r.current||(o.current=a,r.current=setTimeout(()=>{o.current&&(i.current(...o.current),n.current=Date.now()),r.current=void 0},t-u))},[t])};var oct=he($e(),1);var bXt=5e3,CH=({className:e})=>{let{fundAmountFiat:t,fundAmountCrypto:n,asset:r,selectedInputType:o,currency:i,exchangeRate:a,setFundAmountFiat:c,setFundAmountCrypto:u,country:d,subdivision:p,setExchangeRate:h,onError:g}=Ql(),{fetchExchangeRate:y}=cne({asset:r,currency:i,country:d,subdivision:p,setExchangeRate:h,onError:g}),v=nct(y,bXt),{sendAnalytics:x}=_a(),R=(0,oct.useCallback)(S=>{c(S),v(),x(Kd.FundAmountChanged,{amount:Number(S),currency:i})},[i,x,c,v]);return(0,rct.jsx)(hne,{fiatAmount:t,cryptoAmount:n,asset:r,selectedInputType:o,currency:i,className:e,setFiatAmount:R,setCryptoAmount:u,exchangeRate:String(a)})};f();var hct=he(ze(),1);f();var f5=he(ze(),1);var IH=he($e(),1);f();f();var lE=he(ze(),1),ict=(0,lE.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 -29.75 165.5 165.5\",preserveAspectRatio:\"xMidYMid meet\",id:\"Artwork\",\"data-testid\":\"ock-applePaySvg\",width:\"24\",height:\"24\",children:[(0,lE.jsx)(\"title\",{children:\"Apple Pay\"}),(0,lE.jsx)(\"path\",{id:\"XMLID_4_\",d:\"M150.7 0h-139c-1 0-2.1.1-3.1.3-1 .2-2 .5-3 1-.9.4-1.8 1.1-2.5 1.8S1.7 4.7 1.3 5.6c-.5.9-.8 1.9-1 3-.2 1-.2 2.1-.3 3.1v82.5c0 1 .1 2.1.3 3.1.2 1 .5 2 1 3 .5.9 1.1 1.8 1.8 2.5s1.6 1.4 2.5 1.8c.9.5 1.9.8 3 1 1 .2 2.1.2 3.1.3h142.1c1 0 2.1-.1 3.1-.3 1-.2 2-.5 3-1 .9-.5 1.8-1.1 2.5-1.8s1.4-1.6 1.8-2.5c.5-.9.8-1.9 1-3 .2-1 .2-2.1.3-3.1v-1.4-78-1.7-1.4c0-1-.1-2.1-.3-3.1-.2-1-.5-2-1-3-.5-.9-1.1-1.8-1.8-2.5s-1.6-1.4-2.5-1.8c-.9-.5-1.9-.8-3-1-1-.2-2.1-.2-3.1-.3H150.7z\"}),(0,lE.jsx)(\"path\",{id:\"XMLID_3_\",fill:\"#fff\",d:\"M150.7 3.5H153.8c.8 0 1.7.1 2.6.2.8.1 1.4.3 2 .6.6.3 1.1.7 1.6 1.2s.9 1 1.2 1.6c.3.6.5 1.2.6 2 .2.9.2 1.8.2 2.6v82.5c0 .8-.1 1.7-.2 2.6-.1.7-.3 1.4-.6 2-.3.6-.7 1.1-1.2 1.6s-1 .9-1.6 1.2c-.6.3-1.2.5-2 .6-.9.2-1.8.2-2.6.2H11.7c-.7 0-1.7-.1-2.6-.2-.7-.1-1.4-.3-2-.7-.6-.3-1.1-.7-1.6-1.2s-.9-1-1.2-1.6c-.3-.6-.5-1.2-.6-2-.2-.9-.2-1.8-.2-2.6v-81-1.4c0-.8.1-1.7.2-2.6.1-.7.3-1.4.6-2 .3-.6.7-1.1 1.2-1.6s1-.9 1.6-1.2c.6-.3 1.2-.5 2-.6.9-.2 1.8-.2 2.6-.2h139\"}),(0,lE.jsx)(\"path\",{d:\"M45.2 35.6c1.4-1.8 2.4-4.2 2.1-6.6-2.1.1-4.6 1.4-6.1 3.1-1.3 1.5-2.5 4-2.2 6.3 2.4.3 4.7-1 6.2-2.8M47.3 39c-3.4-.2-6.3 1.9-7.9 1.9-1.6 0-4.1-1.8-6.8-1.8-3.5.1-6.7 2-8.5 5.2-3.6 6.3-1 15.6 2.6 20.7 1.7 2.5 3.8 5.3 6.5 5.2 2.6-.1 3.6-1.7 6.7-1.7s4 1.7 6.8 1.6c2.8-.1 4.6-2.5 6.3-5.1 2-2.9 2.8-5.7 2.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2 4.2-7.7 4.4-7.8-2.3-3.6-6.1-4-7.4-4.1\"}),(0,lE.jsx)(\"g\",{children:(0,lE.jsx)(\"path\",{d:\"M76.7 31.9c7.4 0 12.5 5.1 12.5 12.4 0 7.4-5.2 12.5-12.7 12.5h-8.1v12.9h-5.9V31.9h14.2zm-8.3 20h6.7c5.1 0 8-2.8 8-7.5 0-4.8-2.9-7.5-8-7.5h-6.8v15zM90.7 62c0-4.8 3.7-7.8 10.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3 0-5.3 1.6-5.8 4h-5.4c.3-5 4.6-8.7 11.4-8.7 6.7 0 11 3.5 11 9.1v19h-5.4v-4.5h-.1c-1.6 3.1-5.1 5-8.7 5-5.6 0-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3 1.7-5.3 4.1 0 2.4 2 4 5 4 4 0 7.1-2.7 7.1-6.3zM119.3 80v-4.6c.4.1 1.4.1 1.8.1 2.6 0 4-1.1 4.9-3.9 0-.1.5-1.7.5-1.7l-10-27.6h6.1l7 22.5h.1l7-22.5h6l-10.3 29.1c-2.4 6.7-5.1 8.8-10.8 8.8-.4-.1-1.8-.1-2.3-.2z\"})})]});var mne=he($e(),1);f();var dP=he(ze(),1);var act=(0,dP.jsxs)(\"svg\",{\"data-testid\":\"ock-appleSvg\",role:\"img\",\"aria-label\":\"ock-appleSvg\",width:\"14\",height:\"16\",viewBox:\"0 0 14 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,dP.jsx)(\"title\",{children:\"Apple\"}),(0,dP.jsx)(\"path\",{d:\"M10.0788 0C10.1161 0 10.1533 0 10.1926 0C10.284 1.12836 9.85329 1.97146 9.32986 2.58201C8.81627 3.18834 8.11298 3.77641 6.97549 3.68718C6.89961 2.57498 7.331 1.79441 7.85373 1.18527C8.33851 0.617575 9.22729 0.112414 10.0788 0Z\",className:tn.foreground}),(0,dP.jsx)(\"path\",{d:\"M13.5228 11.7446C13.5228 11.7558 13.5228 11.7657 13.5228 11.7762C13.2031 12.7444 12.7471 13.5741 12.1907 14.3442C11.6827 15.0432 11.0602 15.984 9.9487 15.984C8.98826 15.984 8.35031 15.3664 7.36598 15.3496C6.32475 15.3327 5.75214 15.866 4.80013 16.0002C4.69123 16.0002 4.58233 16.0002 4.47554 16.0002C3.77646 15.899 3.21228 15.3454 2.80127 14.8465C1.58931 13.3725 0.652757 11.4685 0.478516 9.0319C0.478516 8.79302 0.478516 8.55485 0.478516 8.31597C0.552287 6.57215 1.39961 5.15432 2.52586 4.46719C3.12025 4.10185 3.93735 3.7906 4.84721 3.92971C5.23714 3.99014 5.63551 4.12363 5.98469 4.25571C6.31561 4.38288 6.72944 4.60841 7.12148 4.59647C7.38706 4.58874 7.65123 4.45033 7.91892 4.35267C8.70301 4.06953 9.47164 3.74493 10.4848 3.89739C11.7024 4.08147 12.5665 4.62246 13.1005 5.45714C12.0705 6.11265 11.2562 7.10049 11.3953 8.7874C11.519 10.3197 12.4099 11.2162 13.5228 11.7446Z\",className:tn.foreground})]});f();var RH=he(ze(),1);var sct=(0,RH.jsxs)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:be(tn.foreground),\"data-testid\":\"coinbaseLogoSvg\",children:[(0,RH.jsx)(\"title\",{children:\"Coinbase Pay Onramp\"}),(0,RH.jsx)(\"path\",{d:\"M7.93154 12.5C5.74045 12.5 3.96577 10.6354 3.96577 8.33333C3.96577 6.03125 5.74045 4.16667 7.93154 4.16667C9.8946 4.16667 11.5239 5.67014 11.8378 7.63889H15.8333C15.4962 3.36111 12.089 0 7.93154 0C3.55267 0 0 3.73264 0 8.33333C0 12.934 3.55267 16.6667 7.93154 16.6667C12.089 16.6667 15.4962 13.3056 15.8333 9.02778H11.8378C11.5239 10.9965 9.8946 12.5 7.93154 12.5Z\",fill:\"#0052FF\"})]});f();var r2e=he(ze(),1),cct=(0,r2e.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-coinbasePaySvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,r2e.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M10.0145 14.1666C7.82346 14.1666 6.04878 12.302 6.04878 9.99996C6.04878 7.69788 7.82346 5.83329 10.0145 5.83329C11.9776 5.83329 13.6069 7.33677 13.9208 9.30552H17.9163C17.5793 5.02774 14.172 1.66663 10.0145 1.66663C5.63568 1.66663 2.08301 5.39926 2.08301 9.99996C2.08301 14.6007 5.63568 18.3333 10.0145 18.3333C14.172 18.3333 17.5793 14.9722 17.9163 10.6944H13.9208C13.6069 12.6632 11.9776 14.1666 10.0145 14.1666Z\",fill:\"#f9fafb\"})});f();var fP=he(ze(),1);var uct=(0,fP.jsxs)(\"svg\",{\"data-testid\":\"ock-creditCardSvg\",role:\"img\",\"aria-label\":\"ock-creditCardSvg\",width:\"14\",height:\"16\",viewBox:\"0 0 14 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,fP.jsx)(\"title\",{children:\"Credit Card\"}),(0,fP.jsx)(\"path\",{d:\"M0.478516 2.33325V12.9999H13.5228V2.33325H0.478516ZM12.164 3.99992V5.33325H1.83729V3.99992H12.164ZM1.83729 11.3333V7.66659H12.164V11.3333H1.83729Z\",className:tn.foreground}),(0,fP.jsx)(\"path\",{d:\"M2.65256 8.66659H7.00064V9.66659H2.65256V8.66659Z\",className:tn.foreground})]});f();var o2e=he(ze(),1);var lct=(0,o2e.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-fundWalletSvg\",width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,o2e.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13.5 4.5C13.5 6.15685 14.8431 7.5 16.5 7.5V10.5C14.8431 10.5 13.5 11.8431 13.5 13.5H4.5C4.5 11.8431 3.15685 10.5 1.5 10.5L1.5 13.5V7.5C3.15685 7.5 4.5 6.15685 4.5 4.5H13.5ZM0 3V15H18V3H0ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9Z\",fill:\"#0A0B0D\",className:tn.foreground})});f();var i2e=he(ze(),1);var dct=(0,i2e.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-swapSettingsSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 19 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,i2e.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M8.92071 5.89742e-08C8.00371 5.89742e-08 7.22171 0.663 7.07071 1.567L6.89271 2.639C6.87271 2.759 6.77771 2.899 6.59571 2.987C6.25306 3.15171 5.92344 3.34226 5.60971 3.557C5.44371 3.672 5.27571 3.683 5.15971 3.64L4.14271 3.258C3.72695 3.10224 3.26941 3.09906 2.85152 3.24904C2.43364 3.39901 2.08254 3.69241 1.86071 4.077L0.938708 5.674C0.716797 6.05836 0.638423 6.50897 0.717525 6.94569C0.796628 7.3824 1.02808 7.7769 1.37071 8.059L2.21071 8.751C2.30571 8.829 2.38071 8.98 2.36471 9.181C2.33621 9.56013 2.33621 9.94087 2.36471 10.32C2.37971 10.52 2.30571 10.672 2.21171 10.75L1.37071 11.442C1.02808 11.7241 0.796628 12.1186 0.717525 12.5553C0.638423 12.992 0.716797 13.4426 0.938708 13.827L1.86071 15.424C2.08269 15.8084 2.43387 16.1016 2.85173 16.2514C3.2696 16.4012 3.72706 16.3978 4.14271 16.242L5.16171 15.86C5.27671 15.817 5.44471 15.829 5.61171 15.942C5.92371 16.156 6.25271 16.347 6.59671 16.512C6.77871 16.6 6.87371 16.74 6.89371 16.862L7.07171 17.933C7.22271 18.837 8.00471 19.5 8.92171 19.5H10.7657C11.6817 19.5 12.4647 18.837 12.6157 17.933L12.7937 16.861C12.8137 16.741 12.9077 16.601 13.0907 16.512C13.4347 16.347 13.7637 16.156 14.0757 15.942C14.2427 15.828 14.4107 15.817 14.5257 15.86L15.5457 16.242C15.9612 16.3972 16.4183 16.4001 16.8357 16.2502C17.2532 16.1002 17.6039 15.8071 17.8257 15.423L18.7487 13.826C18.9706 13.4416 19.049 12.991 18.9699 12.5543C18.8908 12.1176 18.6593 11.7231 18.3167 11.441L17.4767 10.749C17.3817 10.671 17.3067 10.52 17.3227 10.319C17.3511 9.93987 17.3511 9.55913 17.3227 9.18C17.3067 8.98 17.3817 8.828 17.4757 8.75L18.3157 8.058C19.0237 7.476 19.2067 6.468 18.7487 5.673L17.8267 4.076C17.6047 3.69159 17.2535 3.3984 16.8357 3.24861C16.4178 3.09883 15.9604 3.10215 15.5447 3.258L14.5247 3.64C14.4107 3.683 14.2427 3.671 14.0757 3.557C13.7623 3.3423 13.433 3.15175 13.0907 2.987C12.9077 2.9 12.8137 2.76 12.7937 2.639L12.6147 1.567C12.5418 1.12906 12.3158 0.731216 11.977 0.444267C11.6383 0.157318 11.2087 -0.00011124 10.7647 5.89742e-08H8.92171H8.92071ZM9.84271 13.5C10.8373 13.5 11.7911 13.1049 12.4944 12.4017C13.1976 11.6984 13.5927 10.7446 13.5927 9.75C13.5927 8.75544 13.1976 7.80161 12.4944 7.09835C11.7911 6.39509 10.8373 6 9.84271 6C8.84815 6 7.89432 6.39509 7.19106 7.09835C6.4878 7.80161 6.09271 8.75544 6.09271 9.75C6.09271 10.7446 6.4878 11.6984 7.19106 12.4017C7.89432 13.1049 8.84815 13.5 9.84271 13.5Z\",fill:\"#6B7280\",className:tn.foreground})});f();var d5=he(ze(),1);var pP=(0,d5.jsxs)(\"svg\",{role:\"img\",\"aria-label\":\"ock-toggleSvg\",width:\"16\",height:\"17\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-toggleSvg\",children:[(0,d5.jsx)(\"g\",{clipPath:\"url(#clip0_2077_4627)\",children:(0,d5.jsx)(\"path\",{d:\"M14.5659 4.93434L13.4345 6.06571L11.8002 4.43139L11.8002 10.75L10.2002 10.75L10.2002 4.43139L8.56592 6.06571L7.43455 4.93434L11.0002 1.36865L14.5659 4.93434ZM8.56592 12.0657L5.00023 15.6314L1.43455 12.0657L2.56592 10.9343L4.20023 12.5687L4.20023 6.25002L5.80023 6.25002L5.80023 12.5687L7.43455 10.9343L8.56592 12.0657Z\",className:tn.foreground})}),(0,d5.jsx)(\"defs\",{children:(0,d5.jsx)(\"clipPath\",{id:\"clip0_2077_4627\",children:(0,d5.jsx)(\"rect\",{width:\"16\",height:\"16\",fill:\"white\",transform:\"translate(0 0.5)\"})})})]});f();var a2e=he(ze(),1);var fct=(0,a2e.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-walletSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,a2e.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M0 10C0 15.5222 4.47778 20 10 20C15.5222 20 20 15.5222 20 10C20 4.47778 15.5222 0 10 0C4.47778 0 0 4.47778 0 10ZM7.44444 6.77778C7.075 6.77778 6.77778 7.075 6.77778 7.44444V12.5556C6.77778 12.925 7.075 13.2222 7.44444 13.2222H12.5556C12.925 13.2222 13.2222 12.925 13.2222 12.5556V7.44444C13.2222 7.075 12.925 6.77778 12.5556 6.77778H7.44444Z\",className:tn.foreground})});var dE=({icon:e})=>(0,mne.useMemo)(()=>{if(e===void 0)return null;switch(e){case\"coinbasePay\":return cct;case\"coinbaseLogo\":return sct;case\"fundWallet\":return lct;case\"swapSettings\":return dct;case\"wallet\":return fct;case\"toggle\":return pP;case\"applePay\":return ict;case\"apple\":return act;case\"creditCard\":return uct}if((0,mne.isValidElement)(e))return e},[e]);f();var fE=({amount:e,currency:t=\"USD\",locale:n,minimumFractionDigits:r=2,maximumFractionDigits:o=2})=>{let i=Number(e);return Number.isNaN(i)&&(i=0),new Intl.NumberFormat(n,{style:\"currency\",currency:t,minimumFractionDigits:r,maximumFractionDigits:o}).format(i)};f();var pct=he(ze(),1);function fw({className:e}){return(0,pct.jsx)(\"div\",{className:be(\"animate-pulse bg-opacity-50\",An.alternate,bt.radius,e),\"data-testid\":\"ockSkeleton\"})}function gne({selectedInputType:e,setSelectedInputType:t,asset:n,fiatAmount:r,cryptoAmount:o,exchangeRate:i,exchangeRateLoading:a,currency:c,loadingDisplay:u=(0,f5.jsx)(fw,{className:\"h-[1.625rem]\"}),className:d}){let p=dE({icon:\"toggle\"}),h=(0,IH.useCallback)(()=>{t(e===\"fiat\"?\"crypto\":\"fiat\")},[e,t]),g=(0,IH.useCallback)(v=>`${D1(v||\"0\",8)} ${n}`,[n]),y=(0,IH.useMemo)(()=>(0,f5.jsx)(\"span\",{\"data-testid\":\"ockAmountLine\",className:be(rt.label1),children:e===\"fiat\"?g(o):fE({amount:r,currency:c,minimumFractionDigits:0})}),[o,r,e,g,c]);return a||!i?u:(0,f5.jsxs)(\"div\",{className:be(\"flex items-center\",d),children:[(0,f5.jsx)(\"button\",{type:\"button\",\"aria-label\":\"amount type switch\",className:be(Qt.default,\"mr-1 rounded-full p-1 opacity-50 transition-opacity hover:opacity-100\"),\"data-testid\":\"ockAmountTypeSwitch\",onClick:h,children:(0,f5.jsx)(\"div\",{className:\"h-[1.125rem] w-[1.125rem]\",children:p})}),(0,f5.jsx)(\"div\",{className:\"w-full truncate\",children:y})]})}var OH=({className:e})=>{let{selectedInputType:t,setSelectedInputType:n,asset:r,fundAmountFiat:o,fundAmountCrypto:i,exchangeRate:a,exchangeRateLoading:c,currency:u}=Ql();return(0,hct.jsx)(gne,{selectedInputType:t,setSelectedInputType:n,asset:r,fiatAmount:o,cryptoAmount:i,exchangeRate:a,exchangeRateLoading:c,currency:u,className:e})};f();var mct=he(ze(),1);function s2e({className:e}){let{headerText:t}=Ql();return(0,mct.jsx)(\"div\",{className:be(rt.headline,e),\"data-testid\":\"ockFundCardHeader\",children:t})}f();var h5=he(ze(),1);f();function gct(){return/iPhone|iPad|iPod/.test(navigator.userAgent)||/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/Edg/.test(navigator.userAgent)}f();var yne=he($e(),1);function bne(e,t){let n=(0,yne.useCallback)(r=>{var o;if(!e.current)return;let i=!e.current.contains(r.target),a=(o=r.composedPath)==null?void 0:o.call(r);!a?.some(u=>u instanceof HTMLElement&&u.hasAttribute(\"data-portal-origin\"))&&i&&t()},[t,e]);(0,yne.useEffect)(()=>(document.addEventListener(\"click\",n,{capture:!0}),()=>{document.removeEventListener(\"click\",n,{capture:!0})}),[n])}var Jd=he($e(),1);f();var p5=he(ze(),1),wne=he($e(),1);f();var yct=he(ze(),1);function vne({className:e,paymentMethod:t}){let{icon:n}=t,r=dE({icon:n});return(0,yct.jsx)(\"div\",{\"data-testid\":\"ockFundCardPaymentMethodImage__iconContainer\",className:be(\"flex items-center justify-center overflow-hidden rounded-[50%]\",e),children:r})}var c2e=(0,wne.memo)(({paymentMethod:e,onClick:t,hideImage:n,hideDescription:r,disabled:o,disabledReason:i,testId:a})=>{let{sendAnalytics:c}=_a(),u=(0,wne.useCallback)(()=>{o||(t?.(e),c(Kd.FundOptionSelected,{option:e.id}))},[o,t,e,c]);return(0,p5.jsx)(\"button\",{\"data-testid\":a,type:\"button\",className:be(Qt.default,bt.radius,An.default,\"flex w-full items-center justify-between px-4 py-2\",{[Qt.disabled]:o}),onClick:u,disabled:o,title:i,children:(0,p5.jsxs)(\"span\",{className:\"flex items-center gap-3\",children:[!n&&(0,p5.jsx)(vne,{paymentMethod:e,className:be(\"h-4 w-4\",{[Qt.disabled]:o})}),(0,p5.jsxs)(\"span\",{className:\"flex flex-col items-start\",children:[(0,p5.jsx)(\"span\",{className:be(rt.headline),children:e.name}),!r&&(0,p5.jsx)(\"span\",{className:be(rt.label2,ct.foregroundMuted,\"font-normal\"),children:i||e.description})]})]})})});c2e.displayName=\"FundCardPaymentMethodSelectRow\";f();var NR=he(ze(),1),bct=he($e(),1);f();var u2e=he(ze(),1);var xne=(0,u2e.jsx)(\"svg\",{\"data-testid\":\"ock-caretUpSvg\",role:\"img\",\"aria-label\":\"ock-caretUpSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,u2e.jsx)(\"path\",{d:\"M3.05329 10.9866L7.99996 6.03997L12.9466 10.9866L14.1266 9.80663L7.99996 3.67997L1.87329 9.80663L3.05329 10.9866Z\",className:tn.foreground})});var l2e=(0,bct.forwardRef)(({onClick:e,paymentMethod:t,isOpen:n,className:r},o)=>(0,NR.jsxs)(\"button\",{type:\"button\",className:be(Qt.default,bt.radius,bt.lineDefault,\"flex h-12 w-full items-center gap-2 px-3 py-1\",r),onClick:e,ref:o,\"data-testid\":\"ockFundCardPaymentMethodSelectorToggle\",children:[(0,NR.jsx)(\"div\",{className:\"w-4\",children:(0,NR.jsx)(vne,{paymentMethod:t,className:\"h-4 w-4\"})}),(0,NR.jsx)(\"span\",{className:be(rt.headline,ct.foreground,\"flex w-full\"),\"data-testid\":\"ockFundCardPaymentMethodSelectorToggle__paymentMethodName\",children:t.name}),(0,NR.jsx)(\"span\",{className:be(\"rotate-90 transition-transform duration-200\",n&&\"rotate-180\"),children:xne})]}));l2e.displayName=\"FundCardPaymentMethodSelectorToggle\";function kH({className:e}){let[t,n]=(0,Jd.useState)(!1),{selectedPaymentMethod:r,setSelectedPaymentMethod:o,paymentMethods:i,fundAmountFiat:a,isPaymentMethodsLoading:c,currency:u}=Ql(),{sendAnalytics:d}=_a(),p=(0,Jd.useMemo)(()=>i.filter(z=>z.id!==\"APPLE_PAY\"||gct()),[i]),h=(0,Jd.useCallback)(z=>{let V=Number(a);if(z.minAmount&&V<z.minAmount)return`Minimum amount of ${fE({amount:z.minAmount,currency:u,minimumFractionDigits:0})} required`;if(z.maxAmount&&V>z.maxAmount)return`Maximum amount allowed is ${fE({amount:z.maxAmount,currency:u,minimumFractionDigits:0})}`},[a,u]),g=(0,Jd.useCallback)(z=>a?!!h(z):!1,[a,h]);(0,Jd.useEffect)(()=>{if(r&&g(r)){let z=i.find(V=>V.id===\"\");z&&o(z)}},[r,i,o,g]);let y=(0,Jd.useCallback)(z=>{g(z)||(d(Kd.FundOptionSelected,{option:z.id}),o(z),n(!1))},[o,g,d]),v=(0,Jd.useCallback)(()=>{n(!t)},[t]),x=(0,Jd.useRef)(null),R=(0,Jd.useRef)(null),S=(0,Jd.useRef)(null);bne(R,()=>{t&&n(!1)});let M=(0,Jd.useCallback)(z=>{z.key===\"Escape\"&&n(!1)},[]),P=r||p[0];return(0,h5.jsxs)(\"div\",{className:be(\"relative py-4\",e),ref:R,\"data-testid\":\"ockFundCardPaymentMethodDropdownContainer\",onKeyUp:M,children:[c||!P?(0,h5.jsx)(fw,{className:\"h-12 w-full\"}):(0,h5.jsx)(l2e,{ref:S,onClick:v,isOpen:t,paymentMethod:P}),t&&(0,h5.jsx)(\"div\",{ref:x,\"data-testid\":\"ockFundCardPaymentMethodDropdown\",className:be(bt.radius,bt.lineDefault,\"ock-scrollbar absolute z-10 mt-2 flex w-full flex-col overflow-y-hidden\"),children:(0,h5.jsx)(\"div\",{className:be(An.default,\"overflow-y-auto p-2\"),children:p.map(z=>{let V=g(z);return(0,h5.jsx)(c2e,{testId:`ockFundCardPaymentMethodSelectRow__${z.id}`,paymentMethod:z,onClick:y,disabled:V,disabledReason:h(z)},z.name)})})})]})}f();var d2e=he(ze(),1);f();var vct=he(ze(),1);var NH=he($e(),1);function wct({presetAmountInput:e,currency:t,onClick:n}){let{sendAnalytics:r}=_a(),o=(0,NH.useMemo)(()=>fE({amount:e,currency:t,minimumFractionDigits:0}),[e,t]),i=(0,NH.useCallback)(()=>{r(Kd.FundAmountChanged,{amount:Number(e),currency:t}),n(e)},[e,t,n,r]),a=(0,NH.useCallback)(c=>{(c.key===\"Enter\"||c.key===\" \")&&(c.preventDefault(),r(Kd.FundAmountChanged,{amount:Number(e),currency:t}),n(e))},[e,t,n,r]);return e?(0,vct.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockPresetAmountInput\",className:be(rt.body,ct.foreground,bt.radius,bt.lineDefault,\"flex-1\",\"p-1\",\"overflow-hidden\",\"whitespace-nowrap\",\"text-ellipsis\",\"hover:bg-[var(--ock-bg-default-hover)]\",\"focus:outline-none focus:ring-2\"),title:o,onClick:i,onKeyDown:a,children:o}):null}function PH(){let{presetAmountInputs:e,currency:t,selectedInputType:n,exchangeRate:r,setFundAmountFiat:o,setFundAmountCrypto:i}=Ql(),{handleFiatChange:a}=dne({setFiatAmount:o,setCryptoAmount:i,selectedInputType:n,exchangeRate:String(r)});return e?(0,d2e.jsx)(\"div\",{\"data-testid\":\"ockPresetAmountInputList\",className:\"flex w-full flex-wrap items-center justify-between gap-2 pt-8\",children:e.map((c,u)=>(0,d2e.jsx)(wct,{presetAmountInput:c,onClick:a,currency:t},u))}):null}f();var Act=he(ze(),1),MH=he($e(),1);f();var xct=he($e(),1);var Ect=()=>{let{projectId:e,chain:t}=Co(),{address:n,chain:r}=wr(),{selectedPaymentMethod:o,selectedInputType:i,fundAmountFiat:a,fundAmountCrypto:c,asset:u,currency:d}=Ql(),p=r||t;return(0,xct.useMemo)(()=>{if(e===null||n===void 0)return;let h=i===\"fiat\"?a:c;return OR({projectId:e,assets:[u],presetFiatAmount:i===\"fiat\"?Number(h):void 0,presetCryptoAmount:i===\"crypto\"?Number(h):void 0,defaultPaymentMethod:o?.id,addresses:{[n]:[p.name.toLowerCase()]},fiatCurrency:d,originComponentName:\"FundCard\"})},[u,a,c,o,i,e,n,p,d])};function DH(){let{fundAmountFiat:e,fundAmountCrypto:t,submitButtonState:n,setSubmitButtonState:r,buttonText:o,currency:i,updateLifecycleStatus:a}=Ql(),c=Ect(),u=(0,MH.useCallback)(()=>r(\"loading\"),[r]),d=(0,MH.useCallback)(()=>{a({statusName:\"exit\",statusData:void 0}),r(\"default\")},[a,r]),p=(0,MH.useMemo)(()=>(!e||Number(t)===0)&&(!t||Number(e)===0),[t,e]);return(0,Act.jsx)(TH,{disabled:p,hideIcon:n===\"default\",text:o,className:\"w-full\",fundingUrl:c,state:n,onClick:u,onPopupClose:d,fiatCurrency:i})}function f2e({assetSymbol:e,buttonText:t=\"Buy\",headerText:n,country:r=\"US\",subdivision:o,currency:i=\"USD\",presetAmountInputs:a,children:c=(0,Xd.jsx)(wXt,{}),className:u,onError:d,onStatus:p,onSuccess:h}){let g=Aa();return(0,Xd.jsx)(e2e,{asset:e,headerText:n,buttonText:t,country:r,subdivision:o,currency:i,onError:d,onStatus:p,onSuccess:h,presetAmountInputs:a,children:(0,Xd.jsx)(\"div\",{className:be(g,An.default,ct.foreground,\"flex w-full flex-col p-6\",rt.headline,bt.radius,bt.lineDefault,u),children:(0,Xd.jsx)(vXt,{children:c})})})}function vXt({children:e}){return Qst(),(0,Xd.jsx)(\"form\",{className:\"w-full\",\"data-testid\":\"ockFundCardForm\",children:e})}function wXt(){return(0,Xd.jsxs)(Xd.Fragment,{children:[(0,Xd.jsx)(s2e,{}),(0,Xd.jsx)(CH,{}),(0,Xd.jsx)(OH,{}),(0,Xd.jsx)(PH,{}),(0,Xd.jsx)(kH,{}),(0,Xd.jsx)(DH,{})]})}f();f();f();f();var LH=he(ze(),1);f();async function Ene({copyValue:e,onSuccess:t,onError:n}){try{await navigator.clipboard.writeText(e),t?.()}catch(r){n?.(r)}}var _ct=he($e(),1);function m5({address:e=null,className:t,isSliced:n=!0,hasCopyAddressOnClick:r=!0}){let[o,i]=(0,_ct.useState)(\"Copy\"),{address:a}=bh(),c=e??a;if(!c)return console.error(\"Address: an Ethereum address must be provided to the Identity or Address component.\"),null;let u=n?IR(c):c;if(!r)return(0,LH.jsx)(\"span\",{\"data-testid\":\"ockAddress\",className:be(ct.foregroundMuted,rt.label2,t),children:u});let d=async()=>{await Ene({copyValue:c,onSuccess:()=>{i(\"Copied\"),setTimeout(()=>i(\"Copy\"),2e3)},onError:h=>{console.error(\"Failed to copy address:\",h),i(\"Failed to copy\"),setTimeout(()=>i(\"Copy\"),2e3)}})},p=h=>{(h.key===\"Enter\"||h.key===\" \")&&(h.preventDefault(),d())};return(0,LH.jsxs)(\"span\",{\"data-testid\":\"ockAddress\",className:be(ct.foregroundMuted,rt.label2,t,\"group relative cursor-pointer\"),onClick:d,onKeyDown:p,tabIndex:0,role:\"button\",\"aria-label\":`Copy address ${c}`,children:[u,(0,LH.jsx)(\"button\",{type:\"button\",className:be(Qt.alternate,rt.legal,ct.foreground,bt.default,bt.radius,\"absolute top-full left-[0%] z-10 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-live\":\"polite\",children:o})]})}f();var Mct=he(ze(),1);f();function pE(e,t){var n;if(e===\"0\")return e;let r=Number.parseFloat(e),o=(n=Number(r))==null?void 0:n.toFixed(t).replace(/0+$/,\"\");return r>0&&Number.parseFloat(o)===0?\"0\":o}f();var Pct=he($e(),1);pn();f();f();var Sct=\"SWAP_ERROR\",Tct=\"SWAP_QUOTE_ERROR\",Cct=\"SWAP_BALANCE_ERROR\",Ane=\"SWAP_QUOTE_LOW_LIQUIDITY_ERROR\",Rct=\"0x000000000022D473030F116dDEE9F6B43aC78BA3\",_ne=\"TOO_MANY_REQUESTS_ERROR\",Ict=\"UNCAUGHT_SWAP_QUOTE_ERROR\",Oct=\"UNCAUGHT_SWAP_ERROR\",kct=\"0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD\",Nct=\"USER_REJECTED\",Sne=\"UNSUPPORTED_AMOUNT_REFERENCE_ERROR\",nl=(e=>(e.BALANCE_ERROR=\"Error fetching token balance\",e.CONFIRM_IN_WALLET=\"Confirm in wallet\",e.FETCHING_QUOTE=\"Fetching quote...\",e.FETCHING_BALANCE=\"Fetching balance...\",e.INCOMPLETE_FIELD=\"Complete the fields to continue\",e.INSUFFICIENT_BALANCE=\"Insufficient balance\",e.LOW_LIQUIDITY=\"Insufficient liquidity for this trade.\",e.SWAP_IN_PROGRESS=\"Swap in progress...\",e.TOO_MANY_REQUESTS=\"Too many requests. Please try again later.\",e.USER_REJECTED=\"User rejected the transaction\",e.UNSUPPORTED_AMOUNT_REFERENCE=\"useAggregator does not support amountReference: to, please use useAggregator: false\",e))(nl||{});function pw(e,t){return t===-32001?_ne:t===-32602?Ane:e===\"uncaught-swap\"?Oct:e===\"uncaught-quote\"?Ict:e===\"quote\"?Tct:e===\"balance\"?Cct:Sct}var xXt=18;function Tne(e){let t=bue({address:e,query:{...Zd}});return(0,Pct.useMemo)(()=>{var n,r,o,i;let a;if(t?.error&&(a={code:pw(\"balance\"),error:(n=t?.error)==null?void 0:n.message,message:\"\"}),!((r=t?.data)!=null&&r.value)&&((o=t?.data)==null?void 0:o.value)!==0n)return{convertedBalance:\"\",roundedBalance:\"\",error:a,response:t};let c=na((i=t?.data)==null?void 0:i.value,xXt),u=pE(c,8);return{convertedBalance:c,error:a,response:t,roundedBalance:u}},[t])}function BH({address:e,className:t}){let{address:n}=bh();if(!n&&!e)return console.error(\"Address: an Ethereum address must be provided to the Identity or EthBalance component.\"),null;let{convertedBalance:r,error:o}=Tne(e??n);return!r||o?null:(0,Mct.jsxs)(\"span\",{\"data-testid\":\"ockEthBalance\",className:be(rt.label2,ct.foregroundMuted,t),children:[pE(r,4),\" ETH\"]})}f();var p2e=he(ze(),1);f();var g5=he(ze(),1);var hP=he($e(),1);f();var FH=he(ze(),1);f();f();ra();var Dct=async({ensName:e})=>{let t=vh(zi),n=z7(e),r=async u=>{try{return await t.getEnsText({name:n,key:u})||null}catch(d){return console.warn(`Failed to fetch ENS text record for ${u}:`,d),null}},[o,i,a,c]=await Promise.all([r(\"com.twitter\"),r(\"com.github\"),r(\"xyz.farcaster\"),r(\"url\")]);return{twitter:o,github:i,farcaster:a,website:c}};ra();var Lct=({ensName:e,chain:t=zi},n)=>{let r=[\"useSocials\",e,t.id];return Nf({queryKey:r,queryFn:()=>Dct({ensName:e}),...Zd,gcTime:n?.cacheTime,...n})};f();var UH=he(ze(),1);var EXt={twitter:{href:e=>`https://x.com/${e}`,icon:fst},github:{href:e=>`https://github.com/${e}`,icon:dst},farcaster:{href:e=>`https://warpcast.com/${e.split(\"/\").pop()}`,icon:pst},website:{href:e=>e,icon:hst}};function Bct({platform:e,value:t}){let n=EXt[e];return(0,UH.jsxs)(\"a\",{href:n.href(t),target:\"_blank\",rel:\"noopener noreferrer\",className:be(Qt.default,bt.radius,bt.default,\"flex items-center justify-center p-2\"),\"data-testid\":`ockSocials_${e.charAt(0).toUpperCase()+e.slice(1)}`,children:[(0,UH.jsx)(\"span\",{className:\"sr-only\",children:e}),(0,UH.jsx)(\"div\",{className:be(\"flex h-4 w-4 items-center justify-center\"),children:n.icon})]})}function Cne({address:e,chain:t,className:n}){let{address:r,chain:o}=bh(),i=e??r,a=t??o;if(!i)return console.error(\"Socials: an Ethereum address must be provided to the Socials component.\"),null;let{data:c,isLoading:u}=r5({address:i,chain:a}),{data:d,isLoading:p}=Lct({ensName:c??\"\",chain:a},{enabled:!!c});return u||p?(0,FH.jsx)(\"span\",{className:n}):!d||Object.values(d).every(h=>!h)?null:(0,FH.jsx)(\"div\",{className:be(bt.default,\"mt-2 w-full pl-1\",n),children:(0,FH.jsx)(\"div\",{className:\"left-4 flex space-x-2\",children:Object.entries(d).map(([h,g])=>g&&(0,FH.jsx)(Bct,{platform:h,value:g},h))})})}function Uct({children:e,className:t,hasCopyAddressOnClick:n}){let r=Aa(),{avatar:o,name:i,address:a,ethBalance:c,socials:u}=(0,hP.useMemo)(()=>{let d=hP.Children.toArray(e),p=d.find(ip(m5));return{avatar:d.find(ip(ap)),name:d.find(ip(wh)),address:p?(0,hP.cloneElement)(p,{hasCopyAddressOnClick:n}):void 0,ethBalance:d.find(ip(BH)),socials:d.find(ip(Cne))}},[e,n]);return(0,g5.jsxs)(\"div\",{className:be(r,An.default,\"flex flex-col px-4 py-1\",t),\"data-testid\":\"ockIdentityLayout_container\",children:[(0,g5.jsxs)(\"div\",{className:\"flex items-center space-x-3\",children:[(0,g5.jsx)(\"div\",{className:\"flex-shrink-0\",children:o}),(0,g5.jsxs)(\"div\",{className:\"flex flex-col\",children:[i,a&&!c&&a,!a&&c&&c,a&&c&&(0,g5.jsxs)(\"div\",{className:\"flex items-center gap-1\",children:[a,(0,g5.jsx)(\"span\",{className:ct.foregroundMuted,children:\"\\\\xB7\"}),c]})]})]}),u]})}function Rne({address:e,chain:t,children:n,className:r,hasCopyAddressOnClick:o,schemaId:i}){let{chain:a}=Co(),c=t??a,{address:u}=wr();return!u&&!e?null:(0,p2e.jsx)(kte,{address:e||u,schemaId:i,chain:c,children:(0,p2e.jsx)(Uct,{className:r,hasCopyAddressOnClick:o,children:n})})}f();var Fct=he(ze(),1);f();f();f();f();f();f();f();f();var Th=he(ze(),1);f();var Wct=he(ze(),1);var Pg=he($e(),1);f();function zct({draggableRef:e,position:t,minGapToEdge:n=10}){var r;let o=(r=e.current)==null?void 0:r.getBoundingClientRect();if(!o||typeof window>\"u\")return t;let i=window.innerWidth,a=window.innerHeight,c=Math.min(Math.max(n,t.x),i-o.width-n),u=Math.min(Math.max(n,t.y),a-o.height-n);return{x:c,y:u}}f();var mP=he($e(),1);function jct(e,t,n){let r=(0,mP.useCallback)(a=>a.right<=window.innerWidth&&a.bottom<=window.innerHeight&&a.left>=0&&a.top>=0,[]),o=(0,mP.useCallback)((a,c)=>{let u=window.innerWidth,d=window.innerHeight,p,h;return a.right>u?p=u-a.width-10:a.left<0?p=10:p=c.x,a.bottom>d?h=d-a.height-10:a.top<0?h=10:h=c.y,{x:p,y:h}},[]),i=(0,mP.useCallback)(()=>{if(!e.current)return;let c=e.current.getBoundingClientRect(),u=o(c,t);n(d=>r(c)?d:u)},[e,t,o,n,r]);(0,mP.useEffect)(()=>(window.addEventListener(\"resize\",i),()=>window.removeEventListener(\"resize\",i)),[i])}function Vct({children:e,gridSize:t=1,startingPosition:n={x:20,y:20},snapToGrid:r=!1,disabled:o=!1}){let[i,a]=(0,Pg.useState)(n),[c,u]=(0,Pg.useState)({x:0,y:0}),[d,p]=(0,Pg.useState)({x:0,y:0}),[h,g]=(0,Pg.useState)(!1),y=(0,Pg.useRef)(null),v=(0,Pg.useCallback)(R=>Math.round(R/t)*t,[t]),x=(0,Pg.useCallback)(R=>{o||(g(!0),p({x:R.clientX,y:R.clientY}),u({x:R.clientX-i.x,y:R.clientY-i.y}))},[i,o]);return(0,Pg.useEffect)(()=>{if(!h)return;let R=M=>{let P=zct({draggableRef:y,position:{x:M.clientX-c.x,y:M.clientY-c.y}});a(P)},S=M=>{if(Math.hypot(M.clientX-d.x,M.clientY-d.y)>2){M.preventDefault(),M.stopPropagation();let z=V=>{V.preventDefault(),V.stopPropagation(),document.removeEventListener(\"click\",z,!0)};document.addEventListener(\"click\",z,!0)}a(z=>({x:r?v(z.x):z.x,y:r?v(z.y):z.y})),g(!1)};return document.addEventListener(\"pointermove\",R),document.addEventListener(\"pointerup\",S),()=>{document.removeEventListener(\"pointermove\",R),document.removeEventListener(\"pointerup\",S)}},[h,c,r,v,d]),jct(y,i,a),(0,Wct.jsx)(\"div\",{ref:y,\"data-testid\":\"ockDraggable\",className:be(\"fixed touch-none select-none\",\"cursor-grab active:cursor-grabbing\"),style:{left:`${i.x}px`,top:`${i.y}px`},onPointerDown:x,children:e})}f();var Ine=he($e(),1);function gP(){let[e,t]=(0,Ine.useState)(!1);return(0,Ine.useEffect)(()=>{t(!0)},[]),e}var Aw=he($e(),1);f();f();function h2e(){return typeof window>\"u\"?{x:100,y:100}:{x:window.innerWidth-56-16,y:window.innerHeight-56-16}}function Gct({draggable:e,draggableStartingPosition:t}){return e?{draggable:e,draggableStartingPosition:t??h2e()}:{draggable:e}}f();var B1=he(ze(),1);f();var Pm=he(ze(),1),One=he($e(),1);f();f();f();var qct=\"cdp_getTokensForAddresses\",Kct=\"cdp_getPriceQuote\";f();f();var Yct=()=>{if(!im.rpcUrl&&!im.apiKey)throw new Error(\"API Key Unset: You can use the Coinbase Developer Platform RPC by providing an API key in `OnchainKitProvider` or by manually calling `setOnchainKitConfig`: https://portal.cdp.coinbase.com/products/onchainkit\");return im.rpcUrl||`https://api.developer.coinbase.com/rpc/v1/${im.chain.name.replace(\" \",\"-\").toLowerCase()}/${im.apiKey}`};function SXt(e,t){return{id:1,jsonrpc:Dnt,method:e,params:t}}async function TXt(e){var t;let n={...Dee},r=await pR.getClientMeta().catch(()=>null);return r&&(n[\"OnchainKit-Client-Fid\"]=((t=r.clientFid)==null?void 0:t.toString())??\"\",n[\"OnchainKit-Mode\"]=r.mode),e?Object.values(Po).includes(e)?{...n,[dbe]:e}:{...n,[dbe]:Po.API}:n}async function y5(e,t,n){try{let r=SXt(e,t),o=Yct();return await(await fetch(o,{body:JSON.stringify(r),headers:await TXt(n),method:Mnt})).json()}catch(r){throw console.log(`sendRequest: error sending request: ${r.message}`),r}}async function Zct(e,t=Po.API){let{addresses:n}=e;try{let r=await y5(qct,[{addresses:n}],t);return r.error?{code:`${r.error.code}`,error:\"Error fetching portfolio token balances\",message:r.error.message}:r.result}catch(r){return{code:\"uncaught-portfolio\",error:\"Something went wrong\",message:`Error fetching portfolio token balances: ${r}`}}}f();function b5(e){return e!==null&&typeof e==\"object\"&&\"error\"in e}function sp({address:e,enabled:t=!0},n=Po.Hook){return Nf({queryKey:[\"usePortfolio\",e],queryFn:async()=>{let r=await Zct({addresses:[e]},n);if(b5(r))throw new Error(r.message);return r.portfolios.length===0?{address:e,portfolioBalanceUsd:0,tokenBalances:[]}:r.portfolios[0]},retry:!1,enabled:!!e&&t,refetchOnWindowFocus:!0,staleTime:1e3*60*5,refetchOnMount:!0,refetchInterval:1e3*60*15,refetchIntervalInBackground:!0})}function HH({classNames:e}){let{address:t,chain:n,animations:r}=vi(),[o,i]=(0,One.useState)(\"Copy\"),a=(0,One.useCallback)(async()=>{try{await navigator.clipboard.writeText(String(t)),i(\"Copied\"),setTimeout(()=>i(\"Copy\"),2e3)}catch(c){console.error(\"Failed to copy address:\",c),i(\"Failed to copy\"),setTimeout(()=>i(\"Copy\"),2e3)}},[t]);return!t||!n?(0,Pm.jsx)(\"div\",{className:\"mt-1 h-28 w-10 px-4 py-3\"}):(0,Pm.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_AddressDetails\",className:be(\"mt-2 flex w-88 flex-col items-center justify-center px-4 py-3\",ct.foreground,rt.body,r.content,e?.container),children:[(0,Pm.jsx)(ap,{address:t,chain:n,className:be(\"pointer-events-none h-10 w-10\",e?.avatar)}),(0,Pm.jsxs)(\"div\",{className:\"group relative mt-2 text-base\",children:[(0,Pm.jsx)(\"button\",{type:\"button\",onClick:a,\"data-testid\":\"ockWalletAdvanced_NameButton\",children:(0,Pm.jsx)(wh,{address:t,chain:n,className:be(\"hover:text-[var(--ock-text-foreground-muted)] active:text-[var(--ock-text-primary)]\",e?.nameButton)})}),(0,Pm.jsx)(\"button\",{type:\"button\",onClick:a,className:be(Qt.alternate,rt.legal,ct.foreground,bt.default,bt.radius,Qd.tooltip,\"absolute top-full right-0 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-live\":\"polite\",\"data-testid\":\"ockWalletAdvanced_NameTooltip\",children:o})]}),(0,Pm.jsx)(CXt,{className:e?.fiatBalance})]})}function CXt({className:e}){let{address:t}=wr(),{data:n,isFetching:r}=sp({address:t},Po.Wallet),o=n?.portfolioBalanceInUsd,i=new Intl.NumberFormat(\"en-US\",{style:\"currency\",currency:\"USD\"}).format(Number(o));return r?(0,Pm.jsx)(\"div\",{className:\"mt-1 h-8 w-full\",children:(0,Pm.jsx)(Nm,{})}):o==null?null:(0,Pm.jsx)(\"div\",{className:be(rt.title1,\"mt-1 font-normal\",e),\"data-testid\":\"ockWalletAdvanced_AddressBalance\",children:i})}f();var Dg=he(ze(),1);var WBr=he($e(),1);f();var kne=he(ze(),1),Jct=he($e(),1);f();function RXt(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return t}function IXt(e){let t=Math.abs(e)%360,n=Math.abs(e>>8)%31+50,r=Math.abs(e>>16)%21+40;return`hsl(${t}, ${n}%, ${r}%)`}function Qct(e){let t=RXt(`${e}`);return IXt(t)}function hw({className:e,size:t=24,token:n}){let{image:r,name:o}=n,i=(0,Jct.useMemo)(()=>({image:{width:`${t}px`,height:`${t}px`,minWidth:`${t}px`,minHeight:`${t}px`},placeholderImage:{background:Qct(o),width:`${t}px`,height:`${t}px`,minWidth:`${t}px`,minHeight:`${t}px`}}),[t,o]);return r?(0,kne.jsx)(\"img\",{className:be(\"overflow-hidden rounded-[50%]\",e),alt:\"token-image\",\"data-testid\":\"ockTokenImage_Image\",style:i.image,src:r}):(0,kne.jsx)(\"div\",{className:be(\"overflow-hidden rounded-full\",e),\"data-testid\":\"ockTokenImage_NoImage\",style:i.image,children:(0,kne.jsx)(\"div\",{style:i.placeholderImage})})}f();var hE=he(ze(),1),$ct=he($e(),1);f();function Xct(e,t={}){if(e===void 0)return\"\";let{locale:n,minimumFractionDigits:r,maximumFractionDigits:o}=t;return Number(e).toLocaleString(n,{minimumFractionDigits:r,maximumFractionDigits:o})}var eut=(0,$ct.memo)(function({className:t,token:n,amount:r,onClick:o,hideImage:i,hideSymbol:a}){let c=Aa();return(0,hE.jsxs)(\"button\",{\"data-testid\":\"ockTokenRow_Container\",type:\"button\",className:be(c,Qt.default,\"flex w-full items-center justify-between px-2 py-1\",t),onClick:()=>o?.(n),children:[(0,hE.jsxs)(\"span\",{className:\"flex max-w-full items-center gap-3\",children:[!i&&(0,hE.jsx)(hw,{token:n,size:28}),(0,hE.jsxs)(\"span\",{className:\"flex min-w-0 flex-col items-start\",children:[(0,hE.jsx)(\"span\",{className:be(rt.headline,\"max-w-full overflow-hidden text-ellipsis whitespace-nowrap text-left\"),children:n.name.trim()}),!a&&(0,hE.jsx)(\"span\",{className:be(rt.body,ct.foregroundMuted),children:n.symbol})]})]}),(0,hE.jsx)(\"span\",{\"data-testid\":\"ockTokenRow_Amount\",className:be(rt.body,ct.foregroundMuted),children:Xct(r,{minimumFractionDigits:2,maximumFractionDigits:Number(r)<1?5:2})})]})});f();var m2e=he(ze(),1);var IBr=(0,m2e.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-searchIconSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,m2e.jsx)(\"path\",{d:\"M16 14.23L11.89 10.12C12.59 9.09 13 7.84 13 6.5C13 2.91 10.09 0 6.5 0C2.91 0 0 2.91 0 6.5C0 10.09 2.91 13 6.5 13C7.84 13 9.09 12.59 10.13 11.89L14.23 16L16 14.23ZM6.5 10.5C4.29 10.5 2.5 8.71 2.5 6.5C2.5 4.29 4.29 2.5 6.5 2.5C8.71 2.5 10.5 4.29 10.5 6.5C10.5 8.71 8.71 10.5 6.5 10.5Z\",className:tn.foreground})});var YBr=he(Ny(),1);f();var Mg=he(ze(),1),nut=he($e(),1);f();var g2e=he(ze(),1);var tut=(0,g2e.jsx)(\"svg\",{\"data-testid\":\"ock-caretDownSvg\",role:\"img\",\"aria-label\":\"ock-caretDownSvg\",width:\"16\",height:\"17\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,g2e.jsx)(\"path\",{d:\"M12.95 4.85999L8.00001 9.80999L3.05001 4.85999L1.64001 6.27999L8.00001 12.64L14.36 6.27999L12.95 4.85999Z\",className:tn.foreground})});var rut=(0,nut.forwardRef)(function({onClick:t,token:n,isOpen:r,className:o},i){return(0,Mg.jsxs)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenSelectButton_Button\",className:be(Qt.default,Qt.shadow,bt.radius,bt.lineDefault,\"flex w-fit items-center gap-2 px-3 py-1\",o),onClick:t,ref:i,children:[n?(0,Mg.jsxs)(Mg.Fragment,{children:[(0,Mg.jsx)(\"div\",{className:\"w-4\",children:(0,Mg.jsx)(hw,{token:n,size:16})}),(0,Mg.jsx)(\"span\",{className:be(rt.headline,ct.foreground),\"data-testid\":\"ockTokenSelectButton_Symbol\",children:n.symbol})]}):(0,Mg.jsx)(\"span\",{className:rt.headline,children:\"Select token\"}),(0,Mg.jsxs)(\"div\",{className:\"relative flex items-center justify-center\",children:[(0,Mg.jsx)(\"div\",{className:\"absolute top-0 left-0 h-4 w-4\"}),r?xne:tut]})]})});pn();function zH({classNames:e}){let{address:t}=wr(),{animations:n}=vi(),{data:r,isFetching:o}=sp({address:t},Po.Wallet),i=r?.tokenBalances;return o||!i||i.length===0?(0,Dg.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_LoadingPlaceholder\",className:\"mx-auto my-2 h-44 w-80 px-4 py-3\"}):(0,Dg.jsx)(\"div\",{className:be(\"flex flex-col items-center gap-4\",\"my-2 h-44 max-h-44\",\"scrollbar-hidden w-88 overflow-y-auto px-4 py-3\",n.content,e?.container),\"data-testid\":\"ockWalletAdvanced_TokenHoldings\",children:i.map((a,c)=>(0,Dg.jsx)(OXt,{token:{address:a.address,chainId:a.chainId,decimals:a.decimals,image:a.image,name:a.name,symbol:a.symbol},balance:Number(na(BigInt(a.cryptoBalance),a.decimals)),valueInFiat:Number(a.fiatBalance),classNames:e?.tokenDetails},`${a.address}-${c}`))})}function OXt({token:e,balance:t,valueInFiat:n,classNames:r,tokenImageSize:o=32}){var i;let a=new Intl.NumberFormat(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:5}).format(t),c=new Intl.NumberFormat(\"en-US\",{style:\"currency\",currency:\"USD\"}).format(n);return(0,Dg.jsxs)(\"div\",{className:be(\"flex w-full flex-row items-center justify-between\",r?.container),children:[(0,Dg.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TokenDetails_TokenImage\",className:be(\"flex flex-row items-center gap-2\",r?.tokenImage),children:[(0,Dg.jsx)(hw,{token:e,size:o}),(0,Dg.jsxs)(\"div\",{className:\"flex flex-col\",children:[(0,Dg.jsx)(\"span\",{className:be(rt.label1,ct.foreground,\"max-w-52 overflow-hidden text-ellipsis whitespace-nowrap text-left\",r?.tokenName),children:(i=e.name)==null?void 0:i.trim()}),(0,Dg.jsx)(\"span\",{className:be(rt.legal,ct.foregroundMuted,r?.tokenBalance),children:`${a} ${e.symbol}`})]})]}),(0,Dg.jsx)(\"span\",{className:be(rt.label2,ct.foregroundMuted,r?.fiatValue),children:c})]})}f();var mw=he(ze(),1);f();var jH=he(ze(),1);var out=(0,jH.jsxs)(\"svg\",{\"data-testid\":\"ock-addSvg\",role:\"img\",\"aria-label\":\"ock-addSvg\",width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,jH.jsx)(\"title\",{children:\"Add\"}),(0,jH.jsx)(\"path\",{d:\"M7.125 0H5.875V5.37501L0.5 5.37501L0.5 6.62501H5.875V12H7.125V6.62501H12.5V5.37501H7.125V0Z\",className:tn.foreground})]});f();var WH=he(ze(),1);var iut=(0,WH.jsxs)(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,WH.jsx)(\"title\",{children:\"Arrow Up Right\"}),(0,WH.jsx)(\"path\",{d:\"M2.44196 2.25H8.93304L1 10.183L1.88388 11.0669L9.81695 3.13386V9.625H11.067V1H2.44196V2.25Z\",className:tn.foreground})]});var VH=he($e(),1);function GH({classNames:e}){let{address:t,chain:n,setActiveFeature:r,animations:o}=vi(),{projectId:i}=Co(),{sendAnalytics:a}=_a(),{isFetching:c}=sp({address:t},Po.Wallet),u=(0,VH.useCallback)(g=>{a(Jv.OptionSelected,{option:g})},[a]),d=(0,VH.useCallback)(()=>{if(u(eE.Buy),!i||!t||!n?.name)return;let g=new URL(\"https://pay.coinbase.com/buy/select-asset\"),y=new URLSearchParams({appId:i,destinationWallets:JSON.stringify([{address:t,blockchains:[n.name.toLowerCase()]}]),defaultAsset:\"USDC\",defaultPaymentMethod:\"CRYPTO_ACCOUNT\",presetFiatAmount:\"25\"});window.open(`${g}?${y}`,\"popup\",\"width=400,height=600,scrollbars=yes\")},[t,n?.name,i,u]),p=(0,VH.useCallback)(()=>{u(eE.Send),r(\"send\")},[u,r]),h=(0,VH.useCallback)(()=>{u(eE.Swap),r(\"swap\")},[r,u]);return c?(0,mw.jsx)(fw,{className:\"mx-auto my-3 h-16 w-80 px-4 py-3\"}):(0,mw.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TransactionActions\",className:be(\"my-3 flex w-88 flex-row justify-between gap-2 px-4 py-3\",o.content,e?.container),children:[(0,mw.jsx)(y2e,{icon:out,label:\"Buy\",action:d,classNames:e?.leftAction}),(0,mw.jsx)(y2e,{icon:iut,label:\"Send\",action:p,classNames:e?.middleAction}),(0,mw.jsx)(y2e,{icon:pP,label:\"Swap\",action:h,classNames:e?.rightAction})]})}function y2e({icon:e,label:t,action:n,classNames:r}){return(0,mw.jsxs)(\"button\",{type:\"button\",className:be(\"flex flex-col items-center justify-center gap-2 pt-2.5 pb-2\",\"h-16 flex-1\",bt.radius,Qt.alternate,r?.container),onClick:n,\"aria-label\":t,children:[(0,mw.jsx)(\"span\",{className:be(\"flex h-4 w-4 flex-col items-center justify-center\",r?.icon),children:e}),(0,mw.jsx)(\"span\",{className:be(rt.label2,ct.foreground,\"flex flex-col justify-center\",r?.label),children:t})]})}f();var Mm=he(ze(),1);f();var aut=he(ze(),1);function Lg({children:e,className:t,onClick:n,ariaLabel:r}){return(0,aut.jsx)(\"button\",{type:\"button\",onClick:n,\"data-testid\":\"ockPressableIconButton\",\"aria-label\":r,className:be(Qt.default,bt.radiusInner,bt.default,\"flex items-center justify-center\",t),children:e})}f();var Eh=he(ze(),1);var sut=(0,Eh.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 155 155\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:tn.foreground,children:[(0,Eh.jsx)(\"title\",{children:\"BaseScan\"}),(0,Eh.jsxs)(\"g\",{clipPath:\"url(#clip0_13027_2497)\",children:[(0,Eh.jsx)(\"mask\",{id:\"mask0_13027_2497\",maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"155\",height:\"155\",children:(0,Eh.jsx)(\"path\",{d:\"M155 0H0V155H155V0Z\",fill:\"white\"})}),(0,Eh.jsxs)(\"g\",{mask:\"url(#mask0_13027_2497)\",children:[(0,Eh.jsx)(\"path\",{d:\"M32.6921 73.9892C32.6923 73.1255 32.8626 72.2709 33.1934 71.4736C33.5243 70.6763 34.009 69.9526 34.6198 69.344C35.2306 68.7349 35.9555 68.2524 36.7528 67.9249C37.5501 67.5974 38.4041 67.4309 39.2658 67.4352L50.165 67.4708C51.9029 67.4708 53.5694 68.1625 54.7982 69.3935C56.0269 70.6244 56.7173 72.2938 56.7173 74.035V115.321C57.9442 114.956 59.5201 114.567 61.2447 114.161C62.4425 113.879 63.51 113.2 64.2735 112.234C65.0377 111.268 65.4532 110.071 65.4532 108.838V57.6245C65.4532 55.8834 66.1432 54.2137 67.3723 52.9825C68.6009 51.7513 70.2673 51.0594 72.0054 51.059H82.926C84.6642 51.0594 86.3306 51.7513 87.5591 52.9825C88.7883 54.2137 89.4782 55.8834 89.4782 57.6245V105.156C89.4782 105.156 92.2127 104.048 94.8761 102.921C95.8652 102.502 96.7096 101.801 97.3036 100.904C97.8977 100.007 98.2143 98.955 98.2155 97.8785V41.2141C98.2155 39.4734 98.9055 37.804 100.134 36.573C101.363 35.342 103.029 34.6503 104.767 34.65H115.687C117.425 34.65 119.092 35.3415 120.32 36.5726C121.549 37.8036 122.239 39.4732 122.239 41.2141V87.8759C131.708 81.0016 141.303 72.7341 148.917 62.793C150.021 61.3498 150.752 59.6554 151.044 57.8606C151.336 56.0659 151.18 54.2266 150.59 52.5069C147.066 42.3477 141.463 33.0375 134.141 25.172C126.819 17.3065 117.938 11.059 108.067 6.82926C98.1968 2.59956 87.5531 0.480761 76.8183 0.608476C66.0835 0.736197 55.4931 3.10763 45.7254 7.57097C35.9578 12.0344 27.2278 18.4914 20.0941 26.5289C12.9603 34.5663 7.58002 44.0072 4.29747 54.2474C1.01488 64.4878 -0.0977017 75.3016 1.03092 85.9972C2.15954 96.6928 5.50451 107.035 10.8518 116.361C11.7833 117.97 13.1537 119.279 14.8021 120.135C16.4504 120.99 18.3083 121.356 20.1573 121.191C22.223 121.01 24.7949 120.752 27.8528 120.391C29.1839 120.24 30.4129 119.604 31.3056 118.603C32.1982 117.602 32.6923 116.307 32.6933 114.965V73.9892\",fill:\"white\"}),(0,Eh.jsx)(\"path\",{d:\"M32.6921 73.9892C32.6923 73.1255 32.8626 72.2709 33.1934 71.4736C33.5243 70.6763 34.009 69.9526 34.6198 69.344C35.2306 68.7349 35.9555 68.2524 36.7528 67.9249C37.5501 67.5974 38.4041 67.4309 39.2658 67.4352L50.165 67.4708C51.9029 67.4708 53.5694 68.1625 54.7982 69.3935C56.0269 70.6244 56.7173 72.2938 56.7173 74.035V115.321C57.9442 114.956 59.5201 114.567 61.2447 114.161C62.4425 113.879 63.51 113.2 64.2735 112.234C65.0377 111.268 65.4532 110.071 65.4532 108.838V57.6245C65.4532 55.8834 66.1432 54.2137 67.3723 52.9825C68.6009 51.7513 70.2673 51.0594 72.0054 51.059H82.926C84.6642 51.0594 86.3306 51.7513 87.5591 52.9825C88.7883 54.2137 89.4782 55.8834 89.4782 57.6245V105.156C89.4782 105.156 92.2127 104.048 94.8761 102.921C95.8652 102.502 96.7096 101.801 97.3036 100.904C97.8977 100.007 98.2143 98.955 98.2155 97.8785V41.2141C98.2155 39.4734 98.9055 37.804 100.134 36.573C101.363 35.342 103.029 34.6503 104.767 34.65H115.687C117.425 34.65 119.092 35.3415 120.32 36.5726C121.549 37.8036 122.239 39.4732 122.239 41.2141V87.8759C131.708 81.0016 141.303 72.7341 148.917 62.793C150.021 61.3498 150.752 59.6554 151.044 57.8606C151.336 56.0659 151.18 54.2266 150.59 52.5069C147.066 42.3477 141.463 33.0375 134.141 25.172C126.819 17.3065 117.938 11.059 108.067 6.82926C98.1968 2.59956 87.5531 0.480761 76.8183 0.608476C66.0835 0.736197 55.4931 3.10763 45.7254 7.57097C35.9578 12.0344 27.2278 18.4914 20.0941 26.5289C12.9603 34.5663 7.58002 44.0072 4.29747 54.2474C1.01488 64.4878 -0.0977017 75.3016 1.03092 85.9972C2.15954 96.6928 5.50451 107.035 10.8518 116.361C11.7833 117.97 13.1537 119.279 14.8021 120.135C16.4504 120.99 18.3083 121.356 20.1573 121.191C22.223 121.01 24.7949 120.752 27.8528 120.391C29.1839 120.24 30.4129 119.604 31.3056 118.603C32.1982 117.602 32.6923 116.307 32.6933 114.965V73.9892\",stroke:\"white\"}),(0,Eh.jsx)(\"path\",{d:\"M32.4531 140.209C43.9644 148.599 57.5682 153.635 71.7594 154.759C85.9501 155.884 100.175 153.054 112.86 146.581C125.545 140.109 136.195 130.248 143.632 118.088C151.07 105.927 155.004 91.9428 155 77.6816C155 75.9024 154.918 74.1419 154.8 72.3911C126.608 114.514 74.5543 134.207 32.4557 140.203\",fill:\"#C0D0DB\"})]})]}),(0,Eh.jsx)(\"defs\",{children:(0,Eh.jsx)(\"clipPath\",{id:\"clip0_13027_2497\",children:(0,Eh.jsx)(\"rect\",{width:\"155\",height:\"155\",fill:\"white\"})})})]});f();var yP=he(ze(),1);var Nne=(0,yP.jsxs)(\"svg\",{role:\"img\",\"aria-label\":\"ock-disconnect-svg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 16 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,yP.jsx)(\"title\",{children:\"Disconnect\"}),(0,yP.jsx)(\"path\",{d:\"M11.0668 0.91803L11.0668 2.93852L2.02049 2.93852L2.02049 15.0615L11.0668 15.0615L11.0668 17.082L-7.06549e-07 17.082L0 0.918029L11.0668 0.91803Z\",className:tn.foreground}),(0,yP.jsx)(\"path\",{d:\"M12.3273 12.8963L16.0002 9.02606L12.346 4.95902L10.843 6.30941L12.3623 8.00032L5.53321 8.00032L5.53321 10.0208L12.2706 10.0208L10.8617 11.5054L12.3273 12.8963Z\",className:tn.foreground})]});f();var Ah=he(ze(),1);var cut=(0,Ah.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,Ah.jsx)(\"title\",{children:\"QR Code\"}),(0,Ah.jsx)(\"rect\",{width:\"28\",height:\"28\",rx:\"8\",className:An.default}),(0,Ah.jsx)(\"path\",{d:\"M10 10H11.5V11.5H10V10Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M8 13.5H13.5V8H8V13.5ZM9.25 9.25H12.25V12.25H9.25V9.25Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M18 10H16.5V11.5H18V10Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M14.5 8V13.5H20V8H14.5ZM18.75 12.25H15.75V9.25H18.75V12.25Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M10 16.5H11.5V18H10V16.5Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M8 20H13.5V14.5H8V20ZM9.25 15.75H12.25V18.75H9.25V15.75Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M18 16.75H18.75V14.5H20V18H16.75V15.75H15.75V20H14.5V14.5H18V16.75Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M18 18.75H16.75V20H18V18.75Z\",className:tn.foreground}),(0,Ah.jsx)(\"path\",{d:\"M18.75 18.75H20V20H18.75V18.75Z\",className:tn.foreground})]});f();var qH=he(ze(),1);var uut=(0,qH.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 32 32\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,qH.jsx)(\"title\",{children:\"Refresh\"}),(0,qH.jsx)(\"path\",{d:\"M15.9852 5.32694C10.0942 5.32694 5.31852 10.1026 5.31852 15.9936C5.31852 21.8846 10.0942 26.6603 15.9852 26.6603C21.4247 26.6603 25.9132 22.5887 26.5693 17.3269H29.2527C28.5837 24.0647 22.899 29.3269 15.9852 29.3269C8.62139 29.3269 2.65186 23.3574 2.65186 15.9936C2.65186 8.62982 8.62139 2.66028 15.9852 2.66028C20.3471 2.66028 24.2197 4.7548 26.6523 7.99294L29.3184 5.3269V13.3269H21.3184L24.7428 9.90246C22.8156 7.13675 19.6117 5.32694 15.9852 5.32694Z\",className:tn.foreground})]});var PR=he($e(),1);function KH({classNames:e}){let{address:t}=wr(),{handleClose:n,setActiveFeature:r,animations:o}=vi(),{disconnect:i,connectors:a}=UD(),{sendAnalytics:c}=_a(),{refetch:u}=sp({address:t},Po.Wallet),d=(0,PR.useCallback)(x=>{c(Jv.OptionSelected,{option:x})},[c]),p=(0,PR.useCallback)(x=>{c(Jv.Disconnect,{component:\"WalletAdvanced\",walletProvider:x})},[c]),h=(0,PR.useCallback)(()=>{d(eE.Explorer),window.open(`https://basescan.org/address/${t}`,\"_blank\")},[t,d]),g=(0,PR.useCallback)(()=>{var x;let R=((x=a[0])==null?void 0:x.name)||\"unknown\";p(R),n();for(let S of a)i({connector:S})},[i,a,n,p]),y=(0,PR.useCallback)(()=>{d(eE.QR),r(\"qr\")},[r,d]),v=(0,PR.useCallback)(async()=>{d(eE.Refresh),await u()},[u,d]);return(0,Mm.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_WalletActions\",className:be(\"flex w-88 items-center justify-between px-4 py-3\",o.content,e?.container),children:[(0,Mm.jsxs)(\"div\",{className:\"flex items-center\",children:[(0,Mm.jsx)(Lg,{ariaLabel:\"Open transaction history\",onClick:h,children:(0,Mm.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TransactionsButton\",className:be(\"h-7 w-7 scale-110 p-2\",e?.baseScanIcon),children:sut})}),(0,Mm.jsx)(Lg,{ariaLabel:\"Show QR code\",onClick:y,children:(0,Mm.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_QrButton\",className:be(\"h-7 w-7 scale-110\",e?.qrIcon),children:cut})})]}),(0,Mm.jsxs)(\"div\",{className:\"flex items-center\",children:[(0,Mm.jsx)(Lg,{ariaLabel:\"Disconnect wallet\",onClick:g,children:(0,Mm.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_DisconnectButton\",className:be(\"h-7 w-7 scale-110 p-2\",e?.disconnectIcon),children:Nne})}),(0,Mm.jsx)(Lg,{ariaLabel:\"Refresh portfolio data\",onClick:v,children:(0,Mm.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_RefreshButton\",className:be(\"h-7 w-7 scale-110 p-2\",e?.refreshIcon),children:uut})})]})]})}f();var Lm=he(ze(),1);f();var YH=he(ze(),1);var lut=he(Ny(),1);function dut({children:e,className:t,isOpen:n,onClose:r,triggerRef:o,\"aria-label\":i,\"aria-labelledby\":a,\"aria-describedby\":c}){let u=Aa();if(!n)return null;let d=(0,YH.jsx)(\"div\",{\"data-portal-origin\":\"true\",children:(0,YH.jsx)(cw,{active:n,children:(0,YH.jsx)(sw,{onDismiss:r,triggerRef:o,preventTriggerEvents:!!o,children:(0,YH.jsx)(\"div\",{\"aria-describedby\":c,\"aria-label\":i,\"aria-labelledby\":a,\"data-testid\":\"ockBottomSheet\",role:\"dialog\",className:be(u,An.default,Qd.modal,\"fixed right-0 bottom-0 left-0\",\"transform rounded-t-3xl p-2 transition-transform\",\"fade-in slide-in-from-bottom-1/2 animate-in\",t),children:e})})})});return(0,lut.createPortal)(d,document.body)}var pz=he($e(),1);f();var Ug=he(ze(),1);f();var fut=he(ze(),1);var put=he($e(),1);function Pne({label:e,copyValue:t,onSuccess:n,onError:r,className:o,\"aria-label\":i}){let a=(0,put.useCallback)(()=>Ene({copyValue:t,onSuccess:n,onError:r}),[t,n,r]);return(0,fut.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockCopyButton\",className:o,onClick:a,onKeyDown:a,\"aria-label\":i,children:e})}f();var _h=he(ze(),1),Jne=he($e(),1);f();var hut=\"#ffffff\",mut={x:0,y:0},gut={x:1,y:0};var b2e={default:\"blue\",base:\"baseBlue\",cyberpunk:\"pink\",hacker:\"black\"},v2e={default:\"default\",base:\"blue\",cyberpunk:\"magenta\",hacker:\"black\"},w2e={blue:{startColor:\"#266EFF\",endColor:\"#45E1E5\"},pink:{startColor:\"#EE5A67\",endColor:\"#CE46BD\"},black:{startColor:\"#a1a1aa\",endColor:\"#27272a\"},baseBlue:{startColor:\"#0052ff\",endColor:\"#b2cbff\"}},yut={default:[[\"#0F27FF\",\"39.06%\"],[\"#6100FF\",\"76.56%\"],[\"#201F1D\",\"100%\"]],blue:[[\"#0F6FFF\",\"39.06%\"],[\"#0F27FF\",\"76.56%\"],[\"#201F1D\",\"100%\"]],magenta:[[\"#CF00F1\",\"36.46%\"],[\"#7900F1\",\"68.58%\"],[\"#201F1D\",\"100%\"]],black:[[\"#d4d4d8\",\"36.46%\"],[\"#201F1D\",\"68.58%\"],[\"#201F1D\",\"100%\"]]};f();var mE=he(ze(),1),wut=he($e(),1);f();var but=he($e(),1),x2e=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],E2e=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];function kXt(e,t,n,r){return Math.sqrt((r-t)**2+(n-e)**2)}function NXt(e,t,n){var r,o,i,a,c,u;return!!((r=x2e[e])!=null&&r[t]||(o=x2e[e-n+bP])!=null&&o[t]||(i=x2e[e])!=null&&i[t-n+bP]||(a=E2e[e])!=null&&a[t]||(c=E2e[e-n+bP])!=null&&c[t]||(u=E2e[e])!=null&&u[t-n+bP])}function PXt(e,t,{hasLogo:n,logoSize:r,logoMargin:o,logoBorderRadius:i,matrixLength:a,dotSize:c}){if(!n)return!1;let d=(r+o*2)/c,p=Math.floor(a/2);if(i>=r/2){let y=d/2;return kXt(t,e,p,p)-.5<=y}let g=Math.ceil(d/2);return e<=p+g&&e>=p-g&&t<=p+g&&t>=p-g}function MXt(e,t,n){return`\\n    M ${e-n} ${t}\\n    A ${n} ${n} 0 1 1 ${e+n} ${t}\\n    A ${n} ${n} 0 1 1 ${e-n} ${t}`}var bP=7;function vut({matrix:e,size:t,logoSize:n,logoMargin:r,logoBorderRadius:o,hasLogo:i}){return(0,but.useMemo)(()=>{let c=t/e.length,u=\"\",d=e.length,p=t/d;return e.forEach((h,g)=>{h.forEach((y,v)=>{if(!(NXt(g,v,d)||PXt(g,v,{hasLogo:i,logoSize:n,logoMargin:r,logoBorderRadius:o,matrixLength:d,dotSize:p}))&&y){let x=c*v+c/2,R=c*g+c/2;u+=MXt(x,R,c/2)}})}),u},[i,o,r,n,e,t])}function xut(e,t,n,r,o){let i=e/t,a=i*bP,c=i*2,u=i+1;return(0,wut.useMemo)(()=>(0,mE.jsxs)(\"g\",{children:[(0,mE.jsx)(\"rect\",{x:0,y:0,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-top-left-${o}`}),(0,mE.jsx)(\"rect\",{x:0,y:e-a,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-bottom-left-${o}`}),(0,mE.jsx)(\"rect\",{x:e-a,y:0,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-top-right-${o}`}),(0,mE.jsx)(\"circle\",{cx:a/2,cy:a/2,r:c,stroke:n,strokeWidth:u,fill:\"none\"}),(0,mE.jsx)(\"circle\",{cx:a/2,cy:e-a/2,r:c,stroke:n,strokeWidth:u,fill:\"none\"}),(0,mE.jsx)(\"circle\",{cx:e-a/2,cy:a/2,r:c,stroke:n,strokeWidth:u,fill:\"none\"})]}),[n,c,u,r,a,e,o])}f();var gw=he(ze(),1),Une=he($e(),1),A2e=he(_ut(),1);var DXt=A2e.default.renderToString(ene),LXt=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(DXt)}`;function Sut({size:e,logo:t=LXt,logoSize:n,logoBackgroundColor:r,logoMargin:o,logoBorderRadius:i}){return(0,Une.useMemo)(()=>{let c=Une.default.isValidElement(t)?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(A2e.default.renderToString(t))}`:t,u=(e-n-o*2)/2,d=n+o*2;return(0,gw.jsxs)(\"g\",{transform:`translate(${u}, ${u})`,children:[(0,gw.jsx)(\"defs\",{children:(0,gw.jsx)(\"clipPath\",{id:\"clip-logo\",children:(0,gw.jsx)(\"rect\",{width:n,height:n,rx:i,ry:i})})}),(0,gw.jsx)(\"g\",{children:(0,gw.jsx)(\"rect\",{width:d,height:d,rx:i,ry:i,fill:r})}),(0,gw.jsx)(\"g\",{transform:`translate(${o}, ${o})`,children:(0,gw.jsx)(\"image\",{\"data-testid\":\"qr-code-logo\",width:n,height:n,preserveAspectRatio:\"xMidYMid slice\",href:String(c),clipPath:\"url(#clip-logo)\"})})]})},[t,r,i,o,n,e])}f();var Tlt=he(Slt(),1),Clt=he($e(),1);function Rlt(e,t){return(0,Clt.useMemo)(()=>{if(!t)return[];let r=`ethereum:${t}`,o=Array.from(Tlt.default.create(r,{errorCorrectionLevel:e}).modules.data),i=Math.sqrt(o.length);return o.reduce((a,c,u)=>(u%i===0?a.push([c]):a[a.length-1].push(c),a),[])},[e,t])}function Qne(e){return`${e*100}%`}function Ilt({value:e,size:t=237,backgroundColor:n=\"#ffffff\",logo:r,logoSize:o=50,logoBackgroundColor:i=hut,logoMargin:a=5,logoBorderRadius:c=10,quietZone:u=12,quietZoneBorderRadius:d=10,ecl:p=\"Q\",gradientType:h=\"radial\"}){let g=t*.55,y=t/2,v=(0,Jne.useId)(),R=Aa().split(\"-\")[0],S=h===\"radial\",M=S?`url(#radialGrad-${v})`:\"#000000\",P=S?n:`url(#linearGrad-${v})`,z=b2e[R]??b2e.default,V=[w2e[z].startColor,w2e[z].endColor],Q=v2e[R]??v2e.default,$=yut[Q],oe=Rlt(p,e),J=xut(t,oe.length,P,M,v),{x:re,y:q}=mut,{x:K,y:U}=gut,T=(0,Jne.useMemo)(()=>[-u,-u,t+u*2,t+u*2].join(\" \"),[u,t]),k=Sut({size:t,logo:r,logoSize:o,logoBackgroundColor:i,logoMargin:a,logoBorderRadius:c}),F=vut({matrix:oe,size:t,logoSize:o,logoMargin:a,logoBorderRadius:c,hasLogo:!!r});return!F||!e?null:(0,_h.jsxs)(\"svg\",{viewBox:T,width:t,height:t,children:[(0,_h.jsx)(\"title\",{children:\"QR Code\"}),(0,_h.jsx)(\"defs\",{children:S?(0,_h.jsx)(\"radialGradient\",{id:`radialGrad-${v}`,\"data-testid\":\"radialGrad\",rx:g,ry:g,cx:y,cy:y,gradientUnits:\"userSpaceOnUse\",children:$.map(([N,B])=>(0,_h.jsx)(\"stop\",{offset:B,stopColor:N,stopOpacity:1},`${N}${B}`))}):(0,_h.jsxs)(\"linearGradient\",{id:`linearGrad-${v}`,\"data-testid\":\"linearGrad\",x1:Qne(re),y1:Qne(q),x2:Qne(K),y2:Qne(U),gradientUnits:\"userSpaceOnUse\",children:[(0,_h.jsx)(\"stop\",{offset:\"0\",stopColor:V[0]}),(0,_h.jsx)(\"stop\",{offset:\"1\",stopColor:V[1]})]})}),(0,_h.jsx)(\"g\",{children:(0,_h.jsx)(\"rect\",{rx:d,ry:d,x:-u,y:-u,width:t+u*2,height:t+u*2,fill:n,stroke:P,strokeWidth:2})}),(0,_h.jsxs)(\"g\",{children:[(0,_h.jsx)(\"path\",{d:F,fill:M,strokeLinecap:\"butt\",stroke:M,strokeWidth:0,opacity:.6}),J,k]})]})}f();var rz=he(ze(),1);var SP=(0,rz.jsxs)(\"svg\",{width:\"12\",height:\"13\",viewBox:\"0 0 12 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,rz.jsx)(\"title\",{children:\"Back Arrow\"}),(0,rz.jsx)(\"path\",{d:\"M5.54479 12.077L6.46623 11.2323L2.42062 6.81894H11.9999V5.56894H2.50874L6.88374 1.19394L5.99985 0.310059L0.134766 6.17515L5.54479 12.077Z\",className:tn.foreground})]});f();var TP=he(ze(),1);var Olt=(0,TP.jsxs)(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,TP.jsx)(\"title\",{children:\"Copy\"}),(0,TP.jsx)(\"path\",{d:\"M0.666016 0H9.33268V9.33333H0.666016V0ZM1.99935 1.33333V8H7.99935V1.33333H1.99935Z\",className:tn.foreground}),(0,TP.jsx)(\"path\",{d:\"M10.666 3.33333H11.9993V12H4.66602V10.6667H10.666V3.33333Z\",className:tn.foreground})]});var L1=he($e(),1);function K2e({classNames:e}){let{address:t,setActiveFeature:n,isActiveFeatureClosing:r,setIsActiveFeatureClosing:o}=vi(),[i,a]=(0,L1.useState)(\"Copy\"),[c,u]=(0,L1.useState)(\"Copy address\"),d=(0,L1.useCallback)(()=>{o(!0)},[o]),p=(0,L1.useCallback)(()=>{r&&(n(null),o(!1))},[r,n,o]),h=(0,L1.useCallback)(()=>{setTimeout(()=>{a(\"Copy\"),u(\"Copy address\")},2e3)},[]),g=(0,L1.useCallback)(()=>{u(\"Address copied\"),h()},[h]),y=(0,L1.useCallback)(()=>{u(\"Failed to copy address\"),h()},[h]),v=(0,L1.useCallback)(()=>{a(\"Copied\"),h()},[h]),x=(0,L1.useCallback)(()=>{a(\"Failed to copy\"),h()},[h]);return(0,Ug.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvancedQrReceive\",className:be(bt.radius,ct.foreground,rt.headline,\"flex flex-col items-center justify-between\",\"h-120 w-88 px-4 pt-3 pb-4\",r?\"fade-out slide-out-to-left-5 animate-out fill-mode-forwards ease-in-out\":\"fade-in slide-in-from-left-5 linear animate-in duration-150\",e?.container),onAnimationEnd:p,children:[(0,Ug.jsxs)(\"div\",{className:be(\"flex h-[34px] w-full flex-row items-center justify-between\",e?.header),children:[(0,Ug.jsx)(Lg,{ariaLabel:\"Back button\",onClick:d,children:(0,Ug.jsx)(\"div\",{className:\"p-2\",children:SP})}),(0,Ug.jsx)(\"span\",{children:\"Scan to receive\"}),(0,Ug.jsxs)(\"div\",{className:\"group relative\",children:[(0,Ug.jsx)(Pne,{label:Olt,copyValue:t??\"\",onSuccess:v,onError:x,className:be(Qt.default,bt.radiusInner,bt.default,\"flex items-center justify-center p-2\"),\"aria-label\":\"Copy your address by clicking the icon\"}),(0,Ug.jsx)(Pne,{label:i,copyValue:t??\"\",onSuccess:v,onError:x,className:be(Qt.alternate,rt.legal,ct.foreground,bt.default,bt.radius,Qd.dropdown,\"absolute top-full right-0 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-label\":\"Copy your address by clicking the tooltip\"})]})]}),(0,Ug.jsx)(Ilt,{value:t}),(0,Ug.jsx)(Pne,{copyValue:t??\"\",label:c,className:be(bt.radius,Qt.alternate,\"w-full p-3\",e?.copyButton),onSuccess:g,onError:y,\"aria-label\":\"Copy your address by clicking the button\"})]})}f();var $d=he(ze(),1);f();var Xl=he(ze(),1);f();var Dm=he(ze(),1),vE=he($e(),1);f();var oz=he(ze(),1);function klt({token:e,onClick:t,className:n,isPressable:r=!0}){let o=Aa();return(0,oz.jsxs)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenChip_Button\",className:be(o,r?[Qt.secondary,Qt.shadow]:[An.secondary,\"cursor-default\"],\"flex w-fit shrink-0 items-center gap-2 rounded-lg py-1 pr-3 pl-1 \",n),onClick:()=>t?.(e),children:[(0,oz.jsx)(hw,{token:e,size:24}),(0,oz.jsx)(\"span\",{className:rt.headline,children:e.symbol})]})}f();var A5=he(ze(),1),UR=he($e(),1);f();var iz=he(ze(),1);f();function Nlt({align:e,contentRect:t,triggerRect:n}){if(!n||!t)return 0;switch(e){case\"start\":return n.left;case\"center\":return n.left+(n.width-t.width)/2;case\"end\":return n.right-t.width}}var CP=he($e(),1),Plt=he(Ny(),1);function Mlt({align:e=\"start\",children:t,isOpen:n,offset:r=8,onClose:o,trigger:i,\"aria-label\":a}){let c=Aa(),u=(0,CP.useRef)(null),d=(0,CP.useCallback)(()=>{if(!i?.current||!u.current)return;let h=i.current.getBoundingClientRect(),g=u.current.getBoundingClientRect();if(!h||!g)return;let y=Nlt({triggerRect:h,contentRect:g,align:e});u.current.style.top=`${h.bottom+r}px`,u.current.style.left=`${y}px`},[i,r,e]);if((0,CP.useEffect)(()=>{if(n)return d(),window.addEventListener(\"resize\",d),window.addEventListener(\"scroll\",d),()=>{window.removeEventListener(\"resize\",d),window.removeEventListener(\"scroll\",d)}},[n,d]),!n)return null;let p=(0,iz.jsx)(\"div\",{className:be(c,Qd.dropdown,\"pointer-events-none fixed\"),\"data-portal-origin\":\"true\",children:(0,iz.jsx)(cw,{active:n,children:(0,iz.jsx)(sw,{onDismiss:o,triggerRef:i,children:(0,iz.jsx)(\"div\",{ref:u,className:be(\"pointer-events-auto fixed\"),role:\"listbox\",\"data-testid\":\"ockDropdownMenu\",\"aria-label\":a,children:t})})})});return(0,Plt.createPortal)(p,document.body)}function Dlt({options:e,setToken:t,token:n}){let[r,o]=(0,UR.useState)(!1),i=(0,UR.useRef)(null),a=(0,UR.useCallback)(()=>{o(!1)},[]),c=(0,UR.useCallback)(()=>{o(u=>!u)},[]);return(0,A5.jsxs)(\"div\",{className:\"relative max-w-fit shrink-0\",children:[(0,A5.jsx)(rut,{ref:i,onClick:c,isOpen:r,token:n}),(0,A5.jsx)(Mlt,{trigger:i,isOpen:r,onClose:a,align:\"end\",children:(0,A5.jsx)(\"div\",{\"data-testid\":\"ockTokenSelectDropdown_List\",className:be(bt.radius,ct.foreground,\"flex max-h-80 w-[200px] flex-col overflow-y-hidden\",\"ock-scrollbar\"),children:(0,A5.jsx)(\"div\",{className:\"overflow-y-auto\",children:e.map(u=>(0,A5.jsx)(eut,{className:be(An.inverse,\"px-4 py-2\"),token:u,onClick:()=>{t(u),o(!1)}},u.name+u.address))})})})]})}f();function Llt(e){if(!/\\\\d+\\\\.?\\\\d*e[+-]*\\\\d+/i.test(e))return e;let[t,n]=e.toLowerCase().split(\"e\"),r=Number.parseInt(n),[o,i=\"\"]=t.split(\".\"),a=o+i,c=o.length+r;return c<=0?`0.${\"0\".repeat(Math.abs(c))}${a}`:c>=a.length?a+\"0\".repeat(c-a.length):`${a.slice(0,c)}.${a.slice(c)}`}f();var tdt=he(ze(),1);var Jl=he($e(),1);ra();f();f();var Blt=\"cdp_getSwapQuote\",Ult=\"cdp_getSwapTrade\";f();f();f();function Flt(e,t){let[n,r=\"\"]=e.split(\".\"),i=r.padEnd(t,\"0\").slice(0,t);return(BigInt(n+i)*BigInt(10)**BigInt(t-i.length)).toString()}f();function Hlt(e,t){if(e.includes(\".\")){let[c,u]=e.split(\".\"),d=u.padEnd(t,\"0\");return c+d}let n=BigInt(e),r=BigInt(10)**BigInt(t),o=(n/r).toString(),a=(n%r).toString().padStart(t,\"0\").replace(/0+$/,\"\");return a?`${o}.${a}`:o}function zlt(e,t=!0,n=18){let r;return t?r=Hlt(e,n):r=Flt(e,n),r}function Xne(e){let{from:t,to:n,amount:r,amountReference:o,isAmountInDecimals:i}=e,{fromAddress:a}=e,c=o===\"from\"?t.decimals:n.decimals;return typeof r!=\"string\"||r.trim()===\"\"?{code:\"INVALID_INPUT\",error:\"Invalid input: amount must be a non-empty string\",message:\"\"}:!Number.isInteger(c)||c<0?{code:\"INVALID_INPUT\",error:\"Invalid input: decimals must be a non-negative integer\",message:\"\"}:/^(?:0|[1-9]\\\\d*|\\\\.\\\\d+)(?:\\\\.\\\\d*)?$/.test(r)?{fromAddress:a,from:t.address||\"ETH\",to:n.address||\"ETH\",amount:i?r:zlt(r,!1,c),amountReference:o||\"from\"}:{code:\"INVALID_INPUT\",error:\"Invalid input: amount must be a non-negative number string\",message:\"\"}}f();function Y2e(e,t){let{data:n,gas:r,to:o,value:i}=e;return{chainId:Number(t),data:n,gas:BigInt(r),to:o,value:BigInt(i)}}async function jlt(e,t=Po.API){var n;let o=Xne({...{amountReference:\"from\",isAmountInDecimals:!1},...e});if(\"error\"in o)return o;if(e.useAggregator&&e.amountReference===\"to\")return console.error(nl.UNSUPPORTED_AMOUNT_REFERENCE),{code:Sne,error:nl.UNSUPPORTED_AMOUNT_REFERENCE,message:\"\"};if(e.useAggregator||(o={v2Enabled:!0,...o}),e.maxSlippage){let i=e.maxSlippage;e.useAggregator&&(i=(Number(e.maxSlippage)*10).toString()),o={slippagePercentage:i,...o}}try{let i=await y5(Ult,[o],t);if(i.error)return{code:pw(\"swap\",(n=i.error)==null?void 0:n.code),error:i.error.message,message:\"\"};let a=i.result;return{approveTransaction:a.approveTx?Y2e(a.approveTx,a.chainId):void 0,fee:a.fee,quote:a.quote,transaction:Y2e(a.tx,a.chainId),warning:a.quote.warning}}catch{return{code:pw(\"uncaught-swap\"),error:\"Something went wrong\",message:\"\"}}}f();async function Wlt(e,t=Po.API){var n;let o=Xne({...{amountReference:\"from\",isAmountInDecimals:!1},...e});if(\"error\"in o)return o;if(e.useAggregator&&e.amountReference===\"to\")return console.error(nl.UNSUPPORTED_AMOUNT_REFERENCE),{code:Sne,error:nl.UNSUPPORTED_AMOUNT_REFERENCE,message:\"\"};if(e.useAggregator||(o={v2Enabled:!0,...o}),e.maxSlippage){let i=e.maxSlippage;e.useAggregator&&(i=(Number(e.maxSlippage)*10).toString()),o={slippagePercentage:i,...o}}try{let i=await y5(Blt,[o],t);return i.error?{code:pw(\"quote\",(n=i.error)==null?void 0:n.code),error:i.error.message,message:\"\"}:i.result}catch{return{code:pw(\"uncaught-quote\"),error:\"Something went wrong\",message:\"\"}}}f();function Vlt(e,t){return(Number(e)/10**t).toString()}f();var yE=\"Something went wrong. Please try again.\";f();function _5(e){var t,n;return!!(((t=e?.cause)==null?void 0:t.name)===\"UserRejectedRequestError\"||(n=e?.shortMessage)!=null&&n.includes(\"User rejected the request.\"))}f();var Glt=he($e(),1);f();f();function az(e){return e===\"CONFIRMED\"?\"success\":e===\"PENDING\"?\"pending\":e}function $ne(e){return typeof e==\"string\"?e:e.id}function qlt({accountConfig:e,lifecycleStatus:t,updateLifecycleStatus:n}){var r;let o=t.statusName===\"transactionApproved\"?(r=t.statusData)==null?void 0:r.callsId:void 0,{data:i}=LD({id:o||\"\",query:{refetchInterval:a=>{var c;return az((c=a.state.data)==null?void 0:c.status)===\"success\"?!1:1e3},enabled:o!==void 0}});return(0,Glt.useCallback)(async()=>{if(az(i?.status)===\"success\"&&i?.receipts){let a=await V0(e,{confirmations:1,hash:i.receipts[i.receipts.length-1].transactionHash});n({statusName:\"success\",statusData:{transactionReceipt:a}})}},[e,i,n])}f();var bE=he($e(),1);f();f();var Klt=he($e(),1);pn();function Z2e(e,t){let n=pq({abi:z2,address:t?.address,functionName:\"balanceOf\",args:e?[e]:[],query:{enabled:!!t?.address&&!!e}});return(0,Klt.useMemo)(()=>{var r;let o;if(n?.error&&(o={code:pw(\"balance\"),error:(r=n?.error)==null?void 0:r.shortMessage,message:\"\"}),n?.data!==0n&&!n?.data||!t)return{convertedBalance:\"\",status:n.status,error:o,roundedBalance:\"\",response:n,refetch:n.refetch};let i=na(n?.data,t?.decimals);return{convertedBalance:i,status:n.status,error:o,response:n,roundedBalance:pE(i,8),refetch:n.refetch}},[t,n])}function Ylt({address:e,fromToken:t,toToken:n}){let{convertedBalance:r,error:o,response:i}=Tne(e),{convertedBalance:a,error:c,response:u}=Z2e(e,t),{convertedBalance:d,error:p,response:h}=Z2e(e,n),g=t?.symbol===\"ETH\",y=n?.symbol===\"ETH\";return el({fromBalanceString:g?r:a,fromTokenBalanceError:g?o:c,fromTokenResponse:g?i:u,toBalanceString:y?r:d,toTokenBalanceError:y?o:p,toTokenResponse:y?i:h})}var Zlt=e=>{let[t,n]=(0,bE.useState)(\"\"),[r,o]=(0,bE.useState)(\"\"),[i,a]=(0,bE.useState)(),[c,u]=(0,bE.useState)(\"\"),[d,p]=(0,bE.useState)(\"\"),[h,g]=(0,bE.useState)(),[y,v]=(0,bE.useState)(!1),[x,R]=(0,bE.useState)(!1),{fromBalanceString:S,fromTokenBalanceError:M,toBalanceString:P,toTokenBalanceError:z,fromTokenResponse:V,toTokenResponse:Q}=Ylt({address:e,fromToken:i,toToken:h}),$=el({balance:S,balanceResponse:V,amount:t,setAmount:n,amountUSD:r,setAmountUSD:o,token:i,setToken:a,loading:x,setLoading:R,error:M}),oe=el({balance:P,balanceResponse:Q,amount:c,amountUSD:d,setAmountUSD:p,setAmount:u,token:h,setToken:g,loading:y,setLoading:v,error:z});return{from:$,to:oe}};f();var Qlt=he($e(),1),Jlt=({from:e,to:t})=>(0,Qlt.useCallback)(async()=>{var n,r;await Promise.all([(n=e.balanceResponse)==null?void 0:n.refetch(),(r=t.balanceResponse)==null?void 0:r.refetch(),e.setAmount(\"\"),e.setAmountUSD(\"\"),t.setAmount(\"\"),t.setAmountUSD(\"\")])},[e,t]);f();function Q2e(e){return e!==null&&typeof e==\"object\"&&\"error\"in e}f();pn();ra();f();f();async function Xlt({config:e,sendTransactionAsync:t,transactions:n,updateLifecycleStatus:r}){let o;for(let{transaction:i,transactionType:a}of n){r({statusName:\"transactionPending\"});let c=await t(i);r({statusName:\"transactionApproved\",statusData:{transactionHash:c,transactionType:a}}),o=await V0(e,{hash:c,confirmations:1})}o&&r({statusName:\"success\",statusData:{transactionReceipt:o}})}async function $lt({config:e,isSponsored:t,paymaster:n,sendCallsAsync:r,sendTransactionAsync:o,updateLifecycleStatus:i,walletCapabilities:a,transactions:c}){var u;if((u=a[hR.AtomicBatch])!=null&&u.supported){i({statusName:\"transactionPending\"});let d=await r({calls:c.map(({transaction:p})=>p),capabilities:t?{paymasterService:{url:n}}:{}});i({statusName:\"transactionApproved\",statusData:{callsId:$ne(d),transactionType:\"Batched\"}})}else await Xlt({config:e,sendTransactionAsync:o,transactions:c,updateLifecycleStatus:i})}async function edt({chainId:e,config:t,isSponsored:n,paymaster:r,sendCallsAsync:o,sendTransactionAsync:i,swapTransaction:a,switchChainAsync:c,updateLifecycleStatus:u,useAggregator:d,walletCapabilities:p}){let{transaction:h,approveTransaction:g,quote:y}=a,v=[];if(g?.data&&(v.push({transaction:{to:g.to,value:g.value,data:g.data},transactionType:\"ERC20\"}),!d)){let x=O2([\"function approve(address token, address spender, uint160 amount, uint48 expiration) external\"]),R=vn({abi:x,functionName:\"approve\",args:[y.from.address,kct,BigInt(y.fromAmount),2e13]});v.push({transaction:{to:Rct,value:0n,data:R},transactionType:\"Permit2\"})}v.push({transaction:{to:h.to,value:h.value,data:h.data},transactionType:\"Swap\"}),e!==dr.id&&await c({chainId:dr.id}),await $lt({config:t,isSponsored:n,paymaster:r,sendCallsAsync:o,sendTransactionAsync:i,transactions:v,updateLifecycleStatus:u,walletCapabilities:p})}var ndt={},rdt=(0,Jl.createContext)(ndt);function Fg(){let e=(0,Jl.useContext)(rdt);if(e===ndt)throw new Error(\"useSwapContext must be used within a Swap component\");return e}function odt({children:e,config:t={maxSlippage:3},experimental:n,isSponsored:r,onError:o,onStatus:i,onSuccess:a}){var c,u;let{config:{paymaster:d}={paymaster:void 0}}=Co(),{address:p,chainId:h}=wr(),{switchChainAsync:g}=a6(),{useAggregator:y}=n,v=vr(),x=oP({chainId:dr.id}),[R,S]=aP({statusName:\"init\",statusData:{isMissingRequiredField:!0,maxSlippage:t.maxSlippage}}),[M,P]=(0,Jl.useState)(!1),[z,V]=(0,Jl.useState)(\"\"),[Q,$]=(0,Jl.useState)(!1),{from:oe,to:J}=Zlt(p),{sendTransactionAsync:re}=HD(),{sendCallsAsync:q}=FD(),K=Jlt({from:oe,to:J}),U=qlt({accountConfig:v,lifecycleStatus:R,updateLifecycleStatus:S}),{sendAnalytics:T}=_a();(0,Jl.useEffect)(()=>{var H,W,G,O;R.statusName===\"error\"&&(o?.(R.statusData),T(tE.SwapFailure,{error:R.statusData.error,metadata:R.statusData})),R.statusName===\"success\"&&(a?.(R.statusData.transactionReceipt),V((H=R.statusData)==null?void 0:H.transactionReceipt.transactionHash),$(!0),P(!0),T(tE.SwapSuccess,{paymaster:!!d,transactionHash:(W=R.statusData.transactionReceipt)==null?void 0:W.transactionHash,address:p||\"\",amount:Number(oe.amount),from:((G=oe.token)==null?void 0:G.symbol)||\"\",to:((O=J.token)==null?void 0:O.symbol)||\"\"})),i?.(R)},[o,i,a,R,R.statusData,R.statusName,T,d,oe.amount,(c=oe.token)==null?void 0:c.symbol,(u=J.token)==null?void 0:u.symbol,p]),(0,Jl.useEffect)(()=>{R.statusName===\"init\"&&Q&&($(!1),K())},[Q,R.statusName,K]),(0,Jl.useEffect)(()=>{R.statusName===\"transactionApproved\"&&R.statusData.transactionType===\"Batched\"&&U()},[U,R,R.statusData,R.statusName]),(0,Jl.useEffect)(()=>{R.statusName===\"success\"&&Q&&S({statusName:\"init\",statusData:{isMissingRequiredField:!0,maxSlippage:t.maxSlippage}})},[t.maxSlippage,Q,R.statusName,S]);let k=(0,Jl.useCallback)(()=>{var H,W;oe.setAmount(J.amount),J.setAmount(oe.amount),(H=oe.setToken)==null||H.call(oe,J.token),(W=J.setToken)==null||W.call(J,oe.token),S({statusName:\"amountChange\",statusData:{amountFrom:oe.amount,amountTo:J.amount,tokenFrom:oe.token,tokenTo:J.token,isMissingRequiredField:!oe.token||!J.token||!oe.amount||!J.amount}})},[oe,J,S]),F=(0,Jl.useCallback)(async(H,W,G,O)=>{let j=H===\"from\"?oe:J,te=H===\"from\"?J:oe;if(j.token=G??j.token,te.token=O??te.token,j.token===void 0||te.token===void 0){S({statusName:\"amountChange\",statusData:{amountFrom:oe.amount,amountTo:J.amount,tokenFrom:oe.token,tokenTo:J.token,isMissingRequiredField:!0}});return}if(W===\"\"||W===\".\"||Number.parseFloat(W)===0){te.setAmount(\"\"),te.setAmountUSD(\"\"),j.setAmountUSD(\"\");return}te.setLoading(!0),S({statusName:\"amountChange\",statusData:{amountFrom:H===\"from\"?W:\"\",amountTo:H===\"to\"?W:\"\",tokenFrom:oe.token,tokenTo:J.token,isMissingRequiredField:!0}});try{let ne=R.statusData.maxSlippage,ae=await Wlt({amount:W,amountReference:\"from\",from:j.token,maxSlippage:String(ne),to:te.token,useAggregator:y},Po.Swap);if(Q2e(ae)){S({statusName:\"error\",statusData:{code:ae.code,error:ae.error,message:\"\"}});return}let pe=Vlt(ae.toAmount,ae.to.decimals);te.setAmountUSD(ae.toAmountUSD),te.setAmount(pe),j.setAmountUSD(ae.fromAmountUSD),S({statusName:\"amountChange\",statusData:{amountFrom:H===\"from\"?W:pe,amountTo:H===\"to\"?W:pe,tokenFrom:oe.token,tokenTo:J.token,isMissingRequiredField:!pe}})}catch(ne){S({statusName:\"error\",statusData:{code:\"TmSPc01\",error:JSON.stringify(ne),message:\"\"}})}finally{te.setLoading(!1)}},[oe,J,R,S,y]),N=(0,Jl.useCallback)(async()=>{if(!(!p||!oe.token||!J.token||!oe.amount))try{T(tE.SwapInitiated,{amount:Number(oe.amount)});let H=R.statusData.maxSlippage,W=await jlt({amount:oe.amount,fromAddress:p,from:oe.token,maxSlippage:String(H),to:J.token,useAggregator:y},Po.Swap);if(Q2e(W)){S({statusName:\"error\",statusData:{code:W.code,error:W.error,message:W.message}});return}await edt({chainId:h,config:v,isSponsored:r,paymaster:d||\"\",sendCallsAsync:q,sendTransactionAsync:re,swapTransaction:W,switchChainAsync:g,updateLifecycleStatus:S,useAggregator:y,walletCapabilities:x})}catch(H){let W=_5(H)?\"Request denied.\":yE;S({statusName:\"error\",statusData:{code:\"TmSPc02\",error:JSON.stringify(H),message:W}})}},[v,p,h,oe.amount,oe.token,r,R,d,q,re,g,J.token,S,y,x,T]),B=el({address:p,config:t,from:oe,handleAmountChange:F,handleToggle:k,handleSubmit:N,lifecycleStatus:R,updateLifecycleStatus:S,to:J,isToastVisible:M,setIsToastVisible:P,setTransactionHash:V,transactionHash:z});return(0,tdt.jsx)(rdt.Provider,{value:B,children:e})}function RP({className:e,delayMs:t=1e3,label:n,token:r,type:o,swappableTokens:i}){let{address:a,to:c,from:u,handleAmountChange:d}=Fg(),{sendAnalytics:p}=_a(),h=el(o===\"from\"?u:c),g=el(o===\"from\"?c:u),{setToken:y,setAmount:v,balance:x,amount:R,amountUSD:S}=h;(0,vE.useEffect)(()=>{r&&y?.(r)},[r,y]);let M=(0,vE.useCallback)(()=>{x&&(v(x),d(o,x))},[x,v,d,o]),P=(0,vE.useCallback)(J=>{d(o,J)},[d,o]),z=(0,vE.useCallback)(J=>{p(tE.TokenSelected,{token:J.symbol})},[p]),V=(0,vE.useCallback)(J=>{y?.(J),d(o,R,J),z(J)},[R,y,d,z,o]),Q=(0,vE.useMemo)(()=>i?.filter(({symbol:J})=>{var re;return J!==((re=g.token)==null?void 0:re.symbol)})??[],[i,g.token]),$=o===\"from\"&&Number(x)<Number(R),oe=J=>!J||J===\"0\"?null:`~$${Number(pE(J,2)).toFixed(2)}`;return(0,Dm.jsxs)(\"div\",{className:be(An.secondary,bt.radius,\"my-0.5 box-border flex h-[148px] w-full flex-col items-start p-4\",e),\"data-testid\":\"ockSwapAmountInput_Container\",children:[(0,Dm.jsx)(\"div\",{className:be(rt.label2,ct.foregroundMuted,\"flex w-full items-center justify-between\"),children:n}),(0,Dm.jsxs)(\"div\",{className:\"flex w-full items-center justify-between\",children:[(0,Dm.jsx)(kR,{className:be(\"mr-2 w-full border-[none] bg-transparent font-display text-[2.5rem]\",\"leading-none outline-none\",$&&a?ct.error:ct.foreground),placeholder:\"0.0\",delayMs:t,value:Llt(R),setValue:v,disabled:h.loading,onChange:P,inputValidator:fne}),Q.length>0?(0,Dm.jsx)(Dlt,{token:h.token,setToken:V,options:Q}):h.token&&(0,Dm.jsx)(klt,{className:Qt.inverse,token:h.token})]}),(0,Dm.jsxs)(\"div\",{className:\"mt-4 flex w-full items-center justify-between\",children:[(0,Dm.jsx)(\"div\",{className:be(rt.label2,ct.foregroundMuted),children:oe(S)}),(0,Dm.jsxs)(\"div\",{className:be(rt.label2,ct.foregroundMuted,\"flex grow items-center justify-end\"),children:[x&&(0,Dm.jsx)(\"span\",{children:`Balance: ${pE(x,8)}`}),o===\"from\"&&a&&(0,Dm.jsx)(\"button\",{type:\"button\",className:be(rt.label1,ct.primary,\"flex cursor-pointer items-center justify-center px-2 py-1\"),\"data-testid\":\"ockSwapAmountInput_MaxButton\",onClick:M,children:\"Max\"})]})]})]})}f();var sz=he(ze(),1);function ere({className:e,label:t=\"Swap\",disabled:n=!1}){var r,o;let{address:i,to:a,from:c,lifecycleStatus:{statusName:u},handleSubmit:d}=Fg(),p=a.loading||c.loading||u===\"transactionPending\"||u===\"transactionApproved\",h=!c.amount||!c.token||!a.amount||!a.token||n||p,g=((r=a.token)==null?void 0:r.address)===((o=c.token)==null?void 0:o.address);return!h&&!i?(0,sz.jsx)(M1,{className:be(\"mt-4 w-full\",e)}):(0,sz.jsx)(\"button\",{type:\"button\",className:be(An.primary,bt.radius,\"w-full rounded-xl\",\"mt-4 px-4 py-3\",h&&Qt.disabled,rt.headline,e),onClick:()=>d(),disabled:h||g,\"data-testid\":\"ockSwapButton_Button\",children:p?(0,sz.jsx)(Nm,{}):(0,sz.jsx)(\"span\",{className:be(rt.headline,ct.inverse),children:t})})}f();var sdt=he(ze(),1);f();f();function idt(e){return e.code===_ne?nl.TOO_MANY_REQUESTS:e.code===Ane?nl.LOW_LIQUIDITY:e.code===Nct?nl.USER_REJECTED:e.message}function adt({address:e,from:t,lifecycleStatus:n,to:r}){return n.statusName===\"error\"?idt(n.statusData):t.error||r.error?nl.BALANCE_ERROR:e&&Number(t.balance)<Number(t.amount)?nl.INSUFFICIENT_BALANCE:n.statusName===\"transactionPending\"?nl.CONFIRM_IN_WALLET:n.statusName===\"transactionApproved\"?nl.SWAP_IN_PROGRESS:r.loading||t.loading?nl.FETCHING_QUOTE:n.statusData.isMissingRequiredField?nl.INCOMPLETE_FIELD:\"\"}function tre({className:e}){let{address:t,to:n,from:r,lifecycleStatus:o}=Fg(),i=adt({address:t,from:r,lifecycleStatus:o,to:n});return(0,sdt.jsx)(\"div\",{className:be(\"flex h-7 pt-2\",rt.label2,ct.foregroundMuted,e),\"data-testid\":\"ockSwapMessage_Message\",children:i})}f();var Jc=he(ze(),1);f();var cz=he(ze(),1);var IP=he($e(),1),cdt=he(Ny(),1);function P$t(e,t,n,r){let o=0,i=0;switch(n){case\"top\":o=e.top-t.height-r;break;case\"bottom\":o=e.bottom+r;break;case\"left\":i=e.left-t.width-r;break;case\"right\":i=e.right+r;break}return{top:o,left:i}}function M$t(e,t,n,r,o){let{top:i,left:a}=n,c=i,u=a,d=o===\"top\"||o===\"bottom\";switch(r){case\"start\":d?u=e.left:c=e.top;break;case\"center\":d?u=e.left+(e.width-t.width)/2:c=e.top+(e.height-t.height)/2;break;case\"end\":d?u=e.right-t.width:c=e.bottom-t.height;break}return{top:c,left:u}}function udt({children:e,anchor:t,isOpen:n,onClose:r,position:o=\"bottom\",align:i=\"center\",offset:a=8,trigger:c,\"aria-label\":u,\"aria-labelledby\":d,\"aria-describedby\":p}){let h=(0,IP.useRef)(null),g=Aa(),y=(0,IP.useCallback)(()=>{var x;if(!t||!h.current)return;let R=t.getBoundingClientRect(),S=(x=h.current)==null?void 0:x.getBoundingClientRect();if(!R||!S)return;let M=P$t(R,S,o,a),P=M$t(R,S,M,i,o);h.current.style.top=`${P.top}px`,h.current.style.left=`${P.left}px`},[t,o,a,i]);if((0,IP.useEffect)(()=>{if(n)return y(),window.addEventListener(\"resize\",y),window.addEventListener(\"scroll\",y),()=>{window.removeEventListener(\"resize\",y),window.removeEventListener(\"scroll\",y)}},[n,y]),!n)return null;let v=(0,cz.jsx)(\"div\",{className:be(g,Qd.dropdown,\"pointer-events-none fixed\"),\"data-portal-origin\":\"true\",children:(0,cz.jsx)(cw,{active:n,children:(0,cz.jsx)(sw,{onDismiss:r,triggerRef:c,children:(0,cz.jsx)(\"div\",{\"aria-label\":u,\"aria-labelledby\":d,\"aria-describedby\":p,className:be(\"pointer-events-auto fixed\"),\"data-testid\":\"ockPopover\",ref:h,role:\"dialog\",children:e})})})});return(0,cdt.createPortal)(v,document.body)}var S5=he($e(),1);f();var ldt=he(ze(),1);function nre({children:e,className:t}){return(0,ldt.jsx)(\"p\",{className:be(rt.legal,ct.foregroundMuted,\"mb-2\",t),children:e})}f();var yw=he(ze(),1);var HR=he($e(),1);var FR={AUTO:\"Auto\",CUSTOM:\"Custom\"};function rre({className:e}){let{sendAnalytics:t}=_a(),{config:{maxSlippage:n},updateLifecycleStatus:r,lifecycleStatus:o}=Fg(),[i,a]=(0,HR.useState)(o.statusData.maxSlippage===n?FR.AUTO:FR.CUSTOM),c=(0,HR.useCallback)((h,g)=>{t(tE.SlippageChanged,{previousSlippage:h,slippage:g})},[t]),u=(0,HR.useCallback)(h=>{let g=o.statusData.maxSlippage;h!==g&&(c(g,h),r({statusName:\"slippageChange\",statusData:{maxSlippage:h}}))},[o.statusData.maxSlippage,r,c]),d=(0,HR.useCallback)(h=>{let g=h.target.value,y=Number.parseFloat(g),v=!Number.isNaN(y);u(v?y:0)},[u]),p=(0,HR.useCallback)(h=>{a(h),h===FR.AUTO&&u(n)},[n,u]);return(0,yw.jsxs)(\"section\",{className:be(An.default,bt.defaultActive,bt.radius,\"flex items-center gap-2 flex-grow max-sm:pt-4\",e),children:[(0,yw.jsxs)(\"fieldset\",{className:be(An.default,bt.defaultActive,bt.radius,\"flex h-9 flex-1 rounded-xl border p-1\"),children:[(0,yw.jsx)(\"legend\",{className:\"sr-only\",children:\"Slippage Setting\"}),Object.values(FR).map(h=>(0,yw.jsx)(\"button\",{type:\"button\",className:be(Qt.default,ct.foreground,rt.label1,bt.radiusInner,\"flex-1 px-3 py-1 transition-colors\",i===h?be(An.inverse,ct.primary,Qt.shadow):ct.foregroundMuted),onClick:()=>p(h),children:h},h))]}),(0,yw.jsxs)(\"div\",{className:be(An.default,bt.defaultActive,bt.radius,\"flex h-9 w-24 items-center justify-between border px-2 py-1\",i===FR.AUTO&&\"opacity-50\"),children:[(0,yw.jsx)(\"label\",{htmlFor:\"slippage-input\",className:\"sr-only\",children:\"Slippage Percentage\"}),(0,yw.jsx)(\"input\",{id:\"slippage-input\",type:\"text\",value:o.statusData.maxSlippage,onChange:d,disabled:i===FR.AUTO,className:be(ct.foreground,rt.label2,\"w-full flex-grow bg-transparent pl-1 font-normal leading-6 focus:outline-none\",i===FR.AUTO&&\"cursor-not-allowed\")}),(0,yw.jsx)(\"span\",{className:be(An.default,ct.foreground,rt.label2,\"ml-1 flex-shrink-0 font-normal leading-6\"),children:\"%\"})]})]})}f();var ddt=he(ze(),1);function fdt({children:e,className:t}){return(0,ddt.jsx)(\"div\",{className:be(An.default,bt.radius,bt.lineDefault,\"right-0 z-10 w-[21.75rem] px-3 py-3\",t),\"data-testid\":\"ockSwapSettingsLayout_container\",children:e})}f();var wE=he(ze(),1);function pdt({children:e,className:t}){return(0,wE.jsxs)(\"div\",{className:be(An.default,bt.default,Qt.shadow,\"right-0 z-10 h-full w-full rounded-t-lg px-3 pt-2 pb-3\",t),\"data-testid\":\"ockSwapSettingsLayout_container\",children:[(0,wE.jsx)(\"div\",{className:be(An.alternate,\"mx-auto mb-2 h-1 w-4 rounded-[6.25rem]\")}),(0,wE.jsx)(\"div\",{className:\"mb-4 flex items-center justify-center\",children:(0,wE.jsx)(\"h2\",{className:be(ct.foreground,\"font-bold text-sm\"),children:\"Settings\"})}),(0,wE.jsx)(\"div\",{className:\"flex flex-col\",children:e}),(0,wE.jsx)(\"div\",{className:\"mt-4 flex justify-center\",children:(0,wE.jsx)(\"div\",{className:be(An.inverse,\"h-1 w-28 shrink-0 rounded-[0.43931rem]\")})})]})}f();var hdt=he(ze(),1);function ore({children:e,className:t}){return(0,hdt.jsx)(\"h3\",{className:be(rt.headline,ct.foreground,\"mb-2 text-base\",t),children:e})}var D$t=(0,Jc.jsxs)(Jc.Fragment,{children:[(0,Jc.jsx)(ore,{children:\"Max. slippage\"}),(0,Jc.jsx)(nre,{children:\"Your swap will revert if the prices change by more than the selected percentage.\"}),(0,Jc.jsx)(rre,{})]});function ire({children:e=D$t,className:t,icon:n=\"swapSettings\",text:r=\"\"}){let o=rne(),[i,a]=(0,S5.useState)(!1),c=(0,S5.useRef)(null),u=(0,S5.useRef)(null),d=(0,S5.useCallback)(g=>{g.stopPropagation(),a(y=>!y)},[]),p=(0,S5.useCallback)(()=>{a(!1)},[]),h=dE({icon:n});return(0,Jc.jsxs)(\"div\",{className:be(\"flex w-auto items-center justify-end space-x-1 pb-4\",t),\"data-testid\":\"ockSwapSettings_Settings\",children:[r&&(0,Jc.jsx)(\"span\",{className:be(rt.body),children:r}),(0,Jc.jsxs)(\"div\",{className:be(\"relative\",i&&\"group\"),ref:c,children:[(0,Jc.jsx)(\"button\",{ref:u,type:\"button\",\"aria-label\":\"Toggle swap settings\",className:be(Qt.default,\"rounded-full p-2 opacity-50 transition-opacity hover:opacity-100\"),onClick:d,children:(0,Jc.jsx)(\"div\",{className:\"h-[1.125rem] w-[1.125rem]\",children:h})}),o===\"sm\"?(0,Jc.jsx)(cw,{active:i,children:(0,Jc.jsx)(sw,{onDismiss:p,triggerRef:u,preventTriggerEvents:!0,children:(0,Jc.jsx)(\"div\",{className:be(An.inverse,Qt.shadow,\"fixed inset-x-0 z-50 transition-[bottom] duration-300 ease-in-out\",i?\"bottom-0\":\"-bottom-[12.875rem]\",\"h-[12.875rem] rounded-t-lg\",t),\"data-testid\":\"ockSwapSettingsSlippageLayoutBottomSheet_container\",children:(0,Jc.jsx)(pdt,{className:t,children:e})})})}):(0,Jc.jsx)(udt,{isOpen:i,onClose:p,anchor:c.current,position:\"bottom\",align:\"end\",trigger:u,children:(0,Jc.jsx)(\"div\",{className:be(bt.radius,An.default,Qt.shadow,\"absolute right-0 z-10 mt-1 w-[21.75rem] rounded-lg\"),\"data-testid\":\"ockSwapSettingsDropdown\",children:(0,Jc.jsx)(fdt,{children:e})})})]})]})}f();var vw=he(ze(),1),ydt=he($e(),1);f();ra();var L$t={[Ya.id]:\"https://sepolia.basescan.org\",[dr.id]:\"https://basescan.org\",[Die.id]:\"https://arbiscan.io\",[Lie.id]:\"https://sepolia.arbiscan.io\",[SM.id]:\"https://optimistic.etherscan.io\",[Xie.id]:\"https://sepolia-optimism.etherscan.io/\",[$ie.id]:\"https://polygonscan.com\",[eae.id]:\"https://mumbai.polygonscan.com\",[zi.id]:\"https://etherscan.io\",[CM.id]:\"https://sepolia.etherscan.io\"};function bw(e){return e?L$t[e]??\"https://basescan.org\":\"https://basescan.org\"}f();var zR=he(ze(),1),gdt=he($e(),1);f();function mdt(e){return e===\"bottom-right\"?\"bottom-5 left-3/4\":e===\"top-right\"?\"top-[100px] left-3/4\":e===\"top-center\"?\"top-[100px] left-2/4\":\"bottom-5 left-2/4\"}var B$t={\"top-center\":\"animate-enterDown\",\"top-right\":\"animate-enterRight\",\"bottom-center\":\"animate-enterUp\",\"bottom-right\":\"animate-enterRight\"};function are({className:e,durationMs:t=5e3,startTimeout:n=!0,position:r=\"bottom-center\",animation:o,isVisible:i,onClose:a,children:c}){let u=mdt(r),d=o??B$t[r];return(0,gdt.useEffect)(()=>{if(n){let p=setTimeout(()=>{i&&a()},t);return()=>{p&&clearTimeout(p)}}},[t,i,a,n]),i?(0,zR.jsx)(\"div\",{className:be(\"-translate-x-2/4 fixed z-20\",u),\"data-testid\":\"ockToastContainer\",children:(0,zR.jsxs)(\"div\",{className:be(An.default,\"flex items-center justify-between rounded-lg\",\"p-2 shadow-[0px_8px_24px_0px_rgba(0,0,0,0.12)]\",d,e),\"data-testid\":\"ockToast\",children:[(0,zR.jsx)(\"div\",{className:\"flex items-center gap-4 p-2\",children:c}),(0,zR.jsx)(\"button\",{className:\"p-2\",onClick:a,type:\"button\",\"data-testid\":\"ockCloseButton\",children:(0,zR.jsx)(tP,{})})]})}):null}function sre({className:e,durationMs:t=5e3,position:n=\"bottom-center\"}){let{isToastVisible:r,setIsToastVisible:o,setTransactionHash:i,transactionHash:a}=Fg(),{chainId:c}=wr(),u=bw(c),d=(0,ydt.useCallback)(()=>{o(!1),i(\"\")},[o,i]);return r?(0,vw.jsxs)(are,{position:n,className:e,durationMs:t,isVisible:r,onClose:d,children:[(0,vw.jsx)(\"div\",{className:be(rt.label2),children:(0,vw.jsx)(H7,{})}),(0,vw.jsx)(\"div\",{className:be(rt.label1,\"text-nowrap\"),children:(0,vw.jsx)(\"p\",{className:ct.foreground,children:\"Successful\"})}),(0,vw.jsx)(\"div\",{className:be(rt.label1,\"text-nowrap\"),children:(0,vw.jsx)(\"a\",{href:`${u}/tx/${a}`,target:\"_blank\",rel:\"noreferrer\",children:(0,vw.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"View transaction\"})})})]}):null}f();var bdt=he(ze(),1);function cre({className:e}){let{handleToggle:t}=Fg();return(0,bdt.jsx)(\"button\",{type:\"button\",className:be(Qt.alternate,bt.default,\"-my-6 relative mx-auto\",\"flex h-12 w-12 items-center justify-center\",\"rounded-lg border-4 border-solid\",e),\"data-testid\":\"SwapTokensButton\",onClick:t,children:pP})}function U$t({to:e,from:t,disabled:n}){return(0,Xl.jsxs)(Xl.Fragment,{children:[(0,Xl.jsx)(ire,{}),(0,Xl.jsx)(RP,{label:\"Sell\",swappableTokens:t,token:t?.[0],type:\"from\"}),(0,Xl.jsx)(cre,{}),(0,Xl.jsx)(RP,{label:\"Buy\",swappableTokens:e,token:e?.[0],type:\"to\"}),(0,Xl.jsx)(ere,{disabled:n}),(0,Xl.jsx)(tre,{}),(0,Xl.jsx)(sre,{})]})}function vdt({children:e,config:t={maxSlippage:3},className:n,disabled:r,to:o,from:i,experimental:a={useAggregator:!1},isSponsored:c=!1,onError:u,onStatus:d,onSuccess:p,title:h=\"Swap\",headerLeftContent:g}){let y=Aa();return gP()?(0,Xl.jsx)(odt,{config:t,experimental:a,isSponsored:c,onError:u,onStatus:d,onSuccess:p,children:(0,Xl.jsxs)(\"div\",{className:be(y,An.default,bt.radius,ct.foreground,\"relative flex w-full max-w-[500px] flex-col px-6 pt-6 pb-4\",n),\"data-testid\":\"ockSwap_Container\",children:[(0,Xl.jsxs)(\"div\",{className:\"absolute flex w-1/2 items-center justify-between\",children:[g,(0,Xl.jsx)(\"h3\",{className:be(rt.title3,\"text-center\"),\"data-testid\":\"ockSwap_Title\",children:h})]}),e??(0,Xl.jsx)(U$t,{to:o,from:i,disabled:r})]})}):null}var X2e=he($e(),1);function $2e({config:e,classNames:t,disabled:n,experimental:r,from:o,isSponsored:i=!1,onError:a,onStatus:c,onSuccess:u,title:d,to:p}){var h,g,y,v;let{setActiveFeature:x,isActiveFeatureClosing:R,setIsActiveFeatureClosing:S}=vi(),M=(0,X2e.useCallback)(()=>{S(!0)},[S]),P=(0,X2e.useCallback)(()=>{R&&(x(null),S(!1))},[R,x,S]),z=(0,$d.jsx)(Lg,{ariaLabel:\"Back button\",onClick:M,children:(0,$d.jsx)(\"div\",{className:\"p-2\",children:SP})});return(0,$d.jsx)(\"div\",{className:be(\"h-full\",bt.radius,R?\"fade-out slide-out-to-right-5 animate-out fill-mode-forwards ease-in-out\":\"fade-in slide-in-from-right-5 linear animate-in duration-150\",\"relative w-88 h-120\",t?.container),onAnimationEnd:P,\"data-testid\":\"ockWalletAdvancedSwap\",children:(0,$d.jsxs)(vdt,{className:be(\"w-full px-4 pt-3 pb-4\",t?.container),onStatus:c,onSuccess:u,onError:a,config:e,isSponsored:i,title:d,experimental:r,headerLeftContent:z,children:[(0,$d.jsxs)(ire,{className:be(\"w-auto\",(h=t?.settings)==null?void 0:h.container),children:[(0,$d.jsx)(ore,{className:(g=t?.settings)==null?void 0:g.slippageTitle,children:\"Max. slippage\"}),(0,$d.jsx)(nre,{className:(y=t?.settings)==null?void 0:y.slippageDescription,children:\"Your swap will revert if the prices change by more than the selected percentage.\"}),(0,$d.jsx)(rre,{className:(v=t?.settings)==null?void 0:v.slippageInput})]}),(0,$d.jsx)(RP,{label:\"Sell\",swappableTokens:o,type:\"from\",className:t?.fromAmountInput}),(0,$d.jsx)(cre,{className:t?.toggleButton}),(0,$d.jsx)(RP,{label:\"Buy\",swappableTokens:p,type:\"to\",className:t?.toAmountInput}),(0,$d.jsx)(ere,{disabled:n,className:t?.swapButton}),(0,$d.jsx)(tre,{className:t?.message}),(0,$d.jsx)(sre,{className:t?.toast})]})})}f();var pc=he(ze(),1);f();f();var uz=he(ze(),1);f();var ure=he(ze(),1);f();var Sdt=he(ze(),1);f();f();async function wdt(e,t=Po.API){let n=F$t(e);if(\"error\"in n)return n;try{let r=await y5(Kct,[n],t);return r.error?{code:String(r.error.code),error:\"Error fetching price quote\",message:r.error.message}:r.result}catch(r){return{code:\"UNCAUGHT_PRICE_QUOTE_ERROR\",error:\"Something went wrong\",message:`Error fetching price quote: ${r}`}}}function F$t(e){let{tokens:t}=e;return!t||t.length===0?{code:\"INVALID_INPUT\",error:\"Invalid input: tokens must be an array of at least one token\",message:\"Tokens must be an array of at least one token\"}:e}function xdt(e,t=Po.Hook){let{token:n,queryOptions:r}=e;return Nf({queryKey:[\"getPriceQuote\",n],queryFn:async()=>{if(!n)return{priceQuotes:[]};let o=await wdt({tokens:[n]},t);if(b5(o))throw o;return o},...Zd,...r})}var yu=he($e(),1);pn();f();var rqr=he(ze(),1),xE=he($e(),1);ra();f();f();var Edt=e=>e.endsWith(\".base.eth\")||e.endsWith(\".basetest.eth\")?!1:!!(e.endsWith(\".eth\")||e.endsWith(\".test.eth\"));pn();ra();async function Adt(e){if(Un(e,{strict:!1}))return e;if(_R(e)||Edt(e)){let t=await SR({name:e,chain:_R(e)?dr:zi});if(t)return t}return null}function _dt(){let[e,t]=(0,xE.useState)({phase:\"input\",input:\"\",address:null,displayValue:null}),n=(0,xE.useCallback)(a=>{t(c=>({...c,input:a}))},[]),r=(0,xE.useCallback)(a=>{Adt(a).then(c=>{if(!c){t({phase:\"input\",input:a,address:null,displayValue:null});return}t({phase:\"validated\",input:a,address:c,displayValue:null})})},[]),o=(0,xE.useCallback)(async a=>{t(a)},[]),i=(0,xE.useCallback)(()=>{e.phase===\"selected\"?t({phase:\"validated\",input:e.input,address:e.address,displayValue:null}):t({...e,displayValue:null})},[e]);return(0,xE.useEffect)(()=>{e.phase===\"selected\"&&hH({address:e.address,chain:dr}).then(a=>{t({phase:e.phase,input:e.input,address:e.address,displayValue:a??IR(e.address)})}).catch(()=>t({phase:e.phase,input:e.input,address:e.address,displayValue:IR(e.address)}))},[e.phase,e.address,e.input]),{recipientState:e,updateRecipientInput:n,validateRecipientInput:r,selectRecipient:o,deselectRecipient:i}}var Tdt={},Cdt=(0,yu.createContext)(Tdt);function ef(){let e=(0,yu.useContext)(Cdt);if(e===Tdt)throw new Error(\"useSendContext must be used within a SendProvider\");return e}function Rdt({children:e}){var t;let[n,r]=(0,yu.useState)(null),[o,i]=(0,yu.useState)(\"crypto\"),[a,c]=(0,yu.useState)(null),[u,d]=(0,yu.useState)(null),{recipientState:p,updateRecipientInput:h,validateRecipientInput:g,selectRecipient:y,deselectRecipient:v}=_dt(),[x,R]=aP({statusName:\"init\",statusData:{isMissingRequiredField:!0}}),S=(0,yu.useMemo)(()=>n?o===\"fiat\"?Number(a)<=n.fiatBalance:Number(u)<=Number(na(BigInt(n.cryptoBalance),n.decimals)):!1,[o,n,u,a]),{address:M}=wr(),{data:P}=sp({address:M},Po.Wallet),z=(t=P?.tokenBalances)==null?void 0:t.find(k=>k.address===\"\"),V=z?Number(na(BigInt(z.cryptoBalance),z.decimals)):0,Q=V!==void 0;(0,yu.useEffect)(()=>{if(!V||V===0){R({statusName:\"fundingWallet\",statusData:{isMissingRequiredField:!0}});return}R({statusName:\"selectingAddress\",statusData:{isMissingRequiredField:!0}})},[V,R]);let{isLoading:$,data:oe}=xdt({token:n?.address===\"\"?\"ETH\":n?.address},Po.Wallet),J=(0,yu.useMemo)(()=>!oe||b5(oe)||oe.priceQuotes.length===0?0:1/Number(oe.priceQuotes[0].price),[oe]),re=(0,yu.useCallback)(k=>{r(k),R({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:!1}})},[R]),q=(0,yu.useCallback)(()=>{r(null),c(null),d(null),R({statusName:\"selectingToken\",statusData:{isMissingRequiredField:!0}})},[R]),K=(0,yu.useCallback)(k=>{c(k),R({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:S}})},[R,S]),U=(0,yu.useCallback)(k=>{let F=D1(k,8);d(F),R({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:S}})},[R,S]),T=el({isInitialized:Q,lifecycleStatus:x,updateLifecycleStatus:R,ethBalance:V,recipientState:p,updateRecipientInput:h,validateRecipientInput:g,selectRecipient:y,deselectRecipient:v,selectedToken:n,handleTokenSelection:re,handleResetTokenSelection:q,fiatAmount:a,handleFiatAmountChange:K,cryptoAmount:u,handleCryptoAmountChange:U,exchangeRate:J,exchangeRateLoading:$,selectedInputType:o,setSelectedInputType:i});return(0,Sdt.jsx)(Cdt.Provider,{value:T,children:e})}var H$t=(0,ure.jsx)(\"div\",{\"data-testid\":\"ockSendAmountInputTypeSwitch_ErrorDisplay\",className:be(rt.caption,ct.foregroundMuted,\"h-[1.625rem]\"),children:\"Exchange rate unavailable\"});function Idt({errorDisplay:e,className:t}){let{selectedToken:n,fiatAmount:r,cryptoAmount:o,exchangeRate:i,exchangeRateLoading:a,selectedInputType:c,setSelectedInputType:u}=ef();return a?(0,ure.jsx)(fw,{className:\"h-[1.625rem]\"}):i?(0,ure.jsx)(gne,{asset:n?.symbol??\"\",fiatAmount:r??\"\",cryptoAmount:o??\"\",exchangeRate:i,exchangeRateLoading:!1,currency:\"USD\",selectedInputType:c,setSelectedInputType:u,className:t}):e||H$t}function Odt({className:e,textClassName:t}){let{selectedToken:n,cryptoAmount:r,handleCryptoAmountChange:o,fiatAmount:i,handleFiatAmountChange:a,selectedInputType:c,exchangeRate:u}=ef();return(0,uz.jsxs)(\"div\",{className:\"flex h-full w-full flex-col justify-center\",children:[(0,uz.jsx)(hne,{fiatAmount:i??\"\",cryptoAmount:r??\"\",asset:n?.symbol??\"\",currency:\"USD\",selectedInputType:c,setFiatAmount:a,setCryptoAmount:o,exchangeRate:String(u),className:e,textClassName:t}),(0,uz.jsx)(Idt,{})]})}f();var R5=he(ze(),1);f();var ww=he(ze(),1);f();var exe=he(ze(),1),T5=he($e(),1);f();function kdt({errorMessage:e,hasReceipt:t,isInProgress:n,transactionHash:r,transactionId:o}){let i=o||r;return t||e?!1:!!(n||i)}f();var Hdt=he(ze(),1),ua=he($e(),1);f();function Ndt({setLifecycleStatus:e,transactionId:t}){var n,r;try{let{data:o}=LD({id:t,query:{refetchInterval:a=>{var c;return az((c=a.state.data)==null?void 0:c.status)===\"success\"?!1:1e3},enabled:!!t}}),i=(r=(n=o?.receipts)==null?void 0:n[0])==null?void 0:r.transactionHash;return{status:o?.status,transactionHash:i}}catch(o){return e({statusName:\"error\",statusData:{code:\"TmUCSh01\",error:JSON.stringify(o),message:\"\"}}),{status:\"error\",transactionHash:void 0}}}f();function Pdt({setLifecycleStatus:e,transactionHashList:t}){let{status:n,sendTransactionAsync:r,data:o,reset:i}=HD({mutation:{onError:a=>{let c=_5(a)?\"Request denied.\":yE;e({statusName:\"error\",statusData:{code:\"TmUSCh01\",error:a.message,message:c}})},onSuccess:a=>{e({statusName:\"transactionLegacyExecuted\",statusData:{transactionHashList:[...t,a]}})}}});return{status:n,sendCallAsync:r,data:o,reset:i}}f();function Mdt({setLifecycleStatus:e,setTransactionId:t}){let{status:n,sendCallsAsync:r,data:o,reset:i}=FD({mutation:{onError:a=>{let c=_5(a)?\"Request denied.\":yE;e({statusName:\"error\",statusData:{code:\"TmUSCSh01\",error:a.message,message:c}})},onSuccess:a=>{t($ne(a))}}});return{status:n,sendCallsAsync:r,data:o,reset:i}}f();var Bdt=he($e(),1);f();f();function lre(e){return\"abi\"in e}var Ddt=async({capabilities:e,sendCallsAsync:t,transactions:n})=>{if(!n)return;let r=n?.map(o=>{if(lre(o)){let{address:i,...a}=o;return{...a,to:i}}return o});await t({calls:r,capabilities:e})};f();pn();var Ldt=async({config:e,sendCallAsync:t,transactions:n})=>{let r=n?.map(o=>lre(o)?{data:vn({abi:o?.abi,functionName:o?.functionName,args:o?.args}),to:o?.address}:o);for(let o of r){let i=await t(o);i&&await V0(e,{hash:i,confirmations:1})}};var Udt=({capabilities:e,sendCallAsync:t,sendCallsAsync:n,walletCapabilities:r})=>{let o=vr();return(0,Bdt.useCallback)(async i=>{var a;if(!i)return;let c=await Promise.resolve(i);(a=r[hR.AtomicBatch])!=null&&a.supported?await Ddt({capabilities:e,sendCallsAsync:n,transactions:c}):await Ldt({config:o,sendCallAsync:t,transactions:c})},[n,t,e,r,o])};f();var Fdt=e=>{var t;return((t=e?.paymasterService)==null?void 0:t.url)||null};var zdt={},jdt=(0,ua.createContext)(zdt);function tf(){let e=(0,ua.useContext)(jdt);if(e===zdt)throw new Error(\"useTransactionContext must be used within a Transaction component\");return e}function Wdt({calls:e,capabilities:t,chainId:n,children:r,contracts:o,isSponsored:i,onError:a,onStatus:c,onSuccess:u,resetAfter:d}){let p=wr(),h=vr(),{config:{paymaster:g}={paymaster:void 0}}=Co(),[y,v]=(0,ua.useState)(\"\"),[x,R]=(0,ua.useState)(\"\"),[S,M]=(0,ua.useState)(!1),[P,z]=(0,ua.useState)({statusName:\"init\",statusData:null}),[V,Q]=(0,ua.useState)(\"\"),[$,oe]=(0,ua.useState)(),[J,re]=(0,ua.useState)([]),q=e||o,K=oP({chainId:n}),{switchChainAsync:U}=a6();if(!o&&!e)throw new Error(\"Transaction: calls or contracts must be provided as a prop to the Transaction component.\");if(e&&o)throw new Error(\"Transaction: Only one of contracts or calls can be provided as a prop to the Transaction component.\");let{status:T,sendCallsAsync:k,reset:F}=Mdt({setLifecycleStatus:z,setTransactionId:Q}),{status:N,sendCallAsync:B,data:H,reset:W}=Pdt({setLifecycleStatus:z,transactionHashList:J}),G=(0,ua.useMemo)(()=>{var Ye;return(Ye=K[hR.AtomicBatch])!=null&&Ye.supported?T:N},[N,T,K]),O=(0,ua.useMemo)(()=>i&&g?{paymasterService:{url:g},...t}:t,[i,g,t]),j=Udt({capabilities:O,sendCallAsync:B,sendCallsAsync:k,walletCapabilities:K}),{transactionHash:te,status:ne}=Ndt({setLifecycleStatus:z,transactionId:V}),{data:ae}=wue({hash:H||te}),{sendAnalytics:pe}=_a(),ye=(0,ua.useCallback)((Ye,lt)=>{pe(Ye,lt)},[pe]);(0,ua.useEffect)(()=>{v(\"\"),P.statusName===\"error\"&&(v(P.statusData.message),R(P.statusData.code),a?.(P.statusData)),P.statusName===\"transactionLegacyExecuted\"&&re(P.statusData.transactionHashList),P.statusName===\"success\"&&u?.({transactionReceipts:P.statusData.transactionReceipts}),c?.(P)},[a,c,u,P,P.statusData,P.statusName]),(0,ua.useEffect)(()=>{G===\"pending\"&&z({statusName:\"transactionPending\",statusData:null})},[G]),(0,ua.useEffect)(()=>{if(ae&&(z({statusName:\"success\",statusData:{transactionReceipts:[ae]}}),d)){let Ye=setTimeout(()=>{v(\"\"),R(\"\"),M(!1),Q(\"\"),re([]),oe(void 0),F(),W()},d);return()=>clearTimeout(Ye)}},[ae,d,F,W]);let ve=(0,ua.useCallback)(async()=>{let Ye=[];for(let lt of J)try{let At=await V0(h,{hash:lt,chainId:n});Ye.push(At)}catch(At){z({statusName:\"error\",statusData:{code:\"TmTPc01\",error:JSON.stringify(At),message:yE}})}z({statusName:\"success\",statusData:{transactionReceipts:Ye}})},[n,h,J]);(0,ua.useEffect)(()=>{!q||J.length!==$||$<2||ve()},[q,$,J,ve]);let xe=(0,ua.useCallback)(async Ye=>{Ye&&p.chainId!==Ye&&await U({chainId:Ye})},[p.chainId,U]),De=(0,ua.useCallback)(async()=>{z({statusName:\"buildingTransaction\",statusData:null});try{ye(v7.TransactionInitiated,{address:p.address});let Ye=await(typeof q==\"function\"?q():Promise.resolve(q));return oe(Ye?.length),Ye}catch(Ye){ye(v7.TransactionFailure,{error:Ye.message,metadata:{code:x}}),z({statusName:\"error\",statusData:{code:\"TmTPc04\",error:JSON.stringify(Ye),message:\"Error building transactions\"}});return}},[q,ye,p.address,x]),Ge=(0,ua.useCallback)(async()=>{v(\"\"),M(!0);try{await xe(n);let Ye=await De();await j(Ye)}catch(Ye){let lt=_5(Ye)?\"Request denied.\":yE;z({statusName:\"error\",statusData:{code:\"TmTPc03\",error:JSON.stringify(Ye),message:lt}})}},[De,n,j,xe]),gt=el({chainId:n,errorCode:x,errorMessage:y,isLoading:ne===\"PENDING\",isToastVisible:S,lifecycleStatus:P,onSubmit:Ge,paymasterUrl:Fdt(O),receipt:ae,setIsToastVisible:M,setLifecycleStatus:z,setTransactionId:Q,transactions:q,transactionId:V,transactionHash:H||te,transactionCount:$});return(0,ua.useEffect)(()=>{ae&&(ae.status===\"success\"?ye(v7.TransactionSuccess,{paymaster:!!(i&&g),address:p.address,transactionHash:ae.transactionHash}):ye(v7.TransactionFailure,{error:\"Transaction failed\",metadata:{code:x}}))},[ae,ye,i,g,p.address,x]),(0,Hdt.jsx)(jdt.Provider,{value:gt,children:r})}function dre({className:e,disabled:t=!1,text:n=\"Transact\",errorOverride:r,successOverride:o,pendingOverride:i}){var a,c;let{chainId:u,errorMessage:d,isLoading:p,lifecycleStatus:h,onSubmit:g,receipt:y,transactions:v,transactionCount:x,transactionHash:R,transactionId:S}=tf(),{address:M}=wr(),P=u??Ml(),z=h.statusName===\"transactionLegacyExecuted\"&&x!==((c=(a=h?.statusData)==null?void 0:a.transactionHashList)==null?void 0:c.length),V=h.statusName===\"buildingTransaction\"||h.statusName===\"transactionPending\"||z||p,oe=!y&&(V||(!v||!M)||(!!S||!!R)||t),J=kdt({errorMessage:d,hasReceipt:!!y,isInProgress:V,transactionHash:R,transactionId:S}),{errorText:re,successText:q,pendingContent:K}=(0,T5.useMemo)(()=>{let B=o?.text??\"View transaction\",H=r?.text??\"Try again\",W=i?.text??(0,exe.jsx)(Nm,{});return{successText:B,errorText:H,pendingContent:W}},[r,i,o]),U=(0,T5.useCallback)(()=>{if(y&&S&&R&&u&&M){let H=new URL(\"https://wallet.coinbase.com/assets/transactions\");return H.searchParams.set(\"contentParams[txHash]\",R),H.searchParams.set(\"contentParams[chainId]\",JSON.stringify(u)),H.searchParams.set(\"contentParams[fromAddress]\",M),window.open(H,\"_blank\",\"noopener,noreferrer\")}let B=bw(P);return window.open(`${B}/tx/${R}`,\"_blank\",\"noopener,noreferrer\")},[M,u,y,S,R,P]),T=(0,T5.useCallback)(()=>{var B;if(o?.onClick&&y)return(B=o?.onClick)==null?void 0:B.call(o,y);U()},[U,o,y]),k=(0,T5.useCallback)(()=>{var B;return r?.onClick?(B=r?.onClick)==null?void 0:B.call(r):g()},[r,g]),F=(0,T5.useMemo)(()=>y?q:d?re:J?K:n,[J,d,re,n,K,y,q]),N=(0,T5.useCallback)(()=>{y?T():d?k():g()},[d,k,g,y,T]);return(0,exe.jsx)(\"button\",{className:be(Qt.primary,bt.radius,\"w-full rounded-xl\",\"px-4 py-3 font-medium leading-6\",oe&&Qt.disabled,rt.headline,ct.inverse,e),onClick:N,type:\"button\",disabled:oe,\"data-testid\":\"ockTransactionButton_Button\",children:F})}f();var EE=he(ze(),1),$dt=he($e(),1);f();var qdt=he(ze(),1);f();var jR=he(ze(),1),Vdt=he($e(),1);function Gdt(){let{chainId:e,errorMessage:t,onSubmit:n,transactionHash:r,transactionId:o}=tf(),i=e??Ml(),{showCallsStatus:a}=zD();return(0,Vdt.useMemo)(()=>{let c=bw(i),u=null;return r&&(u=(0,jR.jsx)(\"a\",{href:`${c}/tx/${r}`,target:\"_blank\",rel:\"noreferrer\",children:(0,jR.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"View transaction\"})})),o&&(u=(0,jR.jsx)(\"button\",{onClick:()=>a({id:o}),type:\"button\",children:(0,jR.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"View transaction\"})})),t&&(u=(0,jR.jsx)(\"button\",{type:\"button\",onClick:n,children:(0,jR.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"Try again\"})})),{actionElement:u}},[i,t,n,a,r,o])}function Kdt({className:e}){let{actionElement:t}=Gdt();return(0,qdt.jsx)(\"div\",{className:be(rt.label1,\"text-nowrap\",e),children:t})}f();var lz=he(ze(),1),Ydt=he($e(),1);function Zdt({className:e}){let{errorMessage:t,isLoading:n,receipt:r,transactionHash:o,transactionId:i}=tf(),a=n||!!i||!!o,c=(0,Ydt.useMemo)(()=>r?(0,lz.jsx)(H7,{}):t?(0,lz.jsx)(Ite,{}):a?(0,lz.jsx)(Nm,{className:\"px-1.5 py-1.5\"}):null,[a,t,r]);return c?(0,lz.jsx)(\"div\",{className:be(rt.label2,e),children:c}):null}f();var txe=he(ze(),1);f();var Qdt=he($e(),1);function Jdt(){let{errorMessage:e,isLoading:t,lifecycleStatus:n,receipt:r,transactionHash:o,transactionId:i}=tf(),a=t||!!i||!!o,c=n.statusName===\"buildingTransaction\";return(0,Qdt.useMemo)(()=>{let u=\"\",d=ct.foregroundMuted;return c&&(u=\"Building transaction\"),a&&(u=\"Transaction in progress\"),r&&(u=\"Successful\"),e&&(u=\"Something went wrong\",d=ct.error),{label:u,labelClassName:d}},[e,c,a,r])}function Xdt({className:e}){let{label:t}=Jdt();return(0,txe.jsx)(\"div\",{className:be(rt.label1,\"text-nowrap\",e),children:(0,txe.jsx)(\"p\",{className:ct.foreground,children:t})})}function eft({children:e,className:t,durationMs:n=5e3,position:r=\"bottom-center\"}){let{errorMessage:o,isLoading:i,isToastVisible:a,receipt:c,setIsToastVisible:u,transactionHash:d,transactionId:p}=tf(),h=(0,$dt.useCallback)(()=>{u(!1)},[u]);return!a||!c&&!i&&!d&&!o&&!p?null:(0,EE.jsx)(are,{position:r,className:t,durationMs:n,isVisible:a,onClose:h,startTimeout:!!c||!!o,children:e??(0,EE.jsxs)(EE.Fragment,{children:[(0,EE.jsx)(Zdt,{}),(0,EE.jsx)(Xdt,{}),(0,EE.jsx)(Kdt,{})]})})}function tft({calls:e,capabilities:t,chainId:n,className:r,children:o,contracts:i,disabled:a=!1,isSponsored:c,onError:u,onStatus:d,onSuccess:p,resetAfter:h}){let g=gP(),y=Aa(),{chain:v}=Co();if(!g)return(0,ww.jsx)(\"div\",{className:be(y,\"flex w-full flex-col gap-2\",r)});let x=n||v.id;return(0,ww.jsx)(Wdt,{calls:e,capabilities:t,chainId:x,contracts:i,isSponsored:c,onError:u,onStatus:d,onSuccess:p,resetAfter:h,children:(0,ww.jsx)(\"div\",{className:be(y,\"flex w-full flex-col gap-2\",r),children:o??(0,ww.jsxs)(ww.Fragment,{children:[(0,ww.jsx)(dre,{disabled:a}),(0,ww.jsx)(eft,{})]})})})}f();var C5=he(ze(),1);f();var oft=he(ze(),1);f();var dz=he(ze(),1),nft=he($e(),1);function rft(){let{chainId:e,receipt:t,transactionHash:n,transactionId:r}=tf(),o=e??Ml(),{showCallsStatus:i}=zD();return(0,nft.useMemo)(()=>{let a=bw(o),c=null;return n&&(c=(0,dz.jsx)(\"a\",{href:`${a}/tx/${n}`,target:\"_blank\",rel:\"noreferrer\",children:(0,dz.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"View transaction\"})})),r&&(c=(0,dz.jsx)(\"button\",{onClick:()=>i({id:r}),type:\"button\",children:(0,dz.jsx)(\"span\",{className:be(rt.label1,ct.primary),children:\"View transaction\"})})),t&&(c=null),{actionElement:c}},[o,t,i,n,r])}function fre({className:e}){let{actionElement:t}=rft();return(0,oft.jsx)(\"div\",{className:be(rt.label2,\"min-w-[70px]\",e),children:t})}f();var nxe=he(ze(),1);f();var ift=he($e(),1);function aft(){let{errorMessage:e,isLoading:t,receipt:n,lifecycleStatus:r,transactionHash:o,transactionId:i}=tf(),a=t||!!i||!!o,c=r.statusName===\"transactionPending\",u=r.statusName===\"buildingTransaction\";return(0,ift.useMemo)(()=>{let d=\"\",p=ct.foregroundMuted;return u&&(d=\"Building transaction...\"),c&&(d=\"Confirm in wallet.\"),a&&(d=\"Transaction in progress...\"),n&&(d=\"Successful\"),e&&(d=e,p=ct.error),{label:d,labelClassName:p}},[e,u,a,c,n])}function pre({className:e}){let{label:t,labelClassName:n}=aft();return(0,nxe.jsx)(\"div\",{className:be(rt.label2,e),children:(0,nxe.jsx)(\"p\",{className:n,children:t})})}function sft({children:e,className:t}){return(0,C5.jsx)(\"div\",{className:be(\"flex justify-between\",t),children:e??(0,C5.jsxs)(C5.Fragment,{children:[(0,C5.jsx)(pre,{}),(0,C5.jsx)(fre,{})]})})}var rxe=he($e(),1);pn();ra();f();function cft({transactionId:e,transactionHash:t,senderChain:n,address:r,onComplete:o}){return i=>{let a=n?.id??Ml();if(i&&e&&t&&n?.id&&r){let c=new URL(\"https://wallet.coinbase.com/assets/transactions\");c.searchParams.set(\"contentParams[txHash]\",t),c.searchParams.set(\"contentParams[chainId]\",JSON.stringify(n?.id)),c.searchParams.set(\"contentParams[fromAddress]\",r),window.open(c,\"_blank\",\"noopener,noreferrer\")}else{let c=bw(a);window.open(`${c}/tx/${t}`,\"_blank\",\"noopener,noreferrer\")}o?.()}}f();f();pn();function uft({recipientAddress:e,tokenAddress:t,amount:n}){if(!t)return{to:e,data:\"0x\",value:n};try{let r=vn({abi:z2,functionName:\"transfer\",args:[e,n]});return{to:t,data:r}}catch(r){return{code:\"AmBSeTx01\",error:r instanceof Error?r.message:String(r),message:\"Could not build transfer transaction\"}}}pn();function lft({recipientAddress:e,token:t,amount:n}){if(!e||!t||!t.decimals||!n)return{calldata:null,error:{code:\"SemBSeTx01\",error:\"Invalid transaction parameters\",message:\"Could not build send transaction\"}};if(!t.address&&t.symbol!==\"ETH\")return{calldata:null,error:{code:\"SemBSeTx02\",error:\"No token address provided for non-ETH token\",message:\"Could not build send transaction\"}};try{let r=A_(n,t.decimals),o=uft({recipientAddress:e,tokenAddress:t.address||null,amount:r});return b5(o)?{calldata:null,error:o}:{calldata:o,error:null}}catch(r){return{calldata:null,error:{code:\"SemBSeTx03\",error:r instanceof Error?r.message:\"Unknown error\",message:\"Could not build send transaction\"}}}}function dft(){let{chain:e,isSponsored:t}=vi(),{recipientState:n,cryptoAmount:r,selectedToken:o,updateLifecycleStatus:i}=ef(),{calldata:a,error:c}=lft({recipientAddress:n.address,token:o,amount:r}),u=!!c||!W$t({inputAmount:r??\"\",balance:BigInt(o?.cryptoBalance??0),selectedToken:o??void 0}),d=j$t(r,o),p=(0,rxe.useCallback)(h=>{[\"transactionPending\",\"transactionLegacyExecuted\",\"success\",\"error\"].includes(h.statusName)&&i(h)},[i]);return(0,R5.jsxs)(tft,{isSponsored:t,chainId:e?.id??dr.id,calls:a?[a]:[],onStatus:p,children:[(0,R5.jsx)(z$t,{label:d,senderChain:e,disabled:u}),(0,R5.jsxs)(sft,{children:[(0,R5.jsx)(pre,{}),(0,R5.jsx)(fre,{})]})]})}function z$t({label:e,senderChain:t,disabled:n}){let{address:r,setActiveFeature:o}=vi(),{transactionHash:i,transactionId:a}=tf(),c=(0,rxe.useCallback)(()=>{o(null)},[o]),u={onClick:cft({transactionId:a,transactionHash:i,senderChain:t??void 0,address:r??void 0,onComplete:c})};return(0,R5.jsx)(dre,{text:e,successOverride:u,disabled:n})}function j$t(e,t){return e?t?A_(e,t.decimals)>t.cryptoBalance?\"Insufficient balance\":\"Continue\":\"Select token\":\"Input amount\"}function W$t({inputAmount:e,balance:t,selectedToken:n}){if(!e||!n||!t)return!1;let r=A_(e,n.decimals);return r>0n&&r<=t}f();var xw=he(ze(),1),BZr=he($e(),1);var $Zr=he(Ny(),1);function fft({onError:e,onStatus:t,onSuccess:n,classNames:r}){return(0,xw.jsxs)(\"div\",{className:be(\"flex flex-col items-center justify-between\",r?.container),\"data-testid\":\"ockSendFundWallet\",children:[(0,xw.jsx)(\"div\",{className:be(rt.label2,ct.foregroundMuted,r?.subtitle),children:\"Insufficient ETH balance to send transaction. Fund your wallet to continue.\"}),(0,xw.jsxs)(f2e,{assetSymbol:\"ETH\",country:\"US\",currency:\"USD\",presetAmountInputs:[\"2\",\"5\",\"10\"],onError:e,onStatus:t,onSuccess:n,className:be(\"mt-3 w-88 border-none py-0\",r?.fundCard),children:[(0,xw.jsx)(CH,{}),(0,xw.jsx)(OH,{}),(0,xw.jsx)(PH,{}),(0,xw.jsx)(kH,{}),(0,xw.jsx)(DH,{})]})]})}f();var AE=he(ze(),1);var oxe=he($e(),1);function pft({label:e=\"Send\",classNames:t}){let{setActiveFeature:n}=vi(),{recipientState:r,selectedToken:o,handleResetTokenSelection:i,deselectRecipient:a}=ef(),c=(0,oxe.useCallback)(()=>{o?i():r.address&&a()},[r.address,o,i,a]),u=(0,oxe.useCallback)(()=>{n(null)},[n]);return(0,AE.jsxs)(\"div\",{\"data-testid\":\"ockSendHeader\",className:be(\"mb-4 grid grid-cols-3 items-center\",t?.container),children:[(0,AE.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_back\",className:\"justify-self-start\",children:r.phase===\"selected\"&&(0,AE.jsx)(Lg,{onClick:c,className:be(\"h-7 w-7 scale-110 p-2\",t?.back),children:SP})}),(0,AE.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_label\",className:be(rt.headline,\"justify-self-center\",t?.label),children:e}),(0,AE.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_close\",className:\"justify-self-end\",children:(0,AE.jsx)(Lg,{onClick:u,className:be(\"h-7 w-7 scale-110 p-2\",t?.close),children:(0,AE.jsx)(tP,{})})})]})}f();var WR=he(ze(),1);var RQr=he($e(),1);var NQr=he(Ny(),1);f();var rl=he(ze(),1);var ixe=he($e(),1);pn();function axe({token:e,onClick:t,onActionPress:n,actionText:r=\"Max\",classNames:o,\"aria-label\":i,...a}){return t?(0,rl.jsxs)(\"div\",{className:\"relative\",children:[(0,rl.jsx)(\"button\",{type:\"button\",\"aria-label\":i??`${e.name} token balance`,onClick:()=>t(e),className:be(\"flex w-full items-center justify-start gap-4 px-2 py-1\",o?.container),\"data-testid\":\"ockTokenBalanceButton\",children:(0,rl.jsx)(hft,{token:e,classNames:o,onActionPress:n,...a})}),n&&(0,rl.jsx)(mft,{actionText:r,onActionPress:n,className:o?.action})]}):(0,rl.jsxs)(\"div\",{className:be(\"flex w-full items-center justify-start gap-4 px-2 py-1\",o?.container),\"data-testid\":\"ockTokenBalance\",children:[(0,rl.jsx)(hft,{token:e,...a,classNames:o}),n&&(0,rl.jsx)(mft,{actionText:r,onActionPress:n,className:o?.action})]})}function hft({token:e,subtitle:t,showImage:n=!0,onActionPress:r,tokenSize:o=40,classNames:i}){var a;let c=(0,ixe.useMemo)(()=>fE({amount:e.fiatBalance,currency:\"USD\"}),[e.fiatBalance]),u=(0,ixe.useMemo)(()=>D1(na(BigInt(e.cryptoBalance),e.decimals),3),[e.cryptoBalance,e.decimals]);return(0,rl.jsxs)(\"div\",{className:\"grid w-full grid-cols-[2.5rem_1fr_auto] items-center gap-3\",children:[(0,rl.jsx)(\"div\",{className:\"h-10 w-10\",children:n&&(0,rl.jsx)(hw,{token:e,size:o})}),(0,rl.jsxs)(\"div\",{className:\"flex min-w-0 flex-col text-left\",children:[(0,rl.jsx)(\"span\",{className:be(rt.headline,ct.foreground,\"overflow-hidden text-ellipsis whitespace-nowrap\",i?.tokenName),children:(a=e.name)==null?void 0:a.trim()}),(0,rl.jsx)(\"span\",{className:be(rt.label2,ct.foregroundMuted,i?.tokenValue),children:`${u} ${e.symbol} ${t??\"\"}`})]}),(0,rl.jsx)(\"div\",{className:\"text-right\",children:!r&&(0,rl.jsx)(\"span\",{className:be(rt.label2,ct.foregroundMuted,\"whitespace-nowrap\",i?.fiatValue),children:c})})]})}function mft({actionText:e,onActionPress:t,className:n}){return(0,rl.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenBalanceAction\",\"aria-label\":e,onClick:t,className:be(rt.label2,ct.primary,bt.radius,\"cursor-pointer p-0.5 font-bold\",\"border border-transparent hover:border-[--ock-line-primary]\",\"-translate-y-1/2 absolute top-1/2 right-2\",n),children:e})}pn();function sxe({classNames:e}){let{address:t}=wr(),{data:n}=sp({address:t},Po.Wallet),r=n?.tokenBalances,{selectedToken:o,handleTokenSelection:i,handleResetTokenSelection:a,setSelectedInputType:c,handleCryptoAmountChange:u,handleFiatAmountChange:d}=ef();return o?(0,WR.jsx)(axe,{token:o,showImage:!0,subtitle:\"available\",onClick:a,onActionPress:()=>{c(\"crypto\"),d(String(o.fiatBalance)),u(String(na(BigInt(o.cryptoBalance),o.decimals)))},classNames:{container:be(Qt.alternate,bt.radius,e?.container),...e}}):(0,WR.jsxs)(\"div\",{className:\"mt-4 flex max-h-80 flex-col gap-2\",children:[(0,WR.jsx)(\"span\",{className:be(rt.caption,ct.foregroundMuted,\"uppercase\"),children:\"Select a token\"}),(0,WR.jsx)(\"div\",{className:\"scrollbar-hidden overflow-y-auto\",children:r?.map(p=>(0,WR.jsx)(axe,{token:p,onClick:i,subtitle:\"\",classNames:{container:be(Qt.default,bt.radius,e?.container),...e}},p.address))})]})}f();var fz=he(ze(),1);function gft({classNames:e}){let{recipientState:t,updateRecipientInput:n,validateRecipientInput:r,deselectRecipient:o}=ef();return(0,fz.jsxs)(\"div\",{\"data-testid\":\"ockSendAddressInput\",className:be(bt.lineDefault,bt.radius,\"w-full\",\"flex items-center gap-2\",\"px-4 py-3\",e?.container),children:[(0,fz.jsx)(\"span\",{className:be(ct.foreground,e?.label),children:\"To\"}),(0,fz.jsx)(kR,{inputMode:\"text\",placeholder:\"Basename, ENS, or Address\",value:t.displayValue??t.input,setValue:n,onChange:r,onFocus:o,\"aria-label\":\"Input Receiver Address\",className:be(An.default,\"w-full outline-none\",e?.input)})]})}f();var Ew=he(ze(),1);var yft=he($e(),1);function bft({classNames:e}){let{chain:t}=vi(),{recipientState:n,selectRecipient:r}=ef(),o=(0,yft.useCallback)(async()=>{r({phase:\"selected\",input:n.input,address:n.address,displayValue:n.displayValue})},[n.input,n.address,n.displayValue,r]);return!n.address||!t?null:(0,Ew.jsx)(\"button\",{\"data-testid\":\"ockSendAddressSelector_button\",type:\"button\",onClick:o,className:\"w-full text-left\",children:(0,Ew.jsx)(\"div\",{\"data-testid\":\"ockSendAddressSelector_container\",className:be(An.default,bt.radius,Qt.default,\"items-left flex min-w-[300px]\",\"mt-2 p-2\",e?.container),children:(0,Ew.jsxs)(\"div\",{className:\"flex items-center space-x-3\",children:[(0,Ew.jsx)(\"div\",{className:\"flex-shrink-0\",children:(0,Ew.jsx)(ap,{address:n.address,chain:t,className:e?.avatar})}),(0,Ew.jsxs)(\"div\",{className:\"flex flex-col\",children:[(0,Ew.jsx)(wh,{address:n.address,chain:t,className:e?.name}),(0,Ew.jsx)(m5,{address:n.address,hasCopyAddressOnClick:!1,className:e?.address})]})]})})})}function vft({children:e=(0,pc.jsx)(G$t,{}),className:t}){return(0,pc.jsx)(Rdt,{children:(0,pc.jsx)(\"div\",{\"data-testid\":\"ockSend\",className:be(An.default,bt.radius,bt.lineDefault,ct.foreground,\"h-120 w-88\",\"flex flex-col\",\"p-4\",t),children:e})})}function G$t(){let{ethBalance:e,isInitialized:t,recipientState:n,selectedToken:r}=ef(),o=(e??0)>1e-6;return t?(0,pc.jsxs)(pc.Fragment,{children:[(0,pc.jsx)(pft,{}),o?(0,pc.jsxs)(\"div\",{className:\"flex h-full flex-col justify-between gap-4\",children:[(0,pc.jsxs)(\"div\",{children:[(0,pc.jsx)(gft,{}),n.phase===\"validated\"&&(0,pc.jsx)(bft,{}),n.phase===\"selected\"&&!r&&(0,pc.jsx)(sxe,{})]}),n.phase===\"selected\"&&r&&(0,pc.jsxs)(pc.Fragment,{children:[(0,pc.jsx)(Odt,{}),(0,pc.jsx)(sxe,{}),(0,pc.jsx)(dft,{})]})]}):(0,pc.jsx)(fft,{})]}):(0,pc.jsx)(fw,{className:\"h-full w-full\"})}function mre({children:e,swappableTokens:t,classNames:n}){let{isSubComponentOpen:r,setIsSubComponentOpen:o,isSubComponentClosing:i,setIsSubComponentClosing:a,connectRef:c,breakpoint:u,activeFeature:d,animations:p}=vi(),{address:h}=wr(),{data:g}=sp({address:h,enabled:!!d},Po.Wallet),y=g?.tokenBalances,v=(0,pz.useCallback)(()=>{o(!1)},[o]),x=(0,pz.useCallback)(()=>{i&&(o(!1),a(!1))},[i,o,a]),R=(0,pz.useMemo)(()=>d===\"send\"?(0,Lm.jsx)(hre,{children:(0,Lm.jsx)(vft,{className:\"border-none\"})}):d===\"qr\"?(0,Lm.jsx)(hre,{children:(0,Lm.jsx)(K2e,{classNames:n?.qr})}):d===\"swap\"?(0,Lm.jsx)(hre,{children:(0,Lm.jsx)($2e,{title:(0,Lm.jsx)(\"div\",{className:be(rt.headline,\"w-full text-center text-base\"),children:\"Swap\"}),to:t??Mst,from:y?.map(S=>({address:S.address,chainId:S.chainId,symbol:S.symbol,decimals:S.decimals,image:S.image,name:S.name}))??[],classNames:n?.swap})}):(0,Lm.jsx)(hre,{children:e}),[d,t,y,e,n]);return u===\"sm\"?(0,Lm.jsx)(dut,{isOpen:r,triggerRef:c,onClose:v,className:n?.container,children:(0,Lm.jsx)(\"div\",{className:\"flex h-full w-full flex-col items-center justify-center\",children:R})}):(0,Lm.jsx)(\"div\",{\"data-testid\":\"ockWalletDropdownContent\",className:be(An.default,bt.radius,bt.lineDefault,Qd.dropdown,\"my-1.5 h-auto w-full\",\"flex justify-center\",\"overflow-hidden\",p.container,n?.container),onAnimationEnd:x,children:R})}function hre({children:e,className:t}){return(0,Lm.jsx)(\"div\",{className:be(\"flex flex-col justify-between\",\"min-w-80 max-h-120\",t),children:e})}var q$t=(0,B1.jsxs)(B1.Fragment,{children:[(0,B1.jsx)(KH,{}),(0,B1.jsx)(HH,{}),(0,B1.jsx)(GH,{}),(0,B1.jsx)(zH,{})]});function gre({children:e,classNames:t,swappableTokens:n}){let{isSubComponentOpen:r,showSubComponentAbove:o,alignSubComponentRight:i}=vi();return r?(0,B1.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvancedContainer\",className:be(\"absolute\",o?\"bottom-full\":\"top-full\",i?\"right-0\":\"left-0\"),children:(0,B1.jsx)(mre,{classNames:t,swappableTokens:n,children:e||q$t})}):null}f();var Sh=he(ze(),1);var uXr=he($e(),1);f();var hz=he(ze(),1),wft=he($e(),1);function mz({className:e,text:t=\"Disconnect\"}){let{disconnect:n,connectors:r}=UD(),o=(0,wft.useCallback)(()=>{r.map(i=>n({connector:i}))},[n,r]);return(0,hz.jsxs)(\"button\",{type:\"button\",className:be(Qt.default,ct.foreground,\"relative flex w-full items-center px-4 pt-3 pb-4\",e),onClick:o,children:[(0,hz.jsx)(\"div\",{className:\"absolute left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center\",children:Nne}),(0,hz.jsx)(\"span\",{className:be(rt.body,\"pl-6\"),children:t})]})}f();var gz=he(ze(),1);function cxe({children:e,className:t,icon:n,href:r,rel:o,target:i}){let a=dE({icon:n});return(0,gz.jsxs)(\"a\",{className:be(Qt.default,ct.foreground,\"relative flex items-center px-4 py-3\",t),href:r,target:i,rel:o,children:[(0,gz.jsx)(\"div\",{className:\"-translate-y-1/2 absolute top-1/2 left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center\",children:a}),(0,gz.jsx)(\"span\",{className:be(rt.body,\"pl-6\"),children:e})]})}var K$t=(0,Sh.jsxs)(Sh.Fragment,{children:[(0,Sh.jsxs)(Rne,{className:\"px-4 pt-3 pb-2\",children:[(0,Sh.jsx)(ap,{}),(0,Sh.jsx)(wh,{}),(0,Sh.jsx)(m5,{className:ct.foregroundMuted}),(0,Sh.jsx)(BH,{})]},\"wallet-dd-identity\"),(0,Sh.jsx)(cxe,{icon:\"wallet\",href:\"https://keys.coinbase.com\",target:\"_blank\",children:\"Wallet\"},\"wallet-dd-link\"),(0,Sh.jsx)(mz,{},\"wallet-dd-disconnect\")]});function I5({children:e,className:t,classNames:n,swappableTokens:r}){let{address:o,breakpoint:i,isSubComponentOpen:a,showSubComponentAbove:c,alignSubComponentRight:u}=vi();return!o||!i||!a?null:(0,Sh.jsx)(\"div\",{\"data-testid\":\"ockWalletDropdown\",className:be(\"absolute\",c?\"bottom-full\":\"top-full\",u?\"right-0\":\"left-0\",t),children:(0,Sh.jsx)(mre,{classNames:n,swappableTokens:r,children:e||K$t})})}var xft=(0,Th.jsxs)(Th.Fragment,{children:[(0,Th.jsx)(M1,{}),(0,Th.jsx)(I5,{})]});function OP({children:e,className:t,draggable:n,draggableStartingPosition:r,isSponsored:o}){let i=Aa();return gP()?(0,Th.jsx)(Kwe,{isSponsored:o,children:(0,Th.jsx)(Y$t,{className:be(i,t),...Gct({draggable:n,draggableStartingPosition:r}),children:e})}):null}function Y$t({children:e,className:t,draggable:n,draggableStartingPosition:r}){let{isSubComponentOpen:o,isConnectModalOpen:i,handleClose:a,connectRef:c,breakpoint:u}=vi(),d=(0,Aw.useRef)(null);bne(d,a);let{dropdown:p,advanced:h}=(0,Aw.useMemo)(()=>{let v=Aw.Children.toArray(e);return{dropdown:v.find(ip(I5)),advanced:v.find(ip(gre))}},[e]),g=(0,Aw.useMemo)(()=>Aw.Children.map(e,v=>(0,Aw.isValidElement)(v)&&v.type===gre&&p?null:v),[p,e]);p&&h&&console.error(\"Defaulted to WalletDropdown. Wallet cannot have both WalletDropdown and WalletAdvanced as children.\");let y=i||u===\"sm\"&&o;return n?(0,Th.jsx)(\"div\",{ref:d,className:be(\"relative w-fit shrink-0\",t),children:(0,Th.jsx)(Vct,{startingPosition:r,disabled:y,children:(0,Th.jsx)(\"div\",{ref:c,children:g||xft})})}):(0,Th.jsx)(\"div\",{ref:d,className:be(\"relative w-fit shrink-0\",t),children:(0,Th.jsx)(\"div\",{ref:c,children:g||xft})})}f();var Z$t=he(ze(),1);f();var Eft=he(ze(),1),KXr=he($e(),1);f();var kP=he(ze(),1);var Q$t=(0,kP.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:tn.foreground,children:[(0,kP.jsx)(\"title\",{children:\"Portfolio\"}),(0,kP.jsx)(\"path\",{d:\"M2.7125 0.875H15.875V4.625H2.7125C1.7 4.625 0.875 3.8 0.875 2.7875V2.7125C0.875 1.7 1.7 0.875 2.7125 0.875Z\",fill:\"currentColor\"}),(0,kP.jsx)(\"path\",{d:\"M0.875 5.875V14.5C0.875 15.95 2.05 17.125 3.5 17.125H17.125V5.875H0.875ZM13.375 12.125C12.6875 12.125 12.125 11.5625 12.125 10.875C12.125 10.1875 12.6875 9.625 13.375 9.625C14.0625 9.625 14.625 10.1875 14.625 10.875C14.625 11.5625 14.0625 12.125 13.375 12.125Z\",fill:\"currentColor\"})]});f();var uxe=he(ze(),1);f();var yre=he(ze(),1);var J$t=(0,yre.jsx)(\"svg\",{\"data-testid\":\"ock-basenameSvg\",role:\"img\",\"aria-label\":\"ock-basenameSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:(0,yre.jsx)(\"g\",{id:\"Icons/User\",children:(0,yre.jsx)(\"path\",{id:\"Vector\",d:\"M10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20ZM12.832 6.9987C12.832 5.43461 11.5641 4.16666 10 4.16666C8.43594 4.16666 7.168 5.43461 7.168 6.9987C7.168 8.56279 8.43594 9.83073 10 9.83073C11.5641 9.83073 12.832 8.56279 12.832 6.9987ZM5.67266 11.6810L4.76738 14.0938C6.10704 15.4238 7.95093 16.2465 9.98699 16.2500L10.0130 16.2500C12.0491 16.2465 13.8930 15.4238 15.2326 14.0938L14.3273 11.6810C14.0026 10.8125 13.1794 10.2385 12.2581 10.2159C12.2279 10.2385 11.2310 10.9635 10.0000 10.9635C8.76903 10.9635 7.77215 10.2385 7.74194 10.2159C6.82059 10.2310 5.9974 10.8125 5.67266 11.6810Z\",className:tn.foreground})})});f();var Aft=he(ze(),1),_ft=he($e(),1);f();var Sft=he(ze(),1);f();f();var nf=he($e());pn();ra();f();var _w={};qa(_w,{SCHEME:()=>VR,evm:()=>lxe,svm:()=>fxe});f();var lxe={};qa(lxe,{createPayment:()=>Zit,createPaymentHeader:()=>Qit,decodePayment:()=>uQt,encodePayment:()=>L7,preparePaymentHeader:()=>ywe,settle:()=>X$t,signPaymentHeader:()=>bwe,verify:()=>Tft});f();f();pn();async function Tft(e,t,n){let r=t.payload,o=r.authorization.from,i=r.signature;if((i.startsWith(\"0x\")?i.length-2:i.length)>130){let x=await e.getCode({address:o});if(!x||x===\"0x\")return{isValid:!1,invalidReason:\"invalid_exact_evm_payload_undeployed_smart_wallet\",payer:o}}if(t.scheme!==VR||n.scheme!==VR)return{isValid:!1,invalidReason:\"unsupported_scheme\",payer:r.authorization.from};let u,d,p,h;try{d=wR(t.network),u=n.extra?.name??LF[d.toString()].usdcName,p=n.asset,h=n.extra?.version??await kit(e)}catch{return{isValid:!1,invalidReason:\"invalid_network\",payer:t.payload.authorization.from}}let g={types:Hee,primaryType:\"TransferWithAuthorization\",domain:{name:u,version:h,chainId:d,verifyingContract:p},message:{from:r.authorization.from,to:r.authorization.to,value:r.authorization.value,validAfter:r.authorization.validAfter,validBefore:r.authorization.validBefore,nonce:r.authorization.nonce}};return await e.verifyTypedData({address:r.authorization.from,...g,signature:r.signature})?nr(r.authorization.to)!==nr(n.payTo)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_recipient_mismatch\",payer:r.authorization.from}:BigInt(r.authorization.validBefore)<BigInt(Math.floor(Date.now()/1e3)+6)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_valid_before\",payer:r.authorization.from}:BigInt(r.authorization.validAfter)>BigInt(Math.floor(Date.now()/1e3))?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_valid_after\",payer:r.authorization.from}:await Nit(e,p,r.authorization.from)<BigInt(n.maxAmountRequired)?{isValid:!1,invalidReason:\"insufficient_funds\",payer:r.authorization.from}:BigInt(r.authorization.value)<BigInt(n.maxAmountRequired)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_value\",payer:r.authorization.from}:{isValid:!0,invalidReason:void 0,payer:r.authorization.from}:{isValid:!1,invalidReason:\"invalid_exact_evm_payload_signature\",payer:r.authorization.from}}async function X$t(e,t,n){let r=t.payload,o=await Tft(e,t,n);if(!o.isValid)return{success:!1,network:t.network,transaction:\"\",errorReason:o.invalidReason??\"invalid_scheme\",payer:r.authorization.from};let{signature:i}=mce(r.signature),a=C_(i),c=await e.writeContract({address:n.asset,abi:mR,functionName:\"transferWithAuthorization\",args:[r.authorization.from,r.authorization.to,BigInt(r.authorization.value),BigInt(r.authorization.validAfter),BigInt(r.authorization.validBefore),r.authorization.nonce,a.v||a.yParity,a.r,a.s],chain:e.chain});return(await e.waitForTransactionReceipt({hash:c})).status!==\"success\"?{success:!1,errorReason:\"invalid_transaction_state\",transaction:c,network:t.network,payer:r.authorization.from}:{success:!0,transaction:c,network:t.network,payer:r.authorization.from}}var fxe={};qa(fxe,{confirmSignedTransaction:()=>Lft,createAndSignPayment:()=>nat,createPaymentHeader:()=>tat,getValidatedTransferCheckedInstruction:()=>Mft,sendAndConfirmSignedTransaction:()=>Bft,sendSignedTransaction:()=>Dft,settle:()=>$$t,transactionIntrospection:()=>Rft,verify:()=>dxe,verifyComputeLimitInstruction:()=>Oft,verifyComputePriceInstruction:()=>kft,verifySchemesAndNetworks:()=>Cft,verifyTransactionInstructions:()=>Ift,verifyTransferCheckedInstruction:()=>Pft,verifyTransferInstruction:()=>Nft});f();f();f();f();async function dxe(e,t,n,r){try{Cft(t,n);let o=t.payload,i=ER(o),a=N1(n.network,r?.svmConfig?.rpcUrl);if(await Rft(o,n,e,r),(await qit(e,i,a)).value?.err)throw new Error(\"invalid_exact_svm_payload_transaction_simulation_failed\");return{isValid:!0,invalidReason:void 0,payer:D7(i)}}catch(o){return o instanceof Error&&aH.includes(o.message)?{isValid:!1,invalidReason:o.message,payer:(()=>{try{let i=ER(t.payload);return D7(i)}catch{return}})()}:(console.error(o),{isValid:!1,invalidReason:\"unexpected_verify_error\",payer:(()=>{try{let i=ER(t.payload);return D7(i)}catch{return}})()})}}function Cft(e,t){if(e.scheme!==VR||t.scheme!==VR)throw new Error(\"unsupported_scheme\");if(e.network!==t.network||!O1.includes(t.network))throw new Error(\"invalid_network\")}async function Rft(e,t,n,r){let o=N1(t.network,r?.svmConfig?.rpcUrl),i=ER(e),a=N7().decode(i.messageBytes),c=cte(a);await Ift(c,t,n,o)}async function Ift(e,t,n,r){if(e.instructions.length!==3)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_length\");Oft(e.instructions[0]),kft(e.instructions[1]),e.instructions.forEach(o=>{if(o.accounts?.some(i=>i.address===n.address))throw new Error(\"invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts\")}),await Nft(e.instructions[2],t,n,r)}function Oft(e){try{if(e.programAddress.toString()!==B7.toString()||e.data?.[0]!==2)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\");Jit(e)}catch(t){throw console.error(t),new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\")}}function kft(e){if(e.programAddress.toString()!==B7.toString()||e.data?.[0]!==3)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction\");if(Xit(e).data.microLamports>5*1e6)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high\")}async function Nft(e,t,n,r){let o=Mft(e);await Pft(o,t,n,r)}async function Pft(e,t,n,r){let o=e.programAddress.toString()===ow.toString()?ow:iw;if(e.accounts.authority.address===n.address)throw new Error(\"invalid_exact_svm_payload_transaction_fee_payer_transferring_funds\");let i=await xR({mint:t.asset,owner:t.payTo,tokenProgram:o});if(e.accounts.destination.address!==i[0])throw new Error(\"invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata\");let a=[e.accounts.source.address,i[0]],u=(await tte(r,a)).filter(h=>!h.exists);for(let h of u){if(h.address===e.accounts.source.address)throw new Error(\"invalid_exact_svm_payload_transaction_sender_ata_not_found\");if(h.address===i[0])throw new Error(\"invalid_exact_svm_payload_transaction_receiver_ata_not_found\")}let d=e.data.amount,p=BigInt(t.maxAmountRequired);if(d!==p)throw new Error(\"invalid_exact_svm_payload_transaction_amount_mismatch\")}function Mft(e){try{Cot(e),Tot(e)}catch(n){throw console.error(n),new Error(\"invalid_exact_svm_payload_transaction_instructions\")}let t;if(e.programAddress.toString()===ow.toString()){if(Dit(e)!==hwe.TransferChecked)throw new Error(\"invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked\");t=Lit({...e,data:new Uint8Array(e.data)})}else if(e.programAddress.toString()===iw.toString()){if(Wit(e)!==mwe.TransferChecked)throw new Error(\"invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked\");t=Git({...e,data:new Uint8Array(e.data)})}else throw new Error(\"invalid_exact_svm_payload_transaction_not_a_transfer_instruction\");return t}async function $$t(e,t,n,r){let o=await dxe(e,t,n,r);if(!o.isValid)return{success:!1,errorReason:o.invalidReason,network:t.network,transaction:\"\"};let i=t.payload,a=ER(i),c=await gwe(e,a);een(c);let u=D7(c),d=N1(n.network,r?.svmConfig?.rpcUrl),p=Oit(n.network,r?.svmConfig?.rpcUrl);try{let{success:h,errorReason:g,signature:y}=await Bft(c,d,p);return{success:h,errorReason:g,payer:u,transaction:y,network:t.network}}catch(h){return console.error(\"Unexpected error during transaction settlement:\",h),{success:!1,errorReason:\"unexpected_settle_error\",network:t.network,transaction:$F(c),payer:u}}}async function Dft(e,t,n={skipPreflight:!0,encoding:\"base64\"}){let r=$S(e);return await t.sendTransaction(r,n).send()}async function Lft(e,t,n){let r=$F(e),o=new AbortController,i=setTimeout(()=>{o.abort(\"Transaction confirmation timed out after 60 seconds\")},6e4);try{let a=N7().decode(e.messageBytes),c=await Rit(a,t);Bot(c);let u={...e,lifetimeConstraint:c.lifetimeConstraint},d=\"confirmed\",p=Tit({rpc:t,rpcSubscriptions:n}),h=Sit({rpc:t,rpcSubscriptions:n}),g={abortSignal:o.signal,commitment:d,getBlockHeightExceedencePromise:h,getRecentSignatureConfirmationPromise:p};return await Cit({...g,transaction:u}),{success:!0,signature:r}}catch(a){if(console.error(a),rE(a,FF))return{success:!1,errorReason:\"settle_exact_svm_block_height_exceeded\",signature:r};if(a instanceof DOMException&&a.name===\"AbortError\")return{success:!1,errorReason:\"settle_exact_svm_transaction_confirmation_timed_out\",signature:r};throw a}finally{clearTimeout(i)}}async function Bft(e,t,n){return await Dft(e,t),await Lft(e,t,n)}function een(e){let t=Object.entries(e.signatures).filter(([,n])=>n==null).map(([n])=>n);if(t.length>0)throw new Error(`transaction_signer_missing_signatures:${t.join(\",\")}`)}var VR=\"exact\";f();var pxe=he(ze());function bre({className:e=\"\"}){return(0,pxe.jsx)(\"div\",{className:`inline-flex items-center justify-center ${e}`,children:(0,pxe.jsx)(\"div\",{className:\"animate-spin border-2 border-gray-200 border-t-gray-400 rounded-full w-4 h-4\",style:{animation:\"spin 1s linear infinite\",borderTopWidth:\"2px\"}})})}f();var O5=he($e());f();function hxe(e){if(e===null||typeof e!=\"object\")return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(n=>hxe(n));let t={};for(let n in e)n===\"__proto__\"||n===\"constructor\"||n===\"prototype\"||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=hxe(e[n]));return t}function vre(e){let t=hxe(e);if(window.x402?.amount)try{let n=Math.round(window.x402.amount*1e6);t.maxAmountRequired=n.toString()}catch(n){console.error(\"Failed to parse amount:\",n)}return(!t.maxAmountRequired||!/^\\\\d+$/.test(t.maxAmountRequired))&&(t.maxAmountRequired=\"10000\"),t}var Uft=async e=>{let t=window.x402?.sessionTokenEndpoint;return t?(await(await fetch(t,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({addresses:[{address:e,blockchains:[\"base\"]}],assets:[\"USDC\"]})})).json()).token:void 0};var ten=300*1e3;function Fft(e){let[t,n]=(0,O5.useState)(),[r,o]=(0,O5.useState)(null),i=(0,O5.useCallback)(()=>r?Date.now()-r>ten:!0,[r]),a=(0,O5.useCallback)(async()=>{if(e&&(!t||i())){let c=await Uft(e);n(c),o(Date.now())}},[e,t,i]);return(0,O5.useEffect)(()=>{e?a():(n(void 0),o(null))},[e,a]),{sessionToken:t}}var mo=he(ze());function Hft({paymentRequirement:e,onSuccessfulResponse:t}){let{address:n,isConnected:r,chainId:o}=wr(),{switchChainAsync:i}=a6(),{data:a}=xue(),{sessionToken:c}=Fft(n),[u,d]=(0,nf.useState)(\"\"),[p,h]=(0,nf.useState)(null),[g,y]=(0,nf.useState)(!1),[v,x]=(0,nf.useState)(\"\"),[R,S]=(0,nf.useState)(!0),M=window.x402,P=typeof M.amount==\"number\"?M.amount:Number(e.maxAmountRequired??0)/1e6,z=e.network,V=z===\"base-sepolia\"?Ya:dr,Q=V.id,$=Tte(z),oe=iat(z),J=!!(!oe&&r&&M.sessionTokenEndpoint),re=(0,nf.useMemo)(()=>ox({chain:V,transport:mu()}).extend(j8),[V]),q=(0,nf.useCallback)(async()=>{if(!n)return;let k=await pwe(re,n),F=na(k,6);x(F)},[n,re]),K=(0,nf.useCallback)(async()=>{if(!p)try{d(\"\"),await i({chainId:Q}),await new Promise(k=>setTimeout(k,100))}catch(k){d(k instanceof Error?k.message:\"Failed to switch network\")}},[i,Q,p]);(0,nf.useEffect)(()=>{n&&(K(),q())},[n,K,q]),(0,nf.useEffect)(()=>{r&&Q===o?(h(!0),d(\"\")):r&&Q!==o?(h(!1),d(`On the wrong network. Please switch to ${$}.`)):(h(null),d(\"\"))},[Q,o,r,$]);let U=(0,nf.useMemo)(()=>{if(c)return OR({presetFiatAmount:2,fiatCurrency:\"USD\",sessionToken:c})},[c]),T=(0,nf.useCallback)(async()=>{if(!n||!M)return;if(await K(),!a){d(\"Wallet client not available. Please reconnect your wallet.\");return}let k=a.extend(j8);y(!0);try{if(d(\"Checking USDC balance...\"),await pwe(re,n)===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${$}`);d(\"Creating payment signature...\");let N=vre(e),B=await _w.evm.createPayment(k,1,N),H=_w.evm.encodePayment(B);d(\"Requesting content with payment...\");let W=await fetch(M.currentUrl,{headers:{\"X-PAYMENT\":H,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(W.ok)await t(W);else if(W.status===402){let G=await W.json().catch(()=>({}));if(G.error===\"invalid_exact_evm_payload_undeployed_smart_wallet\")throw new Error(\"Smart wallet must be deployed before making payments. Please deploy your wallet first.\");if(G&&typeof G.x402Version==\"number\"){let O=await _w.evm.createPayment(k,G.x402Version,N);O.x402Version=G.x402Version;let j=_w.evm.encodePayment(O),te=await fetch(M.currentUrl,{headers:{\"X-PAYMENT\":j,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(te.ok){await t(te);return}else throw new Error(`Payment retry failed: ${te.statusText}`)}else throw new Error(`Payment failed: ${W.statusText}`)}else{let G=`Request failed: ${W.status} ${W.statusText}`;try{let O=await W.json();O.error?G=O.error:O.invalidReason===\"invalid_exact_evm_payload_undeployed_smart_wallet\"?G=\"Smart wallet must be deployed before making payments. Please deploy your wallet first.\":O.invalidReason&&(G=`Payment validation failed: ${O.invalidReason}`)}catch{}throw new Error(G)}}catch(F){d(F instanceof Error?F.message:\"Payment failed\")}finally{y(!1)}},[n,M,e,K,a,re,$,t]);return M?(0,mo.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,mo.jsxs)(\"div\",{className:\"header\",children:[(0,mo.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,mo.jsxs)(\"p\",{children:[e.description&&`${e.description}.`,\" To access this content, please pay $\",P,\" \",$,\" USDC.\"]}),oe&&(0,mo.jsxs)(\"p\",{className:\"instructions\",children:[\"Need \",$,\" USDC?\",\" \",(0,mo.jsxs)(\"a\",{href:\"https://faucet.circle.com/\",target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Get some \",(0,mo.jsx)(\"u\",{children:\"here\"}),\".\"]})]})]}),(0,mo.jsxs)(\"div\",{className:\"content w-full\",children:[(0,mo.jsxs)(OP,{className:\"w-full\",children:[(0,mo.jsxs)(M1,{className:\"w-full py-3\",disconnectedLabel:\"Connect wallet\",children:[(0,mo.jsx)(ap,{className:\"h-5 w-5 opacity-80\"}),(0,mo.jsx)(wh,{className:\"opacity-80 text-sm\"})]}),(0,mo.jsx)(I5,{children:(0,mo.jsx)(mz,{className:\"opacity-80\"})})]}),r&&(0,mo.jsxs)(\"div\",{id:\"payment-section\",children:[(0,mo.jsxs)(\"div\",{className:\"payment-details\",children:[(0,mo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,mo.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,mo.jsx)(\"span\",{className:\"payment-value\",children:n?`${n.slice(0,6)}...${n.slice(-4)}`:\"Loading...\"})]}),(0,mo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,mo.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,mo.jsx)(\"span\",{className:\"payment-value\",children:(0,mo.jsx)(\"button\",{className:\"balance-button\",onClick:()=>S(k=>!k),children:v&&!R?`$${v} USDC`:\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\"})})]}),(0,mo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,mo.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,mo.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",P,\" USDC\"]})]}),(0,mo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,mo.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,mo.jsx)(\"span\",{className:\"payment-value\",children:$})]})]}),p?(0,mo.jsxs)(\"div\",{className:\"cta-container\",children:[J&&(0,mo.jsx)(TH,{fundingUrl:U,text:\"Get more USDC\",hideIcon:!0,className:\"button button-positive\"}),(0,mo.jsx)(\"button\",{className:\"button button-primary\",onClick:T,disabled:g,children:g?(0,mo.jsx)(bre,{}):\"Pay now\"})]}):(0,mo.jsxs)(\"button\",{className:\"button button-primary\",onClick:K,children:[\"Switch to \",$]})]}),u&&(0,mo.jsx)(\"div\",{className:\"status\",children:u})]})]}):null}f();var rf=he($e());f();f();var zft=\"standard:connect\";f();var jft=\"standard:disconnect\";f();var Wft=\"standard:events\";f();var yz=\"solana:signTransaction\";var Vft=e=>yz in e.features,Gft=e=>e.features[yz],wre=e=>e.features[zft],qft=e=>e.features[Wft],Kft=e=>e.features[jft];f();var _E=he($e());pn();function Yft({activeAccount:e,paymentRequirement:t,onStatus:n}){let[r,o]=(0,_E.useState)(null),[i,a]=(0,_E.useState)(\"\"),[c,u]=(0,_E.useState)(!1),d=(0,_E.useCallback)(()=>{o(null),a(\"\")},[]),p=(0,_E.useCallback)(async(h=e)=>{if(!h)return d(),null;try{u(!0);let g=N1(t.network),y=await Ete(g,t.asset),v=y.programAddress,[x]=await xR({mint:t.asset,owner:YF(h.address),tokenProgram:v}),R=0n;if(v.toString()===ow.toString()){let S=await Mit(g,x);S.exists&&(R=S.data.amount)}else if(v.toString()===iw.toString()){let S=await jit(g,x);S.exists&&(R=S.data.amount)}return o(R),a(na(R,y.data.decimals)),R}catch(g){return console.error(\"Failed to fetch Solana USDC balance\",g),n(\"Unable to read your USDC balance. Please retry.\"),d(),null}finally{u(!1)}},[e,t,n,d]);return(0,_E.useEffect)(()=>{e&&p()},[e,p]),{usdcBalance:r,formattedBalance:i,isFetchingBalance:c,refreshBalance:p,resetBalance:d}}f();var Zft=he($e());function Qft({activeWallet:e,activeAccount:t,targetChain:n}){return(0,Zft.useMemo)(()=>{if(!e||!t)return null;let r=Gft(e);if(!r)return null;let o=YF(t.address),i=Zve(),a=ute();return{address:o,async signTransactions(c){let u=[];for(let d of c){let p=new Uint8Array(i.encode(d)),[h]=await r.signTransaction({account:t,transaction:p,chain:n}),y=a.decode(new Uint8Array(h.signedTransaction)).signatures[o];if(!y)throw new Error(\"Wallet did not return a signature for the selected account.\");u.push(Object.freeze({[o]:y}))}return u}}},[e,t,n])}f();var Jft=he($e());function Xft({activeWallet:e,targetChain:t,chainName:n,setActiveWallet:r,setActiveAccount:o,setSelectedWalletValue:i,setStatus:a,resetBalance:c,refreshBalance:u}){(0,Jft.useEffect)(()=>{if(!e)return;let d=qft(e);if(!d)return;let p=d.on(\"change\",h=>{if(h.features&&!(yz in h.features)){r(null),o(null),i(\"\"),c(),a(\"Selected wallet no longer supports Solana signing. Please reconnect.\");return}if(h.accounts){if(!h.accounts.length){o(null),c(),a(\"Wallet disconnected. Select a wallet to reconnect.\");return}let g=h.accounts.find(y=>y.chains?.includes(t))??h.accounts[0]??null;if(o(g),!g){a(\"No authorized Solana accounts available. Reconnect your wallet.\"),c();return}g.chains?.includes(t)?a(\"\"):a(`Switch your wallet to ${n} to continue.`),u(g)}});return()=>{p()}},[e,t,n,r,o,i,a,c,u])}f();var Are=he($e());f();var nen=function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},ren=function(e,t,n,r,o){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof t==\"function\"?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?o.call(e,n):o?o.value=n:t.set(e,n),n},xre,bz,Ere=new Set;function oen(e){vz=void 0,Ere.add(e)}function ien(e){vz=void 0,Ere.delete(e)}var NP={};function tpt(){if(bz||(bz=Object.freeze({register:$ft,get:aen,on:sen}),typeof window>\"u\"))return bz;let e=Object.freeze({register:$ft});try{window.addEventListener(\"wallet-standard:register-wallet\",({detail:t})=>t(e))}catch(t){console.error(`wallet-standard:register-wallet event listener could not be added\\n`,t)}try{window.dispatchEvent(new mxe(e))}catch(t){console.error(`wallet-standard:app-ready event could not be dispatched\\n`,t)}return bz}function $ft(...e){return e=e.filter(t=>!Ere.has(t)),e.length?(e.forEach(t=>oen(t)),NP.register?.forEach(t=>ept(()=>t(...e))),function(){e.forEach(n=>ien(n)),NP.unregister?.forEach(n=>ept(()=>n(...e)))}):()=>{}}var vz;function aen(){return vz||(vz=[...Ere]),vz}function sen(e,t){return NP[e]?.push(t)||(NP[e]=[t]),function(){NP[e]=NP[e]?.filter(r=>t!==r)}}function ept(e){try{e()}catch(t){console.error(t)}}var mxe=class extends Event{get detail(){return nen(this,xre,\"f\")}get type(){return\"wallet-standard:app-ready\"}constructor(t){super(\"wallet-standard:app-ready\",{bubbles:!1,cancelable:!1,composed:!1}),xre.set(this,void 0),ren(this,xre,t,\"f\")}preventDefault(){throw new Error(\"preventDefault cannot be called\")}stopImmediatePropagation(){throw new Error(\"stopImmediatePropagation cannot be called\")}stopPropagation(){throw new Error(\"stopPropagation cannot be called\")}};xre=new WeakMap;function npt(){let[e,t]=(0,Are.useState)([]);return(0,Are.useEffect)(()=>{let n=tpt(),r=()=>n.get().filter(Vft).map(a=>({value:a.name,wallet:a}));t(r());let o=n.on(\"register\",()=>{t(r())}),i=n.on(\"unregister\",()=>{t(r())});return()=>{o(),i()}},[]),e}f();var rpt=he($e());function opt({walletOptions:e,activeWallet:t,targetChain:n,attemptedSilentConnectWalletsRef:r,setSelectedWalletValue:o,setActiveWallet:i,setActiveAccount:a,refreshBalance:c,setStatus:u}){(0,rpt.useEffect)(()=>{if(!t)for(let d of e){if(r.current.has(d.value))continue;r.current.add(d.value);let p=wre(d.wallet);p&&(async()=>{try{let{accounts:h}=await p.connect({silent:!0});if(!h?.length)return;let g=h.find(y=>y.chains?.includes(n))??h[0];if(!g)return;o(d.value),i(d.wallet),a(g),u(\"\"),await c(g)}catch{}})()}},[e,t,n,r,o,i,a,c,u])}var go=he(ze());function ipt({paymentRequirement:e,onSuccessfulResponse:t}){let[n,r]=(0,rf.useState)(\"\"),[o,i]=(0,rf.useState)(!1),a=npt(),[c,u]=(0,rf.useState)(\"\"),[d,p]=(0,rf.useState)(null),[h,g]=(0,rf.useState)(null),[y,v]=(0,rf.useState)(!0),x=(0,rf.useRef)(new Set),{usdcBalance:R,formattedBalance:S,isFetchingBalance:M,refreshBalance:P,resetBalance:z}=Yft({activeAccount:h,paymentRequirement:e,onStatus:r}),V=window.x402,Q=typeof V.amount==\"number\"?V.amount:Number(e.maxAmountRequired??0)/1e6,$=e.network,oe=Tte($),J=$===\"solana\"?\"solana:mainnet\":\"solana:devnet\",re=Qft({activeWallet:d,activeAccount:h,targetChain:J});(0,rf.useEffect)(()=>{!c&&a.length===1&&u(a[0].value)},[a,c]),(0,rf.useEffect)(()=>{d&&(a.some(T=>T.wallet===d)||(p(null),g(null),u(\"\"),z()))},[a,d,z]),opt({walletOptions:a,activeWallet:d,targetChain:J,attemptedSilentConnectWalletsRef:x,setSelectedWalletValue:u,setActiveWallet:p,setActiveAccount:g,refreshBalance:P,setStatus:r}),Xft({activeWallet:d,targetChain:J,chainName:oe,setActiveWallet:p,setActiveAccount:g,setSelectedWalletValue:u,setStatus:r,resetBalance:z,refreshBalance:P});let q=(0,rf.useCallback)(async()=>{let T=a.find(F=>F.value===c)?.wallet;if(!T){r(\"Select a Solana wallet to continue.\");return}let k=wre(T);if(!k){r(\"Selected wallet does not support standard connect.\");return}try{r(\"Connecting to wallet...\");let{accounts:F}=await k.connect();if(!F?.length)throw new Error(\"Wallet did not provide any accounts.\");let N=F.find(B=>B.chains?.includes(J))??F[0];p(T),g(N),r(\"\"),await P(N)}catch(F){console.error(\"Failed to connect wallet\",F),r(F instanceof Error?F.message:\"Failed to connect wallet.\")}},[a,c,J,P]),K=(0,rf.useCallback)(async()=>{let T=d&&Kft(d);T&&await T.disconnect().catch(console.error),p(null),g(null),z(),r(\"\")},[d,z]),U=(0,rf.useCallback)(async()=>{if(V){if(!re||!h){r(\"Connect a Solana wallet before paying.\");return}i(!0);try{if(R===null||R===0n){r(\"Checking USDC balance...\");let H=await P();if(!H||H===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${oe}.`)}r(\"Creating payment transaction...\");let T=vre(e),F=await(async H=>_w.svm.createPaymentHeader(re,H,T))(1);r(\"Requesting content with payment...\");let N=await fetch(V.currentUrl,{headers:{\"X-PAYMENT\":F,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(N.ok){await t(N);return}if(N.status===402){let H=await N.json().catch(()=>({}));if(H&&typeof H.x402Version==\"number\"){let W=await _w.svm.createPaymentHeader(re,H.x402Version,T),G=await fetch(V.currentUrl,{headers:{\"X-PAYMENT\":W,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(G.ok){await t(G);return}throw new Error(`Payment retry failed: ${G.status} ${G.statusText}`)}throw new Error(`Payment failed: ${N.statusText}`)}let B=`Payment failed: ${N.status} ${N.statusText}`;try{let H=await N.json();H.error?B=H.error:H.errorReason&&(B=`Payment failed: ${H.errorReason}`)}catch{}throw new Error(B)}catch(T){r(T instanceof Error?T.message:\"Payment failed.\")}finally{i(!1)}}},[V,re,h,R,P,oe,e,t]);return(0,go.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,go.jsxs)(\"div\",{className:\"header\",children:[(0,go.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,go.jsxs)(\"p\",{children:[e.description&&`${e.description}.`,\" To access this content, please pay $\",Q,\" \",oe,\" USDC.\"]}),$===\"solana-devnet\"&&(0,go.jsxs)(\"p\",{className:\"instructions\",children:[\"Need Solana Devnet USDC?\",\" \",(0,go.jsxs)(\"a\",{href:\"https://faucet.circle.com/\",target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Request some \",(0,go.jsx)(\"u\",{children:\"here\"}),\".\"]})]})]}),(0,go.jsxs)(\"div\",{className:\"content w-full\",children:[(0,go.jsxs)(\"div\",{className:\"payment-details\",children:[(0,go.jsxs)(\"div\",{className:\"payment-row\",children:[(0,go.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,go.jsx)(\"span\",{className:\"payment-value\",children:h?`${h.address.slice(0,6)}...${h.address.slice(-4)}`:\"-\"})]}),(0,go.jsxs)(\"div\",{className:\"payment-row\",children:[(0,go.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,go.jsx)(\"span\",{className:\"payment-value\",children:h?(0,go.jsx)(\"button\",{className:\"balance-button\",onClick:()=>v(T=>!T),children:!y&&S?`$${S} USDC`:M?\"Loading...\":\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\"}):\"-\"})]}),(0,go.jsxs)(\"div\",{className:\"payment-row\",children:[(0,go.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,go.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",Q,\" USDC\"]})]}),(0,go.jsxs)(\"div\",{className:\"payment-row\",children:[(0,go.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,go.jsx)(\"span\",{className:\"payment-value\",children:oe})]})]}),(0,go.jsxs)(\"div\",{className:\"cta-container\",children:[h?(0,go.jsx)(\"button\",{className:\"button button-secondary\",onClick:K,children:\"Disconnect\"}):(0,go.jsxs)(go.Fragment,{children:[(0,go.jsxs)(\"select\",{className:\"input\",value:c,onChange:T=>u(T.target.value),children:[(0,go.jsx)(\"option\",{value:\"\",disabled:!0,children:\"Select a wallet\"}),a.map(T=>(0,go.jsx)(\"option\",{value:T.value,children:T.wallet.name},T.value))]}),(0,go.jsx)(\"button\",{className:\"button button-primary\",onClick:q,disabled:!c,children:\"Connect wallet\"})]}),h&&(0,go.jsx)(\"button\",{className:\"button button-primary\",onClick:U,disabled:o,children:o?(0,go.jsx)(bre,{}):\"Pay now\"})]}),!a.length&&(0,go.jsx)(\"div\",{className:\"status\",children:\"Install a Solana wallet such as Phantom to continue, then refresh this page.\"}),n&&(0,go.jsx)(\"div\",{className:\"status\",children:n})]})]})}var Hg=he(ze());function apt(){let e=window.x402,t=e.testnet??!0,n=(0,_re.useMemo)(()=>_te(e.paymentRequirements,t),[t,e.paymentRequirements]),r=(0,_re.useCallback)(async o=>{let i=o.headers.get(\"content-type\");if(i&&i.includes(\"text/html\"))document.documentElement.innerHTML=await o.text();else{let a=await o.blob(),c=window.URL.createObjectURL(a);window.location.href=c}},[]);return n?Ste(n.network)?(0,Hg.jsx)(Hft,{paymentRequirement:n,onSuccessfulResponse:r}):oat(n.network)?(0,Hg.jsx)(ipt,{paymentRequirement:n,onSuccessfulResponse:r}):(0,Hg.jsx)(\"div\",{className:\"container\",children:(0,Hg.jsxs)(\"div\",{className:\"header\",children:[(0,Hg.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,Hg.jsx)(\"p\",{className:\"subtitle\",children:\"Unsupported network configuration for this paywall. Please contact the application developer.\"})]})}):(0,Hg.jsx)(\"div\",{className:\"container\",children:(0,Hg.jsxs)(\"div\",{className:\"header\",children:[(0,Hg.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,Hg.jsx)(\"p\",{className:\"subtitle\",children:\"Loading payment details...\"})]})})}var gxe=he(ze());window.addEventListener(\"load\",()=>{let e=document.getElementById(\"root\");if(!e){console.error(\"Root element not found\");return}(0,spt.createRoot)(e).render((0,gxe.jsx)(aat,{children:(0,gxe.jsx)(apt,{})}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.development.js:\\n  (**\\n   * @license React\\n   * scheduler.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.development.js:\\n  (**\\n   * @license React\\n   * react.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.development.js:\\n  (**\\n   * @license React\\n   * react-dom.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.development.js:\\n  (**\\n   * @license React\\n   * react-dom-client.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/hashes/esm/utils.js:\\n@noble/hashes/utils.js:\\n@noble/hashes/esm/utils.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nreact/cjs/react-jsx-runtime.development.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/curves/esm/abstract/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n@noble/curves/esm/abstract/edwards.js:\\n@noble/curves/esm/ed25519.js:\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim/with-selector.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@scure/bip39/esm/index.js:\\n  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)\\n\\nsafe-buffer/index.js:\\n  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\neventemitter2/lib/eventemitter2.js:\\n  (*!\\n   * EventEmitter2\\n   * https://github.com/hij1nx/EventEmitter2\\n   *\\n   * Copyright (c) 2013 hij1nx\\n   * Licensed under the MIT license.\\n   *)\\n\\n@solana/buffer-layout/lib/Layout.js:\\n  (**\\n   * Support for translating between Uint8Array instances and JavaScript\\n   * native types.\\n   *\\n   * {@link module:Layout~Layout|Layout} is the basis of a class\\n   * hierarchy that associates property names with sequences of encoded\\n   * bytes.\\n   *\\n   * Layouts are supported for these scalar (numeric) types:\\n   * * {@link module:Layout~UInt|Unsigned integers in little-endian\\n   *   format} with {@link module:Layout.u8|8-bit}, {@link\\n   *   module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit},\\n   *   {@link module:Layout.u32|32-bit}, {@link\\n   *   module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit}\\n   *   representation ranges;\\n   * * {@link module:Layout~UIntBE|Unsigned integers in big-endian\\n   *   format} with {@link module:Layout.u16be|16-bit}, {@link\\n   *   module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit},\\n   *   {@link module:Layout.u40be|40-bit}, and {@link\\n   *   module:Layout.u48be|48-bit} representation ranges;\\n   * * {@link module:Layout~Int|Signed integers in little-endian\\n   *   format} with {@link module:Layout.s8|8-bit}, {@link\\n   *   module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit},\\n   *   {@link module:Layout.s32|32-bit}, {@link\\n   *   module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit}\\n   *   representation ranges;\\n   * * {@link module:Layout~IntBE|Signed integers in big-endian format}\\n   *   with {@link module:Layout.s16be|16-bit}, {@link\\n   *   module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit},\\n   *   {@link module:Layout.s40be|40-bit}, and {@link\\n   *   module:Layout.s48be|48-bit} representation ranges;\\n   * * 64-bit integral values that decode to an exact (if magnitude is\\n   *   less than 2^53) or nearby integral Number in {@link\\n   *   module:Layout.nu64|unsigned little-endian}, {@link\\n   *   module:Layout.nu64be|unsigned big-endian}, {@link\\n   *   module:Layout.ns64|signed little-endian}, and {@link\\n   *   module:Layout.ns64be|unsigned big-endian} encodings;\\n   * * 32-bit floating point values with {@link\\n   *   module:Layout.f32|little-endian} and {@link\\n   *   module:Layout.f32be|big-endian} representations;\\n   * * 64-bit floating point values with {@link\\n   *   module:Layout.f64|little-endian} and {@link\\n   *   module:Layout.f64be|big-endian} representations;\\n   * * {@link module:Layout.const|Constants} that take no space in the\\n   *   encoded expression.\\n   *\\n   * and for these aggregate types:\\n   * * {@link module:Layout.seq|Sequence}s of instances of a {@link\\n   *   module:Layout~Layout|Layout}, with JavaScript representation as\\n   *   an Array and constant or data-dependent {@link\\n   *   module:Layout~Sequence#count|length};\\n   * * {@link module:Layout.struct|Structure}s that aggregate a\\n   *   heterogeneous sequence of {@link module:Layout~Layout|Layout}\\n   *   instances, with JavaScript representation as an Object;\\n   * * {@link module:Layout.union|Union}s that support multiple {@link\\n   *   module:Layout~VariantLayout|variant layouts} over a fixed\\n   *   (padded) or variable (not padded) span of bytes, using an\\n   *   unsigned integer at the start of the data or a separate {@link\\n   *   module:Layout.unionLayoutDiscriminator|layout element} to\\n   *   determine which layout to use when interpreting the buffer\\n   *   contents;\\n   * * {@link module:Layout.bits|BitStructure}s that contain a sequence\\n   *   of individual {@link\\n   *   module:Layout~BitStructure#addField|BitField}s packed into an 8,\\n   *   16, 24, or 32-bit unsigned integer starting at the least- or\\n   *   most-significant bit;\\n   * * {@link module:Layout.cstr|C strings} of varying length;\\n   * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link\\n   *   module:Layout~Blob#length|length} raw data.\\n   *\\n   * All {@link module:Layout~Layout|Layout} instances are immutable\\n   * after construction, to prevent internal state from becoming\\n   * inconsistent.\\n   *\\n   * @local Layout\\n   * @local ExternalLayout\\n   * @local GreedyCount\\n   * @local OffsetLayout\\n   * @local UInt\\n   * @local UIntBE\\n   * @local Int\\n   * @local IntBE\\n   * @local NearUInt64\\n   * @local NearUInt64BE\\n   * @local NearInt64\\n   * @local NearInt64BE\\n   * @local Float\\n   * @local FloatBE\\n   * @local Double\\n   * @local DoubleBE\\n   * @local Sequence\\n   * @local Structure\\n   * @local UnionDiscriminator\\n   * @local UnionLayoutDiscriminator\\n   * @local Union\\n   * @local VariantLayout\\n   * @local BitStructure\\n   * @local BitField\\n   * @local Boolean\\n   * @local Blob\\n   * @local CString\\n   * @local Constant\\n   * @local bindConstructorLayout\\n   * @module Layout\\n   * @license MIT\\n   * @author Peter A. Bigot\\n   * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}\\n   *)\\n\\nreact-dom/cjs/react-dom-server-legacy.browser.development.js:\\n  (**\\n   * @license React\\n   * react-dom-server-legacy.browser.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-server.browser.development.js:\\n  (**\\n   * @license React\\n   * react-dom-server.browser.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\ncomlink/dist/esm/comlink.mjs:\\n  (**\\n   * @license\\n   * Copyright 2019 Google LLC\\n   * SPDX-License-Identifier: Apache-2.0\\n   *)\\n*/\\n</script></body></html>';\n","import { PAYWALL_TEMPLATE } from \"./gen/template\";\nimport { config } from \"../types/shared/evm/config\";\nimport { PaymentRequirements } from \"../types/verify\";\n\ninterface PaywallOptions {\n  amount: number;\n  paymentRequirements: PaymentRequirements[];\n  currentUrl: string;\n  testnet: boolean;\n  cdpClientKey?: string;\n  appName?: string;\n  appLogo?: string;\n  sessionTokenEndpoint?: string;\n}\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\n/**\n * Generates an HTML paywall page that allows users to pay for content access\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequirements - The payment requirements for the content\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.cdpClientKey - CDP client API key for OnchainKit\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @param options.sessionTokenEndpoint - The API endpoint for generating session tokens for Onramp authentication\n * @returns An HTML string containing the paywall page\n */\nexport function getPaywallHtml({\n  amount,\n  testnet,\n  paymentRequirements,\n  currentUrl,\n  cdpClientKey,\n  appName,\n  appLogo,\n  sessionTokenEndpoint,\n}: PaywallOptions): string {\n  const logOnTestnet = testnet\n    ? \"console.log('Payment requirements initialized:', window.x402);\"\n    : \"\";\n\n  // Create the configuration script to inject with proper escaping\n  const configScript = `\n  <script>\n    window.x402 = {\n      amount: ${amount},\n      paymentRequirements: ${JSON.stringify(paymentRequirements)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: ${JSON.stringify(config)},\n      },\n      cdpClientKey: \"${escapeString(cdpClientKey || \"\")}\",\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      sessionTokenEndpoint: \"${escapeString(sessionTokenEndpoint || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  // Inject the configuration script into the head\n  return PAYWALL_TEMPLATE.replace(\"</head>\", `${configScript}\\n</head>`);\n}\n"],"mappings":";;;;;AAIO,IAAM,mBACX;;;ACgBF,SAAS,aAAa,KAAqB;AACzC,SAAO,IACJ,QAAQ,OAAO,MAAM,EACrB,QAAQ,MAAM,KAAK,EACnB,QAAQ,MAAM,KAAK,EACnB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK;AACzB;AAgBO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,QAAM,eAAe,UACjB,mEACA;AAGJ,QAAM,eAAe;AAAA;AAAA;AAAA,gBAGP,MAAM;AAAA,6BACO,KAAK,UAAU,mBAAmB,CAAC;AAAA,iBAC/C,OAAO;AAAA,qBACH,aAAa,UAAU,CAAC;AAAA;AAAA,uBAEtB,KAAK,UAAU,MAAM,CAAC;AAAA;AAAA,uBAEtB,aAAa,gBAAgB,EAAE,CAAC;AAAA,kBACrC,aAAa,WAAW,EAAE,CAAC;AAAA,kBAC3B,aAAa,WAAW,EAAE,CAAC;AAAA,+BACd,aAAa,wBAAwB,EAAE,CAAC;AAAA;AAAA,MAEjE,YAAY;AAAA;AAIhB,SAAO,iBAAiB,QAAQ,WAAW,GAAG,YAAY;AAAA,QAAW;AACvE;","names":[]}